unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Not able to access the external resource through glassfish when using alternatedocroot === The application I'm working on is deployed in Glassfish v3.1.1. I'm trying to use alternate document root to serve files from outside the war. This is the content i have specified in glassfish-web.xml ` <glassfish-web-app> <context-root>xyz</context-root> <property name="alternatedocroot_2" value="from=/new/\* dir=E:/xyz"/> </glassfish-web-app>` The static files are stored in this location: E:\xyz\new After deployment,when the file is accessed using this url,I get a 404 response. http://localhost:8080/xyz/new/1_RD_2.png I did a search on how the requests are matched, and the above code seems to match with what was given [here][1]. But still, the code doesn't work. Is there something i'm missing or doing wrong here? [1]: https://blogs.oracle.com/jluehe/entry/alternate_docroots_and_local_resource
0
[ 2, 52, 777, 20, 1381, 14, 4886, 6577, 120, 1350, 4934, 76, 568, 4912, 13799, 14032, 800, 3726, 3726, 14, 3010, 31, 22, 79, 638, 27, 25, 6698, 19, 1350, 4934, 566, 240, 9, 165, 9, 165, 9, 31, 22, 79, 749, 20, 275, 4912, 4492, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Use windows or linux to start work with Ruby On Rails? === I'm new to Ruby On Rails and I want to know which is better to use for work with it. Windows or Linux. I've never worked with Linux before but I heard It's better to work with it. Is it necessary for someone like me to install linux or I can use windows and the results will be same with linux?
0
[ 2, 275, 1936, 54, 13024, 20, 799, 170, 29, 10811, 27, 2240, 18, 60, 800, 3726, 3726, 31, 22, 79, 78, 20, 10811, 27, 2240, 18, 17, 31, 259, 20, 143, 56, 25, 574, 20, 275, 26, 170, 29, 32, 9, 1936, 54, 13024, 9, 31, 22, 195,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Knockout.js: how to bind hierarchical forms? === I'm using knockout.js under the hood of my client-side form manipulation api. Its is designed to manipulate "hierarchical" forms that are built of tabs, fieldsets (contained in tabs) and individual form controls (contained in fieldsets). My strategy is to create a separate view model for each of these components. My question is: how can i best propagate the model state "downwards" the hierarchy? (e.g. when a tab is disabled programmatically, i also want also all contained fieldsets to be disabled and their form controls) I've prepared a jsfiddle to sketch my first approach: http://jsfiddle.net/fbuchinger/bxNKg/4/ On the dom side everything looks fine so far, but i noticed that the group's 'editable' state isn't propagated downwards to the form control's model (the `PRENAME.editable` property is still `true`, although it should be `false`). Are there better approaches?
0
[ 2, 11676, 9, 728, 18, 45, 184, 20, 10193, 21376, 4272, 1997, 60, 800, 3726, 3726, 31, 22, 79, 568, 11676, 9, 728, 18, 131, 14, 6124, 16, 51, 6819, 8, 1416, 505, 17561, 21, 2159, 9, 82, 25, 1006, 20, 18468, 13, 7, 18094, 8027, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Rotating camera around the X-axis (thee.js) === <br> I am trying to rotate the camera around to X-axis of the scene. <br> At this point my code is like this:<br> ... rotation += 0.05;<br> ... camera.position.y = Math.sin(rotation) * 500;<br> ... camera.position.z = Math.cos(rotation) * 500;<br> <br> This makes the camera move around but during the rotation something weird happens and either the camera flips, or it skips some part of the imaginary circle it's following..<br> Any ideas?<br> THanks, Dimitris (...again :P )
0
[ 2, 16164, 3336, 140, 14, 993, 8, 19676, 13, 5, 124, 62, 9, 728, 18, 6, 800, 3726, 3726, 13, 1, 5145, 1, 31, 589, 749, 20, 21448, 14, 3336, 140, 20, 993, 8, 19676, 16, 14, 1691, 9, 13, 1, 5145, 1, 35, 48, 454, 51, 1797, 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...
How to get the devices details that are connected to my router? === I have problem in getting list of devices that are connected to my router.On the way to solve this question I have many problems to solve ,to get the answer of my question I have another question to solve as follow.Actually I have to get the device details connected to the router. I am working in a company and I am having an IP for my pc which is a private IP only .e.g ;10.0.2.35 Now I have to go from this IP,my questions are as follows 1.first question is How to get the router Ip,some how i got this by using > route command and i got some table from that table a FLAGS column is there and a 'G' will be there in one row and the 'Gateway' column of that row give me the router's address.I don't know it is correct or not,If not kindly give the solution for this. 2.second question is how to get the list of devices connected to this router ,is it possible to get the list of devices connected to this router.If yes can any one give some solution to get this information. 3.Third question is ,Is it possible to get the type of device connected to router.As it may be a PC,a Printer,a Mobile etc. If this are possible then kindly tell some solution .I need this for my Project . Thanks
2
[ 2, 184, 20, 164, 14, 4690, 3289, 30, 50, 2587, 20, 51, 858, 139, 60, 800, 3726, 3726, 31, 57, 1448, 19, 1017, 968, 16, 4690, 30, 50, 2587, 20, 51, 858, 139, 9, 218, 14, 161, 20, 8402, 48, 1301, 31, 57, 151, 1716, 20, 8402, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 GPS coordinates need to be scaled before attempting to plot them on R device through geom_point? === History: Extracted raster data from the static Google map png, loaded it on the R device through `ggimage`. library (png) library (ggmap) rasterArray <- readPNG ("My.png") x = c (40.702147,40.718217,40.711614) y = c (-74.012318,-74.015794,-73.998284) myData <- data.frame (x, y) print (ggimage (rasterArray, fullpage = TRUE, coord_equal = FALSE) + geom_point (aes (x = x, y = y), data = myData, colour = I("green"), size = I(5), fill = NA)) I did run `dput` on the `rasterArray` but the output is of 20 MBs, can't post here. BTW, [this is the URL of that static map:][1] Question: For plotting "GPS coordinates" on the R device containing the map in pixels, do I need to `scale` the `data.frame`? I saw this page: http://www-personal.umich.edu/~varel/rdatasets/Langren1644.html Do I need to do scaling the way they have shown here? If yes, then what else other than the man page of `scale` function do I need to understand to get this done? Am I barking at the wrong tree? [1]: http://maps.google.com/maps/api/staticmap?center=40.7106593333333,-74.0087986666667&zoom=15&size=640x640&maptype=terrain&format=png32&sensor=true&40.702147,-74.015794,blues%7C40.711614,-74.012318,greeng%7C40.718217,-73.998284,redc
0
[ 2, 107, 18298, 13714, 376, 20, 44, 22960, 115, 6314, 20, 3798, 105, 27, 761, 3646, 120, 6389, 79, 1, 3132, 60, 800, 3726, 3726, 447, 45, 18607, 7172, 815, 1054, 37, 14, 12038, 8144, 2942, 351, 2723, 15, 8572, 32, 27, 14, 761, 36...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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: where to find the "Unknown sources" option in many devices? === I am downloading a non-market android app. If the "Unknown sources" option is not enabled, I show the user a dialog box containing a "Setting button". when this button is clicked, it opens the settings intent and allows the user to check the "Unknown sources" option. Intent intent = new Intent(Settings.ACTION_APPLICATION_SETTINGS); But in some devices, the "Unknown sources" options is in Security Settings and not Application Settings. How to deal with such cases?
0
[ 2, 13005, 45, 113, 20, 477, 14, 13, 7, 1020, 2929, 2662, 7, 4255, 19, 151, 4690, 60, 800, 3726, 3726, 31, 589, 7121, 68, 21, 538, 8, 10822, 13005, 4865, 9, 100, 14, 13, 7, 1020, 2929, 2662, 7, 4255, 25, 52, 9338, 15, 31, 298...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Howto convert the value of a hashmap to String i Java === I have a hashmap with few key and values. I am trying to retrive the value and print the value using the key from the usercode. The code is lib.addbook(book2.getISBN(), book2); Book ret = lib.getbook("978-81-291-1979-7"); System.out.println(ret); O/P: LibraryPackage.Book@527c6768 I want the output to be a string and to display the actual value not the address of the book
0
[ 2, 184, 262, 8406, 14, 1923, 16, 21, 19170, 15022, 20, 3724, 31, 8247, 800, 3726, 3726, 31, 57, 21, 19170, 15022, 29, 310, 1246, 17, 4070, 9, 31, 589, 749, 20, 302, 3367, 195, 14, 1923, 17, 4793, 14, 1923, 568, 14, 1246, 37, 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...
Struct with reference types and GC? === I was wondering , An Instance of class is on the Heap. ( value types inside it are also in the heap). But what about the *opposite* case ? There is one question **[here][1]** but it didn't mention any `GC` related info. So - How does GC handle this situation ? public struct Point { object o ; public int x, y; public Point(int p1, int p2) { o = new Object(); x = p1; y = p2; } } [1]: http://stackoverflow.com/questions/945664/can-structs-contain-references-to-reference-types-in-c-sharp
0
[ 2, 13, 10346, 29, 2801, 2551, 17, 13, 10362, 60, 800, 3726, 3726, 31, 23, 5712, 13, 15, 40, 4851, 16, 718, 25, 27, 14, 15414, 9, 13, 5, 1923, 2551, 572, 32, 50, 67, 19, 14, 15414, 6, 9, 47, 98, 88, 14, 1637, 16441, 111, 90...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Force attribute usage in subclass of abstract superclass === How can I force a subclass to implement certain Attributes of its superclass? The reason is that I want to use Attributes for general information about the class, e.g. "DisplayName", "Description" or "Capabilities". So I thought I might implement them in a superclass and force the subclasses to implement the attributes. Is there something like an `abstract` attribute?
0
[ 2, 558, 35, 14755, 7514, 19, 972, 1898, 16, 8502, 1026, 1898, 800, 3726, 3726, 184, 92, 31, 558, 21, 972, 1898, 20, 8713, 1200, 13422, 16, 82, 1026, 1898, 60, 14, 1215, 25, 30, 31, 259, 20, 275, 13422, 26, 297, 676, 88, 14, 71...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Storing Direct Debit details in PHP/MySQL - Implications, is it even allowed? === I have a client who needs to be able to store their customers Direct Debit details (2k+ customers) on an existing online system that I previously built for them. For each customer it must store the full direct debit payment details. This basically means the sort code and bank account number, in addition to information already on the customer profile such as name and address. My main concern here is security. I really dont feel happy about being responsible for peoples payment details, as I'm sure no developer would! I was wondering what the legal implications are, and if there are any viable alternative ways to store direct debit information maybe with a 3rd party using an API or something. (I should note that this is UK based in pounds sterling, so any 3rd party must accept UK -> UK direct debit payments). The client has been using NatWest Bankline for processing the actual payments, and will continue to do so. The storage part is all that my system will be doing. Many thanks
2
[ 2, 25615, 1744, 121, 3326, 3289, 19, 13, 26120, 118, 915, 18, 22402, 13, 8, 14747, 15, 25, 32, 166, 1159, 60, 800, 3726, 3726, 31, 57, 21, 6819, 72, 2274, 20, 44, 777, 20, 1718, 66, 5279, 1744, 121, 3326, 3289, 13, 5, 135, 197...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Edge removal (in matlab) === I have a image which looks like this: http://i.imgur.com/xb47y.png (I can post images - sorry. Please help me out here) The (blue) background have the value zero, the the (red) ring has a "large" value (compared to the rest of the image). I want to plot only the orange part of the sample. However, due to the finite resolution of the image the edges still appear as show here: http://i.imgur.com/p7xw6.png As you can see specially the white regions (yes there are a few) above are hard to see due to all the noise from edges. Is there a good algorithm (preferable in matlab) which can help me clean up these images?
0
[ 2, 1407, 7797, 13, 5, 108, 4277, 9086, 6, 800, 3726, 3726, 31, 57, 21, 1961, 56, 1879, 101, 48, 45, 7775, 6903, 49, 9, 1660, 11147, 9, 960, 118, 396, 220, 2918, 93, 9, 306, 2723, 13, 5, 49, 92, 678, 3502, 13, 8, 1875, 9, 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...
vagrant up issue === I have a VM that is made with vagrant and chef. Last night my computer restarted unexpectedly while the VM was up and running . After that, when I try to vagrant up the VM I get: **Chef never successfully completed! Any errors should be visible in the output above. Please fix your recipes so that they properly complete.** [default] VM already created. Booting if it's not already running... [default] Clearing any previously set forwarded ports... [default] Forwarding ports... [default] -- 22 => 2222 (adapter 1) [default] Creating shared folders metadata... [default] Clearing any previously set network interfaces... [default] Preparing network interfaces based on configuration... [default] Running any VM customizations... [default] Booting VM... [default] Waiting for VM to boot. This can take a few minutes. [default] VM booted and ready for use! [default] Configuring and enabling network interfaces... [default] Mounting shared folders... [default] -- v-root: /vagrant [default] -- v-data: /vagrant [default] -- v-csr-2: /tmp/vagrant-chef-1/chef-solo-2/roles [default] -- v-csc-1: /tmp/vagrant-chef-1/chef-solo-1/cookbooks [default] Running provisioner: Vagrant::Provisioners::ChefSolo... [default] Generating chef JSON and uploading... [default] Running chef-solo... stdin: is not a tty [Tue, 10 Jul 2012 00:59:36 -0700] INFO: *** Chef 0.10.2 *** [Tue, 10 Jul 2012 00:59:36 -0700] INFO: Setting the run_list to ["role[my-site]"] from JSON [Tue, 10 Jul 2012 00:59:36 -0700] INFO: Run List is [role[my-site]] [Tue, 10 Jul 2012 00:59:36 -0700] INFO: Run List expands to [memcached, my-site, my-site::vm] [Tue, 10 Jul 2012 00:59:36 -0700] INFO: Starting Chef Run for lucid32 [Tue, 10 Jul 2012 00:59:37 -0700] ERROR: Running exception handlers [Tue, 10 Jul 2012 00:59:37 -0700] ERROR: Exception handlers complete [Tue, 10 Jul 2012 00:59:37 -0700] FATAL: Stacktrace dumped to /tmp/vagrant-chef-1/chef-stacktrace.out [Tue, 10 Jul 2012 00:59:37 -0700] FATAL: NoMethodError: undefined method `[]' for nil:NilClass Chef never successfully completed! Any errors should be visible in the output above. Please fix your recipes so that they properly complete. Any thoughts, Thanks, Radu
0
[ 2, 3471, 12965, 71, 1513, 800, 3726, 3726, 31, 57, 21, 13, 20147, 30, 25, 117, 29, 3471, 12965, 17, 8915, 9, 236, 343, 51, 1428, 27440, 16044, 133, 14, 13, 20147, 23, 71, 17, 946, 13, 9, 75, 30, 15, 76, 31, 1131, 20, 3471, 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...
finding line contains x,y points in java === I have not used Line class in java graphics API for drawing line. i had implemented from myself now i have to find that line contains x,y points. if line contains these x,y points then returns true otherwise it returns false. thanks in advance
1
[ 2, 3007, 293, 1588, 993, 15, 93, 819, 19, 8247, 800, 3726, 3726, 31, 57, 52, 147, 293, 718, 19, 8247, 8351, 21, 2159, 26, 3533, 293, 9, 31, 41, 6807, 37, 992, 130, 31, 57, 20, 477, 30, 293, 1588, 993, 15, 93, 819, 9, 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...
Postgres error "invalid value for parameter "TimeZone": "UTC"" === Jupitor$ bundle exec rake db:create db:migrate APP_development already exists rake aborted! PG::Error: ERROR: invalid value for parameter "TimeZone": "UTC" : SET time zone 'UTC' I keep getting this error when trying to migrate to my postgres database. help would be much appreciated!
0
[ 2, 678, 6879, 18, 7019, 13, 7, 108, 18506, 43, 1923, 26, 18906, 13, 7, 891, 11661, 7, 45, 13, 7, 11440, 7, 7, 800, 3726, 3726, 3191, 7328, 248, 4403, 10194, 1396, 3319, 21009, 13, 9007, 45, 6037, 1373, 13, 9007, 45, 10183, 5487,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
TabContainer scrolling issue === I'm using Ajax TabContainer and I have the following situation: let say I have 3 tabs inside each one the is a listview with number of records. Now, when I scroll down in the first tab and after that going to the second or third tab I notice that the scrollbar position is the same as the first one.. while it should be at the top. So please can anyone help me in this?
0
[ 2, 6523, 1126, 5851, 106, 13, 28166, 1513, 800, 3726, 3726, 31, 22, 79, 568, 20624, 6523, 1126, 5851, 106, 17, 31, 57, 14, 249, 1858, 45, 408, 395, 31, 57, 203, 6523, 18, 572, 206, 53, 14, 25, 21, 968, 4725, 29, 234, 16, 742, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
accessing to active directory via mssql === I want to access active directory and to be able to execute LDAP queries via stored procedure in MSSQL.<br> How do I declare a linked server for that?<br> How do I declare LDAP queries? Thanks in advance Kobi
0
[ 2, 1381, 68, 20, 1348, 16755, 1197, 4235, 18, 22402, 800, 3726, 3726, 31, 259, 20, 1381, 1348, 16755, 17, 20, 44, 777, 20, 15644, 644, 20472, 9386, 2829, 1197, 8214, 7004, 19, 4235, 18, 22402, 9, 1, 5145, 1, 184, 107, 31, 10123, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
find specific links that contain a word and add to array === I am trying to search a page for links that contain the word playgame. If they found then I add them to an array. After that Select a random value from the array and use `window.location`. My problem is that it says my `indexof` is undefined. I not sure exactly that what means as I am still learning to use this feature of javascript. var gameLinks = document.getElementsByTagName("a"); if (gameLinks.href.indexOf("playgame") != -1) { links = []; links.push(gameLinks.href); randomHref = links[Math.floor(Math.random() * links.length)]; window.location = randomHref; }
0
[ 2, 477, 1903, 6271, 30, 3717, 21, 833, 17, 3547, 20, 7718, 800, 3726, 3726, 31, 589, 749, 20, 2122, 21, 2478, 26, 6271, 30, 3717, 14, 833, 418, 5128, 9, 100, 59, 216, 94, 31, 3547, 105, 20, 40, 7718, 9, 75, 30, 5407, 21, 547...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
TouchXMl (nodesForXPath) returning NULL object === I have following xml mutableData. < responce xmlns:xsi="http://.." xmlns:xsd="http://..." xmlns="http://..."> < Succeeded id="0"> < uri>userName</uri> < signatureData>PdppDDD8388OPDJJD==</signatureData> < /Succeeded> < /responce> And I have written following line of code for parsing the above xml string. CXMLDocument *doc=[[CXMLDocument alloc]initWithData:responseData options:0 error:nil]; NSArray *nodes=nil; nodes=[doc nodesForXPath:@"//signatureData" error:nil]; Here responceData is holding above xml string. I have to find signatureData value. But it is sending 0 object in nodes array. What is wrong with the code?
0
[ 2, 1723, 396, 8184, 13, 5, 251, 3196, 1106, 396, 8353, 6, 2485, 16203, 3095, 800, 3726, 3726, 31, 57, 249, 23504, 2832, 5924, 18768, 9, 13, 1, 302, 3401, 13120, 23504, 2172, 45, 396, 18, 49, 3726, 7, 21127, 6903, 9, 9, 7, 23504,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 do items disappear and appear upon select/un-select checkbox? === how do items disappear/appear and price changes when we select/ un-select items' check boxes in the amazon frequently bought together feature. please provide me with steps. note i use php.
1
[ 2, 184, 107, 3755, 10866, 17, 1893, 685, 5407, 118, 1020, 8, 18, 16964, 2631, 5309, 60, 800, 3726, 3726, 184, 107, 3755, 10866, 118, 22306, 512, 17, 2162, 1693, 76, 95, 5407, 118, 367, 8, 18, 16964, 3755, 22, 2631, 8120, 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, 0...
Use antivirus in the application to scan files === I was trying to develop an application in android which should use some antivirus to scan the files on the device. Have searched a lot on internet but couldn't found any. Anybody please suggest me some antivirus and the way to interface it with my application. Thank you.
0
[ 2, 275, 1082, 14792, 19, 14, 3010, 20, 8313, 6488, 800, 3726, 3726, 31, 23, 749, 20, 2803, 40, 3010, 19, 13005, 56, 378, 275, 109, 1082, 14792, 20, 8313, 14, 6488, 27, 14, 3646, 9, 57, 9036, 21, 865, 27, 2620, 47, 711, 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...
Facebook - getting comments under post - using fbconsole === I'm trying to get comments to a set of posts on a particular FB web page using Python and fbconsole (in this case, I'm getting posts from the Diane Rehm Show): import sys import fbconsole from datetime import datetime fbconsole.AUTH_SCOPE=['publish_stream','publish_checkins','read_stream'] #(note: I'm actually using an app with an app_id and app-secret) #fbconsole.APP_ID=<appid> #fbconsole.APP_SECRET=<appsecret> fbconsole.authenticate() posts = fbconsole.fql("SELECT post_id, created_time, message, actor_id, action_links, attachment, comments FROM stream WHERE (source_id = 64779275389 AND actor_id=64779275389) ORDER BY created_time DESC LIMIT 100") for post in posts: if (' @ 10 (ET)' in post['message'].encode('ascii', 'ignore')): print("{0}: {2} -1}\n".format(datetime.fromtimestamp(post['created_time']),post['message'].encode('ascii', 'ignore'),post['actor_id'])) comments = post['comments'] commentlist= comments['comment_list'] print(commentlist) print("\n\n======================\n") if ( comments['count'] > 1): tpost=post['post_id'] print tpost query="SELECT fromid, username, text, time, comments FROM comment WHERE post_id ={}".format(tpost) truecommentlist=fbconsole.fql(query) This gives an error: Traceback (most recent call last): File "<stdin>", line 12, in <module> File "/usr/local/lib/python2.7/dist-packages/fbconsole.py", line 318, in fql return json.load(urllib2.urlopen(url))['data'] File "/usr/lib/python2.7/urllib2.py", line 126, in urlopen return _opener.open(url, data, timeout) File "/usr/lib/python2.7/urllib2.py", line 400, in open response = meth(req, response) File "/usr/lib/python2.7/urllib2.py", line 513, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.7/urllib2.py", line 438, in error return self._call_chain(*args) File "/usr/lib/python2.7/urllib2.py", line 372, in _call_chain result = func(*args) File "/usr/lib/python2.7/urllib2.py", line 521, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) urllib2.HTTPError: HTTP Error 400: Bad Request I've tried just using a known post_id and that gives the same error. Can anyone help me determine why I cannot pull comments from the comment using the 'main' post_id?
0
[ 2, 9090, 13, 8, 1017, 7534, 131, 678, 13, 8, 568, 13, 13478, 12124, 6069, 800, 3726, 3726, 31, 22, 79, 749, 20, 164, 7534, 20, 21, 309, 16, 9868, 27, 21, 1498, 13, 13478, 2741, 2478, 568, 20059, 17, 13, 13478, 12124, 6069, 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...
What is the difference between RemoteWebDriver.executeScript() and Selenium.getEval()? === What is the difference between this: RemoteWebDriver driver = new FirefoxDriver(); Object result = driver.executeScript("somefunction();"); and this: RemoteWebDriver driver = new FirefoxDriver(); Selenium seleniumDriver = new WebDriverBackedSelenium(driver, driver.getCurrentUrl()); String result = seleniumDriver.getEval("somefunction();"); I have an example when first command works and second hangs Firefox and other way around. I'd like to understand what is the difference between these two functions.
0
[ 2, 98, 25, 14, 2841, 128, 5388, 14113, 21752, 9, 1706, 17194, 591, 8741, 5, 6, 17, 23027, 14311, 9, 3060, 62, 3377, 5, 6, 60, 800, 3726, 3726, 98, 25, 14, 2841, 128, 48, 45, 5388, 14113, 21752, 2425, 800, 78, 535, 18219, 21752, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 do i find if element is not in a ruby array? === Ok so i have this array array => [1620, 3093] and I have a integer num => 1620 is there an easy way to see if there is another number in the array that is not `num` so for example is there another number in the array that doesnt match `num`. So for the above example i would return true but if array was `[1620, 1620]` then i would return false
0
[ 2, 184, 107, 31, 477, 100, 4520, 25, 52, 19, 21, 10811, 7718, 60, 800, 3726, 3726, 5854, 86, 31, 57, 48, 7718, 7718, 800, 1, 636, 1091, 1323, 15, 712, 4069, 500, 17, 31, 57, 21, 13820, 13, 6336, 800, 1, 25075, 25, 80, 40, 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...
How to get a callback on MondoDB collection.find() === When I run `collection.find()` in MongoDB/Node/Express, I'd like to get a callback when it's finished. What's the correct syntax for this? function (id,callback) { var o_id = new BSON.ObjectID(id); db.open(function(err,db){ db.collection('users',function(err,collection){ collection.find({'_id':o_id},function(err,results){ //What's the correct callback synatax here? db.close(); callback(results); }) //find }) //collection }); //open }
0
[ 2, 184, 20, 164, 21, 645, 1958, 27, 3521, 537, 9007, 1206, 9, 19811, 5, 6, 800, 3726, 3726, 76, 31, 485, 13, 1, 15015, 872, 9, 19811, 5, 6, 1, 19, 3521, 5474, 220, 118, 251, 546, 118, 21230, 15, 31, 22, 43, 101, 20, 164, 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...
Distributed Cache Hadoop not retreiving the file content === I am getting some garbage like value instead of the data from the file I want to use as distributed cache. The Job Configuration is as follows: Configuration config5 = new Configuration(); JobConf conf5 = new JobConf(config5, Job5.class); conf5.setJobName("Job5"); conf5.setOutputKeyClass(Text.class); conf5.setOutputValueClass(Text.class); conf5.setMapperClass(MapThree4c.class); conf5.setReducerClass(ReduceThree5.class); conf5.setInputFormat(TextInputFormat.class); conf5.setOutputFormat(TextOutputFormat.class); DistributedCache.addCacheFile(new URI("/home/users/mlakshm/ap1228"), conf5); FileInputFormat.setInputPaths(conf5, new Path(other_args.get(5))); FileOutputFormat.setOutputPath(conf5, new Path(other_args.get(6))); JobClient.runJob(conf5); In the Mapper, I have the following code: public class MapThree4c extends MapReduceBase implements Mapper<LongWritable, Text, Text, Text >{ private Set<String> prefixCandidates = new HashSet<String>(); Text a = new Text(); public void configure(JobConf conf5) { Path[] dates = new Path[0]; try { dates = DistributedCache.getLocalCacheFiles(conf5); System.out.println("candidates: "+candidates); String astr = dates.toString(); a = new Text(astr); } catch (IOException ioe) { System.err.println("Caught exception while getting cached files: " + StringUtils.stringifyException(ioe)); } } public void map(LongWritable key, Text value, OutputCollector<Text, Text> output, Reporter reporter) throws IOException { String line = value.toString(); StringTokenizer st = new StringTokenizer(line); st.nextToken(); String t = st.nextToken(); String uidi = st.nextToken(); String uidj = st.nextToken(); String check = null; output.collect(new Text(line), a); } } The output value, I am getting from this mapper is:[Lorg.apache.hadoop.fs.Path;@786c1a82 instead of the value from the distributed cache file. Please help!
0
[ 2, 4387, 16522, 41, 21709, 52, 13, 6239, 99, 3757, 68, 14, 3893, 2331, 800, 3726, 3726, 31, 589, 1017, 109, 15024, 101, 1923, 700, 16, 14, 1054, 37, 14, 3893, 31, 259, 20, 275, 28, 4387, 16522, 9, 14, 1205, 8091, 25, 28, 2415, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Can you drag-and-drop a TextView when it is in a child of a TableLayout? === My code is as followed thus far, as I am testing it out: public class TestActivity extends Activity { TableLayout table; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_test); table = (TableLayout)findViewById(R.id.table); setStuff(); setStuff2(); setStuff3(); } public void setStuff() { LayoutInflater inflater = LayoutInflater.from(this); TextView view = (TextView)inflater.inflate(R.layout.some_text, table, false); view.setText("First"); view.setTag(String.valueOf(table.getChildCount())); view.setOnLongClickListener(new View.OnLongClickListener() { @Override public boolean onLongClick(View v) { v.startDrag(ClipData.newPlainText("index", v.getTag().toString()), new View.DragShadowBuilder(v), null, 0); Toast.makeText(v.getContext(), "index you are clicking on is "+v.getTag().toString(), Toast.LENGTH_SHORT).show(); return false; } }); table.addView(view); } public void setStuff2() { LayoutInflater inflater = LayoutInflater.from(this); TextView view = (TextView)inflater.inflate(R.layout.some_text, table, false); view.setText("Second"); view.setTag(String.valueOf(table.getChildCount())); table.addView(view); } public void setStuff3() { LayoutInflater inflater = LayoutInflater.from(this); TextView view = (TextView)inflater.inflate(R.layout.some_text, table, false); view.setText("Three"); view.setTag(String.valueOf(table.getChildCount())); table.addView(view); } protected class MyDragListener implements View.OnDragListener { @Override public boolean onDrag(View v, DragEvent event) { //Stuff to check the event action cases return false; } }//end of MyDragListener Now when I long press the first item, it runs correctly because I get the Toast notification. I do not see the DragShadow though, which I am suppose to see. My guess is that because it is part of the TableLayout, it might be causing this. Any ideas?
0
[ 2, 92, 42, 5501, 8, 290, 8, 12361, 21, 1854, 4725, 76, 32, 25, 19, 21, 850, 16, 21, 859, 4414, 1320, 60, 800, 3726, 3726, 51, 1797, 25, 28, 709, 1086, 463, 15, 28, 31, 589, 4431, 32, 70, 45, 317, 718, 1289, 19348, 9073, 2358...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 inject values into a mocked object's constructor or via a setter? Am getting Unexpected Invocation error === My question: how to create a mocked object and inject attributes via the constructor or a setter? I get unexpected invocation errors. I am doing a set on my mock object in @Before to set the name attribute for my BAPI. When i execute the test, I get an unexpected invocation error on my setName method. But, I don't really want to test this method. I'm just plugging it so the value is there when my code executes the method checkParm(b). If I don't add any expectation for the setter on the mocked I get unexpected invocation. But, also if I add this code to the expectations, I still get unexpected invocation. ignoring(mockAdapter).setName(BAPI_NAME); inSequence(sequence); here's my @Before method @Before public void setUp() throws Exception { objectUnderTest = new ApoSAPExtractor(); mockAdapter = context.mock(BapiAdapter.class); mockAdapter.setName(BAPI_NAME); apoResults = new ApoResults(); apoParameterBean = new ApoParameterBean(); } Then my test method: @Test public final void testExtract() throws Exception { final Sequence sequence = context.sequence(SEQUENCE); context.checking(new Expectations() {{ atLeast(1).of(mockAdapter).getName(); will(returnValue(new String())); inSequence(sequence); oneOf(mockAdapter).activate(); inSequence(sequence); oneOf(mockAdapter).getImportTableParameter(IM_PARMS); inSequence(sequence); will(returnValue(JCoTable.class)); oneOf(mockAdapter).execute(); inSequence(sequence); oneOf(mockAdapter).getExportTableAdapter(EX_PO_APO); inSequence(sequence); will(returnValue(new TableAdapter(with(any(JCoTable.class))))); }}); objectUnderTest.extract(mockAdapter, apoParameterBean); context.assertIsSatisfied(); } The class I'm mocking: public class ApoSAPExtractor implements SAPExtractor<ApoResults, ApoParameterBean> { private final static Logger logger = Logger.getLogger(ApoSAPExtractor.class); public List<ApoResults> extract(BapiAdapter b, ApoParameterBean pb) throws JCoException, Exception { checkParm(b); List<ApoResults>list = new ArrayList<ApoResults>(); try { b.activate(); JCoTable itp = b.getImportTableParameter(APOConstants.BAPI_IM_PARMS); itp.appendRow(); JCoTable t = itp.getTable(APOConstants.BAPI_DOC_TYPES); Utils.appendParm(t, pb.getDocTypes()); b.execute(); TableAdapter ta = b.getExportTableAdapter(APOConstants.BAPI_EX_PO_APO); for (int i = 0; i < ta.size(); i++) { ApoResults ar = new ApoResults(); ... lots of setters ... list.add(ar); ta.next(); } } catch (Exception e) { logger.info(String.format("Program %s failed.",this.getClass().getSimpleName(), "failed")); e.printStackTrace(); throw e; } return list; }
0
[ 2, 184, 20, 20316, 4070, 77, 21, 25900, 3095, 22, 18, 6960, 248, 54, 1197, 21, 309, 815, 60, 589, 1017, 9380, 19, 2625, 16893, 7019, 800, 3726, 3726, 51, 1301, 45, 184, 20, 1600, 21, 25900, 3095, 17, 20316, 13422, 1197, 14, 6960, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Error converting .flv to .avi with ffmpeg === When i try the 2d code, with a 5 minutes 7 second video, I get a 28 minutes 29 seconds video, What did I do wrong? Here is the ffmpeg output: [Me@Hewlett-Packard Downloads]$ ffmpeg -i "0042473.flv" -s 400x240 -aspect 2:1 -r 20 -vcodec mjpeg -qscale 1 -acodec adpcm_ima_wav -ac 2 "VID_0001.AVI" ffmpeg version 0.8.10, Copyright © 2000-2011 the FFmpeg developers built on Feb 29 2012 16:30:44 with gcc 4.6.2 20111027 (Red Hat 4.6.2-1) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --enable-bzlib --enable-libcelt --enable-libdc1394 --enable-libdirac --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect libavutil 51. 9. 1 / 51. 9. 1 libavcodec 53. 8. 0 / 53. 8. 0 libavformat 53. 5. 0 / 53. 5. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 23. 0 / 2. 23. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 [flv @ 0x2165600] Estimating duration from bitrate, this may be inaccurate Seems stream 0 codec frame rate differs from container frame rate: 59.94 (2997/50) -> 29.97 (30000/1001) Input #0, flv, from '0042473.flv': Metadata: minor_version : 1 stereo : true videocodecid : 7 audiodatarate : 62 audiosamplerate : 44100 audiosize : 2476815 canSeekToEnd : true creation_time : 2011-05-01 18:06:43 copyright : compatible_brands: isomavc1 datasize : 16589374 duration : 308 copyright-eng : encoder : Lavf52.104.0 videodatarate : 351 hasAudio : true hasCuePoints : false hasKeyframes : true hasMetadata : true hasVideo : true width : 480 lasttimestamp : 308 audiocodecid : 10 metadatacreator : flvtool++ (Facebook, Motion project, dweatherford) major_brand : isom audiosamplesize : 16 totalframes : 9225 framerate : 30 height : 272 videosize : 13863389 filesize : 16587742 Duration: 00:05:07.94, start: 0.000000, bitrate: 423 kb/s Stream #0.0: Video: h264 (High), yuv420p, 480x272 [PAR 1:1 DAR 30:17], 359 kb/s, 29.97 tbr, 1k tbn, 59.94 tbc Stream #0.1: Audio: aac, 44100 Hz, stereo, s16, 63 kb/s Incompatible pixel format 'yuv420p' for codec 'mjpeg', auto-selecting format 'yuvj420p' [buffer @ 0x216b180] w:480 h:272 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param: [scale @ 0x216bf40] w:480 h:272 fmt:yuv420p -> w:400 h:240 fmt:yuvj420p flags:0x4 Output #0, avi, to 'VID_0001.AVI': Metadata: minor_version : 1 stereo : true videocodecid : 7 audiodatarate : 62 audiosamplerate : 44100 audiosize : 2476815 canSeekToEnd : true creation_time : 2011-05-01 18:06:43 ICOP : compatible_brands: isomavc1 datasize : 16589374 duration : 308 copyright-eng : filesize : 16587742 videodatarate : 351 hasAudio : true hasCuePoints : false hasKeyframes : true hasMetadata : true hasVideo : true width : 480 lasttimestamp : 308 audiocodecid : 10 metadatacreator : flvtool++ (Facebook, Motion project, dweatherford) major_brand : isom audiosamplesize : 16 totalframes : 9225 framerate : 30 height : 272 videosize : 13863389 ISFT : Lavf53.5.0 Stream #0.0: Video: mjpeg, yuvj420p, 400x240 [PAR 6:5 DAR 2:1], q=2-31, 200 kb/s, 20 tbn, 20 tbc Stream #0.1: Audio: adpcm_ima_wav, 44100 Hz, stereo, s16, 352 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop, [?] for help frame= 43 fps= 0 q=1.0 size= 1330kB time=00:00:02.12 bitrate=5135.7kbits/sframe= 87 fps= 86 q=1.0 size= 2712kB time=00:00:04.35 bitrate=5097.2kbits/sframe= 135 fps= 89 q=1.0 size= 3579kB time=00:00:06.78 bitrate=4324.9kbits/sframe= 185 fps= 92 q=1.0 size= 4307kB time=00:00:09.27 bitrate=3805.9kbits/sframe= 231 fps= 92 q=1.0 size= 5208kB time=00:00:11.55 bitrate=3692.4kbits/sframe= 276 fps= 91 q=1.0 size= 6129kB time=00:00:13.83 bitrate=3628.5kbits/sframe= 318 fps= 90 q=1.0 size= 6978kB time=00:00:15.91 bitrate=3592.6kbits/sframe= 366 fps= 91 q=1.0 size= 7990kB time=00:00:18.33 bitrate=3570.2kbits/sframe= 408 fps= 90 q=1.0 size= 8912kB time=00:00:20.43 bitrate=3573.2kbits/sframe= 451 fps= 90 q=1.0 size= 9831kB time=00:00:22.55 bitrate=3570.9kbits/sframe= 495 fps= 89 q=1.0 size= 10827kB time=00:00:24.74 bitrate=3584.4kbits/sframe= 539 fps= 89 q=1.0 size= 11845kB time=00:00:26.91 bitrate=3605.5kbits/sframe= 583 fps= 89 q=1.0 size= 12939kB time=00:00:29.14 bitrate=3636.2kbits/sframe= 630 fps= 89 q=1.0 size= 13790kB time=00:00:31.52 bitrate=3583.5kbits/sframe= 676 fps= 89 q=1.0 size= 14710kB time=00:00:33.80 bitrate=3564.4kbits/sframe= 723 fps= 90 q=1.0 size= 15651kB time=00:00:36.16 bitrate=3545.7kbits/sframe= 767 fps= 90 q=1.0 size= 16589kB time=00:00:38.35 bitrate=3543.6kbits/sframe= 809 fps= 89 q=1.0 size= 17576kB time=00:00:40.42 bitrate=3561.7kbits/sframe= 852 fps= 89 q=1.0 size= 18598kB time=00:00:42.61 bitrate=3575.0kbits/sframe= 898 fps= 89 q=1.0 size= 19548kB time=00:00:44.90 bitrate=3566.6kbits/sframe= 940 fps= 89 q=1.0 size= 20666kB time=00:00:46.97 bitrate=3603.9kbits/sframe= 982 fps= 89 q=1.0 size= 21739kB time=00:00:49.12 bitrate=3625.5kbits/sframe= 1024 fps= 88 q=1.0 size= 22711kB time=00:00:51.25 bitrate=3630.2kbits/sframe= 1070 fps= 88 q=1.0 size= 23769kB time=00:00:53.47 bitrate=3640.9kbits/sframe= 1118 fps= 89 q=1.0 size= 24935kB time=00:00:55.90 bitrate=3654.2kbits/sframe= 1165 fps= 89 q=1.0 size= 26047kB time=00:00:58.22 bitrate=3664.3kbits/sframe= 1213 fps= 89 q=1.0 size= 27187kB time=00:01:00.62 bitrate=3673.5kbits/sframe= 1265 fps= 90 q=1.0 size= 27935kB time=00:01:03.23 bitrate=3619.0kbits/sframe= 1315 fps= 90 q=1.0 size= 28590kB time=00:01:05.79 bitrate=3559.7kbits/sframe= 1366 fps= 90 q=1.0 size= 29229kB time=00:01:08.30 bitrate=3505.3kbits/sframe= 1415 fps= 91 q=1.0 size= 29928kB time=00:01:10.75 bitrate=3465.2kbits/sframe= 1464 fps= 91 q=1.0 size= 30612kB time=00:01:13.25 bitrate=3423.5kbits/sframe= 1512 fps= 91 q=1.0 size= 31309kB time=00:01:15.64 bitrate=3390.8kbits/sframe= 1561 fps= 91 q=1.0 size= 31997kB time=00:01:18.06 bitrate=3357.8kbits/sframe= 1608 fps= 91 q=1.0 size= 32760kB time=00:01:20.36 bitrate=3339.3kbits/sframe= 1654 fps= 91 q=1.0 size= 33563kB time=00:01:22.69 bitrate=3324.7kbits/sframe= 1700 fps= 91 q=1.0 size= 34318kB time=00:01:24.98 bitrate=3308.2kbits/sframe= 1745 fps= 91 q=1.0 size= 35041kB time=00:01:27.24 bitrate=3290.4kbits/sframe= 1791 fps= 91 q=1.0 size= 35749kB time=00:01:29.56 bitrate=3269.6kbits/sframe= 1837 fps= 91 q=1.0 size= 36442kB time=00:01:31.85 bitrate=3250.1kbits/sframe= 1884 fps= 91 q=1.0 size= 37121kB time=00:01:34.20 bitrate=3228.0kbits/sframe= 1931 fps= 91 q=1.0 size= 37840kB time=00:01:36.53 bitrate=3211.1kbits/sframe= 1978 fps= 91 q=1.0 size= 38561kB time=00:01:38.90 bitrate=3193.8kbits/sframe= 2025 fps= 91 q=1.0 size= 39279kB time=00:01:41.28 bitrate=3176.9kbits/sframe= 2072 fps= 91 q=1.0 size= 40005kB time=00:01:43.59 bitrate=3163.6kbits/sframe= 2117 fps= 91 q=1.0 size= 40833kB time=00:01:45.87 bitrate=3159.5kbits/sframe= 2158 fps= 91 q=1.0 size= 41561kB time=00:01:47.90 bitrate=3155.3kbits/sframe= 2202 fps= 91 q=1.0 size= 42407kB time=00:01:50.14 bitrate=3154.1kbits/sframe= 2248 fps= 91 q=1.0 size= 43201kB time=00:01:52.42 bitrate=3147.9kbits/sframe= 2295 fps= 91 q=1.0 size= 43975kB time=00:01:54.75 bitrate=3139.3kbits/sframe= 2342 fps= 91 q=1.0 size= 44739kB time=00:01:57.10 bitrate=3129.7kbits/sframe= 2388 fps= 91 q=1.0 size= 45532kB time=00:01:59.43 bitrate=3123.0kbits/sframe= 2435 fps= 91 q=1.0 size= 46306kB time=00:02:01.80 bitrate=3114.5kbits/sframe= 2481 fps= 91 q=1.0 size= 47095kB time=00:02:04.02 bitrate=3110.7kbits/sframe= 2530 fps= 91 q=1.0 size= 47778kB time=00:02:06.49 bitrate=3094.3kbits/sframe= 2578 fps= 91 q=1.0 size= 48507kB time=00:02:08.91 bitrate=3082.5kbits/sframe= 2622 fps= 91 q=1.0 size= 49169kB time=00:02:11.08 bitrate=3072.9kbits/sframe= 2670 fps= 91 q=1.0 size= 49851kB time=00:02:13.54 bitrate=3057.9kbits/sframe= 2718 fps= 91 q=1.0 size= 50531kB time=00:02:15.92 bitrate=3045.5kbits/sframe= 2764 fps= 91 q=1.0 size= 51242kB time=00:02:18.18 bitrate=3037.8kbits/sframe= 2810 fps= 92 q=1.0 size= 51959kB time=00:02:20.51 bitrate=3029.3kbits/sframe= 2835 fps= 90 q=1.0 size= 52376kB time=00:02:21.78 bitrate=3026.2kbits/sframe= 2879 fps= 90 q=1.0 size= 53093kB time=00:02:23.94 bitrate=3021.5kbits/sframe= 2923 fps= 90 q=1.0 size= 53853kB time=00:02:26.18 bitrate=3017.8kbits/sframe= 2968 fps= 90 q=1.0 size= 54594kB time=00:02:28.39 bitrate=3013.7kbits/sframe= 3012 fps= 90 q=1.0 size= 55444kB time=00:02:30.63 bitrate=3015.2kbits/sframe= 3056 fps= 90 q=1.0 size= 56495kB time=00:02:32.78 bitrate=3029.2kbits/sframe= 3098 fps= 90 q=1.0 size= 57463kB time=00:02:34.90 bitrate=3039.0kbits/sframe= 3141 fps= 90 q=1.0 size= 58433kB time=00:02:37.04 bitrate=3048.0kbits/sframe= 3186 fps= 90 q=1.0 size= 59457kB time=00:02:39.33 bitrate=3057.0kbits/sframe= 3232 fps= 90 q=1.0 size= 60471kB time=00:02:41.59 bitrate=3065.6kbits/sframe= 3277 fps= 90 q=1.0 size= 61485kB time=00:02:43.82 bitrate=3074.5kbits/sframe= 3322 fps= 90 q=1.0 size= 62297kB time=00:02:46.11 bitrate=3072.3kbits/sframe= 3365 fps= 90 q=1.0 size= 63043kB time=00:02:48.27 bitrate=3069.0kbits/sframe= 3409 fps= 90 q=1.0 size= 63752kB time=00:02:50.46 bitrate=3063.7kbits/sframe= 3455 fps= 90 q=1.0 size= 64529kB time=00:02:52.75 bitrate=3060.0kbits/sframe= 3499 fps= 90 q=1.0 size= 65306kB time=00:02:54.96 bitrate=3057.7kbits/sframe= 3545 fps= 90 q=1.0 size= 66070kB time=00:02:57.24 bitrate=3053.6kbits/sframe= 3594 fps= 90 q=1.0 size= 66804kB time=00:02:59.71 bitrate=3045.1kbits/sframe= 3644 fps= 90 q=1.0 size= 67554kB time=00:03:02.18 bitrate=3037.6kbits/sframe= 3690 fps= 90 q=1.0 size= 68436kB time=00:03:04.48 bitrate=3038.8kbits/sframe= 3740 fps= 90 q=1.0 size= 69121kB time=00:03:07.00 bitrate=3028.0kbits/sframe= 3787 fps= 90 q=1.0 size= 69953kB time=00:03:09.33 bitrate=3026.7kbits/sframe= 3832 fps= 90 q=1.0 size= 70857kB time=00:03:11.59 bitrate=3029.7kbits/sframe= 3878 fps= 90 q=1.0 size= 71622kB time=00:03:13.92 bitrate=3025.6kbits/sframe= 3925 fps= 90 q=1.0 size= 72343kB time=00:03:16.25 bitrate=3019.8kbits/sframe= 3973 fps= 90 q=1.0 size= 73100kB time=00:03:18.64 bitrate=3014.5kbits/sframe= 4021 fps= 90 q=1.0 size= 73867kB time=00:03:21.07 bitrate=3009.5kbits/sframe= 4070 fps= 90 q=1.0 size= 74643kB time=00:03:23.53 bitrate=3004.2kbits/sframe= 4119 fps= 90 q=1.0 size= 75363kB time=00:03:25.95 bitrate=2997.6kbits/sframe= 4167 fps= 90 q=1.0 size= 76077kB time=00:03:28.35 bitrate=2991.1kbits/sframe= 4216 fps= 91 q=1.0 size= 76751kB time=00:03:30.77 bitrate=2983.0kbits/sframe= 4263 fps= 91 q=1.0 size= 77432kB time=00:03:33.15 bitrate=2975.9kbits/sframe= 4315 fps= 91 q=1.0 size= 78087kB time=00:03:35.73 bitrate=2965.1kbits/sframe= 4367 fps= 91 q=1.0 size= 78795kB time=00:03:38.34 bitrate=2956.3kbits/sframe= 4418 fps= 91 q=1.0 size= 79475kB time=00:03:40.90 bitrate=2947.2kbits/sframe= 4469 fps= 91 q=1.0 size= 80174kB time=00:03:43.46 bitrate=2939.1kbits/sframe= 4519 fps= 91 q=1.0 size= 80865kB time=00:03:45.90 bitrate=2932.4kbits/sframe= 4567 fps= 91 q=1.0 size= 81621kB time=00:03:48.32 bitrate=2928.4kbits/sframe= 4611 fps= 91 q=1.0 size= 82613kB time=00:03:50.56 bitrate=2935.2kbits/sframe= 4655 fps= 91 q=1.0 size= 83653kB time=00:03:52.80 bitrate=2943.7kbits/sframe= 4699 fps= 91 q=1.0 size= 84646kB time=00:03:54.97 bitrate=2951.1kbits/sframe= 4743 fps= 91 q=1.0 size= 85543kB time=00:03:57.20 bitrate=2954.3kbits/sframe= 4789 fps= 91 q=1.0 size= 86344kB time=00:03:59.42 bitrate=2954.3kbits/sframe= 4836 fps= 91 q=1.0 size= 87090kB time=00:04:01.79 bitrate=2950.6kbits/sframe= 4883 fps= 91 q=1.0 size= 87821kB time=00:04:04.17 bitrate=2946.4kbits/sframe= 4930 fps= 91 q=1.0 size= 88571kB time=00:04:06.50 bitrate=2943.5kbits/sframe= 4977 fps= 91 q=1.0 size= 89318kB time=00:04:08.85 bitrate=2940.3kbits/sframe= 5024 fps= 91 q=1.0 size= 90014kB time=00:04:11.18 bitrate=2935.7kbits/sframe= 5070 fps= 91 q=1.0 size= 90743kB time=00:04:13.55 bitrate=2931.8kbits/sframe= 5120 fps= 91 q=1.0 size= 91438kB time=00:04:16.00 bitrate=2926.0kbits/sframe= 5165 fps= 91 q=1.0 size= 92265kB time=00:04:18.28 bitrate=2926.4kbits/sframe= 5211 fps= 91 q=1.0 size= 93079kB time=00:04:20.56 bitrate=2926.3kbits/sframe= 5258 fps= 91 q=1.0 size= 93913kB time=00:04:22.87 bitrate=2926.6kbits/sframe= 5304 fps= 91 q=1.0 size= 94739kB time=00:04:25.20 bitrate=2926.4kbits/sframe= 5351 fps= 91 q=1.0 size= 95565kB time=00:04:27.60 bitrate=2925.5kbits/sframe= 5398 fps= 91 q=1.0 size= 96368kB time=00:04:29.90 bitrate=2924.9kbits/sframe= 5444 fps= 91 q=1.0 size= 97176kB time=00:04:32.16 bitrate=2924.9kbits/sframe= 5490 fps= 91 q=1.0 size= 98049kB time=00:04:34.54 bitrate=2925.6kbits/sframe= 5538 fps= 91 q=1.0 size= 98914kB time=00:04:36.91 bitrate=2926.1kbits/sframe= 5587 fps= 91 q=1.0 size= 99817kB time=00:04:39.36 bitrate=2927.0kbits/sframe= 5636 fps= 91 q=1.0 size= 100709kB time=00:04:41.83 bitrate=2927.3kbits/sframe= 5682 fps= 91 q=1.0 size= 101490kB time=00:04:44.11 bitrate=2926.3kbits/sframe= 5732 fps= 91 q=1.0 size= 102230kB time=00:04:46.60 bitrate=2922.0kbits/sframe= 5781 fps= 91 q=1.0 size= 102991kB time=00:04:49.07 bitrate=2918.6kbits/sframe= 5827 fps= 91 q=1.0 size= 103918kB time=00:04:51.35 bitrate=2921.8kbits/sframe= 5874 fps= 92 q=1.0 size= 104873kB time=00:04:53.73 bitrate=2924.9kbits/sframe= 5921 fps= 92 q=1.0 size= 105844kB time=00:04:56.08 bitrate=2928.5kbits/sframe= 5970 fps= 92 q=1.0 size= 106670kB time=00:04:58.50 bitrate=2927.4kbits/sframe= 6028 fps= 92 q=1.0 size= 108198kB time=00:05:01.43 bitrate=2940.5kbits/sframe= 6080 fps= 91 q=1.0 size= 109527kB time=00:05:03.99 bitrate=2951.5kbits/sframe= 6138 fps= 92 q=1.0 size= 110623kB time=00:05:06.85 bitrate=2953.3kbits/sframe= 6156 fps= 92 q=1.0 Lsize= 111017kB time=00:05:07.85 bitrate=2954.2kbits/s dup=0 drop=3067 video:97193kB audio:13354kB global headers:0kB muxing overhead 0.425158% Where is my problem?
0
[ 2, 7019, 19583, 13, 9, 4372, 710, 20, 13, 9, 5271, 29, 13, 2460, 79, 20427, 800, 3726, 3726, 76, 31, 1131, 14, 172, 43, 1797, 15, 29, 21, 331, 902, 453, 153, 763, 15, 31, 164, 21, 1274, 902, 1515, 2582, 763, 15, 98, 144, 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...
Weblogic Struck Thread - ArrayList === We have JSF2.1 app deployed in weblogic10.3.4 ,in one of our backing bean ,when we try to assign the reference ArrayList to a List instance ,weblogic ends up in Struck thread ,during peak traffic to our application. java.util.ArrayList.indexOf(ArrayList.java:210) java.util.ArrayList.contains(ArrayList.java:199) Any one has faced this issue before.
0
[ 2, 2741, 24268, 3395, 9322, 13, 8, 7718, 5739, 800, 3726, 3726, 95, 57, 487, 18, 410, 135, 9, 165, 4865, 6698, 19, 2741, 24268, 1036, 9, 240, 9, 300, 13, 15, 108, 53, 16, 318, 3931, 15322, 13, 15, 3185, 95, 1131, 20, 13952, 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...
Regex Lookahead not working in IE6 === I have a regex which works fine in all browsers except IE6. From researching IE6 does not support look ahead assertions. Is there anyway I can rewrite the following expression to be cross browser? Password must be between 8 and 20 characters and contain at least 1 upper case letter, 1 lower case letter and 1 number I am using .Net and regular expression validators. ^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,20}$
0
[ 2, 7953, 1706, 361, 58, 1743, 52, 638, 19, 13, 660, 379, 800, 3726, 3726, 31, 57, 21, 7953, 1706, 56, 693, 1123, 19, 65, 16495, 18, 1613, 13, 660, 379, 9, 37, 527, 68, 13, 660, 379, 630, 52, 555, 361, 2173, 20878, 18, 9, 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...
K-NET Paymanet Gateway Integration with OpenCart === I want to integrate KNET Payment gateway into my OpenCart 1.5.3.1 Website but i am unable to find any help regarding this. Can anyone guide me or help me out to sort out my problem? Thanks in Advance
0
[ 2, 680, 8, 2328, 1372, 177, 1198, 12171, 8078, 29, 368, 1367, 38, 800, 3726, 3726, 31, 259, 20, 18399, 680, 2328, 7582, 12171, 77, 51, 368, 1367, 38, 137, 9, 264, 9, 240, 9, 165, 2271, 47, 31, 589, 2343, 20, 477, 186, 448, 346...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Objective C - Store EAAccessory to NSUserDefaults === In a project I have to make, I am working with external accessories, and the framework ExternalAccessory. (I can connect to **one and only one** accessory). The connection is easy, sending data is not really difficult. One thing I would like to do is to store in memory the last connected device, to try to reconnect to it automatically when the application relaunch. (after leaving, so after the first launch.) So, my problem is that EAAccessory is a custom class object, and could not be stored into NSUserDefaults. I saw this question to store custom objects : http://stackoverflow.com/questions/2315948/how-to-store-custom-objects-in-nsuserdefaults So I would create a NSData with it, but did not succeeded, because EAAccessory does not implements the encodeWithCoder and initWithCoder methods... Any idea ? For this way or another way to process ?
0
[ 2, 7038, 272, 13, 8, 1718, 13507, 20604, 7159, 20, 13, 2172, 16704, 13862, 9708, 18, 800, 3726, 3726, 19, 21, 669, 31, 57, 20, 233, 15, 31, 589, 638, 29, 4886, 19159, 15, 17, 14, 6596, 4886, 20604, 7159, 9, 13, 5, 49, 92, 6379...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 there performance benifits of using OpenGLES 2.0 over OpenGLES 1.1 on Adreno 200 (AMD Z430)? === Since Adreno 200 can't handle much (or almost anything) in terms of fragment shaders other than two-liners that straight up clone OpenGLES 1.x fixed pipeline functionality, is there any reason to use them? On an old phone(HTC Desire with Adreno 200): 1. Is there a performance benefit/penalty to using GLES 2.0 over 1.1 (most importantly, multitexturing)? 2. If I use OpenGLES 1.1, who does the vertex transforms CPU or GPU?
0
[ 2, 25, 80, 956, 1519, 821, 7363, 16, 568, 368, 4875, 18, 172, 9, 387, 84, 368, 4875, 18, 137, 9, 165, 27, 21, 15234, 111, 2327, 13, 5, 765, 43, 2052, 19268, 6, 60, 800, 3726, 3726, 179, 21, 15234, 111, 2327, 92, 22, 38, 3053...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 SimpleAdapter with Mono for Android === I have created a FileDialog activity in Mono for Android. However, it seems to me that there is an issue with some MonoObject to JavaObject casting when using ListView simpleadapter. After I have left onCreate the VM crashes with the following stacktrace: 07-05 15:04:46.493 D/FileDialogActivity( 3430): Left OnCreate 07-05 15:04:46.503 D/AndroidRuntime( 3430): Shutting down VM 07-05 15:04:46.503 W/dalvikvm( 3430): threadid=1: thread exiting with uncaught exception (group=0xb4127180) 07-05 15:04:46.523 D/dalvikvm( 3430): GC_CONCURRENT freed 115K, 3% free 9634K/9863K, paused 0ms+2ms 07-05 15:04:46.523 E/AndroidRuntime( 3430): FATAL EXCEPTION: main 07-05 15:04:46.523 E/AndroidRuntime( 3430): java.lang.ClassCastException: mono.android.runtime.JavaObject cannot be cast to java.util.Map 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.SimpleAdapter.bindView(SimpleAdapter.java:147) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.SimpleAdapter.createViewFromResource(SimpleAdapter.java:126) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.SimpleAdapter.getView(SimpleAdapter.java:114) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.AbsListView.obtainView(AbsListView.java:2033) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.ListView.makeAndAddView(ListView.java:1772) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.ListView.fillDown(ListView.java:672) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.ListView.fillFromTop(ListView.java:732) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.ListView.layoutChildren(ListView.java:1625) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.AbsListView.onLayout(AbsListView.java:1863) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.View.layout(View.java:11278) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.ViewGroup.layout(ViewGroup.java:4224) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1628) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1486) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.LinearLayout.onLayout(LinearLayout.java:1399) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.View.layout(View.java:11278) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.ViewGroup.layout(ViewGroup.java:4224) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.RelativeLayout.onLayout(RelativeLayout.java:925) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.View.layout(View.java:11278) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.ViewGroup.layout(ViewGroup.java:4224) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.FrameLayout.onLayout(FrameLayout.java:431) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.View.layout(View.java:11278) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.ViewGroup.layout(ViewGroup.java:4224) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1628) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1486) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.LinearLayout.onLayout(LinearLayout.java:1399) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.View.layout(View.java:11278) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.ViewGroup.layout(ViewGroup.java:4224) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.FrameLayout.onLayout(FrameLayout.java:431) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.View.layout(View.java:11278) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.ViewGroup.layout(ViewGroup.java:4224) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.FrameLayout.onLayout(FrameLayout.java:431) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.View.layout(View.java:11278) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.ViewGroup.layout(ViewGroup.java:4224) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1628) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1486) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.LinearLayout.onLayout(LinearLayout.java:1399) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.View.layout(View.java:11278) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.ViewGroup.layout(ViewGroup.java:4224) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.FrameLayout.onLayout(FrameLayout.java:431) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.View.layout(View.java:11278) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.ViewGroup.layout(ViewGroup.java:4224) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.FrameLayout.onLayout(FrameLayout.java:431) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.View.layout(View.java:11278) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.ViewGroup.layout(ViewGroup.java:4224) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1628) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.LinearLayout.layoutVertical(LinearLayout.java:1486) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.LinearLayout.onLayout(LinearLayout.java:1399) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.View.layout(View.java:11278) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.ViewGroup.layout(ViewGroup.java:4224) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.widget.FrameLayout.onLayout(FrameLayout.java:431) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.View.layout(View.java:11278) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.ViewGroup.layout(ViewGroup.java:4224) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1489) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2442) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.os.Handler.dispatchMessage(Handler.java:99) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.os.Looper.loop(Looper.java:137) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at android.app.ActivityThread.main(ActivityThread.java:4424) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at java.lang.reflect.Method.invokeNative(Native Method) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at java.lang.reflect.Method.invoke(Method.java:511) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 07-05 15:04:46.523 E/AndroidRuntime( 3430): at dalvik.system.NativeStart.main(Native Method) Some Code: IList<IDictionary<string, object>> mData = new List<IDictionary<string, object>>(); AddFiles(files, mData); // Which just new Dictionary with filedata and icon from a list of files. SimpleAdapter fileAdapter = new SimpleAdapter(this, mData, Resource.Layout.FileDialogRow, new string[] { FileKey, FileImage }, new int[] { Resource.Id.fdrowname, Resource.Id.fdrowimage } ); ListAdapter = fileAdapter; Log.Debug("Left OnCreate"); Anyone else have an issue when using SimpleAdapter on Mono for Android? Or have any clues to what happens here??
0
[ 2, 568, 1935, 27576, 106, 29, 4129, 26, 13005, 800, 3726, 3726, 31, 57, 679, 21, 5263, 549, 5567, 2358, 19, 4129, 26, 13005, 9, 207, 15, 32, 2206, 20, 55, 30, 80, 25, 40, 1513, 29, 109, 4129, 23793, 20, 8247, 23793, 9087, 76, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Modsecurity and bitnami LampStack === some few days ago I've installed the module mod_security in my LAMP STACK.In modsecurity.conf I've something like this: <ifmodule mod_security2.c=""> ... SecRuleEngine On ... Include /etc/apache2/modsecurity-crs/modsecurity_crs_10_config.conf Include /etc/apache2/modsecurity-crs/base_rules/*.conf Include /etc/apache2/modsecurity-crs/activated_rules/*.conf </ifmodule> this configuration is such that Apache hangs during restart, so I've tried to include the rules one by one, but I've some collateral effect with almost any rule... https://docs.google.com/spreadsheet/ccc?key=0Apq7Xsr6Pp7BdEpiS1JOSFdWQWdiVHdKTE5jY1B5RVE do you have any idea?
0
[ 2, 7226, 17749, 17, 1142, 20654, 6792, 25325, 800, 3726, 3726, 109, 310, 509, 1464, 31, 22, 195, 4066, 14, 12613, 7226, 1, 17749, 19, 51, 6792, 7566, 9, 108, 7226, 17749, 9, 14093, 31, 22, 195, 301, 101, 48, 45, 13, 1, 821, 1967...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Memory leak on NSString stringByAppendingPathComponent: === Analyze is showing memory leak where I assign filePath value for fileB in the following code snippet: NSString *docsDir = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES) objectAtIndex:0]; NSString *filePath = [docsDir stringByAppendingPathComponent:@"/fileA"]; if ([[NSFileManager defaultManager] fileExistsAtPath:filePath]){ self.propertyA = [[NSMutableArray alloc] initWithContentsOfFile:filePath]; } else { // initialize array with default values and write to data file fileA [self populatePropertyAForFile:filePath]; } filePath = [docsDir stringByAppendingPathComponent:@"/fileB"]; if ([[NSFileManager defaultManager] fileExistsAtPath:filePath]){ self.propertyB = [[NSMutableArray alloc] initWithContentsOfFile:filePath]; } else { // initialize array with default values and write to data file fileB [self populatePropertyBForFile:filePath]; } I understand it is because the previous value (for fileA) has not been released. But I can't figure-out how to stop this leak.
0
[ 2, 1912, 11724, 27, 13, 2172, 11130, 3724, 779, 7753, 7601, 8353, 11103, 218, 2291, 45, 800, 3726, 3726, 16051, 25, 3187, 1912, 11724, 113, 31, 13952, 3893, 8353, 1923, 26, 3893, 220, 19, 14, 249, 1797, 13, 29061, 45, 13, 2172, 1113...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
hide or encrypt form params in url rails 3 === I have this form: <%= form_tag posts_path, :method => :get, :class => "search_nav" do %> <%= text_field_tag :search, params[:search], :class => "input-long search-query", :placeholder => "#{t('.search_nav')}" %> <%= hidden_field_tag('ip', "#{request.ip}") %> <%= hidden_field_tag('city', "#{request.location.city}") %> <%= hidden_field_tag('country', "#{request.location.country}") %> <%= content_tag(:div, "",:class => "icon-search") %> <% end %> I get a url something like: http://localhost:3000/en/posts?utf8=%E2%9C%93&search=check+params&ip=127.0.0.1&city=&country=Reserved My question is: **Can I hide or encrypt the url params `ip, city and country`?** I can not use `POST` because I have paginate results: <a rel="2" href="/en/posts?city=&country=Reserved&ip=127.0.0.1&page=2&search=check+params&utf8=%E2%9C%93">2</a> <a rel="3" href="/en/posts?city=&country=Reserved&ip=127.0.0.1&page=3&search=check+params&utf8=%E2%9C%93">3/a>
0
[ 2, 3077, 54, 1957, 11435, 505, 2258, 79, 18, 19, 287, 6362, 2240, 18, 203, 800, 3726, 3726, 31, 57, 48, 505, 45, 13, 1, 11881, 3726, 505, 1, 8628, 9868, 1, 8353, 15, 13, 45, 5909, 1807, 43, 800, 1, 13, 45, 3060, 15, 13, 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...
the if formulae === creating a excel template for poker. in it i will have say a cell (which represents my hand) that has say 98o which represents a nine and eight off suit. In another table will show the potential hands that my opponent could have. there are 6 ways of having a pair of nines and 6 ways of having a pair of eights. But since i am holding an 8 and 9, now there only 4 ways of holding a pair of nines and four ways of holding a pair of eights. Thus i want a logical formulae that asks "=if((there is a 9 in cell a1), 4, 6)" cheers
0
[ 2, 14, 100, 3729, 62, 800, 3726, 3726, 2936, 21, 20700, 22894, 26, 12453, 9, 19, 32, 31, 129, 57, 395, 21, 1667, 13, 5, 2140, 4719, 51, 224, 6, 30, 63, 395, 8737, 111, 56, 4719, 21, 1391, 17, 970, 168, 2961, 9, 19, 226, 859,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Reading Data from a File as it grows === I have a binary data file that is written to from a live data stream, so it keeps on growing as stream comes. In the meanwhile, I need to open it at the same time in read-only mode to display data on my application (time series chart).<br><br> Opening the whole file takes a few minutes as it is pretty large (a few 100' MBytes). <br> What I would like to do is, rather than re-opening/reading the whole file every x seconds, read only the last data that was added to the file and append it to the data that was already read.
0
[ 2, 1876, 1054, 37, 21, 3893, 28, 32, 7120, 800, 3726, 3726, 31, 57, 21, 14171, 1054, 3893, 30, 25, 642, 20, 37, 21, 515, 1054, 3766, 15, 86, 32, 8968, 27, 1991, 28, 3766, 1624, 9, 19, 14, 4285, 15, 31, 376, 20, 368, 32, 35, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Get hostname of connecting device === Here is what I do: - a device A open a listening socket and publish a bonjour service to advertise others of its socket. - other device B look for the service and when they find it, they resolve, obtain NSStream using the `[netService getInputStream:&istream outputStream:&ostream]` method. - the device A (which previously open the listening socket) get a callback when the connection is made and again open NSStream. Everything works fine so far, but now, I want device B to be aware of the hostname of device A and vis-versa. Because B resolves the service, I can easily obtain A hostname (netService.hostname), however I can't figure out the other way i.e: for A to get the hostname of device B. This question is related to the one [here][1]. I could really use some help here. Kind regards [1]: http://stackoverflow.com/questions/11101799/getting-hostname-of-a-host-connecting-to-a-socket
0
[ 2, 164, 2015, 7259, 16, 6440, 3646, 800, 3726, 3726, 235, 25, 98, 31, 107, 45, 13, 8, 21, 3646, 21, 368, 21, 4948, 18482, 17, 10824, 21, 5248, 13901, 365, 20, 28490, 654, 16, 82, 18482, 9, 13, 8, 89, 3646, 334, 361, 26, 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...
Implementing a callback without AIDL === How can I implement a callback using `LocalBinder` without AIDL? I've seen the examples of android LocalService.java but it only binds to the Service, there is not callback to the activity. The only callbacks example I see in the examples is the RemoteBinder.java but this uses AIDL and I want to avoid AIDL. Thanks!
0
[ 2, 17333, 21, 645, 1958, 366, 3096, 255, 800, 3726, 3726, 184, 92, 31, 8713, 21, 645, 1958, 568, 13, 1, 15580, 24200, 1, 366, 3096, 255, 60, 31, 22, 195, 541, 14, 3770, 16, 13005, 375, 11449, 9, 1004, 1385, 47, 32, 104, 10193, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Need help Linq Query Group By + Count === I have following Table with records for ActivityLog: ID, UserId, Category, Created 1 11 DeAssigned 05/10/2012 2 11 LogIn 05/11/2012 3 20 Assigned 06/15/2012 4 11 Assigned 06/10/2012 5 20 DeAssigned 06/13/2012 6 20 Assigned 07/12/2012 7 11 DeAssigned 07/16/2012 8 20 Assigned 08/15/2012 ... now i <b>want</b> to query the Table to create same struct the <b>same Result such as this</b>: var data = new[] { new { Month = "05", Assigned = 14, DeAssigned = 5, LogIn=1 }, new { Month = "06", Assigned = 5, DeAssigned = 2, LogIn=0 }, new { Month = "07", Assigned = 50, DeAssigned = 8, LogIn=0 }, new { Month = "08", Assigned = 15, DeAssigned = 1, LogIn=0 } }; what i have achieved: var result = (from l in repoA.GetAll() where l.Created >= System.DateTime.Now.AddYears(-1) group l by new { l.Created.Value.Month, l.Category } into groups orderby groups.Key.Month select new { Month = groups.Key.Month, Category = groups.Key.Category, Count = groups.Count() }); there is not optimal result but count all Activity's grouped by Month: [0] {Month = 6, Category = Assigned, Count = 2} [0] {Month = 6, Category = Designed, Count = 1} [0] {Month = 6, Category = LogIn, Count = 1} [0] {Month = 7, Category = Assigned, Count = 3} How can i query my Table to Format my Result in "Horizontal Counted" format?
0
[ 2, 376, 448, 6294, 1251, 25597, 214, 34, 2754, 2468, 800, 3726, 3726, 31, 57, 249, 859, 29, 742, 26, 2358, 5567, 45, 4924, 15, 275, 5175, 15, 3230, 15, 679, 137, 547, 121, 472, 13472, 13, 4071, 118, 1036, 118, 3212, 172, 547, 67...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Determine the double precision of an input number === I have a question which is in many ways similar to this question: http://stackoverflow.com/questions/3281865/determine-the-decimal-precision-of-an-input-number There is a great way defined for counting the number of places after the decimal point in that last post; var precision = (Decimal.GetBits(argument)[3] >> 16) & 0x000000FF; I am now trying to find the number after the decimal for a double using c#. I know there is an issue with precision being lost if the number gets high enough but regardless - is is there a (mathmatical) way of doing this? Just to pre-empt; I'm not talking about manipulating a string here; that is not the object of the exercise and converting a double to a decimal to use the afore mentioned solution actually suits my needs now as the numbers I am working with won't currently blow out the size of a decimal. So this question is in the nature of an academic enquiry as I am unable to work out a way of doing this! Many thanks, Jason
0
[ 2, 3746, 14, 1494, 13133, 16, 40, 6367, 234, 800, 3726, 3726, 31, 57, 21, 1301, 56, 25, 19, 151, 2847, 835, 20, 48, 1301, 45, 7775, 6903, 25325, 2549, 9990, 9, 960, 118, 24652, 18, 118, 23810, 22777, 118, 546, 3964, 1149, 8, 124...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 return whole value of arrayList in empty autocomple field === this is my implementation of autocompleteField: add(new AutoCompleteTextField<String>("hladaneSlovo") { private static final long serialVersionUID = 1L; @Override protected Iterator<String> getChoices(String prefix) { return hladaneSlova.startsWith(prefix).iterator(); } }); method startWith in my arrayList looks like: public List<String> startsWith(String prefix) { if (prefix == null || prefix.isEmpty()) { return this; } else { List<String> list = new LinkedList<String>(); for (String s : this) { if (s.startsWith(prefix)) { list.add(s); } } return list; } } So I want to get all value when field is empty but this implementation doesnt work. Can you help me ?
0
[ 2, 184, 20, 788, 979, 1923, 16, 7718, 5739, 19, 2424, 3108, 960, 5106, 575, 800, 3726, 3726, 48, 25, 51, 6123, 16, 3108, 15990, 1109, 45, 3547, 5, 2681, 3108, 15990, 11969, 1109, 1, 11130, 1, 5, 7, 19175, 2793, 160, 5942, 111, 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...
Is it possible to call putExtras() and getExtra() without starting a new activity? === I'm having two activities which are displayed side by side on one screen through a fragment for each activity. I wanna send a String when I click a button on one of the activity, and then the other activity should retrieve the String I sent. I know that it's possible to do that with the classic way `setString()` and `getString()` methods. But I'm wondering, could it be accomplished with `putExtra()` and `getExtra()` without opening the targeted activity on a new screen? I do welcome any kind of solution. Thank you
0
[ 2, 25, 32, 938, 20, 645, 442, 23631, 18, 5, 6, 17, 164, 23631, 5, 6, 366, 1422, 21, 78, 2358, 60, 800, 3726, 3726, 31, 22, 79, 452, 81, 1648, 56, 50, 6115, 270, 34, 270, 27, 53, 2324, 120, 21, 14847, 26, 206, 2358, 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...
Name server setup and propagation? === name server setup and propagation? Ok, this is my first stint to add a name server on a VPS with just webmin installed. I've done it before thru cPanel and it's fairly easy following some tutorials from Hostgator. So I've done the steps enumerated in this tutorial: https://www.virtacoresupport.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=134&nav=0,5,16 and came up with these values: $ttl 38400 myaustraliandomain.com.au. IN SOA ns1.myaustraliandomain.com.au. some\.email.myaustraliandomain.com.au. ( 1340932575 10800 3600 604800 38400 ) myaustraliandomain.com.au. IN NS ns1.myaustraliandomain.com.au. myaustraliandomain.com.au. IN NS ns2.myaustraliandomain.com.au. myaustraliandomain.com.au. IN A 111.111.111.111 ns1.myaustraliandomain.com.au. IN A 111.111.111.111 ns2.myaustraliandomain.com.au. IN A 222.222.222.222 myaustraliandomain.com.au. IN MX 1 ASPMX.L.GOOGLE.COM. myaustraliandomain.com.au. IN MX 5 ALT1.ASPMX.L.GOOGLE.COM. myaustraliandomain.com.au. IN MX 5 ALT2.ASPMX.L.GOOGLE.COM. myaustraliandomain.com.au. IN MX 10 ASPMX2.GOOGLEMAIL.COM. myaustraliandomain.com.au. IN MX 10 ASPMX3.GOOGLEMAIL.COM. www.myaustraliandomain.com.au. IN CNAME myaustraliandomain.com.au. (seems like some lines get truncated but I guess you get the picture...) Yup, I purposely changed the domain name, email and IP addresses as you might have guessed. So this domain will serve as my name server for all the subsequent domains I'll be registering. Also, I would want to use Google's free Apps for email services for this domain. Did I get all the values right, or did I miss something? Also, after I restarted Bind service, is that all I need to get these data propagated across the internet or I need to do some more steps? It's been almost a day now and I can't still ping that nameserver (ns1.myaustraliandomain.com.au) Thanks guys!!!
0
[ 2, 204, 8128, 18161, 17, 23664, 60, 800, 3726, 3726, 204, 8128, 18161, 17, 23664, 60, 5854, 15, 48, 25, 51, 64, 11330, 20, 3547, 21, 204, 8128, 27, 21, 13, 10924, 18, 29, 114, 2741, 2160, 4066, 9, 31, 22, 195, 677, 32, 115, 19...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Uncaught TypeError: Cannot read property 'idAttribute' of undefined in backbone-relation.js === I have two models (User and Task) which are instances of `Backbone.RelationalModel`. The relation about these two models is the following: // Task model relations: [ { type: 'HasOne', key: 'user', relatedModel: User // User model } ], Then I have one collection which code looks like this: var FollowerCollection = Backbone.Collection.extend({ // some code }); --- When I make a fetch on FollowerCollection I get the following error: Uncaught TypeError: Cannot read property 'idAttribute' of undefined on the line 1565 of backbone-relation.js of `backbone-relation version 0.5.0` --- Here a piece of code of backbone-relation.js if ( !( model instanceof Backbone.Model ) ) { // Try to find 'model' in Backbone.store. If it already exists, set the new properties on it. var existingModel = Backbone.Relational.store.find( this.model, model[ this.model.prototype.idAttribute ] ); Any ideas?
0
[ 2, 16061, 12647, 1001, 29992, 45, 1967, 1302, 1354, 13, 22, 3405, 38, 14755, 22, 16, 367, 13439, 19, 24036, 8, 99, 10832, 9, 728, 18, 800, 3726, 3726, 31, 57, 81, 2761, 13, 5, 16704, 17, 3005, 6, 56, 50, 13946, 16, 13, 1, 1958...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Radio Button matrix with GWT === I would like to create a radio button matrix with GWT. Only one radio button should be selected in each row and in each column. The think is, with GWT, a radio button cannot belong to two different RadioGroups. Do you have any ideas how i can implement this radio button matrix? Thanks.
0
[ 2, 603, 5167, 8187, 29, 14094, 38, 800, 3726, 3726, 31, 83, 101, 20, 1600, 21, 603, 5167, 8187, 29, 14094, 38, 9, 104, 53, 603, 5167, 378, 44, 1704, 19, 206, 3131, 17, 19, 206, 4698, 9, 14, 277, 25, 15, 29, 14094, 38, 15, 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...
Core Data undo background thread deletion === I'm developing sort of a drawing app in which the user sets points on a canvas. What's being drawn gets stored as NSManagedObjects. I also enabled the undo manager so the user can undo the last drawing gestures by pressing a button. It all works as expected. Then I have a button to delete everything on the canvas (clear canvas). When pressed I make the deletion operation on a background thread cause it might take a while and I want to present a progress bar. Then I merge the background thread's model object context with the main thread's one. This works fine too. But I would like to be able for the user to undo the complete deletion operation with just one tap on the undo button. This is what I'm unable to do. For the multithreading part I'm following this tutorial: http://www.cimgf.com/2011/05/04/core-data-and-threads-without-the-headache/ It seems I can't get this to undo beyond the merge of the two threads (it worked once, though, I don't know why). Don't know if I'm supposed to nest the whole thing in undo groups. I have tried but still no luck.
0
[ 2, 2884, 1054, 367, 537, 2395, 9322, 28916, 800, 3726, 3726, 31, 22, 79, 3561, 2058, 16, 21, 3533, 4865, 19, 56, 14, 4155, 3415, 819, 27, 21, 9696, 9, 98, 22, 18, 142, 3160, 3049, 8214, 28, 13, 2172, 177, 8030, 23793, 18, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Populate XML template-file from XPath Expressions? === What would be the best way to populate (or generate) an XML template-file from a mapping of XPath expressions? The requirements are that we will need to start with a template (since this might contain information not otherwise captured in the XPath expressions). For example, a starting template might be: <s11:Envelope xmlns:s11='http://schemas.xmlsoap.org/soap/envelope/'> <ns1:create xmlns:ns1='http://predic8.com/wsdl/material/ArticleService/1/'> <article xmlns:ns1='http://predic8.com/material/1/'> <name>?XXX?</name> <description>?XXX?</description> <price xmlns:ns1='http://predic8.com/common/1/'> <amount>?999.99?</amount> <currency xmlns:ns1='http://predic8.com/common/1/'>???</currency> </price> <id xmlns:ns1='http://predic8.com/material/1/'>???</id> </article> </ns1:create> </s11:Body> </s11:Envelope> Then we are supplied, something like: expression: /create/article[1]/id => 1 expression: /create/article[1]/description => bar expression: /create/article[1]/name[1] => foo expression: /create/article[1]/price[1]/amount => 00.00 expression: /create/article[1]/price[1]/currency => USD expression: /create/article[2]/id => 2 expression: /create/article[2]/description => some name expression: /create/article[2]/name[1] => some description expression: /create/article[2]/price[1]/amount => 00.01 expression: /create/article[2]/price[1]/currency => USD We should then generate: <ns1:create xmlns:ns1='http://predic8.com/wsdl/material/ArticleService/1/'> <article xmlns:ns1='http://predic8.com/material/1/'> <name xmlns:ns1='http://predic8.com/material/1/'>foo</name> <description xmlns:ns1='http://predic8.com/material/1/'>bar</description> <price xmlns:ns1='http://predic8.com/common/1/'> <amount xmlns:ns1='http://predic8.com/common/1/'>00.00</amount> <currency xmlns:ns1='http://predic8.com/common/1/'>USD</currency> </price> <id xmlns:ns1='http://predic8.com/material/1/'>1</id> </article> <article xmlns:ns1='http://predic8.com/material/2/'> <name xmlns:ns1='http://predic8.com/material/2/'>some name</name> <description xmlns:ns1='http://predic8.com/material/2/'>some description</description> <price xmlns:ns1='http://predic8.com/common/2/'> <amount xmlns:ns1='http://predic8.com/common/2/'>00.01</amount> <currency xmlns:ns1='http://predic8.com/common/2/'>USD</currency> </price> <id xmlns:ns1='http://predic8.com/material/2/'>2</id> </article> </ns1:create> I am implemented in Java. PS: This question is the reverse of another [question][1] I recently asked. [1]: http://stackoverflow.com/questions/11297807/how-to-flatten-an-xml-file-into-a-set-of-xpath-expressions
0
[ 2, 1675, 12383, 23504, 22894, 8, 16877, 37, 993, 8353, 13832, 60, 800, 3726, 3726, 98, 83, 44, 14, 246, 161, 20, 1675, 12383, 13, 5, 248, 7920, 6, 40, 23504, 22894, 8, 16877, 37, 21, 13305, 16, 993, 8353, 13832, 60, 14, 4786, 50...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 program linking with shared library without setting LD_LIBRARY_PATH === I was reading Introduction to GCC and it says if a package has both .a and .so. gcc prefer the shared library. By default the loader searches for shared libraries only in a predefined set of system directories, such as ‘/usr/local/lib’ and ‘/usr/lib’. If the library is not located in one of these directories it must be added to the load path, or you need to use -static option to force it to use the .a library. However, I tried the following: vim hello.c: `#include <gmp.h>` `#include <stdio.h>` `int main() { mpz_t x; mpz_init(x); return 0; }` gcc hello.c -I/opt/include -L/opt/lib -lgmp (my gmp library is in opt) ./a.out And it runs. The book says it should have the following error: ./a.out: error while loading shared libraries: libgdbm.so.3: cannot open shared object file: No such file or directory (well, the book uses GDBM as example but I used GMP, but this won't matter right?) However, I did not set LD_LIBRARY_PATH=/opt/lib, and as you can see I did not use -static option either, but a.out still runs. Can you all tell me why and show me how to get the error described in the book? Yes I want the error so I will understand what I misunderstood. Thank you
0
[ 2, 272, 625, 12585, 29, 2592, 1248, 366, 2697, 13, 6252, 1, 1210, 2559, 622, 1, 8353, 800, 3726, 3726, 31, 23, 1876, 3445, 20, 489, 3384, 17, 32, 898, 100, 21, 6030, 63, 156, 13, 9, 58, 17, 13, 9, 656, 9, 489, 3384, 6369, 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...
Certificate path issue === I have a certificate associated with a sub-domain. The certificate is valid and on a specific server when I open the certificate and select the Certification Path tab I see a 3 level certificate path tree (correct). On the server I want to install the certificate to (to use in IIS) the certification path is broken and the get the following message: Windows Does Not Have Enough Information to Verify this Certificate after installing my EV certificate Why does this happen and how can I solve this? Thanks
0
[ 2, 6259, 2013, 1513, 800, 3726, 3726, 31, 57, 21, 6259, 1598, 29, 21, 972, 8, 537, 6232, 9, 14, 6259, 25, 7394, 17, 27, 21, 1903, 8128, 76, 31, 368, 14, 6259, 17, 5407, 14, 10439, 2013, 6523, 31, 196, 21, 203, 662, 6259, 2013,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
JAX-RS. JAXBElement<Book> vs Book === What is difference between declaring `JAXBElement<Book>` and `Book` as parameter of web-service method? @POST public Response createNewBook(JAXBElement<Book> bookJaxb) { } and @POST public Response createNewBook(Book book) { }
0
[ 2, 11712, 8, 1224, 9, 11712, 220, 27567, 1, 5199, 1, 4611, 360, 800, 3726, 3726, 98, 25, 2841, 128, 15594, 13, 1, 1004, 396, 220, 27567, 1, 5199, 1, 17, 13, 1, 5199, 1, 28, 18906, 16, 2741, 8, 11449, 2109, 60, 13, 1, 6962, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Ember.js handlebars if, else statement === I'm hoping someone can explain what I'm doing wrong here. I'm using Ember.js with handlebars templates, I've tried a number of ways to get handlebars #if else working for me but it always returns both the contents of if and else.. Here's the code I'm currently using. App.js: App = Ember.Application.create({ selectedView: "Home", IsHome: function() { this.get('selectedView') === 'Home' }.property('selectedView') }); index.html head contains: <script type="text/x-handlebars" data-template-name="home-view"> Hello, This is the home view. </script> <script type="text/x-handlebars" data-template-name="edit-account"> Hello, This is the account edit view. </script> and in the body: <script type="text/x-handlebars"> {{#if App.IsHome}} {{view HomeView}} {{else}} {{view editAccountView}} {{/if}} </script> This ends up showing both views in the body of the page. Any advice is appreciated, thanks Steve
0
[ 2, 13, 19603, 9, 728, 18, 3053, 1850, 18, 100, 15, 962, 3331, 800, 3726, 3726, 31, 22, 79, 3935, 737, 92, 3271, 98, 31, 22, 79, 845, 1389, 235, 9, 31, 22, 79, 568, 13, 19603, 9, 728, 18, 29, 3053, 1850, 18, 22894, 18, 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...
Multi Targetting in C#.NET for 32 bit and 64 bit === Folks Supposing I have a windows app developed based on C#. I want to ensure that it works on 32 bit and 64 bit both. But I dont want to change the config settings or application settings time and again. Is there a way ?
0
[ 2, 1889, 2935, 1203, 19, 272, 5910, 9, 2328, 26, 2512, 1142, 17, 4384, 1142, 800, 3726, 3726, 14563, 11128, 14717, 31, 57, 21, 1936, 4865, 885, 432, 27, 272, 5910, 9, 31, 259, 20, 4062, 30, 32, 693, 27, 2512, 1142, 17, 4384, 114...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Optimal storage of checkboxes / multi-select in MySQL === Situation: Users will select up to ~10 options via checkboxes / mutliselect. There may be as few as 1 or up to all 10 options selected. I am looking for the best method to store the data in a mysql database such that: (1) Queries to pull this data are fast. I will not need to update, do complex joins, etc. on the data, I just need to pull the data. (2) Minimal storage space is needed (3) This is extensible in that new options may be added to the checkboxes in the future (4) It is not tedious to write the code for it (PHP) Options: 1. Serialize the data and store in a single column / row 2. Store each option selected as a a separate row under a single column of "option name" 3. Store a single row for each submission. Have a column for each option with a bit to mark if that option is selected Any thoughts on what is best?
0
[ 2, 17586, 4326, 16, 2631, 5309, 160, 13, 118, 1889, 8, 18, 16964, 19, 51, 18, 22402, 800, 3726, 3726, 1858, 45, 3878, 129, 5407, 71, 20, 13, 1, 1036, 6368, 1197, 2631, 5309, 160, 13, 118, 13, 7903, 3159, 16964, 9, 80, 123, 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...
jquery dialog and xhtml: Error: Expected identifier, string or number or Error: Syntax error === I have errors trying to use jquery dialog in an .xhtml page Are there any known errors or conflicts with jquery dialog in .xhtml? error messages are : Error: Expected identifier, string or number Error: Syntax error <table id="actionsBarTable" border="0" width="100%" align="center"> <tr align="center"> <td><a id='createNew' href="javascript:void(0);" >Create new</a></td> </tr> </table> <script type="text/javascript"> $(document).ready(function(){ var $dialog = $('<div></div>') .html('<form id="myform" action=""><input type="checkbox" id="completeCheck" name="completeCheck" value="" />Completeness check<br /><input type="checkbox" name="viewUnofficial" value="Car" /> View in the format of unofficial status report <br /><input type="checkbox" name="consist" value="" />Consistency check<br /><input type="checkbox" name="otherData" value="" />Other data checks<br /><input type="checkbox" name="keyCatagory" value="" />Key category check<br /><input type="checkbox" name="compareVersions" value="" />Compare versions<br /></form>') .dialog({ autoOpen: false, title: 'Select data check', buttons: { <= error Expected identifier, string or number "Submit Form": function() { $('form#myform').requestSubmit();}, "Cancel": function() {$(this).dialog("close");} } }); $('#createNew').click(function() { var table = document.getElementById('dataTable'); var rowCount = table.rows.length; $('#dataTable tr:last').after('<TR align="center"><TD><INPUT type="checkbox" name="chk"/></TD><TD>'+ rowCount + '</TD><TD> <INPUT type="text" value="Submission 1" /> </TD><TD>Working version</TD></TR>'); //addRow('dataTable'); $dialog.dialog('open'); // create status working version of submission // add row to list of submissions // prevent the default action, e.g., following a link return false; }); $('form#myform').requestSubmit(function(){ <= error syntax error var completeCheck = $("#completeCheck").is(':checked'); //var checkValue = $('#completeCheck').val; alert("form submitted, completeCheck value:" + completeCheck); $dialog.dialog('close'); // prevent the default action, e.g., following a link return false; }); }); </script>
0
[ 2, 487, 8190, 93, 28223, 17, 993, 15895, 45, 7019, 45, 1727, 25570, 15, 3724, 54, 234, 54, 7019, 45, 22649, 7019, 800, 3726, 3726, 31, 57, 11908, 749, 20, 275, 487, 8190, 93, 28223, 19, 40, 13, 9, 396, 15895, 2478, 50, 80, 186, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Java regular expression with comma === Hello I am trying to write regular expression for this pattern: String word="113(112,9)"; it should contains just numbers can any one help Thanks in advance.
0
[ 2, 8247, 1290, 1803, 29, 11951, 58, 800, 3726, 3726, 10975, 31, 589, 749, 20, 2757, 1290, 1803, 26, 48, 3732, 45, 3724, 833, 3726, 7, 18986, 5, 19099, 15, 518, 6, 7, 73, 32, 378, 1588, 114, 2116, 92, 186, 53, 448, 3669, 19, 36...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
TWRequest and ARC - using a value elsewhere in a project === I am using ARC with TWRequest. I have successfully returned a search from twitter and created an array of the results. Here is my code... NSArray *results = [dict objectForKey:@"results"]; //Loop through the results NSMutableArray *twitterText = [[NSMutableArray alloc] init]; for (NSDictionary *tweet in results) { // Get the tweet NSString *twittext = [tweet objectForKey:@"text"]; // Save the tweet to the twitterText array [twitterText addObject:twittext]; } NSLog(@"MY ************************TWITTERTEXT************** %@", twitterText ); </p> My question is, I want to use twitterText later in the .m file under cellForRowAtIndexPath but as soon as the loop through (as above) is finished it is being released under ARC. I have set the property as strong in my .h file (as well as declaring it above just prior to the loop). Printing a log straight after the loop through as above prints the twitterText Array fine but the same Log in cellForRowAtIndex path method returns a blank. Any help would be appreciated. Thanks. Alan
0
[ 2, 13, 38, 499, 99, 10351, 17, 4686, 13, 8, 568, 21, 1923, 6040, 19, 21, 669, 800, 3726, 3726, 31, 589, 568, 4686, 29, 13, 38, 499, 99, 10351, 9, 31, 57, 3673, 587, 21, 2122, 37, 10623, 17, 679, 40, 7718, 16, 14, 1736, 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...
Dynamically changing ToolTipDialog content === My application has a list of indicators, each with its help button. Clicking on each button, brings up a ToolTipDialog with definition for each respectively. The way I have written the code (below), the content does not get refreshed when the user clicks on another help button within the list after having clicked the first one. I have not been able to figure out how to change the "content" dynamically. Any help will be appreciated: HTML: <div dojoType="dijit.layout.ContentPane" id="group1" title="Population projection" selected="true"> <table id="popIndTable"> <tr id="someID"> <td><input data-dojo-type="dijit.form.RadioButton" class="checkInd" id="checkCBR" name="checkInd" /></td> <td id="indCBR">Crude Birth Rate</td> <td id="infoCBR"><img id="imgCBR" src="Images/help_icon2.png" width="16px" onClick="showToolTipDialog(this,this.id);" /></td> </tr> <tr> <td><input data-dojo-type="dijit.form.RadioButton" class="checkInd" id="checkTest1" name="checkInd" /></td> <td id="indTest1">Test 1</td> <td id="infoTest1"><img id="imgTest1" src="Images/help_icon2.png" width="16px" onClick="showToolTipDialog(this,this.id);" /></td> </tr> <tr> <td><input data-dojo-type="dijit.form.RadioButton" class="checkInd" id="checkTest2" name="checkInd" /></td> <td id="indTest2">Test 2</td> <td id="infoTest2"><img id="imgTest2" src="Images/help_icon2.png" width="16px" onClick="showToolTipDialog(this,this.id);" /></td> </tr> </table> </div> JavaScript: function showToolTipDialog(node,infoId){ var infoText; var infoElem = dojo.byId(infoId).parentNode.id; if (infoElem == "infoCBR"){ infoText = "This is the text container for CBR"; } else if (infoElem == "infoTest1"){ infoText = "This is the text container for Test1"; } if (!tooltipDialog) { tooltipDialog = new dijit.TooltipDialog({ content: infoText, style: "width:200px;height:auto;", autofocus: !dojo.isIE, // NOTE: turning focus ON in IE causes errors when reopening the dialog refocus: !dojo.isIE }); dijit.popup.open({ popup: tooltipDialog, around: node}); tooltipDialog.opened_ = true; } else { if (tooltipDialog.opened_) { dijit.popup.close(tooltipDialog); tooltipDialog.opened_ = false; } else { dijit.popup.open({popup: tooltipDialog, around: node}); tooltipDialog.opened_ = true; } } }
0
[ 2, 7782, 1326, 4226, 5607, 10169, 4286, 5567, 2331, 800, 3726, 3726, 51, 3010, 63, 21, 968, 16, 13310, 18, 15, 206, 29, 82, 448, 5167, 9, 25590, 27, 206, 5167, 15, 7620, 71, 21, 5607, 10169, 4286, 5567, 29, 5465, 26, 206, 2820, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Custom distance metric in R for Agglomerative clustering === Is it possible for us to define a custom distance function for agglomerative clustering in R? Also, I would like to prevent two clusters from being merged when a certain condition is not satisfied. Is this possible in R? Also, is it possible to do all this when R is put on Hadoop?
0
[ 2, 5816, 1583, 11544, 19, 761, 26, 11342, 6725, 1263, 3366, 7460, 68, 800, 3726, 3726, 25, 32, 938, 26, 182, 20, 9267, 21, 5816, 1583, 1990, 26, 11342, 6725, 1263, 3366, 7460, 68, 19, 761, 60, 67, 15, 31, 83, 101, 20, 2501, 81, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Still having AdMob issues on android === I have read thru about 2 dozen articles and thru the google docs and it just gives me a force close box...here is my code Manifest <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.ndai.funnys" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15" /> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <activity android:name=".GuysFunnysActivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name="com.google.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/> </application> </manifest> main.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/LinearLayout01" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <com.google.ads.AdView android:id="@+id/adView" android:layout_width="wrap_content" android:layout_height="wrap_content" ads:adUnitId="a14ffb06b21e68e" ads:adSize="BANNER" ads:testDevices="TEST_EMULATOR, 12345678901234567890123456789012" ads:loadAdOnCreate="true"/> </LinearLayout> JAVA package com.ndai.funnys; import java.io.InputStream; import java.net.URL; import android.app.Activity; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.widget.ImageView; import android.widget.LinearLayout; import com.google.ads.*; public class GuysFunnysActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } } What am i doing wrong...this is exactly as i see it on other sites...i half also tried the non-xml version with the same exact issues...even with using the test device code
0
[ 2, 174, 452, 21, 43, 1293, 220, 1549, 27, 13005, 800, 3726, 3726, 31, 57, 1302, 19637, 88, 172, 5550, 3376, 17, 19637, 14, 8144, 9765, 18, 17, 32, 114, 2352, 55, 21, 558, 543, 1649, 9, 9, 9, 6836, 25, 51, 1797, 13160, 13, 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...
Intercept OnBackKeyPress event in mvvm light ViewModel (WP7) === in my Windows Phone application I have following scenario: 1. I have two ListBox'es f.e lbx1 and lbx2 2. ViewModel loads data to lbx1 3. User tap on ListBox, command is fired, ViewModel set visibility of lbx1 to collapsed and lbx2 to visilbe. Now I want to do following thing: when lbx2 is visible I want to intercept OnBackKeyPress event in My ViewModel so that I can change visibility of lbx1 to visible and lbx2 to collapsed. Is it even possible with mvvm.light ?
0
[ 2, 18324, 27, 1958, 4237, 5890, 807, 19, 17967, 20147, 471, 1418, 13998, 13, 5, 13790, 465, 6, 800, 3726, 3726, 19, 51, 1936, 1132, 3010, 31, 57, 249, 12705, 45, 137, 9, 31, 57, 81, 968, 5309, 22, 160, 398, 9, 62, 4480, 396, 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...
Proxy blocking uploads === I am using uploadify to upload files on a site. Every once and a while I get these errors in my server log: [Tue Jun 26 09:24:45 2012] [error] [client ipaddress] Handler for x-httpd-php5 returned invalid result code 70007 [Tue Jun 26 09:25:17 2012] [error] [client ipaddress] Handler for x-httpd-php5 returned invalid result code 70014 After some googling I have found that is probably caused by a person using a proxy when they are on our site. I read somewhere online that this may help: pass your apache log in debug mode using the directive LogLevel I don't know what that means but i can pass it along to my webhost. Is there any way to try and detect a proxy so I can warn the user that the upload may fail? Any other ideas on how to handle this? Has anyone else had this issue with uploading files via a proxy?
0
[ 2, 27188, 11828, 71, 8294, 18, 800, 3726, 3726, 31, 589, 568, 71, 8294, 8612, 20, 71, 8294, 6488, 27, 21, 689, 9, 352, 382, 17, 21, 133, 31, 164, 158, 11908, 19, 51, 8128, 6738, 45, 636, 38, 4185, 7446, 1262, 13, 2545, 22830, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
make similar css colorized box === I am trying to get The degree of color of the box in the picture http://i46.tinypic.com/iefcpl.png i like the box in the picture and i want make similar one This is my code, and i can't make similarty <style> .b{ background:-moz-linear-gradient(top, #fff, #ebebeb); height:25px; border:1px #efefef solid; } </style> <div class="b"> </div>
0
[ 2, 233, 835, 272, 18, 18, 1665, 1333, 1649, 800, 3726, 3726, 31, 589, 749, 20, 164, 14, 1168, 16, 1665, 16, 14, 1649, 19, 14, 2151, 7775, 6903, 49, 3516, 9, 2864, 93, 7763, 9, 960, 118, 660, 7061, 5727, 9, 306, 2723, 31, 101, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
CSS3 DropShadow On Pages === I am trying to create a drop shadow below each section/page of the website but am having problems doing so. Demo of site: http://www.sfu.ca/~jca41/stuph/test/parallax01/parallax01.html HTML: <section id="first" class="page shadow"> <article>first page</article> </section> <section id="second" class="page shadow"> <article>second page</article> </section> <section id="third" class="page shadow"> <article>third page</article> </section> <section id="fourth" class="page shadow"> <article>fourth page</article> </section> CSS: .page { height: 1000px; } .shadow { -moz-box-shadow: 0 10px 10px #000; -webkit-box-shadow: 0 10px 10px #000; box-shadow: 0 10px 10px #000; } #first { background: url(img/01.png) no-repeat fixed; } #second { background: url(img/02.jpg) no-repeat fixed; } #third { background: url(img/03.jpg) no-repeat fixed; } #fourth { background: url(img/04.jpg) no-repeat fixed; }
0
[ 2, 272, 18, 18, 240, 2804, 18396, 27, 4434, 800, 3726, 3726, 31, 589, 749, 20, 1600, 21, 2804, 3118, 1021, 206, 1050, 118, 6486, 16, 14, 2271, 47, 589, 452, 1716, 845, 86, 9, 8376, 16, 689, 45, 7775, 6903, 6483, 9, 18, 4096, 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...
Responsive background being squished in portrait mobile === I'm having a problem using responsive backgrounds. http://poppykeith.co.uk/index.html looks correct on computer browsers and in landscape on a mobile browser, however when viewed on a mobile (im using iOS) in portrait, the image is squished to fit the screen. How would I go about making the image just zoom in in portrait mode and not stretch? Thanks
0
[ 2, 13, 22153, 2395, 142, 13, 18, 3003, 7399, 19, 5548, 3241, 800, 3726, 3726, 31, 22, 79, 452, 21, 1448, 568, 13, 22153, 2395, 18, 9, 7775, 6903, 1638, 17129, 15455, 96, 9, 716, 9, 2185, 118, 25671, 9, 15895, 1879, 4456, 27, 142...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Two spinners show same entries === I am developing this app and one of an activity has two spinners, and both loads same entries, even I defined different entries for each Spinner. This is rather weird thing. Here is the code, main.xml layout(part 0f layout) <TableRow android:id="@+id/settings_color_row" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingTop="10dp" > <TextView android:id="@+id/settings_color_text" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_span="0" android:gravity="left" android:paddingLeft="7dp" android:paddingTop="13dp" android:text="Color" android:textSize="18dp" android:textStyle="bold" android:typeface="serif" > </TextView> <Spinner android:id="@+id/settings_color_spinner" android:layout_width="fill_parent" android:layout_height="wrap_content" /> </TableRow> <TableRow android:id="@+id/settings_background_row" android:layout_width="match_parent" android:layout_height="wrap_content" android:paddingTop="10dp" > <TextView android:id="@+id/settings_background_text" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_span="0" android:gravity="left" android:paddingLeft="7dp" android:paddingTop="13dp" android:text="Skin" android:textSize="18dp" android:textStyle="bold" android:typeface="serif" > </TextView> <Spinner android:id="@+id/settings_background_spinner" android:layout_width="fill_parent" android:layout_height="wrap_content" /> </TableRow> Settings.java (Activity) colors_spinner = (Spinner)findViewById(R.id.settings_color_spinner); ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this, R.array.colors_array, android.R.layout.simple_spinner_item); // Specify the layout to use when the list of choices appears adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // Apply the adapter to the spinner colors_spinner.setAdapter(adapter); skin_spinner = (Spinner)findViewById(R.id.settings_background_spinner); ArrayAdapter<CharSequence> skin_adapter = ArrayAdapter.createFromResource(this, R.array.background_array, android.R.layout.simple_spinner_item); // Specify the layout to use when the list of choices appears skin_adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); // Apply the adapter to the spinner colors_spinner.setAdapter(skin_adapter); strings.xml <?xml version="1.0" encoding="utf-8"?> <resources> <string name="hello">Hello World, Settings!</string> <string name="app_name">Shared Preferences Test</string> <string-array name="colors_array"> <item>White</item> <item>Red</item> <item>Blue</item> <item>Pink</item> </string-array> <string-array name="background_array"> <item>Red-Nosed Reindeer</item> <item>Snowman</item> </string-array> </resources> I don't see any errors and it just show same values even though I used different adapters. ![enter image description here][1] [1]: http://i.stack.imgur.com/dwbHs.jpg
0
[ 2, 81, 3310, 1031, 18, 298, 205, 11399, 800, 3726, 3726, 31, 589, 3561, 48, 4865, 17, 53, 16, 40, 2358, 63, 81, 3310, 1031, 18, 15, 17, 156, 19069, 205, 11399, 15, 166, 31, 2811, 421, 11399, 26, 206, 3310, 1031, 9, 48, 25, 864...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 do you get data back from a process using multiprocessing? === import multiprocessing as mp import time def build(): print 'I build things' time.sleep(5) return 42 def run(q): num = q.get() if num == 42: print 'I run after build is done' return else: raise Exception("I don't know build..I guess") def get_number(): return 42 if __name__ == '__main__': queue = mp.Queue() run_p = mp.Process(name='run process', target=run, args=(queue,)) build_p = mp.Process(name='build process', target=build) run_p.start() #queue.put(build_p.start()) queue.put(get_number()) queue.close() queue.join_thread() run_p.join() I tried this toy code I just wrote. `build` takes a long time. But `run` depends on the return value of `build`. I want to know how I can 1. make sure the front of the queue is the value I want? (what if there are other processes putting stuff into the queue)? 2. how do we know if `build` is done? As you can see in my code, `run` can't get `build`'s answer because I am not sure how to implement that.
0
[ 2, 184, 107, 42, 164, 1054, 97, 37, 21, 953, 568, 1889, 16835, 68, 60, 800, 3726, 3726, 9010, 1889, 16835, 68, 28, 4628, 9010, 85, 6312, 1895, 5, 6, 45, 4793, 13, 22, 49, 1895, 564, 22, 85, 9, 21092, 5, 264, 6, 788, 4162, 63...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Re-post: iOS modify App auto launch when iPhone is connected to external accessory === I had asked this question earlier but was closed for unclear or insufficient details. Hopefully, I have explained it better. Here it goes. I am building an iOS application that communicates to the external accessory using a proprietary protocol (over iAP). I know that by adding a unique protocol name in the info.plist file, the application can be made to launch automatically when iOS device is connected to the external accessory (I am aware that support is needed from the external accessory device too). *Applications that are able to communicate with an external accessory should declare the ?protocols they support in their Info.plist file. Declaring support for specific protocols lets the system know that your application can be launched when that accessory is connected. If no application supports the connected accessory, the system may choose to launch the App Store and point out applications that do.* In my application, I wish to give the user a graphical interface to enable or disable automatically launching the application. Behind the scenes, this would require setting the protocol name to a pre-defined value to enable it or clearing it to disable it. I would appreciate if someone can give me information on how to modify the protocol id programatically.
0
[ 2, 302, 8, 6962, 45, 13, 7760, 17579, 4865, 3108, 3394, 76, 21024, 25, 2587, 20, 4886, 26371, 800, 3726, 3726, 31, 41, 411, 48, 1301, 1201, 47, 23, 827, 26, 11293, 54, 14748, 3289, 9, 13416, 15, 31, 57, 2897, 32, 574, 9, 235, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 sort urls by ip addresses === Ok I posted before a question that was not so clear, so let me try again. I am trying to organize my websites into batches of 5 sites per batch that all have different ip addresses. To do so I must, get IP on-the-fly for each url and then organize them, the sites, into batches of 5 sites per batch, that each have there own unique IP address. If I have multiple IP address they must be shown on the next batch. Can anyone help my out with this issue ?
0
[ 2, 13, 26120, 2058, 13, 911, 7532, 34, 15735, 12636, 800, 3726, 3726, 5854, 31, 6054, 115, 21, 1301, 30, 23, 52, 86, 1207, 15, 86, 408, 55, 1131, 188, 9, 31, 589, 749, 20, 9213, 51, 13931, 77, 13064, 160, 16, 331, 3259, 416, 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 can I pass arguments to an extension point constructor? === Eclipse calls the default (zero-argument) constructor when instantiating an extension point. I want to provide some arguments. I found a recommendation to use `IExecutableExtension#setInitializationData` but that appears to require specifying the argument values statically in XML. I need them to be dynamic. Another recommendation was to implement `IExecutableExtensionFactory` but that seems heavy handed. I could add a method to set the values after creation but my class won't work correctly without them and they shouldn't be changed after creation, so forcing them to be provided at object creation time is preferable. This can't be a unique situation. What's the standard way of handling this?
0
[ 2, 184, 92, 31, 1477, 10553, 20, 40, 3896, 454, 6960, 248, 60, 800, 3726, 3726, 11652, 3029, 14, 12838, 13, 5, 15938, 8, 512, 3073, 1130, 6, 6960, 248, 76, 6322, 49, 1880, 40, 3896, 454, 9, 31, 259, 20, 1181, 109, 10553, 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...
Boost Mountain Lion linking === I'm triing to link to boost 1.50 on Mountain Lion with Xcode V 4.4 I'm using gcc 4.7, so no Xcode stuff should be involved. Every time I'm triing to link it gives me this: /usr/local/bin/g++ -o bin/parse -Lbin `root-config --ldflags` build/Bcf.o build/Bmf.o build/Boc.o build/EasyBMP.o build/Fei4.o build/Options.o build/RxChannel.o build/TxChannel.o -lboost_program_options -lboost_system -lboost_filesystem -lboc `root-config --libs` build/parse.o Undefined symbols for architecture x86_64: "start", referenced from: -u command line option (maybe you meant: boost::property_tree::string_path<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, boost::property_tree::id_translator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >::cstart() const, boost::progress_display::restart(unsigned long) , boost::property_tree::json_parser::json_grammar<boost::property_tree::basic_ptree<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >::definition<boost::spirit::classic::scanner<__gnu_cxx::__normal_iterator<char*, std::vector<char, std::allocator<char> > >, boost::spirit::classic::scanner_policies<boost::spirit::classic::skip_parser_iteration_policy<boost::spirit::classic::alternative<boost::spirit::classic::alternative<boost::spirit::classic::space_parser, boost::spirit::classic::confix_parser<boost::spirit::classic::strlit<char const*>, boost::spirit::classic::kleene_star<boost::spirit::classic::anychar_parser>, boost::spirit::classic::alternative<boost::spirit::classic::eol_parser, boost::spirit::classic::end_parser>, boost::spirit::classic::unary_parser_category, boost::spirit::classic::non_nested, boost::spirit::classic::is_lexeme> >, boost::spirit::classic::confix_parser<boost::spirit::classic::strlit<char const*>, boost::spirit::classic::kleene_star<boost::spirit::classic::anychar_parser>, boost::spirit::classic::strlit<char const*>, boost::spirit::classic::unary_parser_category, boost::spirit::classic::non_nested, boost::spirit::classic::is_lexeme> >, boost::spirit::classic::iteration_policy>, boost::spirit::classic::match_policy, boost::spirit::classic::action_policy> > >::start() const ) "boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*)", referenced from: boost::filesystem::exists(boost::filesystem::path const&) in Bcf.o "boost::filesystem::detail::file_size(boost::filesystem::path const&,boost::system::error_code*)", referenced from: boost::filesystem::file_size(boost::filesystem::path const&) in Bcf.o ld: symbol(s) not found for architecture x86_64 Boost was build after the Update and it worked before
0
[ 2, 10419, 1286, 6023, 12585, 800, 3726, 3726, 31, 22, 79, 2286, 68, 20, 3508, 20, 10419, 137, 9, 2290, 27, 1286, 6023, 29, 993, 9375, 566, 268, 9, 300, 31, 22, 79, 568, 489, 3384, 268, 9, 465, 15, 86, 90, 993, 9375, 3217, 378,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 syntax checker using JAVA === For my java project I need to check a code written in C for errors and syntax ... Is there any API or anyother Java implementation of C syntax and error checker?
0
[ 2, 272, 22649, 2631, 106, 568, 8247, 800, 3726, 3726, 26, 51, 8247, 669, 31, 376, 20, 2631, 21, 1797, 642, 19, 272, 26, 11908, 17, 22649, 13, 9, 9, 9, 25, 80, 186, 21, 2159, 54, 186, 9539, 8247, 6123, 16, 272, 22649, 17, 7019,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
EXC_BAD_ACCESS (SIGSEGV) on tableView:cellForRowAtIndexPath === I've turned on NSZombieEnabled, and I seem to be getting a crash when the following happens. Go to the "Settings" view controller via a tabbar and go into the culprit view controller from there, then click on another tab (without going back to the settings view controller before) and then click on the tabbar for "Settings" again. This is the code for the tableView:cellForRowAtIndexPath - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { UITableViewCell *cell; static NSString *CellIdentifier = @"Cell"; cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if(cell == nil) cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"temp"] autorelease]; cell.selectionStyle = UITableViewCellSelectionStyleGray; if(indexPath.section == 1 && [PMSessionManager instance].paymentMethods.cards != nil) { if([[PMSessionManager instance].paymentMethods.cards count] > indexPath.row) { cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; //Reverse the array if it's in the wrong order if([[[[PMSessionManager instance].paymentMethods.cards objectAtIndex:indexPath.row] cardStatus] isEqualToString:@"Secondary"] && indexPath.row == 0) { NSArray* reversedArray = [[[PMSessionManager instance].paymentMethods.cards reverseObjectEnumerator] allObjects]; [PMSessionManager instance].paymentMethods.cards = reversedArray; } PMCardInfo *cardInfo = [[PMSessionManager instance].paymentMethods.cards objectAtIndex:indexPath.row]; if([cardInfo.cardStatus isEqualToString:@"Primary"] && indexPath.row == 1) cardInfo = [[PMSessionManager instance].paymentMethods.cards objectAtIndex:(indexPath.row -1)]; UILabel *cardLabel = [[[UILabel alloc] initWithFrame: CGRectMake( cell.indentationWidth, 0.075 * (tableView.rowHeight - 2 * 14), 200, 26)] autorelease]; [cell.contentView addSubview:cardLabel]; cardLabel.text = [NSString stringWithFormat:@"%@", [cardInfo.cardStatus capitalizedString]]; cardLabel.backgroundColor = [UIColor clearColor]; cardLabel.textColor = [UIColor colorWithRed:0.25 green:0.0 blue:0.0 alpha:1.0]; cardLabel.font = [UIFont boldSystemFontOfSize:[UIFont systemFontSize]]; NSString *cardTypeString = [NSString stringWithFormat:@"%@", [cardInfo.cardType capitalizedString]]; CGSize cardTypeStringSize = [cardTypeString sizeWithFont:[UIFont boldSystemFontOfSize:[UIFont systemFontSize]]]; UILabel *cardTypeLabel = [[[UILabel alloc] initWithFrame: CGRectMake( cell.indentationWidth, 0.63 * (tableView.rowHeight - 2 * 14), cardTypeStringSize.width, 24)] autorelease]; [cell.contentView addSubview:cardTypeLabel]; cardTypeLabel.text = [NSString stringWithFormat:@"%@", [cardInfo.cardType capitalizedString]]; cardTypeLabel.backgroundColor = [UIColor clearColor]; cardTypeLabel.textColor = [UIColor colorWithRed:0.25 green:0.0 blue:0.0 alpha:1.0]; cardTypeLabel.font = [UIFont boldSystemFontOfSize:[UIFont systemFontSize]]; UILabel *digitsLabel = [[[UILabel alloc] initWithFrame: CGRectMake( cardTypeStringSize.width + 4 + cell.indentationWidth, 0.6 * (tableView.rowHeight - 2 * 14), 150, 26)] autorelease]; [cell.contentView addSubview:digitsLabel]; digitsLabel.text = [NSString stringWithFormat:@"ending with %@", cardInfo.last4Digits]; digitsLabel.backgroundColor = [UIColor clearColor]; digitsLabel.textColor = [UIColor colorWithRed:0.25 green:0.0 blue:0.0 alpha:1.0]; digitsLabel.font = [UIFont systemFontOfSize:[UIFont systemFontSize]]; //Let's make the expiration year just two digits if(cardInfo.expYear.length == 4) cardInfo.expYear = [cardInfo.expYear substringFromIndex:2]; UILabel *expirationLabel = [[[UILabel alloc] initWithFrame: CGRectMake( cell.indentationWidth, 1.0 * (tableView.rowHeight - 2 * 14), 150, 26)] autorelease]; [cell.contentView addSubview:expirationLabel]; expirationLabel.text = [NSString stringWithFormat:@"Expires on %@/%@", cardInfo.expMonth, cardInfo.expYear]; expirationLabel.backgroundColor = [UIColor clearColor]; expirationLabel.textColor = [UIColor colorWithRed:0.25 green:0.0 blue:0.0 alpha:1.0]; expirationLabel.font = [UIFont systemFontOfSize:[UIFont systemFontSize]]; } else { UILabel *cardTypeLabel = [[[UILabel alloc] initWithFrame: CGRectMake( cell.indentationWidth, 0.25 * (tableView.rowHeight - 2 * 14), 275.0, 24)] autorelease]; [cell.contentView addSubview:cardTypeLabel]; if([[PMSessionManager instance].paymentMethods.cards count] == 2) cardTypeLabel.text = @"Swap Primary and Secondary Cards"; else cardTypeLabel.text = @"Add Credit Card"; cardTypeLabel.textAlignment = UITextAlignmentCenter; cardTypeLabel.backgroundColor = [UIColor clearColor]; cardTypeLabel.textColor = [UIColor colorWithRed:0.25 green:0.0 blue:0.0 alpha:1.0]; cardTypeLabel.font = [UIFont boldSystemFontOfSize:[UIFont systemFontSize]]; } } else if(indexPath.section == 0) { if([PMSessionManager instance].paymentMethods.wallet != nil) { if(indexPath.row == 0) { NSString *balanceString = [Util numberToCurrencyString:[PMSessionManager instance].paymentMethods.wallet.balance]; NSString *availableBalanceString = @"Available Balance"; CGSize balanceStringSize = [balanceString sizeWithFont:[UIFont boldSystemFontOfSize:32.0]]; CGSize availableBalanceStringSize = [availableBalanceString sizeWithFont:[UIFont boldSystemFontOfSize:[UIFont systemFontSize]]]; CGFloat textWidth = balanceStringSize.width + 5.0 + availableBalanceStringSize.width; CGFloat margin = (275.0 - textWidth)/2; UILabel *balanceLabel = [[[UILabel alloc] initWithFrame: CGRectMake( cell.indentationWidth + margin, 0.45 * (tableView.rowHeight - 2 * 14), 275.0, 32)] autorelease]; [cell.contentView addSubview:balanceLabel]; balanceLabel.text = balanceString; balanceLabel.textAlignment = UITextAlignmentLeft; balanceLabel.backgroundColor = [UIColor clearColor]; balanceLabel.textColor = [UIColor colorWithRed:0.25 green:0.0 blue:0.0 alpha:1.0]; balanceLabel.font = [UIFont boldSystemFontOfSize:32.0]; UILabel *walletBalanceLabel = [[[UILabel alloc] initWithFrame: CGRectMake( balanceStringSize.width + 5 + cell.indentationWidth + margin, 0.72 * (tableView.rowHeight - 2 * 14), 275.0, 24)] autorelease]; [cell.contentView addSubview:walletBalanceLabel]; walletBalanceLabel.text = availableBalanceString; walletBalanceLabel.textAlignment = UITextAlignmentLeft; walletBalanceLabel.backgroundColor = [UIColor clearColor]; walletBalanceLabel.textColor = [UIColor colorWithRed:0.25 green:0.0 blue:0.0 alpha:1.0]; walletBalanceLabel.font = [UIFont boldSystemFontOfSize:[UIFont systemFontSize]]; cell.selectionStyle = UITableViewCellSelectionStyleNone; } if(indexPath.row == 1) { UILabel *walletSettingsLabel = [[[UILabel alloc] initWithFrame: CGRectMake( cell.indentationWidth, 0.25 * (tableView.rowHeight - 2 * 14), 275.0, 24)] autorelease]; [cell.contentView addSubview:walletSettingsLabel]; walletSettingsLabel.text = @"Edit Wallet Settings"; walletSettingsLabel.textAlignment = UITextAlignmentCenter; walletSettingsLabel.backgroundColor = [UIColor clearColor]; walletSettingsLabel.textColor = [UIColor colorWithRed:0.25 green:0.0 blue:0.0 alpha:1.0]; walletSettingsLabel.font = [UIFont boldSystemFontOfSize:[UIFont systemFontSize]]; } } else { if(indexPath.row == 0) { UILabel *learnMoreLabel = [[[UILabel alloc] initWithFrame: CGRectMake( cell.indentationWidth, 0.25 * (tableView.rowHeight - 2 * 14), 275.0, 24)] autorelease]; [cell.contentView addSubview:learnMoreLabel]; learnMoreLabel.text = @"Learn More"; learnMoreLabel.textAlignment = UITextAlignmentCenter; learnMoreLabel.backgroundColor = [UIColor clearColor]; learnMoreLabel.textColor = [UIColor colorWithRed:0.25 green:0.0 blue:0.0 alpha:1.0]; learnMoreLabel.font = [UIFont boldSystemFontOfSize:[UIFont systemFontSize]]; } if(indexPath.row == 1) { UILabel *signUpLabel = [[[UILabel alloc] initWithFrame: CGRectMake( cell.indentationWidth, 0.25 * (tableView.rowHeight - 2 * 14), 275.0, 24)] autorelease]; [cell.contentView addSubview:signUpLabel]; signUpLabel.text = @"Sign Up for Wallet"; signUpLabel.textAlignment = UITextAlignmentCenter; signUpLabel.backgroundColor = [UIColor clearColor]; signUpLabel.textColor = [UIColor colorWithRed:0.25 green:0.0 blue:0.0 alpha:1.0]; signUpLabel.font = [UIFont boldSystemFontOfSize:[UIFont systemFontSize]]; } } } return cell; } With NSZombieEnabled, I get this message in the logs: -[PaymentMethodViewController tableView:cellForRowAtIndexPath:]: message sent to deallocated instance 0x404ae00 The above code snippet is from this PaymentMethodViewController. Any ideas?
0
[ 2, 1396, 150, 1, 5989, 1, 20604, 13, 5, 18, 2816, 870, 23896, 6, 27, 859, 4725, 45, 9725, 1106, 5417, 721, 25671, 8353, 800, 3726, 3726, 31, 22, 195, 412, 27, 13, 2172, 2500, 79, 5893, 219, 579, 43, 15, 17, 31, 2260, 20, 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...
How do you delete, update, etc. tables produced by queries in Delphi ADO? === I think I am missing something fundamental about working with SQL statements and (Delphi's ADO)Query component and/or setting up relationships between fields in (Access 2003) databases. I get error messages whenever I want to delete, update, etc. anything more complex than than SQL.Text="SELECT something FROM aTable." For example, I created a simple many-to-many relationship between tables called Outline and Reference. The junction or join table is called Note: Outline OutlineID (PK) etc. Reference RefID (PK) etc. Note NoteID (PK) OutlineID RefID NoteText I enforced referential integrity on the joins in Access, but didn't tick the checkboxes to cascade deletes or updates. Meanwhile, over in Delphi my Query.SQL.Text is SELECT Note.NoteID, Outline.OutlineID, Ref.RefID, Note.NoteText, Ref.Citation, Outline.OutlineText FROM (Note LEFT JOIN Outline ON Outline.OutlineID=Note.OutlineID) LEFT JOIN Ref on Ref.RefID=Note.RefID; Initially I left out the references to keys in the SELECT statement, producing an 'insufficient key column info' error when I tried deleting a record from the resulting table. I *think* I understand: you have to SELECT all the fields the db will need for any operations it will be asked to perform. It can't delete, update, etc. joined fields if it doesn't know what's joined to what. (Is this right?) So, then, how do I go about deleting a record from this query? I can delete individual records from the junction table (Query.SQL.Text='Select...From Note'), but in real life I want to work with a table showing actual Outline and Reference text, not just their ID values, i.e., not just what is in the Note table.
0
[ 2, 184, 107, 42, 27448, 15, 11100, 15, 2722, 9, 7484, 671, 34, 9386, 2829, 19, 23030, 21, 537, 60, 800, 3726, 3726, 31, 277, 31, 589, 2863, 301, 6377, 88, 638, 29, 4444, 255, 9015, 17, 13, 5, 3436, 7805, 22, 18, 21, 537, 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...
R multinom() function stops after 100 iterations, what is the reason? === I have quite a relatively large number of data, it has 80 columns and approx 220, 000 rows When I'm attempting to use `nnet`'s `multinom()` function to perform a mutlinomial logistic regression on unordered multi categorical data the function seems to stop after 100 iterations: # weights: 322 (270 variable) initial value 807521.728781 iter 10 value 191523.940813 iter 20 value 163085.728004 iter 30 value 146262.378340 iter 40 value 139398.851395 iter 50 value 134606.101687 iter 60 value 133588.725646 iter 70 value 133253.102380 iter 80 value 133129.328709 iter 90 value 133098.717752 iter 100 value 133095.661773 final value 133095.661773 stopped after 100 iterations I have also attempted to use `VGAM`'s `vglm()` however it gives me the following error: Error in outer(X, Y, FUN, ...) : allocMatrix: too many elements specified A possible explanation is that my tiny macbook air isn't up for the job, however I was wondering, what other alternatives do I have to perform multinomial logistic regression on the datasets I currently have?
0
[ 2, 761, 1889, 251, 79, 5, 6, 1990, 6604, 75, 808, 23534, 18, 15, 98, 25, 14, 1215, 60, 800, 3726, 3726, 31, 57, 1450, 21, 3109, 370, 234, 16, 1054, 15, 32, 63, 2972, 7498, 17, 13, 19896, 16321, 15, 13, 3993, 11295, 76, 31, 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...
Real time refresh multiple rooms (PHP & AJAX) === I have over 200 rooms where people can visit at my website only to WATCH the messages posted(they can't talk or write or whatever, just see) through viewroom.php?id=xx otherhand i have people with a mobile app to send messages (only send) to a specific room, the app call a file sendmes.php?room=xx in my server , at this point i have all working but without live refresh , i wonder the best system and also as light server load as posible to send through sendmes.php to viewroom.php without heavy lops and that I tried with Ajax and long timeouts, but that way force me to do loops to mysql or files and in my opinion it's a hight server load way
0
[ 2, 683, 85, 24905, 1886, 3662, 13, 5, 26120, 279, 20624, 6, 800, 3726, 3726, 31, 57, 84, 2327, 3662, 113, 148, 92, 2139, 35, 51, 2271, 104, 20, 1455, 14, 7561, 6054, 5, 2077, 92, 22, 38, 930, 54, 2757, 54, 2099, 15, 114, 196, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Not deleting leading characters python tkinter === How would i go about setting up a `Tkinter` Text widget to do something similar to IDLE's entry? For example: >>> Entry goes here! However, i know how to insert them at the beginning of each line, but how would i go about making it non deletable, so that you cannot delete the `>>>`? I have searched around on google about this, but to no avail. Thank you in advance for your replies.
0
[ 2, 52, 121, 1336, 68, 1005, 1766, 20059, 13, 38, 1767, 815, 800, 3726, 3726, 184, 83, 31, 162, 88, 2697, 71, 21, 13, 1, 38, 1767, 815, 1, 1854, 4807, 43, 3060, 20, 107, 301, 835, 20, 18652, 22, 18, 2792, 60, 26, 823, 45, 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...
Overloading with argument types that are base and inherited class === I have something like this: class BaseArg { } class DerivedArg : BaseArg { } interface IDoSomething { void DoSomething(); } class A : IDoSomething { public BaseArg Value { get; set; } public A(BaseArg value) { this.Value = value; } public static A Create(BaseArg arg) { return new A(arg); } public static B Create(DerivedArg arg) { return new B(arg); } public void DoSomething() { } } class B : A { public DerivedArg DerivedValue { get; set; } public B(DerivedArg value) : base(value) { this.DerivedValue = value; } public override void DoSomething() { // does something different from A.DoSomething() // uses additional stuff in DerivedArg } } However, even when I do this: DerivedArg arg = new DerivedArg(); A a = A.Create(arg); `A.Create(BaseArg arg)` is called (and thus `A` is created, which was not the intention). Am I missing something here? If so, how should I rewrite this without using weird stuff such as conditions on `arg as DerivedArg`.
0
[ 2, 84, 16866, 29, 5476, 2551, 30, 50, 1000, 17, 7179, 718, 800, 3726, 3726, 31, 57, 301, 101, 48, 45, 718, 1000, 10663, 13, 1, 13, 1, 718, 3981, 10663, 13, 45, 1000, 10663, 13, 1, 13, 1, 6573, 13, 6470, 9099, 13, 1, 11364, 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...
r names of quantmod variables === I have the following code: library(quantmod) tckrs<-c("TLT", "LQD", "HYG", "SPY", "DBC") NumTckrs <- length(tckrs) getSymbols( tckrs, from="1900-01-01", to=Sys.Date()) # merge to allign the start dates MainDF <- merge(Ad(TLT), Ad(LQD), Ad(HYG), Ad(SPY), Ad(DBC), all=F) I would like to not have to repeat the stock symbols in the last line. Does anyone know how this could be done? Thanks.
0
[ 2, 761, 1817, 16, 9836, 38, 13670, 12157, 800, 3726, 3726, 31, 57, 14, 249, 1797, 45, 1248, 5, 18405, 38, 13670, 6, 13, 38, 2601, 1224, 1, 8, 150, 5, 7, 7786, 38, 7, 15, 13, 7, 255, 1251, 43, 7, 15, 13, 7, 5608, 263, 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...
How do you redirect a non-logged in user from a specific page in drupal? === I want to have 2 pages, one will exist for all users but if you are logged in it redirects you to another page.
0
[ 2, 184, 107, 42, 302, 14706, 21, 538, 8, 19287, 19, 4155, 37, 21, 1903, 2478, 19, 15708, 6720, 60, 800, 3726, 3726, 31, 259, 20, 57, 172, 4434, 15, 53, 129, 3182, 26, 65, 3878, 47, 100, 42, 50, 13, 19287, 19, 32, 302, 14706, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
How do I access a private class variable when calling a method statically? === If I have: <?php class SomeClass extends SomeOtherClass{ private $access_code = 'TX9999'; private static function SomeMethod(){ } } ?> And do <? SomeClass::SomeMethod(); ?> how do I correctly access $access_code in SomeMethod
0
[ 2, 184, 107, 31, 1381, 21, 932, 718, 7612, 76, 2555, 21, 2109, 12038, 1326, 60, 800, 3726, 3726, 100, 31, 57, 45, 13, 1, 60, 26120, 718, 109, 1898, 9073, 109, 9539, 1898, 1, 932, 5579, 20604, 1, 9375, 800, 13, 22, 38, 396, 348...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 query mongodb for objects with common features in an array === for example I have an object with an embedded array of strings ids : ['ab','gg',kl'] I would like to query for the first 10 objects which share the most ids
0
[ 2, 184, 20, 25597, 3521, 5474, 220, 26, 3916, 29, 757, 967, 19, 40, 7718, 800, 3726, 3726, 26, 823, 31, 57, 40, 3095, 29, 40, 12138, 7718, 16, 7887, 13, 9178, 13, 45, 636, 22, 2297, 22, 15, 22, 4572, 22, 15, 11234, 22, 500, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0...
selection in the items of eclipse tree column === For a tree with 2 columns like, TreeColumn column1 = new TreeColumn(myTreeViewer.getTree(), SWT.LEFT); column1.setText("Column 1"); column1.setWidth(400); TreeColumn column2 = new TreeColumn(myTreeViewer.getTree(), SWT.LEFT); column2.setText("Column 2"); column2.setWidth(100); I can only select the items in the first column. I can see that the selection is disabled in the 2nd column so, Ho can I enable selection of items in the 2nd column ?
0
[ 2, 3155, 19, 14, 3755, 16, 11652, 1541, 4698, 800, 3726, 3726, 26, 21, 1541, 29, 172, 7498, 101, 15, 1541, 716, 4404, 103, 4698, 165, 800, 78, 1541, 716, 4404, 103, 5, 915, 8101, 4725, 106, 9, 3060, 8101, 5, 6, 15, 8783, 38, 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...
PHP function to escape MySQL regexp syntax === I'm looking for something similar to preg_quote, but for the MySQL regexp syntax. Any ideas?
0
[ 2, 13, 26120, 1990, 20, 2220, 51, 18, 22402, 7953, 6899, 22649, 800, 3726, 3726, 31, 22, 79, 699, 26, 301, 835, 20, 782, 263, 1, 8970, 591, 15, 47, 26, 14, 51, 18, 22402, 7953, 6899, 22649, 9, 186, 3478, 60, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Delete parent div when clicking link using JQuery === I need to fade out the parent 'content' div when clicking on either of the hyperlinks with the 'dc' class. The following code is what I already have, but does not work. <script> $('.dc').unbind("click").click(function(){ var dic = this.id; var strlinkc = "somepage.php?cid=" + dic; $.post(strlinkc, function(data, textStatus){ $('a.dc#'+dic).closest('.content').fadeOut("slow"); }); }); </script> <div class="content"> <div id="somediv"><a class="dc" id="23" href="javascript:void(0);">update</a></div> <div id="anotherdiv"> blah blah blah more text and images </div> <div id="yetanother"><a class="dc" id="23" href="javascript:void(0);">update</a></div> </div>
0
[ 2, 27448, 4766, 13, 12916, 76, 25590, 3508, 568, 487, 8190, 93, 800, 3726, 3726, 31, 376, 20, 11381, 70, 14, 4766, 13, 22, 25424, 22, 13, 12916, 76, 25590, 27, 694, 16, 14, 5443, 6258, 18, 29, 14, 13, 22, 7201, 22, 718, 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...
Is there such a thing as inline bash scripts? === I want to do something on the lines of: find -name *.mk | xargs "for i in $@ do mv i i.aside end" I realize that there might be more than on error in this, but I'd like to specifically know about this sort of inline command definition that I can pass xargs to.
0
[ 2, 25, 80, 145, 21, 584, 28, 19, 1143, 13158, 17505, 60, 800, 3726, 3726, 31, 259, 20, 107, 301, 27, 14, 1560, 16, 45, 477, 13, 8, 7259, 1637, 9, 79, 197, 13, 1, 993, 10663, 18, 13, 7, 1106, 31, 19, 5579, 1, 107, 17967, 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...
Accessing implemented class methods through interface reference without constructor initialization === I have a class CommonDaoImpl that implements an interface CommonDao.Now i am trying to access the getRegisterData() of CommonDaoImpl through interace CommonDao reference like this public class CommonServiceImpl implements CommonService { CommonDao commonDao public boolean insertRegisterData(CommonBean objCommonBean) { return commonDao.getRegisterData(objCommonBean); } but it is not working and thow an NullPointerException So i slightly change my code and initialize interface reference with the constructor of implemented class CommonDao impl like this public class CommonServiceImpl implements CommonService { CommonDao commonDao=new CommonDaoImpl(); public boolean getRegisterData(CommonBean objCommonBean) { return commonDao.insertRegisterData(objCommonBean); } But i could not understand why it happens...Plz help me out..Thanks in advance.
0
[ 2, 1381, 68, 6807, 718, 3195, 120, 6573, 2801, 366, 6960, 248, 2104, 1829, 800, 3726, 3726, 31, 57, 21, 718, 757, 17104, 8983, 255, 30, 8713, 18, 40, 6573, 757, 17104, 9, 1387, 31, 589, 749, 20, 1381, 14, 164, 12463, 9959, 18768, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 APIs Console - missing client secret === I tried to create a testing client id for an android app which uses OAUTH 2.0 as login for retrieving user profile. I followed the steps to complete the creation of the client id on google console, but I do not see anywhere the client secret. I'm trying to help my employer with getting google credentials for it's app. I know how to implement OATH 2.0 in android, but I need client secret to exchange the code with access token. First, I selected "Google+ API" from Services tab. Then followed the on screen steps from API Access tab.![enter image description here][1] [1]: http://i.stack.imgur.com/z55tK.png Thanks, Alex.
0
[ 2, 8144, 21, 8954, 8650, 13, 8, 2863, 6819, 1699, 800, 3726, 3726, 31, 794, 20, 1600, 21, 4431, 6819, 4924, 26, 40, 13005, 4865, 56, 2027, 635, 1346, 96, 172, 9, 387, 28, 6738, 108, 26, 13, 6239, 3272, 8397, 4155, 5296, 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...
device is not available error during running codes of intel MIC === when i try to run my code in intel mic it is giving error like "offload error: cannot offload to MIC - device is not available " how to solve this problem................... enter code here my sample code is ---------- ---------- #include <stdio.h> #include <omp.h> int main() { int N=10; int i, a[N]; #pragma offload target(mic) #pragma omp parallel #pragma omp for for(i = 0; i < N; i++) { a[i]=i; printf("a[%d] :: %d \n", i, a[i]); printf(".....................:\n\n"); } return 0; }
0
[ 2, 3646, 25, 52, 904, 7019, 112, 946, 11358, 16, 14635, 13, 5410, 800, 3726, 3726, 76, 31, 1131, 20, 485, 51, 1797, 19, 14635, 13, 5410, 32, 25, 1438, 7019, 101, 13, 7, 1299, 8294, 7019, 45, 1967, 168, 8294, 20, 13, 5410, 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...
SharePoint XML Parse c# === I have such XML structure which was returned by SharePoint web services. <rs:data ItemCount="4" xmlns:rs="urn:company:rowset"> <z:row ows_AssetId="HP010336520" /> <z:row ows_AssetId="HP010336519" /> <z:row ows_AssetId="HP010354403" /> <z:row ows_AssetId="HP010357062" /> </rs:data> private static void Parser(List<XmlNode> data) { List<XmlNodeList> rows = (from row in data.AsEnumerable() select row.SelectNodes("data/row")).ToList(); } I was trying to query for a row, but no luck. Could you guys please help me?
0
[ 2, 1891, 3132, 23504, 2017, 870, 272, 5910, 800, 3726, 3726, 31, 57, 145, 23504, 1411, 56, 23, 587, 34, 1891, 3132, 2741, 687, 9, 13, 1, 1224, 45, 18768, 9101, 16549, 3726, 7, 300, 7, 23504, 2172, 45, 1224, 3726, 7, 911, 103, 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...
Roam between different access points === I'm working on a android application to make a phone call via WiFi. It is working fine, but when I move in the building and the phone has to make a connection with a new access point because the signal gets to weak I lose connection for a second or two. Is there a way to fix this? Thanks in advance.
0
[ 2, 18963, 128, 421, 1381, 819, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 13005, 3010, 20, 233, 21, 1132, 645, 1197, 4807, 1707, 9, 32, 25, 638, 1123, 15, 47, 76, 31, 780, 19, 14, 353, 17, 14, 1132, 63, 20, 233, 21, 2760, 29,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
iPhone crash logs === I have an app in ad-hoc mode and it crash right after starts. I have access to Xcode and i try to find crash log like here: http://stackoverflow.com/questions/2075990/iphone-crash-log But i have no crash log from this app. Why? Right after app starts i can see *Default.png* and few second later it crash, i've never even see the mainViewController. How do get a crashlog? How to detect this error? I don't have an access to source code. I have only ad-hoc distribution. Problem not occurs on every devices. AFAIK this is only 3GS problem. Strange.
0
[ 2, 21024, 4597, 18893, 800, 3726, 3726, 31, 57, 40, 4865, 19, 21, 43, 8, 1807, 150, 3740, 17, 32, 4597, 193, 75, 3244, 9, 31, 57, 1381, 20, 993, 9375, 17, 31, 1131, 20, 477, 4597, 6738, 101, 235, 45, 7775, 6903, 25325, 2549, 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...
Android development for different screens === Falks, tell me please, if I'm wrong. I need every picture that I have in my program to be created for different densities (mdpi, ldpi, hdpi)? If yes, which density has to be for hdpi? Which one for ldpi? And the second question. What I don`t understand, that what about screen size? What people usually do for support of tablets? They do not do anything with images, they just creating different layouts (which is more convenient)? Am I right or I do not understand? It would be good to read something besides official documentation. Something that was written in language which is more human. Thank you.
0
[ 2, 13005, 522, 26, 421, 14236, 800, 3726, 3726, 21584, 18, 15, 494, 55, 2247, 15, 100, 31, 22, 79, 1389, 9, 31, 376, 352, 2151, 30, 31, 57, 19, 51, 625, 20, 44, 679, 26, 421, 29627, 13, 5, 79, 43, 2159, 15, 13, 6252, 2159, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 there ready solution or I need custom UIView? === I'm developing time manager for iOS and need to create something like on picture below. This is list of tasks for week. ![Week/Day task list][1] - Green box represents which day (monday, sunday, etc...) - Black box represents single task - Blue box represents button to add new task As I understand I need to create custom UIView to implement this design, am I right? Maybe there is ready library which I can to use? Thank you in advance. Anatoly. [1]: http://i.stack.imgur.com/aNmcD.jpg
0
[ 2, 25, 80, 1451, 4295, 54, 31, 376, 5816, 13, 5661, 4725, 60, 800, 3726, 3726, 31, 22, 79, 3561, 85, 1382, 26, 13, 7760, 17, 376, 20, 1600, 301, 101, 27, 2151, 1021, 9, 48, 25, 968, 16, 8674, 26, 877, 9, 13, 187, 2558, 7219,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
MapReduce vs Distributed Task Queue === Can someone make a clear difference between this 2 concepts, when is better to build a distributed system with MapReduce (maybe Hadoop) or Distributed Task Queue (maybe Celery)? With respect to scalability, reliability, big data, availability, efficiency, what can be a drawback or advantage of using one or another? thank you!
0
[ 2, 2942, 99, 16041, 4611, 4387, 3005, 22521, 800, 3726, 3726, 92, 737, 233, 21, 1207, 2841, 128, 48, 172, 8700, 15, 76, 25, 574, 20, 1895, 21, 4387, 329, 29, 2942, 99, 16041, 13, 5, 5138, 41, 21709, 6, 54, 4387, 3005, 22521, 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...
Peterson's Algorithm's behavior for various optimization flags === I wanted to check the behaviour of gcc and icc for various optimization options. Took Peterson's 2 Thread mutex algorithm. This algorithm can fail if the order of execution of line a and line b (in comments) in lock method are swapped. Compilation with icc or gcc with -O0 flag produces correct results. Compilation with icc with -O3 flag produces incorrect results. Compilation with gcc with -O3 flag produces nothing. Program hangs. So my guess is with -O3 flag both gcc and icc had optimized the lock method and assumed that there is no dependency between line a and line b. Hence both produced wrong results. Such dependency are hard for compilers to find, so is there a way (pragmas like ivdep) to tell the compiler about the dependencies in specific code blocks, so that we can still use -O3 flag for other sections of the code lock method: void lock(int me) { int other; other = 1-me; flag[me] = 1; //Line a victim = me; //Line b while(flag[other]==1 && victim == me) { } } Example for MUTEX violation if order of execution of line a and line b are swapped: T0 0 sets victim=0 T1 1 sets victim=1 T2 1 sets flag[1]=1 T3 1 checks flag[0]. flag[0] not yet set. T4 1 enters CS T5 0 sets flag[0]=1 and checks flag[1]. It is set but victim=1. T6 0 also enters cs Full code: #include<stdio.h> #include<pthread.h> #include<stdlib.h> #include<time.h> #include<stdint.h> int flag[2]; int victim; int sharedCounter=0; void lock(int me) { int other; other = 1-me; flag[me] = 1; victim = me; while(flag[other]==1 && victim == me) { } } void unlock(int me) { flag[me]=0; } void *peterson(void *ptr) { int tId,i; tId = (int ) (intptr_t) ptr; for(i=0;i<200;i++) { lock(tId); sharedCounter++; printf("%d\t",sharedCounter); sleep(1/10); unlock(tId); } } main() { int i; for(i=0;i<2;i++) { flag[i]= 0; } pthread_t t[2]; for(i=0;i<2;i++) { pthread_create(&t[i],NULL,peterson,(void *) (intptr_t) i); } for(i=0;i<2;i++) { pthread_join(t[i],NULL); } printf("shared Counter:%d\n",sharedCounter); exit(0); }
0
[ 2, 13206, 22, 18, 9083, 22, 18, 3257, 26, 617, 21597, 9318, 800, 3726, 3726, 31, 417, 20, 2631, 14, 7727, 16, 489, 3384, 17, 18946, 26, 617, 21597, 6368, 9, 199, 13206, 22, 18, 172, 9322, 20562, 396, 9083, 9, 48, 9083, 92, 7476,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Send data to TCP Server on local network with PhoneGap / jQuery mobile === I want to send this string "ABC" to a TCP Server on local network, and the address and port are available. And I want to do this with phonegap or jquery mobile. Any help? Or, I have to make a proxy with PHP, and this PHP will handle the data send activity? -Ana
0
[ 2, 2660, 1054, 20, 13, 38, 7439, 8128, 27, 375, 982, 29, 1132, 1136, 306, 13, 118, 487, 8190, 93, 3241, 800, 3726, 3726, 31, 259, 20, 2660, 48, 3724, 13, 7, 21880, 7, 20, 21, 13, 38, 7439, 8128, 27, 375, 982, 15, 17, 14, 321...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...