unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Turn a set of divs into a link === I have list elements like this: <div class="outer"> <div>Head</div> <div>Content</div> </div> what i want to have is a link over the whole outer div like if you wrap it with <a></a> (But unfortunately that ist not valid) I know that it is possible to use "display:block" for an "a" Tag inside a div to get it to the full size of the div, but unfortunately the size of the divs depend on the (dynamic) content and therefore is not set via css. This means that if I set width and height for said "a" Tag to 100%, then it will take the size of the parent of the outer div. Is there a valid solution to this?
0
[ 2, 805, 21, 309, 16, 13, 12916, 18, 77, 21, 3508, 800, 3726, 3726, 31, 57, 968, 2065, 101, 48, 45, 13, 1, 12916, 718, 3726, 7, 1320, 106, 7, 1, 13, 1, 12916, 1, 1743, 1, 118, 12916, 1, 13, 1, 12916, 1, 25424, 1, 118, 12916...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Android: Layout with middle component expand === I am trying to create the following layout. +---------------------+ | Text View | +---------------------+ | | | | | Custom View | | Expands to | | extra space | | | +---------------------| |Button1 |Button2 | +---------------------+ My layout xml looks like the following. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <TextView android:text="This is test text." android:id="@+id/statusTxt" android:layout_width="fill_parent" android:layout_height="wrap_content" /> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent" android:id="@+id/gameView" android:layout_gravity="bottom"> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/gameButtonView"> <Button android:text="Done" android:id="@+id/doneBtn" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button> <Button android:text="Undo" android:id="@+id/undoBtn" android:layout_width="wrap_content" android:layout_height="wrap_content"></Button> </LinearLayout> </LinearLayout> </LinearLayout> Than programatically I am adding my custom view LinearLayout gameView = (LinearLayout)this.findViewById(R.id.gameView); gameView.addView(gameBoardView, 1); What this current layout does is it sticks the bottom buttons above the Custom View. Any ideas on how I can get it to render how I have described?
0
[ 2, 13005, 45, 9106, 29, 772, 5912, 6073, 800, 3726, 3726, 31, 589, 749, 20, 1600, 14, 249, 9106, 9, 2754, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 2430, 13, 1, 1854, 1418, 13, 1, 2754, 8, 8, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Linking to subpage using iframe === Am trying to link to a specific iframe subpage and have it open in the parent page. Destination iframe is on a separate url from links. Is this possible?
0
[ 2, 12585, 20, 972, 6486, 568, 31, 8361, 800, 3726, 3726, 589, 749, 20, 3508, 20, 21, 1903, 31, 8361, 972, 6486, 17, 57, 32, 368, 19, 14, 4766, 2478, 9, 6970, 31, 8361, 25, 27, 21, 1725, 287, 6362, 37, 6271, 9, 25, 48, 938, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to dynamically change HTML.CheckBoxFor using Jquery. === Hi Guys I have a problem, I have 3rows with users, and each row has 5 checkbox(Html.CheckBoxFor) these checkboxes are for assigning rights to these users.My problem is that when CheckBox 2 for row 1 is unchecked CheckBox 1 for row 1 should also be unchecked.But this is not happening, instead of unchecking just row 1, the whole colum for check box 1 is unchecked. Here is my Jquery function. function setRights() { var personalReport = document.getElementById("personalReports"); alert(personalReport.value); personalReport.addEventListener('change', function () { if (personalReport.value) { $($("form #viewAllReports").attr('checked', false)); } else { } }); } "personalReports" and #viewAllReports" are Ids I gave to my Html.CheckboxFor(s). and this does work but not in the way I want too, and I guess what Im asking for here is, a way to uniquely identify all these row in a way that I can specify it in jquery to get the desired results thats going to affect just the row im busy with. Thanks in advance.
0
[ 2, 184, 20, 7782, 1326, 753, 13, 15895, 9, 12542, 5309, 1106, 568, 487, 8190, 93, 9, 800, 3726, 3726, 4148, 2776, 31, 57, 21, 1448, 15, 31, 57, 203, 5417, 18, 29, 3878, 15, 17, 206, 3131, 63, 331, 2631, 5309, 5, 15895, 9, 1254...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Cancan and devise not working === I've modified my devise table, User, to have a clearance column. This column is a number (1-3) that represents a user's permissions (read, read/write, full control). Unlike all the examples I'm reading, *my* Clearance (Role in the examples) is not a separate table with a relationship but is its own column in the Devise table (User). Its default value is 1. My ability.rb looks like this: class Ability include CanCan::Ability def initialize(user) user ||= User.new # guest user (not logged in) if user.clearance.equal?("2") can :create, Post can :manage, Post, :user_id => user.id else can :read, :all end end end I've written this off of other examples I've seen (I'm really new to Rails but trying to not ask for help unless absolutely necessary) with the intent that users with a clearance value of 2 can create posts and manage only their posts. I've also included that, because I haven't written the code for 1 and 3 yet, that all other clearance numbers can read everything. Apperantly, however, Cancan thinks that my user (confirmed clearance level of 2) falls under the "else" provision and therefore I can only read posts. I get a You are not authorized to access this page message if I try to make a new one. I'm lost. Help?
0
[ 2, 92, 1245, 17, 29276, 52, 638, 800, 3726, 3726, 31, 22, 195, 5372, 51, 29276, 859, 15, 4155, 15, 20, 57, 21, 15434, 4698, 9, 48, 4698, 25, 21, 234, 13, 5, 165, 8, 240, 6, 30, 4719, 21, 4155, 22, 18, 5572, 18, 13, 5, 1064...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
EJS reference file === I have an ejs file with a LOT of references and meta divs. I'd like to bring sanity back to my life by putting all of these references in a different file, and be able to add it as a single reference. Methods I've tried: <?php include('references.html)' > and <?php include('references.ejs') > and <!--#include virtual="references.html" --> and <!--#include virtual="references.ejs" --> Thanks in advance!
0
[ 2, 13, 10022, 18, 2801, 3893, 800, 3726, 3726, 31, 57, 40, 13, 10022, 18, 3893, 29, 21, 865, 16, 7231, 17, 7618, 13, 12916, 18, 9, 31, 22, 43, 101, 20, 1499, 22869, 97, 20, 51, 201, 34, 3873, 65, 16, 158, 7231, 19, 21, 421, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
php Switch between two includes === I have 4 files admin.php index.php go1.php and go2.php admin.php needs to be connected with index.php in admin.php when I click on go1 button or option then index.php will show the contents of go1.php otherwise it will show the contents of go2.php I thought about using either switch or if statements, but I have no clue where to begin. index.php is the page as seen by public whereas admin.php is private so through admin.php I want to control index.php to switch between contents of go1.php and go2.php
0
[ 2, 13, 26120, 5521, 128, 81, 1103, 800, 3726, 3726, 31, 57, 268, 6488, 21, 43, 2160, 9, 26120, 4348, 9, 26120, 162, 165, 9, 26120, 17, 162, 135, 9, 26120, 21, 43, 2160, 9, 26120, 2274, 20, 44, 2587, 29, 4348, 9, 26120, 19, 21,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
good practices __unicode__(self) === What is the good practice to solve this easy question? def __unicode__(self): return unicode(self.typePlace + " " + self.name) TypeError: unsupported operand type(s) for +: 'TipoLugar' and 'str'
0
[ 2, 254, 5242, 13, 1, 8843, 9375, 1, 5, 8411, 6, 800, 3726, 3726, 98, 25, 14, 254, 1345, 20, 8402, 48, 2010, 1301, 60, 6312, 13, 1, 8843, 9375, 1, 5, 8411, 6, 45, 788, 28010, 5, 8411, 9, 4474, 5119, 2754, 13, 7, 13, 7, 2754...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can I input a dynamic data argument for the jquery post? === I'm trying to make this work. function postCharacter(id, type) { type = type; id = id; var data = type + ':' + id; $.post('', {data}); } Hopefully from that example you can see what I'm trying to achieve. But if not, what I'm trying to do... $.post('', {a, b}); both "a" and "b" are values that are dynamic, How can I input a dynamic data argument for the jquery post? [What I tried unfortunately did not work]
0
[ 2, 184, 92, 31, 6367, 21, 7782, 1054, 5476, 26, 14, 487, 8190, 93, 678, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 233, 48, 170, 9, 1990, 678, 24589, 5, 1340, 15, 1001, 6, 13, 1, 1001, 800, 1001, 73, 4924, 800, 4924, 73, 4033...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Do I need the Ninject.Web.Mvc library in my application in order to use Ninject in my ASP.NET MVC 3 application? === I downloaded the Ninject.Web.Mvc module and noticed that it did not contain the NinjectHttpApplication class which I discovered was in the Ninject.Web.Common and I have been using Ninject.Web.Common without the Ninject.Web.Mvc module and its been working well so far. So my question is.. do I need the Ninject.Web.Mvc library in order to use Ninject properly in an ASP.NET MVC 3 application? I wouldnt want to add an assembly/library that I would not use in my application
0
[ 2, 107, 31, 376, 14, 13, 5703, 17759, 9, 14113, 9, 79, 8990, 1248, 19, 51, 3010, 19, 389, 20, 275, 13, 5703, 17759, 19, 51, 28, 306, 9, 2328, 307, 8990, 203, 3010, 60, 800, 3726, 3726, 31, 23887, 14, 13, 5703, 17759, 9, 14113,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get the top 5 most used rgb colors from an image? === I need a direction to perform this. I am iterating through all the pixels and getting the value through getpixel function. What should i do next?
0
[ 2, 184, 20, 164, 14, 371, 331, 127, 147, 761, 11400, 5268, 37, 40, 1961, 60, 800, 3726, 3726, 31, 376, 21, 1400, 20, 2985, 48, 9, 31, 589, 32, 106, 1880, 120, 65, 14, 18146, 18, 17, 1017, 14, 1923, 120, 164, 18321, 532, 1990, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Eclipse Java editor: insert current date in YYYYMMDD format? === The question is very similar to this one: http://stackoverflow.com/questions/5318805/in-eclipse-how-to-automatically-print-current-date-time-in-the-comments However, I'd like a format different from the default Mon, DD YYYY. Template editor (Preferences > Java > Editor > Templates > New) lists ${year} variable but, strangely, no similar ${day} or ${month}. Is there any place where I could ask to add them for the next release? Or perhaps add them myself by modifying a specific plugin? Thanks.
0
[ 2, 11652, 8247, 1835, 45, 14692, 866, 1231, 19, 13, 93, 93, 93, 93, 3363, 8096, 2595, 60, 800, 3726, 3726, 14, 1301, 25, 253, 835, 20, 48, 53, 45, 7775, 6903, 25325, 2549, 9990, 9, 960, 118, 24652, 18, 118, 4022, 20385, 10551, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Google Maps textNode css === How would I change the css for google maps createTextNode. The bubble that pops up showing the address and other info on the map.
0
[ 2, 8144, 6867, 1854, 251, 546, 272, 18, 18, 800, 3726, 3726, 184, 83, 31, 753, 14, 272, 18, 18, 26, 8144, 6867, 1600, 11969, 251, 546, 9, 14, 10937, 30, 1675, 18, 71, 3187, 14, 3218, 17, 89, 15404, 27, 14, 2942, 9, 3, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Youtube API - Video Comments Pagination === I'm using the following PHP code to get the comments for a specific video: <?php $vid = "G0k3kHtyoqc"; $feedURL = 'http://gdata.youtube.com/feeds/api/videos/' . $vid; $entry = simplexml_load_file($feedURL); $gd = $entry->children('http://schemas.google.com/g/2005'); if($gd->comments->feedLink){ $attrs = $gd->comments->feedLink->attributes(); $commentsURL = $attrs['href']; $commentsCount = $attrs['countHint']; } if($commentsURL && $commentsCount > 0){ $commentsFeed = simplexml_load_file($commentsURL); echo "<ol>"; foreach($commentsFeed->entry as $comment){ echo "<li>"; echo "<a target='_blank' href='http://www.youtube.com/user/" . $comment->author->name . "'>"; echo $comment->author->name; echo "</a>"; echo " - " . $comment->content; echo "</li>"; } echo "</ol>"; } ?> The problem with the code above is that it only gets the most recent 24 comments. I need a way to paginate through all comments. Your help is much appreciated. Thanks
0
[ 2, 7330, 21, 2159, 13, 8, 763, 7534, 19006, 108, 857, 800, 3726, 3726, 31, 22, 79, 568, 14, 249, 13, 26120, 1797, 20, 164, 14, 7534, 26, 21, 1903, 763, 45, 13, 1, 60, 26120, 5579, 7074, 800, 13, 7, 263, 387, 197, 240, 4278, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Quick UL / LI Default child issue === http://jsfiddle.net/b4fwQ/ Hi all. The link above goes to a jsFiddle example of where i have got to thus far. What i am trying to accomplish is that which ever <li> has the selected class on it will shows its child. Now this is working as above, but once you start moving your mouse around the "selected" border needs to become white as you are now looking at a different page. How can the css be changed? thanks. Chris
0
[ 2, 2231, 13, 1287, 13, 118, 2093, 12838, 850, 1513, 800, 3726, 3726, 7775, 6903, 728, 18, 1707, 12312, 9, 2328, 118, 220, 300, 18651, 1251, 118, 4148, 65, 9, 14, 3508, 784, 1852, 20, 21, 487, 18, 1707, 12312, 823, 16, 113, 31, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JQM multipage app with one central JS and opening PDF (doc,..) PROBLEMS === My apps structure is like so: index.html / app. entry point includes in the `<head>...</head>` one central JS where i do custom scripting depending on which page is open and which event is triggered: Here's a quick example for a page called mylist.html, and instead of having on every page it's scripting i have rather one larger JS which requires only one time to load in the `<head>` of index: $(document).on('pageinit', '#pageMyList', function() { // init code }); $(document).on('pageshow', '#pageMyList', function() { // run every time }); Shutting of JQM ajax and stuff is not an option since i need those transitions and go jqm "native". PROBLEM: I have a list of pdf's, doc's, external links,..etc that are all handled by browser. For example: opening pdf i just link to it (window.location = 'pathToPdfFile'; That works, but then the pdf reader is openened (iphone etc..). Now going back will open the last page but the index.html page isn't in the DOM anymore - and my entire JS not available. Btw: Pages are dynamically build via ajax. The same happenz when i refresh any page (index.html) is lost
0
[ 2, 487, 1251, 79, 1889, 6486, 4865, 29, 53, 521, 487, 18, 17, 1214, 13, 11124, 13, 5, 13799, 15, 9, 9, 6, 1716, 800, 3726, 3726, 51, 4865, 18, 1411, 25, 101, 86, 45, 4348, 9, 15895, 13, 118, 4865, 9, 2792, 454, 1103, 19, 14,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Add lookup field to list from a RootWeb === I have the site collection rootweb called Main Site. I have many subsites called according to the year, 2012, 2011, etc. In the rootweb, there is a list called Products. In the subsites there is a list called Sales, and I need to add a lookup field to the list Products in the root site. I found this code, but its not working, it created the lookup field, but the dropdown is empty even if there are products. //Request North lookup currentList = currentWeb.GetSafeListByName(SponsoringCommon.Constants.LISTNAMES_SALESNORTH); string sFldReqNr = SponsoringCommon.Constants.FIELDS_REQUESTNUMBERLOOKUPNORTH_NAME + currentWeb.Title; Functions.CreateRequestNumberLookup(currentList, sFldReqNr, false, Functions.NorthSouth.North); ArrayList colPreviousContentTypes = new ArrayList(); currentList.AddFieldToContentType(sFldReqNr, SponsoringCommon.Constants.CONTENTTYPES_SALESNUMBER_NAME, 2, colPreviousContentTypes, 1033); public static void CreateProductNameLookup(SPList currentList, string strInternalFieldName, bool allowMultipleValues) { Logger.LogDebug("Functions", "CreateProductNameLookup(SPList currentList, string strInternalFieldName, bool allowMultipleValues)", "BEGIN"); SPWeb currentWeb = currentList.ParentWeb; SPList targetList = currentWeb.Site.RootWeb.GetSafeListByName(SponsoringCommon.Constants.LISTNAMES_PRODUCT_NAME); SPFieldCollection colFields = currentList.Fields; Guid targetListID = targetList.ID; int L1 = strInternalFieldName.Length; int L2 = currentWeb.Title.Length; string sFieldNameWithoutYear = (strInternalFieldName.EndsWith(currentWeb.Title) ? strInternalFieldName.Substring(0, L1 - L2) : strInternalFieldName); if (colFields.ContainsField(strInternalFieldName)) { Logger.LogDebug("Functions", "CreateProductNameLookup(SPList currentList, string strInternalFieldName, bool allowMultipleValues)", "Field '" + strInternalFieldName + "' already exists. (>> Skipped)"); } else { strInternalFieldName = colFields.AddLookup(strInternalFieldName, targetListID, false); SPField fld = colFields.GetFieldByInternalName(strInternalFieldName); fld.ShowInNewForm = true; fld.ShowInEditForm = true; fld.ShowInDisplayForm = true; SPFieldLookup fldLU = fld as SPFieldLookup; fldLU.AllowMultipleValues = allowMultipleValues; string strSchemaXml = fldLU.SchemaXmlWithResourceTokens; strSchemaXml = strSchemaXml.Replace("DisplayName=\"" + strInternalFieldName + "\"", "DisplayName=\"$Resources:SPNLSponsoring,Field_" + sFieldNameWithoutYear + "_Name;\""); strSchemaXml = strSchemaXml.Replace("/>", " ShowField=\"" + targetList.Fields[SponsoringCommon.Constants.FIELDS_PRODUCT_NAMENEW].InternalName + "\" " + "Description=\"$Resources:SPNLSponsoring,Field_" + sFieldNameWithoutYear + "_Description;\" " + "Group=\"$Resources:SPNLSponsoring,Field_NationaleLoterijSponsoringColumns_Group;\" />"); fldLU.SchemaXml = strSchemaXml; fldLU.Update(true); currentList.Update(); } Logger.LogDebug("Functions", "CreateProductNameLookup(SPList currentList, string strInternalFieldName, bool allowMultipleValues)", "END"); }
0
[ 2, 3547, 361, 576, 575, 20, 968, 37, 21, 5900, 14113, 800, 3726, 3726, 31, 57, 14, 689, 1206, 5900, 14113, 227, 407, 689, 9, 31, 57, 151, 972, 18, 6359, 227, 496, 20, 14, 159, 15, 563, 15, 542, 15, 2722, 9, 19, 14, 5900, 141...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jQuery Offset wrong on refresh of page === I'm using jQuery offset function to place an absolutely positioned DIV over an anchor element. $("#marker1").offset({ top: $("#<%= hypHowItWorks.ClientID %>").offset().top, left: $("#<%= hypHowItWorks.ClientID %>").offset().left }); $("#marker1").width( $("#<%= hypHowItWorks.ClientID %>").outerWidth() ); When the page loads up this works fine, however, if I reload the page by hitting F5, it displays the DIV slightly offset from where it shoud be. If I then go page back-forward in the browser its in the right place again!! This is an issue with latest Chrome and Firefox, but not with IE9. Any ideas? Chris.
0
[ 2, 487, 8190, 93, 17493, 1389, 27, 24905, 16, 2478, 800, 3726, 3726, 31, 22, 79, 568, 487, 8190, 93, 17493, 1990, 20, 209, 40, 6916, 12125, 13, 12916, 84, 40, 6265, 4520, 9, 5579, 5, 7, 5910, 4527, 106, 165, 7, 6, 9, 1299, 355...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
jQuery - ScrollTop usability issue === I am using this code to scroll to a certain element on my page: $("html, body").animate({scrollTop: $(".myDiv").offset().top}, 300); It works, but there is one issue with it: When the user scrolls down while the script scrolls up, there is some juddering because there are two scroll commands at the same time in different directions - sounds logical to me. I checked some other sites with such scroll functionality, there is no juddering. So what's the trick to prevent this?
0
[ 2, 487, 8190, 93, 13, 8, 12159, 3880, 182, 4091, 1513, 800, 3726, 3726, 31, 589, 568, 48, 1797, 20, 12159, 20, 21, 1200, 4520, 27, 51, 2478, 45, 5579, 5, 7, 15895, 15, 358, 7, 6, 9, 3443, 5281, 5, 1, 3862, 8694, 3880, 45, 55...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Symfony 2 config parameter - The parameter must be defined === I have a Bundle called Web\CoworkerBundle. In DIC/Configuration.php I have: $rootNode = $treeBuilder->root('web_coworker'); $rootNode ->children() ->scalarstackoNde('redirect_url')->defaultNull()->end() ->end(); In config.yml I have: web_coworker: redirect_url: "http://www.example.com/" Now in my DefaultController.php, I do return array( 'url' => $this->container->getParameter('redirect_url') ); I get the error The parameter "redirect_url" must be defined. Do I miss something?
0
[ 2, 13, 7261, 10229, 93, 172, 13, 14093, 2816, 18906, 13, 8, 14, 18906, 491, 44, 2811, 800, 3726, 3726, 31, 57, 21, 10194, 227, 2741, 1, 716, 22560, 9930, 413, 9, 19, 13, 4673, 118, 1126, 13549, 857, 9, 26120, 31, 57, 45, 5579, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Reload document with previous post request === How do i reload the page with the same ajax request as previous with button click? I am using Post ajax request. I used the following code to reload the page but i want to post same data as previous with the button click. <input type="button" value="Reload" onClick="document.location.reload(true)">
0
[ 2, 27339, 4492, 29, 1158, 678, 3772, 800, 3726, 3726, 184, 107, 31, 27339, 14, 2478, 29, 14, 205, 20624, 3772, 28, 1158, 29, 5167, 10840, 60, 31, 589, 568, 678, 20624, 3772, 9, 31, 147, 14, 249, 1797, 20, 27339, 14, 2478, 47, 31...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Python script thru insert data in google script and generate chart === I need help regarding the google spreadsheet. I have inserted data in the google spreadsheet from my python script, now I want to generated the chart from inserted data, thru the python script. Chart be dyanmic when data changed then chart also change. Thanks
0
[ 2, 20059, 3884, 19637, 14692, 1054, 19, 8144, 3884, 17, 7920, 1795, 800, 3726, 3726, 31, 376, 448, 3467, 14, 8144, 1789, 17627, 9, 31, 57, 14215, 1054, 19, 14, 8144, 1789, 17627, 37, 51, 20059, 3884, 15, 130, 31, 259, 20, 6756, 14...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Highlight a select option using javascript === I have a group list as select like that: <select id="groups"> <option value="g1">G1</option> <option value="g2">G2</option> <option value="g3">G3</option> </select> I have a contact list which basically contains: Name = group ============ Casper G1-G2-G3 Andy G1-G2 Mark G2-G3 When the user check the `checkbox` for `Casper`and click `Edit` button so `G1-G2 and G3` should be highlighted (Selected) in the group list. When I get the value of the group field in the contact list, all of the three groups come with comma `"G1-G2-G3"`. Your help is highly appreciated. Thanks,
0
[ 2, 14373, 21, 5407, 4255, 568, 8247, 8741, 800, 3726, 3726, 31, 57, 21, 214, 968, 28, 5407, 101, 30, 45, 13, 1, 18, 16964, 4924, 3726, 7, 8024, 18, 7, 1, 13, 1, 2594, 3309, 1923, 3726, 7, 263, 165, 7, 1, 263, 165, 1, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Set selected drop down and then get value on "$_GET['user_level']" PHP === I have a dropdown on my site which is static, but the value is different for each user. I'm wanting to have it so that it has a selected value based on the user level, but if I change my selection and press save it will update that value in the table. However every time It's just setting the value to 0. Select code so far: <select id="user_level<?php echo $rrows['id']; ?>" name="user_level<?php echo $rlurows['id']; ?>"> <option value="5"<?php if($rlurows['user_level'] == 5){ echo " selected=\"selected\"";} ?>>Admin</option> <option value="4"<?php if($rlurows['user_level'] == 4){ echo " selected=\"selected\"";} ?>>Staff</option> <option value="3"<?php if($rlurows['user_level'] == 3){ echo " selected=\"selected\"";} ?>>Lead</option> <option value="2"<?php if($rlurows['user_level'] == 2){ echo " selected=\"selected\"";} ?>>Guard</option> <option value="1"<?php if($rlurows['user_level'] == 1){ echo " selected=\"selected\"";} ?>>Camp</option> <option value="0"<?php if($rlurows['user_level'] == 0){ echo " selected=\"selected\"";} ?>>Guest</option> </select> On Save Code: onclick='$.get("do.php",{ cmd: "edit", user_level:$("input#user_level<?php echo $rlurows['id']; ?>").val(),id: "<?php echo $rlurows['id']; ?>" } ,function(data){ $("#msg<?php echo $rlurows['id']; ?>").html(data); });' Code retrieving in do.php: $lvl = mysql_real_escape_string($_GET['user_level']); Can anyone see the issue that is making my code not work? Do I need to post any more code?
0
[ 2, 309, 1704, 2804, 125, 17, 94, 164, 1923, 27, 13, 7, 4403, 1, 3060, 2558, 22, 16704, 1, 3906, 22, 500, 7, 13, 26120, 800, 3726, 3726, 31, 57, 21, 2804, 2968, 27, 51, 689, 56, 25, 12038, 15, 47, 14, 1923, 25, 421, 26, 206, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Interdependent dropdownlists by Ajax in ASP.NET === I have 2 dropdownlists (ddl_customername), and (ddl_customercode). I have sqldatasource1 `(select customername, customercode from tbl_customers)` I want to change the selecteditem in my dropdownlists depending on the selected item of the other using AJAX, The issue looks very basic but I am not able to implement the structure to achieve that goal.
0
[ 2, 1480, 19374, 2804, 2968, 5739, 18, 34, 20624, 19, 28, 306, 9, 2328, 800, 3726, 3726, 31, 57, 172, 2804, 2968, 5739, 18, 13, 5, 43, 8643, 1, 4636, 262, 1263, 7259, 6, 15, 17, 13, 5, 43, 8643, 1, 4636, 262, 1263, 9375, 6, 9...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Spring REST consumption results in HTTP Status 406 - Not Acceptable === I get this error when i try to consume a REST API: Exception in thread "main" org.springframework.web.client.HttpClientErrorException: 406 Not Acceptable Here's the client code that gets executed: public static void main(String[] args) { Car c = getCarById(4); System.out.println(c); } public static @ResponseBody Car getCarById(int id){ return new RestTemplate().getForObject("http://localhost:8080/rest/cars/{id}", Car.class, id); } Here's the code of the Controller which maps the request: @RequestMapping(value="/cars/{id}", method=RequestMethod.GET, headers = {"Accept=text/html,application/xhtml+xml,application/xml"}, produces="application/xml") public @ResponseBody Car getCarById(@PathVariable("id") int id){ return carService.getCarById(id); } Why is this error (406-Not Acceptable) happening although the mappers should take care of mapping to the correct types?
0
[ 2, 1573, 760, 8330, 1736, 19, 7775, 1782, 13, 24570, 13, 8, 52, 12513, 800, 3726, 3726, 31, 164, 48, 7019, 76, 31, 1131, 20, 16447, 21, 760, 21, 2159, 45, 5391, 19, 9322, 13, 7, 6232, 7, 13, 5583, 9, 15827, 8361, 3783, 9, 1411...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Consuming RESTful service over https with certficate using Java === I'm a new user to REST services. I need to consume a RESTful API service generated with Jersey. The problem comes because that service is hosted on remote host and it requires https access with certificate. I got my certificate from the organization and i'm able to access that REST API service with any of my browsers (with certificate set on them). I've read lot of posts over here, and I've followed the answer on this topic: http://stackoverflow.com/questions/1757295/using-https-with-rest-in-java Now I've my certificate setup on my Java Keystore. But i don't know how to use that on my Java program so it uses exactly the certificate i need to do the https connection. This is my simple connection code for local tests. package rest.test.first; import java.net.URI; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.UriBuilder; import com.sun.jersey.api.client.Client; import com.sun.jersey.api.client.ClientResponse; import com.sun.jersey.api.client.WebResource; import com.sun.jersey.api.client.config.ClientConfig; import com.sun.jersey.api.client.config.DefaultClientConfig; public class TestClient{ public static void main(String[]args){ ClientConfig config= new DefaultClientConfig(); Client client=Client.create(config); WebResource service=client.resource(getBaseURI()); //Fluentinterfaces System.out.println(service.path("rest").path("hello").accept(MediaType.TEXT_PLAIN).get(ClientResponse.class).toString()); //Getplaintext System.out.println(service.path("rest").path("hello").accept(MediaType.TEXT_PLAIN).get(String.class)); //GetXML System.out.println(service.path("rest").path("hello").accept(MediaType.TEXT_XML).get(String.class)); //TheHTML System.out.println(service.path("rest").path("hello").accept(MediaType.TEXT_HTML).get(String.class)); } private static URI getBaseURI(){ return UriBuilder.fromUri("http://localhost:8080/rest.test").build(); } } I'v read about using system set properties to specify path to keystore with this code: System.setProperty("javax.net.ssl.keyStore", "/path/to/keystore.jks"); System.setProperty("javax.net.ssl.keyStorePassword", "password"); I still get 401 Error on connection to the remote server. But then i don't know how to make SSL connection using my certificate on keystore. I've been also reading about using TrustStore for this purpose but i couldn't make it work.
0
[ 2, 13, 17601, 760, 1566, 365, 84, 7775, 18, 29, 13, 17580, 1707, 9530, 568, 8247, 800, 3726, 3726, 31, 22, 79, 21, 78, 4155, 20, 760, 687, 9, 31, 376, 20, 16447, 21, 760, 1566, 21, 2159, 365, 6756, 29, 2134, 9, 14, 1448, 1624,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Identity check failed for outgoing message. The expected DNS identity of the remote endpoint was ... WCFstorm === I am testing an API we publish written using .net , 3.5 , WCF using the application WCFStorm. 1 Run storm 64 as ADMIN (win7 pro 64). 2 select config / security then user/pass autentication. Enter details. 3 select ADD and i add the API http://api.domain.net/service.svc path. 4 after 20 secs the SERVICES load and i can see the methods. 5 I execute a method to get a single record sucessfully 6 I execute a method to get all records (181) and receive a timeout on this occasion. (The operation has timed out). 7 I execute the relevant SP which returns in 1 sec. PROBLEM1 - Right click the SVC reference in storm to edit the endpoint (WShttpBinding_Service) , select EDIT and amend the CLOSETIMEOUT from 01:00 to 05:00. Also amend the SENDTIMEOUT to 03:00 and OPENTIMEOUT to 4:00. Hit OK. EDIT again and the changes have not saved,. PROBLEM2 Close app and repeat steps 1 to 7. When the above timeout is not received i get the message that the content received is too large (will post actual message as soon as i get past the timeout issue again). This time EDIT the service and amend MaxReceivedMessageSize from 65536 to 655366. When i now execute the method the following message is received: "Identity check failed for outgoing message. The expected DNS identity of the remote endpoint was 'api.domain.net' but the remote endpoint provided DNS claim 'www.api.domain.net'. If this is a legitimate remote endpoint, you can fix the problem by explicitly specifying DNS identity 'www.api.domain.net' as the Identity property of EndpointAddress when creating channel proxy. " The API is published on http://api.domain.net and https://api.domain.net. Nowhere anywhere do we prefix with WWW. No idea where this WWW is coming from in the error message above , no idea how to get around this error message. This error only occurs when attempting to EDIT the endpoint MaxReceivedMessageSize to date. But i have amended this parameter in the past and sucessfully tested this message when in the past the "too large" message was received. (again will post the exact error as soon as problem 1 above resolved). Noting again testing the single record web method works no problem at all (as do many other) showing the API and the test framework is setup correctly. This "Identity check" error only occurs when i edit end point parameters from the testing application. Thanks for any help Scott
0
[ 2, 3270, 2631, 1702, 26, 25193, 2802, 9, 14, 1727, 13, 43, 2172, 3270, 16, 14, 5388, 241, 3132, 23, 13, 9, 9, 9, 11801, 410, 11032, 800, 3726, 3726, 31, 589, 4431, 40, 21, 2159, 95, 10824, 642, 568, 13, 9, 2328, 13, 15, 203, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
View the inside of a cylinder. === If I draw a `gluCylinder` with a `gluDisk` on top without culling enable, I get the desired cylinder with lid effect. However, if I enable culling, the disk (aka lid) disappears. Why is that? The back faces of the cylinder are not drawn. I get why this is happening but I would still like to see the inside of the cylinder drawn. The code is: glPushMatrix() quadratic = gluNewQuadric() gluQuadricNormals(quadratic, GLU_SMOOTH) gluQuadricTexture(quadratic, GL_TRUE) glRotatef(90, 1, 0, 0) glTranslate(0, 0, -3*sz) gluCylinder(quadratic, 0.75*sz, 0.75*sz, 3.0*sz, 32, 32) gluDisk(quadratic, 0.0, 0.75*sz, 32, 32) glPopMatrix()
0
[ 2, 1418, 14, 572, 16, 21, 9357, 9, 800, 3726, 3726, 100, 31, 2003, 21, 13, 1, 13161, 13713, 1, 29, 21, 13, 1, 13161, 2906, 197, 1, 27, 371, 366, 19075, 68, 9240, 15, 31, 164, 14, 9264, 9357, 29, 8009, 1590, 9, 207, 15, 100, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to save the obtained chart from afreechart to some png or JPEG format === I have tried to develop the chart from jfreechart but i got errors and i found Afreechart, in which i am able to draw the chart, but next is how to save the obtained chart to some image format.
0
[ 2, 184, 20, 2079, 14, 3048, 1795, 37, 21, 4639, 5433, 38, 20, 109, 351, 2723, 54, 487, 20427, 2595, 800, 3726, 3726, 31, 57, 794, 20, 2803, 14, 1795, 37, 487, 4639, 5433, 38, 47, 31, 330, 11908, 17, 31, 216, 21, 4639, 5433, 38...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Mysql query for displaying data === I have a database like this: id User_id Question_id Answer 1 john Question_1 b 2 john Question_2 a 3 john Question_3 d 4 harry Question_1 a 5 harry Question_2 a 6 harry Question_3 c 7 colleen Question_1 c 8 colleen Question_2 a 9 colleen Question_3 b I want to display the content of the above data in the following format- id User_id Question_1 Question_2 Question_3 1 john b a d 2 harry a a c 4 colleen c a b How can I achieve this using sql? I am using mysql and php.
0
[ 2, 51, 18, 22402, 25597, 26, 17418, 1054, 800, 3726, 3726, 31, 57, 21, 6018, 101, 48, 45, 4924, 4155, 1, 1340, 1301, 1, 1340, 1623, 137, 239, 1301, 1, 165, 334, 172, 239, 1301, 1, 135, 21, 203, 239, 1301, 1, 240, 13, 43, 268, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
about csv import === am having CSV file.it contain 14lakhs row of data. am not able to open that csv file in excel. because excel limit is 10 lakhs something. so there is a chance for data lost. so i want to import this file in mysql workbench. this csv file contains column like "Service Area Code","Phone Numbers","Preferences","Opstype","Phone Type". am creating table in mysql work bench named as "dummy" contain columns like ServiceAreaCodes,PhoneNumbers,Preferences,Opstyp,PhoneTyp. CSV file named as model.csv. my code in workbench like this ------------------------------ LOAD DATA LOCAL INFILE 'model.csv' INTO TABLE test.dummy FIELDS TERMINATED BY ',' lines terminated by '\n'; but am getting error like model.CSV file not found
0
[ 2, 88, 272, 18, 710, 9010, 800, 3726, 3726, 589, 452, 272, 18, 710, 3893, 9, 242, 3717, 513, 531, 4278, 18, 3131, 16, 1054, 9, 589, 52, 777, 20, 368, 30, 272, 18, 710, 3893, 19, 20700, 9, 185, 20700, 4496, 25, 332, 23505, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to send a JSON string with JQuery ajax submit to be mapped in to a List of complextypes in struts 2 === If a struts 2 action class have a property of `List<User> userList`. And the user class has properties like `username, password, createdDate` etc. Is it possible to make struts populate the list by passing the appropriate JSON string, while submitting a jQuery ajax request pointed at that action. If it is possible how? Specially how will the JSON string have to look like? Please ask any clarifications.
0
[ 2, 184, 20, 2660, 21, 487, 528, 3724, 29, 487, 8190, 93, 20624, 12298, 20, 44, 20877, 19, 20, 21, 968, 16, 1502, 4474, 18, 19, 18316, 18, 172, 800, 3726, 3726, 100, 21, 18316, 18, 172, 1028, 718, 57, 21, 1354, 16, 13, 1, 5739,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Android app flickering === I have been writing an app that is targeted for Android 2.1 and works great on almost all devices. Recently I tried to run it on Android 4.0.3 and it started to flicker (just like gmail app). The weird part is that I changed starting activity to empty one (no controls or layout elements) and it still flickered. Changing target to Google APIs 4.0.3 did not help either. I am using Google APIs 2.1 currently. Have few external libraries protobuf and RabbitMQ and app permissions: <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" /> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name="android.permission.READ_PHONE_STATE"/> <uses-permission android:name="android.permission.CALL_PHONE"/> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.WAKE_LOCK" /> <uses-permission android:name="android.permission.WRITE_CONTACTS"/> <uses-permission android:name="android.permission.READ_CONTACTS"/> <uses-permission android:name="android.permission.WRITE_SETTINGS"/> <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS"/> no idea what else could have any impact to an empty Activity. Has anyone experienced something similar or have any clue what could be happening?
0
[ 2, 13005, 4865, 22399, 800, 3726, 3726, 31, 57, 74, 1174, 40, 4865, 30, 25, 9536, 26, 13005, 172, 9, 165, 17, 693, 374, 27, 557, 65, 4690, 9, 1989, 31, 794, 20, 485, 32, 27, 13005, 268, 9, 387, 9, 240, 17, 32, 373, 20, 18709...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get the correct pixel from a CGImage in a Retina Display device? === I have the following code which correctly retrieves the pixel color (RGB) being touched by the user's finger on an image based on the touch's current position (X and Y coordinate). So, this piece of code works fine but not for retina display devices: -(void)drawFirstColorWithXCoord:(CGFloat)xCoor andWithYCoord:(CGFloat)yCoor { CGImageRef imageRef = [image CGImage]; //image is an ivar of type UIImage NSUInteger width = CGImageGetWidth(imageRef); NSUInteger height = CGImageGetHeight(imageRef); CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB(); unsigned char *rawData = malloc(height * width * 4); NSUInteger bytesPerPixel = 4; NSUInteger bytesPerRow = bytesPerPixel * width; NSUInteger bitsPerComponent = 8; CGContextRef context = CGBitmapContextCreate(rawData, width, height, bitsPerComponent, bytesPerRow, colorSpace, kCGImageAlphaPremultipliedLast | kCGBitmapByteOrder32Big); CGColorSpaceRelease(colorSpace); CGContextDrawImage(context, CGRectMake(0, 0, width, height), imageRef); CGContextRelease(context); //GET PIXEL FROM POINT int index = 4*((width*round(yCoor))+round(xCoor)); int R = rawData[index]; int G = rawData[index+1]; int B = rawData[index+2]; NSLog(@"%d %d %d", R, G, B); free(rawData); } I would like to know what should I tweak in this code to make it work for retina display devices. Any advice would be well apreciated. Thanks in advance for your help.
0
[ 2, 184, 20, 164, 14, 4456, 18146, 37, 21, 13, 15123, 22039, 19, 21, 24325, 3042, 3646, 60, 800, 3726, 3726, 31, 57, 14, 249, 1797, 56, 12044, 11917, 18, 14, 18146, 1665, 13, 5, 139, 11400, 6, 142, 3491, 34, 14, 4155, 22, 18, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Play Audio File From Plist === In my Controller.h file...I listed the NSDictionary I am using along with the items to pull. But I'm having a problem identifying the Audio Recording Variable... @property (nonatomic, retain) NSDictionary *dataForCurrentLevel; @property (nonatomic, retain) IBOutlet UILabel *Name; @property (nonatomic, retain) IBOutlet UILabel *Author; @property (nonatomic, retain) IBOutlet UILabel *Time; @property (nonatomic, retain) NSString *Recording; In my Controller.m file.... - (void)viewDidLoad { // Configure the user interface by extracting the data from the dictionary Name.text = [dataForCurrentLevel valueForKey:@"Name"]; Author.text = [dataForCurrentLevel valueForKey:@"Author"]; Time.text = [dataForCurrentLevel valueForKey:@"Time"]; //the above lines work AOK. The build pulls in and shows the data in my new view controller with no problems. However, I'm unable to pull in the audio m4a file that goes with the dictionary item. Using the below code, I can play one specific audio file...but how do I change the below code to pull in the audio file listed in the plist dictionary at the current table level? FYI, the audio file is listed with object key: "Recording" Type: "String" and a variable value like: "buzz.4ma" NSURL *fileURL = [[NSURL alloc] initFileURLWithPath:[[NSBundle mainBundle] pathForResource:@"buzz" ofType:@"m4a"]]; self.myPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL: fileURL error:nil]; //How do I get pathForResource to choose the variable audio file in the plist dictionary?
0
[ 2, 418, 4023, 3893, 37, 351, 5739, 800, 3726, 3726, 19, 51, 9919, 9, 252, 3893, 9, 9, 9, 49, 1510, 14, 13, 2172, 22595, 1857, 31, 589, 568, 303, 29, 14, 3755, 20, 2201, 9, 47, 31, 22, 79, 452, 21, 1448, 13785, 14, 4023, 1576...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
phpquery - simulate browser click === how to simulate browser click using phpquery framework? I have the following code, but the click desn't seem to work.. phpQuery::$ajaxAllowedHosts = "www.godaddy.com"; phpQuery::browserGet('http://www.godaddy.com/', 'myCallback'); function myCallback($browser) { echo "myCallback" . PHP_EOL; $browser->WebBrowser('myCallback2')->find('#searchDomainName')->val("mydomain")->end()->find('#searchButton')->click(); } function myCallback2($browser) { echo "myCallback2" . PHP_EOL; print $browser; } but the code never reached `myCallback2`.. plus, I get the `Fatal error: Call to undefined function unparse_url() in D:\xampp\xampp\htdocs\phpQuery\phpQuery\phpQuery\plugins\WebBrowser.php on line 360` error. tnx!
0
[ 2, 13, 26120, 8190, 93, 13, 8, 24969, 16495, 10840, 800, 3726, 3726, 184, 20, 24969, 16495, 10840, 568, 13, 26120, 8190, 93, 6596, 60, 31, 57, 14, 249, 1797, 15, 47, 14, 10840, 1746, 103, 22, 38, 2260, 20, 170, 9, 9, 13, 26120, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Eclipse javafile color === I dont know why but this is driving me insane, does anyone know why this is happening? ![enter image description here][1] first the whole thing is red, everyone of my java files (only in this one project) is like this. second, that dot next to the D, that is not the "edited without save" asterisk, it still shows up there after I edit something along side this dot. How do I remove both the dot and the red and go back to the white background? Thanks [1]: http://i.stack.imgur.com/owhD7.png
0
[ 2, 11652, 8247, 16877, 1665, 800, 3726, 3726, 31, 1049, 143, 483, 47, 48, 25, 2891, 55, 9405, 15, 630, 1276, 143, 483, 48, 25, 4942, 60, 13, 187, 2558, 13679, 1961, 5318, 235, 500, 2558, 165, 500, 64, 14, 979, 584, 25, 402, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
is it possible to use VS Profilier (Perfomance Wizard) on machine without VS installed? === I have perfomance issue that can not be reproduced on my development machine. Issue only reproduce on "deployement" machine so I have to run profilier right there (normally I use development machine for such type of work). Can I do that remotely? For example can I use Visual Studio UI from my development machine to run profilier via network on deployment machine? Probably I can install only "profilier" part (without VS) to deployment machine and run it from command-line via RDP? What options do I have? Of course I can just install VS on deployment machine but I want to install as less things as possible as this machine is used for business and VS is not requried there. **upd** just googled Standalone Profilier http://www.microsoft.com/en-us/download/details.aspx?id=23205 Probably this is what I need...
0
[ 2, 25, 32, 938, 20, 275, 4611, 8721, 49, 10491, 13, 5, 1432, 4120, 79, 2416, 10276, 6, 27, 1940, 366, 4611, 4066, 60, 800, 3726, 3726, 31, 57, 416, 4120, 79, 2416, 1513, 30, 92, 52, 44, 25189, 27, 51, 522, 1940, 9, 1513, 104, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Spinner doesn't work if is called from button === This is my code: String[] spinnerPresets = { "Test", "Test1", "Test2" }; final Spinner s1 = new Spinner(this); ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_dropdown_item_1line, spinnerPresets); s1.setAdapter(arrayAdapter); s1.setPrompt("Presets"); s1.setOnItemSelectedListener( new OnItemSelectedListener() { public void onItemSelected(AdapterView<?> arg0, View arg1, int position, long arg3) { if(position==0) { Toast.makeText(Activity.this, "TEST", Toast.LENGTH_LONG).show(); } if(position==1) { Toast.makeText(Activity.this, "TEST1", Toast.LENGTH_LONG).show(); } if(position==2) { Toast.makeText(Activity.this, "TEST2", Toast.LENGTH_LONG).show(); } } public void onNothingSelected(AdapterView<?> arg0) { } }); b2.setOnClickListener(new OnClickListener() { public void onClick(View paramView) { s1.performClick(); } }); When I click on button, it shows my spinner, but problem is that it doesn't show Toast message when I select some of these items in that spinner.
0
[ 2, 3310, 1031, 1437, 22, 38, 170, 100, 25, 227, 37, 5167, 800, 3726, 3726, 48, 25, 51, 1797, 45, 3724, 2558, 500, 3310, 1031, 11973, 6095, 800, 13, 1, 13, 7, 10543, 7, 15, 13, 7, 10543, 165, 7, 15, 13, 7, 10543, 135, 7, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C# winform ListView, How To Prevent User From Resizing The Columns WIdths? === :) I have a ListView In My Winform that has 4columns, Name, Money, ID and Level. The problem is when I run my app, I still have the ability to mess with the columns widths and change them. I searched And found that I should do something like this: private void listView1_ColumnWidthChanging(object sender, ColumnWidthChangingEventArgs e) { e.Cancel = true; e.NewWidth = listView1.Columns[e.ColumnIndex].Width; } But The Problem is that When I debugged and Changed the columns widths, This event Didn't even Fire ! Why it didn't fire ? And How Can I make the Columns Widths Fixed ? Thank You SO Much In Advance.
0
[ 2, 272, 5910, 628, 4190, 968, 4725, 15, 184, 20, 2501, 4155, 37, 10719, 3335, 14, 7498, 9456, 18, 60, 800, 3726, 3726, 13, 45, 6, 31, 57, 21, 968, 4725, 19, 51, 628, 4190, 30, 63, 268, 716, 4404, 2172, 15, 204, 15, 875, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Facebook Auth (Not a front end system, its back end only) === We have an existing system which previously would sync our multiple Twitter + FB account. As of a few nights ago we've been unable to resume it for more than 2 hours at a time (default token time). Our app seems to be different from all in the Facebook documentation. There is no front end. It's a system run on CRON and ideally I want it to renew tokens by itself, I wouldn't expect there to be any cookies set. Can anyone shed some light on whether the process is different for what I'm wanting to achieve.
0
[ 2, 9090, 10343, 96, 13, 5, 1270, 21, 431, 241, 329, 15, 82, 97, 241, 104, 6, 800, 3726, 3726, 95, 57, 40, 3149, 329, 56, 1343, 83, 6063, 150, 318, 1886, 10623, 2754, 13, 13478, 2176, 9, 28, 16, 21, 310, 6472, 1464, 95, 22, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Does keymando 1.2.2 support OSX 10.8 Mountain Lion? === Just installed the trial version of Keymando 1.2.2 on an instance of OSX Mountain Lion. Nothing seems to work - I add simple key maps, reload config, make sure Keymando is enabled - nothing happens. If 1.2.2 should be fine on Mountain Lion, does anyone have any debug tips?
0
[ 2, 630, 1246, 177, 537, 137, 9, 135, 9, 135, 555, 13, 759, 396, 332, 9, 457, 1286, 6023, 60, 800, 3726, 3726, 114, 4066, 14, 2178, 615, 16, 1246, 177, 537, 137, 9, 135, 9, 135, 27, 40, 4851, 16, 13, 759, 396, 1286, 6023, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Recommended book for advanced iphone development + Xcode === I'm interested about all objective c code, but especially with XML for easy manage of data, also forms, etc. And specially to create my own gallery, I know there isn't a special book for that but I it will very helpful to know more advanced code to at least think how to do it, because now I only had made one with UIScrollView and several UIImages. Thanks,
0
[ 2, 5773, 360, 26, 2255, 21024, 522, 2754, 993, 9375, 800, 3726, 3726, 31, 22, 79, 3158, 88, 65, 7038, 272, 1797, 15, 47, 1118, 29, 23504, 26, 2010, 4705, 16, 1054, 15, 67, 1997, 15, 2722, 9, 17, 13444, 20, 1600, 51, 258, 2246, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get a sequence of finer and finer granularity: 1, 16, 8, 4, 12, ...? === If there is a test, where a delta needs to be added to a particular value, the delta can be tested in this sequence: 1, 2, 3, ... 15, 16. But to test with finer and finer granularity, delta can be this sequence: 1, 16, 8, 4, 12, ... (that is, we try 1, and 16, which are two extreme cases, and then we try 8, which is a middle number, and then 4, which is middle of 1 and 8, and then 12, which is middle of 8 and 16). How can this sequence be generated elegantly without duplicates? Right now I have this in Ruby 1.9.3: $deltas = [] def getMidPoint(a, b) return if (a - b).abs <= 1 midPoint = ((a + b) / 2).to_i puts "a = #{a}, b = #{b}, midPoint = #{midPoint}" $deltas << midPoint getMidPoint(a, midPoint) getMidPoint(midPoint, b) end $deltas << 1 $deltas << 16 getMidPoint(1, 16) p $deltas but the result is: [1, 16, 8, 4, 2, 3, 6, 5, 7, 12, 10, 9, 11, 14, 13, 15] I can actually add a "level" to the number (stored as a tuple): so for 8, it is level 2, and for 12, it is also level 2 (the level is the recursion level), and then at the end, I can collect the numbers with level 1, and then level 2, etc, to get the final array, and it should work, but is there a better solution?
0
[ 2, 184, 20, 164, 21, 4030, 16, 1123, 139, 17, 1123, 139, 5659, 7451, 856, 45, 137, 15, 347, 15, 469, 15, 268, 15, 390, 15, 13, 9, 9, 9, 60, 800, 3726, 3726, 100, 80, 25, 21, 1289, 15, 113, 21, 6395, 2274, 20, 44, 905, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
With WPF, can I use multiple grids to occupy the same? === I’m new to WPF, and I’m planning a desktop app that will have multiple screens for each function it provides. Each “screen” will occupy the same space, just not at the same time. I could use a tab control, but want to try for a different look. I was thinking I could create multiple grids, and just move them in and out via changing the margins property with animation. Is this possible? Or is there a better option? Thanks
0
[ 2, 29, 619, 7721, 15, 92, 31, 275, 1886, 7354, 18, 20, 12290, 14, 205, 60, 800, 3726, 3726, 31, 1, 79, 78, 20, 619, 7721, 15, 17, 31, 1, 79, 2334, 21, 17404, 4865, 30, 129, 57, 1886, 14236, 26, 206, 1990, 32, 1927, 9, 206, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MySQL, c3p0 and Apache Felix integration === I integrate MySQL into Apache Felix. First, I use bndtools to generate MySQL bundle and c3p0 bundle. Then I add them all into my Apache Felix environment. I create a class for connection pool like below: <pre> public final class C3P0Manager { private static C3P0Manager instance; private DataSource pooled; private C3P0Manager() { // Of course, it is better to put all properties into a configuration file. // I just list them here for easy reading. ComboPooledDataSource cpds = new ComboPooledDataSource(); cpds.setDriverClass("com.mysql.jdbc.Driver")); cpds.setJdbcUrl("jdbc:mysql://localhost/my-database?autoReconnect=true&characterSetResults=UTF-8&characterEncoding=UTF-8&useUnicode=yes"); cpds.setUser("user"); cpds.setPassword("password"); cpds.setInitialPoolSize(3); cpds.setMaxPoolSize(15); cpds.setMaxIdleTime(1800); cpds.setAutoCommitOnClose(true); pooled(cpds); } public static C3P0Manager instance() throws Exception { if (instance == null) { instance = new C3P0Manager(); } return instance; } public DataSource getPooled() throws SQLException { return pooled; } } </pre> It works fine if I run JUnit test. But failed when running on my Apache Felix bundle with exception message. Usage in Activator class: <pre> Class.forName("com.mysql.jdbc.Driver"); DataSource pooled = C3P0Manager.instance().getPooled(); Connection con = pooled.getConnection(); PreparedStatement stmt = null; ResultSet rs = null; int total; try { stmt = con.prepareStatement("SELECT count(*) FROM users", Statement.NO_GENERATED_KEYS); rs = stmt.executeQuery(); if (rs.next()) { total = rs.getInt(1); } } catch (Exception e) { e.printStackTrace(); } finally { try { rs.close(); stmt.close(); } catch (Exception ex) { ex.printStackTrace(); } } System.out.println("total = " + total); </pre> Error messages: <pre> java.sql.SQLException: Connections could not be acquired from the underlying database! at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:529) at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128) ... Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source. at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1319) at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557) at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477) at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525) ... </pre> MySQL works if I just use (without c3p0): <pre> Class.forName("com.mysql.jdbc.Driver"); Connection con = DriverManager.getConnection("jdbc:mysql://localhost/my-database?autoReconnect=true&characterSetResults=UTF-8&characterEncoding=UTF-8&useUnicode=yes","user","password"); Statement statement = connect.createStatement(); ResultSet resultSet = statement.executeQuery("SELECT count(*) FROM users"); </pre> So I think the problem is due to c3p0. Please help me. Thanks.
0
[ 2, 51, 18, 22402, 15, 272, 240, 306, 387, 17, 17140, 8217, 8078, 800, 3726, 3726, 31, 18399, 51, 18, 22402, 77, 17140, 8217, 9, 64, 15, 31, 275, 334, 706, 20799, 18, 20, 7920, 51, 18, 22402, 10194, 17, 272, 240, 306, 387, 10194,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
GETTING ERROR WHILE INSTALLING APPLICATION === HELLO EVERYONE I HAVE MADE AN APPLICATION. I HAVE USED GOOGLE API TARGET 4.0 BUT I I RUN THE ACTIVITY ,INSTEAD OF GETTING INSTALL IT GIVES ME ERROR. I HAVE ALSO KILL THE SERVER AND THEN START IT BUT STILL I AM GETTING SAME ERROR. Installation error: INSTALL_FAILED_MISSING_SHARED_LIBRARY
0
[ 2, 1017, 7019, 133, 25429, 3010, 800, 3726, 3726, 10975, 1266, 31, 57, 117, 40, 3010, 9, 31, 57, 147, 8144, 21, 2159, 2935, 268, 9, 387, 47, 31, 31, 485, 14, 2358, 13, 15, 108, 6849, 16, 1017, 16146, 32, 2352, 55, 7019, 9, 31,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to read text file and change color & font size of odd line and even line === in the name of GOD hello i have a text file and want to read and show into textview with different font and color for odd line and even line , how to change this reading code : code : File sdcard = Environment.getExternalStorageDirectory(); File file = new File(sdcard,"komeil.txt"); StringBuilder text = new StringBuilder(); try { BufferedReader br = new BufferedReader(new FileReader(file)); String line; text.append('\n'); while ((line = br.readLine()) != null) { text.append(line); text.append('\n'); } } catch (IOException e) { //You'll need to add proper error handling here } like this text file : file : hello people i am student //black i want to rad this file //green different color //black different font //green how to do this //black ... //green ... //black . //green . //black . //green
0
[ 2, 184, 20, 1302, 1854, 3893, 17, 753, 1665, 279, 9978, 1072, 16, 4210, 293, 17, 166, 293, 800, 3726, 3726, 19, 14, 204, 16, 701, 10975, 31, 57, 21, 1854, 3893, 17, 259, 20, 1302, 17, 298, 77, 1854, 4725, 29, 421, 9978, 17, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to search for all points in a given raduis of a zipcode with google maps api? === Is there a way with Google Maps API, that I can find all red balloon points (addresses pinned on my google map) within a given radius (in miles) of a certain zip code? For example... The first input box asks you for your zip code. Type it in. The second input box (a section box with <options>) asks you for the radius in miles, 10 miles, 20 miles, 30 miles..etc Then you click submit Then the google map shows all the addresses (which were stored from a json file), on to the google map in red balloons. Is there free learning material on the web that will help me to build something like this? I've been reading google maps api stuff all morning and haven't found any examples that can offer this. Thanks!
0
[ 2, 184, 20, 2122, 26, 65, 819, 19, 21, 504, 4944, 5661, 18, 16, 21, 12133, 9375, 29, 8144, 6867, 21, 2159, 60, 800, 3726, 3726, 25, 80, 21, 161, 29, 8144, 6867, 21, 2159, 15, 30, 31, 92, 477, 65, 402, 10876, 819, 13, 5, 2795...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Writing a mean loop === My data looks like this: Date Tank Time Female.in.Middle Female.in.R.assoc Female.in.L.assoc R.side.of.divider L.side.of.Divider Tank.1 Date.Entered 1 4-Mar I1 1030 0.3020 0.3275 0.3698 0.0000 0 I1 27-Feb 2 4-Mar I2 1030 0.0039 0.2155 0.6408 0.1338 0 I2 27-Feb 3 19-Mar I1 1030 0.0000 0.0000 0.0000 0.9985 0 I1 7-Mar 4 19-Mar I1 130 0.0000 0.0000 0.0000 0.9967 0 I1 7-Mar 5 19-Mar I2 1045 0.4214 0.4179 0.1550 0.0000 0 I2 7-Mar 6 19-Mar I2 145 0.4185 0.2078 0.3712 0.0000 0 I2 7-Mar M.L.name Male.L.Length Male.L.Weight M.R.name Male.R.Length Male.R.Weight Side.of.Spawn F.Length F.Weight F.name 1 orange 1 6.5 11.2 purple 1 7.1 15.41 L 1a 2 green 1 7.4 16.0 blue 1 7.3 14.56 N/A 1b 3 orange 1 6.5 11.2 purple 1 7.1 15.41 R 2a 4 orange 1 6.5 11.2 purple 1 7.1 15.41 R 2a 5 green 1 7.4 16.0 blue 1 7.3 14.56 N/A 2b 6 green 1 7.4 16.0 blue 1 7.3 14.56 N/A 2b last.female.spawn.date spawn.date.in.paradigm X d.in.p dbs daf X.1 X.2 X.3 X.4 1 20-Feb 7-Mar 6 3 13 NA NA NA NA 2 20-Feb 7-Mar 6 3 13 NA NA NA NA 3 29-Feb 18-Mar 12 -1 19 NA NA NA NA 4 29-Feb 18-Mar 12 -1 19 NA NA NA NA 5 29-Feb no 12 #VALUE! 19 NA NA NA NA 6 29-Feb no 12 #VALUE! 19 NA NA NA NA > I would like to run a loop to find the cumulative (as in 'r.i<-cbind(day.i$Female.in.R.assoc + day.i$R.side.of.divider) l.i<-cbind(day.i$Female.in.L.assoc + day.i$L.side.of.Divider))' mean and SE for each day that a given individual spends on the 'chosen' side of the setup.. I have started to write the code but have gotten stuck pretty early on, here is what I have: ID<-unique(jd$dbs) for(i in 1:length(IDs)){ d.i<-which(jd$dbs==IDs[i]) day.i<-jd[d.i,] r.i<-cbind(day.i$Female.in.R.assoc + day.i$R.side.of.divider) l.i<-cbind(day.i$Female.in.L.assoc + day.i$L.side.of.Divider) mean.i<-mean(r.i) mean.i<-mean(l.i) How can I have the loop select the 'chosen' (as in 'jd$Side.of.Spawn) side..I want to calculate a mean and SE for time spent on chosen side for each day regardless of weather jd$side.of.spawn is 'L' or 'R' At the end I would have a 5 number summary with SE for each day of time spent on the chosen side.. Does that make sense?
0
[ 2, 1174, 21, 884, 5293, 800, 3726, 3726, 51, 1054, 1879, 101, 48, 45, 1231, 3569, 85, 1064, 9, 108, 9, 17927, 1064, 9, 108, 9, 139, 9, 19842, 150, 1064, 9, 108, 9, 255, 9, 19842, 150, 761, 9, 1416, 9, 1041, 9, 11390, 1157, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
clickable array of 2D shape === I have an array of 2D object, I want to make those object clickable, on mouse click it have to return their own index in the array, and then I want to change the color of clicked object. How's suppose I do that, I really need advice :)
0
[ 2, 10840, 579, 7718, 16, 172, 43, 2539, 800, 3726, 3726, 31, 57, 40, 7718, 16, 172, 43, 3095, 15, 31, 259, 20, 233, 273, 3095, 10840, 579, 15, 27, 7567, 10840, 32, 57, 20, 788, 66, 258, 4348, 19, 14, 7718, 15, 17, 94, 31, 25...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to create a custom component which having high level ui components in LWUIT-J2ME? === <p> Im developing a mobile application in J2ME with the configuration **CLDC1.1,MIDP2.0** and using **LWUIT**. <p>Now i want to create a Custom Component (user defined component) which is added in the form,etc (in LWUIT) <p>Inside the custom component there is 2 combo boxes and 1 textfield. <p>I does not know how to do.Because in LWUIT the custom component is derived from Component class.But their we need to paint.We cannot able to add the high level UI components such as **Label,TextField,ComboBox**. <p>So please help me .To create a custom component which having one or more high level UI components. <p>All are welcome to give their valuable ideas.
0
[ 2, 184, 20, 1600, 21, 5816, 5912, 56, 452, 183, 662, 13, 5661, 5090, 19, 13, 23281, 11193, 8, 728, 135, 790, 60, 800, 3726, 3726, 13, 1, 306, 1, 797, 3561, 21, 3241, 3010, 19, 487, 135, 790, 29, 14, 8091, 13, 1409, 5316, 7201,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
onbeforeunload event message error in IE? === I use the following event to call when the application will close in Internet Explorer.It was work Fine that means it will call when i close IE browser Tab.And My problem is if I close the window I receive the message from Webpage,I receive the 'False' statement with that message.If I remove the return false statement in this function I didn't access the function.How to hide the False statement from the Message Box? window.onbeforeunload = function(event) { if($.browser.msie) { alert('Test'); return false; } }
0
[ 2, 27, 12750, 1020, 8294, 807, 2802, 7019, 19, 13, 660, 60, 800, 3726, 3726, 31, 275, 14, 249, 807, 20, 645, 76, 14, 3010, 129, 543, 19, 2620, 8520, 9, 242, 23, 170, 1123, 30, 1108, 32, 129, 645, 76, 31, 543, 13, 660, 16495, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's causing my Rubymotion app to Crash? === Since I upgraded Rubymotion to 1.17 my app has started crashing after a second or so of becoming active There's no error message being displayed and I can't see what's wrong from the [crash log](https://gist.github.com/b02f3707105b4ab070d5) can anyone help?
0
[ 2, 98, 22, 18, 3242, 51, 10811, 15745, 4865, 20, 4597, 60, 800, 3726, 3726, 179, 31, 9958, 10811, 15745, 20, 137, 9, 1053, 51, 4865, 63, 373, 14604, 75, 21, 153, 54, 86, 16, 1535, 1348, 80, 22, 18, 90, 7019, 2802, 142, 6115, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What in TtsService could explain the lack of onUtteranceCompleted() for playEarcon()? === A while ago, I discovered that `playEarcon()` [never produces][1] `onUtteranceCompleted()`. At the time I just interpreted the documentation that said "Called when an utterance has been **synthesized**" as `onUtteranceCompleted()` being not applicable for earcons because, an earcon isn't really a result of TTS synthesization. But looking again Android's source code, I simply can't find an explanation that would justify my interpretation. A few facts about [my test jig][2]: 1. `onUtteranceCompleted()` always arrives for utterance ID preceding the earcon. That utterance is an ordinary TTS utterance, not an earcon. 2. The earcon after that **does** play out (i.e. exactly as intended). 3. `onUtteranceCompleted()` for that earcon **never** shows up. This is very consistent and reproducible behavior. Delving deep into the TtsService source code, there seem to be only 2 methods that could affect the arrival (or absence) of `onUtteranceCompleted()`: 1. [TtsService.processSpeechQueue()][3] 2. [TtsService.onCompletion()][4] If you examine that code, you will see that a 3rd candidate, [TtsService.getSoundResource()][5] is ruled out (as being responsible for the lack of onUtteranceComplete for my earcon) because of fact #2 above: The earcon always plays, hence `getSoundResource()` cannot possibly return null. Using the same logic, the 1st candidate, [TtsService.processSpeechQueue()][6], can also be ruled out, for the same fact #2: The earcon always plays, hence the following 2 critical statements are always executed: 1108 mPlayer.setOnCompletionListener(this); ... 1111 mPlayer.start(); So, we are left with the 2nd candidate only, [TtsService.onCompletion()][7], as a possible explanation for why a `playEarcon()` [never produces][8] `onUtteranceCompleted()`: public void onCompletion(MediaPlayer arg0) { // mCurrentSpeechItem may become null if it is stopped at the same // time it completes. SpeechItem currentSpeechItemCopy = mCurrentSpeechItem; if (currentSpeechItemCopy != null) { String callingApp = currentSpeechItemCopy.mCallingApp; ArrayList<String> params = currentSpeechItemCopy.mParams; String utteranceId = ""; if (params != null) { for (int i = 0; i < params.size() - 1; i = i + 2) { String param = params.get(i); if (param.equals(TextToSpeech.Engine.KEY_PARAM_UTTERANCE_ID)) { utteranceId = params.get(i + 1); } } } if (utteranceId.length() > 0) { dispatchUtteranceCompletedCallback(utteranceId, callingApp); } } processSpeechQueue(); } In there, there are only 2 conditions that would fail to produce [dispatchUtteranceCompletedCallback()][9]: 1. currentSpeechItemCopy == null 2. utteranceId.length() == 0 But I know for sure that condition #2 can be ruled out because I log all utteranceIds and the earcon's are definitely there. So, it looks like that by the time an earcon's [onCompletion()][10] is called, earcon's `mCurrentSpeechItem` is null? Why? Does this make sense at all? Any suggestions or other explanations for solving this mystery? [1]: http://stackoverflow.com/a/10144969 [2]: http://stackoverflow.com/q/10134646 [3]: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/tts/TtsService.java#TtsService.processSpeechQueue%28%29 [4]: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/tts/TtsService.java#708 [5]: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/tts/TtsService.java#975 [6]: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/tts/TtsService.java#TtsService.processSpeechQueue%28%29 [7]: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/tts/TtsService.java#708 [8]: http://stackoverflow.com/a/10144969 [9]: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/tts/TtsService.java#TtsService.dispatchUtteranceCompletedCallback%28java.lang.String,java.lang.String%29 [10]: http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/tts/TtsService.java#TtsService.onCompletion%28android.media.MediaPlayer%29
0
[ 2, 98, 19, 13, 38, 38, 18, 11449, 110, 3271, 14, 1792, 16, 27, 13274, 2416, 15990, 43, 5, 6, 26, 6568, 731, 1126, 5, 6, 60, 800, 3726, 3726, 21, 133, 1464, 15, 31, 1848, 30, 13, 1, 9897, 731, 1126, 5, 6, 1, 636, 9018, 6700...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Family.Show project: insert data from web service === I am working in company which has more than 5,000 personal. We need to build a visual tree which will show most personal in related view. Some worker are related with department boss, that boss are related with somebody bigger and etc till the general boss. I am trying to use [Family.Show ][1] for this. Family.Show uses XML based relations. So I have all the personals (and who are their bosses ant etc) in our MSSQL, so I wrote asp.net web service which calling personals in as related mode. As I understood now I need to put that calling data to the program. I can create same type XML (as program uses) and just open it in program, but I need do it without creating XML, just pressing some button and see the tree in the program. Just give ideas what to do or how to do. Thank you. [1]: http://familyshow.codeplex.com/
1
[ 2, 190, 9, 9303, 669, 45, 14692, 1054, 37, 2741, 365, 800, 3726, 3726, 31, 589, 638, 19, 237, 56, 63, 91, 119, 11646, 1319, 9, 95, 376, 20, 1895, 21, 3458, 1541, 56, 129, 298, 127, 1319, 19, 1597, 1418, 9, 109, 7444, 50, 1597,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Trying to find all the kernel modules needed for my machine using shell script === I'm developing kernel modules right now, and the build times are starting to get under my skin. As a side effect i'm taking way too many "coffee" breaks during builds. So i was looking for a way to build only the stuffs i need for my platform. Chapter 7 and 8 of "linux kernel in a nutshell" gave a good detail of how to do that by hand. Its a good read : http://www.kroah.com/lkn/ But Although i understand the stuffs, this is still a lot of tweaks to make that work. 2.6.32 and later kernels added a new target "make localmodconfig". which scans through "lsmod" and change the .config appropriately. So i thought i found my "automation". But this perl script has some problem too. This thread describes the problems : https://bbs.archlinux.org/viewtopic.php?pid=845113 There was also a proposed solution which apparently worked for others , is to run the script directly instead of using make's target. Although for me, make localmodconfig does not work at all. its because of the following : $make clean $make mrproper $cp /boo/config-'uname -r' .config $make localmodconfig and it haults with vboxguest config not found!! nf_defrag_ipv6 config not found!! vboxsf config not found!! vboxvideo config not found!! The thing is my kernel development environment is inside virtualbox. These vbox modules were installed when i chose to install "virtualbox guest addtion". And the netfilter module might be a Distribution specific module(Lot of netfilter modules are not part of the mainline kernel, so its not a shock to me), which is not included in mainline kernel. Now the workaround this obviously unloading these module and trying again. But I'm thinking if there is patch for the "streamline_config.pl" which will enable the user to exclude certain modules if s/he wants. Problem is i have "zero" knowledge about perl and i like it that way. So my problems in "nutshell" 1) Patching streamline_config.pl so i can give a list of module name as argument which it will exclude from processing the config file. 2) I've tried to run the script by myself. But running it directly fails with a error. [root@kernel-host-rh6 linux-2.6]# sh scripts/kconfig/streamline_config.pl scripts/kconfig/streamline_config.pl: line 45: my: command not found scripts/kconfig/streamline_config.pl: line 47: my: command not found scripts/kconfig/streamline_config.pl: line 48: chomp: command not found scripts/kconfig/streamline_config.pl: line 50: syntax error near unexpected token `(' scripts/kconfig/streamline_config.pl: line 50: `my @searchconfigs = (' Again my "zero" knowledge about perl does not helping my case. Additional info: I have faced the same thing in 2.6.32, 2.6.33, 2.6.35, 3.4, 3.4.rc1 .....(I constantly switch version for various reasons, everywhere the problem is same) You can access the script from kernel.org gitweb: http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=blob;f=scripts/kconfig/streamline_config.pl;h=bccf07ddd0b67a0e2f761fd5721f274a49bf9bbb;hb=HEAD Its from 3.4.0. `git log --stat scripts/kconfig/streamline_config.pl` shows some activity recently on this file. But my problem persists.
0
[ 2, 749, 20, 477, 65, 14, 17007, 17113, 851, 26, 51, 1940, 568, 3593, 3884, 800, 3726, 3726, 31, 22, 79, 3561, 17007, 17113, 193, 130, 15, 17, 14, 1895, 436, 50, 1422, 20, 164, 131, 51, 1188, 9, 28, 21, 270, 1590, 31, 22, 79, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Powershell - used CPU%, Disk% & memory % === i am trying to get these 3 counters thru powershell, could you help ? something like below.. Hostname1 : CPU% : 75% Hostname1 : MEM% : 55% Hostname1 : Disk1 % : 15% Hostname1 : Disk2 % : 10% Hostname1 : Disk3 % : 13% Hostname1 : Disk4 % : 12% Hostname2 : CPU% : 75% Hostname2 : MEM% : 55% Hostname2 : Disk1 % : 11% Hostname2 : Disk2 % : 15% Hostname2 : Disk3 % : 15% Note: i could not find a counter for %used/memory so i am not going thru performance counters. Thanks in advance.
0
[ 2, 414, 15984, 13, 8, 147, 17578, 11881, 15, 8582, 11881, 279, 1912, 13, 11881, 800, 3726, 3726, 31, 589, 749, 20, 164, 158, 203, 2105, 18, 19637, 414, 15984, 15, 110, 42, 448, 13, 60, 301, 101, 1021, 9, 9, 2015, 7259, 165, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
is magneto returning incorrect information ? I just need name and email address of the logged in customer === I have a website with live chat functionality. Yesterday I have been asked to pass email address and the name of the logged into the user into the Javascript Tracking variable code placed in the head section of the website. So that the operators could see who is on the website and whom are they talking to without any need to ask about their information. So I passed the information from Magneto into the Javascript code but now I see this very **strange thing** happening. For example, > If I am logged in with credentials Name = John Email = > john12@yahoo.com Then This name and email variable values are changing with the change of pages. For example if I click on any product page the variable values which I am passing changes to some other user's information. > Name becomes Ricky Email becomes ricky23@gmail.com this variable values are kept on changing back to john and from john to something else with the change of pages. So operator does not have any idea whom are they talking because the values are kept on changing. Also, user ricky or who ever it changes to also exist in the database. so it is picking up random person from the database. This is what i did to pass the code to javascript. Please let me know if that is not the right code to pass the information. Please check the php code I am using to fetch information from Magneto. Please provide some assistance. Thanks in advance. <script type="text/javascript"> if (typeof(lpMTagConfig) == "undefined"){ lpMTagConfig = {};} if (typeof(lpMTagConfig.visitorVar) == "undefined"){ lpMTagConfig.visitorVar = [];} lpMTagConfig.visitorVar[lpMTagConfig.visitorVar.length] = 'Email=<?php echo Mage::helper('customer')->getEmail() ;?>'; lpMTagConfig.visitorVar[lpMTagConfig.visitorVar.length] = 'Name=<?php echo Mage::helper('customer')->getName(); ?>'; </script>
0
[ 2, 25, 24991, 2485, 18867, 676, 13, 60, 31, 114, 376, 204, 17, 8517, 3218, 16, 14, 13, 19287, 19, 7705, 800, 3726, 3726, 31, 57, 21, 2271, 29, 515, 6615, 18548, 9, 7124, 31, 57, 74, 411, 20, 1477, 8517, 3218, 17, 14, 204, 16, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Making a SOAP request === I am new to PHP - Started little over a month back with PHP, JS and HTML with a few hours a day. I have done a lot of homework on this but can't make head and tail out when it comes to implementation. I don't have a hardcore programmer who could sit with me on this, hence here. But I am sure if this question is answered, it would help a lot of newbir and experienced programmers there The Problem - I can understand the concept of SOAP but cant makout how to make a simple soap request. What would be the steps in PHP. /php SOAP extention is properly installed Create a new SOAP client : $variable = new SoapClient ; $inputxml = " the input XML file as a string "; varibale__doRequest($input xml, "string location -?? I have the XML input as a variable.. what location do i specify.. need to enable cache and a cache location ??,...) Thats the php function i am trying to use - how to use this http://www.php.net/manual/en/soapclient.dorequest.php // PHP code to obtain response as XML // How to store the reponse in a variable as a string Can someone demonstrate a simple SOAP request using PHP on a blog. I couldnt find one example, all focus on creating SOAP services or SOAP servers.. I just wanna create a SOAP client and make a request in PHP - any detailed laymnas guide - PHP specific ?? This is the SOAP service I am struggling with - Find Company by Keyword at http://developer.dnb.com/service-directory/sales/16682663-1.html If someone could write a single post blog explaning the details, would be immensely grateful PS: Not sure if my frustration is justified, but SOAP and REST concepts make programming sound like Rocket Science.. I have spent over a week, 8 hrs a day, dont have a clear idea on making SOAP requests though I have a fair understanding of the SOAP concept. As far as REST goes, it has me super confused - i don wanna touch that thing here at the moment.
0
[ 2, 544, 21, 6447, 3772, 800, 3726, 3726, 31, 589, 78, 20, 13, 26120, 13, 8, 373, 265, 84, 21, 1617, 97, 29, 13, 26120, 15, 487, 18, 17, 13, 15895, 29, 21, 310, 974, 21, 208, 9, 31, 57, 677, 21, 865, 16, 22334, 27, 48, 47, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Regexp replace string surronded by spacial characters only === I am trying to replace a string that is surrounded by non word characters. My target string is ;ab.ab,abb... And I want to get result of ;[ab].[ab],abb... Here is my pattern s/([^\w]+)(ab)([^\w]+)/$1[$2]$3/g But it does not replace second match because first match is ;ab. and second match is done on tail of ab,abb... Any ideas?
0
[ 2, 7953, 6899, 3934, 3724, 3645, 2075, 7424, 34, 6954, 19034, 1766, 104, 800, 3726, 3726, 31, 589, 749, 20, 3934, 21, 3724, 30, 25, 3736, 34, 538, 833, 1766, 9, 51, 2935, 3724, 25, 13, 73, 2297, 9, 2297, 15, 58, 3490, 9, 9, 9,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to optimize the following oracle query to get the from and to country name in one join only? === Below is the query I am trying to run. select from_country_id, to_country_id, fromCountry.country_name as from_country_name, to_country_id.country_name as to_country_name from TourDetails t left join country fromCountry on fromCountry.id = t. from_country_id left join country toCountry on toCountry.id = t. to_country_id I have a tourdetails table where i save the from country id and to country id. I have another country table which has the country id and country name. now when i query the tourdetails table I need to get the country name as well. For this I am using left join with the countyry table twice. Is there any way I do not have to join this country table twice and still get the country name for both the from and to country?
0
[ 2, 184, 20, 22864, 14, 249, 15759, 25597, 20, 164, 14, 37, 17, 20, 475, 204, 19, 53, 1865, 104, 60, 800, 3726, 3726, 1021, 25, 14, 25597, 31, 589, 749, 20, 485, 9, 5407, 37, 1, 10741, 1, 1340, 15, 20, 1, 10741, 1, 1340, 15, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
regex character replacement with space === I have a javascript function that forces a space after every 26 letters function nospaces(t) { if(t.value.match(/\S{27}/g)) { { //alert('Sorry, you can not enter a word more than 26 characters long'); t.value[5]=t.value.replace(/\S{27}/g,''); } } Now i want that every 27th letter that user enter instead of space should replaced by space
0
[ 2, 7953, 1706, 925, 4610, 29, 726, 800, 3726, 3726, 31, 57, 21, 8247, 8741, 1990, 30, 879, 21, 726, 75, 352, 1262, 2516, 1990, 90, 5582, 18, 5, 38, 6, 13, 1, 100, 5, 38, 9, 15165, 9, 12280, 5, 118, 1, 18, 1, 2567, 1, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible to change browser icon(in taskBar) using C# for website? === My client asked me to **change the default Browser Logo to Website Logo(in task Bar)**.I have searched for the various ways to achieve it.But all my trails went wrong.May i know **whether it possible for a C# ASP Website**.Please help me to complete this. ![enter image description here][1] [1]: http://i.stack.imgur.com/sfejw.png I don't know this is a correct question or not.If you said its possibility,It might be very helpful for me. Thanks, Rakesh.
0
[ 2, 25, 32, 938, 20, 753, 16495, 9801, 5, 108, 3005, 1850, 6, 568, 272, 5910, 26, 2271, 60, 800, 3726, 3726, 51, 6819, 411, 55, 20, 13, 1409, 16229, 14, 12838, 16495, 6449, 20, 2271, 6449, 5, 108, 3005, 748, 6, 1409, 9, 49, 57,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to use in-page HTML anchors with hashbang URLs (in GWT)? === I have a little problem with implementing in-page HTML anchors while also having bookmarkable URLs via hashbang. The description is easy: - I visit some URL of my application: http://www.mypage.com/Test.html#!mycontent On this page there is a lot of text and I need some HTML anchors for navigation. In old-style HTML I'd write `<a href="#myAnchor">AnchorText</a>`. - But when I click this link in my GWT application, the URL changes to: http://www.mypage.com/Test.html#myAnchor GWT Platform recognized the change and throws me back to my `DefaultPlace`. That's clear because it can't associate the URL to a presenter. So now the (simple) question is: How can I use in-page navigation while also having hashbang URLs?
0
[ 2, 184, 20, 275, 19, 8, 6486, 13, 15895, 6265, 18, 29, 19170, 10828, 13, 911, 7532, 13, 5, 108, 14094, 38, 6, 60, 800, 3726, 3726, 31, 57, 21, 265, 1448, 29, 17333, 19, 8, 6486, 13, 15895, 6265, 18, 133, 67, 452, 360, 4527, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Going wrong while adding items to list view from serial port.. === I am reading the serial port to read the messages present in the gsm modem, and then displaying them in a listview. But i am ending up having a list view with redundant items. I am unable to understand why this is happening.. { port.DiscardOutBuffer(); port.DiscardInBuffer(); string res; Thread.Sleep(5000); res = port.ReadExisting(); ShortMessageCollection messages = new ShortMessageCollection(); Regex r = new Regex(@"\+CMGL: (\d+),""(.+)"",""(.+)"",(.*),""(.+)""\r\n(.+)\r\n"); Match m = r.Match(res); while (m.Success) { ShortMessage msg = new ShortMessage(); msg.Index = m.Groups[1].Value; msg.Status = m.Groups[2].Value; msg.Sender = m.Groups[3].Value; msg.Alphabet = m.Groups[4].Value; msg.Sent = m.Groups[5].Value; msg.Message = m.Groups[6].Value; messages.Add(msg); m = m.NextMatch(); objShortMessageCollection = (ShortMessageCollection)messages; foreach (ShortMessage mesg in objShortMessageCollection) { ListViewItem item = new ListViewItem(new string[] {mesg.Index, mesg.Sender, mesg.Message, mesg.Sent}); item.Tag = mesg; lvwMessages.Items.Insert(0, item); } }
0
[ 2, 228, 1389, 133, 4721, 3755, 20, 968, 1418, 37, 5956, 1295, 9, 9, 800, 3726, 3726, 31, 589, 1876, 14, 5956, 1295, 20, 1302, 14, 7561, 734, 19, 14, 489, 18, 79, 3740, 79, 15, 17, 94, 17418, 105, 19, 21, 968, 4725, 9, 47, 31...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
IOS duplicate interface definition === hello i have the code below on my .h file > import <UIKit/UIKit.h> > > > @interface NSFont : NSObject <NSCoding> { > > } > > @end > > > @interface NSParagraphStyle : NSObject <NSCoding> { > > } > > @end and i get that error : error: duplicate interface definition for class 'NSParagraphStyle' i have no includes and no duplicates as pointed by some users
0
[ 2, 13, 7760, 19429, 6573, 5465, 800, 3726, 3726, 10975, 31, 57, 14, 1797, 1021, 27, 51, 13, 9, 252, 3893, 13, 1, 9010, 13, 1, 5661, 13703, 118, 5661, 13703, 9, 252, 1, 13, 1, 13, 1, 13, 1, 13, 1, 6280, 6413, 13, 2172, 21931,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to backup and restore .db database in iPhone application using iCloud === i have an application, in which i use SQLite database(.db) to store data. now we want to use iCloud for sync between devices. is there any option to do that. i found like use XML file to store and restore it from iCloud. or use core data for that. but as i said my app is already developed in SQLite .i don't want to migrate whole db to core data. please provide me any other solution if possible any help is greatly appreciate. Thanks,
0
[ 2, 184, 20, 10119, 17, 8454, 13, 9, 9007, 6018, 19, 21024, 3010, 568, 31, 19174, 800, 3726, 3726, 31, 57, 40, 3010, 15, 19, 56, 31, 275, 4444, 10601, 6018, 5, 9, 9007, 6, 20, 1718, 1054, 9, 130, 95, 259, 20, 275, 31, 19174, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Host application as default site in IIS7 === I have hosted asp.net mvc application in the folder "samples" as an application inside default website in IIS7.0. The url www.website.com/samples will show the application but i want the url www.website.com to show the application. I have set default document as below. <defaultDocument enabled="true"> <files> <clear /> <add value="Index.aspx" /> </files> </defaultDocument> Also i have placed the Index.aspx in root folder. I am getting the below error The file '/Views/Shared/Site.Master' does not exist. <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %> I have searched and found setting default document will work but getting above error. Can anyone suggest the best way?
0
[ 2, 2015, 3010, 28, 12838, 689, 19, 595, 18, 465, 800, 3726, 3726, 31, 57, 2812, 28, 306, 9, 2328, 307, 8990, 3010, 19, 14, 19294, 13, 7, 6101, 18534, 7, 28, 40, 3010, 572, 12838, 2271, 19, 595, 18, 465, 9, 387, 9, 14, 287, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Removing multiple nodes in treeview with recursive function === I have a pre build treeview. I want to remove the nodes as permission set according to values saved in database. i used recursive function to delete the nodes, but some nodes remains and doesn't delete. my code is here. Private Sub setNodes() For Each nd As TreeNode In TreeView1.Nodes If nd.Name = "Students" AndAlso row.Item("CanAddStudents") = False AndAlso row.Item("CanViewStudents") = False AndAlso row.Item("CanImportStudents") = False Then nd.Remove() nd.Tag = False End If If Not nd.Tag = False Then setNodes(nd) End If nd.Tag = True Next End Sub Private Sub setNodes(ByVal nd As TreeNode) For Each childNd As TreeNode In nd.Nodes If childNd.Name = "Registration" AndAlso row.Item("CanAddStudents") = False Then childNd.Remove() childNd.Tag = False ElseIf childNd.Name = "View_Registration" AndAlso row.Item("CanViewStudents") = False Then childNd.Remove() childNd.Tag = False ElseIf childNd.Name = "Import_Student" AndAlso row.Item("CanImportStudents") = False Then childNd.Remove() childNd.Tag = False End if Next If Not childNd.Tag = False Then setNodes(childNd) End If childNd.Tag = True End Sub this code works on single parent nodes and its child nodes, but not working more the 1 parents nodes. if there are 3 parents nodes then one parent node can not delete. Please help me for this problem.
0
[ 2, 9096, 1886, 16272, 19, 1541, 4725, 29, 302, 24244, 1990, 800, 3726, 3726, 31, 57, 21, 782, 1895, 1541, 4725, 9, 31, 259, 20, 4681, 14, 16272, 28, 5572, 309, 496, 20, 4070, 4377, 19, 6018, 9, 31, 147, 302, 24244, 1990, 20, 274...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Rails obtaining twitter request token without gem === If follow [twitter api documentation][1], this link needs many params: Authorization: OAuth oauth_callback="http%3A%2F%2Flocalhost%2Fsign-in-with-twitter%2F", oauth_consumer_key="cChZNFj6T5R0TigYB9yd1w", oauth_nonce="ea9ec8429b68d6b77cd5600adbbb0456", oauth_signature="F1Li3tvehgcraF8DMJ7OyxO4w9Y%3D", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1318467427", oauth_version="1.0" But I do not know how obtain some of them, such as oauth_nonce, oauth_signature, oauth_timestamp (Maybe Time.now.to_i). How should my link look like? [1]: https://dev.twitter.com/docs/auth/implementing-sign-twitter
0
[ 2, 2240, 18, 12114, 10623, 3772, 20, 2853, 366, 8551, 800, 3726, 3726, 100, 1740, 636, 38, 13098, 106, 21, 2159, 13945, 500, 2558, 165, 500, 15, 48, 3508, 2274, 151, 2258, 79, 18, 45, 22677, 45, 635, 1346, 96, 635, 1346, 96, 1, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to open image in my window mac pc? === I am clicking the image but not showing only blank image open.I have used window mac pc.
1
[ 2, 184, 20, 368, 1961, 19, 51, 1463, 1572, 5168, 60, 800, 3726, 3726, 31, 589, 25590, 14, 1961, 47, 52, 3187, 104, 6463, 1961, 368, 9, 49, 57, 147, 1463, 1572, 5168, 9, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How to get tag name and its corresponding attributes as a key:value pair from a xsd file === if xsd file is like this <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xbrli="http://www.xbrl.org/2003/instance" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:num="http://www.xbrl.org/dtr/type/numeric" xmlns:nonnum="http://www.xbrl.org/dtr/type/non-numeric" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:ifrs="http://xbrl.ifrs.org/taxonomy/2012-03-29/ifrs" targetNamespace="http://xbrl.ifrs.org/taxonomy/2012-03-29/ifrs" elementFormDefault="qualified" attributeFormDefault="unqualified"> <xsd:import schemaLocation="http://www.xbrl.org/dtr/type/numeric-2009-12-16.xsd" namespace="http://www.xbrl.org/dtr/type/numeric"/> <xsd:import schemaLocation="http://www.xbrl.org/dtr/type/nonNumeric-2009-12-16.xsd" namespace="http://www.xbrl.org/dtr/type/non-numeric"/> <xsd:import schemaLocation="http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd" namespace="http://www.xbrl.org/2003/instance"/> <xsd:import schemaLocation="http://www.xbrl.org/2005/xbrldt-2005.xsd" namespace="http://xbrl.org/2005/xbrldt"/> <xsd:element xbrli:periodType="duration" type="nonnum:domainItemType" substitutionGroup="xbrli:item" nillable="true" name="AbnormallyLargeChangesInAssetPricesOrForeignExchangeRatesMember" id="ifrs_AbnormallyLargeChangesInAssetPricesOrForeignExchangeRatesMember" abstract="true"/> <xsd:element xbrli:periodType="duration" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" nillable="true" name="AccountingProfit" id="ifrs_AccountingProfit" xbrli:balance="credit"/> <xsd:element xbrli:periodType="instant" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" nillable="true" name="Accruals" id="ifrs_Accruals" xbrli:balance="credit"/> <xsd:element xbrli:periodType="instant" type="xbrli:monetaryItemType" substitutionGroup="xbrli:item" nillable="true" name="AccrualsClassifiedAsCurrent" id="ifrs_AccrualsClassifiedAsCurrent" xbrli:balance="credit"/> </xml> i need a dict in this format d={'AbnormallyLargeChangesInAssetPricesOrForeignExchangeRatesMember':{'xbrli:periodType':'duration','type':'nonnum:domainItemType','substitutionGroup':'xbrli:item'}} like this for each element it should print attribute "name" as tag and rest all attributes as a value of that tag.. i am trying to do with any xml parsers , i know how to do using re....... but i need it through any xml parsers only.. thanks in advance
0
[ 2, 184, 20, 164, 3383, 204, 17, 82, 7265, 13422, 28, 21, 1246, 45, 15165, 2146, 37, 21, 993, 18, 43, 3893, 800, 3726, 3726, 100, 993, 18, 43, 3893, 25, 101, 48, 13, 1, 60, 396, 8184, 615, 3726, 7, 165, 9, 387, 7, 19608, 3726...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
qt handleKeyEvent not working === i am developing a plugin using the new qpa (Qt platform abstraction), I am sending a keyboard input event to the window but i don't see any text being rendered on the lineedit window. not sure where i am doing wrong. my code is as below, is it the right way to send keyboard event, i see other plugins doing the same way. QWindow *fWin = QGuiApplication::focusWindow(); if (fWin) { QWindowSystemInterface::handleKeyEvent( fWin, keyEventType, key.key, qtMod, keyChar); } else
0
[ 2, 2593, 38, 3053, 4237, 4943, 38, 52, 638, 800, 3726, 3726, 31, 589, 3561, 21, 10922, 108, 568, 14, 78, 2593, 1060, 13, 5, 1251, 38, 2452, 23907, 6, 15, 31, 589, 4907, 21, 8896, 6367, 807, 20, 14, 1463, 47, 31, 221, 22, 38, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to make authlog use the cookie rather than the session === We have a site that is using rails 3.0.4, and authlogic. We use ngnix to handle the front end and I am trying to use squid to do caching between nginx and the unicorns. I am trying not to cache pages for logged in users and I am doing this via tracking the `user_credentials` cookie, however given that authlogic is actually doing authorisation based upon the values stored in the session. It is possible for a user ( or browser, thank you safari ) to delete that cookie and for a logged in user to get their pages into the cache which makes people sad. So how do I make authlogic authenticate on the user_credential cookie rather than on the session.
0
[ 2, 184, 20, 233, 10343, 96, 5567, 275, 14, 19980, 864, 119, 14, 3723, 800, 3726, 3726, 95, 57, 21, 689, 30, 25, 568, 2240, 18, 203, 9, 387, 9, 300, 15, 17, 10343, 96, 24268, 9, 95, 275, 13, 2723, 14064, 20, 3053, 14, 431, 24...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Restrict GKSession to Wifi and ignore Bluetooth === I am implementing an IOS game using Bluetooth, Wifi and Game Center; Bluetooth is a two person game using GKPeerPickerController, the Wifi version runs on the local network and is a 4 to 6 player game that needs auto discovery and thus I am configuring my own GKSession, the Game Center game uses GKMatch to spread the game across the web. All of this works well except where Bluetooth and Wireless are available in the situation where I want to play a multi-player game on the local wireless network. The fact that bluetooth is turned on slows down and interferes with the auto discovery process. It works like a dream when Bluetooth is turned off but it would be wrong to programmatically turn off bluetooth. My Question: Is there anyway to tell a GKSession to ignore Bluetooth and restrict itself to the local wifi. The GKPeerPickerContoller has a connectionTypesMask which allows you to specify Bluetooth or Wireless but with 4 to six players this would get very chatty, the GKSession does not seem to have this option.
0
[ 2, 15436, 489, 4020, 160, 5991, 20, 4807, 1707, 17, 7174, 705, 15808, 800, 3726, 3726, 31, 589, 17333, 40, 13, 7760, 250, 568, 705, 15808, 15, 4807, 1707, 17, 250, 459, 73, 705, 15808, 25, 21, 81, 840, 250, 568, 489, 15362, 7911, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Set detailtextlabel of static cell programmatically === I have a tableView with a few sections and I have it set for static cells instead of dynamic prototypes. The problem is that I can't set the detail text label of a static cell programmatically or at least I don't know how. Is it possible ? The only way I see of doing this is having dynamic prototypes which means I'm going to have to deal with setting up all the cell.textLabels in my dataSource and also all the sections and my segues will not work anymore. If anyone has ideas it would be great help. Thanks :)
0
[ 2, 309, 6110, 11969, 21018, 16, 12038, 1667, 625, 6732, 1326, 800, 3726, 3726, 31, 57, 21, 859, 4725, 29, 21, 310, 4501, 17, 31, 57, 32, 309, 26, 12038, 2934, 700, 16, 7782, 7063, 18, 9, 14, 1448, 25, 30, 31, 92, 22, 38, 309, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to typecast from var to an object === i just linq to find the max object from a list of object now i want change it back from var to object. How is that done. List < MyObject> lt = matchings.ToList(); var wwe = lt.Max(ya => ya.Similarity); var itemsMax = lt.Where(xa => xa.Similarity == wwe); MyObject sm =(TemplateMatch) itemsMax;//it gives error here
0
[ 2, 184, 20, 1001, 6146, 37, 4033, 20, 40, 3095, 800, 3726, 3726, 31, 114, 6294, 1251, 20, 477, 14, 2049, 3095, 37, 21, 968, 16, 3095, 130, 31, 259, 753, 32, 97, 37, 4033, 20, 3095, 9, 184, 25, 30, 677, 9, 968, 13, 1, 51, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Calling Save dialog box from javascript === I have a javascript function from which I need to call a controller action to return the filestream to the UI . I am not getting the open,save and save as dialog box. In the cshtml file I have following function:DownloadFile var selectUrl = '@Url.Action("Download", "Controller")' + "/" + filedetails; $.post(selectUrl); and in the controller I have the following code: public ActionResult Download(string id) return File(downloadStream, "application/octet-stream",fileName); Please let me know is this the correct way of calling
0
[ 2, 2555, 2079, 28223, 1649, 37, 8247, 8741, 800, 3726, 3726, 31, 57, 21, 8247, 8741, 1990, 37, 56, 31, 376, 20, 645, 21, 9919, 1028, 20, 788, 14, 3893, 11260, 20, 14, 13, 5661, 13, 9, 31, 589, 52, 1017, 14, 368, 15, 19863, 17,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Set svn:ignore recursively for a directory structure === I have imported a huge hierarchy of maven projects into IntelliJ idea, now idea has created .iml projects on all different levels. I would like to svn:ignore these files. There are several similar questions, for example this one: http://stackoverflow.com/q/6878673/342852 However: the answer is always to apply `svn:ignore` with the `--recursive` flag. That's not what I am looking for, I just want to ignore the files I created, not set a property on the hundreds of directories underneath. Basically, what I have is the output of svn status | grep .iml which looks like this: ? foo/bar/bar.iml ? foo/baz/phleem.iml ? flapp/flapp.iml etc. What I would like to do is for each entry `dir/project.iml` to add `svn:ignore *.iml` to `dir`. I am guessing I have to pipe the above grep to `sed` or `awk` and from there to `svn`, but I am at a total loss as to the exact sed or awk command on one hand and the exact svn command (with which I won't override existing svn:ignore values) on the other hand.
0
[ 2, 309, 13, 18, 16578, 45, 23565, 99, 302, 24244, 102, 26, 21, 16755, 1411, 800, 3726, 3726, 31, 57, 11808, 21, 2329, 14417, 16, 1216, 3124, 2314, 77, 19, 4213, 9999, 882, 15, 130, 882, 63, 679, 13, 9, 49, 8184, 2314, 27, 65, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Netbeans: splitting one project in three (client/server/common) === In my self-imposed quest to learn Netbeans, I decided to try out an already existing project of mine. Using a solution provided [here][1], I tried to make three different projects to host server/client/common portions of my code. I failed at the second one with the message: "Package Folder Already Used in Project" The following folders that you selected are already used in this or another project. Etc., etc. Bottomline: folder used as source in one project, can't be used as source in another one. ---------- The problem is, the application *does* use single source folder... - src/com/.../client/ - src/com/.../common/ - src/com/.../server/ ... and I was planning on adding the same folder to each project, filtering needed classes with Includes/Excludes. What is the kosher way of achieving what I'm trying to do here? (Barring that, *vege* way will do, too). [1]: http://stackoverflow.com/questions/4768218/make-netbeansant-generate-multiple-jar-files-for-one-project
0
[ 2, 4275, 863, 5950, 45, 17282, 53, 669, 19, 132, 13, 5, 150, 18513, 38, 118, 10321, 106, 118, 17130, 6, 800, 3726, 3726, 19, 51, 1119, 8, 25823, 7769, 20, 2484, 4275, 863, 5950, 15, 31, 868, 20, 1131, 70, 40, 614, 3149, 669, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
HTML5 Canvas - how to get absolute position of an object after rotate? === Do you have any idea, how to get absolute position of an object after rotate? In Canvas, when we use context.rotate() we actually rotate everything including the x and y axes. So actually positions of each objects are the same. Isn't it right? I need to know the absolute postion from the left top corner of an objects after any transformations. It must me possible but I don't know how. Too hard for me... please give me some advices or suggestions how to do this. Big thanks.
0
[ 2, 13, 15895, 264, 9696, 13, 8, 184, 20, 164, 7070, 649, 16, 40, 3095, 75, 21448, 60, 800, 3726, 3726, 107, 42, 57, 186, 882, 15, 184, 20, 164, 7070, 649, 16, 40, 3095, 75, 21448, 60, 19, 9696, 15, 76, 95, 275, 4141, 9, 1169...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
iOS – Check if MFMessageComposeViewController is currently visible === I need to check if `MFMessageComposeViewController` is currently visible. How can I do that? What I'm doing right now is: //Get the current visible view controller ViewController *visible = ... if([visible isKindOfClass:[MFMessageComposeViewController class]]) // This doesn't work because the class is actually CKSMSComposeController And I can't check for CKSMSComposeController then Xcode will complain about "Use of undeclared identifier 'CKSMSComposeController'"
0
[ 2, 13, 7760, 13, 10, 2631, 100, 13, 13235, 3845, 18, 1303, 960, 15690, 4725, 12898, 1252, 25, 871, 4560, 800, 3726, 3726, 31, 376, 20, 2631, 100, 13, 1, 13235, 3845, 18, 1303, 960, 15690, 4725, 12898, 1252, 1, 25, 871, 4560, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Really Slow Performing MySQL Query === I've been tasked with supporting an application for a client that is painfully slow. I enabled MySQL slow_query_log and found a few queries that seem to be the culprit. I'm a little confused as to what this query is doing, but any advise on how I could rewrite this would be helpful. SELECT table_a.id AS table_a_id_1, table_a2.id AS table_a_id_2 FROM table_a, table_b LEFT JOIN table_a AS table_a2 ON table_a.value = table_a2.value WHERE table_a.value_id = 112 AND table_a2.value_id = 113 AND table_a.status != table_a2.status AND table_a.id = table_b.id; To me it looks like the query is selecting the same data twice from a single table, then doing some comparisons with the selected data, as well as performing a join with table_b as well. Here is the log from MySQL referencing this query's execution. Query_time: 160.854398 Lock_time: 0.000139 Rows_sent: 12 Rows_examined: 10339025 Any advise you could provide would be helpful!
0
[ 2, 510, 2276, 2955, 51, 18, 22402, 25597, 800, 3726, 3726, 31, 22, 195, 74, 14605, 29, 3134, 40, 3010, 26, 21, 6819, 30, 25, 19840, 2276, 9, 31, 9338, 51, 18, 22402, 2276, 1, 8190, 93, 1, 5567, 17, 216, 21, 310, 9386, 2829, 30...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Python tuple search === I am trying to write a simple program that will let me enter a name and then it will search the employeeList to see if the person is a manager or not. The person will be a manager if their employee number is 500 or larger. So with ["David", 501] for example, how do you specify just the number part in the conditional statement? I have used item for the names but am not sure what to do to specify the numbers. Thanks! #!/usr/bin/python input = raw_input("Please enter name to determine if employee is a manager: ") employeeList = [["Shawn", 500], ["David", 501], ["Ted", 14], ["Jerry", 22]] for item in employeeList : print "Employee Name is: ", item if item == input and item >= 500: print "This person is a manager." else: print "This person is not a manager."
0
[ 2, 20059, 2289, 5106, 2122, 800, 3726, 3726, 31, 589, 749, 20, 2757, 21, 1935, 625, 30, 129, 408, 55, 2830, 21, 204, 17, 94, 32, 129, 2122, 14, 7362, 5739, 20, 196, 100, 14, 840, 25, 21, 1382, 54, 52, 9, 14, 840, 129, 44, 21...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
String encoding error in SQLiteDatabase.rawQuery === I am building a SQL query as a String with String.format and passing it to SQLiteDatabase.rawQuery. The integer parameter I'm passing at the end is hard coded to zero (I'm looking for any value greater than zero). This works normally in all my testing, but I'm getting crash reports from the field. I'm using a crash reporting website that does not give me detailed system/environment information. Here is the code that is crashing. String query = String.format("SELECT * FROM %s WHERE %s > %d", TableName, ColumnName, 0); Cursor c = db.rawQuery(query, null); The exception being thrown is the following: > android.database.sqlite.SQLiteException: no such column: Û°: , while > compiling: SELECT * FROM TableName WHERE ColumnName > Û° And the last few lines in the stack trace before the crash are: > SQLiteCompiledSql.java:-2:in > `android.database.sqlite.SQLiteCompiledSql.native_compile' > SQLiteCompiledSql.java:68:in > `android.database.sqlite.SQLiteCompiledSql.<init>' > SQLiteProgram.java:143:in > `android.database.sqlite.SQLiteProgram.compileSql' This looks like it must be an encoding error. However, I don't know how to tell what is the cause of this. I'm using SQLiteOpenHelper as a high level way to create and connect to my database, so I'm not explicitly setting an encoding. Also, the error reports are few but they've only come in on devices running ICS, so it's possible that this is something new in the defaults used in the SQLite classes in ICS.
0
[ 2, 3724, 19608, 7019, 19, 4444, 10601, 18768, 8436, 9, 12404, 8190, 93, 800, 3726, 3726, 31, 589, 353, 21, 4444, 255, 25597, 28, 21, 3724, 29, 3724, 9, 23588, 17, 2848, 32, 20, 4444, 10601, 18768, 8436, 9, 12404, 8190, 93, 9, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ActiveAdmin Dashboard partial not appearing? === I'm trying to include a section containing a partial in my Dashboard on ActiveAdmin. The section appears, but it is blank - how do I make the partial appear? I want to display a Highcharts graph. Here is my code: dashboards.rb: section "Business Summary", do div do render 'graph' end end _graph.html.erb( located in app/views/admin/dashboard): <script src="http://code.highcharts.com/highcharts.js"></script> <script src="http://code.highcharts.com/modules/exporting.js"></script> <script type="text/javascript" charset="utf-8"> $(function() { var chart; $(document).ready(function() { chart = new Highcharts.Chart({ chart: { renderTo: 'container', type: 'column' }, xAxis: { categories: ['Automotive', 'Agency', 'Contractor', 'Country Club', 'Other'] }, yAxis: { min: 0, title: { text: 'Business Summary' }, stackLabels: { enabled: true, style: { fontWeight: 'bold', color: (Highcharts.theme && Highcharts.theme.textColor) || 'gray' } } }, legend: { align: 'right', x: 100, verticalAlign: 'top', y: 0, floating: true, backgroundColor: (Highcharts.theme && Highcharts.theme.legendBackgroundColorSolid) || 'white', borderColor: '#CCC', borderWidth: 1, shadow: false }, tooltip: { formatter: function() { return '<b>' + this.x + '</b><br/>' + this.series.name + ': ' + this.y + '<br/>' + 'Total: ' + this.point.stackTotal; } }, plotOptions: { column: { stacking: 'normal', dataLabels: { enabled: true, color: (Highcharts.theme && Highcharts.theme.dataLabelsColor) || 'white' } } }, series: [{ name: 'Mobile', data: [5, 3, 4, 27, 2]}, { name: 'Foursquare', data: [2, 2, 3, 2, 1]}, { name: 'Facebook', data: [3, 4, 4, 2, 5]}, { name: 'Yelp', data: [3, 4, 4, 2, 5]}, { name: 'Google', data: [3, 4, 4, 2, 5]}] }); }); });​​ </script> <div id="container" style="min-width: 400px; height: 400px; margin: 0 auto"></div>
0
[ 2, 1348, 1283, 2160, 26478, 7284, 52, 4870, 60, 800, 3726, 3726, 31, 22, 79, 749, 20, 468, 21, 1050, 3503, 21, 7284, 19, 51, 26478, 27, 1348, 1283, 2160, 9, 14, 1050, 1780, 15, 47, 32, 25, 6463, 13, 8, 184, 107, 31, 233, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
CVOpenGLESTextureCacheCreateTextureFromImage failed for avcomposition === i'm trying to extend GPUImageMovie in GPUImage library to AVComposition, through using AVAssetReaderVideoCompositionOutput as the frames input. but when reaching: - (void)processMovieFrame:(CMSampleBufferRef)movieSampleBuffer { .. CVReturn err = CVOpenGLESTextureCacheCreateTextureFromImage(kCFAllocatorDefault, coreVideoTextureCache, movieFrame, NULL, GL_TEXTURE_2D, GL_RGBA, bufferWidth, bufferHeight, GL_BGRA, GL_UNSIGNED_BYTE, 0, &texture); ... i get: Failed to create IOSurface image (texture) Movie CVOpenGLESTextureCacheCreateTextureFromImage failed (error: -6683) which turn out to be: kCVReturnPixelBufferNotOpenGLCompatible -6683 The pixel buffer is not compatible with OpenGL due to an unsupported buffer size, pixel format, or attribute. Available in iOS 4.0 and later any ideas? thanks
0
[ 2, 13, 12732, 10157, 4875, 18, 11969, 4221, 793, 2569, 6037, 1373, 11969, 4221, 2665, 22039, 1702, 26, 14026, 960, 9339, 800, 3726, 3726, 31, 22, 79, 749, 20, 7206, 489, 4201, 22039, 22607, 19, 489, 4201, 22039, 1248, 20, 14026, 960, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Eclipse plugins for Android === I want to start android programming, but i cant download eclipse plugins for android because of the political condition of my country! Even I cant do this via proxy servers. What should I do ? Is there any way to download it from another server exept google servers and add it to eclipse ide ?
0
[ 2, 11652, 10922, 108, 18, 26, 13005, 800, 3726, 3726, 31, 259, 20, 799, 13005, 3143, 15, 47, 31, 2973, 7121, 11652, 10922, 108, 18, 26, 13005, 185, 16, 14, 675, 2874, 16, 51, 475, 187, 166, 31, 2973, 107, 48, 1197, 27188, 17595, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Source Code stucture within Team Foundation Server === I need to add some source code to TFS and having never used it before i would like to get some advice on the best way to structure it. I have one solution 'GenericLibraries'. This is a set of class library projects which could be used by any application within the business. I have 2 other solutions 'FormsApp1', 'FormsApp2'. Both of these solutions contain dll references to the libraries compiled in the 'GenericLibraries' solution. My question is how to best place this source code into TFS? Does all the source code have to be placed into one TFS project because 'FormsApp1' and 'FormsApp2' contain references to assemblies in 'GenericLibraries' OR can i have 3 TFS projects? Or is there another standard way of doing this? Ultimately i would like to have Continuous integration set up too, and both 'FormsApp1' , and 'FoprmsApp2' would always compile against the latest version of the assemblies in 'GenericLibraries'.
0
[ 2, 1267, 1797, 354, 6335, 6418, 363, 173, 1304, 8128, 800, 3726, 3726, 31, 376, 20, 3547, 109, 1267, 1797, 20, 13, 11720, 18, 17, 452, 243, 147, 32, 115, 31, 83, 101, 20, 164, 109, 4978, 27, 14, 246, 161, 20, 1411, 32, 9, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Dynamically assigning Tag property on WPF controls === I have a set of dynamically generated WPF control. How can I assign tags to these controls dynamically? I created the controls like this: SchlEntities db = new SchlEntities(); InitializeComponent(); var controls = from stud in db.Students orderby stud.GroupID group stud by stud.GroupID into gr select gr; foreach (var gr in controls) { CreateComboBox(); } ..................................................................................................... private void CreateComboBox() { ComboBox combox = new ComboBox(); combox.Width = 280; combox.Height = 30; combox.Background = Brushes.LightBlue; combox.Margin = new Thickness(5); stackpanel.Children.Add(combox); }
0
[ 2, 7782, 1326, 13952, 68, 3383, 1354, 27, 619, 7721, 8671, 800, 3726, 3726, 31, 57, 21, 309, 16, 7782, 1326, 6756, 619, 7721, 569, 9, 184, 92, 31, 13952, 3383, 18, 20, 158, 8671, 7782, 1326, 60, 31, 679, 14, 8671, 101, 48, 45, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ASP.NET MVC3 conditional validation - checkbox > editor === I would like to have a bool field and and a string field in my Model and not having any validation attributes on them. But in the view I would like to have the required field validation on the Editor if the Checkbox is checked. How do I do this please? Thank you.
0
[ 2, 28, 306, 9, 2328, 307, 8990, 240, 21206, 27999, 13, 8, 2631, 5309, 13, 1, 1835, 800, 3726, 3726, 31, 83, 101, 20, 57, 21, 1607, 1823, 575, 17, 17, 21, 3724, 575, 19, 51, 1061, 17, 52, 452, 186, 27999, 13422, 27, 105, 9, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Using a custom build of Sqlite inside a MonoMac app === I've built a custom version of libsqlite3 to fix [bugs](http://stackoverflow.com/questions/8090152/mono-on-os-x-system-data-sqlite-does-not-work) in the standard sqlite library. The question is, how can this library (and the associated managed System.Data.SQLite.dll) be packaged inside a MonoMac app bundle? Exact steps please, have spent days trying to solve this. Note: this is a MonoMac .app bundle, not a mono .exe.
0
[ 2, 568, 21, 5816, 1895, 16, 4444, 10601, 572, 21, 4129, 6893, 4865, 800, 3726, 3726, 31, 22, 195, 392, 21, 5816, 615, 16, 13, 8326, 18, 1251, 10601, 240, 20, 6098, 636, 16254, 18, 500, 5, 21127, 6903, 25325, 2549, 9990, 9, 960, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
EfCachingProvider and DbContext === i have trying to find the way to use EFCachingProvider from [Tracing and Caching Provider Wrappers for Entity Framework][1] with Entity Framework and DbContext. I use EF 4.x DbContext Generator for c# to generate model classes. I've already added references to EFProviderWrapperToolkit, EFCachingProvider, EFTracingProvider. I also made changes in my web.config file to : <connectionStrings> <add name="MyEntities" connectionString="Server=myServer;Database=MyDB;User ID=User;Password=pass;Trusted_Connection=False;Encrypt=True;Connection Timeout=30;" providerName="EFTracingProvider" /> </connectionStrings> <system.data> <DbProviderFactories> <add name="EF Caching Data Provider" invariant="EFCachingProvider" description="Caching Provider Wrapper" type="EFCachingProvider.EFCachingProviderFactory, EFCachingProvider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=def642f226e0e59b" /> <add name="EF Tracing Data Provider" invariant="EFTracingProvider" description="Tracing Provider Wrapper" type="EFTracingProvider.EFTracingProviderFactory, EFTracingProvider, Version=1.0.0.0, Culture=neutral, PublicKeyToken=def642f226e0e59b" /> <add name="EF Generic Provider Wrapper" invariant="EFProviderWrapper" description="Generic Provider Wrapper" type="EFProviderWrapperToolkit.EFProviderWrapperFactory, EFProviderWrapperToolkit, Version=1.0.0.0, Culture=neutral, PublicKeyToken=def642f226e0e59b" /> </DbProviderFactories> </system.data> But when app start, it throws an error in DbConnectionWrapper from EFProviderWrapperToolkit in line: DbProviderFactory factory = DbProviderFactories.GetFactory(providerInvariantName); This is class which inherits from DbContext: public class MyEntities : DbContext { public MyEntities() : base("MyEntities") { } protected override void OnModelCreating(DbModelBuilder modelBuilder) { modelBuilder.Conventions.Remove<IncludeMetadataConvention>(); modelBuilder.Entity<Product>().ToTable("Product"); modelBuilder.Entity<ProductPhoto>().ToTable("ProductPhoto"); base.OnModelCreating(modelBuilder); } public DbSet<Product> Product { get; set; } public DbSet<ProductPhoto> ProductPhoto { get; set; } } I've already read post: [USING TRACING AND CACHING PROVIDER WRAPPERS WITH CODEFIRST][2], but it didn't solve my problem. Does anyone know how to do it ? [1]: http://code.msdn.microsoft.com/EFProviderWrappers-c0b88f32 [2]: http://blog.3d-logic.com/2012/03/31/using-tracing-and-caching-provider-wrappers-with-codefirst/
0
[ 2, 11599, 793, 7192, 26735, 139, 17, 13, 9007, 1126, 11969, 800, 3726, 3726, 31, 57, 749, 20, 477, 14, 161, 20, 275, 11599, 793, 7192, 26735, 139, 37, 636, 1939, 6302, 17, 1658, 7192, 11747, 28051, 18, 26, 9252, 6596, 500, 2558, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to remove last 6 characters of every line in vim === I have the following characters being repeated at the end of every line `^[[00m` How can i remove them from each line using vim editor? When I give the following command `:%s/^[[00m//g` it doesnt work.
0
[ 2, 184, 20, 4681, 236, 400, 1766, 16, 352, 293, 19, 1790, 79, 800, 3726, 3726, 31, 57, 14, 249, 1766, 142, 4251, 35, 14, 241, 16, 352, 293, 13, 1, 2558, 2558, 2032, 79, 1, 184, 92, 31, 4681, 105, 37, 206, 293, 568, 1790, 79,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Showing button below a fragment in an activity === I'm quite new to Android. I have a very simple layout that doesn't work yet: <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/relativeLayout"> <fragment android:layout_width="fill_parent" android:layout_height="match_parent" android:name="pl.nscr.playwatch.MainActivity$WatchListFragment" android:id="@+id/watchlist"/> <Button android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Start service"/> </LinearLayout> Now my problem is that the fragment spans the whole available height in an activity. I'd like to be able to see that button below it, but I don't actually know how to layout this thing. I tried using RelativeLayout, but I ended up with the button showing above the fragment which looks ugly. What am I doing wrong?
0
[ 2, 3187, 5167, 1021, 21, 14847, 19, 40, 2358, 800, 3726, 3726, 31, 22, 79, 1450, 78, 20, 13005, 9, 31, 57, 21, 253, 1935, 9106, 30, 1437, 22, 38, 170, 768, 45, 13, 1, 19333, 4414, 1320, 13005, 45, 4414, 1320, 1, 3976, 43, 96, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to make multiple choice using segmented control === i have a segmented control with 4 different choice. basically, segmented control only accept for 1 choice, is that any possible to make user choice more than 1 choice? what setting/code do i need?
0
[ 2, 184, 20, 233, 1886, 1837, 568, 5631, 69, 569, 800, 3726, 3726, 31, 57, 21, 5631, 69, 569, 29, 268, 421, 1837, 9, 11374, 15, 5631, 69, 569, 104, 3440, 26, 137, 1837, 15, 25, 30, 186, 938, 20, 233, 4155, 1837, 91, 119, 137, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
Best server side language and database === We are planned to build a website and mobile apps for a project. To interact with database we need to build an API. It is expected that website and apps will be accessed by thousands of millions of users (big big user traffic). We need a speedy system which can handle such large amount of requests without giving any delays. We are thinking in terms of server side language, project design and database. Waiting for your suggestions. Please answer with some details so we can discuss why something is better and why others are not.
4
[ 2, 246, 8128, 270, 816, 17, 6018, 800, 3726, 3726, 95, 50, 2035, 20, 1895, 21, 2271, 17, 3241, 4865, 18, 26, 21, 669, 9, 20, 10001, 29, 6018, 95, 376, 20, 1895, 40, 21, 2159, 9, 32, 25, 1727, 30, 2271, 17, 4865, 18, 129, 44,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
undefined method `contains_text' for nil:NilClass (NoMethodError) === Hello i use Watir in RadRails IDE. I create such class, which check if some text is present on my web page: class Text def initialize(text, object) @text=text @object=object if $ie.contains_text(@text) puts("Test for" + @object + "failed") puts ($ie.link(:text => /Exception:/)) h= $ie.link(:text => /Exception:/) r.addtoReport(testReport, "check" + @object, "FAILED", h.text) else puts("Test for" + @object + "passed") r.addtoReport(testReport, "check" + @object, "PASSED", "Test for" + @object + "passed" ) end end end But than I try execute my test I get error - BPM/Company.rb:38:in `initialize': undefined method `contains_text' for nil:NilClass (NoMethodError) from BPM/Company.rb:79:in `new' from BPM/Company.rb:79:in `<main>' i call class by this command - Text.new("Menu", "login")
0
[ 2, 367, 13439, 2109, 13, 1, 1126, 5851, 18, 1, 11969, 22, 26, 1781, 255, 45, 103, 947, 1898, 13, 5, 251, 5909, 1807, 43, 29992, 6, 800, 3726, 3726, 10975, 31, 275, 15553, 1523, 19, 4944, 7301, 18, 13, 3448, 9, 31, 1600, 145, 7...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...