unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Cannot communicate successfully with USB HID device using writefile() === I am fairly new to C# as well as windows programming and I am attempting to establish communication between a USB HID device and an app written in c# on a windows xp pc. I have obtained the device path successfully and have used this to establish a valid Handle on the device: IntPtr drive = CreateFile(devicePath, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ | FILE_SHARE_WRITE, IntPtr.Zero, OPEN_EXISTING, FILE_FLAG_DELETE_ON_CLOSE, IntPtr.Zero); This proved to be a valid handle that yields a positive integer when tested. After creating the handle I call 'HidD_GetPreparsedData' and 'HidP_GetCaps' which yield a struct previously imported (HIDP_CAPS) that stores specific data related to the device attached. Next, I try to call writefile(): bool success = WriteFile(drive, ref outputReportBuffer, caps.OutputReportByteLength, ref numberOfBytesWritten, IntPtr.Zero); drive: The Handle of the device outputReportBuffer:The array of bytes to write [65] caps.OutputReportByteLength: The amount of bytes to write, caps is the struct of HIDP_CAPS numberOfBytesWritten: hardcoded to 0 IntPtr.Zero: Everything I have read passes this last parameter as I have done. In the formal parameters of 'writefile' the last parameter is listed as 'IntPtr ipOverlapped', but I have not been able to figure out what that is, except that It should be passed as some form of 0 How WriteFile is imported: [DllImport("kernel32.dll", SetLastError = true)] public static extern bool WriteFile(IntPtr hFile, ref byte[] lpBuffer, uint nNumberOfBytesToWrite, ref uint lpNumberOfBytesWritten, IntPtr ipOverlapped); When writefile is executed it simply does nothing. I get no error, but when tested, it reveals that communication was never established and it was not successful. If anyone could share any knowledge or provide any resources to help I would really appreciate it. Thank you for reading. Regards.
0
[ 2, 1967, 8709, 3673, 29, 182, 220, 10135, 3646, 568, 2757, 16877, 5, 6, 800, 3726, 3726, 31, 589, 6647, 78, 20, 272, 5910, 28, 134, 28, 1936, 3143, 17, 31, 589, 6314, 20, 4088, 3291, 128, 21, 182, 220, 10135, 3646, 17, 40, 4865,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is there a legitimate way to create custom view for a fullcalendar plugin? === Using fullcalendar plugin, which is nice and otherwise fits perfectly for my needs, I have to create a calendar view like this:<br> ![enter image description here][1] [1]: http://i.stack.imgur.com/MFrkT.png <br> As you can see, every column here is a default dayView column, judging by functionale. I took a look into fullcalendar sources from github, but still can't see how this can be done, if at all possible.<br>
0
[ 2, 25, 80, 21, 11912, 161, 20, 1600, 5816, 1418, 26, 21, 503, 3430, 219, 2542, 10922, 108, 60, 800, 3726, 3726, 568, 503, 3430, 219, 2542, 10922, 108, 15, 56, 25, 2210, 17, 3190, 2742, 18, 5759, 26, 51, 2274, 15, 31, 57, 20, 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...
Assign results of doMC (foreach) to data frame === Lets say I have the example code kkk<-data.frame(m.mean=1:1000, m.sd=1:1000/20) kkk[,3:502]<-NA for (i in 1:nrow(kkk)){ kkk[i,3:502]<-rnorm(n=500, mean=kkk[i,1], sd=kkk[i,2]) } I would like to convert this function to run parallel with `doMC`. My problem is that `foreach` results in a list, whereas I need the results of each iteration to be a vector that can be then transfered to the data frame (which later will be exported as CVS for further processing). Any ideas?
0
[ 2, 13952, 1736, 16, 107, 4829, 13, 5, 1106, 14322, 6, 20, 1054, 3523, 800, 3726, 3726, 6884, 395, 31, 57, 14, 823, 1797, 680, 8033, 1, 8, 18768, 9, 8361, 5, 79, 9, 22183, 3726, 165, 45, 19484, 15, 307, 9, 18, 43, 3726, 165, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Copy a Range of data based on a certain value in that range === every Sunday I receive data on the amount of packages sent to various parts of the country. Each time a package is sent the managers report "Yes" or "No" on a column in Google spreadsheet. I am trying to create a function in Google Script that allows me to find a specific value (in this case "No") in a column then moving all of the data from the row that coincides with the column to a different range on a different spreadsheet. I have 5 columns and about 160 rows that I am working with. I have tried using a loop function to go through all of the rows to find the ones that has "No" below the "Sent" column. The function finds the columns alright, but when I try to paste on different sheet, it either puts only one row on the new sheet, or puts all the rows the same. Any help would be great as this helps us know what customer is not receiving their package. Thanks!
0
[ 2, 4344, 21, 978, 16, 1054, 432, 27, 21, 1200, 1923, 19, 30, 978, 800, 3726, 3726, 352, 2608, 31, 2588, 1054, 27, 14, 2006, 16, 16875, 795, 20, 617, 1341, 16, 14, 475, 9, 206, 85, 21, 6030, 25, 795, 14, 12657, 1330, 13, 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...
XamDataGrid XamTabControl WPF MVVM Peculiar Behavior === I'm facing a problem in implementing the following scenario: When the user selects a record in a XamDataGrid, the control flows into another tab showing the details of the selected record. The way I have done this is: At the selection change of the XamDataGrid, I'm sending index of the tab to be activated using MVVM Light Messenger. Setting the property bound to the Seledted Index of the Tab Control to that number. Everything works smooth till here. Afetr that if I go back to the tab containing the grid, somehow the control comes back to tab which was activated. As if, some intrinsic selection of cells in happening in the grid. Does Hover also affects the selection of the xamdatagrid? I'm new to Infragistics and kind of confused. If some one can help. All code are in View Model files and no code in the code behind of xaml file. Cheers, Anshuman
0
[ 2, 993, 765, 18768, 16375, 993, 765, 15783, 12898, 619, 7721, 17967, 20147, 13193, 3257, 800, 3726, 3726, 31, 22, 79, 4325, 21, 1448, 19, 17333, 14, 249, 12705, 45, 76, 14, 4155, 5407, 18, 21, 571, 19, 21, 993, 765, 18768, 16375, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to make portable AND native ID generation in JPA 2 / Hibernate? === I would like to have native and portable id generation on my JPA 2 entities, currently running Hibernate and MySQL When using @GeneratedValue(strategy=AUTO), hibernate defaults to the "hibernate_sequence" table on MySQL, i would like IDENTITY If i solve it using @GeneratedValue(strategy=IDENTITY), i loose Oracle/Postgres portability How can i set Hibernate to use IDENTITY as default for mysql when @GeneratedValue strategy=AUTO?
0
[ 2, 184, 20, 233, 13469, 17, 1275, 4924, 2782, 19, 487, 1060, 172, 13, 118, 4148, 2102, 8820, 60, 800, 3726, 3726, 31, 83, 101, 20, 57, 1275, 17, 13469, 4924, 2782, 27, 51, 487, 1060, 172, 12549, 15, 871, 946, 4148, 2102, 8820, 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 get entire LatLng along a route? - Google Api V3 === I got two problems about the google routes. 1st) I parse two points(start and end) and google maps retrieves me a route between this points. How do I get the entire LatLng along the path and save in my DB? I already tried to get the ..routes[0].overview_path, but it is only an aproximated LatLng of my path. 2nd) After get this points from my DB(LatLngs along the path), how do I route in exactly points along the path? I tried to do with polylines, but it doesn't work just like the line that google makes when I ask for route.
0
[ 2, 184, 20, 164, 1078, 333, 7786, 2723, 303, 21, 858, 60, 13, 8, 8144, 21, 2159, 566, 240, 800, 3726, 3726, 31, 330, 81, 1716, 88, 14, 8144, 5050, 9, 137, 384, 6, 31, 2017, 870, 81, 819, 5, 13680, 17, 241, 6, 17, 8144, 6867,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
The connection between http client and jsoup === I'm doing some research on how to scrape information. I'm a little confused about how http client relates to jsoup. Do you need http client to use jsoup, or can jsoup replace http client? If you still need http client, what functions is it performing that jsoup cannot do on its own?
0
[ 2, 14, 2760, 128, 7775, 6819, 17, 487, 656, 576, 800, 3726, 3726, 31, 22, 79, 845, 109, 527, 27, 184, 20, 23855, 676, 9, 31, 22, 79, 21, 265, 4230, 88, 184, 7775, 6819, 16429, 20, 487, 656, 576, 9, 107, 42, 376, 7775, 6819, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 load dynamic content using CURL and PHP === Good day and salutation! I am creating a simple web page to get a user and pass from a Form , and using CURL post these variables to another page to login, then show to result back ( I was gonna start from here then move on to accessing different pages). The problem is that some of the content of the site are loaded dynamically (Widgets). So when I get the result back the frame of the site loads up but the widgets are not rendering. Error on loading the widgets from the second site : **"ptBaseURI = String(location).match(/\/ps(c ... "** Could this be a session problem ? My php code: $post_data['pwd']=$_REQUEST['password']; foreach ($post_data as $key => $value){ $post_items[]=$key . '=' . $value; } $post_string = implode ('&',$post_items); $tmp_file_name=tempnam("/tmp/","COOKIE"); $curl_handle=curl_init('www.targetsite.com/...'); curl_setopt($curl_handle, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"); //curl_setopt($curl_handle, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl_handle, CURLOPT_COOKIEJAR,$tmp_file_name); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER,true); //curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $post_string); $result = curl_exec($curl_handle); $curl_handle=curl_init('www.targetsite.com/...'); curl_setopt($curl_handle, CURLOPT_COOKIEFILE,$tmp_file_name); curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER,true); curl_setopt($curl_handle, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"); curl_setopt($curl_handle, CURLOPT_FOLLOWLOCATION, 1); curl_setopt($curl_handle, CURLOPT_POSTFIELDS, $post_string); $result = curl_exec($curl_handle);
0
[ 2, 2343, 20, 6305, 7782, 2331, 568, 14320, 17, 13, 26120, 800, 3726, 3726, 254, 208, 17, 3263, 1982, 857, 187, 31, 589, 2936, 21, 1935, 2741, 2478, 20, 164, 21, 4155, 17, 1477, 37, 21, 505, 13, 15, 17, 568, 14320, 678, 158, 1215...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 data by 'POST' method to from Javascript to Python === I have this part of script from my GAE application which uses webapp2, which accepts data from a form using post, class RenderMarksheet(webapp2.RequestHandler): def post(self): regno = self.request.get('content') rawlink = "http://result.annauniv.edu/cgi-bin/result/result11gr.pl?regno=" link = rawlink+regno ... ... self.response.out.write(template.render(templates/render.html, template_values)) And the web form which posts to this script, <form action="/sign" method="post" name="inputform" onsubmit="return validate()"> Register No : <input type="number" name="content" placeholder="Your Register No."/> <input type="submit" value="Get-My-GPA!" > </form> Now, I want to manually pass a specific data (a register no.), without using the submit button from the form, to the python script( or the url, perhaps) , using Javascript. Since the app uses 'url handlers' that routes all url's of the form '/sign' to the appropriate mehod, I really don't know how to go about this. When I used php there were no 'url handlers' and I Posted data like this, http://myurl?variable=data. In this project, I have to POST the data using javascript(to implement AJAX). I'm a newbee to this 'GET' 'POST' stuff. Please do Help.
0
[ 2, 184, 20, 1477, 1054, 34, 13, 22, 6962, 22, 2109, 20, 37, 8247, 8741, 20, 20059, 800, 3726, 3726, 31, 57, 48, 141, 16, 3884, 37, 51, 13, 17721, 3010, 56, 2027, 2741, 7753, 135, 15, 56, 16548, 1054, 37, 21, 505, 568, 678, 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 to handle scroll position on hashchange in Backbone.js application? === I've read through many related threads but none of them seem to provide a solution. What I'm trying to do is handle the scrollbar intelligently in my Backbone.js app. Like many others, I have multiple #mypage hash routes. Some of these routes are hierarchical. e.g. I have a #list page that lists some items, I click on an item in the list. Then it opens up a #view/ITEMID page. My pages all share the same Content div in the HTML layout. On a navigation change, I inject a new div representing the view for that route into the Content div, replacing whatever was there before. So now my problem: If the item is far down in the list I might have to scroll to get there. When I click on it, the "default" Backbone behavior is that the #view/ITEMID page is displayed at the same scroll position that the #list view was. Fixing that is easy enough; just add a $(document).scrollTop(0) whenever a new view is injected. The problem is if I hit the back button I would like to go back to the #list view at the scroll position it was previously. I tried to take the obvious solution to this. Storing a map of routes to scroll positions in memory. I write to this map at the beginning of the handler for the hashchange event, but before the new view is actually put into the DOM. I read from the map at the end of the hashchange handler, after the new view is in the DOM. What I'm noticing is that something, somewhere, in Firefox at least, is scrolling the page as part of a hashchange event, so that by the time my write-to-map code gets called, the document has a wonky scroll position that was definitely not explicitly made by the user. Anyone know how to fix this, or a best practice that I should be using instead? I double checked and there are no anchor tags in my DOM that match the hashes I'm using.
0
[ 2, 184, 20, 3053, 12159, 649, 27, 19170, 16229, 19, 24036, 9, 728, 18, 3010, 60, 800, 3726, 3726, 31, 22, 195, 1302, 120, 151, 1597, 20396, 47, 2369, 16, 105, 2260, 20, 1181, 21, 4295, 9, 98, 31, 22, 79, 749, 20, 107, 25, 3053...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Extract substring by bytes === I have a UTF8 string and start and length (s,l) with which to extract a substring. However, there is a problem, the start and length are in bytes, so I cannot use "substring". The UTF8 string contains several multi-byte characters. Is there a hyper-efficient way of doing this? (I don't need to decode the bytes...) Example: var orig = '你好吗?' The s,e might be 3,3 to extract the second character. I'm looking for var result = orig.substringBytes(3,3); Help! **Update** In C/C++ I would just cast it to a byte array, but not sure if there is an equivalent in javascript. BTW, yes we could parse it into a byte array and parse it back to a string, but it seems that there should be a quick way to cut it at the right place.
0
[ 2, 10962, 972, 11130, 34, 34, 3231, 800, 3726, 3726, 31, 57, 21, 287, 11720, 457, 3724, 17, 799, 17, 1476, 13, 5, 18, 15, 255, 6, 29, 56, 20, 10962, 21, 972, 11130, 9, 207, 15, 80, 25, 21, 1448, 15, 14, 799, 17, 1476, 50, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to manipulate a image like a Matrix using OpenCV? === I need to develop a method to find the distance of a red line and the bottom of the image. I already isolate the red line in hsv using some examples... I know how to do this using MatLab but now i have to use the opencv :s Someone can tell me how to do this?
0
[ 2, 184, 20, 18468, 21, 1961, 101, 21, 8187, 568, 368, 12732, 60, 800, 3726, 3726, 31, 376, 20, 2803, 21, 2109, 20, 477, 14, 1583, 16, 21, 402, 293, 17, 14, 2129, 16, 14, 1961, 9, 31, 614, 25068, 14, 402, 293, 19, 746, 18, 71...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Calling an external class in iOS === I have this class for button which was added to my project workspace. I had linker error ( Apple Mach-o Linker Error) Then again i opened a new project and added this class. I had *unrecognized selector sent to instance error This is the class I suggest you use the [Glow Category of UIView made by secret lab][1]. [1]: https://github.com/thesecretlab/UIView-Glow [2]: http://blog.secretlab.com.au/2012/06/23/glowing/ Any suggestion on how to call this class?
0
[ 2, 2555, 40, 4886, 718, 19, 13, 7760, 800, 3726, 3726, 31, 57, 48, 718, 26, 5167, 56, 23, 905, 20, 51, 669, 170, 5582, 9, 31, 41, 3508, 106, 7019, 13, 5, 4037, 10604, 8, 111, 3508, 106, 7019, 6, 94, 188, 31, 520, 21, 78, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Clojure - why does (= (vector nil) (vec nil)) return false? === simple question, is this just a quirk? or is there some fundamental concept that implies this?
0
[ 2, 7383, 2142, 99, 13, 8, 483, 630, 13, 5, 3726, 13, 5, 28033, 1781, 255, 6, 13, 5, 195, 150, 1781, 255, 6, 6, 788, 4997, 60, 800, 3726, 3726, 1935, 1301, 15, 25, 48, 114, 21, 19321, 60, 54, 25, 80, 109, 6377, 2420, 30, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Flexicious DataGrid FlexDataGirdEvent.EDIT_END special case === I have a Flexicious DataGrid set up, and I have an ItemRenderer set on a certain column. Now, when I am editing an editable cell, and then stop editing it, the DataGrid fires a FlexDataGrid.EDIT_ITEM_END event (or something like that). When this is fired, I want to do a certain action. That's simple enough. The problem though, is I have a special case: If a user is editing an editable cell and then clicks away from it (which would cause FlexDataGrid.EDIT_ITEM_END fire), but he happens to click on a button which is within the ItemRenderer set on the column, then in that case I don't want to do the action. I don't know how to make an event work like this though. Basically I'm looking for an event that is FlexDataGrid.EDIT_ITEM_END_AND_CLICKED_ON_ANYTHING_OTHER_THAN_THAT_BUTTON and I'd like to fire that instead of FlexDataGrid.EDIT_ITEM_END. But alas, I checked the docs and that event doesn't exist =-(. What can I do? Thanks for the help!
0
[ 2, 14409, 49, 9957, 1054, 16375, 14409, 18768, 16791, 546, 6645, 9, 69, 242, 1, 2451, 621, 610, 800, 3726, 3726, 31, 57, 21, 14409, 49, 9957, 1054, 16375, 309, 71, 15, 17, 31, 57, 40, 9101, 99, 16706, 106, 309, 27, 21, 1200, 469...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Facebook not allowing to create developer app === I've been trying to create a facebook app but facebook doesnt seem to trust me. It gives the following error. [Error Screenshot][1] [1]: http://i47.tinypic.com/29p43uq.png I have verified my mobile as per their instruction. Any idea how to get around this issue?
0
[ 2, 9090, 52, 2719, 20, 1600, 10058, 4865, 800, 3726, 3726, 31, 22, 195, 74, 749, 20, 1600, 21, 9090, 4865, 47, 9090, 5886, 2260, 20, 1527, 55, 9, 32, 2352, 14, 249, 7019, 9, 636, 29992, 2324, 7868, 500, 2558, 165, 500, 636, 165,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ModX - embedded iframe disappears === I have a YouTube video embedded on a page in ModX. To place it, on the Page I switch TinyMCE off to reveal the HTML code then paste the iframe in. That works Ok but when I go back to edit something else in HTML mode the iframe code disappears. Anyone know whats going on?
0
[ 2, 7226, 396, 13, 8, 12138, 31, 8361, 20341, 800, 3726, 3726, 31, 57, 21, 7330, 763, 12138, 27, 21, 2478, 19, 7226, 396, 9, 20, 209, 32, 15, 27, 14, 2478, 31, 5521, 3228, 79, 1105, 168, 20, 6820, 14, 13, 15895, 1797, 94, 640, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Ubuntu 12.04 and Uninitialized constant ActiveSupport::Dependencies::Mutex === We have a standard Rails application that we have been running on Ubuntu 10.04 LTS server for many years. Since Ubuntu 12.04 LTS server has now been released, we are looking at deploying the Rails app on that platform. I have gone through the exact same installation process on both servers and the exact same versions of Ruby and gems have been installed on both servers. When I run the rake db:migrate on the 10.04 server there is no problem but when I run the rake db:migrate on the 12.04 server I get the Uninitialized constant ActiveSupport::Dependencies::Mutex error. I have noticed that other people have had success by upgrading or downgrading various versions of RubyGems and/or Rails but this is something I would prefer to avoid as I am concerned that it might break the application. Can anybody suggest a solution or a reason why it works with one version of Ubuntu and not the other? Thanks.
0
[ 2, 287, 12968, 2473, 390, 9, 3277, 17, 367, 27313, 1333, 3587, 1348, 24168, 45, 45, 19038, 22851, 45, 45, 7903, 1706, 800, 3726, 3726, 95, 57, 21, 1236, 2240, 18, 3010, 30, 95, 57, 74, 946, 27, 287, 12968, 2473, 332, 9, 3277, 71...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Jquery Ajax sends data but fire error === I have wired problem while processing form from Ajax. It is working as expected but some reason it fires error instead of success. This is the code email = $(".email").val(); $.ajax({ url: "http://services.ninemsn.com.au/sendtofriend/sendtofriendService.aspx?", context: document.body, type: "POST", data: { recipientemail: email }, dataType: "jsonp", success: function() { alert('success'); }, error: function() { alert('Error'); }, }); //Ajax End
0
[ 2, 487, 8190, 93, 20624, 11350, 1054, 47, 535, 7019, 800, 3726, 3726, 31, 57, 21124, 1448, 133, 5511, 505, 37, 20624, 9, 32, 25, 638, 28, 1727, 47, 109, 1215, 32, 11327, 7019, 700, 16, 1280, 9, 48, 25, 14, 1797, 8517, 800, 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...
Designing the following messaging table in MYSQL === root_msgid msgid fromuserid touserid message 0 1 2 3 "hi tom" 0 2 3 2 "hi dave" 0 3 2 3 "what you doing today?" 0 4 3 2 "playing tennis." 1 1 4 5 "hi nancy" 1 2 5 4 "hi connie" 1 3 4 5 "what's for dinner?" 1 4 5 4 "salmon" 2 1 2 5 "hello there" 2 2 5 2 "hi" On this messaging table, root_msgid will autoincrement when new message channel between two person. msgid will auto increment for subsequent conversation of two person. When I creating this table what attributes I should for 'root_msgid' and msgid so they can do the things I required.
0
[ 2, 15026, 14, 249, 26437, 859, 19, 51, 18, 22402, 800, 3726, 3726, 5900, 1, 79, 18, 2234, 43, 4235, 2234, 43, 37, 3699, 5175, 20, 3699, 5175, 2802, 713, 137, 172, 203, 13, 7, 1822, 2067, 7, 713, 172, 203, 172, 13, 7, 1822, 349...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unsafe JavaScript attempt to access frame with URL error in Chrome === I get this error on Chrome: Unsafe JavaScript attempt to access frame with URL1 from frame with URL2 I searched for this but most places there is actually an Iframe used and it tries to access parent. In my case, I do not have an IFrame, but get this error. It is on page: http://sikhvideos.org/video-details.asp?id=39 To get the error on Chrome, you click on one of the video clip thumbnails below the main video screen. This results in the content on the Right of Video to be populated. This is done by replacing the content inside the id "width366px". The code for that is the usual: document.getElementById("width366px").innerHTML= <data returned by ajaxVideoPartDetails.asp> All help very much appreciated. Best Regards sandy
0
[ 2, 27094, 8247, 8741, 1735, 20, 1381, 3523, 29, 287, 6362, 7019, 19, 13, 12985, 800, 3726, 3726, 31, 164, 48, 7019, 27, 13, 12985, 45, 27094, 8247, 8741, 1735, 20, 1381, 3523, 29, 287, 6362, 165, 37, 3523, 29, 287, 6362, 135, 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...
WPF xbap application download error === I m new to xbap application deployment. I was able to host my WPF application to the server succcessfully as xbap , and the application was accessible by me and my teammates and everything was fine. After few days, it was not accessible for my **teammates** computer and giving **'Application Download error'**.. still, It is accessible in my computer and the server. is there anything need to be done with configuration or permission or client computer.. please , can u help me on this...??
0
[ 2, 619, 7721, 993, 969, 306, 3010, 7121, 7019, 800, 3726, 3726, 31, 307, 78, 20, 993, 969, 306, 3010, 10475, 9, 31, 23, 777, 20, 2015, 51, 619, 7721, 3010, 20, 14, 8128, 2538, 24892, 160, 18, 5655, 28, 993, 969, 306, 13, 15, 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 use ef migration to create database? === I googled migration tutorials. In all af them, first run the application to create database by ef, then enable migration! Is there a way to create database with migration? not with runing the application? I try these: Add-Migration CustomName // not works Add-Migration $InitialDatabase // not works Add-Migration InitialDatabase // not works Add-Migration InitialCreate // not works Update-Database // not works Update-Database Update-Database –TargetMigration:$InitialDatabase // not works
0
[ 2, 184, 20, 275, 11599, 8443, 20, 1600, 6018, 60, 800, 3726, 3726, 31, 8144, 43, 8443, 29724, 18, 9, 19, 65, 13, 2565, 105, 15, 64, 485, 14, 3010, 20, 1600, 6018, 34, 11599, 15, 94, 9240, 8443, 187, 25, 80, 21, 161, 20, 1600, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
UIWebView Authentication Challenge === I have a webview in my application but by default, webview doesn't seem to show the http authentication popup like safari does. The url is not a secure one and starts with http. Can anyone walk me through on how to go about it? A sample code will be awesome! Thank you, Shukaku
0
[ 2, 13, 5661, 14113, 4725, 27963, 2404, 800, 3726, 3726, 31, 57, 21, 2741, 4725, 19, 51, 3010, 47, 34, 12838, 15, 2741, 4725, 1437, 22, 38, 2260, 20, 298, 14, 7775, 27963, 1675, 576, 101, 25055, 630, 9, 14, 287, 6362, 25, 52, 21,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Access-Control-Allow-Origin Error At Android 4.1 === I have problems with Access-Control-Allow-Origin at Android 4.1 In my application i have some local HTML files and Javascripts which i was using to fetch data from web services. Until trying Android 4.1 there was no problem but after trying at Android 4.1 i got this error. I read lots of documents but i couldn't find a way to solve this problem.
0
[ 2, 1381, 8, 12898, 8, 17976, 8, 28486, 7019, 35, 13005, 268, 9, 165, 800, 3726, 3726, 31, 57, 1716, 29, 1381, 8, 12898, 8, 17976, 8, 28486, 35, 13005, 268, 9, 165, 19, 51, 3010, 31, 57, 109, 375, 13, 15895, 6488, 17, 8247, 874...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 variable in class? === The script : class A extends B { protected $_data; public function __construct() { parent::__construct(); $other = new OtherClass; $something = $this->_data; $process = $other->$something; // Not Work } } How can i get `$_data`? It working with `$other->foo` without variable Help.. Thanks
0
[ 2, 184, 20, 164, 7612, 19, 718, 60, 800, 3726, 3726, 14, 3884, 13, 45, 718, 21, 9073, 334, 13, 1, 3803, 5579, 1, 18768, 73, 317, 1990, 13, 1, 1126, 10346, 5, 6, 13, 1, 4766, 45, 45, 1, 1126, 10346, 5, 6, 73, 5579, 9539, 80...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 the previous months data sql === This seems to have been answered several times for the past 30 days. But seemingly not what I need If for example today is July 10th, 2012. I'm looking to pull all of June's data. I will need to run this query several days after the start of each month I'm using sql server
0
[ 2, 1017, 14, 1158, 818, 1054, 4444, 255, 800, 3726, 3726, 48, 2206, 20, 57, 74, 3094, 238, 436, 26, 14, 640, 712, 509, 9, 47, 9688, 52, 98, 31, 376, 100, 26, 823, 786, 25, 313, 332, 96, 15, 563, 9, 31, 22, 79, 699, 20, 220...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Know of any cross platform socket library (windows & Linux) in C? === The title says it all, I am looking to do socket communications (listen, accept, connect, recv, send, disconnect) in both linux and windows. My project is in C, so unless someone can think of a way for me to integrate C++ libraries into a C project the library will have to be in C as well. Ultimately, I would like the library to have ipv6 support and non-blocking mode, however, these things are not essential. Does anyone know of any libraries/cross-platform example code? Even just large code snippets would help. So far the few socket libraries I have found have been in C++. Thankyou in advance.
0
[ 2, 143, 16, 186, 919, 2452, 18482, 1248, 13, 5, 27508, 18, 279, 13024, 6, 19, 272, 60, 800, 3726, 3726, 14, 581, 898, 32, 65, 15, 31, 589, 699, 20, 107, 18482, 3380, 13, 5, 13891, 15, 3440, 15, 6379, 15, 6042, 710, 15, 2660, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Impress.js Menu by Ralt === I've managed to create an impress.js presentation and have added the menu created by Ralt (https://github.com/bartaz/impress.js/pull/153) However, what i'm trying to do now and can't seem to be able to get through is changing the font of the menu and the menu titles to a custom font of my choice (@font/font-family function doesn't seem to work for me) and also being able to change the actual navigation/menu button for it to display an image of my choice instead of just a word of text as currently setup... Help anyone ?? Thanks!! Ruds
0
[ 2, 15992, 9, 728, 18, 11379, 34, 13, 5284, 38, 800, 3726, 3726, 31, 22, 195, 1471, 20, 1600, 40, 15992, 9, 728, 18, 6364, 17, 57, 905, 14, 11379, 679, 34, 13, 5284, 38, 13, 5, 21127, 18, 6903, 10404, 20926, 9, 960, 118, 1850, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
execl()-ing in parent process: SIGCHLD caught by ps === I'm doing an assignment on fork(),exec() and related UNIX calls where I need to show the zombie state of a (child) process. Here's the relevant piece of code: pid = vfork(); //used vfork() for showing z state if(pid>0) { (some sorting code) execl("/bin/ps","/bin/ps","a",(char*)0); } What I expect is: (child's output) (parent's output) (Output of the ps command where I then would be able to show a 'defunct' entry) What I get is: (child's output) (parent's output) No ps command output. Instead I get: Signal 17 (CHLD) caught by ps (procps version 3.2.8) However, when **sleep(int time)** (some integer time in seconds) is inserted before the **execl** call, I get the desired output and no Signal errors are reported. What's happening here? Does **ps** becomes the new parent of the (as yet-zombie) child? And why does the **ps** command not execute? What does **sleep()** do that makes **ps** to execute as required? I'm new to UNIX so any relevance of this SIGCHLD signal with respect to my particular situation would be appreciated. THanks!
0
[ 2, 1396, 62, 5316, 5, 6, 8, 68, 19, 4766, 953, 45, 8858, 17633, 43, 1383, 34, 8613, 800, 3726, 3726, 31, 22, 79, 845, 40, 8427, 27, 8777, 5, 6, 15, 1706, 3319, 5, 6, 17, 1597, 22540, 3029, 113, 31, 376, 20, 298, 14, 13007, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Multithreading Crash using QT and QOGL === I have an QOGLWidget Simulator widget which is constructed in a another window, which is activated by button from the QMainwindow. I'm trying to send a surface of an image from the simulator widget to the main window's QOGLWidget, the problem that it crashes and gives a first chance exception access violation. The GL Simulator widget: I send the surface by using a timer void GLSimulatorWidget::timerEvent( QTimerEvent *e ) { Q_UNUSED(e); updateGL(); if(m_surface) { sendImage(m_surface); } } It is constructed here: SimulatorWindow::SimulatorWindow(QWidget *parent) : QWidget(parent) { ui.setupUi(this); m_GLWidget = new GLSimulatorWidget(this); ui.verticalLayout->addWidget(m_GLWidget); } I have another class which is called input that gets a frame from the GL Simulator Widget class Input : public QObject { Q_OBJECT public: Input(QWidget *parent, SimulatorWindow *simulator); ~Input(); public: private: SimulatorWindow *m_pSimulator; ci::Surface8u m_pImage; } void Input::getFramefromSimulator( const ci::Surface8u &surface ) { m_pImage = surface; } Then at each frame I send that surface to the MainWindow GL Widget void Input::timerEvent( QTimerEvent *e ) { ci::Surface8u surface; ci::Surface8u _surface; if(m_pSimulator->isVisible() && m_pImage != NULL) { emit sendImage(m_pImage); } } I connect the Input to the Mainwindow's GL Widget by signal and slot, and I receive it here, and that is the place where it crashes. connect(m_input, SIGNAL(sendImage(const ci::Surface8u &)), m_sourcePrevWidget, SLOT(imageReceived(const ci::Surface8u &))); void GLWidget::imageReceived(const Surface8u &surface) { { //QMutexLocker locker(&mutex); // Crash here **m_surface = surface.clone();** mutex.lock(); m_mat = toOcvRef(m_surface); mutex.unlock(); } updateGL(); }
0
[ 2, 1889, 96, 22883, 4597, 568, 2593, 38, 17, 2593, 111, 8430, 800, 3726, 3726, 31, 57, 40, 2593, 5598, 23281, 21292, 38, 24565, 4807, 43, 3060, 56, 25, 2096, 19, 21, 226, 1463, 15, 56, 25, 9654, 34, 5167, 37, 14, 2593, 6232, 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...
keep track position of XML element === I want to build an index for an XML document but using the addresses of elements, I could not find a way to keep the address (or pointer to the position) of elements during SAX parsing, any suggestions for this? and how use this position to retrieve the specified element?
0
[ 2, 643, 792, 649, 16, 23504, 4520, 800, 3726, 3726, 31, 259, 20, 1895, 40, 4348, 26, 40, 23504, 4492, 47, 568, 14, 12636, 16, 2065, 15, 31, 110, 52, 477, 21, 161, 20, 643, 14, 3218, 13, 5, 248, 454, 106, 20, 14, 649, 6, 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...
cakephp login across whole site === I'm logging in with the HybridAuth plug-in at the address = /cake/hybridauth/auth/google, then I use these details to look up the user on the database and log them in to the default CakePHP Auth like so: $hybridauth = new Hybrid_Auth($hybridauth_config); $adapter = $hybridauth->authenticate($provider); $userprofile = $adapter->getUserProfile(); //look up user + register if not found $this->loadModel('User'); $isUser = $this->User->find('first', array( 'conditions' => array( 'User.provider' => strtolower($provider), 'User.identifier' => $userprofile->identifier ), 'callbacks' => true )); if(!$isUser){ //register the user } else { //update user with new credentials $this->Auth->login($isUser["User"]); //this doesn't work across the whole site, //only this controller's "action" page } This all works fine, until I go back to my homepage at /cake/, where there seems to be no recognition of me having logged in - although on the controller's action page (cake/hybridauth/auth/google) I have the user logged into the Auth component and the above code seemed to work... Any ideas what I'm missing please? Many thanks.
0
[ 2, 8390, 26120, 6738, 108, 464, 979, 689, 800, 3726, 3726, 31, 22, 79, 13, 13919, 19, 29, 14, 6957, 1346, 96, 10922, 8, 108, 35, 14, 3218, 800, 13, 118, 17568, 118, 5608, 20744, 1346, 96, 118, 1346, 96, 118, 16111, 4875, 15, 94,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 change the existing bundle id from itunes connect with new bundle identifier from project === Changed project name before submitting to AppStore. So that changed bundle identifier too in the project. In iTunes connect it shows old bundle id how do i change it with a new one.
0
[ 2, 184, 20, 753, 14, 3149, 10194, 4924, 37, 12952, 6379, 29, 78, 10194, 25570, 37, 669, 800, 3726, 3726, 1015, 669, 204, 115, 28848, 20, 4865, 16828, 9, 86, 30, 1015, 10194, 25570, 266, 19, 14, 669, 9, 19, 12952, 6379, 32, 1285, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
How can I pass the parameters to controller correctly? === 1. From show view: I'd like to pass the shown message's id to discard action and trash the message. 2. From index view: I'd like to pass the checked messages' ids to discard action and trash them all at once. But I only can trash one record at once even if I check multiple and submit from index view. How can I archive both 1 and 2 with the same action???? Routes match 'messages/discard(/:id)' => 'messages#discard', :via => :post , :as => :discard_messages index view <%= form_tag(:action => discard, :via => 'post') do %> <% @messages.each do |m| %> <tr> <td><%= check_box_tag "id",m.id %></td> <td><%= m.last_message.id %></td> <td><%= 'unread' if m.is_unread?(current_user) %></td> <td><%= m.last_message.created_at.to_s(:jp) %></td> <td><%= m.last_sender.username %></td> <td><%= link_to m.subject, show_messages_path(:id => m, :breadcrumb => @box) %></td> </tr> <% end %> <%= submit_tag "discard", :class => 'btn' %> <% end %> show view <%= link_to 'Discard', discard_messages_path(@messages), :class => 'btn', :method => 'post' %> controller def discard conversation = Conversation.find_all_by_id(params[:id]) if conversation current_user.trash(conversation) flash[:notice] = "Message sent to trash." else conversations = Conversation.find(params[:conversations]) conversations.each { |c| current_user.trash(c) } flash[:notice] = "Messages sent to trash." end redirect_to :back end
0
[ 2, 184, 92, 31, 1477, 14, 12905, 20, 9919, 12044, 60, 800, 3726, 3726, 137, 9, 37, 298, 1418, 45, 31, 22, 43, 101, 20, 1477, 14, 1721, 2802, 22, 18, 4924, 20, 26251, 1028, 17, 10744, 14, 2802, 9, 172, 9, 37, 4348, 1418, 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 to save changes in wpf events lines === the problem is the wpf not save changes Only after the end of the event <br> //code<br> private void button1_Click(object sender, RoutedEventArgs e) {<br> for (int ii = 0; ii <= 5; ii++) <br>{<br> Rectangle rectr = (Rectangle)FindName("rect" + ii);<br> rectr.Fill = Brushes.Black;<br> Thread.Sleep(100);<br> }<br> // need some thing to save changes here <br> for (int ii = 0; ii <= 5; ii++)<br> {<br> Rectangle rectr = (Rectangle)FindName("rect" + ii +""+ ii);<br> rectr.Fill = Brushes.Black;<br> Thread.Sleep(200);<br> }<br> }<br> the question is how to save changes <br>
0
[ 2, 184, 20, 2079, 1693, 19, 619, 7721, 963, 1560, 800, 3726, 3726, 14, 1448, 25, 14, 619, 7721, 52, 2079, 1693, 104, 75, 14, 241, 16, 14, 807, 13, 1, 5145, 1, 12894, 9375, 1, 5145, 1, 932, 11364, 5167, 165, 1, 150, 10129, 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...
AnimationDrawable don't work in Android 2.2 === I using AnimationDrawable like this: ImageView rocketImage = (ImageView) layout.findViewById(R.id.animation); rocketImage.setBackgroundResource(R.drawable.progress_blue_animation); rocketAnimation = (AnimationDrawable) rocketImage.getBackground(); rocketAnimation.start(); This code work in Android 3.0/4.0/4.1/4.0, but don't work in Androi 2.2. How to solve this problem?
0
[ 2, 6236, 43, 12404, 579, 221, 22, 38, 170, 19, 13005, 172, 9, 135, 800, 3726, 3726, 31, 568, 6236, 43, 12404, 579, 101, 48, 45, 1961, 4725, 6598, 22039, 800, 13, 5, 22039, 4725, 6, 9106, 9, 19811, 4725, 779, 1340, 5, 139, 9, 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...
Batch: Timestamp to UNIX Time === For all I know, Batch does not have a command that gives the UNIX time. The closest one I can find is `%time%`, which only displays the timestamp. Is there a command, or set of commands in Batch with which you can get the UNIX time?
0
[ 2, 13064, 45, 436, 38, 10158, 20, 22540, 85, 800, 3726, 3726, 26, 65, 31, 143, 15, 13064, 630, 52, 57, 21, 1202, 30, 2352, 14, 22540, 85, 9, 14, 6993, 53, 31, 92, 477, 25, 13, 1, 11881, 891, 11881, 1, 15, 56, 104, 9412, 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...
set both the HTTP Accept and Content-Type headers to "application/xml" in C# === I had created a web serivec (REST) in C#.Now I want that when someone uses it,it should return JSON or XML as per Header.I found a very good [tutorial here][1].I followed it but I dont know where it says `set both the HTTP Accept and Content-Type headers to "application/xml"` ,I am callin it in this way `http://localhost:38477/social/twitter_name`.I can answer to any question if my question is not very clear to you Thanks [1]: http://dotnet.dzone.com/articles/wcf-rest-xml-json-or-both
0
[ 2, 309, 156, 14, 7775, 3440, 17, 2331, 8, 4474, 157, 445, 20, 13, 7, 2552, 20669, 118, 396, 8184, 7, 19, 272, 5910, 800, 3726, 3726, 31, 41, 679, 21, 2741, 4245, 1284, 150, 13, 5, 11466, 6, 19, 272, 5910, 9, 1387, 31, 259, 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...
Can Jquery Mobile use Jquery UI? === I'd like to use http://jqueryui.com/demos/sortable/ Will it be possible with jquery mobile ?
0
[ 2, 92, 487, 8190, 93, 3241, 275, 487, 8190, 93, 13, 5661, 60, 800, 3726, 3726, 31, 22, 43, 101, 20, 275, 7775, 6903, 728, 2005, 11867, 49, 9, 960, 118, 19274, 18, 118, 22843, 579, 118, 129, 32, 44, 938, 29, 487, 8190, 93, 3241...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Error occurring , while install magento on win7 === I am getting error , "There has been an error processing your request" when I type http://localhost/magento/index.php in firefox. I am unable to install magento in windows 7. When , i look this error in magento/var/report directory , it gives detail about error "SQLSTATE[28000] [1045] Access denied for user 'root'@'localhost' (using password: YES)" . Please help me in this matter. I am using Magento 1.7.0.0 and xampp 1.7.7 . I tried a lot to solve this error.
0
[ 2, 7019, 10428, 13, 15, 133, 16146, 4723, 17050, 27, 628, 465, 800, 3726, 3726, 31, 589, 1017, 7019, 13, 15, 13, 7, 1887, 63, 74, 40, 7019, 5511, 154, 3772, 7, 76, 31, 1001, 7775, 6903, 15580, 11694, 118, 9473, 17050, 118, 25671, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 disable NetBIOS resolving in C# (Dns.GetHostEntry) === as stated in [MSDN - Dns.GetHostEntry Method (String)][1], _If the DNS query fails, the system may fall back to a NetBIOS name query depending on the configuration of the local computer._ . This is nice thing to know, but I want to disable the NetBios resolving, and there is nothing in MSDN telling what means _depending on the configuration of the local computer_. Do you know what does this phrase mean (so, where I can find the configuration), or how to disable it somewhere else? Thanks [1]: http://msdn.microsoft.com/en-us/library/ms143990.aspx
0
[ 2, 184, 20, 1460, 579, 4275, 10990, 18, 28687, 19, 272, 5910, 13, 5, 43, 2172, 9, 3060, 11694, 18195, 6, 800, 3726, 3726, 28, 1240, 19, 636, 79, 18, 43, 103, 13, 8, 13, 43, 2172, 9, 3060, 11694, 18195, 2109, 13, 5, 11130, 6, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
formating output file after an INCLUDE condition in JCL === i want to create 3 outfiles depending on the below INCLUDE criteria from the input file. In addition i want only part of the record in the output file given by the below 3 BUILD's. The issue now i think is that having multiple BUILD/OUTREC gives a duplicate error. any other way of achieving the same in JCL SORT FIELDS=COPY OUTFIL FILES=01, INCLUDE=(38,8,CH,EQ,C'AMSAM00'), BUILD=(1,4,5:366,8) OUTFIL FILES=02, INCLUDE=(38,8,CH,EQ,C'AMSAM00',AND,390,1,CH,EQ,C'Y'), BUILD=(1,4,5:382,8) OUTFIL FILES=03, INCLUDE=(38,8,CH,EQ,C'AMSAM00',AND,545,4,CH,NE,C'0000'), BUILD=(1,4,5:C'013,',9:545,4)
0
[ 2, 2595, 68, 5196, 3893, 75, 40, 468, 2874, 19, 487, 5316, 800, 3726, 3726, 31, 259, 20, 1600, 203, 70, 16877, 18, 4758, 27, 14, 1021, 468, 9157, 37, 14, 6367, 3893, 9, 19, 848, 31, 259, 104, 141, 16, 14, 571, 19, 14, 5196, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
C++ Octree Container === Ive searched all over the web for an explanation of how an Octree Container works. I can not find any clear cut explanations of how one works. (atleast, that make sense to me...) Does anyone know how to implement an Octree Container? One that has 8 children (or so). And if so, do you mind sharing/explaining the logic... or where I can go to learn how to implement one. Thanks!
0
[ 2, 272, 20512, 9543, 9495, 12147, 800, 3726, 3726, 5568, 9036, 65, 84, 14, 2741, 26, 40, 5764, 16, 184, 40, 9543, 9495, 12147, 693, 9, 31, 92, 52, 477, 186, 1207, 1077, 5764, 18, 16, 184, 53, 693, 9, 13, 5, 721, 255, 2857, 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 to Reset error message using jquery validation? === i want to remove or clear error message and reset jquery validation when i am click on cancel button. here i have given my code : $(document).ready(function(){ var validator = $("#loginForm").validate({ messages: { email:{required: "Please enter email.",email : "Please enter a valid email."}, password:"Please enter password." } }); <form name="loginForm" id="loginForm" method="post" action="javascript:login();"> <div class="login_contain_div"> <div id="login_errors" class="errors"></div> <div class="login_contain_inner"> <span style="font-size: 20px; font-weight: lighter;">Email</span> <input type="text" id="email" name="email" class="inputbg required email" /> <br/> <span style="font-size: 20px; font-weight: lighter;">Password:</span> <input type="password" id="password" name="password" class="inputbg required" /> </div> <div class="login_button_area"> <input type="submit" id="login_submit" class="login_greenbtn button_float_left login_btn_width" name="submit" value="Ok" style="cursor: pointer;" /> <a class="ptr login_greenbtn button_float_right login_btn_width" onClick="$('#cboxClose').click();">Cancel</a> </div> </div> </form>
0
[ 2, 184, 20, 23422, 7019, 2802, 568, 487, 8190, 93, 27999, 60, 800, 3726, 3726, 31, 259, 20, 4681, 54, 1207, 7019, 2802, 17, 23422, 487, 8190, 93, 27999, 76, 31, 589, 10840, 27, 14815, 5167, 9, 235, 31, 57, 504, 51, 1797, 13, 45,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PHP Mysql WHILE loop remove the last seperator === i have this code that get the data from mysql database. <?php $sql = mysql_query( "SELECT * FROM users WHERE name = $name" ); while ( $row = mysql_fetch_array( $sql ) ) { echo $row[id] . '|'; echo $row[name] . '|'; echo $row[add] . ':'; } OUTPUT : 12|jonathan|philippines:14|John|england: ?> how can i remove the last seperator of `:` using while thanks
0
[ 2, 13, 26120, 51, 18, 22402, 133, 5293, 4681, 14, 236, 10332, 106, 3457, 800, 3726, 3726, 31, 57, 48, 1797, 30, 164, 14, 1054, 37, 51, 18, 22402, 6018, 9, 13, 1, 60, 26120, 5579, 18, 22402, 800, 51, 18, 22402, 1, 8190, 93, 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...
Run a .EXE file in MS SQL server === I have been stuck on a research on running an external exe file. What I have so far found was, This can be done using this: EXEC master..xp_cmdshell '"C:\New Folder\test.exe"' And also this must not be directly called in a tiger because it has to wait until the execution is done to complete the tiger. So the encouraged approach for this is to have a scheduled job to poll for the table and call the .exe file from there to without creating any performance issues. So far I have accepted it and working on it. So, before trying on this I am working on each part that has to be learned before implementing. I am testing the above piece of code keeping the database as master. I have tried several more. EXEC master..xp_cmdshell '"C:\New Folder\r.rar"' EXEC master..xp_cmdshell '"C:\New Folder\text.text"' **So, I am thinking about this xp_cmdshell as a normal command prompt.I was expecting to be visible the exe file opening and opening of the tet file and the rar file. But its not working.** I have given the above details to tell my approach, Please give me a feed back if you have a better approach in your earlier experiences. Thanks in advance
0
[ 2, 485, 21, 13, 9, 1706, 62, 3893, 19, 4235, 4444, 255, 8128, 800, 3726, 3726, 31, 57, 74, 4549, 27, 21, 527, 27, 946, 40, 4886, 1396, 62, 3893, 9, 98, 31, 57, 86, 463, 216, 23, 15, 48, 92, 44, 677, 568, 48, 45, 1396, 3319...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 label on USB drive in OSX Terminal === I am trying to write a program in Python that will rename a USB drive (from the standard "USB DISK" to my custom "MYDISK"). However, I can't find any way to do this neither in Python nor in OSX Terminal. (I figured, if I can make it work in Terminal, I can simply use os.system("command") in Python). The USB drive is a FAT32 formatted flash drive on filesystem /dev/disk2s1, and it is by default mounted on /Volumes/USB DISK What I have tried so far: (from http://techbu.com/2009/06/28/renaming-usb-drive-labels-in-linux) sudo umount /Volumes/USB\ DISK ## Works fine sudo mlabel -i /dev/disk2s1 ::MYDISK ## Command not found! It seems that the "mlabel" command is not found in OSX Terminal. Is there an alternative?
2
[ 2, 753, 1899, 27, 182, 220, 1493, 19, 13, 759, 396, 3855, 800, 3726, 3726, 31, 589, 749, 20, 2757, 21, 625, 19, 20059, 30, 129, 302, 7259, 21, 182, 220, 1493, 13, 5, 2665, 14, 1236, 13, 7, 267, 220, 8582, 7, 20, 51, 5816, 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...
Difference between gcc and Microsoft preprocessor === I discovered that Microsoft Visual Studio compiler and gcc preprocess the following small snippet differently: # define M3(x, y, z) x + y + z # define M2(x, y) M3(x, y) # define P(x, y) {x, y} # define M(x, y) M2(x, P(x, y)) M(a, b) 'gcc -E' gives the following: a + {a + b} , while 'cl /E' issues a warning about missing macro argument and produces the following output: a + {a, b} + It seems that commas that came from nested macro expansions are not considered to be argument separators. Unfortunately, I found no description of the algorithm implemented in cl preprocessor, and so I'm not sure that my suggestion is correct. Does anyone know how cl preprocessor works and what's the difference between its algorithm and gcc's? And how the observed behaviour can be explained?
0
[ 2, 2841, 128, 489, 3384, 17, 7099, 782, 16835, 248, 800, 3726, 3726, 31, 1848, 30, 7099, 3458, 1120, 21486, 17, 489, 3384, 782, 16835, 14, 249, 284, 13, 29061, 12670, 45, 6926, 9267, 307, 240, 5, 396, 15, 13, 93, 15, 2052, 6, 99...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 drawable folder for large screens === I have images in drawable-hdpi(big images) and in drawable-mdpi(small images) I opened my app on Kindle fire (its get layout from layout-large) and it use images from drawable-mdpi , is any way to let app to get images from drawable-hdpi when screen size is large? thanks
0
[ 2, 13005, 2003, 579, 19294, 26, 370, 14236, 800, 3726, 3726, 31, 57, 3502, 19, 2003, 579, 8, 252, 43, 2159, 5, 6407, 3502, 6, 17, 19, 2003, 579, 8, 79, 43, 2159, 5, 15988, 3502, 6, 31, 520, 51, 4865, 27, 825, 413, 535, 13, 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...
ASIFormdatarequest Unable to create request (bad url?) error === I am hitting one register api using asihttprequest.That api redirect to some other urls after successful register,but i am getting following error "Error Domain=ASIHTTPRequestErrorDomain Code=5 "Unable to create request (bad url?)" UserInfo=0x8a32210 {NSLocalizedDescription=Unable to create request (bad url?)}" Thanks in advance.
0
[ 2, 28, 13537, 18768, 99, 10351, 2343, 20, 1600, 3772, 13, 5, 5989, 287, 6362, 60, 6, 7019, 800, 3726, 3726, 31, 589, 6687, 53, 2243, 21, 2159, 568, 28, 49, 21127, 99, 10351, 9, 887, 21, 2159, 302, 14706, 20, 109, 89, 13, 911, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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-dev: Using variable from appDelegate in MapViewController === So in my appDelegate I have an array of events, like this: AppDelegate.m #import "AppDelegate.h" #import "ListViewController.h" #import "Event.h" #import <RestKit/RestKit.h> @implementation AppDelegate{ NSMutableArray *events; /* for test data */ NSMutableArray *titles; } @synthesize window = _window; ... And I want to acces this events array in a viewcontroller like so: MapViewController.m #imports ... ... -(void) viewDidLoad{ [super viewDidLoad]; [worldView addAnnotation:[ACCES_EVENTS_HERE objectAtIndex:int]; // <------ NSLog(@"Loadded the view for MapViewController"); } How do I do this? And secondly, is there a better place to add the events on the map then viewDidLoaD? (The events will come from a database so there will be lots of events)
0
[ 2, 21024, 8, 14438, 45, 568, 7612, 37, 4865, 24249, 3322, 19, 2942, 4725, 12898, 1252, 800, 3726, 3726, 86, 19, 51, 4865, 24249, 3322, 31, 57, 40, 7718, 16, 963, 15, 101, 48, 45, 4865, 24249, 3322, 9, 79, 6926, 1660, 1993, 13, 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...
Javascript event on click on dropdown arrow === Is there an event which fires or can I write a custom event to be fired when user selects dropdown anchor? ![enter image description here][1] I need to remove `Top` from the dwopdown list I get from the web service. Once the user selects on any item it should be back to `Top International` again. ![enter image description here][2] [1]: http://i.stack.imgur.com/d0wxi.png [2]: http://i.stack.imgur.com/vvhb4.png
0
[ 2, 8247, 8741, 807, 27, 10840, 27, 2804, 2968, 7409, 800, 3726, 3726, 25, 80, 40, 807, 56, 11327, 54, 92, 31, 2757, 21, 5816, 807, 20, 44, 3899, 76, 4155, 5407, 18, 2804, 2968, 6265, 60, 13, 187, 2558, 13679, 1961, 5318, 235, 50...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Horizontal scrollview button focus === I am working on an android application where i am implementing horizontal scroll view. I have come across two issues and cant really figure out how to fix them. They are: 1.when the horizontal scroll view reaches its left most or right most end, the left/right image button should become inactive. 2.When i click on a button(which appears half) in horizontal scroll view, the button should appear at the center with full visibility. The below is the screen shot: ![Screen Shot][1] [1]: http://i.stack.imgur.com/k3Mic.png
0
[ 2, 10095, 12159, 4725, 5167, 1776, 800, 3726, 3726, 31, 589, 638, 27, 40, 13005, 3010, 113, 31, 589, 17333, 10095, 12159, 1418, 9, 31, 57, 340, 464, 81, 1549, 17, 2973, 510, 1465, 70, 184, 20, 6098, 105, 9, 59, 50, 45, 137, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to initialize a collection property in a custom WPF control === I have a custom WPF control base class. This base class registers a custom property with the type "List<"some own type">". How can I initialize the property for design time? There should always be 8 objects in the list and the user should by able to modify this objects. I have tried to pass a default value with the PropertyMetadata object, but the collection shown in the property editor is always empty. public class CustomPropertyTestBase : UserControl { static CustomPropertyTestBase() { List<object> defaultValue = new List<object>(new object[8]); MyCustomObjectsProperty = DependencyProperty.Register("MyCustomObjects", typeof(List<object>), typeof(CustomPropertyTestBase), new PropertyMetadata(defaultValue)); } public static DependencyProperty MyCustomObjectsProperty; [Category("MyCustomProperties")] public List<object> MyCustomObjects { get; set; } }
0
[ 2, 184, 20, 2104, 2952, 21, 1206, 1354, 19, 21, 5816, 619, 7721, 569, 800, 3726, 3726, 31, 57, 21, 5816, 619, 7721, 569, 1000, 718, 9, 48, 1000, 718, 2243, 18, 21, 5816, 1354, 29, 14, 1001, 13, 7, 5739, 1, 7, 3220, 258, 1001, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 find xcart page === in our application we find a page like below domainname.com/store_page.php In the root folder, we can see store_page.php file. Inside that page, it is loading that page from other location $smarty->assign('main','store_page'); We are unable to track where this 'store_page' is coming from. We want to edit meta titles and other values in that store page. Can someone help?
0
[ 2, 2343, 20, 477, 993, 1367, 38, 2478, 800, 3726, 3726, 19, 318, 3010, 95, 477, 21, 2478, 101, 1021, 4603, 7259, 9, 960, 118, 16828, 1, 6486, 9, 26120, 19, 14, 5900, 19294, 15, 95, 92, 196, 1718, 1, 6486, 9, 26120, 3893, 9, 57...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SD-SPI.C for MPLAB C 18 Compiler === I am trying to write a c code to read data from a text file in a SD Card and display it on a LCD screen, i use PIC 18f97j60, and use MP-LAB C 18 compiler to compile program,but i can not compile SD-SPI.c in C18 compiler but it compiles in C30 compiler. does any one have a SD-SPI.c file which can compile in 18 c compiler? if so please send it to me. because i tried to correct errors in SD-SPI.c file of microchips, but really difficult to solve all.
0
[ 2, 13, 18, 43, 8, 18, 2159, 9, 150, 26, 4628, 9086, 272, 474, 21486, 800, 3726, 3726, 31, 589, 749, 20, 2757, 21, 272, 1797, 20, 1302, 1054, 37, 21, 1854, 3893, 19, 21, 13, 18, 43, 2056, 17, 3042, 32, 27, 21, 26827, 2324, 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...
php array keys reorder === My array looks like this: array( 0 => 'val', 2 => 'val', 3 => 'val', 5 => 'val', 7 => 'val' ); how can i reorder the keys so it will go like `0, 1, 2, 3, 4` ?
0
[ 2, 13, 26120, 7718, 5534, 302, 7861, 800, 3726, 3726, 51, 7718, 1879, 101, 48, 45, 7718, 5, 713, 800, 1, 13, 22, 3377, 22, 15, 172, 800, 1, 13, 22, 3377, 22, 15, 203, 800, 1, 13, 22, 3377, 22, 15, 331, 800, 1, 13, 22, 3377...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Java : For String values we use the command sendKeys("String"); Similarly what is the command for posting a numeric data to the numeric field === Selenium Java Web Driver: How to pass the numeric data to a numeric field? For String values we use the command sendKeys("String"); Similarly what is the command for posting a numeric data to the numeric field. I am a beginner to this Selenium. Please help me out. Thanks in Advance.
0
[ 2, 8247, 13, 45, 26, 3724, 4070, 95, 275, 14, 1202, 2660, 4237, 18, 5, 7, 11130, 7, 6, 73, 5843, 98, 25, 14, 1202, 26, 15669, 21, 15764, 596, 1054, 20, 14, 15764, 596, 575, 800, 3726, 3726, 23027, 14311, 8247, 2741, 2425, 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...
cURL : pg_query errors in the output === I've been struggling with the following problem for two days, so any help would be greatly appreciated. <br/><br/> **Situation:** the company I'm working for has a website (developed by myself) available through an URL like http://www.mydomain.com. In parallel, one of our suppliers has implemented a service allowing us to consult client information at https://stat.mydomain.com. Accessing this service requires an authentication via a POST form. <br/><br/> **Problem:** I'm currently developing the mobile version of our website using *jQuery Mobile*, and I would like to include the aforementionned service. Yet, even though I can access the server running this service, the .php files are obfuscated, thus preventing any direct change to the code. That's why I thought about using *cURL*. Here are the steps I followed : <ul> <li>Use Fiddler to obtain the header and the parameters required by the server</li> <li>Create and run the following cURL session:</li> </ul> $header = array( 'Accept: text/html,application/xhtml+xml, application/xml;q=0.9,*/*;q=0.8', 'Accept-Encoding: gzip, deflate', 'Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3', 'Connection: keep-alive' ); $settings = array( 'url' => 'http://www.mydomain.com/php/authentification.php', 'referer' => 'http://www.mydomain.com', 'agent' => 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1', 'fields' => 'id_connect=' . urlencode('myid') . '&mdp=' . urlencode('mypassword') . '&md5=', 'cookie' => __DIR__ . '/cookies.txt', 'timeout' => 10 ); $curlopts = array( CURLOPT_URL => $settings['url'], CURLOPT_REFERER => $settings['referer'], CURLOPT_TIMEOUT => $settings['timeout'], CURLOPT_CONNECTTIMEOUT => $settings['timeout'], CURLOPT_USERAGENT => $settings['agent'], CURLOPT_HTTPHEADER => $header, CURLOPT_SSL_VERIFYHOST => false, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_COOKIESESSION => true, CURLOPT_COOKIEJAR => $settings['cookie'], CURLOPT_POST => true, CURLOPT_POSTFIELDS => $settings['fields'] ); $ch = curl_init(); curl_setopt_array($ch, $curlopts); print curl_exec($ch); curl_close($ch); Once connected, I'm properly redirected to https://stat.mydomain.com/php/display.php. Unfortunately, instead of seeing the information, I end up with several errors: Warning: pg_query(): supplied argument is not a valid PostgreSQL link resource in /path/php/fct_admin.php on line 33 Warning: pg_num_rows(): supplied argument is not a valid PostgreSQL result resource in /path/php/fct_admin.php on line 35 Warning: pg_query(): supplied argument is not a valid PostgreSQL link resource in /path/php/fct_admin.php on line 33 Warning: pg_num_rows(): supplied argument is not a valid PostgreSQL result resource in /path/php/fct_admin.php on line 35 Warning: pg_close(): supplied argument is not a valid PostgreSQL link resource in /path/php/fct_check.php on line 211 Knowing that I can connect to the site or forge a request using the Postman extension for Chrome without raising any error, I don't understand what can cause this behavior in cURL. <br/><br/> Thanks in advance to whoever can help me.
0
[ 2, 14320, 13, 45, 13, 9623, 1, 8190, 93, 11908, 19, 14, 5196, 800, 3726, 3726, 31, 22, 195, 74, 7587, 29, 14, 249, 1448, 26, 81, 509, 15, 86, 186, 448, 83, 44, 5629, 13746, 9, 13, 1, 5145, 118, 1, 5145, 118, 1, 13, 1409, 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...
Click jquery menu item using selenium webdriver === I am new to selenium and I am using python but I have a small question on navigating to Jquery menu in Internet Explorer. I would like to navigate to a menu which looks something like this *Tools > Data Load > **Data Load***. I am pasting my HTML code below. I don't know which one to use for clicking on the last menu item Data load which was marked in Bold. Please some one help me. I googled it every where but could not get right answer. <LI class="mainmenu topmenu" sub_menu="1" level="1" jQuery1340790605409="12">Tools <UL style="DISPLAY: none; TOP: 49px; LEFT: 383px" class="mainmenu submenu" jQuery1340790605409="214"> <LI class="mainmenu submenupointer submenu " sub_menu="1" level="2" global_level="1" menu_id="891" jQuery1340790605409="54">Data Load <UL style="DISPLAY: none; TOP: 1px; LEFT: 109px" class="mainmenu subsubmenu" jQuery1340790605409="232"> <LI class="mainmenu subsubmenu" sub_menu="0" level="3" url_path="/Apps/Tools/DataLoad/DataLoad/FileList.asp" jQuery1340790605409="172">Data Load <LI class="mainmenu subsubmenu" sub_menu="0" level="3" url_path="/Apps/Tools/DataLoad/DataExtracts/template.asp" jQuery1340790605409="174">Data Extracts <LI class="mainmenu subsubmenu" sub_menu="0" level="3" url_path="/Apps/Tools/DataLoad/BehaviorMatrix/BehaviorMatrix.asp" jQuery1340790605409="176">Behavior Matrix </LI></UL>
0
[ 2, 10840, 487, 8190, 93, 11379, 9101, 568, 23027, 14311, 2741, 21752, 800, 3726, 3726, 31, 589, 78, 20, 23027, 14311, 17, 31, 589, 568, 20059, 47, 31, 57, 21, 284, 1301, 27, 1775, 13227, 1880, 20, 487, 8190, 93, 11379, 19, 2620, 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...
MS CRM ColumnSet returns additional columns === I execute a retrieve request for email entity in MS CRM 2011: Entity ec = _orgService.Retrieve("email", new Guid("9A28A995-50B5-E111-8BA2-0050568845D9"), new ColumnSet("bcc", "cc")); The question is why crm returns also "**from**" and "**to**" columns?
0
[ 2, 4235, 6186, 79, 7498, 1198, 4815, 1351, 7498, 800, 3726, 3726, 31, 15644, 21, 11917, 3772, 26, 8517, 9252, 19, 4235, 6186, 79, 15606, 9252, 6695, 800, 13, 1, 5583, 11449, 9, 6239, 3272, 195, 5, 7, 62, 8079, 7, 15, 78, 9457, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
When we should we use stream wrapper and socket in PHP? === I don't understand when should we use stream wrapper and socket. Can anyone tell me when should we use stream wrapper and socket in PHP?
0
[ 2, 76, 95, 378, 95, 275, 3766, 28051, 17, 18482, 19, 13, 26120, 60, 800, 3726, 3726, 31, 221, 22, 38, 1369, 76, 378, 95, 275, 3766, 28051, 17, 18482, 9, 92, 1276, 494, 55, 76, 378, 95, 275, 3766, 28051, 17, 18482, 19, 13, 2612...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
share preferences or internal file storage -- Any memory issue? === I want to know which is better for storage purpose: Shared preferences or internal file storage. Which is faster? Is there any memory issue with anyone of them? Thanks,
0
[ 2, 1891, 9808, 18, 54, 3117, 3893, 4326, 13, 8, 8, 186, 1912, 1513, 60, 800, 3726, 3726, 31, 259, 20, 143, 56, 25, 574, 26, 4326, 2131, 45, 2592, 9808, 18, 54, 3117, 3893, 4326, 9, 56, 25, 4233, 60, 25, 80, 186, 1912, 1513, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Finding a file selecting it in finder issue === I am having this script to find a file and select it set filePath to ("filePath.ext" as POSIX file) tell application "Finder" if (exists filePath) then select filePath activate else display alert "File " & filePath & " does not exist" end if end tell it is working perfect well on Mac os x 10.6.x (LION) but when I try to run this script on Mac os x 10.5.x (snow-leopard) it is selecting file but taking too much time. Any suggestion how can I make this code work fine on both versions of Mac. Thanks in advance :)
0
[ 2, 3007, 21, 3893, 20764, 32, 19, 13, 18639, 1513, 800, 3726, 3726, 31, 589, 452, 48, 3884, 20, 477, 21, 3893, 17, 5407, 32, 309, 3893, 8353, 20, 13, 5, 7, 16877, 8353, 9, 1706, 38, 7, 28, 2353, 6742, 3893, 6, 494, 3010, 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...
How do PHP ORMs map results to objects (hydration) === If I run a query simialr to: SELECT * FROM user u LEFT JOIN orders o ON o.user_id=u.id LEFT JOIN payments p ON p.order_id=o.id Resulting in data like: u.id, u.name, o.id, o.item, o.date_time, p.id, p.amount, p.date_time 99 jeff 17 spring 12-12-2012 12 10.99 13-12-2012 99 jeff 18 jam 12-12-2012 13 .99 16-12-2012 99 jeff 19 car 22-12-2012 14 1000 17-12-2012 99 jeff 19 car 22-12-2012 15 1000 18-12-2012 99 jeff 19 car 22-12-2012 16 1000 19-12-2012 So user Jeff has 3 orders, he has made 3 payments towards his car. Give the PHP objects User, Order and Payment and a single DB query - how do they get hydrated? I would like to see pseudo-code, actual php code or the pattern name I should read up on :)
0
[ 2, 184, 107, 13, 26120, 54, 79, 18, 2942, 1736, 20, 3916, 13, 5, 19877, 857, 6, 800, 3726, 3726, 100, 31, 485, 21, 25597, 22367, 192, 139, 20, 45, 5407, 1637, 37, 4155, 287, 225, 1865, 3204, 635, 27, 635, 9, 16704, 1, 1340, 37...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 all values of select with multiple choices on GAE-side? === I have select like below on the client side: <select multiple="multiple" id="reason" class="input-xlarge"> <option value="001">reason1</option> <option value="002">reason2</option> <option value="003">reason3</option> <option value="004">reason4</option> <option value="005">reason5</option> </select> The data is sent to the server with the code below: var reason = $('#reason').val(); $.ajax({ data: {'reason': reason}, ... }); ... And on the server I do: arguments = self.request.arguments() for argument in arguments: if self.request.get(argument): self.response.out.write(argument+': '+self.request.get(argument)+'<br>') In result even when several reasons are chosen, I see: reason[]: 002 How can I get all values selected?
0
[ 2, 184, 20, 164, 65, 4070, 16, 5407, 29, 1886, 10978, 27, 13, 17721, 8, 1416, 60, 800, 3726, 3726, 31, 57, 5407, 101, 1021, 27, 14, 6819, 270, 45, 13, 1, 18, 16964, 1886, 3726, 7, 21531, 5106, 7, 4924, 3726, 7, 24793, 7, 718, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
nginx and uWSGI obtain authentication data in Python === I need to obtain authentication data in my tiny Python app (just one script) from nginx + uWSGI. The authentication must be implemented at the web-server side (nginx, basic auth in nginx.conf for example) not in the Python app and this is important! So, no middleware or similar will help... I suppose uWSGI have to send this data to my Python app via its API or smth.. How can i get this data in my Python script? I need smth like $_SERVER['PHP_AUTH_USER'] in php. Thank you!
0
[ 2, 13, 2723, 108, 396, 17, 13, 14524, 18, 2234, 5545, 27963, 1054, 19, 20059, 800, 3726, 3726, 31, 376, 20, 5545, 27963, 1054, 19, 51, 3228, 20059, 4865, 13, 5, 2759, 53, 3884, 6, 37, 13, 2723, 108, 396, 2754, 13, 14524, 18, 223...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
get resources broadcast reciever === I want my application to launch automatically when my slide opens (Xperia Play). Ive created a broadcast reciever class to get resources of hardkeyboardhidden and navgationhiddden. when a boolean returns true then it start a new activity that will show a string of hello world (not toast)...ive set my reciever in the androidmanifest.xml. But when I run my app, it always go straight to the hello world view even if I did not open my slide. And whenever I open my slide, it does nothing....What did i wrong? Am I missing something? Please show me the correct way of coding my broadcast reciever...
0
[ 2, 164, 2566, 1992, 13, 15110, 5221, 800, 3726, 3726, 31, 259, 51, 3010, 20, 3394, 7499, 76, 51, 6464, 8965, 13, 5, 396, 1432, 549, 418, 6, 9, 5568, 679, 21, 1992, 13, 15110, 5221, 718, 20, 164, 2566, 16, 552, 4237, 2806, 1822, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Excel Maco after SAP Macro === So, I have an excel macro I need to run after a SAP marco is finished. The SAP macro works fine without the inclusion of the Excel macro code. I'm not sure if it is how the sub routines are called because I do not know that much about VBScript. SAP automatically opens the file when it finishes the macro, so it will already be open. I am getting a 800A03EE code right now expecting a ). Could someone please help with this? Here is the full code of the VBS file. http://pastebin.com/HVV7B2Ry
0
[ 2, 20700, 1572, 111, 75, 7508, 9069, 800, 3726, 3726, 86, 15, 31, 57, 40, 20700, 9069, 31, 376, 20, 485, 75, 21, 7508, 7687, 25, 842, 9, 14, 7508, 9069, 693, 1123, 366, 14, 10660, 16, 14, 20700, 9069, 1797, 9, 31, 22, 79, 52, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Multiple camel route processing same file === I have 10 routes defined with 2 of them listed here. The other 8 are identical but the from endpoint is a different dir. Each route picks up a file that is located in the dir and is processed by one groovy class. When one file is dropped into one of the dir it works fine, but when a file is dropped into each of the dir's at the same time each thread seems to go haywire. I do receive logging messages that I have picked up each file, but then it seems like each thread uses one process "beginProcess" because its like all my variables defined in groovy are being changed as each file gets picked up. Im not sure if this makes any sence, but can someone tell me that what I am doing below is legal? Basically can multiple routes call one class and if so whether I am doing that correct? If it is then at least I would know that it has to be in my groovy class(but seeing that it works with one file suggest that its not here, but not assuming that at this point). Thanks much! <camel:camelContext id="myId" xmlns="http://camel.apache.org/schema/spring"> <route> <from uri="file://directoryStructure1/?move=archive&amp;sortBy=ignoreCase:file:name&amp;readLock=markerFile&amp;readLockCheckInterval=5000&amp;readLockTimeout=10m&amp;maxMessagesPerPoll=1" /> <process ref="beginProcess"></process> </route> <route> <from uri="file://directoryStructure2/?move=archive&amp;sortBy=ignoreCase:file:name&amp;readLock=markerFile&amp;readLockCheckInterval=5000&amp;readLockTimeout=10m&amp;maxMessagesPerPoll=1" /> <process ref="beginProcess"></process> </route> </camel:camelContext> <bean id="beginProcess" class="package.groovy.class"> </bean>
0
[ 2, 1886, 15386, 858, 5511, 205, 3893, 800, 3726, 3726, 31, 57, 332, 5050, 2811, 29, 172, 16, 105, 1510, 235, 9, 14, 89, 469, 50, 6323, 47, 14, 37, 241, 3132, 25, 21, 421, 13, 9035, 9, 206, 858, 13267, 71, 21, 3893, 30, 25, 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...
Filtering by Wordpress category id not working === I'm trying to filter my home page loop to 1 post in the category id of 34. I have multiple custom post types with the custom taxonomy ID 34 assigned to them. I can't figure out why this isn't working: <?php query_posts('showposts=1&tag=34'); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
0
[ 2, 25272, 34, 833, 5890, 3230, 4924, 52, 638, 800, 3726, 3726, 31, 22, 79, 749, 20, 11945, 51, 213, 2478, 5293, 20, 137, 678, 19, 14, 3230, 4924, 16, 3608, 9, 31, 57, 1886, 5816, 678, 2551, 29, 14, 5816, 26802, 4924, 3608, 2467,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 session KeyError after navigating and returning from a third party website === I am setting a session key and value and then navigating to a third party site..on return from third party site when I try to read the session key which I had set before, it fails and gives a keyerror.. please help. #Setting the ans_id session key before navigating to Dwolla.com, a third party site if 'ans_id' not in request.session: request.session["ans_id"] = answer_id request.session["ans_id"] = answer_id return redirect("https://www.dwolla.com/oauth/v2/authenticate?client_id=EQ603SQcQA8qA962ZwCITk3NmPSfkZaoJECAfXEFgdTiLHLlzJ&response_type=code&redirect_uri="+settings.APP_URL+"/premiumtoken&scope=send%7Ctransactions%7Cbalance") #Premium token method is called on return from Dwolla.com. def premium_token(request): #retrieving the session key set before answer_id = request.session["ans_id"] #At this point, get the error : KeyError at /premiumtoken Exception Type: KeyError Exception Value: "ans_id"
0
[ 2, 3857, 14541, 3723, 1246, 29992, 75, 1775, 13227, 1880, 17, 2485, 37, 21, 422, 346, 2271, 800, 3726, 3726, 31, 589, 2697, 21, 3723, 1246, 17, 1923, 17, 94, 1775, 13227, 1880, 20, 21, 422, 346, 689, 9, 9, 218, 788, 37, 422, 346...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to get ToolTip binding to work with a ComboBox? === Currently I have a ComboBox defined as: <ComboBox Name="comboItems" ItemsSource="{Binding Path=EnumDataItems}" DisplayMemberPath="Description" ToolTip="{Binding Path=ToolTip}" // never displays the value SelectedValuePath="Value" SelectedValue="{Binding Path=Value}" /> Everything works except the ToolTip. The property that it should bind to; `ToolTip` *does* contain a value. I'm sure of this because when I do the following, I see a result confirming that ToolTip contains a value: <ComboBox Name="comboItems" ItemsSource="{Binding Path=EnumDataItems}" DisplayMemberPath="ToolTip" // I replaced 'Description' with 'ToolTip' ToolTip="{Binding Path=ToolTip}" SelectedValuePath="Value" SelectedValue="{Binding Path=Value}"/> Having replaced `Description` with `ToolTip` I can see that the value of ToolTip is appearing on the screen. However ToolTip="{Binding Path=ToolTip}" still doesn't work. If I attempt to display ToolTip as follows: ToolTip="ToolTip" it just displays the word 'ToolTip'. How can I get `ToolTip` to display a value?
0
[ 2, 184, 20, 164, 5607, 10169, 8728, 20, 170, 29, 21, 22621, 5309, 60, 800, 3726, 3726, 871, 31, 57, 21, 22621, 5309, 2811, 28, 45, 13, 1, 960, 1192, 5309, 204, 3726, 7, 960, 1192, 2119, 79, 18, 7, 3755, 12097, 3726, 7, 1, 2226...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Actionbar how to change view on item click === How can I change view of item in drop down navigation list in action bar on click? After click, I want that displayed item shows another view (in layout it is set as invisible). I've got onNavigationItemSelected method from ActionBar.OnNavigationListener but it does not pass view of the item clicked but just position of item in navigation spinner.
0
[ 2, 1028, 1850, 184, 20, 753, 1418, 27, 9101, 10840, 800, 3726, 3726, 184, 92, 31, 753, 1418, 16, 9101, 19, 2804, 125, 8368, 968, 19, 1028, 748, 27, 10840, 60, 75, 10840, 15, 31, 259, 30, 6115, 9101, 1285, 226, 1418, 13, 5, 108, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
I can't find "Include" method with lambda expression in Entity framework? === I am using entity framework and I can't find include method like in this example: using(ArticleExtractorEntities db=new ArticleExtractorEntities()) { Preference pref= db.Preferences.Include( here i find only the function include with the parameter (string path) and I don't find any other overload so how can I use Include with lambda expression?
0
[ 2, 31, 92, 22, 38, 477, 13, 7, 22640, 7, 2109, 29, 13, 24187, 1803, 19, 9252, 6596, 60, 800, 3726, 3726, 31, 589, 568, 9252, 6596, 17, 31, 92, 22, 38, 477, 468, 2109, 101, 19, 48, 823, 45, 568, 5, 20360, 23631, 150, 262, 899...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Disable/de-activate a custom component with published property === i am working on a custom component in `Delphi -7` for which i have some `published` properties private { Private declarations } FFolderzip ,Fimagezip,Ftextzip,FActivatezipComp : Boolean; FMessagebo : string; published { Published declarations } {component Properties} {#1.Folder Zip} property ZipFolder : Boolean read FFolderzip write FFolderzip default False; {#2.Send imagezip ?} property ZipImage : Boolean read Fimagezip write Fimagezip default False; {#3.text files} property ZipText : Boolean read Ftextzip write Ftextzip default False; {#4.message} property ZipMessage: String read FMessagebo write FMessagebo ; {#5.Activate } property ActivateZipper: Boolean read FActivatezipComp write FActivatezipComp Default false; end; When the user drops the component on the application, `ActivateZipper` properties give the use a option to activate/enable or deactivate/disable the component from executing. The component creates a file so in the constructor i have this, `CreateATextFileProc` will create the file in the application folder.So if i check in the constructor if the `ActivateZipper` is true or false.. i have a `constructor` constructor TUmangMLD.Create(aOwner: TComponent); begin inherited; if ActivateZipper then CreateATextFileProc; end; The `ActivateZipper` is always false even if i set it to true in the object inspector. How can the component be disabled from doing it working with published property?
0
[ 2, 1460, 579, 118, 546, 8, 19516, 1373, 21, 5816, 5912, 29, 467, 1354, 800, 3726, 3726, 31, 589, 638, 27, 21, 5816, 5912, 19, 13, 1, 3436, 7805, 13, 8, 465, 1, 26, 56, 31, 57, 109, 13, 1, 14639, 1, 3704, 932, 13, 1, 932, 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...
No ErrorDocument 500 redirect when using with mod_rewrite === I'm trying to make my own ErrorDocument 500 page while using web.py framework. The problem is that ErrorDocument directive is not working. I have builtin error message instead of my custom one. And also have "Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request" If I change ErrorDocument 500 /cgi-bin/error500.py to ErrorDocument 500 "Blast! It's 500 error it works fine. Also if I set `RewriteEngine off` ErrorDocument redirect works correctly. Thank you for your suggestions. .htaccess: <Files code.py> SetHandler wsgi-script Options ExecCGI FollowSymLinks </Files> <IfModule mod_rewrite.c> RewriteEngine on RewriteBase / RewriteCond %{REQUEST_URI} !^(/.*)+code.py/ RewriteRule ^(.*)$ code.py/$1 [PT] </IfModule> ErrorDocument 500 /cgi-bin/error500.py
0
[ 2, 90, 7019, 28132, 3033, 302, 14706, 76, 568, 29, 7226, 1, 99, 23716, 800, 3726, 3726, 31, 22, 79, 749, 20, 233, 51, 258, 7019, 28132, 3033, 2478, 133, 568, 2741, 9, 6448, 6596, 9, 14, 1448, 25, 30, 7019, 28132, 15626, 25, 52, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
if($variable!='') clarification === if($hOne!='') { echo 'yes'; } else { echo 'no'; } SO for a while i have been using the above code to determine id X variable has been set, now this was working ok until working on a wordpress site (i wont go into too much details) but basically initially the varabile has never been touched and works as intended, if you enter a value and then delete that value it seems to think its been set. a way i got round this is to use the below code, my question is, is there a better way to do this. Cheers if (preg_match('/[A-Za-z]/i', $hone)) { echo 'yes'; } else { echo 'no'; }
0
[ 2, 100, 5, 4403, 8220, 579, 187, 3726, 7, 6, 13, 12078, 4634, 800, 3726, 3726, 100, 5, 4403, 252, 849, 187, 3726, 7, 6, 13, 1, 8117, 13, 22, 1714, 22, 73, 13, 1, 962, 13, 1, 8117, 13, 22, 251, 22, 73, 13, 1, 86, 26, 21, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Access internet on Azure VM === Recentely, I deploy a worker role that it will connect to internet and attemp to access some websites (For example:http://sandboxtechnetstage.redmond.corp.microsoft.com/en-us/library/). It successfully access the websites on my development machine running on emulator. But on the Azure virual machine that I deploy my worker role to, it is not able to access the websites. I try to open the websites on VM browering in IE, it is also not able to. Have u emcounter similar issues? How do u deal with it?
0
[ 2, 1381, 2620, 27, 25715, 13, 20147, 800, 3726, 3726, 1764, 62, 102, 15, 31, 17617, 21, 7444, 597, 30, 32, 129, 6379, 20, 2620, 17, 35, 9577, 20, 1381, 109, 13931, 13, 5, 1106, 823, 45, 21127, 6903, 18, 290, 5309, 6524, 2328, 90...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
`sudo a.out' may give us pure root authority === it's my first post in stack overflow, pls forgive for my poor english. i will try to describe the problem clearly. thinke about this : the administrator allow me to sudo an executable file, e.g. a.out, and assume a.out would load libtt.so when being executed; so , i could build my own libtt.so(of course, i could add some malicious code in it), and move this custom libtt.so to my own directory, e.g. /tmp/bad_lib/ then `sudo LD_LIBRARY_PATH=/tmp/bad_lib a.out' .NOTICE, this equal to "root run a.out with malicious libtt.so". it means that we could be root. i have test this in my debian server. have i described it clearly?
2
[ 2, 13, 1, 18, 18601, 21, 9, 1320, 22, 123, 590, 182, 4267, 5900, 1959, 800, 3726, 3726, 32, 22, 18, 51, 64, 678, 19, 7566, 20285, 15, 12443, 18, 8591, 26, 51, 1696, 486, 9, 31, 129, 1131, 20, 4996, 14, 1448, 2885, 9, 277, 62...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Escaping quotes === I'm trying to save a String to a database, I need the quotes to be part of the string: String password = "\"foo\""; I am expecting the value in the database to be `"foo"` (quotes included) However the slash is also stored. Should the slash be just a escape character and not be saved when compiled?
0
[ 2, 14700, 18901, 800, 3726, 3726, 31, 22, 79, 749, 20, 2079, 21, 3724, 20, 21, 6018, 15, 31, 376, 14, 18901, 20, 44, 141, 16, 14, 3724, 45, 3724, 20884, 800, 13, 7, 1, 7, 4120, 111, 1, 7, 7, 73, 31, 589, 7752, 14, 1923, 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...
CSS Bug with inline ul li in IE7 === I've got a little issue with a inline menu, bug only appears in ie7. The only menu li that has another menu underneath it, is not inline with the rest, the rest seem to appear pushed down. HTML <div id="topnav"> <ul id="jsddm"> <li id=""> <a id="" href="/">Home</a> </li> <li id=""> <a href="/about.aspx">About</a> <ul style="visibility: hidden;"> <li> <a href="/about/board.aspx">Board</a> </li> <li> <a href="/about/contact.aspx">Contact</a> </li> </ul> </li> <li> <a href="/practices.aspx">Practices</a> </li> <li> <a href="/how-we-work.aspx">How we work</a> </li> <li> <a href="/patients.aspx">Patients</a> </li> <li> <a href="/news-links.aspx">News &amp; Links</a> </li> <li> <a href="/link.aspx">Link</a> </li> </ul> </div> CSS #jsddm { margin: 0; padding: 0; width: 100%; } #jsddm li { display: inline-block; list-style: none; font: 12px Tahoma, Arial; width: 100px; text-align: center; } *+html #jsddm li { display:inline } * html #jsddm li { display:inline } #jsddm ul li { display: block; font: 12px Tahoma, Arial; } #jsddm li ul { margin: 0 0 0 0; padding: 0; position: absolute; visibility: hidden; border-top: 0px solid white; *margin: 0 0 0 -50px; /* IE 7 and below */ /* margin: 0 0 0 -50px\9; IE 8 and below */ } #jsddm ul li ul li { font: 12px Tahoma, Arial } #jsddm li a { display: block; background: #009EE0; padding: 0; line-height: 28px; text-decoration: none; border-right: 0px solid white; width: 70px; color: #EAFFED; white-space: nowrap; font-weight: bold; width: 100%; } #jsddm li a:hover { background: #1A4473} #jsddm li ul li { float: none; *margin: -2px 0 0 0; *padding:0; } +html #jsddm li ul li { } #jsddm li ul li a { width: auto; background: #009EE0 font-weight: bold; } #jsddm li ul li a:hover { background: #0E559C } It uses a jquery function to display the dropdownmenu but it does'nt effect the static html/css. Thanks.
0
[ 2, 272, 18, 18, 6256, 29, 19, 1143, 13, 1287, 2093, 19, 13, 660, 465, 800, 3726, 3726, 31, 22, 195, 330, 21, 265, 1513, 29, 21, 19, 1143, 11379, 15, 6256, 104, 1780, 19, 13, 660, 465, 9, 14, 104, 11379, 2093, 30, 63, 226, 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...
duplicate symbol error in Objective-C and Xcode === I am getting the following error when trying to compile a simple program I wrote (a cipher). I understand that I have a duplicate symbol _OBJC_METACLASS_$_Cipher, but I am unsure of what is happening to cause this. I tried to check to see if I accidentally imported stuff twice, but all was good. Any help is much appreciated! :) Ld "/Users/Lukas/Library/Developer/Xcode/DerivedData/Caesar_Shift-drfzwlpgygkbcifoefghycamkoya/Build/Products/Debug-iphonesimulator/Caesar Shift.app/Caesar Shift" normal i386 cd "/Users/Lukas/Documents/Programming/iPhone Applications/Caesar Shift" setenv MACOSX_DEPLOYMENT_TARGET 10.6 setenv PATH "/Developer/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Developer/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk -L/Users/Lukas/Library/Developer/Xcode/DerivedData/Caesar_Shift-drfzwlpgygkbcifoefghycamkoya/Build/Products/Debug-iphonesimulator -F/Users/Lukas/Library/Developer/Xcode/DerivedData/Caesar_Shift-drfzwlpgygkbcifoefghycamkoya/Build/Products/Debug-iphonesimulator -filelist "/Users/Lukas/Library/Developer/Xcode/DerivedData/Caesar_Shift-drfzwlpgygkbcifoefghycamkoya/Build/Intermediates/Caesar Shift.build/Debug-iphonesimulator/Caesar Shift.build/Objects-normal/i386/Caesar Shift.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=50100 -framework UIKit -framework Foundation -framework CoreGraphics -o "/Users/Lukas/Library/Developer/Xcode/DerivedData/Caesar_Shift-drfzwlpgygkbcifoefghycamkoya/Build/Products/Debug-iphonesimulator/Caesar Shift.app/Caesar Shift" ld: duplicate symbol _OBJC_METACLASS_$_Cipher in /Users/Lukas/Library/Developer/Xcode/DerivedData/Caesar_Shift-drfzwlpgygkbcifoefghycamkoya/Build/Intermediates/Caesar Shift.build/Debug-iphonesimulator/Caesar Shift.build/Objects-normal/i386/CaesarShiftViewController.o and /Users/Lukas/Library/Developer/Xcode/DerivedData/Caesar_Shift-drfzwlpgygkbcifoefghycamkoya/Build/Intermediates/Caesar Shift.build/Debug-iphonesimulator/Caesar Shift.build/Objects-normal/i386/CaesarShiftAppDelegate.o for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
0
[ 2, 19429, 4678, 7019, 19, 7038, 8, 150, 17, 993, 9375, 800, 3726, 3726, 31, 589, 1017, 14, 249, 7019, 76, 749, 20, 26561, 21, 1935, 625, 31, 738, 13, 5, 58, 23525, 6, 9, 31, 1369, 30, 31, 57, 21, 19429, 4678, 13, 1, 4995, 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...
Windows OpenFileDialog with more than one file type === I want to open a Windows OpenFileDialog with two possible selections: foo*bar.xml *.xml The file name wildcard is specified with the FileName property but it applies to every file selection specified with the Filter property. With the Filter property, users can select more than one set of file _types_, but is there a way to specify different file _names_ in one dialog? Paul
0
[ 2, 1936, 368, 16877, 4286, 5567, 29, 91, 119, 53, 3893, 1001, 800, 3726, 3726, 31, 259, 20, 368, 21, 1936, 368, 16877, 4286, 5567, 29, 81, 938, 3155, 18, 45, 4310, 111, 2483, 1850, 9, 396, 8184, 1637, 9, 396, 8184, 14, 3893, 204...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Programatically install .apk file located in /res/raw === I have stored a .apk file for another app in my /res/raw directory and wish to give the user a prompt to install it. Here's my current code: Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(new File("android.resource://" + getPackageName() + "/res/raw/myapk.apk")), "application/vnd.android.package-archive"); startActivity(intent); However, when the intent runs, I get a Parse error: `There is a problem parsing the package.` The .apk file is the one created by eclipse in the /bin directory when I run the other application. How would I accomplish this programmatic local install correctly?
0
[ 2, 625, 721, 8438, 16146, 13, 9, 2552, 197, 3893, 335, 19, 13, 118, 99, 18, 118, 12404, 800, 3726, 3726, 31, 57, 8214, 21, 13, 9, 2552, 197, 3893, 26, 226, 4865, 19, 51, 13, 118, 99, 18, 118, 12404, 16755, 17, 2536, 20, 590, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
c# Find registry key value and return registry key value path === I have a code which search registry key value in specific key path. In registry key `SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}` find all keys with `0000 , 0001 , 0002 , 0003` and so on at the end of registry key. `{4D36E972-E325-11CE-BFC1-08002BE10318}` . In each key ( for example `0007` ) are subkey called `NetCfgInstanceId` which holds network interface card ID value , like this `{C80949A4-CEDA-4F29-BFE2-059856D7F745}` . If finds value, method returns key path ! Problem is an error `Cannot convert type 'char' to 'string' ` in foreach (string key_value in key.GetValue("NetCfgInstanceId").ToString()) Full code is public string key_path(RegistryKey root, string root_path, string search_key) { string path = string.Empty; foreach (string keyname in root.GetSubKeyNames()) { try { using (RegistryKey key = root.OpenSubKey(keyname, true)) { foreach (string key_value in key.GetValue("NetCfgInstanceId").ToString()) { if (key_value == search_key) { string reg_path = (string)key.GetValue("NetCfgInstanceId"); path = reg_path; } else { path = "Can't find key !"; } } } } catch (System.Security.SecurityException) { //Do nothing !!! } } return path; } private void kryptonButton4_Click(object sender, EventArgs e) { var answer = key_path(Registry.LocalMachine, @"SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}", "{C80949A4-CEDA-4F29-BFE2-059856D7F745}"); MessageBox.Show(answer); } How can solve this problem ? Cheers and thank's for advance !
0
[ 2, 272, 5910, 477, 18269, 1246, 1923, 17, 788, 18269, 1246, 1923, 2013, 800, 3726, 3726, 31, 57, 21, 1797, 56, 2122, 18269, 1246, 1923, 19, 1903, 1246, 2013, 9, 19, 18269, 1246, 13, 1, 10724, 1, 17657, 12898, 3554, 1, 12898, 1, 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...
open and close modal window on hover and close when out of focus === I am using fancybox as my modal window. I was able to trigger the modal window to open on hover, but I also want it to close the window when the link is not being hovered over (out of focus?). $("a.mini-view").fancybox().hover(function() { $(this).click(); }); Any help is appreciated.
0
[ 2, 368, 17, 543, 13, 20756, 1463, 27, 21350, 17, 543, 76, 70, 16, 1776, 800, 3726, 3726, 31, 589, 568, 12251, 5309, 28, 51, 13, 20756, 1463, 9, 31, 23, 777, 20, 7286, 14, 13, 20756, 1463, 20, 368, 27, 21350, 15, 47, 31, 67, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Domain Driven Design: Is this overkill? === I have a Domain that I generate using Entity Developer. This creates all of my Entities and my Database tables. I use NHibernate to populate my Entities which are exposed via Repositories. I then have a services layer that aggregates the Repositories into useful services. This layer is used in two ways. One, I use services as my only means of communication to and from my web layer and I want to someday use the services for WCF. Right now, I'm working on my web layer and I'm trying to figure out the best way to communicate with my services. My services are currently returning Entities. My web layer is grabbing these Entities via the services in the controllers. This is probably not very DRY/DDD. I'm assuming my services layer needs to interface via DTO's. DTO's would be perfect for my WCF services. As for my Web layer, I'm assuming that I would take the DTO's that are returned from my services layer and I would want to map those to View Models (I'm using ASP.NET MVC 3). So this is what my architecture would end up looking like: Domain Entities Repository Interfaces Infrastructure NHibernate Concrete Repositories Services DTO's Concrete Services Service Interfaces IIS hosted WCF Website ViewModels And I would either use Automapper or ValueInjecter to do my mappings (probably ValueInjector due to the ability to flatten and unflatten my Entities/DTO's. So is this overkill? The system I'm using this architecture is quite large (I'm rewritting everything). Am I doing it right? Everything is decoupled dependency-wise with Ninject because I could see wanting to change out any part of the system at any time. Any thoughts, ideas or criticism is very welcome and appreciated.
0
[ 2, 4603, 5355, 704, 45, 25, 48, 84, 7577, 60, 800, 3726, 3726, 31, 57, 21, 4603, 30, 31, 7920, 568, 9252, 10058, 9, 48, 9695, 65, 16, 51, 12549, 17, 51, 6018, 7484, 9, 31, 275, 12109, 15191, 8820, 20, 1675, 12383, 51, 12549, 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...
Is there a better way of writing the following SQL? === is there a more concise way to write the following code in MySQL and not just by using a loop in a programming language? table_vw has many many rows and several columns and the sth column has value between 0 and 7 table_vw sth sth_else sth_else ... 7 . . 6 . . 5 . . 4 . . 3 . . 2 . . 1 . . 0 . . ( SELECT * FROM table_vw WHERE sth = 7 LIMIT 12 ) UNION ( SELECT * FROM table_vw WHERE sth = 6 LIMIT 12 ) UNION ( SELECT * FROM table_vw WHERE sth = 5 LIMIT 12 ) UNION ( SELECT * FROM table_vw WHERE sth = 4 LIMIT 12 ) UNION ( SELECT * FROM table_vw WHERE sth = 3 LIMIT 12 ) UNION ( SELECT * FROM table_vw WHERE sth = 2 LIMIT 12 ) UNION ( SELECT * FROM table_vw WHERE sth = 1 LIMIT 12 ) UNION ( SELECT * FROM table_vw WHERE sth = 0 LIMIT 12 )
0
[ 2, 25, 80, 21, 574, 161, 16, 1174, 14, 249, 4444, 255, 60, 800, 3726, 3726, 25, 80, 21, 91, 29455, 161, 20, 2757, 14, 249, 1797, 19, 51, 18, 22402, 17, 52, 114, 34, 568, 21, 5293, 19, 21, 3143, 816, 60, 859, 1, 710, 499, 6...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to specify an arbitrary dummy variable contrast in R? === I know that R automatically creates dummy variables from categorical values, but it also automatically chooses the reference value (I think alphabetically?). How do I specify a different value to be the reference without changing the names of the values? I realize I could probably relabel the factors a,b,c... in the order I prefer, but that seems kind of kludgey to me. Just to be clear, I'll make up an example. Let's say the factor is **color** and the values are *red*, *blue*, *green*, and *yellow*. mod.lm <- lm(preference ~ color, data = flowers) The intercept in this case would be for the case **color** = *blue*, but I want to make it *yellow*. How would I go about doing that?
0
[ 2, 184, 20, 19077, 40, 17237, 26660, 7612, 3710, 19, 761, 60, 800, 3726, 3726, 31, 143, 30, 761, 7499, 9695, 26660, 12157, 37, 13, 14375, 4272, 4070, 15, 47, 32, 67, 7499, 3538, 18, 14, 2801, 1923, 13, 5, 49, 277, 27169, 102, 60...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to use crystal reports in visual studio 2010 === I am developing c# application using visual studio 2010.. Now i want to use crystal report in my project but I am using Visual studio 2010 first time.. So when I add crystal report in project then it creates .mht file and ask me to download SAP crystal reports.. [http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp][1] Several downloading options as shown in above link.. I have tried by downloading several setups which includes 1.SAP Crystal Reports, version for Visual Studio 2010 - Click Once 2.SAP Crystal Reports, version for Visual Studio 2010 - Click Once (32 Bit) But after installation of this still no effect in visual studio and still asking me for download.. One more thing I want mention that my system is of 32 bit thats why i cant go for 64b bit.. [1]: http://www.businessobjects.com/jump/xi/crvs2010/us2_default.asp
0
[ 2, 184, 20, 275, 4282, 2813, 19, 3458, 1120, 498, 800, 3726, 3726, 31, 589, 3561, 272, 5910, 3010, 568, 3458, 1120, 498, 9, 9, 130, 31, 259, 20, 275, 4282, 1330, 19, 51, 669, 47, 31, 589, 568, 3458, 1120, 498, 64, 85, 9, 9, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Shared lock on a shared file descriptor === Can we use both `fcntl` locking and `flock` locking (not simultaneously) on a shared file descriptor, if we want to share a lock between threads/processes?
0
[ 2, 2592, 3991, 27, 21, 2592, 3893, 121, 8741, 248, 800, 3726, 3726, 92, 95, 275, 156, 13, 1, 7061, 2877, 255, 1, 17538, 17, 13, 1, 410, 3966, 1, 17538, 13, 5, 1270, 6888, 6, 27, 21, 2592, 3893, 121, 8741, 248, 15, 100, 95, 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, 0, 0, 0, 0, 0, 0...
New line with ConfigParser - PYTHON === I have a config file using configParser:<br> [ section one ]<br> one = Y,Z,X <br><br> [EG 2]<br> ias = X,Y,Z<br> My program works fine reading and proccessing these values. However some of the sections are going to be quite large, I need a config file that will allow the values to be on a new line, like this: [EG SECTION]<br> EG=<br> item 1 <br> item 2 <br> item 3<br> etc... In my code i have a simple function that takes a delimeter (or seperator) of the values using string.slit() obviously now set to comma. I have tried the escape string of "\n" which does not work. Does anyone know if this is possible with pythons config parser?<BR> http://docs.python.org/library/configparser.html #We need to extract data from the config def getFromConfig(currentTeam, section, value, delimeter): cp = ConfigParser.ConfigParser() fileName = getFileName(currentTeam) cp.read(fileName) try: returnedString = cp.get(section, value) except: #The config file could be corrupted print( "Error reading " + fileName + " configuration file." ) sys.exit(1) #Stop us from crashing later if delimeter != "": #We may not need to split returnedList = returnedString.split(delimeter) return returnedList I would use for this : taskStrings = list(getFromConfig(teamName, "Y","Z",","))
0
[ 2, 78, 293, 29, 13, 14093, 2816, 3574, 4104, 13, 8, 20059, 800, 3726, 3726, 31, 57, 21, 13, 14093, 2816, 3893, 568, 13, 14093, 2816, 3574, 4104, 45, 1, 5145, 1, 636, 1050, 53, 13, 500, 1, 5145, 1, 53, 800, 13, 93, 15, 380, 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 get ubuntu's upstart to update log in realtime? === I have a daemon process I would like to run, with stdout captured to a log file. I have the following upstart conf file in place: start on (local-filesystems and net-device-up IFACE!=lo) exec /home/ubuntu/daemon.py >> /tmp/log.log 2>&1 respawn My problem is that the log file is only actually updated with all of the output once the program crashes or is stopped. I would like to be able to debug in real-time, such as the way apache's error logs are updated and can be monitored with `tail`. Is there a way to accomplish this?
0
[ 2, 184, 20, 164, 287, 12968, 2473, 22, 18, 71, 13680, 20, 11100, 6738, 19, 683, 891, 60, 800, 3726, 3726, 31, 57, 21, 13127, 953, 31, 83, 101, 20, 485, 15, 29, 354, 43, 1320, 2411, 20, 21, 6738, 3893, 9, 31, 57, 14, 249, 71,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is a satisfiable FOL-sentence a prime event structure always satisfiable in a regular trace event structure? === Suppose first-order logic sentence is satisfiable in the class of prime event structure. Is it also satisfiable in some regular trace event structure? (for all notions I'm referring to Madhusudan's paper "Model checking trace event structures").
0
[ 2, 25, 21, 847, 403, 1707, 579, 8938, 8, 18, 2291, 2940, 21, 1621, 807, 1411, 550, 847, 403, 1707, 579, 19, 21, 1290, 5565, 807, 1411, 60, 800, 3726, 3726, 5787, 64, 8, 7861, 7085, 5123, 25, 847, 403, 1707, 579, 19, 14, 718, 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...
jQuery replace marked text === I am trying to replace specific highlighted(marked) text from element. This is how I get the highlighted text so far: var markArea = $('.ElementText textarea').get(0); var text = markArea.value.substring(markArea.selectionStart, markArea.selectionEnd); So if I have something like this in the textarea: "apple banana apple orange" and mark the third word (apple) I want to replace exactly what I have marked without any other occurrences of "apple" in the textarea. Is there a way to specify the start and end area where the code should look for replacement in the string?
0
[ 2, 487, 8190, 93, 3934, 2739, 1854, 800, 3726, 3726, 31, 589, 749, 20, 3934, 1903, 12528, 5, 22048, 6, 1854, 37, 4520, 9, 48, 25, 184, 31, 164, 14, 12528, 1854, 86, 463, 45, 4033, 943, 17760, 800, 5579, 5, 22, 9, 27567, 11969, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Backbone JS - updating parent model collection on nested child model change === I have a parent model with a collection of child models. For each child model, I want to render a form with the data, then update the parent model when a change happens on any of the forms: In the parent model view: render: function () { _.each(this.model.get('myChildModelCollection').models, function (myChildModel) { var childForm = new ChildFormView({model: myChildModel}) childForm.model.on('change', function () { //DO SOMETHING HERE TO UPDATE THE PARENT MODEL COLLECTION }) this.$("#child-list").append(childForm.render().el); }); } The change event is getting triggered, but I don't know the correct way to reference the right child model in the parent model collection.
0
[ 2, 24036, 487, 18, 13, 8, 71, 43, 1880, 4766, 1061, 1206, 27, 5618, 69, 850, 1061, 753, 800, 3726, 3726, 31, 57, 21, 4766, 1061, 29, 21, 1206, 16, 850, 2761, 9, 26, 206, 850, 1061, 15, 31, 259, 20, 16535, 21, 505, 29, 14, 10...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
HTML 5 audio tag - sourcing from PHP or Java servlet? === I need to stream audio from a location that can't be directly accessible to a client app. To this end Im investigating using a Java servlet or PHP to create the stream on an as needed basis. Anyone done this before? How would this handle skip / seek commands from the &lt;audio&gt; tag? Is there any way to prevent a client from caching the audio?
0
[ 2, 13, 15895, 331, 4023, 3383, 13, 8, 13, 27028, 37, 13, 26120, 54, 8247, 13, 10321, 1336, 60, 800, 3726, 3726, 31, 376, 20, 3766, 4023, 37, 21, 1474, 30, 92, 22, 38, 44, 1703, 7342, 20, 21, 6819, 4865, 9, 20, 48, 241, 797, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...