unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Select distinct from Muiltiple columns into one column === I have this: ColumnA ColumnB ColumnC Dog Soda Book CatIce Juice Notebook Bird Water Pencil Dog Water Notebook By using this select: select ColumnA, ColumnB, ColumnC from table I wanna a list like this: ColumnD Bird Book Cat Dog Ice Juice Notebook Pencil Soda Water How can I do this? Thanks!
0
[ 2, 5407, 4421, 37, 2832, 947, 10169, 413, 7498, 77, 53, 4698, 800, 3726, 3726, 31, 57, 48, 45, 4698, 58, 4698, 220, 4698, 150, 1952, 16207, 360, 2008, 3568, 10384, 14630, 2838, 308, 13092, 1952, 308, 14630, 34, 568, 48, 5407, 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...
How does sqlmetal generate association names? === The association names sqlmetal generates have been the source of much frustration. Sometimes the association is simply the column name with "Id" taken off the end, sometimes it generates an association name based on the foreign key constraint name. I simply cannot figure out what steps it uses to generate these names, and a recent schema change has drastically altered the association names once again, so I'd like to get a handle on this. I have two tables which reference each other in a sort of chain. Something like this: class In { int Id; EntityRef<Out> Yields; // YieldsId => FK_Out_Source EntitySet<Out> In_Source; // FK_In_Source } class Out { int Id; EntityRef<In> Yields; // YieldsId => FK_In_Source EntitySet<In> Out_Source; // FK_Out_Source } These were the classes prior to the schema change, where there was an extra FK field between In and Out tables. After deleting that field, sqlmetal now generates this: class In { int Id; EntityRef<Out> Yields; // YieldsId => FK_Out_Source EntitySet<Out> Out; // FK_In_Source } class Out { int Id; EntityRef<In> In; // YieldsId => FK_In_Source EntitySet<In> Out_Source; // FK_Out_Source } The previous classes were perfectly symmetrical as they should be, but now the generated classes are completely asymmetrical. Can anyone explain this?
0
[ 2, 184, 630, 4444, 255, 13651, 7920, 607, 1817, 60, 800, 3726, 3726, 14, 607, 1817, 4444, 255, 13651, 7920, 18, 57, 74, 14, 1267, 16, 212, 8740, 9, 1030, 14, 607, 25, 1659, 14, 4698, 204, 29, 13, 7, 1340, 7, 658, 168, 14, 241,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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't start QT .exe file on Windows 7 === I'm getting started with Qt and have encountered the following issue: when i compile and run my application from within QtCreator it runs all right, but when i go to the debug folder and double click .exe file to launch the app a message box pops up and it says > This application has failed to start because QtDeclaratived4.dll was not found. Re-installing the application may fix this problem Please notice - it is QtDeclaratived4.dll with letter d before 4, not QtDeclarative4.dll. After searching in Google i found an advice to find the needed dll and put it inside project folder. But unfortunately such .dll is missing on my computer. I found QtDeclarative4.dll and tried putting it inside project folder but it didn't help. Can you propose me any other solution? Thanks
0
[ 2, 92, 22, 38, 799, 2593, 38, 13, 9, 1706, 62, 3893, 27, 1936, 453, 800, 3726, 3726, 31, 22, 79, 1017, 373, 29, 2593, 38, 17, 57, 8208, 14, 249, 1513, 45, 76, 31, 26561, 17, 485, 51, 3010, 37, 363, 2593, 38, 26438, 32, 1461,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 the splash view can be removed with a Bookopening like animation? === I have an Iphone application in which i am using an imageview to create a splash screen.and in the remove splash function i am removing that splash view and adding the navigation controllers view.Now i need to remove that splash view with a bookopening like animation like as did in the path application.can anybody help me to do that?
0
[ 2, 184, 14, 13873, 1418, 92, 44, 1974, 29, 21, 360, 23161, 101, 6236, 60, 800, 3726, 3726, 31, 57, 40, 21024, 3010, 19, 56, 31, 589, 568, 40, 1961, 4725, 20, 1600, 21, 13873, 2324, 9, 290, 19, 14, 4681, 13873, 1990, 31, 589, 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 google analytics unique visitors === I'm using Google Analytics SDK to collect statistics from my Android application. I want to be able to create a chart showing which language are users using. To do so, I'm creating a visitor scope custom variable like this: tracker.setCustomVar(1, "Language", language, 1); The problem is I'm afraid that this approach isn't correct. I want to create a pie chart in Home -> Dashboards in google analytics, so I choose Add widget -> Pie -> "Unique Visitors" grouped by "Custom Variable (Value 01)". Pie chart created like above shows invalid results. The goal is to get last variable value for each user and then display the number of users for each value. What it actually does is it takes all variable values and for each value it shows the number of visitors that ever had this value. This means that if someone switched between languages, he will appear in both languages in the chart. Not the one that he is actually using. So my question is - how to do it correctly? Should I change something in the code, perhaps use something other than variables? Or maybe it's possible to fix it just via google analytics website? Thanks
0
[ 2, 13005, 8144, 26320, 2619, 4531, 800, 3726, 3726, 31, 22, 79, 568, 8144, 26320, 13, 18, 43, 197, 20, 5543, 5818, 37, 51, 13005, 3010, 9, 31, 259, 20, 44, 777, 20, 1600, 21, 1795, 3187, 56, 816, 50, 3878, 568, 9, 20, 107, 86,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
call a ruby script from within a rails app controller === I'm very new to rails and I have a script that I run from the console like this $ ruby axml2xml.rb ExamPaper.apk Now, how do I call this script from within my controller method and pass the same parameter as 'ExamPaper.apk'? I tried require 'axml2xml.rb' but got some error pointing to this line of code "Zip::ZipFile.foreach(ARGV[0]) do |f|". So basically, how do I make something like axml2xml.rb 'ExamPaper.apk' in my controller?
0
[ 2, 645, 21, 10811, 3884, 37, 363, 21, 2240, 18, 4865, 9919, 800, 3726, 3726, 31, 22, 79, 253, 78, 20, 2240, 18, 17, 31, 57, 21, 3884, 30, 31, 485, 37, 14, 8650, 101, 48, 5579, 10811, 21, 396, 8184, 135, 396, 8184, 9, 7549, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to map Named instance in constructor injection === maybe this is easy, but searching it on the internet already give me a head ache here is the problem: interface IValidator { void Validate(); } public class ValidatorA : IValidator { public void Validate() { } } public class ValidatorB : IValidator { public void Validate() { } } interface IClassA { } interface IClassB { } public class ClassA : IClassA { //problem: validator should injected with ValidatorA public ClassA(IValidator validator) { } } public class ClassB : IClassB { //problem: validator should injected with ValidatorB public ClassB(IValidator validator) { } } public class OtherClass { public OtherClass(IClassA a, IClassB b) { } } //on Main var oc = container.Resolve<OtherClass>(); Any idea?
0
[ 2, 184, 20, 2942, 377, 4851, 19, 6960, 248, 13646, 800, 3726, 3726, 913, 48, 25, 2010, 15, 47, 5792, 32, 27, 14, 2620, 614, 590, 55, 21, 157, 14187, 235, 25, 14, 1448, 45, 6573, 31, 18506, 43, 3457, 13, 1, 11364, 7394, 1373, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Jquery Split-able Table Cell similar like div splitter === I am working on asp mvc . I have a table on form now i want to make some of my table-cell splittable for saving space. How can i make it splittable just like splittable div that we can see by clicking this link <a> http://layout.jquery-dev.net/demos/example.html</a> Thanks in advance.
0
[ 2, 487, 8190, 93, 2132, 8, 579, 859, 1667, 835, 101, 13, 12916, 2132, 815, 800, 3726, 3726, 31, 589, 638, 27, 28, 306, 307, 8990, 13, 9, 31, 57, 21, 859, 27, 505, 130, 31, 259, 20, 233, 109, 16, 51, 859, 8, 9725, 2132, 5924,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 get request returns empty === file_get_contents returns an empty string on the url: http://thepiratebay.org/search/a when it is obviosly not empty. also tried curl, heres my code $ch = curl_init(); $cookieFile = 'cookies.txt'; curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookieFile); curl_setopt($ch, CURLOPT_COOKIEFILE, $cookieFile); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_HEADER, true); curl_setopt($ch, CURLOPT_BINARYTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 30); curl_setopt($ch, CURLOPT_TIMEOUT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)'); $url = 'http://thepiratebay.org/search/a'; curl_setopt($ch, CURLOPT_URL,$url); $html = curl_exec ($ch); var_dump($html); $html = file_get_contents($url); var_dump($html); curl_close ($ch); unset($ch); output is : string(143) "HTTP/1.1 200 OK X-Powered-By: PHP/5.3.8 Content-type: text/html Content-Length: 0 Date: Mon, 14 Nov 2011 20:27:01 GMT Server: lighttpd " string(0) "" if i change the url to "http://thepiratebay.org/search" by deleting 2 chars everything is ok and i get a good response. any ideas ?
0
[ 2, 13, 26120, 164, 3772, 4815, 2424, 800, 3726, 3726, 3893, 1, 3060, 1, 25424, 18, 4815, 40, 2424, 3724, 27, 14, 287, 6362, 45, 7775, 6903, 124, 2159, 5487, 7011, 9, 5583, 118, 25136, 118, 58, 76, 32, 25, 5122, 13327, 18, 102, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
iPhone: Inherit a protocol or category from another protocol or category === I want to inherit a protocol from another protocol, same like that i want to inherit a category from another category. I would be able to resolve some complex tasks if i can implement these two ways. Could someone please advise, whether is it first possible or not? If yes, what would be the syntax to achieve this? Thank you.
0
[ 2, 21024, 45, 17569, 21, 8494, 54, 3230, 37, 226, 8494, 54, 3230, 800, 3726, 3726, 31, 259, 20, 17569, 21, 8494, 37, 226, 8494, 15, 205, 101, 30, 31, 259, 20, 17569, 21, 3230, 37, 226, 3230, 9, 31, 83, 44, 777, 20, 9854, 109, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 using SAML bearer tokens for authenticating users to backend services a bad idea? === Suppose I have a front-end application that wants to fetch some data from a back-end service. (I do.) The service will need to verify that the end-user is authenticated, that it is authorized to use the service and possibly filter the returned data based on the user's privileges. In my case, both the front-end app and the back-end service relies on Azure ACS for authentication. ![Simple federated identity scenario][1] Ideally the front-end would like to *act on the behalf of* the authenticated user, which sounds like a good fit for using an `ActAs` token (as specified in WS-Trust). However, it turns out that [ACS does not currently support ActAs][2]. A workaround could be to *use the actual bearer token* (the bootstrap token in the front-end app) to authenticate to the back-end service. [It's not hard to do][3], but would it be a bad idea for some reason? [1]: http://i.stack.imgur.com/yaBW9.png [2]: http://stackoverflow.com/questions/11296421/is-identity-delegation-via-ws-trust-actas-supported-in-acs/11298814#11298814 [3]: http://travisspencer.com/blog/2012/01/authenticating-to-a-wcf-servic.html
0
[ 2, 25, 568, 1113, 255, 13, 17215, 20, 2853, 18, 26, 14351, 1880, 3878, 20, 97, 2451, 687, 21, 896, 882, 60, 800, 3726, 3726, 5787, 31, 57, 21, 431, 8, 2451, 3010, 30, 2846, 20, 18312, 109, 1054, 37, 21, 97, 8, 2451, 365, 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...
Creating a PopUp Slider === I want to have an input box for numeric values, with clickable triangle on right (*similar to a combo box*). When you click on the triangle, a slider appears below the input box, and you can drag the knob on the slider to adjust the value in the input box.
0
[ 2, 2936, 21, 1675, 576, 3295, 106, 800, 3726, 3726, 31, 259, 20, 57, 40, 6367, 1649, 26, 15764, 596, 4070, 15, 29, 10840, 579, 8676, 27, 193, 13, 5, 2483, 19107, 20, 21, 22621, 1649, 2483, 6, 9, 76, 42, 10840, 27, 14, 8676, 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...
tomcat jdbc connection pooling with Oracle database === We are using tomcat jdbc connection pooling with Oracle database. Recently, we encountered problem that there are too many inactive session in Oracle database from JDBC THIN CLIENT. Can anyone help us in this? Why is it causing inactive session in the database and what can be the solution to this. Thank you.
0
[ 2, 2067, 5782, 487, 43, 7229, 2760, 3067, 68, 29, 15759, 6018, 800, 3726, 3726, 95, 50, 568, 2067, 5782, 487, 43, 7229, 2760, 3067, 68, 29, 15759, 6018, 9, 1989, 15, 95, 8208, 1448, 30, 80, 50, 266, 151, 19, 7889, 3723, 19, 1575...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
repeating data in reportviewer === I have assigned a datatable to report as below but i am getting only first row data in report not all. how can i repeat the report for all rows of datatable i am assigning? <rsweb:ReportViewer ID="ReportViewer1" runat="server" Height="1000px" Width="600px" SizeToReportContent="True"> </rsweb:ReportViewer> ReportDataSource rd = new ReportDataSource(); rd.Name = "DataSet1_DataTable1"; //rd.Value = ReceiptData; rd.Value =(DataTable) ViewState["ReceiptData"]; ReportViewer1.LocalReport.ReportPath = Server.MapPath("Report/Report.rdlc"); //ReportViewer1.LocalReport.EnableExternalImages = true; ReportViewer1.LocalReport.DataSources.Clear(); ReportViewer1.LocalReport.DataSources.Add(rd); ReportViewer1.LocalReport.Refresh();
0
[ 2, 17389, 1054, 19, 1330, 4725, 106, 800, 3726, 3726, 31, 57, 2467, 21, 1054, 5924, 20, 1330, 28, 1021, 47, 31, 589, 1017, 104, 64, 3131, 1054, 19, 1330, 52, 65, 9, 184, 92, 31, 6830, 14, 1330, 26, 65, 11295, 16, 1054, 5924, 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...
show jsf component in xhtml page === i have a dynamic web application in eclipse using jsf . i created a jsp page with 'new java server faces(jsf) page(xhtml)' template and want to show just a h:inputText but when i run my app in tomcat the inputText doesn't show up . when i use 'new java server faces(jsf) page(html)' template i wont have any problem but i have to use xhtml in my project . i'm using eclipse indigo sr2 3.7.2 - myfaces 2.0.14 - tomcat 7.0.29 my jars : commons-beanutils-1.8.3 - commons-codec-1.3 - commons-collections-3.2 - commons-digester-1.8 - commons-logging-1.1.1 - jstl-api-1.2 - jstl-impl-1.2 - myfaces-api-2.0.14 - myfaces-bundle-2.0.14 - myfaces-impl-2.0.14 main.jsp : <?xml version="1.0" encoding="ISO-8859-1" ?> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"> <h:head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <title>Insert title here</title> </h:head> <h:body> <f:view> <h1>JSF XHTML</h1> <h:inputText value="Hi"></h:inputText> </f:view> </h:body> </html> what's the problem ?
0
[ 2, 298, 487, 18, 410, 5912, 19, 993, 15895, 2478, 800, 3726, 3726, 31, 57, 21, 7782, 2741, 3010, 19, 11652, 568, 487, 18, 410, 13, 9, 31, 679, 21, 487, 3401, 2478, 29, 13, 22, 2681, 8247, 8128, 4904, 5, 728, 18, 410, 6, 2478, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Disabling automatic moxieplayer wrap in tinymce === =) I've built a function that uploads,converts and then embeds a video into tinymce. Tinymce keeps wrapping my video embeds with some < object > html, using their moxieplayer.swf. I want to use custom videoplayers for these videos, but cant do that when tinymce behaves as it does. This is the code im injecting to tinymce : <video width="320" height="240" poster="5872deprivedwrath.jpg" preload="false" src="5872deprivedwrath.mp4"> <source type="video/mp4" src="5872deprivedwrath.mp4"><source type="video/ogv" src="5872deprivedwrath.ogv"> <object width="320" height="240" type="application/x-shockwave-flash" data="/js/flashmediaelement.swf"> <param name="movie" value="/js/flashmediaelement.swf"> <param name="flashvars" value="controls=true&amp;file=5872deprivedwrath.mp4"> <img src="5872deprivedwrath.jpg" width="320" height="240" title="No video playback capabilities"> </object> </video> But when tinymce receives it, it turns into a big blob of html ( i can post that if needed ), wrapping it all in some moxieplayer flash embed. So i'm trying to find out how to disable this function, or work around it. Has anybody had any experience with this? Any input is greatly appreciated, as im struggling with this one!
0
[ 2, 1460, 58, 8599, 6715, 1873, 396, 660, 14049, 8118, 19, 3228, 79, 1105, 800, 3726, 3726, 800, 6, 31, 22, 195, 392, 21, 1990, 30, 71, 8294, 18, 15, 1126, 8122, 18, 17, 94, 11911, 69, 18, 21, 763, 77, 3228, 79, 1105, 9, 3228, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Bidirectional Foreign Keys Design === Say there are two tables, Company and Employee. Employee has a foreign key to Company and Company has a foreign key to Employee. How should I insert and delete data into these tables without getting referential integrity errors? COMPANIES ID NAME CONTACT_EMPLOYEE_ID --FK EMPLOYEES ID NAME COMPANY_ID --FK I imagine this is a fairly common problem. I have researched it but have been unable to find much information. Perhaps the problem comes under a more common name I am not aware of.
0
[ 2, 1732, 19393, 1228, 5534, 704, 800, 3726, 3726, 395, 80, 50, 81, 7484, 15, 237, 17, 7362, 9, 7362, 63, 21, 1228, 1246, 20, 237, 17, 237, 63, 21, 1228, 1246, 20, 7362, 9, 184, 378, 31, 14692, 17, 27448, 1054, 77, 158, 7484, 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...
Insert xml tag from groovy to SOAP request in SOAPUI === I am using SOAPUI for web service testing. I would like to do xml parsing via groovy script Test Step. For one test case, I have to insert xml tag [like <Email>xyz@gmail.com</Email>] in SOAP Request. I can set value to xml tag using holder.setNodeValue(Xpath, Value), Using the same function I try to insert xml tag in SOAP request like holder.setNodeValue(Xpath, "<Email>xyz@gmail.com</Email>"). But in SOAP request xml tag set as "&ltEmail>xyz@gmail.com&lt/Email>" Because of this problem SOAP request not recognize that xml tag, Hence the value not get reflect /update in response. Please correct me If I am using this function wrongly. Awaiting response from anyone..
0
[ 2, 14692, 23504, 3383, 37, 3452, 2026, 93, 20, 6447, 3772, 19, 6447, 5661, 800, 3726, 3726, 31, 589, 568, 6447, 5661, 26, 2741, 365, 4431, 9, 31, 83, 101, 20, 107, 23504, 2017, 18, 68, 1197, 3452, 2026, 93, 3884, 1289, 1424, 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...
Can not insert German characters in Postgres === I am using UTF8 as encoding for my database: CREATE DATABASE test WITH OWNER = postgres ENCODING = 'UTF8' TABLESPACE = mydata LC_COLLATE = 'de_DE.UTF-8' LC_CTYPE = 'de_DE.UTF-8' CONNECTION LIMIT = -1; ALTER DATABASE test SET default_tablespace='mydata'; ALTER DATABASE test SET temp_tablespaces=mydata; And the output of \l test | postgres | UTF8 | de_DE.UTF-8 | de_DE.UTF-8 | When I try to insert a german character: create table x(a text); insert into x values('ä,ß,ö'); ERROR: invalid byte sequence for encoding "UTF8": 0xe42cdf HINT: This error can also happen if the byte sequence does not match the encoding expected by the server, which is controlled by "client_encoding". Any idea? Thanks
0
[ 2, 92, 52, 14692, 548, 1766, 19, 678, 6879, 18, 800, 3726, 3726, 31, 589, 568, 287, 11720, 457, 28, 19608, 26, 51, 6018, 45, 1600, 6018, 1289, 29, 2410, 800, 678, 6879, 18, 19608, 800, 13, 22, 1982, 410, 457, 22, 859, 5582, 800,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 connect oracle 11g database using struts2? === Im new user of using oracle 11g database in struts2. I have a doubt to connect oracle 11g.
1
[ 2, 184, 20, 6379, 15759, 547, 263, 6018, 568, 18316, 18, 135, 60, 800, 3726, 3726, 797, 78, 4155, 16, 568, 15759, 547, 263, 6018, 19, 18316, 18, 135, 9, 31, 57, 21, 3063, 20, 6379, 15759, 547, 263, 9, 3, 0, 0, 0, 0, 0, 0, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
jQuery datatables 'No data available in table' in IE === I have a pop up window which contains a datatable, the data is showing in firefox and chrome perfectly. In IE (I have IE 9) i get no data and the message 'No data available in table'. If i do console.log(historyArray); I do get the data in the console. Here is the datatable code, how can i resolve the IE issue? myTable = $('#report').dataTable({ "aaData": historyArray, "aoColumns": [{ "mDataProp": "User" }, { "mDataProp": "Timestamp" }, { "mDataProp": "Latitude" }, { "mDataProp": "Longitude" }, { "mDataProp": "Address" }], "bPaginate": false, "bJQueryUI": true, "sDom": '<"H"Tfr>t<"F"ip>', "oTableTools": { "sSwfPath": "swf/copy_csv_xls_pdf.swf", "aButtons": ["copy", "csv", "xls", "pdf"] }, "fnInitComplete": function () { addClasses(); } });
0
[ 2, 487, 8190, 93, 1054, 5924, 18, 13, 22, 251, 1054, 904, 19, 859, 22, 19, 13, 660, 800, 3726, 3726, 31, 57, 21, 1675, 71, 1463, 56, 1588, 21, 1054, 5924, 15, 14, 1054, 25, 3187, 19, 535, 18219, 17, 13, 12985, 5759, 9, 19, 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...
PHP framework for rich client (Javascript) === I am a web developer, and I prefer to use a rich-client type of web apps. So the server sends a data (JSON, XML) to the client, rather than an html. While at the client side I have a jQuery full-featured app with MVC. Here is the question: what framework should I use on server side? While I don't need any MVC on server anymore, but want it to be OOP well-structured, instead of plain PHP (as I'm using it now). Maybe in this case it would be good to use something SOA-oriented? I'm not in touch with it yet, but it seems to fit my needs. Please enlight me. And any other suggestions about this kind of architecture are welcome. Thanks.
1
[ 2, 13, 26120, 6596, 26, 2042, 6819, 13, 5, 1004, 1385, 8741, 6, 800, 3726, 3726, 31, 589, 21, 2741, 10058, 15, 17, 31, 6369, 20, 275, 21, 2042, 8, 150, 18513, 38, 1001, 16, 2741, 4865, 18, 9, 86, 14, 8128, 11350, 21, 1054, 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...
Retrieving emails from gmail === I've been using Oauth for G-mail to get the emails, it's going perfectly until I faced a problem that after following the [Goggle playground for Oauth][1] the last response contained the emails as I want except than that I want the **Full** content of the email, not only the *summery* ... what I'm missing ...? [1]: https://code.google.com/oauthplayground/
0
[ 2, 13, 6239, 3272, 8397, 8517, 18, 37, 489, 8079, 800, 3726, 3726, 31, 22, 195, 74, 568, 635, 1346, 96, 26, 489, 8, 8079, 20, 164, 14, 8517, 18, 15, 32, 22, 18, 228, 5759, 163, 31, 3110, 21, 1448, 30, 75, 249, 14, 636, 839, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Having a legend causes IE to ignore the top padding of a fieldset - alternatives? === I'm creating a form and ran into a padding problem with fieldsets. While all looks ok in Opera, FF and Chrome, both IE 7 and 8 simply throw away any top padding inside the fieldset. The following code correctly adds padding to the left, bottom and right of the fielset (although the latter causes this [known problem](http://stackoverflow.com/questions/248483/ie-css-fieldset-border-extends-too-far-to-the-right-why)), but positions the first line of content directly underneath the legend with no spacing: <form> <fieldset style="padding:30px;"> <legend>Legend</legend> <label for="input">Label</label> <input type="text" id="input" /> </fieldset> </form> However, [this answer](http://stackoverflow.com/a/5398861/840977) to another question pointed me towards the legend tag and indeed, if I leave it out, everything is fine. So my question is: Is there a work-around to have both the legend tag and the padding? My quick top-of-the hat attempt (margin-top on the first element) does not have an effect. Or do I have to forego the (semantically correct) legend tag and replace it with something (more arbitrary) like a heading? What concequences does this have for screen-readers?
0
[ 2, 452, 21, 4393, 4047, 13, 660, 20, 7174, 14, 371, 4432, 3258, 16, 21, 575, 3554, 13, 8, 2676, 18, 60, 800, 3726, 3726, 31, 22, 79, 2936, 21, 505, 17, 717, 77, 21, 4432, 3258, 1448, 29, 2861, 6095, 9, 133, 65, 1879, 5854, 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...
Rails serialization of Range of integers is broken === I need to serialize ruby `Range`s using YAML, in a rails context. I wanted to check if ranges of integers and ranges of strings were serialized properly. Here was my test: <!-- language: lang-rb --> # classic irb require 'yaml' # => true YAML::VERSION # => "0.60" YAML.dump(1..2) # => "--- !ruby/range \nbegin: 1\nend: 2\nexcl: false\n" YAML.dump("1".."2") # => "--- !ruby/range \nbegin: \"1\"\nend: \"2\"\nexcl: false\n" The two outputs are dutifully distinct, so I got forward and coded it inside my rails application. However it seems that within a rails context, ruby forgets how to properly serialize a range of integers! <!-- language: lang-rb --> # ./script/rails console Rails::VERSION::STRING # => "3.0.15" RUBY_VERSION # => "1.8.7" YAML::VERSION # => "0.60" YAML.dump(1..2) # => "--- !ruby/range\n begin: 1\n end: 2\n excl: false" YAML.dump("1".."2") # => "--- !ruby/range\n begin: 1\n end: 2\n excl: false" # The two outputs are identical, the distinction between integers and strings is lost! Both ruby and ruby on rails seem to use the same version of the YAML library. If I don't get it wrong, my version of ruby doesn't support switching between multiple coder engines. I have a few questions: 1. What is the cause of this difference? 2. Does this problem arise with newer versions of _ruby_ / _rails_? 3. How could I fix that properly, in a compatible manner? Thank you for your help.
0
[ 2, 2240, 18, 5956, 1829, 16, 978, 16, 13820, 18, 25, 2023, 800, 3726, 3726, 31, 376, 20, 5956, 2952, 10811, 13, 1, 8366, 1, 18, 568, 2167, 8184, 15, 19, 21, 2240, 18, 4141, 9, 31, 417, 20, 2631, 100, 9230, 16, 13820, 18, 17, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
json from another domain using jquery === Sorry if this is a repeat, but I couldnt find the answer on any of the related threads. I am trying to get a json from an api and read the contents, but having trouble parsing. The code is below. I am using jsonp, since json does not work cross domain. function getBbyJson() { link = "http://api.remix.bestbuy.com/v1/products(name=playbook*)?show=sku,name,regularPrice,shortDescription&format=json&apiKey="+apikey $(document).ready(function(){ $.ajax({ type: "GET", url: link, dataType: "jsonp", success: function(data){ for (var i = 0,len = data.products.length; i < len; i++) { var name = data.products[i].name; $('<div class="name" id="item_'+i+'"></div>').html(name).appendTo('#container'); } } }); }); } using this function, bby returns a 400 error with the following message "Couldn't understand '/v1/products(name=playbook*)?show=sku,name,regularPrice,shortDescription&format=json&apiKey=apikey&callback=jQuery17206852765618823469_1341853386681&_=1341853391235'" the jquery method is adding a callback function, and a random number at the end. I can remove the callback function by add the code below jsonp: false jsonpCallback: "" But, I cant get rid of the random number generated by jquery. I am not sure how to proceed from here. I used the same function on a local json file and it worked without a hitch. The return json from bby if I paste the link in the browser is below { "queryTime": "0.005", "currentPage": 1, "totalPages": 2, "partial": false, "from": 1, "total": 15, "to": 10, "products": [ { "name": "BlackBerry - Leather Sleeve for BlackBerry PlayBook Tablets - Black", "shortDescription": "From our expanded online assortment; designed for use with BlackBerry PlayBook tablets; premium-grade leather material; access to ports; reinforced panels", "regularPrice": 49.99, "sku": 2638153 }, { "name": "BlackBerry - PlayBook Tablet with 16GB Memory", "shortDescription": "BlackBerry PlayBook Tablet operating system7\" HD capacitive screen with multi-touchWi-Fi16GB memorySupports all POP e-mail services", "regularPrice": 199.99, "sku": 2265381 }, { "name": "BlackBerry - PlayBook Tablet with 32GB Memory", "shortDescription": "BlackBerry PlayBook Tablet operating system7\" HD capacitive screen with multi-touchWi-Fi32GB memorySupports all POP e-mail services", "regularPrice": 249.99, "sku": 2387032 }, { "name": "BlackBerry - PlayBook Tablet with 64GB Memory", "shortDescription": "BlackBerry PlayBook Tablet operating system7\" HD capacitive screen with multi-touchWi-Fi64GB storage memorySupports all POP e-mail services", "regularPrice": 299.99, "sku": 2387041 }, { "name": "BlackBerry - Rapid Charger for BlackBerry PlayBook", "shortDescription": "From our expanded online assortment; compatible with BlackBerry PlayBook tablets; 90&#176; magnetic connector; compact design", "regularPrice": 69.99, "sku": 2638199 }, { "name": "BlackBerry - Rapid Charger for BlackBerry PlayBook Tablets - Black", "shortDescription": "Compatible with BlackBerry PlayBook tablets; charges PlayBook battery; holds PlayBook upright for viewing; magnetically connects to PlayBook", "regularPrice": 69.99, "sku": 2496254 }, { "name": "BlackBerry - Refurbished PlayBook Tablet with 16GB Memory - Black", "shortDescription": "RefurbishedBlackBerry PlayBook Tablet operating system7\" HD capacitive screen with multitouchWi-Fi16GB memorySupports all POP e-mail services", "regularPrice": 159.99, "sku": 4063218 }, { "name": "BlackBerry - Silicone Skin for BlackBerry PlayBook Tablets - Black", "shortDescription": "From our expanded online assortment; compatible with BlackBerry PlayBook tablets; silicone material; play-through design", "regularPrice": 29.99, "sku": 2638162 }, { "name": "Hip Street - AC/Car Power Adapter Kit for BlackBerry PlayBook Tablets", "shortDescription": "Compatible with BlackBerry PlayBook tablets and other devices with a USB charging cable; LED indicator light; USB charging cable; overcurrent protection", "regularPrice": 39.99, "sku": 3894198 }, { "name": "Hip Street - Antifingerprint Screen Protector for BlackBerry PlayBook Tablets - Clear", "shortDescription": "Compatible with BlackBerry PlayBook tablets; high-quality optical enhanced film; antiscratch hard coating; residue-free adhesive", "regularPrice": 19.99, "sku": 3894082 } ], "canonicalUrl": "/v1/products(name=\"playbook*\")?show=sku,name,regularPrice,shortDescription&format=json&apiKey=ydpyq9h9cmpmzaakbawv9mzk", "totalTime": "0.022" } any help is appreciated.
0
[ 2, 487, 528, 37, 226, 4603, 568, 487, 8190, 93, 800, 3726, 3726, 1875, 100, 48, 25, 21, 6830, 15, 47, 31, 3245, 477, 14, 1623, 27, 186, 16, 14, 1597, 20396, 9, 31, 589, 749, 20, 164, 21, 487, 528, 37, 40, 21, 2159, 17, 1302,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Jasmine: testing my rails site's interface with it === So, I've been looking for ways to test a Rails 3 app that has quite a lot of JS code for it's rich interface. I tried going with Capybara, but that dind't work out, so now I'm giving Jasmine a try, but I'm having a hard time understanding how should I go about it. For what I gathered, Jasmine alone is good for testing JS components of a site, but what if I want to test the interface directly? I need something like: describe "Sign in" Visit '/home' When user clicks "Sign in" link The sign in form should appear Can I actually do something like that with Jasmine? So far, my tests are included on a results page generated by the rails-jasmine gem and obviously they run over that DOM, not over my site's DOM. I'm now trying to use evergreen, but I get the same result (I can't even include jquery). Any ideas? Thanks!
0
[ 2, 15885, 45, 4431, 51, 2240, 18, 689, 22, 18, 6573, 29, 32, 800, 3726, 3726, 86, 15, 31, 22, 195, 74, 699, 26, 2847, 20, 1289, 21, 2240, 18, 203, 4865, 30, 63, 1450, 21, 865, 16, 487, 18, 1797, 26, 32, 22, 18, 2042, 6573, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Javascript: creating dynamic variables and object names. / html5 localstorage === Im working on a form that is saved by HTML5 local storage. When pressing save: function saveAll(){ var field1 = document.getElementById('field1').value; localStorage.setItem('con_field1',field1); var field2 = document.getElementById('field2').value; localStorage.setItem('con_field2',field2); var field3 = document.getElementById('field3').value; localStorage.setItem('con_field3',field3); var field4 = document.getElementById('field4').value; localStorage.setItem('con_field4',field4); var field5 = document.getElementById('field5').value; localStorage.setItem('con_field5',field5); var field6 = document.getElementById('field6').value; localStorage.setItem('con_field6',field6); } And when loading the page (fills out the forms): function ShowAll() { var field1 = localStorage.getItem('con_field1'); document.conditioning.field1.value = field1; var field2 = localStorage.getItem('con_field2'); document.conditioning.field2.value = field2; var field3 = localStorage.getItem('con_field3'); document.conditioning.field3.value = field3; var field4 = localStorage.getItem('con_field4'); document.conditioning.field4.value = field4; var field5 = localStorage.getItem('con_field5'); document.conditioning.field5.value = field5; var field6 = localStorage.getItem('con_field6'); document.conditioning.field6.value = field6; } This all works fine... but I want to re-write this in a more fancy and efficient way. I was thinking of something like this: function ShowAll() { var field = []; for (i=0; i<6; i++) { field[i] = localStorage.getItem(window['con_field' + i]); document.purpose.field[i].value = window['con_field' + i] } } but the browser is not enjoying this... Basically I need to create a loop that automatically changes the "field" name in to 'field1, field2, field3' etc. The window thing is working, but Im just using it wrong. Anyone any idea? Thanks a lot!
0
[ 2, 8247, 8741, 45, 2936, 7782, 12157, 17, 3095, 1817, 9, 13, 118, 13, 15895, 264, 375, 18, 2153, 1303, 800, 3726, 3726, 797, 638, 27, 21, 505, 30, 25, 4377, 34, 13, 15895, 264, 375, 4326, 9, 76, 7196, 2079, 45, 1990, 2079, 1233,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
tar .svn folders preserver directory structure === What I need is to extract all .svn-folders from a project within their original directory structure and make a tar file out of it. So that in the archive I have only the emtpy folders with all .svn-folders and their contents in it.
0
[ 2, 2475, 13, 9, 18, 16578, 19294, 18, 6224, 139, 16755, 1411, 800, 3726, 3726, 98, 31, 376, 25, 20, 10962, 65, 13, 9, 18, 16578, 8, 8814, 445, 37, 21, 669, 363, 66, 501, 16755, 1411, 17, 233, 21, 2475, 3893, 70, 16, 32, 9, 8...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
7-zip command line in C# to archive files of same name === my software is supposed to collect files into a .zip or .7z file using 7zip, but due to the nature of the software there are alot of files with the same name, but different directories like: D:\Software\Components\Station1\Alarms\Logs\ValvePressureSensor.xml D:\Software\Components\Station1\Configurations\ValvePressureSensor.xml D:\Software\Components\Station2\Alarms\Logs\ValvePressureSensor.xml these files are stored in a list "FileList.lst" and I am calling 7-zip in this way: 7za a -t7z "D:\Software\CollectedData\Diagnostics.7z" "@D:\Software\ZipTemp\FileList.lst" So I'm wondering if there is a way to keep the directories of each file when they are zipped to stop 7-zip from flagging duplicate files? I am aware of the workaround involving the removal of "D:\" from the beginning of each file path, but this would be impossible manually as the "FileList.lst" is populated in the C# code with around 1500~3000 files(which aren't always the same files), as well the FileList.lst is located in a temporary folder which is created, zipped, then destroyed dynamically.. so I couldn't store the 7za.EXE in the same area. On top of that the file list is used by another executable which does need the drives specified in the file paths. I should mention that I am using Visual Studio 2005, C#2.0, and 7-zip v9.20
0
[ 2, 453, 8, 2553, 306, 1202, 293, 19, 272, 5910, 20, 9250, 6488, 16, 205, 204, 800, 3726, 3726, 51, 2306, 25, 2293, 20, 5543, 6488, 77, 21, 13, 9, 2553, 306, 54, 13, 9, 465, 380, 3893, 568, 453, 2553, 306, 15, 47, 397, 20, 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...
Clickable td in IE === I have issue with cursor pointer on TD in IE 6++. There is a table cell with such HTML code, the click event `BlockDay` works only on second div, but i wrote it on all TD. <TD class="calnedar_td" onclick="BlockDay('1340571600');return false;"> <DIV style="DISPLAY: inline; FLOAT: left"></DIV> <DIV style="DISPLAY: inline; FLOAT: right">Mon 25</DIV> </TD> .calnedar_td{ height:105px; width:105px; vertical-align: top; text-align: left; padding: 3px; cursor:pointer; } How can i made all td area clickable? Thank you, Anton.
0
[ 2, 10840, 579, 15596, 19, 13, 660, 800, 3726, 3726, 31, 57, 1513, 29, 29588, 454, 106, 27, 15596, 19, 13, 660, 400, 20512, 9, 80, 25, 21, 859, 1667, 29, 145, 13, 15895, 1797, 15, 14, 10840, 807, 13, 1, 12048, 1185, 1, 693, 104...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Django - Allow users to input data point and Google Graphs it in a Linear Chart === I am using Django 1.3.1 I'd like my users to each have their own chart. They input data points, and Google Charts API would chart it for them. I don't know what the best way to do this is or if Google Charts is the right way to go? Is Highcharts better? Please advise Django Experts!
0
[ 2, 3857, 14541, 13, 8, 1655, 3878, 20, 6367, 1054, 454, 17, 8144, 7210, 18, 32, 19, 21, 6745, 1795, 800, 3726, 3726, 31, 589, 568, 3857, 14541, 137, 9, 240, 9, 165, 31, 22, 43, 101, 51, 3878, 20, 206, 57, 66, 258, 1795, 9, 5...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Can we fetch data(or insert data to the database) using any of the Wordpress plugins from a iphone app === There is a wordpress powered website ,, and i need to develop a native iphone app for the same site , since am born new to the social networks development, i have spent so much of time to find a plugin to do data transaction , but i could not find any , my question is, can we use any of the wordpress plugins to fetch data from the remote database (or to insert data to the remote database) from an iphone app?? if not, is there any other powerful methods to access remote database without using the web services...please help me out ,thanx in advance
0
[ 2, 92, 95, 18312, 1054, 5, 248, 14692, 1054, 20, 14, 6018, 6, 568, 186, 16, 14, 833, 5890, 10922, 108, 18, 37, 21, 21024, 4865, 800, 3726, 3726, 80, 25, 21, 833, 5890, 7462, 2271, 13, 15, 15, 17, 31, 376, 20, 2803, 21, 1275, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Upgrading jQuery from version 1.3.1 to 1.6.1 === I am at present researching the upgrade of jQuery 1.3.1 to 1.6.1 I have read the documentation found on the jQuery site detailing what's new in each of the releases since 1.3.1 http://jquery14.com/day-01/jquery-14 http://blog.jquery.com/2011/01/31/jquery-15-released/ http://blog.jquery.com/2011/05/03/jquery-16-released/ I have a very large codebase, some of which I inherited, a lot of which I have added to. I can run two instances of the site side by side, one with jQuery 1.3.1 and one with jQuery 1.6.1 So I guess my question is, has anyone ever done an upgrade from 1.3.1 to 1.6.1 and did you run into a lot of problems? Also, other than those three links, is there a difinitive list of changes anywhere? Many thanks
0
[ 2, 26939, 487, 8190, 93, 37, 615, 137, 9, 240, 9, 165, 20, 137, 9, 379, 9, 165, 800, 3726, 3726, 31, 589, 35, 734, 527, 68, 14, 9483, 16, 487, 8190, 93, 137, 9, 240, 9, 165, 20, 137, 9, 379, 9, 165, 31, 57, 1302, 14, 139...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What's the namespace, soap action and url should be for my android app accessing wcf web service? === My WSDL is like: <?xml version="1.0" encoding="utf-8"?> <wsdl:definitions name="ABCWcfService" targetNamespace="http://www.ABC.com/ABCWcfService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:tns="http://www.ABC.com/ABCWcfService" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"> <wsdl:types> <xsd:schema targetNamespace="http://www.ABC.com/ABCWcfService/Imports"> <xsd:import schemaLocation="http://desktop/ABCWcfService/ABCWcfService.svc?xsd=xsd0" namespace="http://www.ABC.com/ABCWcfService"/> <xsd:import schemaLocation="http://desktop/ABCWcfService/ABCWcfService.svc?xsd=xsd1" namespace="http://schemas.microsoft.com/2003/10/Serialization/"/> </xsd:schema> </wsdl:types> <wsdl:message name="IABCWcfService_GetWhatsOnData_InputMessage"> <wsdl:part name="parameters" element="tns:GetWhatsOnData"/> </wsdl:message> <wsdl:message name="IABCWcfService_GetWhatsOnData_OutputMessage"> <wsdl:part name="parameters" element="tns:GetWhatsOnDataResponse"/> </wsdl:message> <wsdl:portType name="IABCWcfService"> <wsdl:operation name="GetWhatsOnData"> <wsdl:input wsaw:Action="http://www.ABC.com/ABCWcfService/IABCWcfService/GetWhatsOnData" message="tns:IABCWcfService_GetWhatsOnData_InputMessage"/> <wsdl:output wsaw:Action="http://www.ABC.com/ABCWcfService/IABCWcfService/GetWhatsOnDataResponse" message="tns:IABCWcfService_GetWhatsOnData_OutputMessage"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="BasicHttpBinding_IABCWcfService" type="tns:IABCWcfService"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="GetWhatsOnData"> <soap:operation soapAction="http://www.ABC.com/ABCWcfService/IABCWcfService/GetWhatsOnData" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="ABCWcfService"> <wsdl:port name="BasicHttpBinding_IABCWcfService" binding="tns:BasicHttpBinding_IABCWcfService"> <soap:address location="http://desktop/ABCWcfService/ABCWcfService.svc"/> </wsdl:port> </wsdl:service> </wsdl:definitions> I am wondering what should I put for my SOAP_ACTION, METHOD_NAME, NAMESPACE and URL? I guess: SOAP_ACTION = "http://www.ABC.com/ABCWcfService/IABCWcfService/GetWhatsOnData" METHOD_NAME = "GetWhatsOnData" NAMESPACE = "http://www.ABC.com/ABCWcfService" URL = "http://desktop/ABCWcfService/ABCWcfService.svc" But it seems not working in my code: SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.dotNet = true; envelope.setOutputSoapObject(request); HttpTransportSE androidHttpTransport = new HttpTransportSE(URL); androidHttpTransport.call(SOAP_ACTION, envelope); SoapObject result = (SoapObject) envelope.getResponse(); It goes into exception after androidHttpTransport.call(SOAP_ACTION, envelope); I have add <uses-permission android:name="android.permission.INTERNET"></uses-permission> in the Manifest file Can anyone tell me what's wrong? Thank you very much.
0
[ 2, 98, 22, 18, 14, 204, 5582, 15, 6447, 1028, 17, 287, 6362, 378, 44, 26, 51, 13005, 4865, 1381, 68, 11801, 410, 2741, 365, 60, 800, 3726, 3726, 51, 619, 18, 8643, 25, 101, 45, 13, 1, 60, 396, 8184, 615, 3726, 7, 165, 9, 387...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
No exception log output in excepiton.log file in pyramid project with plugin pyramid_exclog deployed by uwsgi === I use uwsgi to deploy my pyramid project. and also use pyramid_exclog to catch exception log which is expected to logto the file exception.log . But all the log info(include the exception log) was output to the file which was setted in the section of [uwsgi], file production.ini [uwsgi] logto = /var/log/project.log I need your help
0
[ 2, 90, 5391, 6738, 5196, 19, 1396, 20626, 49, 444, 9, 5567, 3893, 19, 9565, 669, 29, 10922, 108, 9565, 1, 1706, 150, 5567, 6698, 34, 13, 14524, 18, 2234, 800, 3726, 3726, 31, 275, 13, 14524, 18, 2234, 20, 17617, 51, 9565, 669, 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...
change date format in extjs === I am new to extjs and want to change date format. I am fetching date from database. My date is in format -> YYYY-m-d, and want to change this format to d-m-YYYY. .
0
[ 2, 753, 1231, 2595, 19, 1396, 38, 728, 18, 800, 3726, 3726, 31, 589, 78, 20, 1396, 38, 728, 18, 17, 259, 20, 753, 1231, 2595, 9, 31, 589, 18312, 68, 1231, 37, 6018, 9, 51, 1231, 25, 19, 2595, 13, 8, 1, 13, 93, 93, 93, 93, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Why localStreams contains LocalMediaStream and remoteStreams contains MediaStream? === ![enter image description here][1] **localStreams** and **remoteStreams** both are of type “**MediaStreamList**”. **localStreams** contains “**LocalMediaStream**” objects However, **remoteStreams** contains “**MediaStream**” objects *Why so difference?* When I use “**localStreams**” – it works for me: localVideo.src = URL.createObjectURL(localStreams[0]); But if I try to use “**remoteStreams**” – it doesn’t work: remoteVideo.src = URL.createObjectURL(remoteStreams[0]) **Blobs** for “**remoteStreams**” and “**localStreams**” are looking same in style. Why “**remoteStreams**” doesn’t work for me (in “**onaddstream**” event or directly) ??? remoteVideo.src = URL.createObjectURL(secondPeer.remoteStreams[0]) "blob:http%3A//localhost%3A8082/78e8821f-90b8-4703-b56d-918ec505e5bf" [1]: http://i.stack.imgur.com/dDGeK.png
0
[ 2, 483, 375, 11260, 18, 1588, 375, 8260, 11260, 17, 5388, 11260, 18, 1588, 941, 11260, 60, 800, 3726, 3726, 13, 187, 2558, 13679, 1961, 5318, 235, 500, 2558, 165, 500, 13, 1409, 15580, 11260, 18, 1409, 17, 13, 1409, 99, 20209, 11260...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Rails 3 mailer interceptor conflicting === I followed tutorial on RailsCasts (Sending email revised version). I had to change the development file in "config" because it was not working properly.Always when I try to add an interceptor (tell Rails to send the email to me as well) it will stop sending it to the user. If I disable it, it will send it to the user but not to me. I do not get any errors at all. Thank you ! Here are my files: My config/development.rb file: ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :user_name => "admin@gmail.com", :password => 'admin', :authentication => "plain", :enable_starttls_auto => true } User controller: UserMailer.signup_confirmation(@user).deliver User mailer file: app/mailers/user_mailer.rb class UserMailer < ActionMailer::Base default from: "admin@gmail.com" def signup_confirmation(user) @user = user mail to: user.email, subject: "Sign Up Confirmation" end end lib/development_mail_interceptor.rb file class DevelopmentMailInterceptor def self.delivering_email(message) message.subject = "[#{message.to}] #{message.subject}" message.to = "admin@gmail.com" end end config/initiliazers/setup_mail.rb require 'development_mail_interceptor' ActionMailer::Base.register_interceptor(DevelopmentMailInterceptor) if Rails.env.development?
0
[ 2, 2240, 18, 203, 4216, 106, 13, 24171, 22297, 800, 3726, 3726, 31, 709, 29724, 27, 2240, 18, 6146, 18, 13, 5, 18, 7601, 8517, 7886, 615, 6, 9, 31, 41, 20, 753, 14, 522, 3893, 19, 13, 7, 14093, 2816, 7, 185, 32, 23, 52, 638,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
PreferenceScreen class not found === I have a simple preferences.xml: <?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <PreferenceCategory android:title="First Category"> <CheckBoxPreference .... My android version is 2.1 (API7) java is 1.6, use eclipse indigo. In the package explorer there is _android.jar_ and after I opened it there is _android.preference_ package. Even so I get the following error: com.android.layoutlib.bridge.MockView cannot be cast to android.view.ViewGroup Exception details are logged in Window > Show View > Error Log The following classes could not be found: - PreferenceCategory (Fix Build Path, Edit XML) - PreferenceScreen (Fix Build Path, Edit XML) What should I do? Thanx in advance
0
[ 2, 9808, 7187, 718, 52, 216, 800, 3726, 3726, 31, 57, 21, 1935, 9808, 18, 9, 396, 8184, 45, 13, 1, 60, 396, 8184, 615, 3726, 7, 165, 9, 387, 7, 19608, 3726, 7, 1982, 410, 8, 457, 7, 60, 1, 13, 1, 306, 28018, 7187, 23504, 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...
Write UITableview'data into file === I want to write Tableview's data into file .In tableview I have three column. how can I do that ?
0
[ 2, 2757, 13, 11193, 579, 4725, 22, 18768, 77, 3893, 800, 3726, 3726, 31, 259, 20, 2757, 859, 4725, 22, 18, 1054, 77, 3893, 13, 9, 108, 859, 4725, 31, 57, 132, 4698, 9, 184, 92, 31, 107, 30, 13, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Eclipse not connecting to internet via proxy === My eclipse(juno 4.2, centos 5.6) doesn't connect to internet. At all. I have a proxy server setup. I had a look at http://stackoverflow.com/questions/7778484/eclipse-can-not-connect-to-internet and at various other questions. So, at the moment, my eclipse.ini file looks like this: -startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar -Dhttp.proxyHost=192.168.1.21 -Dhttp.proxyPort=3128 -Dhttp.nonProxyHosts=localhost|127.0.0.1 -Djava.net.preferIPv4Stack=true --launcher.library plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120522-1813 -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile -vmargs -Xms40m -Xmx512m I also tried setting proxy server values in the preferences(preferences/Network Connections) - set the HTTP, HTTPS, SOCKS host, port & credentials. But none of the Active Provider settings(Manual, Native, Direct) work for me. I've spent enough time on this to know that I need help. Badly. :P So, here I am...help!!
0
[ 2, 11652, 52, 6440, 20, 2620, 1197, 27188, 800, 3726, 3726, 51, 11652, 5, 2142, 251, 268, 9, 135, 15, 5802, 759, 331, 9, 379, 6, 1437, 22, 38, 6379, 20, 2620, 9, 35, 65, 9, 31, 57, 21, 27188, 8128, 18161, 9, 31, 41, 21, 361,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Detect HyperLink on UIImage === I have a requirement, where i have to detect Hyper link on a image, and open this URL into Browser. I know for reading Text from image we have to use OCR. But can any one suggest me any option? Any Help will be appreciable. Thanks
0
[ 2, 9092, 5443, 6258, 27, 13, 5661, 22039, 800, 3726, 3726, 31, 57, 21, 8981, 15, 113, 31, 57, 20, 9092, 5443, 3508, 27, 21, 1961, 15, 17, 368, 48, 287, 6362, 77, 16495, 9, 31, 143, 26, 1876, 1854, 37, 1961, 95, 57, 20, 275, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 reduce flickering on updates to my True Transparency WinForm? or is there a better way to do this? === this has been an ongoing problem with me, ive been trying to make a custom drawn form with nice transparency. this is as close as i can get right now, i started it just a half hour ago.. it sets the form.opacity to 0% then it grabs an image of the screen ( anything on the screen, current running programs, desktop, etc) directly behind the form every 500 milliseconds as of now, and sets it as the background and brings the transparency back to 100%. so i can draw anything on it and it looks perfect! but the only problem i get is when it does the work, it flickers. and yes i tried it with DoubleBuffering set to true, no difference. hears the main code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Drawing.Drawing2D; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace TTTest { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { Opacity = 100; } private void button1_Click(object sender, EventArgs e) { timer1.Enabled = !timer1.Enabled; } private void timer1_Tick(object sender, EventArgs e) { Opacity = 0; Bitmap img = new Bitmap(this.Width, this.Height); Graphics gr = Graphics.FromImage(img); gr.CopyFromScreen(Location, Point.Empty, Size); this.BackgroundImage = img; Opacity = 100; } private void Form1_Paint(object sender, PaintEventArgs e) { Graphics g = e.Graphics; g.SmoothingMode = SmoothingMode.AntiAlias; ExtDrawing2D.FillRoundRect(g, new SolidBrush(Color.FromArgb(100, 255, 255, 255)), new RectangleF(1, 1, Width - 3, Height - 3), 4f); g.DrawPath(new Pen(Color.FromArgb(100, 0, 0, 0)), ExtDrawing2D.GetRoundedRect(new RectangleF(0, 0, Width - 1, Height - 1), 5f)); g.DrawPath(new Pen(Color.FromArgb(100, 255,255,255)), ExtDrawing2D.GetRoundedRect(new RectangleF(1,1, Width - 3, Height - 3), 4f)); } private void button2_Click(object sender, EventArgs e) { timer1_Tick(sender, e); } private void panel1_Paint(object sender, PaintEventArgs e) { Graphics g = e.Graphics; g.SmoothingMode = SmoothingMode.AntiAlias; ExtDrawing2D.FillRoundRect(g, new SolidBrush(Color.FromArgb(150, 255,255,255)), new RectangleF(1, 1, panel1.Width - 3, panel1.Height - 3), 2f); g.DrawPath(new Pen(Color.FromArgb(100, 0, 0, 0)), ExtDrawing2D.GetRoundedRect(new RectangleF(0, 0, panel1.Width - 1, panel1.Height - 1), 3f)); g.DrawPath(new Pen(Color.FromArgb(100, 255, 255, 255)), ExtDrawing2D.GetRoundedRect(new RectangleF(1, 1, panel1.Width - 3, panel1.Height - 3), 2f)); } } } ***note:** the ExtDrawing2D is a separate class that does a lot of the heavy work with drawing almost perfect round corners. AND is not the problem, i developed it half a year ago and in all my projects never had problems with it.* result: http://i.stack.imgur.com/rkyG6.png if there is a better way of stabbing at this overall problem, id gladly love to hear it, altho i've been looking around the web for a long time.
0
[ 2, 184, 92, 31, 4136, 22399, 27, 16779, 20, 51, 1151, 19668, 628, 4190, 60, 54, 25, 80, 21, 574, 161, 20, 107, 48, 60, 800, 3726, 3726, 48, 63, 74, 40, 6748, 1448, 29, 55, 15, 5568, 74, 749, 20, 233, 21, 5816, 3160, 505, 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...
how to fix an external hard drive bad sectors? === my friend have an external hard drive with 300GB. 7.3GB free and the rest data but recently it stopped working even when i tried to format it i used the fdisk utility on ubuntu 11.04 but still not working, the operation complete with no errors and when i mount the hard drive it was so slow to mount sometimes did not mount at all and it is 7.3GB and when i open ubuntu's disk utility i sow: SMART Status: Disk has a few bad sectors. so any help; thanx, in advance.
2
[ 2, 184, 20, 6098, 40, 4886, 552, 1493, 896, 12653, 60, 800, 3726, 3726, 51, 860, 57, 40, 4886, 552, 1493, 29, 3565, 11400, 9, 453, 9, 240, 11400, 551, 17, 14, 760, 1054, 47, 1989, 32, 1175, 638, 166, 76, 31, 794, 20, 2595, 32,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 implement a real time connection with server in android === I have experience developing in android and using REST services, but now I'd like to implement an online game for android. For example a tic-tac-toe for multiplayer, where a user can invite to other to play a game and each one receive the actions of the other in real time. Using REST for this kind of apps would require constants surveys to the server for updates and its a bad idea.Isn't it? My question is what are the typical aproaches for this kind of "permanent" connections. I just need some hints about the technologies and protocols in client and server for start searching and read :D Thanks
0
[ 2, 184, 20, 8713, 21, 683, 85, 2760, 29, 8128, 19, 13005, 800, 3726, 3726, 31, 57, 1496, 3561, 19, 13005, 17, 568, 760, 687, 15, 47, 130, 31, 22, 43, 101, 20, 8713, 40, 2087, 250, 26, 13005, 9, 26, 823, 21, 13, 1786, 8, 6981...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Outlook Object Library Does Not Switch Between Versions 12 And 14 === I have a .dotm template file on a network share. There are macros with references to the Word, Office, and Outlook object libraries. We use two different platforms, Windows XP and Windows 7, along with Microsoft Office 2007 and Office 2010. When users open the template file the references for Word and Office adjust automatic and accordingly (that is, they’re set to Microsoft Word 12 Object Library or Microsoft Word 14 Object Library as needed), and the macros run without a problem. Microsoft Outlook Object Library switches properly from version 12 to 14. It does not switch properly from version 14 to 12. In that case, it gives the error that the libary is not found. Is this a bug? Is there a workaround? Something I’m overlooking?
0
[ 2, 19837, 3095, 1248, 630, 52, 5521, 128, 3281, 390, 17, 513, 800, 3726, 3726, 31, 57, 21, 13, 9, 12527, 79, 22894, 3893, 27, 21, 982, 1891, 9, 80, 50, 9069, 18, 29, 7231, 20, 14, 833, 15, 488, 15, 17, 19837, 3095, 8649, 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...
transform string/char to uint8 === Why does the expression: test = cast(strtrim('3'), 'uint8') produce 51? This is also true for: test = cast(strtrim('3'), 'int8') Thanks.
0
[ 2, 8007, 3724, 118, 5433, 20, 287, 6391, 457, 800, 3726, 3726, 483, 630, 14, 1803, 45, 1289, 800, 1325, 5, 9729, 3367, 79, 5, 22, 240, 22, 6, 15, 13, 22, 291, 6391, 457, 22, 6, 2213, 5236, 60, 48, 25, 67, 1151, 26, 45, 1289,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 going full screen flash applet (NPObject) === I've googled about for an hour or so now and can't find a solution which works, I have a flash player and I need to full screen it using JavaScript, I can get the JavaScript to send commands (my volume function works) but my full screen one always returns: Error: Error calling method on NPObject. Most posts referring to this are solved with adding the as3 security line, for me, that's not the problem <pre>Security.allowDomain("mydomain.com");</pre> function fScreen() { if (stage.displayState== "normal") { stage.displayState="fullScreen"; stage.scaleMode = StageScaleMode.NO_SCALE; } else { stage.displayState="normal"; } call('console.log', 'okok'); } When I just output to the console it goes through fine. Any other ways of going fullscreen? Thanks
0
[ 2, 7019, 228, 503, 2324, 4433, 4037, 38, 13, 5, 8157, 23793, 6, 800, 3726, 3726, 31, 22, 195, 8144, 43, 88, 26, 40, 1671, 54, 86, 130, 17, 92, 22, 38, 477, 21, 4295, 56, 693, 15, 31, 57, 21, 4433, 517, 17, 31, 376, 20, 503...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 "open with" doesn't opens file in my application === I have OpenFileFialog realized in my Windows Forms application, but when I use Open With in file context menu, or add my item in context menu with command like "myapp.exe %1" it just opens application. Need I to do anything else to realize it?
0
[ 2, 568, 13, 7, 10157, 29, 7, 1437, 22, 38, 8965, 3893, 19, 51, 3010, 800, 3726, 3726, 31, 57, 368, 16877, 1707, 58, 5567, 1896, 19, 51, 1936, 1997, 3010, 15, 47, 76, 31, 275, 368, 29, 19, 3893, 4141, 11379, 15, 54, 3547, 51, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
UIView's animation blocks not getting completed === I am using the following animation blocks in my app:  [UIView animateWithDuration:0.5 delay:0.0 options:UIViewAnimationOptionCurveEaseInOut animations:^{             [alertViewController.view setFrame:CGRectMake(0, 20, alertViewController.view.frame.size.width, alertViewController.view.frame.size.height)]; } completion:^(BOOL finished){ NSLog(@"x=%f,y=%f,width=%f,height=%f",alertViewController.view.frame.origin.x,alertViewController.view.frame.origin.y,alertViewController.view.frame.size.width,alertViewController.view.frame.size.height); }]; I am doing nothing but adding a subview and animating it from bottom of screen to middle. The problem is it works fine but randomly at some point the subview stops responding to touches. After a bit debugging I found out that the completion block is not getting fired in some cases and these are the cases where it stops interacting. However, If I take the app to the background and then bring back into foreground, it starts working. I guess there's some glitch in the animation block that may be I am missing. Can anyone please help me over with it. Thanks for your time mates.
0
[ 2, 13, 5661, 4725, 22, 18, 6236, 5198, 52, 1017, 1066, 800, 3726, 3726, 31, 589, 568, 14, 249, 6236, 5198, 19, 51, 4865, 45, 636, 5661, 4725, 14487, 591, 1410, 10852, 857, 45, 387, 9, 264, 7255, 45, 387, 9, 387, 6368, 45, 5661, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 PoS tag of individual words in a sentence? === I have been using [Stanford POS Tagger][1] to tag parts of speech in a sentence. What I have learnt from the documentation and other questions on the topic on stackoverflow is that following code gives POS Tagging of a sentence MaxentTagger tagger = new MaxentTagger("./left3words-wsj-0-18.tagger"); String tags=tagger.tagString(Summary); but what I want is to get the POS Tag of individual words. One possible way of doing this is to break up the input string and give input to the Tagger word by word but it does not seem elegant and I think that it increases the chances of errors. [Javadoc][2] says that apply function is available that returns the ArrayList of TaggedWords but I have not been able to call this function successfully. Any idea how can I get the POS tagging of individual words of a string using Stanford POS Tagger either by apply function or some other function?? [1]: http://nlp.stanford.edu/software/tagger.shtml [2]: http://nlp.stanford.edu/nlp/javadoc/javanlp/edu/stanford/nlp/tagger/maxent/MaxentTagger.html#apply%28java.util.List%29
0
[ 2, 184, 20, 164, 12928, 3383, 16, 1359, 715, 19, 21, 5123, 60, 800, 3726, 3726, 31, 57, 74, 568, 636, 6114, 1426, 12928, 3383, 1674, 500, 2558, 165, 500, 20, 3383, 1341, 16, 2974, 19, 21, 5123, 9, 98, 31, 57, 2484, 38, 37, 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...
Delete a row in a csv with specific content, with php === i have this csv logitech;100;1 lg;200;0 samsung;40;0 samsung;60;10 nokia;25;1 Now i need to delete all the rows which have in the first column "lg" and "nokia" and the rows which have in the third column the only "0" like this logitech;100;1 samsung;60;10 how can i do? thanks for support
1
[ 2, 27448, 21, 3131, 19, 21, 272, 18, 710, 29, 1903, 2331, 15, 29, 13, 26120, 800, 3726, 3726, 31, 57, 48, 272, 18, 710, 6738, 49, 6524, 73, 4031, 73, 165, 13, 10641, 73, 4621, 73, 387, 22981, 73, 2602, 73, 387, 22981, 73, 3374...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
$(this).attr("href") not working === For some reason, this line of code is returning undefined for `$(this).attr("href")` $("a").attr("href", "javascript:page('" + $(this).attr("href") + "')"); How can I get that value?
0
[ 2, 5579, 5, 1565, 6, 9, 10303, 139, 5, 7, 252, 14057, 7, 6, 52, 638, 800, 3726, 3726, 26, 109, 1215, 15, 48, 293, 16, 1797, 25, 2485, 367, 13439, 26, 13, 1, 4403, 5, 1565, 6, 9, 10303, 139, 5, 7, 252, 14057, 7, 6, 1, 557...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
tooltip useHTML highcharts === I am trying to use html in highcharts's tootip I have used: tooltip: { useHTML: true, formatter: function() { var color = ""; if (this.point.config[2]>0) color = "green"; else if (this.point.config[2]<0) color = "red"; return '<div>' + 'TIME:' + Highcharts.dateFormat('%H:%M:%S', this.x) +'<BR /> INDICE:'+ this.y + '<BR /> CHANGE:' + "<div class='"+color+"'>" + this.point.config[2] + "</div>"; +'</div>'; } } but it's not responding, my toottip is <tspan x="12">TIME:16:15:01 INDICE:701.83 CHANGE:-0.37</tspan>
0
[ 2, 5607, 10169, 275, 15895, 183, 5433, 38, 18, 800, 3726, 3726, 31, 589, 749, 20, 275, 13, 15895, 19, 183, 5433, 38, 18, 22, 18, 266, 10169, 31, 57, 147, 45, 5607, 10169, 45, 13, 1, 275, 15895, 45, 1151, 15, 26, 24700, 45, 199...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 data is posted back to the 'return' url, and how can I send some of my own data to this url === I have a basic paypal standard buy now button. The docs [here][1] are not very clear on what data is passed back to the 'return' url, and how to send data of your own there through the form. I surprisingly can't find documentation for this. Any help out there? <form accept-charset="UTF-8" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓"><input name="authenticity_token" type="hidden" value="mYAT+aR+YhVyBrulWoYoMjzY00DQggAXUVGI12TA6zk="></div> <input id="cmd" name="cmd" type="hidden" value="_xclick"> <input id="currency_code" name="currency_code" type="hidden" value="USD"> <input id="notify_url" name="notify_url" type="hidden" value="http://localhost:3000/en/paypal_ipns/cart_purchase_ipn"> <input id="item_name" name="item_name" type="hidden" value="Cart id 5398"> <input id="quantity" name="quantity" type="hidden" value="1"> <input id="business" name="business" type="hidden" value="seller_1318259_biz@me.net"> <input id="return" name="return" type="hidden" value="http://localhost:3000/en/checkout/process_paypal_return"> <input id="amount" name="amount" type="hidden" value="1.99"> <input id="rm" name="rm" type="hidden" value="2"> <p> <input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_xpressCheckout.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> </p> </form> [1]: https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_Appx_websitestandard_htmlvariables#id08A6HH00W2J
0
[ 2, 98, 1054, 25, 6054, 97, 20, 14, 13, 22, 24632, 22, 287, 6362, 15, 17, 184, 92, 31, 2660, 109, 16, 51, 258, 1054, 20, 48, 287, 6362, 800, 3726, 3726, 31, 57, 21, 2125, 1372, 6720, 1236, 3034, 130, 5167, 9, 14, 9765, 18, 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...
Using An External Binding File === I am consuming a external service using Add Web Refernce in .net 2010 , It giving me some error as below.. --------------------------- Microsoft Visual Studio --------------------------- The custom tool 'MSDiscoCodeGenerator' failed. Schema with targetNamespace='http://www.isotc211.org/2005/gmd' has invalid syntax. The complexType 'http://www.isotc211.org/2005/gmd:MD_Metadata_Type' has already been declared. Line 15, position 4. --------------------------- OK --------------------------- Is there an option to override the .xsd file which cause above issue
0
[ 2, 568, 40, 4886, 8728, 3893, 800, 3726, 3726, 31, 589, 13, 17601, 21, 4886, 365, 568, 3547, 2741, 5017, 6175, 19, 13, 9, 2328, 498, 13, 15, 32, 1438, 55, 109, 7019, 28, 1021, 9, 9, 13, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
getting T_ENCAPSED_AND_WHITESPACE error in PHP === I am creating an App in php in which i am getting an error on this line # $sql="INSERT INTO stdexamrecord ( `rollnum`,'sessionid', `class`, `subject`, `theory`, `practical`, `type_of`, `term`) VALUES ('$students['rollnum']', '$session','$class','$subject['id']','$_REQUEST[$subject['id'].'_'.$students['rollnum'].'_th']','$_REQUEST[$subject['id'].'_'.$students['rollnum'].'_pr']', '$examtype', '$examsubtype')"; I dont knoe what's wrong with this line. i even checked at an [online platform][1].They said the same that there is error on Line #(above). Anyone who can help me with this Thanks [1]: http://www.meandeviation.com/tutorials/learnphp/php-syntax-check/v4/syntax-check.php
0
[ 2, 1017, 13, 38, 1, 219, 4666, 18, 69, 1, 290, 1, 5051, 5582, 7019, 19, 13, 26120, 800, 3726, 3726, 31, 589, 2936, 40, 4865, 19, 13, 26120, 19, 56, 31, 589, 1017, 40, 7019, 27, 48, 293, 6926, 5579, 18, 22402, 3726, 7, 108, 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...
Bootstrap typeahead error === please help me resolve this error with Bootstrap typeahead. Here is my php code that I use to call for the source. function getUser() { $sth = mysql_query("SELECT id,contact FROM cinfo ORDER BY id ASC"); $rows = array(); $i = 0; while ($r = mysql_fetch_assoc($sth)) { $rows[] = $r; } print json_encode($rows); } Here is my javascript file $('.user').typeahead({ source: '/ticket/getUser', display:'contact', id: 'id' }); I get the following error on firebug typeahead.lookup(): source object has no property named "cinfo" I am using the following bootstrap typeahead script https://gist.github.com/1866577 Thank you.
0
[ 2, 5894, 16514, 1001, 58, 1743, 7019, 800, 3726, 3726, 2247, 448, 55, 9854, 48, 7019, 29, 5894, 16514, 1001, 58, 1743, 9, 235, 25, 51, 13, 26120, 1797, 30, 31, 275, 20, 645, 26, 14, 1267, 9, 1990, 164, 16704, 5, 6, 13, 1, 5579...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unable to customize UINavigationBar's appearance in iOS SDK: === I am trying to customize the appearance of the navigation var, which appears A couple of times thru my app (FYI: I am using storyboards). For some reason, Th app doesn't work (It gets stuck in the line: return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); in the main.m file, saying "Thread 1: signal SIGABRT". The code I wrote is this: UIImage * TabBarBG = [UIImage imageNamed:@"TabBarBG.png"]; [[UITabBar appearance] setBackgroundImage:TabBarBG]; [[UINavigationBar appearance] setBackgroundImage:TabBarBG]; The customization of the tab bar works perfectly by the way, and I have tried it with a different picture for the NavBar, But its not here for simplicity sake! the code above is found in a method called "customizeInterface" of the appDelegate class, and it is called from the didFinishLaunchingWithOptions method of the same class (appDelegate). Any Idea as for why that might happen and what can I do to make it work? Any comments appreciated!
0
[ 2, 2343, 20, 5816, 2952, 287, 1673, 13227, 857, 1850, 22, 18, 1468, 19, 13, 7760, 13, 18, 43, 197, 45, 800, 3726, 3726, 31, 589, 749, 20, 5816, 2952, 14, 1468, 16, 14, 8368, 4033, 15, 56, 1780, 21, 1335, 16, 436, 19637, 51, 48...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 - Adding inflated views to viewflipper === first off I apologise if it's a dumb question as I'm a noob when it comes to Android and StackOverflow too... I'm trying to read a twitter json feed and then push the various tweets into a ViewFlipper so it cycles horizontally between them...I just need the date (formatted) and the text of the tweet... I've already got the feed working and I can cycle between the tweets, my question is how to inject them into the viewflipper? Right now I'm inflating a layout xml and using addView to get them in there, which works, but I have no idea how to set the two textviews in the inflated view... Is there another way perhaps that's easier? Thanks in advance!
0
[ 2, 13005, 13, 8, 4721, 29788, 4146, 20, 1418, 4372, 49, 8763, 800, 3726, 3726, 64, 168, 31, 26645, 100, 32, 22, 18, 21, 9317, 1301, 28, 31, 22, 79, 21, 90, 4995, 76, 32, 1624, 20, 13005, 17, 7566, 2549, 9990, 266, 9, 9, 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...
Regex to get last word from sentence of words separated by “/“? === What would be the appropriate regex to get the last word in these sentences: /hello/world -> world /foo/bar/good -> good /one/two/three/four -> four
0
[ 2, 7953, 1706, 20, 164, 236, 833, 37, 5123, 16, 715, 4196, 34, 13, 1, 118, 1, 60, 800, 3726, 3726, 98, 83, 44, 14, 4593, 7953, 1706, 20, 164, 14, 236, 833, 19, 158, 13453, 45, 13, 118, 11515, 118, 4423, 13, 8, 1, 126, 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...
sql server 2005 pivot not working for my code === When I try to execute the query below, i get error **"Incorrect syntax near the keyword 'convert'"** and I'm not sure where I made mistake. The data-type for all my fields are 'text' so I used convert function for finding totals. select column_date, [red] as red, [blue] as blue, [green] as green, [yellow] as yellow from (select * from table1) as t1 pivot ( sum(convert(int,qty)) For color in ([red], [blue], [green], [yellow]) ) as SumofQuantityforeachcolor Here is the table column_date | color | qty | supplier 1 June 2012 | red | 2 | XY 1 June 2012 | red | 1 | AB 1 June 2012 | blue | 4 | CD 1 June 2012 | blue | 1 | XY 2 June 2012 | yellow| 13 | CD 2 June 2012 | green | 45 | CD 2 June 2012 | blue | 32 | AB 2 June 2012 | red | 37 | XY 2 June 2012 | red | 2 | XY 2 June 2012 | red | 1 | AB 2 June 2012 | blue | 4 | CD 3 June 2012 | red | 1 | AB 3 June 2012 | blue | 4 | CD 3 June 2012 | blue | 1 | XY 3 June 2012 | yellow| 13 | CD 3 June 2012 | green | 45 | CD 3 June 2012 | blue | 32 | AB and so on
0
[ 2, 4444, 255, 8128, 812, 20670, 52, 638, 26, 51, 1797, 800, 3726, 3726, 76, 31, 1131, 20, 15644, 14, 25597, 1021, 15, 31, 164, 7019, 13, 1409, 7, 108, 25345, 22649, 424, 14, 1246, 9587, 13, 22, 1126, 8122, 22, 7, 1409, 17, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
IOS dev .accessing iPad /iPhone contacts list === I’m doing some IOS development for iPad/iPhone and I would like to access my iPad/iPhone saved Contacts in order to store them in my core data application with some additional attributes Is there an sample that explains how I can get them using xcode ? In advance many thanks
0
[ 2, 13, 7760, 9664, 13, 9, 20604, 68, 31, 8240, 13, 118, 49, 7709, 11894, 968, 800, 3726, 3726, 31, 1, 79, 845, 109, 13, 7760, 522, 26, 31, 8240, 118, 49, 7709, 17, 31, 83, 101, 20, 1381, 51, 31, 8240, 118, 49, 7709, 4377, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Integrate elasticSearch with EclipseLink === I have to implement a tool which allows me to search in my database. So, I have been looking for something and I met with with elasticSearch. It supposed this tool works fine with eclipselink, but I could not find any good tutorial or documentation about how to integrate these tools. Please, If you can help me. I will be grateful. Thanks Sarang
0
[ 2, 18399, 931, 9428, 25136, 29, 11652, 6258, 800, 3726, 3726, 31, 57, 20, 8713, 21, 5607, 56, 2965, 55, 20, 2122, 19, 51, 6018, 9, 86, 15, 31, 57, 74, 699, 26, 301, 17, 31, 798, 29, 29, 931, 9428, 25136, 9, 32, 2293, 48, 560...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
OpenGraph object url not working into facebook canvas === I'm trying to set a rails application with a facebook canvas and openGraph objects. But the url of my OG object doesn't work in the facebook canvas. My Object og:url looks like : `https://apps.facebook.com/myapplication/ogtags/object/:id` And should redirect my users to : `https://apps.facebook.com/myapplication/object/:id/action` But actually it returns me a 404 and adds some new facebook arguments at the end of the og:url : `?fb_action_ids=action_ID&fb_action_types=myapplication%3Aaction&fb_source=timeline_og` If I use the same og:url with my website url : `https://www.myapplication.com/ogtags/object/:id` redirection works perfectly fine. After checking the OG Action Debugger of facebook it says : The 'og:title' property should be explicitly provided && Some warning about my og:image size, but strictly nothing about the og:url... I would like to keep my users into the canvas when facebook generates the objects but I'm not finding any way to make my url work with the canvas. Any explanations would be appreciated!
0
[ 2, 368, 9614, 3095, 287, 6362, 52, 638, 77, 9090, 9696, 800, 3726, 3726, 31, 22, 79, 749, 20, 309, 21, 2240, 18, 3010, 29, 21, 9090, 9696, 17, 368, 9614, 3916, 9, 47, 14, 287, 6362, 16, 51, 7096, 3095, 1437, 22, 38, 170, 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...
header file typedef C === If i want that all of my *.c files that has `proto.h` included will use int as int32_t it is correct to write this into an header file called `proto.h`: #ifndef PROTO_H_INCLUDED #define PROTO_H_INCLUDED #ifndef STDINT_H_INCLUDED #define STDINT_H_INCLUDED typedef int int32_t typedef unsigned int uint32_t typedef size_t uint32_t #endif and then include `proto.h` into all the *.c files that needed this "typedef"? Or have to include also `stdint.h` into all my *.c files?
0
[ 2, 157, 106, 3893, 1001, 13862, 272, 800, 3726, 3726, 100, 31, 259, 30, 65, 16, 51, 1637, 9, 150, 6488, 30, 63, 13, 1, 2740, 262, 9, 252, 1, 506, 129, 275, 19, 38, 28, 19, 38, 3125, 1, 38, 32, 25, 4456, 20, 2757, 48, 77, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Adding multiple arrays at once perl === I have about 50 arrays filled with numbers and I have to report out a sum of all those elements for every array so the end result has 50 sums of individual arrays. Is there any shorter way to do it rather than writing different for loop for every array? I am a beginner with perl. Any helpful comments/suggestions would be appreciated. This is my code so far: for( $j = 1 ; $j <= 50 ; $j++ ) { for ( @arr[$j] ) { $sum[$j] += $_; } print $sum[$j]; } Thank you!
0
[ 2, 4721, 1886, 7718, 18, 35, 382, 416, 255, 800, 3726, 3726, 31, 57, 88, 1222, 7718, 18, 1943, 29, 2116, 17, 31, 57, 20, 1330, 70, 21, 3907, 16, 65, 273, 2065, 26, 352, 7718, 86, 14, 241, 829, 63, 1222, 3907, 18, 16, 1359, 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 to pass json response back to client === In my ruby on rails code I want to send back json response to client. Since I am new to ruby on rails I do not know how can I do this. I want to send `error = 1 and success = 0` as json data if data does not save to database and if it successfully saves that it should send `success = 1 and error = 0` Please see my code below here is my controller class ContactsController < ApplicationController def contacts error = 0 success = 1 @contacts = Contact.new(params[:contact]) if @contacts.save redirect_to root_path, :notice => "your post is saved" else render "new" end end end here is my javascript code $('.signupbutton').click(function(e) { e.preventDefault(); var data = $('#updatesBig').serialize(); var url = 'contacts'; console.log(data); $.ajax({ type: 'POST', url: url, data: data, dataType: 'json', success: function(data) { console.log(data); } }); });
0
[ 2, 184, 20, 1477, 487, 528, 1627, 97, 20, 6819, 800, 3726, 3726, 19, 51, 10811, 27, 2240, 18, 1797, 31, 259, 20, 2660, 97, 487, 528, 1627, 20, 6819, 9, 179, 31, 589, 78, 20, 10811, 27, 2240, 18, 31, 107, 52, 143, 184, 92, 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...
Working with tuples in pyton? === I have three lists in python. Let's say list_a list_b list_c Now i am calling a method which also return a list and save into the above lists: For example: lsit_a = get_value(1) list_b = get_value(2) list_c = get_value(3) I think the way i choose to call a same methods with different parameters are not a good option. Would it be possible for us to call these methods within one line. I am beginner in python , but what about the tuple option?
0
[ 2, 638, 29, 2289, 18534, 19, 7103, 444, 60, 800, 3726, 3726, 31, 57, 132, 7227, 19, 20059, 9, 408, 22, 18, 395, 968, 1, 58, 968, 1, 220, 968, 1, 150, 130, 31, 589, 2555, 21, 2109, 56, 67, 788, 21, 968, 17, 2079, 77, 14, 78...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Validate the path of an url === I'm trying to validate an url without domain, just the path and params. The regular expression that I'm using do most of the work, but It has some errors that I dont know how to prevent (I'm pretty noob with regexp): /^(\/([\w#!:.?+=&%@!\-\/])+)$/i The next example are correctly validated /asd.jsp -> true /asd/asd.jsp -> true /asd/asd.jsp?bar=baz&inga=42&quux -> true /asd/asd.jsp?bar=ba z&inga=42&quux -> false But this ones arent correct ulrs and them gives me true too: /asd/asd./jsp -> true :( /asd/asd.jsp/ -> true :( /asd./asd.jsp -> true :( /asd///asd.jsp -> true :( /asd/asd.jsp&bar=baz?inga=42?quux -> true :( Do you recommend to use a function instead of a regex? Very much thanks!
0
[ 2, 7394, 1373, 14, 2013, 16, 40, 287, 6362, 800, 3726, 3726, 31, 22, 79, 749, 20, 7394, 1373, 40, 287, 6362, 366, 4603, 15, 114, 14, 2013, 17, 2258, 79, 18, 9, 14, 1290, 1803, 30, 31, 22, 79, 568, 107, 127, 16, 14, 170, 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...
how do i use ember-data to model this setup om mongodb? === I have an Item that can have many Sections and i store it in mogodb as an Item document with many Section embedded documents. The Item can have a lot of sections. What is the best / recommeded way to do this in ember-data ? When a section is changed, should i be sending the whole Item to the server then working out which section has changed and updating just that section via atomic set OR should i be sending just the section to the server to update ? Problem is i dont want to lock the whole document up when saving the whole thing and will be slow. Also each section can be re-ordered within the Item so contains its order position. And if i am just sending the changed section json to the server, i will potentially have to send a lot of changed section requests to the server. Any one help / advise on this ? thank you Rick
0
[ 2, 184, 107, 31, 275, 13, 19603, 8, 18768, 20, 1061, 48, 18161, 13, 2636, 3521, 5474, 220, 60, 800, 3726, 3726, 31, 57, 40, 9101, 30, 92, 57, 151, 4501, 17, 31, 1718, 32, 19, 1873, 5474, 220, 28, 40, 9101, 4492, 29, 151, 1050,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 asyncronously load a google map in AngularJS? === Now that I have found a way with the help of [Andy Joslin](http://stackoverflow.com/users/1397051/andy-joslin) in this SO [initialize-google-map-in-angularjs](http://stackoverflow.com/questions/11180750/initialize-google-map-in-angularjs), I am looking for a way to asynchronous load a Google Map Object. I found an example of how to do this in the [phonecat](https://github.com/angular/angular-phonecat) project. Notice how the JS files are loaded in this example: [index-async.html](https://github.com/angular/angular-phonecat/blob/00a07064623f1c0df7e03c5e38aa976695b5c899/app/index-async.html) In my Jade Scripts partial that is loaded into my program I tried: script(src='js/lib/angular/angular.js') script(src='js/lib/script/script.min.js') script $script([ 'js/lib/angular/angular-resource.min.js', 'js/lib/jquery/jquery-1.7.2.min.js', 'http://maps.googleapis.com/maps/api/js?key=AIzaSyBTmi_pcXMZtLX5MWFRQgbVEYx-h-pDXO4&sensor=false', 'js/app.js', 'js/services.js', 'js/controllers.js', 'js/filters.js', 'js/directives.js', 'bootstrap/js/bootstrap.min.js' ], function() { // when all is done, execute bootstrap angular application angular.bootstrap(document, ['ofm']); }); When I do this and go to load the map page I get: A call to document.write() from an asycrononously-loaded external script was ignored. This is how Google Maps is being loaded now as a service: 'use strict'; var app = angular.module('ofm.services', []); app.factory('GoogleMaps', function() { var map_id = '#map'; var lat = 46.87916; var lng = -3.32910; var zoom = 15; var map = initialize(map_id, lat, lng, zoom); return map; }); function initialize(map_id, lat, lng, zoom) { var myOptions = { zoom : 8, center : new google.maps.LatLng(lat, lng), mapTypeId : google.maps.MapTypeId.ROADMAP }; return new google.maps.Map($(map_id)[0], myOptions); } It appears that this should be returning a promise from what I recall reading. But this AngularJS is very new to me. Thanks in advance for any suggestions.
0
[ 2, 184, 20, 21, 9507, 19587, 13985, 6305, 21, 8144, 2942, 19, 18270, 728, 18, 60, 800, 3726, 3726, 130, 30, 31, 57, 216, 21, 161, 29, 14, 448, 16, 636, 290, 93, 13366, 1226, 500, 5, 21127, 6903, 25325, 2549, 9990, 9, 960, 118, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
combine two or more conditions in one if statement === Can we combine two or more conditions in one if statement? I know that in C# we can combine two or more conditions in an IF statement. Can we do it in Delphi? I have to check whether the user entered a value for the three Edit controls in the form. Thanks for all the help
0
[ 2, 12287, 81, 54, 91, 2039, 19, 53, 100, 3331, 800, 3726, 3726, 92, 95, 12287, 81, 54, 91, 2039, 19, 53, 100, 3331, 60, 31, 143, 30, 19, 272, 5910, 95, 92, 12287, 81, 54, 91, 2039, 19, 40, 100, 3331, 9, 92, 95, 107, 32, 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...
How can I get the value of a CSS property that the browser does not support? === So I'm looking to get the value of a CSS property that the browser doesn't support. This is something I'd like to use to create a polyfill, but I need to know the value of the property at any given time. [Here's a test file with all the methods I've tried so far][1]. Bascially, given the following: #element { tranform: rotate(2deg); } I'd like to be able to, via JavaScript, get the value `rotate(2deg)` regardless of whether or not the browser supports it. __Is this possible? And if so, is there a preformant way to do it (I will need to do this a lot in older browsers)?__ Some preferences if it is possible: - Would prefer to do this from an element, instead of looping through a stylesheet's rules - Need to support IE 7 at least (or have methods to do so) - Shouldn't take 2 seconds to calculate. I'd like something that will preform decently [1]: http://jsfiddle.net/fnF2V/2/
0
[ 2, 184, 92, 31, 164, 14, 1923, 16, 21, 272, 18, 18, 1354, 30, 14, 16495, 630, 52, 555, 60, 800, 3726, 3726, 86, 31, 22, 79, 699, 20, 164, 14, 1923, 16, 21, 272, 18, 18, 1354, 30, 14, 16495, 1437, 22, 38, 555, 9, 48, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to get notification (broadcast, intent) on browser download completion in android === Is there a way to be notified (via some broadcast or intent) on a completion of a download initiated by user from web browser and other apps? (like email client, bluetooth, etc). I need this as I want to perform some action on each newly file downloaded by the user. I tried to use broadcast receiver with intent filter set to DownloadManager.ACTION_DOWNLOAD_COMPLETE action, but this way I get notified only about downloads from my own app. Thanks!
0
[ 2, 184, 20, 164, 52, 4634, 13, 5, 24162, 15, 6936, 6, 27, 16495, 7121, 5392, 19, 13005, 800, 3726, 3726, 25, 80, 21, 161, 20, 44, 22904, 13, 5, 5034, 109, 1992, 54, 6936, 6, 27, 21, 5392, 16, 21, 7121, 6900, 34, 4155, 37, 27...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 posts not working with flask-restless, where curl -H posts are === I have a flask application installed, running the flask-restless API the following command executes successfully: curl -H "Content-type: application/json" -X POST http://127.0.0.15000/api/menu -d '{"name":"Hello Data"}' but when attempting to do the same thing with javascript, it fails. I've traced it down to the problem line of code in the flask-restless api, and added a debug statement that prints out request.data, since it relies on that. The jquery query that got closest to working was: $.ajax({ url:'api/menu', type:"POST", contentType:"binary/octet-stream", data:{name:'foo'}}); for which request.data gets assigned "name=foo", when it should be {'name':'foo'} I have tried every permutation of (contentType: "application/json", dataType: "json") for content type application/json, binary/octet-stream, an in all other cases, data is just blank, and request.form has an immutable dict. Is there something obvious that I'm missing?
0
[ 2, 487, 8190, 93, 9868, 52, 638, 29, 28972, 8, 11466, 923, 15, 113, 14320, 13, 8, 252, 9868, 50, 800, 3726, 3726, 31, 57, 21, 28972, 3010, 4066, 15, 946, 14, 28972, 8, 11466, 923, 21, 2159, 14, 249, 1202, 15644, 18, 3673, 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...
DOM: Firing existing keyboard event? initEvent? dispatchEvent? Mostly completed === I'm not looking to support (X)HTML code copied by Firefox, just plain text so I'm looking to copy the pasted text without the code by using textContent on an invisible layer AFTER the keyboard event has triggered. Unfortunately the way the methods are described is ambiguous and other questions have been vague. Since I'm already handling an existing event I was under the understanding that initEvent(e.type,false,true); should work and it does in every browser except Firefox. I came across dispatchEvent though everything I come across suggests creating a new event though again I am already handling an existing event. The goal is simple: trigger the keyboard event (the user pressing CTRL+v), immediately after firing the event the text that the user has pasted is alerted confirming the script will be able to work with the pasted text (not accessible in the clipboard though accessible after the event has fired) so I can work with it. **example.xhtml** <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Event Bug</title> <script type="application/javascript"> //<![CDATA[ function init() { if (document.getElementById('editor')) { document.getElementById('editor').onkeydown = function(e) {event_onkeydown(e);} } } function event_onkeydown(e) { if (e.ctrlKey && e.keyCode==86) {event_onpaste(e);}//CTRL+v } function event_onpaste(e) { if (e.ctrlKey && e.keyCode==86) {//alert(e.type); var r = document.getElementById('editor'); var s = window.getSelection(); var an = s.anchorNode; var fn = s.focusNode; var sos = s.getRangeAt(0).startOffset; var fos = s.getRangeAt(0).endOffset; if (!document.getElementById('editor_paste')) { var p = document.getElementById('editor_paste'); var h = document.createElement('div'); h.setAttribute('contenteditable','true'); h.setAttribute('id','editor_paste'); h.setAttribute('style','border: #f00 solid 1px; height: 100px;'); var t = document.createTextNode(''); h.appendChild(t); r.parentNode.insertBefore(h,r.nextSibling); var p = document.getElementById('editor_paste'); p.focus(); window.getSelection().selectAllChildren(p); window.getSelection().collapseToStart(); try {e.initEvent(e.type,false,true);} catch (err) {alert(err);} alert('p.textContent = '+p.textContent); } } } window.onload = function() { init(); } //]]> </script> <style type="text/css"> p {font-size: 22px;} </style> </head> <body> <div contenteditable="true" id="editor" style="border: #00f solid 1px;"> <p>Paragraph one.</p> <p>Paragraph two.</p> </div> </body> </html> Do not edit my post, if you have a question or disagreement ask first.
0
[ 2, 11859, 45, 7139, 3149, 8896, 807, 60, 19, 2119, 6645, 60, 14226, 4943, 38, 60, 1555, 1066, 800, 3726, 3726, 31, 22, 79, 52, 699, 20, 555, 13, 5, 396, 6, 15895, 1797, 18225, 34, 535, 18219, 15, 114, 3748, 1854, 86, 31, 22, 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 to access layer, by name in Devil(openil) when loading .PSD? === I found this function but it clears all layers except background. ilActiveLayer(0); std::wcout << "\nload=" << ilLoad(IL_PSD, "monkey.psd"); std::wcout << "\nlayer=" << ilActiveLayer(1); std::wcout << "\nsave=" << ilSave(IL_PNG, "image.png"); I need like this: lLoad(IL_PSD, "monkey.psd"); get_layer("house1"); disable();// visibility get_layer("house2"); enable();// visibility ilSave(IL_PNG, "image.png"); Is it possible?
0
[ 2, 184, 20, 1381, 5385, 15, 34, 204, 19, 5462, 5, 10157, 947, 6, 76, 12797, 13, 9, 1919, 43, 60, 800, 3726, 3726, 31, 216, 48, 1990, 47, 32, 1207, 18, 65, 9124, 1613, 2395, 9, 6317, 7889, 15187, 5, 387, 6, 73, 354, 43, 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...
Trigger PHP with button onClick === I want to enable users to remove a file from the server using the click of a button. <button onclick="......">Remove file</button>" The removal of a file is possible through PHP's unlink($filename) function. Can I somehow trigger the PHP code from the button onclick? Sorry if question is stupid, I'm new to this...
0
[ 2, 7286, 13, 26120, 29, 5167, 27, 150, 10129, 800, 3726, 3726, 31, 259, 20, 9240, 3878, 20, 4681, 21, 3893, 37, 14, 8128, 568, 14, 10840, 16, 21, 5167, 9, 13, 1, 811, 444, 27, 150, 10129, 3726, 7, 9, 9, 9, 9, 9, 9, 7, 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...
Uncaught Refernce Error with inline javascript === I have the following function: if ($(this).find('#sel').length == 0) { var before = $(this).text(); var title_id = $(this).parent().attr('id'); $(this).html("<select id='sel' onchange='selectdone(this, title_id=title_id)> ...</select>"); } From this I get `Uncaught ReferenceError: title_id is not defined`. Why isn't the `onchange` function inside on line 4 not picking up on the variable that I've defined previously? How would I rewrite the above correctly?
0
[ 2, 16061, 12647, 5017, 6175, 7019, 29, 19, 1143, 8247, 8741, 800, 3726, 3726, 31, 57, 14, 249, 1990, 45, 100, 13, 5, 4403, 5, 1565, 6, 9, 19811, 5, 22, 5910, 3434, 22, 6, 9, 6325, 800, 3726, 713, 6, 13, 1, 4033, 115, 800, 55...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
read mails in my own android app === I have do an android application, and now, this application needs to read emails. I found this code: protected ArrayList<Mail> doInBackground(Void... params) { ArrayList<Mail> mails = new ArrayList<Mail>(32); boolean finish = false; try { String direcCompleta = URI_PREFIX + email; Uri a = Uri.parse(direcCompleta); Cursor cCursor = resolver.query(a, null, null , null, null); while (cCursor.moveToNext() && (! finish)) { finish = fromTime.before(new Date(cCursor.getLong(1))); if (! finish){ String conv_id = cCursor.getString(cCursor.getColumnIndex("_id")); Uri uri = Uri.parse(URI_PREFIX + email + "/" + conv_id + "/messages"); Cursor mCursor = resolver.query(uri, MESSAGE_PROJECTION, null, null, null); while (mCursor.moveToNext() && (! finish)){ long mtime = mCursor.getLong(4); finish = fromTime.before(new Date(mtime)); if (! finish){ mails.add(new Mail(mCursor.getString(0), mCursor.getString(2), mCursor.getString(1), mCursor.getString(4), mtime)); } } } } } catch (Exception ex){ Log.e("GmailReadApp", ex.toString()); mails.add(new Mail(null, null, ex.toString(), ex.toString(), 0)); } return mails; } But cCursor is null. I have my mail account in app: "Email", because i work with android sdk, and it doesn´t have app: "GMAIL". And android sdk doesn´t have market. Somebody can help me please? thanks. (no matter if it's for gmail, yahoo, hotmail,....)
0
[ 2, 1302, 4216, 18, 19, 51, 258, 13005, 4865, 800, 3726, 3726, 31, 57, 107, 40, 13005, 3010, 15, 17, 130, 15, 48, 3010, 2274, 20, 1302, 8517, 18, 9, 31, 216, 48, 1797, 45, 3803, 7718, 5739, 1, 8079, 1, 107, 108, 1958, 8810, 5, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to design a UI in which QT can be easily replaced with any other library === I am about to start designing a UI. The UI is expected to be complex and will have several screens one of which will be a text editor. The application is in C++ and in order to leverage some existing functionality, I have decided to use Qt for the UI. However, I want to be able to write the UI in such a way that it is easy to replace Qt with any other UI library at a later point - or even use different libraries for different platforms. I am leaning towards containing the QT objects in my own classes and using my classes throughout. Is this a good design? I preferred this as opposed to sub-classing(which is recommended by Qt) as subclassing seems to be a very rigid binding. However, this means that I will have to write a wrapper for every method that Qt exposes and I will also not be able to use QtCreator. What do you think? Could you describe the advantages/disadvantages of the choice of method. It would be great if you could point me to any examples or to any good design principles.
0
[ 2, 184, 20, 704, 21, 13, 5661, 19, 56, 2593, 38, 92, 44, 2351, 1141, 29, 186, 89, 1248, 800, 3726, 3726, 31, 589, 88, 20, 799, 15026, 21, 13, 5661, 9, 14, 13, 5661, 25, 1727, 20, 44, 1502, 17, 129, 57, 238, 14236, 53, 16, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Meta Tag refresh not working in chrome === Below is my code .. In IE and Firefox it works fine .. i.e after 10seconds it gets redirected to www.google.com .. but the same code doesn't work in Chrome <html style="display: block; "> <head> <title>Client App- Log In</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Cache-Control" content="no-cache"> <meta http-equiv="Pragma" content="no-cache"> <meta http-equiv="Expires" content="0"> <meta http-equiv="refresh" content="10; url=http://www.google.com"> <script language="JavaScript"> function noBack(){window.history.forward()} noBack(); window.onload=noBack; window.onpageshow=function(evt){if(evt.persisted)noBack()} window.onunload=function(){void(0)} </script> <style> html{display:none;} </style> <script> if (self ==top){ document.documentElement.style.display='block'; }else{ top.location = self.location; } </script> </head> <body> <table width="95%" border="0" cellspacing="1" cellpadding="0"> <tbody><tr align="center" valign="top"> <td> <p class="body-page-header">Log In</p> <p class="body-page-subheader">Welcome to My APP.</p> <p class="body-normal-text">Please log in using your Login ID and Password</p> <form action="" method="POST" autocomplete="off"> <table border="0" cellspacing="0" cellpadding="2" align="center"> <tbody><tr> <td align="right"><span class="body-label">Login ID:</span></td> <td align="left"><input type="text" name="login"></td> </tr> <tr> <td align="right"><span class="body-label">Password:</span></td> <td align="left"><input type="password" name="password"></td> </tr> <tr> <td>&nbsp;</td> <td align="left"><input type="submit" name="Submit" value="Submit"></td> </tr> </tbody></table> </form> </td> </tr> </tbody></table> </body></html>
0
[ 2, 7618, 3383, 24905, 52, 638, 19, 13, 12985, 800, 3726, 3726, 1021, 25, 51, 1797, 13, 9, 9, 19, 13, 660, 17, 535, 18219, 32, 693, 1123, 13, 9, 9, 31, 9, 62, 75, 332, 5007, 18, 32, 3049, 302, 14147, 20, 13, 6483, 9, 16111, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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/MySQL - Prepared Statements - Is the usuage in this example correct? === I am creating an part of a website that deals with confirmation of a user subscribing to a newsletter. I am having trouble with the usage on prepared statements when selecting data. This is basically a check against information that was sent to the user in an email and retrieved by getting the info from the entered url. So there is a string or 'key' in the database that is sent to the user in an email as a link to a page on my site with the users details appended to the url. The script checks to see if these keys match The problem is that when I run the script it will trigger an error. This says "wrong key". The key in the database (`$dbkey`) is the same as the key provided in the email link. which is the same key that is made into `$key`. The problem though, is that in the while loop an error is being triggered and `$dbkey `is not being passed the data from the database : Notice: Trying to get property of non-object in C:\wamp\www\site\script.php on line 35 The sql statement when run in phpmyadmin does return the correct result set. Here is the code: $stmt = $link->prepare("SELECT id, dbkey FROM specials WHERE id = ?"); if (!$stmt) { $error = "{$link->errno} : {$link->error}"; include "$docRoot/html/main/error.html.php"; exit(); } if (!$stmt->bind_param("i", $confirm)) { $error = "{$stmt->errno} : {$stmt->error}"; include "$docRoot/html/main/error.html.php"; exit(); } if (!$stmt->execute()) { $error = "{$stmt->errno} : {$stmt->error}"; include "$docRoot/html/main/error.html.php"; exit(); } $stmt->store_result(); if ($stmt->num_rows) { while ($row = $stmt->fetch()) { $dbKey = $row->dbkey; } $key= sanitize($_GET['key']); if ($dbKey !== $key) { echo 'wrong key'; } } else { echo 'not in database'; } I would like to say that all other scripts connecting to the database in this manner do work, but this was the first time I have used prepared statements to select data. I wonder if this problem is caused by an error in my coding, hence the reason why I have posted this question. If anyone could spot where I have gone wrong here, or possibly possibly provide some advice on how I would debug the code to see what exactly the error is that would be greatly appreciated! Thanks!! EDIT: The problem simply is the `$key` returns a string but `$dbkey` returns empty
0
[ 2, 13, 26120, 118, 915, 18, 22402, 13, 8, 3268, 9015, 13, 8, 25, 14, 182, 291, 1303, 19, 48, 823, 4456, 60, 800, 3726, 3726, 31, 589, 2936, 40, 141, 16, 21, 2271, 30, 10342, 29, 15939, 16, 21, 4155, 972, 28723, 20, 21, 17782, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Calling draw method external to the ViewController === I'm trying to setup a method in an external class that looks like the following: myClass.m - (void)drawSomeStuffInContext:(CGContextRef)context atStartingPoint:(CGPoint *)coords { //draw some stuff (ignoring coords for now) CGContextSetStrokeColorWithColor(context, [UIColor blackColor].CGColor); CGContextSetLineWidth(context, 1.0f); CGContextMoveToPoint(context, 10, 10); CGContextAddLineToPoint(context, 100, 50); CGContextStrokePath(context); } viewController.m - (void)viewDidLoad { CGContextRef currentContext = UIGraphicsGetCurrentContext(); CGPoint startCoords = CGPointMake(100.0, 100.0); [[myClass alloc] drawSomeStuffInContext:currentContext atStartingPoint:startCoords]; } The project builds and runs but I receive the following errors in the log with nothing drawn: [...] <Error>: CGContextSetStrokeColorWithColor: invalid context 0x0 [...] <Error>: CGContextSetLineWidth: invalid context 0x0 [...] <Error>: CGContextMoveToPoint: invalid context 0x0 [...] <Error>: CGContextAddLineToPoint: invalid context 0x0 [...] <Error>: CGContextDrawPath: invalid context 0x0 I've been scouring the web for a similar question/example with no luck. Are there different/additional parameters that are required? Should I be calling the draw method from somewhere other than `viewDidLoad`? Advice is much appreciated!
0
[ 2, 2555, 2003, 2109, 4886, 20, 14, 1418, 12898, 1252, 800, 3726, 3726, 31, 22, 79, 749, 20, 18161, 21, 2109, 19, 40, 4886, 718, 30, 1879, 101, 14, 249, 45, 51, 1898, 9, 79, 13, 8, 13, 5, 2625, 1340, 6, 43, 12404, 3220, 384, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
User-defined function similar to squeeze() === So I'm trying to do the practice exercises in K&R. It wants me to make a function similar to squeeze, I don't get whats wrong with it. I desk checked it already. I don't want a solution found on the net, I wanna understand why my code wont work. //removes characters that are present in both strings #include <stdio.h> #include <conio.h> #include <stdlib.h> #define MAXLTR 15 void removesame(char s1[],char s2[]); int main(void) { char string1[MAXLTR],string2[MAXLTR]; printf("Enter a string: "); scanf("\n%s",&string1); printf("\nEnter the letters/words to be removed: "); scanf("\n%s",&string2); removesame(string1,string2); printf("\nFinal output: %s",string1); getch(); } void removesame(char s1[],char s2[]) { char temp[MAXLTR]; int arraycntr,comparecntr; for(comparecntr = 0; comparecntr < MAXLTR; comparecntr++) { for(arraycntr = 0;arraycntr < MAXLTR;arraycntr++) { if(s1[arraycntr] == s2[arraycntr]) s1[arraycntr] == '\t'; } } comparecntr = 0; for(arraycntr = 0; arraycntr < MAXLTR; arraycntr++) { if(s1[arraycntr] != '\t') { temp[arraycntr] = s1[comparecntr]; ++comparecntr; } } for(arraycntr = 0; arraycntr < MAXLTR; arraycntr++) s1[arraycntr] = '\0'; for(arraycntr = 0;arraycntr < MAXLTR; arraycntr++) s1[arraycntr] = temp[arraycntr]; }
0
[ 2, 4155, 8, 13439, 1990, 835, 20, 10202, 5, 6, 800, 3726, 3726, 86, 31, 22, 79, 749, 20, 107, 14, 1345, 12612, 19, 680, 1569, 139, 9, 32, 2846, 55, 20, 233, 21, 1990, 835, 20, 10202, 15, 31, 221, 22, 38, 164, 98, 18, 1389, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Visual Studio 2010 SP1 buesn't build when path to project long === I have solution with *.vdproj and use Visual Studio 2010 SP1. When path to solution long `d:/so/long/path/for/my/solution/my_project/trunk/` visual studio fails on building, but I don't find any errors in error log or output: ========== Rebuild All: 4 succeeded, 1 failed, 0 skipped ========== When I build project withour *.vdproj from msbuild - build complete without errors. When I copy solution to short paht `d:/my_proj/` and build from visual studio - build complete without errors. Problem reproduced in Win Xp x32 and Win 2008 R2 x64 and my project writen on c# 4.0. And I can't build solution from msbuild becouse I use *.vdproj project. I can't change path to project. How I can fix my problem?
0
[ 2, 3458, 1120, 498, 3782, 165, 3183, 160, 103, 22, 38, 1895, 76, 2013, 20, 669, 175, 800, 3726, 3726, 31, 57, 4295, 29, 1637, 9, 710, 43, 2740, 728, 17, 275, 3458, 1120, 498, 3782, 165, 9, 76, 2013, 20, 4295, 175, 13, 1, 43, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 set the Databse connection string in Web.config file in Asp.Net MVC2 === > Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: Sections must only appear once per config file. See the help topic <location> for exceptions. <connectionStrings> <add name="testEntities" connectionString="metadata=res://*/Models.Model1.csdl|res://*/Models.Model1.ssdl|res://*/Models.Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=ROCKER\SQLSERVER2008;Initial Catalog=test;User ID=sunny;Password=sunnyconnected;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" /> <add name="DbConnection" connectionString="Data Source=Test\sqlserver2008;database=test;User ID=sunny;Password=sunnyconnected" providerName="System.Data.SqlClient"/> </connectionStrings> > This Connection String Set in Root Web.config File then it give runtime Above Mention Error.How it Can be Handle And Set in Asp.Net MVC2.
0
[ 2, 184, 20, 309, 14, 1054, 220, 870, 2760, 3724, 19, 2741, 9, 14093, 2816, 3893, 19, 28, 306, 9, 2328, 307, 8990, 135, 800, 3726, 3726, 13, 1, 8091, 7019, 5318, 45, 40, 7019, 2437, 112, 14, 5511, 16, 21, 8091, 3893, 1390, 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...
Create Invoice Method is not working perfectly of Magento API === I am trying to create sales order Invoice using Magento API in android application using XMLRPC.I am using the method "**sales_order_invoice.create**" for creating invoice.This method is giving me Invoice Id in the response for given quantity as mention in [magento wiki][1].But the problem is that the Invoice qty isn't updated on magento store.Other thing is Order status is changing to Processing which is correct and the entry of created invoice is also present in invoice list of store but It is displaying the paid amount as **$0.0** which is not correct. I don't know if I need to call another method before calling **sales_order_invoice.create** or is there any problem in the method?? Below is some part of my code for calling method: import java.util.HashMap; import org.xmlrpc.android.XMLRPCClient; import org.xmlrpc.android.XMLRPCException; import android.app.Activity; import android.os.Bundle; import android.util.Log; public class MagentoStore extends Activity { private XMLRPCClient client; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); String sessionId = ""; client = new XMLRPCClient("http://www.mystore.com/index.php/api/xmlrpc"); try { sessionId = (String)client.call("login", "tester", "tester"); Log.d("MY_XMLRPC_SUCCESS_SESSION_ID", sessionId); } catch (XMLRPCException e) { Log.d("MY_XMLRPCException_MSG", e.getMessage()); } Object salesorderInfo = null; Object[] methodParams = new Object[]{"100000028"}; Object[] callParams = new Object[]{sessionId,"sales_order.info", methodParams}; String salesorderinvoice= null; try { salesorderInfo = (Object)client.callEx("call",callParams); HashMap map = (HashMap)salesorderInfo; Object[]items=(Object[])map.get("items"); for(Object item :items) { HashMap itemlist=(HashMap)item; String item_id=(String)itemlist.get("item_id"); int itemids=Integer.parseInt(item_id); String base_price=(String)itemlist.get("base_price"); if(base_price.equals("0.0000")) { continue; } String name=(String)itemlist.get("name"); Double qty=1.0; String qty_ordered =(String)itemlist.get("qty_ordered"); String qty_invoiced=(String)itemlist.get("qty_invoiced"); Object[] methodParams1 = new Object[]{"100000028",itemids,qty}; Object[] callParams1 = new Object[]{sessionId,"sales_order_invoice.create", methodParams1}; salesorderinvoice= (String)client.callEx("call",callParams1); } } catch (Exception e) { Log.d("APP_INFO", "Exception: " + e.getMessage()); } } } Anyone have any Idea?? Thanks in advance [1]:http://www.magentocommerce.com/api/soap/sales/salesOrderInvoice/sales_order_invoice.create.html
0
[ 2, 1600, 19, 13379, 2109, 25, 52, 638, 5759, 16, 4723, 17050, 21, 2159, 800, 3726, 3726, 31, 589, 749, 20, 1600, 2598, 389, 19, 13379, 568, 4723, 17050, 21, 2159, 19, 13005, 3010, 568, 23504, 139, 5779, 9, 49, 589, 568, 14, 2109, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 interpret JNI errors in Android Native code ? What is meaning of this error? === My Android APP crashes inside JNI code and LogCat shows following output, what could be possible reason of this failure? How do I manage Native memory inside JNI ? 07-16 11:51:19.500: W/dalvikvm(15869): threadid=4: spin on suspend #1 threadid=3 (pcf=0) 07-16 11:51:20.242: W/dalvikvm(15869): threadid=4: spin on suspend #2 threadid=3 (pcf=0) 07-16 11:51:20.242: I/dalvikvm(15869): "Signal Catcher" daemon prio=5 tid=4 RUNNABLE 07-16 11:51:20.242: I/dalvikvm(15869): | group="system" sCount=0 dsCount=0 obj=0x405115e8 self=0x159898 07-16 11:51:20.242: I/dalvikvm(15869): | sysTid=15873 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=1575600 07-16 11:51:20.242: I/dalvikvm(15869): | schedstat=( 1251222 701905 25 ) 07-16 11:51:20.242: I/dalvikvm(15869): at dalvik.system.NativeStart.run(Native Method) 07-16 11:51:20.242: I/dalvikvm(15869): "GC" daemon prio=5 tid=3 RUNNABLE 07-16 11:51:20.242: I/dalvikvm(15869): | group="system" sCount=1 dsCount=0 obj=0x40511540 self=0x159d70 07-16 11:51:20.242: I/dalvikvm(15869): | sysTid=15872 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=1422192 07-16 11:51:20.242: I/dalvikvm(15869): | schedstat=( 149871827 1162109373 98 ) 07-16 11:51:20.281: I/dalvikvm(15869): at dalvik.system.NativeStart.run(Native Method) 07-16 11:51:21.054: W/dalvikvm(15869): threadid=4: spin on suspend #3 threadid=3 (pcf=0) 07-16 11:51:21.054: I/dalvikvm(15869): "Signal Catcher" daemon prio=5 tid=4 RUNNABLE 07-16 11:51:21.054: I/dalvikvm(15869): | group="system" sCount=0 dsCount=0 obj=0x405115e8 self=0x159898 07-16 11:51:21.054: I/dalvikvm(15869): | sysTid=15873 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=1575600 07-16 11:51:21.054: I/dalvikvm(15869): | schedstat=( 2502444 65551756 35 ) 07-16 11:51:21.054: I/dalvikvm(15869): at dalvik.system.NativeStart.run(Native Method) 07-16 11:51:21.054: I/dalvikvm(15869): "GC" daemon prio=5 tid=3 RUNNABLE 07-16 11:51:21.054: I/dalvikvm(15869): | group="system" sCount=1 dsCount=0 obj=0x40511540 self=0x159d70 07-16 11:51:21.054: I/dalvikvm(15869): | sysTid=15872 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=1422192 07-16 11:51:21.054: I/dalvikvm(15869): | schedstat=( 149871827 1162109373 98 ) 07-16 11:51:21.117: I/dalvikvm(15869): at dalvik.system.NativeStart.run(Native Method) 07-16 11:51:21.914: W/dalvikvm(15869): threadid=4: spin on suspend #4 threadid=3 (pcf=0) 07-16 11:51:21.914: I/dalvikvm(15869): "Signal Catcher" daemon prio=5 tid=4 RUNNABLE 07-16 11:51:21.914: I/dalvikvm(15869): | group="system" sCount=0 dsCount=0 obj=0x405115e8 self=0x159898 07-16 11:51:21.914: I/dalvikvm(15869): | sysTid=15873 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=1575600 07-16 11:51:21.914: I/dalvikvm(15869): | schedstat=( 3479006 203796386 45 ) 07-16 11:51:21.914: I/dalvikvm(15869): at dalvik.system.NativeStart.run(Native Method) 07-16 11:51:21.914: I/dalvikvm(15869): "GC" daemon prio=5 tid=3 RUNNABLE 07-16 11:51:21.914: I/dalvikvm(15869): | group="system" sCount=1 dsCount=0 obj=0x40511540 self=0x159d70 07-16 11:51:21.914: I/dalvikvm(15869): | sysTid=15872 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=1422192 07-16 11:51:21.914: I/dalvikvm(15869): | schedstat=( 149871827 1162109373 98 ) 07-16 11:51:22.015: I/dalvikvm(15869): at dalvik.system.NativeStart.run(Native Method) 07-16 11:51:22.796: W/dalvikvm(15869): threadid=4: spin on suspend #5 threadid=3 (pcf=0) 07-16 11:51:22.796: I/dalvikvm(15869): "Signal Catcher" daemon prio=5 tid=4 RUNNABLE 07-16 11:51:22.796: I/dalvikvm(15869): | group="system" sCount=0 dsCount=0 obj=0x405115e8 self=0x159898 07-16 11:51:22.796: I/dalvikvm(15869): | sysTid=15873 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=1575600 07-16 11:51:22.804: I/dalvikvm(15869): | schedstat=( 4821778 368194582 56 ) 07-16 11:51:22.804: I/dalvikvm(15869): at dalvik.system.NativeStart.run(Native Method) 07-16 11:51:22.804: I/dalvikvm(15869): "GC" daemon prio=5 tid=3 RUNNABLE 07-16 11:51:22.804: I/dalvikvm(15869): | group="system" sCount=1 dsCount=0 obj=0x40511540 self=0x159d70 07-16 11:51:22.804: I/dalvikvm(15869): | sysTid=15872 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=1422192 07-16 11:51:22.804: I/dalvikvm(15869): | schedstat=( 149871827 1162109373 98 ) 07-16 11:51:22.867: I/dalvikvm(15869): at dalvik.system.NativeStart.run(Native Method) 07-16 11:51:23.617: W/dalvikvm(15869): threadid=4: spin on suspend #6 threadid=3 (pcf=0) 07-16 11:51:23.617: I/dalvikvm(15869): "Signal Catcher" daemon prio=5 tid=4 RUNNABLE 07-16 11:51:23.617: I/dalvikvm(15869): | group="system" sCount=0 dsCount=0 obj=0x405115e8 self=0x159898 07-16 11:51:23.617: I/dalvikvm(15869): | sysTid=15873 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=1575600 07-16 11:51:23.617: I/dalvikvm(15869): | schedstat=( 5706788 437561037 64 ) 07-16 11:51:23.617: I/dalvikvm(15869): at dalvik.system.NativeStart.run(Native Method) 07-16 11:51:23.617: I/dalvikvm(15869): "GC" daemon prio=5 tid=3 RUNNABLE 07-16 11:51:23.617: I/dalvikvm(15869): | group="system" sCount=1 dsCount=0 obj=0x40511540 self=0x159d70 07-16 11:51:23.617: I/dalvikvm(15869): | sysTid=15872 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=1422192 07-16 11:51:23.617: I/dalvikvm(15869): | schedstat=( 149871827 1162109373 98 ) 07-16 11:51:23.695: I/dalvikvm(15869): at dalvik.system.NativeStart.run(Native Method) 07-16 11:51:24.445: W/dalvikvm(15869): threadid=4: spin on suspend #7 threadid=3 (pcf=0) 07-16 11:51:24.445: I/dalvikvm(15869): "Signal Catcher" daemon prio=5 tid=4 RUNNABLE 07-16 11:51:24.445: I/dalvikvm(15869): | group="system" sCount=0 dsCount=0 obj=0x405115e8 self=0x159898 07-16 11:51:24.445: I/dalvikvm(15869): | sysTid=15873 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=1575600 07-16 11:51:24.445: I/dalvikvm(15869): | schedstat=( 6744387 515899659 74 ) 07-16 11:51:24.445: I/dalvikvm(15869): at dalvik.system.NativeStart.run(Native Method) 07-16 11:51:24.445: I/dalvikvm(15869): "GC" daemon prio=5 tid=3 RUNNABLE 07-16 11:51:24.445: I/dalvikvm(15869): | group="system" sCount=1 dsCount=0 obj=0x40511540 self=0x159d70 07-16 11:51:24.445: I/dalvikvm(15869): | sysTid=15872 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=1422192 07-16 11:51:24.445: I/dalvikvm(15869): | schedstat=( 149871827 1162109373 98 ) 07-16 11:51:24.445: I/dalvikvm(15869): at dalvik.system.NativeStart.run(Native Method) 07-16 11:51:25.195: W/dalvikvm(15869): threadid=4: spin on suspend #8 threadid=3 (pcf=0) 07-16 11:51:25.195: I/dalvikvm(15869): "Signal Catcher" daemon prio=5 tid=4 RUNNABLE 07-16 11:51:25.195: I/dalvikvm(15869): | group="system" sCount=0 dsCount=0 obj=0x405115e8 self=0x159898 07-16 11:51:25.195: I/dalvikvm(15869): | sysTid=15873 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=1575600 07-16 11:51:25.195: I/dalvikvm(15869): | schedstat=( 7751467 517486574 82 ) 07-16 11:51:25.195: I/dalvikvm(15869): at dalvik.system.NativeStart.run(Native Method) 07-16 11:51:25.195: I/dalvikvm(15869): "GC" daemon prio=5 tid=3 RUNNABLE 07-16 11:51:25.195: I/dalvikvm(15869): | group="system" sCount=1 dsCount=0 obj=0x40511540 self=0x159d70 07-16 11:51:25.195: I/dalvikvm(15869): | sysTid=15872 nice=0 sched=0/0 cgrp=[fopen-error:2] handle=1422192 07-16 11:51:25.195: I/dalvikvm(15869): | schedstat=( 149871827 1162109373 98 ) 07-16 11:51:25.203: I/dalvikvm(15869): at dalvik.system.NativeStart.run(Native Method)
0
[ 2, 184, 20, 11584, 487, 889, 11908, 19, 13005, 1275, 1797, 13, 60, 98, 25, 1813, 16, 48, 7019, 60, 800, 3726, 3726, 51, 13005, 4865, 21563, 572, 487, 889, 1797, 17, 6738, 5782, 1285, 249, 5196, 15, 98, 110, 44, 938, 1215, 16, 48...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Qt How to create icons (close ,resize min) with look and feel of windos 7/vista? === is there some framework or tutorial on how to create icons that mimics the look and feel of windows 7 / vista like in the image i linked , please look on the small icons in the top right (close ,resize min) and NOT in the windows . [http://cdn.blogsdna.com/wp-content/uploads/2009/02/windows-7-beta-icon-pack.png][1] [1]: http://cdn.blogsdna.com/wp-content/uploads/2009/02/windows-7-beta-icon-pack.png
0
[ 2, 2593, 38, 184, 20, 1600, 9801, 18, 13, 5, 14330, 13, 15, 99, 10454, 4232, 6, 29, 361, 17, 583, 16, 1511, 759, 13, 9816, 22034, 60, 800, 3726, 3726, 25, 80, 109, 6596, 54, 29724, 27, 184, 20, 1600, 9801, 18, 30, 13567, 18, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
CSS Precedence & Wordpress === So, I've been trying to visually integrate my [Wordpress site](http://bytecraft.org/) and PunBB forum for the past few days, and I've hit a wall with the CSS. Currently, I've got the forum wedged in between the header and footer from Wordpress, but the CSS style sheets from Wordpress seem to be conflicting with the sheets from PunBB in a way a didn't expect. As per recommendations found here on Stack Overflow, I went ahead and took advantage of the fact that everything in from the forum falls within a `<div id="mid-inner">` and added `#mid-inner` to every CSS rule in the forum style sheet, giving this: <!-- language: lang-css --> #mid-inner body { background:url(../bg.png) repeat-x #6a0a0a;/*#213f53;*/ color: #222; } #mid-inner a:focus { outline: 0; } #mid-inner a:link, #mid-inner a:visited, #mid-inner .js_link { color: #387ca6; text-decoration: none; } #mid-inner a:hover, #mid-inner a:active, #mid-inner a:focus { color: #CD0021; text-decoration: underline; } However, this didn't work out so well; for some reason, the Wordpress theme insists on overriding the CSS of the PunBB theme, and I can't figure out what I'm missing—probably something to do with precedence though. Here's an quick album of the Wordpress theme, the PunBB theme, and the messed-up hybrid theme: [Imgur link](http://imgur.com/a/txia7). Anyway, I'm sure I'm forgetting something, but the Wordpress Stack Exchange has been much help yet. Let me know if I need to add more information, and thanks in advance!
0
[ 2, 272, 18, 18, 24720, 279, 833, 5890, 800, 3726, 3726, 86, 15, 31, 22, 195, 74, 749, 20, 20747, 18399, 51, 636, 9587, 5890, 689, 500, 5, 21127, 6903, 23246, 7856, 9, 5583, 118, 6, 17, 11582, 3490, 5691, 26, 14, 640, 310, 509, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Monitoring AJAX heavy Web Application using Nagios === We have a (AJAX heavy) web application hosted in cloud across servers and we need to monitor the availability of this service. Since we plan to use Nagios for some other monitoring tasks, we decided to use Nagios for web application monitoring too. I came across three such solutions: 1. Webinject: I don't feel like using this. Project not under active development. It was last released in Jan 2006. I can't see any support/help available. Also I suspect how will it behave with Ajax. 2. Cucumber-Nagios: I tried using this. It involves many Ruby components and found that you have to have in-depth knowledge of Ruby platform to make all these components work together. I am not a Ruby guy and having tough time making all these components work together. Also even this project is not under active development and I don't see support/help options available. I posted a bug 4 days back and don't see any response yet. 3. Selenium plugin for Nagios: Haven't tried it yet. Will try now. Does anyone have any experience using this approach. How well does it work? Any more solutions available? Also, since I don't see any good actively developed solutions for monitoring web applications using Nagios, I suspect if it's really a good approach to use Nagios for this? If not, what alternatives do I have? In short what is the best approach to monitor web applications availability?
0
[ 2, 8984, 20624, 1278, 2741, 3010, 568, 9277, 7760, 800, 3726, 3726, 95, 57, 21, 13, 5, 6881, 7522, 1278, 6, 2741, 3010, 2812, 19, 4005, 464, 17595, 17, 95, 376, 20, 7626, 14, 11886, 16, 48, 365, 9, 179, 95, 944, 20, 275, 9277, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
sorting of arrays in desc order by values in PHP === Is there a function sort array by values (not by keys) in desc order? Following is the array which is to be sorted. array( 0 => 3223, 1 => 675, 2 => 56, 3 => 66899, )
0
[ 2, 2058, 68, 16, 7718, 18, 19, 1746, 150, 389, 34, 4070, 19, 13, 26120, 800, 3726, 3726, 25, 80, 21, 1990, 2058, 7718, 34, 4070, 13, 5, 1270, 34, 5534, 6, 19, 1746, 150, 389, 60, 249, 25, 14, 7718, 56, 25, 20, 44, 22554, 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...
To show or not to show an alert on closing the Window at particular situations === I am using some text fields and web view in a window. What I want is if user makes any changes in any of the text fields then on closing the window it should show an alert to save the changes made (and this is done)... But what I want to do is if the user does not make any changes in the any of the fields or web View then on closing the window , it should close without showing any alert.Please let me know how this can be done. And let me know if this is not clear so that I can give some more explanation.
0
[ 2, 20, 298, 54, 52, 20, 298, 40, 7863, 27, 4239, 14, 1463, 35, 1498, 8329, 800, 3726, 3726, 31, 589, 568, 109, 1854, 2861, 17, 2741, 1418, 19, 21, 1463, 9, 98, 31, 259, 25, 100, 4155, 1364, 186, 1693, 19, 186, 16, 14, 1854, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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 - Simple array/string manipulation === I have an array that contains a set of links as strings e.g. [1]==> "<a href = 'this.html'> This </a>" [2]==> "<a href = 'that.html'> That </a>" [3]==> "<a href = 'other.html'> Other </a>" What is the easiest way to echo out just the text separated by comas? e.g. so it displays: This, That, Other
0
[ 2, 13, 26120, 13, 8, 1935, 7718, 118, 11130, 17561, 800, 3726, 3726, 31, 57, 40, 7718, 30, 1588, 21, 309, 16, 6271, 28, 7887, 13, 62, 9, 263, 9, 636, 165, 500, 3726, 3726, 1, 13, 7, 1, 58, 746, 14057, 800, 13, 22, 1565, 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...
Inactive browser cache when logout take place === How to disable brower catch when logout take place, where i used <meta http-equiv="cache-control" content="no-cache"> <!-- tells browser not to cache --> <meta http-equiv="expires" content="0"> <!-- says that the cache expires 'now' --> <meta http-equiv="pragma" content="no-cache"> <!-- says not to use cached stuff, if there is any --> But still i am getting the previous page , when i click logout.
0
[ 2, 19, 7889, 16495, 16522, 76, 6738, 1320, 247, 209, 800, 3726, 3726, 184, 20, 1460, 579, 7246, 106, 2949, 76, 6738, 1320, 247, 209, 15, 113, 31, 147, 13, 1, 5909, 58, 7775, 8, 9629, 710, 3726, 7, 793, 2569, 8, 12898, 7, 2331, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Entity Framework Secondary Level Includes in Projections === <!-- language-all: c# --> I'm wanting to retrieve a set of objects (`A`) and a number of related objects (`B`) within a single query. There are no navigation properties on `A` and `B` so I believe I need to use this syntax: select a from db.As where a.Id = x select new AndBHolder { A = a, Bs = select b from db.Bs where b.ASomeId = A.SomeId select b } I'm not sure if this is the best way, but it does work. However I now need to include a property of `B` (a list of `Cs`). I wasn't expecting it to work but I tried: select a from db.As where a.Id = x select new AndBHolder { A = a, Bs = select b from db.Bs.Include("Cs") where b.ASomeId = A.SomeId select b } Which fails with "Method ... Include declared on type ... cannot be called with instance of type ...". Next I thought I'd try a projection within a projection: select a from db.As where a.Id = x select new AndBHolder { A = a, Bs = select b from db.Bs where b.ASomeId = A.SomeId select new B { Id = b.Id, // ... Cs = select c from db.Cs where c.BId = b.Id select c } } Which fails with "The entity or complex type '`B`' cannot be constructed in a LINQ to Entities query" because you are not allowed to project into a mapped object. So how do I retrieve the `Bs` with their `Cs` populated, or is the secondary level inclusion just not supportted? Am I just going to have to make two calls to the database, one to retrieve the As and one to retrieve the `Bs` with their `Cs`?
0
[ 2, 9252, 6596, 2277, 662, 1103, 19, 11607, 18, 800, 3726, 3726, 13, 1, 187, 8, 8, 816, 8, 1233, 45, 272, 5910, 13, 8, 8, 1, 31, 22, 79, 4638, 20, 11917, 21, 309, 16, 3916, 13, 5, 1, 58, 1, 6, 17, 21, 234, 16, 1597, 3916,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...
Ligth Sql Database === I am developing a .Net client application (written in C++) and I would like to integrate a light sql database. I have considered the use of SqlLite or SqlExpress. Which other options are available? Which would be the better option? Thanks.
0
[ 2, 13721, 96, 4444, 255, 6018, 800, 3726, 3726, 31, 589, 3561, 21, 13, 9, 2328, 6819, 3010, 13, 5, 6390, 19, 272, 20512, 6, 17, 31, 83, 101, 20, 18399, 21, 471, 4444, 255, 6018, 9, 31, 57, 724, 14, 275, 16, 4444, 211, 2119, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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...