unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
Ice4j: What to do once an Agent has finished processing? === I am trying to use ice4j in a simple application, but I don't know what to do once an ice Agent finishes processing. Can an application actually write to an IceMediaStream? If not, how can I gather the information to create a stream that I can write to? There is very little documentation for ice4j, and reading through the JUnit tests didn't help either.
0
[ 2, 1392, 300, 728, 45, 98, 20, 107, 382, 40, 2267, 63, 842, 5511, 60, 800, 3726, 3726, 31, 589, 749, 20, 275, 1392, 300, 728, 19, 21, 1935, 3010, 15, 47, 31, 221, 22, 38, 143, 98, 20, 107, 382, 40, 1392, 2267, 13625, 5511, 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...
CString as return value === I wrote little wrapper for XML Lite library to use it in my MFC project. Can I use this code? CString GetValue() { const WCHAR* pwszValue = NULL; UINT cwchValue = 0; m_pReader->GetValue(&pwszValue, &cwchValue); return CString(pwszValue); } Or shoud I use CString& parameter in GetValue method signature?
0
[ 2, 272, 11130, 28, 788, 1923, 800, 3726, 3726, 31, 738, 265, 28051, 26, 23504, 13, 10601, 1248, 20, 275, 32, 19, 51, 307, 7061, 669, 9, 92, 31, 275, 48, 1797, 60, 272, 11130, 164, 15165, 5, 6, 13, 1, 11608, 38, 619, 5433, 2483...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Analogue of capistrano/fabric for common lisp + restas + huchentoot === Does exists any deployment tool for cl like capistrano(ruby)/fabric(python)?
0
[ 2, 21574, 16, 2605, 702, 17555, 118, 14364, 2988, 26, 757, 2093, 3401, 2754, 760, 472, 2754, 4429, 5549, 8175, 38, 800, 3726, 3726, 630, 5636, 186, 10475, 5607, 26, 10842, 101, 2605, 702, 17555, 5, 1820, 779, 6, 118, 14364, 2988, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
Giving Twitter Bootstrap Modals Dynamic IDs with PHP === I am trying to generate unique IDs for each modal, as I will be loading in an address specific map to each modal. My issue is that when I click the link: <a data-toggle="modal" href="#myModal_<? echo $meeting['ID'] ?>" ><? echo $meeting['Address'].", ".$meeting['City'] ?></a> it tries to take me to mypage.php/#myModal_8 (or whatever the given ID is, instead of pulling up that specific modal. The modals work great is I don't have the ID attached, but they won't load dynamic content that way. <a data-toggle="modal" href="#myModal_<? echo $meeting['ID'] ?>" ><? echo $meeting['Address'].", ".$meeting['City'] ?></a> </p> <div class="modal hide" id="#myModal_<? echo $meeting['ID'] ?>"> <div class="modal-body"> <? echo $meeting['Address'] ?> </div> <div class="modal-footer"> <a href="#" class="btn" data-dismiss="modal">Close</a> </div> </div> Any help on this would be much appreciated. Thank you!
0
[ 2, 1438, 10623, 5894, 16514, 13, 20756, 18, 7782, 13, 9178, 29, 13, 26120, 800, 3726, 3726, 31, 589, 749, 20, 7920, 2619, 13, 9178, 26, 206, 13, 20756, 15, 28, 31, 129, 44, 12797, 19, 40, 3218, 1903, 2942, 20, 206, 13, 20756, 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...
Do TCP sockets automatically close after some time if no data is sent? === I have a client server situation where the client opens a TCP socket to the server, and sometimes long periods of time will pass with no data being sent between them. I have encountered an issue where the server tries to send data to the client, and it seems to be successful, but the client never receives it, and after a few minutes, it looks like the client then gets disconnected. Do I need to send some kind of keep alive packet every once in a while?
0
[ 2, 107, 13, 38, 7439, 18482, 18, 7499, 543, 75, 109, 85, 100, 90, 1054, 25, 795, 60, 800, 3726, 3726, 31, 57, 21, 6819, 8128, 1858, 113, 14, 6819, 8965, 21, 13, 38, 7439, 18482, 20, 14, 8128, 15, 17, 1030, 175, 7302, 16, 85, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 leveler (SENSOR_ACCELEROMETER) === I am trying to create a leveler in android, but i have seriously no idea how to do it right. The return values from the accelerometer are between 10 and -10, and i have no idea how to animate a view so i looks like a real leveler. Does anyone have some sample code i can look in to? I have searched the whole internet but could not find any example of a leveler. Thanks in advance!
0
[ 2, 13005, 662, 106, 13, 5, 1264, 18, 248, 1, 1738, 1105, 1252, 17325, 6, 800, 3726, 3726, 31, 589, 749, 20, 1600, 21, 662, 106, 19, 13005, 15, 47, 31, 57, 4818, 90, 882, 184, 20, 107, 32, 193, 9, 14, 788, 4070, 37, 14, 7602,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to get the httppost‘s filename on the php server === I used FileEntity httppost to post a file to a php apache server,but I do not want to change the name of the file.how can I get the name of the file from the server using php(I have already get the file $data = file_get_contents('php://input'),file_put_contents($filename,$data). thanks.
0
[ 2, 184, 20, 164, 14, 7775, 6962, 1, 18, 3893, 7259, 27, 14, 13, 26120, 8128, 800, 3726, 3726, 31, 147, 3893, 2291, 856, 7775, 6962, 20, 678, 21, 3893, 20, 21, 13, 26120, 17140, 8128, 15, 811, 31, 107, 52, 259, 20, 753, 14, 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...
Create a global javascript or jQuery variable visible in many pages === I have a js variable with many functions, and I want to create in one of them a global variable visible in another php file that load the js file. How can I do that ? Thanks for help.
0
[ 2, 1600, 21, 2062, 8247, 8741, 54, 487, 8190, 93, 7612, 4560, 19, 151, 4434, 800, 3726, 3726, 31, 57, 21, 487, 18, 7612, 29, 151, 3719, 15, 17, 31, 259, 20, 1600, 19, 53, 16, 105, 21, 2062, 7612, 4560, 19, 226, 13, 26120, 3893...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Indirectly using a GPL licensed jquery plugin? === The plugin in question is, http://smoothdivscroll.com/ I have a program which correctly under its license uses Chromium to render web pages (this is not the primary purpose of the program, just a feature). In the program I am working on, we allow people to create plugins and we also distribute built in plugins for the software. We allow users to render and show both local html and online websites through the Chromium renderer. I would like to create and distribute a built in html page that can act as a plugin (the actual html code is not in my program, the program just tells chromium to access the file so I'm not hiding the source of the html file). I would prefer to have all of the files (html code and supporting js files) located locally. Is that allowed under GPL, given that I do not release my software's source code? If I only accessed the plugin remotely (so the file isn't stored/distributed via my program) would that alleviate any issues? This is a tough one, as I am using the stock jquery plugin's code and will put any license document that I need in my program's installation directory, but I am unable to release the source code of my program. So to put it simply, my program accesses chromium which loads up a web page (either hosted locally or remotely) which uses a GPL licensed jquery plugin. Is there any problems with this? The source code for both the html page using the jquery plugin and indeed the browser itself (Chromium) are either open sourced or open to the user to look at. I have not and will not make any changes to the jquery plugin's code. So will I need to open the source of my program if I intend to use this plugin?
2
[ 2, 20713, 568, 21, 489, 5727, 6392, 487, 8190, 93, 10922, 108, 60, 800, 3726, 3726, 14, 10922, 108, 19, 1301, 25, 15, 7775, 6903, 18, 8765, 96, 12916, 3862, 8694, 9, 960, 118, 31, 57, 21, 625, 56, 12044, 131, 82, 3962, 2027, 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 can I disable Quick Access TextField in Eclipse RCP Application === today I changed my Eclipse IDE from 3.7 to 4.2 and my plugin-project has a new feature in the Statusbar of the UI called QuickAccess. But I dont need it, so how can I disable this feature, because the position of my button bar has changed...
0
[ 2, 184, 92, 31, 1460, 579, 2231, 1381, 1854, 1109, 19, 11652, 761, 7439, 3010, 800, 3726, 3726, 786, 31, 1015, 51, 11652, 13, 3448, 37, 203, 9, 465, 20, 268, 9, 135, 17, 51, 10922, 108, 8, 21011, 63, 21, 78, 1580, 19, 14, 1782...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Cake View wont update when changed === I baked a Model, Controller, View by console. Then I changed the content of View/xxx/index.ctp but the changes are not comitted to the webpage. Any idea what could be wrong ? cheers endo
3
[ 2, 8390, 1418, 7290, 11100, 76, 1015, 800, 3726, 3726, 31, 22163, 21, 1061, 15, 9919, 15, 1418, 34, 8650, 9, 94, 31, 1015, 14, 2331, 16, 1418, 118, 13290, 118, 25671, 9, 4812, 306, 47, 14, 1693, 50, 52, 326, 18568, 43, 20, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0...
clear Canvas and save Canvas === I am just finishing web application for picture analysis and inpainting. And I need help with canvas. This is what I do: <img id="imgEdit" src="<?php echo $imagename; ?>" border="0"> <canvas id="canvasPaint" width="<?php echo $width; ?>" height="<?php echo $height; ?>"> </canvas> <input type="button" value="Clear" onClick="clearCanvas();" class="button"> But now I have problem with clearCanvas function. Because browsers cannot read property 'width' ..... function clearCanvas() { ctx.clearRect(0,0,canvas.width,canvas.height); canvas.width = canvas.width; clickX = new Array(); clickY = new Array(); clickDrag = new Array(); } Can someone help me? And how to save canvas as image on local disk after user click 'save image'?
0
[ 2, 1207, 9696, 17, 2079, 9696, 800, 3726, 3726, 31, 589, 114, 3718, 2741, 3010, 26, 2151, 2495, 17, 19, 20578, 68, 9, 17, 31, 376, 448, 29, 9696, 9, 48, 25, 98, 31, 107, 45, 13, 1, 1660, 263, 4924, 3726, 7, 1660, 6430, 242, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MYSQL multiple WHERE IN causes LIKE to be ignored(?) === I have a query that doesn't work. I've fixed the problem by using a single IN statement (the library I'm using to construct my queries was causing this to happen) but I'm still curious *why* this happens. The query is as follows: SELECT * FROM (`table`) WHERE `field` = 'false' AND `something` LIKE '%string%' AND `status_id` IN ('1') OR `status_id` IN ('2') OR `status_id` IN ('3') The query to me makes sense: Select everything from the table where field = false and something is like string and status id is in 1 or status id is in 2 or status id is in 3 When there are multiple IN statements the LIKE portion of the query is completely ignored. Any ideas why mutliple IN statements would cause the LIKE to be ignored? I can't work out why: re-arranging the query has no affect (moving the LIKE to the end vs. the start)
0
[ 2, 51, 18, 22402, 1886, 113, 19, 4047, 101, 20, 44, 5424, 5, 60, 6, 800, 3726, 3726, 31, 57, 21, 25597, 30, 1437, 22, 38, 170, 9, 31, 22, 195, 3535, 14, 1448, 34, 568, 21, 345, 19, 3331, 13, 5, 124, 1248, 31, 22, 79, 568, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Scrolling issues with mobile safari browser === I've run into a weird error with the Safari browser on the iPad. Here's my code: CSS: #searchResults { border-style: none; background-color:#b00000; width:40%; max-height:100%; position:fixed; left:40%; overflow:hidden; -webkit-overflow-scrolling:touch; visibility:hidden;} HTML: <button onClick = "buttonClick()"/> <div id="searchResults"> hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br>hello<br> </div> JS: function buttonClick() { document.getElementById('searchResults').style.visibility = "visible"; } The popup div container is not able to be scrolled in mobile Safari, but if I eliminate the visiblity:hidden part then it scrolls just fine. I really can't eliminate the visibility:hidden part, but I'm not sure what to do. I could dynamically create the div on the fly and then remove it when I'm done with it, but it seems that there should be an easier method. ​​[see Fiddle][1] [1]: http://jsfiddle.net/sXj9m/58/
0
[ 2, 13, 28166, 1549, 29, 3241, 25055, 16495, 800, 3726, 3726, 31, 22, 195, 485, 77, 21, 5455, 7019, 29, 14, 25055, 16495, 27, 14, 31, 8240, 9, 235, 22, 18, 51, 1797, 45, 272, 18, 18, 45, 6926, 25136, 29955, 18, 13, 1, 1862, 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...
Create simplest chat system with ruby DRb only === I just learned DRb and made a chat system with it. Here're the codes: Terminal 1: require 'drb' class A def A.my_add(line, from) puts from + ': ' + line end end DRb.start_service('druby://127.0.0.1:61676', A) B = DRbObject.new_with_uri('druby://127.0.0.1:61677') while (line=gets).chomp != 'bye' A.my_add line, "Terminal 1" B.my_add line, "Terminal 1" end Terminal 2: require 'drb' class B def B.my_add(line, from) puts from + ': ' + line end end DRb.start_service('druby://127.0.0.1:61677', B) A = DRbObject.new_with_uri('druby://127.0.0.1:61676') while (line=gets).chomp != 'bye' A.my_add line, "Terminal 2" B.my_add line, "Terminal 2" end I know it's very simple, just 2 terminals, and every messages are shown in all terminals with 'from' prefix. But an ugly thing is that I copied the same class and open different thread for each terminal, that's because I don't know how to print string to other machine's console. Thus, if the codes can be written like this: class A def A.my_add(line, from) for <DRb Server and all clients> do puts<to that terminal> from + ': ' + line end end end Then we can just maintain class A and use one thread. For every messages, just call A.my_add, then it will be printed to all terminals. I appreciate your help. Thanks!
0
[ 2, 1600, 24384, 6615, 329, 29, 10811, 744, 220, 104, 800, 3726, 3726, 31, 114, 2691, 744, 220, 17, 117, 21, 6615, 329, 29, 32, 9, 235, 22, 99, 14, 11358, 45, 3855, 6352, 4077, 13, 22, 43, 7549, 22, 718, 21, 6312, 21, 9, 915, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Adding an SSL Cert on heroku with godaddy === So here is the issue. I have a site with SSL. (https://www.archerandreed.com/) It works great. When you type archerandreed.com/ in the browser everything still works great. Unfortunately when you type https://archerandreed.com/ or http://archerandreed.com/ into your browser you are given an SSL cert warning. I thought I could just add a cert for www.archerandreed.com && archerandreed.com but heroku no longer accepts 2 ssl endpoints. So what are the possible solutions. I assume one solution is to buy a wild card domain but that is painful. My app is rails 3.2.6. Is it possible to only force SSL if their is a subdomain? Can I do that in routes.rb or in config/environments/production.rb? Thanks for any help in advance.
0
[ 2, 4721, 40, 13, 18, 18, 255, 13, 17580, 27, 36, 9266, 29, 162, 25078, 800, 3726, 3726, 86, 235, 25, 14, 1513, 9, 31, 57, 21, 689, 29, 13, 18, 18, 255, 9, 13, 5, 21127, 18, 6903, 6483, 9, 8027, 106, 18832, 69, 9, 960, 118,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PHP front controller in nginx === I have a wiki that hosts user-generated content with URLs like `/wiki/view/pagename` and `/wiki/modify/pagename`. I'm using an nginx configuration that goes something like: location /wiki/ { try_files $uri $uri/ /wiki/index.php?q=$uri&$args; } location ~ \.php$ { try_files $uri =404; #fastcgi stuff... } It's been working great and as far as i can tell, this is the recommended approach. However, today, a user created a page named "whatever.php", so it needs the URLs `/wiki/view/whatever.php` to be redirected to my `/wiki/index.php`... but it gets caught in the second location block and returns a 404 to the user-agent. Does anyone have any suggestions? Can i add an extra location block to rewrite *.php to the main script somewhere in such a way that won't affect actually routing pages? I still want to use nginx to serve static content inside the `/wiki/` directory and to preserve the behaviour of everything outside this directory. Repost of [this][1] dead forum thread [1]: http://forum.nginx.org/read.php?11,228830
0
[ 2, 13, 26120, 431, 9919, 19, 13, 2723, 108, 396, 800, 3726, 3726, 31, 57, 21, 13, 17375, 30, 5397, 4155, 8, 25314, 2331, 29, 13, 911, 7532, 101, 13, 1, 118, 17375, 118, 4725, 118, 6486, 7259, 1, 17, 13, 1, 118, 17375, 118, 136...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
MySQL - Group order without sorting === I'm trying to optimize a query where I've concluded that the order doesn't matter. So I'm trying to remove `ORDER BY` in the following scenario: SELECT item, price FROM supplydemand GROUP BY item ORDER BY timestamp ASC Here's what's going on: the table supplydemand keeps track of prices for various items. For every item I have 4 or 5 different prices, and therefore different rows. The query above gives me the "oldest" price per item. The grouping is done on item, and the ascending timestamp gives me the oldest row. This query works correctly. I've noticed that as long as I have the oldest price, I don't actually care if the returned rows are sorted. So I wanted to get rid of `ORDER BY`. Here's what I've tried: SELECT item, price, timestamp FROM supplydemand GROUP BY item HAVING timestamp = MIN(timestamp) The query above should result in an identical data except not sorted. The `MIN` inside of `HAVING` has to rely on the `GROUP` therefore comparing the timestamp of every grouped item to the oldest timestamp within the group. **The Problem** The second query returns less rows. For some reason certain rows are missing from the second query, and I cannot figure out why. The remaining rows return identical price, but I'm missing almost 20% of the data.
0
[ 2, 51, 18, 22402, 13, 8, 214, 389, 366, 2058, 68, 800, 3726, 3726, 31, 22, 79, 749, 20, 22864, 21, 25597, 113, 31, 22, 195, 4159, 30, 14, 389, 1437, 22, 38, 1161, 9, 86, 31, 22, 79, 749, 20, 4681, 13, 1, 7861, 34, 1, 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...
I want to set up a text server that checks a field on an HTML doc and returns it via text === The easiest way to do this seems to be to use Gmail, because you can already text gmail accounts and send texts to Verizon (my service provider) phones with email, so that part is figured out, at least. Now what I need is a program that will check a specific web page (logging in as necessary) and then find a specific text field on the page, copy it, then add it to an email and send it back to me each time it receives an incoming message with specific text in the email. Any one have any hints on how I might be able to do this? I'm moderately proficient in C++, but that's it. Thanks in advance!
1
[ 2, 31, 259, 20, 309, 71, 21, 1854, 8128, 30, 16602, 21, 575, 27, 40, 13, 15895, 9765, 17, 4815, 32, 1197, 1854, 800, 3726, 3726, 14, 27237, 161, 20, 107, 48, 2206, 20, 44, 20, 275, 489, 8079, 15, 185, 42, 92, 614, 1854, 489, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
heroku db:pull to ubuntu postgresql === I want to migrate my application from Heroku to my own ubuntu server. What is the correct syntax to do this using `taps/heroku db:pull`?
0
[ 2, 36, 9266, 13, 9007, 45, 23289, 20, 287, 12968, 2473, 678, 6879, 18, 22402, 800, 3726, 3726, 31, 259, 20, 22985, 51, 3010, 37, 36, 9266, 20, 51, 258, 287, 12968, 2473, 8128, 9, 98, 25, 14, 4456, 22649, 20, 107, 48, 568, 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, 0, 0, 0, 0, 0, 0...
Font sizes and mtext placement not consistent in Cairo() and Cairo_png() using library cairoDevice in R === I am creating some fairly complex charts in R using the Cairo library for anti-aliased graphics under Windows 7. I am using R2.15.1 and cairoDevice version 2.19. I have a problem where font sizes are larger in the Cairo_png() than in simple screen-based Cairo() , and mtext placements are different. To give a simple example: Code for screen version: > Cairo(4, 4) > par(bg = "blue") > plot.new() > for (x in 1:30) mtext(format(x), line = -x, outer = TRUE, adj = 0, col = "white") Result: ![enter image description here][1] Code for png version: > Cairo_png("test.png", 4, 4) > par(bg = "red") > plot.new() > for (x in 1:30) mtext(format(x), line = -x, outer = TRUE, adj = 0) > dev.off() Result of png code: ![enter image description here][2] As you can see the font is bigger in the png version, and the mtext placement is wider. Is this a bug or am I doing something wrong? [1]: http://i.stack.imgur.com/kgfBU.png [2]: http://i.stack.imgur.com/kn2n4.png
0
[ 2, 9978, 13403, 17, 307, 11969, 10774, 52, 8224, 19, 11772, 5, 6, 17, 11772, 1, 306, 2723, 5, 6, 568, 1248, 11772, 546, 18507, 19, 761, 800, 3726, 3726, 31, 589, 2936, 109, 6647, 1502, 5158, 19, 761, 568, 14, 11772, 1248, 26, 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...
Form tag-like inputs === I have no idea what this is even called so not sure where to start, hoping you all are able to point me in the right direction. I am trying to create something like this: ![Input Tags][1] The idea being that when a user types something in and then separates with a comma, their input into this form field will turn into a little tag-like box that they can then delete with the x. Any ideas on where to start? Thanks! [1]: http://i.stack.imgur.com/DlTqk.png
0
[ 2, 505, 3383, 8, 1403, 6367, 18, 800, 3726, 3726, 31, 57, 90, 882, 98, 48, 25, 166, 227, 86, 52, 562, 113, 20, 799, 15, 3935, 42, 65, 50, 777, 20, 454, 55, 19, 14, 193, 1400, 9, 31, 589, 749, 20, 1600, 301, 101, 48, 45, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
JS Ajax calling PHP and getting ajax call data === I have a standard javascript ajax call where I'm setting the data: to json data. $.ajax({ type: "POST", url: BaseUrl + "User/Login", //url: BaseUrl + "User/Limit/1/2", data: '{"apiKey":"c7089786-7e3a-462c-a620-d85031f0c826","appIDGiven":"200","userName":"matt2","password":"pass"}', success: function(data){ console.log(data); }, error: function(request){ console.log(request); }, }); I was trying to get the data in php $_POST["data"] this doesn't work. However data: 'test={"apiKey":"c7089786-7e3a-462c-a620-d85031f0c826","appIDGiven":"200","userName":"matt2","password":"pass"}' works. I was wondering is it possibly my framework or anything like that preventing $_POST["data"] from working or is this just not possible at all? Or is there something else I could use to get that data?
0
[ 2, 487, 18, 20624, 2555, 13, 26120, 17, 1017, 20624, 645, 1054, 800, 3726, 3726, 31, 57, 21, 1236, 8247, 8741, 20624, 645, 113, 31, 22, 79, 2697, 14, 1054, 45, 20, 487, 528, 1054, 9, 5579, 9, 6881, 7522, 5, 1, 1001, 45, 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...
ideas for speeding up a design based on abstract iterators === In some C++ project I'm dealing with objects that represents graphs of various nature. They all implement a common, abstract, interface, which I'll reduce to one function for this post: class graph { public: ... // Create an iterator over the successors of v virtual succ_iterator* succ(const vertex* v) const = 0; ... }; The `succ_iterator` class is also an abstract class that makes it possible to iterate over the successors vertices of `v`: class succ_iterator { public: virtual void first() = 0; // reset the iterator virtual void next() = 0; // move to next successor virtual bool done() const = 0; // no more successor left? virtual const vertex* dest() const = 0; // destination vertex }; So a loop over all the successors of `v` in graph `g` would look like this: succ_iterator* i = g->succ(v); for (i->first(); !i->done(); i->next()) { // use i->dest() } delete i; I use such a loop very often to implement graph algorithms. **Profiling the code reveal that its spending a lot of time allocating memory for these tiny iterator instances, so I'd like to hear about ideas to improve this.** Unfortunately, my graphs can be have very different implementations, so each graph may have its own implementation of the `succ_iterator` interface. Essentially, each class in the `graph` hierarchy has a corresponding class in the `succ_iterator` hierarchy. For instance one graph may be implemented using `std::vector` to store adjacency lists explicitly (in that case the `succ_iterator` is a simple wrapper above `std::vector::const_iterator`), while another graph might be computed on-the-fly (in that case its `succ_iterator` instance will actually *compute* the successors as it progresses). I don't know the nature of the graphs at compile time, so this rules out a `template`-based implementation *à la* STL. I have thought about allowing each graph to handle a pool of `succ_iterator`. This seems to require an extra `graph::succ_release(succ_iterator*)` method to return the iterator to the pool instead of deleting it. Most pools I have seen are done at the memory level: i.e., when you release an object, its destructor is called, but the occupied memory is retained so that the next object will be created (with an in-place constructor) in the same block. It seems this still wastes time as the in-place constructor will have to setup a virtual-table pointer that is the same as that of the previous object. I think in such a pool I should replace `delete`+`new` by a `recycle()` method that has the same prototype as the constructor. As the code base is quite large, and this requires an interface change, **I'd like to hear about other design ideas or possible improvements** before I implement this.
0
[ 2, 3478, 26, 1362, 68, 71, 21, 704, 432, 27, 8502, 32, 106, 9922, 800, 3726, 3726, 19, 109, 272, 20512, 669, 31, 22, 79, 5746, 29, 3916, 30, 4719, 7210, 18, 16, 617, 1444, 9, 59, 65, 8713, 21, 757, 15, 8502, 15, 6573, 15, 56...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Styling a TextField GXT 3 === I want to set the text-size property of a gxt TextField. I start from writing MyTextFieldAppearance. Here is everything ok. Next i need to modify my.gwt.xml file, an here I get ino trouble. there is no TextFieldAppearance in class com.sencha.gxt.widget.core.client.form.TextField the only TextFieldAppearance is in class TextInputCell.TextFieldAppearance, but if I write <replace-with class="ru.nicetu.radient.kef.client.appearance.KefValueBaseFieldAppearance"> <when-type-is class="com.sencha.gxt.cell.core.client.form.TextInputCell.TextFieldAppearance" /> </replace-with> Nothing happens.
0
[ 2, 23020, 21, 1854, 1109, 489, 396, 38, 203, 800, 3726, 3726, 31, 259, 20, 309, 14, 1854, 8, 10454, 1354, 16, 21, 489, 396, 38, 1854, 1109, 9, 31, 799, 37, 1174, 51, 11969, 1109, 22306, 58, 14866, 9, 235, 25, 796, 5854, 9, 328...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
liferay hook deployment - event class not found exception === I create a hook plugin with **liferay-sdk-6.0.6** and define a `servlet.service.events.pre` event handler : <service> <service-type>servlet.service.events.pre</service-type> <service-impl>com.ggd543.liferay.ServicePreAction</service-impl> </service> When i deploy it onto liferay-6.0.6-ce bundled jboss 5.1.0 GA, I got the following error: Caused by: java.lang.ClassNotFoundException: application.startup.events at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at java.lang.ClassLoader.loadClass(ClassLoader.java:248) at com.liferay.portal.deploy.hot.HookHotDeployListener.doInvokeDeploy(HookHotDeployListener.java:569) at com.liferay.portal.deploy.hot.HookHotDeployListener.invokeDeploy(HookHotDeployListener.java:218) ... 68 more Is there any wrong in my `liferay-hook.xml` ?
0
[ 2, 201, 2787, 5559, 10475, 13, 8, 807, 718, 52, 216, 5391, 800, 3726, 3726, 31, 1600, 21, 5559, 10922, 108, 29, 13, 1409, 4102, 2787, 8, 18, 43, 197, 8, 379, 9, 387, 9, 379, 1409, 17, 9267, 21, 13, 1, 10321, 1336, 9, 11449, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Fluent NHibernate attempting to delete collection with bi-directional reference === I'm using Fluent to map a parent collection -> child collection scenario for a framework demo I'm doing, I'm a bit of an NHibernate newbie so go easy :) I have the following mappings for my DTOs: public class OrderMapping : ClassMap<OrderDTO> { public OrderMapping() { Id(x => x.OrderId); Map(x => x.OrderDate); Map(x => x.Address); HasMany<OrderLineDTO>(x => x.OrderLines).KeyColumn("OrderId").Not.LazyLoad(); Table("`Order`"); } } and public class OrderLineMapping : ClassMap<OrderLineDTO> { public OrderLineMapping() { Id(x => x.OrderLineId); Map(x => x.OrderId).ReadOnly(); Map(x => x.Amount); Map(x => x.Description); References<OrderDTO>(x => x.Order).Column("OrderId"); Table("OrderLine"); } } The DTO objects are set up to receive these values, and this all works fine (I've turned off LazyLoad for the child for now as I'm working on the framework and LazyLoading isn't finished). So I open my test app - the data is loaded into two grids, with the parent and the children showing correctly If I make changes to the child or parent object and attempt to save, I can see that the SQL generated for the parent/child save is correct and the values passed to the SQL are spot on - the only issue is that after the updates, NHib decides it wants to delete the collection? It attempts this SQL: UPDATE OrderLine SET OrderId = null WHERE OrderId = 2 Which fails because the table has a FK from OrderLine to Order on OrderLine.OrderId = Order.OrderId with no cascade. Plus I don't understand why the collection requires a delete.. NHib throws a 'could not delete collection' error - is this because it's trying to delete the 'Order' reference from the OrderLineDTO child? Edit: Actually looking at the DTO it looks like on the reverse mapping from my business objects that 'Order' is not included on each OrderLineDTO so I've probably worked this out already! Hate it when I do that :)
0
[ 2, 19252, 12109, 15191, 8820, 6314, 20, 27448, 1206, 29, 1732, 8, 19393, 2801, 800, 3726, 3726, 31, 22, 79, 568, 19252, 20, 2942, 21, 4766, 1206, 13, 8, 1, 850, 1206, 12705, 26, 21, 6596, 8376, 31, 22, 79, 845, 15, 31, 22, 79, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Android 4.1: How to check notifications are disabled for the application? === Android 4.1 offers the user a check box to disable notifications for a specific application. However, as a developer we have no way to know whether a call to notify was effective or not. I really need to check if the notifications are disabled for the current application but I can't find any setting for that in the API. Is there ever a way to check this setting in the code?
0
[ 2, 13005, 268, 9, 165, 45, 184, 20, 2631, 52, 4634, 18, 50, 10154, 26, 14, 3010, 60, 800, 3726, 3726, 13005, 268, 9, 165, 2486, 14, 4155, 21, 2631, 1649, 20, 1460, 579, 52, 4634, 18, 26, 21, 1903, 3010, 9, 207, 15, 28, 21, 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 convert a char column into a datetime === I have a table that contains a DateField(DataType : DateTime) and TimeField(DataType : Char(4)) My output should be DateTime . My tables are in SQL Server 2008 Here is an example : Table A ID StartDate StartTime 1 2012-06-08 00:00:00.000 1223 2 2012-08-07 00:00:00.000 910 3 2012-05-02 00:00:00.000 1614 4 0094-07-13 00:00:00.000 1245 5 1994-04-18 00.00:00.000 2573 I need to get my output in such a way that I should it should validate for the correct time and correct date and append these two and insert into table B Table B : ID StartDateTime 1 2012-06-06 12:23:00.000 2 2012-08-07 09:10:00.000 3 2012-05-02 16:14:00.000 Thanks in advance, Sunitha
0
[ 2, 184, 20, 8406, 21, 4892, 4698, 77, 21, 1231, 891, 800, 3726, 3726, 31, 57, 21, 859, 30, 1588, 21, 1231, 1109, 5, 18768, 4474, 13, 45, 1231, 891, 6, 17, 85, 1109, 5, 18768, 4474, 13, 45, 4892, 5, 300, 6, 6, 51, 5196, 378, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Any package builder for windows (like Inno Setup) which uses python === I know python and I am working on a project where we are using Inno setup. Is there any package builder where I can write the setup-code in python?
0
[ 2, 186, 6030, 14960, 26, 1936, 13, 5, 1403, 19, 251, 18161, 6, 56, 2027, 20059, 800, 3726, 3726, 31, 143, 20059, 17, 31, 589, 638, 27, 21, 669, 113, 95, 50, 568, 19, 251, 18161, 9, 25, 80, 186, 6030, 14960, 113, 31, 92, 2757, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
GAE user log in === I am writing my very first Google App Engine application, mostly as a learning experience, its a sort of Pastebin very simple... I dont want to deal with spam so figured that requiring users to log in would be a safe enough choice. At this point this is what I want: - Visitor sees main page, if visitor is logged in to Google he sees the "Save paste" button, if user is not logged in he sees a link/button to log in to Google I have read a few articles and tutorials ([1][1]) but they give me the idea that I would be locking everyone out except a few allowed ones or that this sort of authentication is to manage my application instead of just checking if a user is logged in or not. If on the other hand you can suggest a spam checker or similar, that is easy to implement please let me know. I find particularly confusing that we have to define the type of authentication when creating the app, since this is going to be implemented by code I dont understand this. So to summarize: How can I check if a user is logged in to Google and display a link/button if he is not? Note: Im using [Java][2] [1]: https://developers.google.com/appengine/docs/java/users/overview [2]: https://developers.google.com/appengine/docs/java/gettingstarted/creating
0
[ 2, 13, 17721, 4155, 6738, 19, 800, 3726, 3726, 31, 589, 1174, 51, 253, 64, 8144, 4865, 1406, 3010, 15, 1555, 28, 21, 2477, 1496, 15, 82, 21, 2058, 16, 640, 62, 4772, 253, 1935, 9, 9, 9, 31, 1049, 259, 20, 1183, 29, 6954, 79, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to take kmllayer and make a menu out of items with listensers? === I have a map with a kmllayer that is added: ctaLayer = new google.maps.KmlLayer('http://www.npd.no/engelsk/cwi/pbl/en/aFactGlobe/disc/ActivityStatus_Producing_labels.kml'); ctaLayer.setMap(map); How do I: 1. Parse the data to make a menu with all the producing fields (info in kml file) 2. Add a click listener to each field in the menu so a popup window comes up (I want to do the same as if marker itself was clicked)
0
[ 2, 184, 20, 247, 401, 255, 15187, 17, 233, 21, 11379, 70, 16, 3755, 29, 3834, 18, 445, 60, 800, 3726, 3726, 31, 57, 21, 2942, 29, 21, 401, 255, 15187, 30, 25, 905, 45, 13, 20255, 15187, 800, 78, 8144, 9, 15022, 18, 9, 2939, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Error in Load Data infile query in C# === I am having problem with the following code:- private void btnUpload_Click(object sender, EventArgs e) { string nm = txtFilename.Text; string qry = "LOAD DATA INFILE 'D:\\HHTFiles\\" + nm + "' INTO TABLE `table1`.`location`FIELDS TERMINATED BY '-->'LINES TERMINATED BY '\r\n'(Barcode,BinLoc);"; cmd = new OdbcCommand(qry, con); int i = cmd.ExecuteNonQuery(); if (i > 0) { MessageBox.Show(" File loaded successfully..."); } } private void btnBrowse_Click(object sender, EventArgs e) { OpenFileDialog openfiledailog1 = new OpenFileDialog(); openfiledailog1.InitialDirectory = "D:\\HHTFiles\\"; openfiledailog1.Filter = "txt files (*.txt)|*.txt|All files (*.*)|*.*"; openfiledailog1.FilterIndex = 2; openfiledailog1.RestoreDirectory = true; if (openfiledailog1.ShowDialog() == DialogResult.OK) { try { if ((openfiledailog1.OpenFile()) != null) { txtFilename.Text = openfiledailog1.SafeFileName.ToString(); } } catch (Exception ex) { MessageBox.Show("Error: Could not read file from disk. Original error: " + ex.Message); } } } It runs properly, if I give the full file path in my query like :- string qry = "LOAD DATA INFILE 'D:\\HHTFiles\\ ABC.txt' INTO TABLE `table1`.`location`FIELDS TERMINATED BY '-->'LINES TERMINATED BY '\r\n'(Barcode,BinLoc);"; But it throws error when the file path is passed in a String variable. Error:- ERROR [HY000] [MySQL][ODBC 5.1 Driver][mysqld-5.1.48-community]File 'D:HHTFilesABC.txt' not found (Errcode: 2)
0
[ 2, 7019, 19, 6305, 1054, 19, 16877, 25597, 19, 272, 5910, 800, 3726, 3726, 31, 589, 452, 1448, 29, 14, 249, 1797, 45, 8, 932, 11364, 334, 38, 103, 576, 8294, 1, 150, 10129, 5, 23793, 2660, 106, 15, 807, 10663, 18, 13, 62, 6, 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...
In MsBuild, how do I run something PowerShell and have all errors reported === Powershell doesn't seem to have an easy way to trigger it with an arbitrary command and then bubble up parse and execution errors in a way that correctly interoperates with callers that are not PowerShell - e.g., `cmd.exe`, [TeamCity][1] etc. My question is simple. What's the best way for me with OOTB MSBuild v4 and PowerShell v3 to run a command (either a small script segment, or (most commonly) an invocation of a `.ps1` script. I'm thinking it should be something normal like: <Exec IgnoreStandardErrorWarningFormat="true" Command="PowerShell &quot;$(ThingToDo)&quot;" /> --- That sadly doesn't work:- 1. if `ThingToDo` fails to parse, it fails silently 1. if `ThingToDo` is a script invocation that doesn't exist, it fails 1. if you want to propagate an `ERRORLEVEL` based `.cmd` result, it gets hairy 1. if you want to embed `"` quotes in the `ThingToDo`, it won't work So, what is the bullet proof way of running PowerShell from MSBuild supposed to be? Is there something I can [PsGet][2] to make everything OK? [1]: http://stackoverflow.com/questions/11647987/how-do-i-get-errors-to-propagate-in-the-teamcity-powershell-runner [2]: http://psget.net/
0
[ 2, 19, 4235, 29361, 15, 184, 107, 31, 485, 301, 414, 15984, 17, 57, 65, 11908, 1117, 800, 3726, 3726, 414, 15984, 1437, 22, 38, 2260, 20, 57, 40, 2010, 161, 20, 7286, 32, 29, 40, 17237, 1202, 17, 94, 10937, 71, 2017, 870, 17, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Recursion not working as expected === I have a code that should get a LinearLayout (with more LinearLayout's inside), and get all the views within them. There are some textviews that have tags, and according to this, it should build 3 strings. The problem is it throws an exception in the first line after the loop. here's a code sample to explain: private void insertToDB(final DataBaseHelper db, LinearLayout layout, String subject, String term, String meaning) { View v1 = null; for(int i=0; i<layout.getChildCount(); i++) { try { v1 = layout.getChildAt(i); } catch (Exception e) { e.printStackTrace(); } if(v1 instanceof LinearLayout) { insertToDB(db, ((LinearLayout)v1), subject, term, meaning); } if (v1.getTag()!=null) { String val = v1.getTag().toString(); if (val.equals("subject")) { subject = ((TextView)v1).getText().toString(); } else if (val.equals("term")) { term+=((TextView)v1).getText().toString()+"$"; } else if (val.equals("meaning")) { meaning+=((TextView)v1).getText().toString()+"$"; } } } term = term.substring(0, term.length()-1); meaning = meaning.substring(0, meaning.length()-1); Card c = new Card(subject, term, meaning); db.Insert(c); }
0
[ 2, 26604, 5991, 52, 638, 28, 1727, 800, 3726, 3726, 31, 57, 21, 1797, 30, 378, 164, 21, 6745, 4414, 1320, 13, 5, 1410, 91, 6745, 4414, 1320, 22, 18, 572, 6, 15, 17, 164, 65, 14, 4146, 363, 105, 9, 80, 50, 109, 1854, 4725, 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...
Django - Timestamp Unit Test === My application provides a status depending on the date and time of day that is provided as input to a custom URL. Normally it will use the current time (datetime.now()), but I'd like to create unit tests to verify future times. However, I'm having trouble using a timestamp as the variable to test. Ideas? Here is the code so far: urls.py: urlpatterns = patterns('', (r'^/(\w+)/status/$', 'app.views.fetch_status'), # Normally: #(r'^/(\w+)/status/$', 'app.views.fetch_status', {'timestamp': datetime.now() }), ... views.py: def fetch_status(request, slug, timestamp): ... tests.py: class TimeTests(TestCase): fixtures = ['hours.json'] def testSchedule(self): timestamp = datetime(2012, 6, 19, 5, 0) client = Client() response = client.get('/service/status/', {'timestamp': timestamp}) self.assertEqual(response.context['status'], 'closed') Result: TypeError: fetch_status() takes exactly 2 arguments (1 given)
0
[ 2, 3857, 14541, 13, 8, 436, 38, 10158, 1237, 1289, 800, 3726, 3726, 51, 3010, 1927, 21, 1782, 4758, 27, 14, 1231, 17, 85, 16, 208, 30, 25, 1173, 28, 6367, 20, 21, 5816, 287, 6362, 9, 4147, 32, 129, 275, 14, 866, 85, 13, 5, 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...
Can anyone recommend best practices for profiling Ruby on Rails software under Passenger/nginx combination in a live server environment? === I am attempting to determine what can possibly be the causative factor for 20+ second response times from a Rails 3 application located in EC2 using Elasticache. I have reason to believe the problem is in fact cache related, but I have no numbers to prove it. I'd like to get those numbers. For the sake of completeness, we're running the applications atop Ubuntu 12.04 . Searching Google, I found nothing directly relevant to my situation, and no StackOverflow topics I could find were even remotely relevant to my situation. If anyone can point me to some documentation on the matter, I'd be quite appreciative. Thank you!
0
[ 2, 92, 1276, 12360, 246, 5242, 26, 8721, 49, 802, 10811, 27, 2240, 18, 2306, 131, 3093, 118, 2723, 108, 396, 3733, 19, 21, 515, 8128, 2307, 60, 800, 3726, 3726, 31, 589, 6314, 20, 3746, 98, 92, 2879, 44, 14, 24355, 6142, 3932, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to prevent jQuery UI Dialog from stopping other scripts? === I'm using jQuery UI's Dialog option to render a pop-up signup form, which contains a captcha. When I render the signup form on another page, the captcha displays just fine, but it doesn't show up on the Dialog pop-up form. I checked the HTML, and for whatever reason, only the captcha's 'noscript' code block made it to the page. Is there something about the jQuery UI Dialog I'm missing that causes it to interfere with other scripts like that? Here's the form's code: <%= error_messages_for(@user) %> <%= form_for(:user, :url => users_path, :remote => true, :html => {:id => 'create_user_form'}) do |f| %> <div class="in-field"> <%= f.label(:first_name) %> <%= f.text_field(:first_name) %> <div class="field_valid"></div> </div> <div class="in-field"> <%= f.label(:last_name) %> <%= f.text_field(:last_name) %> <div class="field_valid"></div> </div> <%= f.date_select(:birthday, :start_year => 1912) %><br /> image stuff<br /> <div class="in-field"> <%= f.label(:username) %> <%= f.text_field(:username) %> <div class="field_valid"></div> </div> <div class="in-field"> <%= f.label(:password) %> <%= f.password_field(:password) %> <div class="field_valid"></div> </div> <div class="in-field"> <%= f.label(:password_confirmation) %> <%= f.password_field(:password_confirmation) %> <div class="field_valid"></div> </div> <div class="in-field"> <%= f.label(:email) %> <%= f.text_field(:email) %> <div class="field_valid"></div> </div> <div class="in-field"> <%= f.label(:email_confirmation) %> <%= f.text_field(:email_confirmation) %> <div class="field_valid"></div> </div> <div it="test"> <script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k=6LfLRdMSAAAAAJ2SYOMT2nNhu2aMw6s3XtD1s5Id"></script> </div> <br /> <%= check_box_tag('eula', 'accepted', false) %> I agree to the <%= link_to('terms of service') %> and <%= link_to('privacy policy') %>.<br /> <%= f.submit 'Submit' %> <% end %> And here's the UI pop-up code: $('.modal-dupe').click(function(){ var url = this.href; $('#modal').remove(); var dialog = $('<div id="modal" style="display:none" class="loading"></div>').prepend('#barhappy_container'); dialog.load(url, function(){ dialog.dialog({ modal: true, draggable: false, position: 'center', dialogClass: 'no-title', width: 'auto', height: 'auto', resizable: false, open: function(){ $.getScript('/assets/modal/in-modal-open.js'); }, close: function(event, ui){ dialog.remove(); } }); }); return false; });
0
[ 2, 184, 20, 2501, 487, 8190, 93, 13, 5661, 28223, 37, 7048, 89, 17505, 60, 800, 3726, 3726, 31, 22, 79, 568, 487, 8190, 93, 13, 5661, 22, 18, 28223, 4255, 20, 16535, 21, 1675, 8, 576, 1676, 576, 505, 15, 56, 1588, 21, 13960, 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...
UITextField: can't type text but smilies, copy/paste, and backspace is fine === I think this is strange, I have made my own class that inherits from UIAlertView. In this class I add a UITableView as subview and the cells contains a UILabel and a UITextField. the class implements: UITableViewDelegate, UITableViewDataSource and UITextFieldDelegate, In the cellForRowAtIndexPath each cell.uiTxtField.delegate is set to self. The following happens both in the simulator and the real iPhone: - When I set the pointer/finger in the UITextField the keyboards pops up and **textFieldDidBeginEditing** is triggered thats fine and as expected. - When I leave the UITextField, **textFieldDidEndEditing** is triggered, that's also fine and as expected. - But when I start to type text, the cursor stops blinking but no text is typed to the UITextField. - I can **copy and paste** text by holding down the pointer/finger in a UITextField that contains text, select copy and then paste it in another UITextField (or the same). - The **backspace** works fine. - It also let's me type in **symbols and smilies** etc. - The only thing I can't type in is characters/letters and numbers - The return button **doesn't** trigger **textFieldShouldReturn** Since textFieldDidBeginEditing and textFieldDidEndEditing is triggered I assume my delegate setup is fine, but I can't understand why I can't type text and why textFieldShouldReturn is not triggered. [This][1] might be related. Any help is appreciated. [1]: http://stackoverflow.com/questions/11194734/uitextfield-keyboard-cant-type-anything
0
[ 2, 13, 5661, 11969, 1109, 45, 92, 22, 38, 1001, 1854, 47, 13, 18, 1435, 7712, 15, 4344, 118, 19802, 62, 15, 17, 97, 5582, 25, 1123, 800, 3726, 3726, 31, 277, 48, 25, 2578, 15, 31, 57, 117, 51, 258, 718, 30, 17569, 18, 37, 28...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3 validation errors- unsure of how to correct === 1. Line 10, Column 43: Bad value FRSH Studio for attribute href on element link: Whitespace in path component. Use %20 in place of spaces. `<link rel="pingback" href="FRSH Studio" />` --- It is my understanding that this is pulled from my settings in Wordpress. When I change the setting to include the %, I'm given an error stating that "Path component contains a percent sign that is not followed by two hexadecimal digits." How do I fix this? 2. Line 146, Column 7: End tag for body seen, but there were unclosed elements. `</body>` --- I believe this is referring to `<div id="container">`... 3. Line 54, Column 20: Unclosed element div. `<div id="container">` --- When I close the container using `</div><!-- end container -->` in the footer, I'm told that it is a stray tag. Where should `</div><!-- end container -->` be?
0
[ 2, 203, 27999, 11908, 8, 13815, 16, 184, 20, 4456, 800, 3726, 3726, 137, 9, 293, 332, 15, 4698, 5016, 45, 896, 1923, 6034, 1635, 1120, 26, 35, 14755, 746, 14057, 27, 4520, 3508, 45, 359, 5582, 19, 2013, 5912, 9, 275, 13, 11881, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Memory problems when pushing many view controllers on UINavigationController === I'm making an interactive book for the iPad and am using `UINavigationController` to implement the navigation between a page and the next. When a user turns the page, the next page is pushed on top of the navigation stack. I'm now 15 pages into the app, and the app crashes when I try to go from page 14 to page 15. No error message in the console, nothing in the device's crash logs neither. Each view controller's scene in the storyboard has `UIImageViews` displaying images that are between 5MB and 20MB. The view controllers' `viewDidLoad` method is called just once. The total size of all the app's assets is below 200B. I'm using ARC. I've ran the app using Instruments' Memory Monitor. The app's Real Memory consumption increases by about 80MB every time a new page is turned, and crashes when it reaches 800MB (the device is an iPad 3). - **Why such an enormous memory consumption?** Is this because the UIImageView in the Storyboard's scenes cache the images? - What would be the best way to free up memory when you use a `UINavigationController` and ARC? I tried adding setting all the view controller's subviews to nil in the view controllers' `viewDidDisappear:` method, but memory consumption stayed the same.
0
[ 2, 1912, 1716, 76, 5076, 151, 1418, 9919, 18, 27, 287, 1673, 13227, 857, 12898, 1252, 800, 3726, 3726, 31, 22, 79, 544, 40, 9194, 360, 26, 14, 31, 8240, 17, 589, 568, 13, 1, 291, 1673, 13227, 857, 12898, 1252, 1, 20, 8713, 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...
How can I consume odata using json with c#? === I'm consuming an odata v2 api with c# / winRT. It works fine, but it's using xml as encoding format for both read and write requests. How can I make it use json instead? I've already tried attaching an event handler to myDataSource.SendingRequest, and adding an "Accept" header, but the client-side library explicitly intercepts this and throws an exception. Also, I could not find any "Accept" property on the client side. Thanks, Adrian
0
[ 2, 184, 92, 31, 16447, 635, 18768, 568, 487, 528, 29, 272, 5910, 60, 800, 3726, 3726, 31, 22, 79, 13, 17601, 40, 635, 18768, 566, 135, 21, 2159, 29, 272, 5910, 13, 118, 628, 5256, 9, 32, 693, 1123, 15, 47, 32, 22, 18, 568, 2...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Connection was Reset or Application Pool stopped repeatedly === I have NO access to the server options, so I'm hoping someone can help guide me to some likely problems before the server guy can get back to me. My application was working fine last week until the application pool suddenly stopped. It was restarted by IT, and so I tried to load my page again. Application pool stopped again (receiving a 503 server error). It happened over and over and over again. They put me in my own application pool, and it is still happening, so it is obviously my application, but I have no idea why. I receive no error messages, the it guy says that he can't see any errors, either. I deleted (after copying to another location) all of my files and started building them up again. It shows me compilation errors telling me xxx file does not exist. I add the file, and it moves to the next error. When I finally fix the last error, I get a message (in Firefox) telling me that the connection was reset. I have no idea what is happening, and I can't see error messages anywhere. Is there somewhere that I should tell the IT guy to look? Any particular server logs that might let him know what is happening. As far as I can tell, it's happening magically, since no errors are showing up - so it is really hard for me to fix the problem. Any suggestions?
0
[ 2, 2760, 23, 23422, 54, 3010, 3067, 1175, 8081, 800, 3726, 3726, 31, 57, 90, 1381, 20, 14, 8128, 6368, 15, 86, 31, 22, 79, 3935, 737, 92, 448, 3378, 55, 20, 109, 1720, 1716, 115, 14, 8128, 1244, 92, 164, 97, 20, 55, 9, 51, 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...
Window not displaying panel within it === I have a Window, and i want to add a panel to it. My code is as follows; I see the window but not the panel. Why is my code not showing the panel ? Ext.define('Sports.view.WelcomeWindow', { extend: 'Ext.window.Window', alias : 'widget.welcomewin', layout:'fit', defaults: { bodyStyle: 'padding:10px' }, items: [panel1] }); //column.show(); var panel1 = Ext.create('Ext.panel.Panel', { title: 'Panel 1', html: 'Body 1', id: 'panel1Id', columnWidth: .25, //means 25% height: 120 });
0
[ 2, 1463, 52, 17418, 4113, 363, 32, 800, 3726, 3726, 31, 57, 21, 1463, 15, 17, 31, 259, 20, 3547, 21, 4113, 20, 32, 9, 51, 1797, 25, 28, 2415, 73, 31, 196, 14, 1463, 47, 52, 14, 4113, 9, 483, 25, 51, 1797, 52, 3187, 14, 411...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Create a tags box like stackoverflow's [CSS+HTML] === I'd really like to know how to arrange a tag box like the one we have here a Stackoverflow. I'm almost there, I just need to arrange the tags in a way that when the tags container width is overpassed, the tags get pushed to the left instead of to the right or downwards. So far I have this CSS code: #tagsContainer{ border: 1px solid black; width: 400px; height: 28px; overflow-x: scroll; } #tagsBox{ float: left; } #tagsTxtBox{ float: right; } And this HTML code: <div id="tagsContainer"> <div id="tagsBox"></div> <div id="tagTxtBox"><input type="text" id="autocompletes" /></div> </div> Thanks in advance!
0
[ 2, 1600, 21, 3383, 18, 1649, 101, 7566, 2549, 9990, 22, 18, 636, 6824, 18, 2430, 15895, 500, 800, 3726, 3726, 31, 22, 43, 510, 101, 20, 143, 184, 20, 12400, 21, 3383, 1649, 101, 14, 53, 95, 57, 235, 21, 7566, 2549, 9990, 9, 31...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Enterprise iOS App - How to Dynamically Track UDIDs === Dear StackOverflow Community, I have an enterprise app that has to track the UDIDs of all of our ipad devices within our organization/network. Right now, we have a total of 9 ipad devices being used that have wifi connection. The purpose for tracking the UDID is to retrieve user data from each of our individual ipads for analytical purposes. As of now, we have to manually input each UDID in our provision prior to building an IPA file in XCode, but we are finding it to be cumbersome and wonder if there is a solution to input new UDIDs for future ipad devices without having to create a new IPA each time. For example, when our network grows beyond our 9 ipad devices, and we have to add 5 more ipads, how can we input the new UDIDs dynamically? Is there a way to dynamically or programmatically input the UDID via http calls (or some other method) so that we don't have to rebuild a new one every time? Thanks and any help will be appreciated.
0
[ 2, 6002, 13, 7760, 4865, 13, 8, 184, 20, 7782, 1326, 792, 287, 3052, 18, 800, 3726, 3726, 4483, 7566, 2549, 9990, 514, 15, 31, 57, 40, 6002, 4865, 30, 63, 20, 792, 14, 287, 3052, 18, 16, 65, 16, 318, 31, 8240, 4690, 363, 318, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Background Intelligent Transfer Service (BITS) - Azure Blob compatability === Does anyone have any familiarity or experience using BITS for downloads from Azure blob storage and/or CDN? There is surprisingly little information about BITS and Azure that I have found via internet searches and everything seems to relate to WebRoles and self-managed VM's where we have IIS. I have found nothing on BITS downloading directly from a blob URL. Specifically I need to figure out if blobs are served over HTTP in a manner that supports BITS requirements - [http://msdn.microsoft.com/en-us/library/windows/desktop/aa362846(v=vs.85).aspx][1]. I'm going to do some of my own testing soon so I will report my findings but any information would be awesome! [1]: http://msdn.microsoft.com/en-us/library/windows/desktop/aa362846%28v=vs.85%29.aspx
0
[ 2, 2395, 9214, 2617, 365, 13, 5, 3326, 18, 6, 13, 8, 25715, 334, 10904, 6479, 721, 4091, 800, 3726, 3726, 630, 1276, 57, 186, 26852, 54, 1496, 568, 10181, 26, 7121, 18, 37, 25715, 334, 10904, 4326, 17, 118, 248, 1745, 103, 60, 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...
enable the array of textboxes php javascript === I got the array of disabled text boxes from the database. When I click on edit button it should enable all the text boxes which are in array. But i could only enable the first text box. Here is the code. <br/> <br/> code for edit button: <input type="button" value="Edit" onclick="enable();" /> function enable() function enable(){ document.getElementById("instance_name").disable = false; document.getElementById("host_name").disable = false; } array: $result=mysql_query("SELECT user_instance.instance_name, user_instance.host_name FROM dba_account, user_instance WHERE dba_account.account_id = user_instance.account_id AND dba_account.account_id = '$accid'"); while($note = mysql_fetch_array($result)) { <inut type='text' name='instance_name' id='instance_name' disabled='disabled' value='$note[instance_name]' size='25' /> <input type='text' name='host_name' id='host_name' disabled='disabled' value='$note[host_name]' size='25' /> } I am getting all the disabled textboxes, but i can not anable them all. Appreciate your help.
0
[ 2, 9240, 14, 7718, 16, 1854, 5309, 160, 13, 26120, 8247, 8741, 800, 3726, 3726, 31, 330, 14, 7718, 16, 10154, 1854, 8120, 37, 14, 6018, 9, 76, 31, 10840, 27, 9392, 5167, 32, 378, 9240, 65, 14, 1854, 8120, 56, 50, 19, 7718, 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...
HTML5 video not playing on iPad - black screen === I've seen various posts related to my issue, but none have helped me solve my problem. I have an HTML5 webapp for iPad that I want some video displayed in. I use the video tag with controls and just see a black screen where the video is supposed to go. I have the video properly encoded for iPad and it plays fine in Safari, but when I try to use the iPad simulator I just see the black area. I tried making a barebones web page with only the video on it and still nothing works. What could be the problem?
0
[ 2, 13, 15895, 264, 763, 52, 791, 27, 31, 8240, 13, 8, 319, 2324, 800, 3726, 3726, 31, 22, 195, 541, 617, 9868, 1597, 20, 51, 1513, 15, 47, 2369, 57, 1456, 55, 8402, 51, 1448, 9, 31, 57, 40, 13, 15895, 264, 2741, 7753, 26, 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...
Ant: Apply with fileset, but only exec once on one file? === I'm working on something similar to the question here: http://stackoverflow.com/questions/6909106/ant-script-to-compile-all-css-less-files-in-a-dir-and-subdirs-with-rhino However, I'm having a hard time customizing this to one particular requirement: - If any `.less` files in `dir.less` change: Run LESS on _just_ one file (as it imports the other less files, making a single, combined output). This is the state of my current `build.xml`: <target name="less" description="Compile LESS files"> <echo message="Checking for LESS file changes..."/> <apply dir="${dir.less}" executable="${tool.less}" parallel="false" failonerror="true"> <fileset dir="${dir.less}" includes="*.less" /> <srcfile/> <mapper type="glob" from="*.less" to="${dir.css}/*.css"/> <targetfile/> <arg value="-compress" /> </apply> </target> This currently builds all of the `.LESS` files and outputs them toe the appropriate location (Which is livable). If I replace the mapper glob with: `<mapper type="glob" from="MainFileThatImportsOthers.less" to="${dir.css}/MainFileThatImportsOthers.css"/>` The fileset directive is effectively reduced to that one file, and changing the other `.LESS` files in that directory don't cause output from the task. Can someone point me in the right direction so I can avoid setting this up wrong and recusing through each `.LESS` file every time?
0
[ 2, 40, 38, 45, 5645, 29, 6488, 1198, 15, 47, 104, 1396, 3319, 382, 27, 53, 3893, 60, 800, 3726, 3726, 31, 22, 79, 638, 27, 301, 835, 20, 14, 1301, 235, 45, 7775, 6903, 25325, 2549, 9990, 9, 960, 118, 24652, 18, 118, 23954, 212...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Retrieving Facebook Application (not Facebook Page) OpenGraph insights === I am struggling to find how facebook is producing the information displayed in the image attatched to this post anywhere. The "insights" FQL table has no columns for the "published_actions", "total_impressions" and "total_referrals" of a "Facebook Application". I see that they are all available for a "Facebook Page" from the "Insights" table. Has anyone been able to retrieve this data for an Application? (Application != Page) image link: http://i49.tinypic.com/2uetaht.png
0
[ 2, 13, 6239, 3272, 8397, 9090, 3010, 13, 5, 1270, 9090, 2478, 6, 368, 9614, 9239, 18, 800, 3726, 3726, 31, 589, 7587, 20, 477, 184, 9090, 25, 4081, 14, 676, 6115, 19, 14, 1961, 35, 536, 38, 6261, 20, 48, 678, 4922, 9, 14, 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...
Using BluetoothChat to communicate with ELM327 === I am currently trying to communicate with an ELM327 OBDII bluetooth dongle via the BluetoothChat Sample Application. I am able to connect as I have changed the UUID, however I am only able to recieve the startup commands and the prompt ">" to send a command, whenever I try to send a command I get the following... - CAN OBDII:ELM327 v1.2a> - Me:ATRV - CAN OBDII:ATRV - CAN OBDII:> - CAN OBDII:? Now I read on here to append "/r" to the commands, however when I do this I get the exact same response. I am using the sample application "BluetoothChat" does anyone have any ideas?
0
[ 2, 568, 705, 15808, 13409, 20, 8709, 29, 11799, 24090, 800, 3726, 3726, 31, 589, 871, 749, 20, 8709, 29, 40, 11799, 24090, 5122, 1115, 49, 705, 15808, 221, 4875, 1197, 14, 705, 15808, 13409, 5717, 3010, 9, 31, 589, 777, 20, 6379, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to create a matrix with SQL === playWith geographic data records like this: START | END CITY1 | STATE1 | CITY2 | STATE2 ---------------------------------------------- New York | NY | Boston | MA Newark | NJ | Albany | NY Cleveland| OH | Cambridge | MA I would like to output something like this where it counts START/END pairings displayed as a matrix: | MA | NJ | NY | OH ------------------------------ MA | 0 | 0 | 1 | 0 NJ | 0 | 0 | 1 | 0 NY | 1 | 0 | 0 | 0 OH | 1 | 0 | 0 | 0 I can see how `GROUP BY` and `COUNT` will find the data but I'm lost on how to display as a matrix. Does anyone have any ideas?
0
[ 2, 184, 20, 1600, 21, 8187, 29, 4444, 255, 800, 3726, 3726, 418, 1410, 9225, 1054, 742, 101, 48, 45, 799, 13, 1, 241, 136, 165, 13, 1, 146, 165, 13, 1, 136, 135, 13, 1, 146, 135, 13, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Cannot locate table_id in google analytics === I am doing the example (Java) at this link - https://developers.google.com/analytics/resources/articles/gdataAnalyticsCsv Please tell me how I can get the TABLE_ID in google analytics. The code in the link below uses the table id (line 37): https://code.google.com/p/ga-api-java-samples/source/browse/trunk/src/v2/csvprinter/AnalyticsCsvDemo.java The table ID needs to be used for other code. So, that "other code" is not going to work unless i can get the table id. Apparently, table id is of the form "ga:[your profile id]" But this always results in the application getting terminated with the error - "Invalid value for ids parameter: [my profile id here]". Please help me to solve this problem. Thanks.
0
[ 2, 1967, 12717, 859, 1, 1340, 19, 8144, 26320, 800, 3726, 3726, 31, 589, 845, 14, 823, 13, 5, 1004, 1385, 6, 35, 48, 3508, 13, 8, 7775, 18, 6903, 26051, 445, 9, 16111, 4875, 9, 960, 118, 19293, 18, 118, 99, 12097, 18, 118, 203...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
json_decode returning an array of 1 === I am trying to decode some JSON into a php array. Here's the code excerpt: $getfile="{"fname":"bob","lname":"thomas","cascade":"bthomas","loc":"res","place":"home 2"}"; $arr = json_decode($getfile, true); $arr['day3'] = $selecter; echo(print_r($arr)); The only thing that gets returned is '1'. I've checked JSONLint and it is valid json, so I'm wondering why json_decode is failing. I also tried checking what the array is before adding the day3 key to it, and I still return a '1'. Any help is appreciated! Actual code: $getfile = ""; $getfile = file_get_contents($file); if ($getfile == "") { writeLog("Error reading file."); } writeLog("getfile is " . $getfile); writeLog("Decoding JSON data"); $arr = json_decode($getfile, true); writeLog("Decoded raw: " . print_r($arr)); writeLog("Editing raw data. Adding data for day " . $day); $arr['day3'] = $selecter; writeLog(print_r($arr)); $newfile = json_enconde($arr); writeLog($newfile); if (file_put_contents($file, $newfile)) { writeLog("Wrote file to " . $file); echo $newfile; } else { writeLog("Error writting file"); } These are the contents of $file (it's a text file) {"fname":"Bob","lname":"Thomas","cascade":"bthomas","loc":"res","place":"home 2"}
0
[ 2, 487, 528, 1, 546, 9375, 2485, 40, 7718, 16, 137, 800, 3726, 3726, 31, 589, 749, 20, 121, 9375, 109, 487, 528, 77, 21, 13, 26120, 7718, 9, 235, 22, 18, 14, 1797, 13, 25523, 45, 5579, 3060, 16877, 3726, 7, 1, 7, 410, 7259, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
codeigniter: why is that everytime i set a specific routing rule that page's css/js don't get loaded? === I'm building my website in codeigniter, and here an example of a routing rule that's giving me some trouble: $route['updategamepage/(:num)'] = 'maincontroller/main/updategamepage/$1'; So is there anything wrong with the format/structure of the rule? Here is an example url that uses that rule: http://www.mydomain.com/ci_website/updategamepage/6 and when that page gets loaded, the css/js don't get loaded with the page...any idea on whats going wrong?
0
[ 2, 1797, 9693, 242, 106, 45, 483, 25, 30, 352, 891, 31, 309, 21, 1903, 19880, 1828, 30, 2478, 22, 18, 272, 18, 18, 118, 728, 18, 221, 22, 38, 164, 8572, 60, 800, 3726, 3726, 31, 22, 79, 353, 51, 2271, 19, 1797, 9693, 242, 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...
Can't Post facebook URL using facebook SDK === I have a webapplication that I use to reshare existing post as follow 1)get the post details using https://graph.facebook.com/UserID_postID?access_token=AAA (works fine) 2)fill the a data of the new post from the old one and try to resend it but there is some strange behviour if I use oldpost.link = newpost.link it doesnt nothing appear on the wall but if I used oldpost.link="\""newpost.link+"\"" works and the post appear on facebook wall but the link appears corputted as invalid.invalid/<my url> function getPost(userID, postID, token) { jQuery.getJSON("https://graph.facebook.com/" + userID + "_" + postID + "?access_token=" + token, function (post) { here is the code any idea please var newPost = {}; newPost.message = "hi"; if (post.link != "" && post.link != null && post.link != "undefined") { newPost.link = "\"" + post.link + "\""; } if (post.name != "" && post.name != null && post.name != "undefined") { newPost.name = "\"" + post.name + "\""; } if (post.picture != "" && post.picture != null && post.picture != "undefined") { newPost.picture = "\"" + post.picture + "\""; } if (post.description != "" && post.description != null && post.description != "undefined") { newPost.description = "\"" + post.description + "\""; } doPost(newPost); }); } function doPost(newPost) { FB.api('/me/feed', 'post', newPost, function (response) { if (!response || response.error) { alert(' Denied Access'); } else { alert('Success'); } }); }
0
[ 2, 92, 22, 38, 678, 9090, 287, 6362, 568, 9090, 13, 18, 43, 197, 800, 3726, 3726, 31, 57, 21, 2741, 2552, 20669, 30, 31, 275, 20, 302, 16608, 3149, 678, 28, 1740, 137, 6, 3060, 14, 678, 3289, 568, 7775, 18, 6903, 9614, 9, 6413...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 collection of anonymous objects from controller to view === I am new to MVC, so please excuse me if my question sounds silly or too simple. I am using Entity Data Model for database access. So in my Models folder, I have added an EDMX file and I can access the model classes from my controllers and strongly typed views. The problem arises when I access more than one table in my controller e.g. If I have following tables in my DB : Departments(DepartmentID, DepartmentName, DepartmentPhone) Insurances(InsuranceID, InsuranceName, InsuranceAddress) Employees(EmployeeID, EmpFName, EmpLName, DepartmentID, InsuranceID) And I want to display a list of Employees with their department and insurance information. In my Controller's Action Method I access the DB using EDM and get the information in an anonymous type: using (var context = new MyEntities()) { var model = (from d in context.Departments join e in context.Employees on d.DepartmentID equals e.DepartmentID join I in context.Insurances on I.InsuranceID equals e.InsuranceID select new { DepartmentID = d.DepartmentID, EmployeeID= e.EmployeeID, EmpFName= e.EmpFName, EmpLName= e.EmpLName, DepartmentName= d.DepartmentName, InsuranceName= I.InsuranceName }).ToList(); return View(model); } I don't have a class of this anonymous type in my Model folder so I can't create a strongly typed view. So what is the best way to pass this list to the View?. Using viewbag will be an overkill if the collection is too large. Creating a new Model for this anonymous class doesn't sound right as it needs to be updated all the time if I change my selection in Controllers Action Method. All suggestions are welcomed. I tried looking through other questions on SO but couldn't find anything relevant. Thanks.
0
[ 2, 184, 20, 1477, 1206, 16, 10364, 3916, 37, 9919, 20, 1418, 800, 3726, 3726, 31, 589, 78, 20, 307, 8990, 15, 86, 2247, 6658, 55, 100, 51, 1301, 2795, 10752, 54, 266, 1935, 9, 31, 589, 568, 9252, 1054, 1061, 26, 6018, 1381, 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...
Correct Way To Handle Thread Joins in Python === So I have a tool written that takes list of items, splits it up into a given number of lists (let's say 10) and then takes those 10 lists and spawns off 10 threads, "EvaluationThreads" (extending threading.thread), and each of those threads evaluates whatever they were supplied to evaluate. When I start each thread I put them all into a list and after spawning them off I have the following code: for th in threadList: th.join() someTotal = th.resultsAttribute And that's how I handle waiting for all the threads to finish and gathering their information. While this is a working way of waiting for everything to finish and then gathering results I feel like there must be a more elegant way of doing it because these threads could very well finish at different times and if the first one to start finishes last all the ones that finished earlier must wait for that thread to finish before they can be joined. Is there a way to get these threads' information and join them as they finish rather than in the order they were started? I originally figured I would use some sort of callbacks in the threads or something but I'm not sure if there is a more acceptable solution. Thanks for your help.
0
[ 2, 4456, 161, 20, 3053, 9322, 10612, 19, 20059, 800, 3726, 3726, 86, 31, 57, 21, 5607, 642, 30, 1384, 968, 16, 3755, 15, 2132, 18, 32, 71, 77, 21, 504, 234, 16, 7227, 13, 5, 1336, 22, 18, 395, 332, 6, 17, 94, 1384, 273, 332,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unit Tests maintainability and factories === In my Unit Test projects I have a folder that basically contain all the factories classes for my unit tests such as the one below. public static class PackageFileInfoFactory { private const string FILE_NAME = "testfile.temp"; public static PackageFileInfo CreateFullTrustInstance() { var mockedFileInfo = CreateMockedInstance(AspNetHostingPermissionLevel.Unrestricted); return mockedFileInfo.Object; } public static PackageFileInfo CreateMediumTrustInstance() { var mockedFileInfo = CreateMockedInstance(AspNetHostingPermissionLevel.Medium); return mockedFileInfo.Object; } private static Mock<PackageFileInfo> CreateMockedInstance(AspNetHostingPermissionLevel trustLevel) { var mockedFileInfo = new Mock<PackageFileInfo>(FILE_NAME); mockedFileInfo.Protected().SetupGet<AspNetHostingPermissionLevel>("TrustLevel").Returns(() => trustLevel); mockedFileInfo.Protected().Setup<string>("CopyTo", ItExpr.IsAny<string>()).Returns<string>(destFileName => "Some Unknown Path"); return mockedFileInfo; } } Here is a sample of my Unit Test. public class PackageFileInfoTest { public class Copy { [Fact] public void Should_throw_exception_in_medium_trust_when_probing_directory_does_not_exist() { // Arrange var fileInfo = PackageFileInfoFactory.CreateMediumTrustInstance(); fileInfo.ProbingDirectory = "SomeDirectory"; // Act Action act = () => fileInfo.Copy(); // Assert act.ShouldThrow<InvalidOperationException>(); } [Fact] public void Should_throw_exception_in_full_trust_when_probing_directory_does_not_exist() { // Arrange var fileInfo = PackageFileInfoFactory.CreateFullTrustInstance(); fileInfo.ProbingDirectory = "SomeDirectory"; // Act Action act = () => fileInfo.Copy(); // Assert act.ShouldThrow<InvalidOperationException>(); } [Fact] public void Should_throw_exception_when_probing_directory_is_null_or_empty() { // Arrange var fileInfo = PackageFileInfoFactory.CreateFullTrustInstance(); // Act Action act = () => fileInfo.Copy(); // Assert act.ShouldThrow<InvalidOperationException>(); } } } This helps me to keep my unit tests clean and focus on the tests, I just wondering how other people handle this and what are they doing to keep the tests clean.
0
[ 2, 1237, 4894, 4027, 4091, 17, 11814, 800, 3726, 3726, 19, 51, 1237, 1289, 2314, 31, 57, 21, 19294, 30, 11374, 3717, 65, 14, 11814, 2684, 26, 51, 1237, 4894, 145, 28, 14, 53, 1021, 9, 317, 12038, 718, 6030, 16877, 108, 4120, 17455...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
xfbml or html5 not working if tag not executed when page is loaded? === I have a site with image gallery. The same template and files are used by all the template pages. On photo page xfbml like works. On album page, which has a lightbox effect and fb like code generated by javascript when user clicks something, nothing appears, even though i can see the code is correct. html tag and sdk are included fine. do i need to tell the script to reinitialise when the javascript is generated? any help apreciated.. shaun
0
[ 2, 993, 13478, 8184, 54, 13, 15895, 264, 52, 638, 100, 3383, 52, 5557, 76, 2478, 25, 8572, 60, 800, 3726, 3726, 31, 57, 21, 689, 29, 1961, 2246, 9, 14, 205, 22894, 17, 6488, 50, 147, 34, 65, 14, 22894, 4434, 9, 27, 3056, 2478,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Property Attributes === When subclassing, I tend to give all my properties the attributes (nonatomic, strong), except for IBOutlet, which are (nonatomic, weak) when not top views. Are there cases when such a habit could be unsafe, and create retain loops or have other such negative effects? Thank you.
0
[ 2, 1354, 13422, 800, 3726, 3726, 76, 972, 1898, 68, 15, 31, 5480, 20, 590, 65, 51, 3704, 14, 13422, 13, 5, 3951, 26990, 15, 966, 6, 15, 1613, 26, 13, 4598, 1320, 1336, 15, 56, 50, 13, 5, 3951, 26990, 15, 3910, 6, 76, 52, 371...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Microbenchmark producing L3/LLC cache misses === I am looking for a microbenchmark that will cause many L3/LLC cache misses and increase the miss ratio of the L3 cache. Tricking the prefetcher is not that simple, so i would like to know if you are aware of any such tool.
0
[ 2, 2899, 26359, 4527, 4081, 644, 9280, 211, 150, 16522, 24613, 800, 3726, 3726, 31, 589, 699, 26, 21, 2899, 26359, 4527, 30, 129, 1679, 151, 644, 9280, 211, 150, 16522, 24613, 17, 1839, 14, 1501, 4825, 16, 14, 644, 240, 16522, 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...
Detecting keypress in Google Maps === Is there a way to detect keypress **only** when the Google Maps canvas is *in focus*? Google Maps JavaScript API V3 has built-in keyboard shortcuts. When a user clicks on a map tile or drags it, the map becomes *in focus*, and will respond to keyboard shortcuts. If you click anywhere else outside the map canvas, those keyboard shortcuts will no longer work. I would like to extend some of these shortcuts (specifically the arrow keys) to perform additional actions.
0
[ 2, 9092, 68, 1246, 5890, 19, 8144, 6867, 800, 3726, 3726, 25, 80, 21, 161, 20, 9092, 1246, 5890, 13, 1409, 4965, 1409, 76, 14, 8144, 6867, 9696, 25, 1637, 108, 1776, 2483, 60, 8144, 6867, 8247, 8741, 21, 2159, 566, 240, 63, 392, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I write this function in PL/PGSQL === I have a table with the following schema: CREATE TABLE foo ( the_date date, user_id int, pop REAL, hip REAL, lop REAL, cop REAL ); I want to write a function (foofunc) that references the previous row and returns a value based on the following logic: function foofunc() returns numeric as $body$ begin -- # calculate (current_row.hip - current_row.lop) as val1 for current row -- # calculate abs(current_row.hip - previous_row.cop) as val2 -- # calculate abs(current_row.lop - previous_row.cop) as val3 -- RETURN max(val1, val2, val3) end; $body$ language plpgsql I want to be able to call the function foofunc like this: SELECT foofunc() from foo where the_date between date1 and date2 and user_id=some_id; How do I implement foofunc()?
0
[ 2, 184, 107, 31, 2757, 48, 1990, 19, 12443, 118, 9623, 18, 22402, 800, 3726, 3726, 31, 57, 21, 859, 29, 14, 249, 23874, 45, 1600, 859, 4310, 111, 13, 5, 14, 1, 8209, 1231, 15, 4155, 1, 1340, 19, 38, 15, 1675, 683, 15, 3688, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
301 redirect with same url structure === I use 301 redirect from non-WWW to WWW domain! Works fine, but links are different. Example: from - ggkj.com/posts/godzilla/43 to - www.ggkj.com/index.php?view=posts&author=godzilla&aid=43 my .htaccess 301 redirect code: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www\.example\.com [NC] RewriteRule ^(.*) http://www.example\.com/$1 [L,R=301]
0
[ 2, 13, 18979, 302, 14706, 29, 205, 287, 6362, 1411, 800, 3726, 3726, 31, 275, 13, 18979, 302, 14706, 37, 538, 8, 6483, 20, 13, 6483, 4603, 187, 693, 1123, 15, 47, 6271, 50, 421, 9, 823, 45, 37, 13, 8, 13, 4572, 197, 728, 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...
SASS overwrite not stopping === I install ruby and then sass. Then type `sass `--watch ruby.scss:test.css The format was made but also this error shows "Listen has fallen back to polling" and won't watch So updated to the new version **3.2.0.alpha.247** and that was gone ^_^. But before the update and after when the file is overwrite when i save the ruby.scss file it continues to overwrite the file overwrite test.css overwrite test.css overwrite test.css overwrite test.css overwrite test.css overwrite test.css overwrite test.css ... Infinite Loop and to stop it `ctrl+c` Any ideas how to fix this ?
0
[ 2, 9233, 18, 84, 23716, 52, 7048, 800, 3726, 3726, 31, 16146, 10811, 17, 94, 9233, 18, 9, 94, 1001, 13, 1, 18, 9755, 13, 1, 8, 8, 9054, 10811, 9, 3862, 18, 18, 45, 10543, 9, 6824, 18, 14, 2595, 23, 117, 47, 67, 48, 7019, 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...
Embedding image slider into UITableViewCell === I would like to add a photo slider into a UITableViewCell, as in the appstore app description. There is a slider with the app screen shots. I tried adding a EGOPhotoViewController, but I'm pretty stuck. Any idea on what is the best solution to achieve it ?
0
[ 2, 11911, 69, 3258, 1961, 3295, 106, 77, 13, 11193, 579, 4725, 9725, 800, 3726, 3726, 31, 83, 101, 20, 3547, 21, 3056, 3295, 106, 77, 21, 13, 11193, 579, 4725, 9725, 15, 28, 19, 14, 4865, 16828, 4865, 5318, 9, 80, 25, 21, 3295, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 is not running in my browser and also does someone know how to unistall xampp completely from linux === Just take a look at this script and by the way whatever i am typing within html tag is not being displayed so i am typing with a '\' for '<' tag and a '/' for '>' tag \head/- \title/ Javascript tester /title\- \head/- \h1/ Date and Time \h1/- \body/- \script type = "text/javascript"/ now = new Date(); localtime = now.toString(); utctime = now.toGMTString(); document.write (localtime); document.write (utctime); \script/- now the browser displays only h1 heading that is date and time and if i include a string or a pass a string to document.write in script it will display that string in browser can anyone tell me the fault??? I beleive it cant get more detailed than this if u cant answer or u dont know plz go away and plz dont give it a negative vote just cos u dont know
0
[ 2, 8247, 8741, 25, 52, 946, 19, 51, 16495, 17, 67, 630, 737, 143, 184, 20, 9911, 21300, 993, 765, 3421, 1524, 37, 13024, 800, 3726, 3726, 114, 247, 21, 361, 35, 48, 3884, 17, 34, 14, 161, 2099, 31, 589, 25266, 363, 13, 15895, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Whats wrong with this RegExp? === I have a JS function which is passed a string that a RegEx is run against, and returns any matches: searchText= // some string which may or may not contain URLs Rxp= new RegExp("([a-zA-Z\d]+://)?(\w+:\w+@)?([a-zA-Z\d.-]+\.[A-Za-z]{2,4})(:\d+)?(/.*)?/ig") return searchText.match(Rxp); The RegExp should return matches for any of the following (and similar derivations): - google.com - www.google.com - http://www.google.com - http://google.com - google.com?querystring=value - www.google.com?querystring=value - http://www.google.com?querystring=value - http://google.com?querystring=value However, no such luck. Any suggestions?
0
[ 2, 98, 18, 1389, 29, 48, 7953, 6899, 60, 800, 3726, 3726, 31, 57, 21, 487, 18, 1990, 56, 25, 1100, 21, 3724, 30, 21, 7953, 1706, 25, 485, 149, 15, 17, 4815, 186, 1717, 45, 2122, 11969, 3726, 12894, 109, 3724, 56, 123, 54, 123,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Positioning certain number of divs from left to right and then again from left to right in lower part === I have certain number of dynamically generated #divs with known .className(All have same className) but unknown Id's. I want to make the size (width , height) of the #divs to be fixed and then to show them from left to right, in one row and then to next row if it does not fit in the row. I tried (float : left ) , But the element below the last div, also displays on the left and gives an ugly look + the divs are not in same size(they have variable length of text). What is the css properties and how to set it to do the magic for me....
0
[ 2, 649, 68, 1200, 234, 16, 13, 12916, 18, 37, 225, 20, 193, 17, 94, 188, 37, 225, 20, 193, 19, 987, 141, 800, 3726, 3726, 31, 57, 1200, 234, 16, 7782, 1326, 6756, 6926, 12916, 18, 29, 167, 13, 9, 1898, 7259, 5, 1233, 57, 205...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Unusual behavior of Users in MAC === I am facing a very peculiar problem. I typed: sudo chsh -s /bin/zsh since it was not responding and showed something like 121% so I closed the terminal and then when i logged in again I found a new user created named as "Other User" which is the exact mirror image of my user. Also my shell is again and again changing the name to static-"some number". Can please suggest me a solution to this?
2
[ 2, 4706, 3257, 16, 3878, 19, 1572, 800, 3726, 3726, 31, 589, 4325, 21, 253, 13193, 1448, 9, 31, 1001, 43, 45, 13, 18, 18601, 6193, 1635, 13, 8, 18, 13, 118, 4772, 118, 380, 1635, 179, 32, 23, 52, 15887, 17, 1908, 301, 101, 390...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Uncompress pdf issues === ![enter image description here][1] [1]: http://i.stack.imgur.com/qljs3.png When we decompress an pdf file we get some strange output as shown in the image. (the pdf is opened in notepad++) We've tried to decompress this using several libs and tools like mupdf, pdftk and our own .net application which decompresses all the stream using zlib. All these options give the same result. Anyone know how to make this more readable?
0
[ 2, 367, 960, 5890, 13, 11124, 1549, 800, 3726, 3726, 13, 187, 2558, 13679, 1961, 5318, 235, 500, 2558, 165, 500, 636, 165, 500, 45, 7775, 6903, 49, 9, 25325, 9, 1660, 11147, 9, 960, 118, 1251, 15664, 18, 240, 9, 306, 2723, 76, 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...
In memory data grid persistence === When we incorporate IMDG solution, we often think of making it a primary resource or a secondary resource. Both the approaches look tricky? 1. If we keep IMDG as primary then how much can we rely on it? I mean if IMDG comes down then data recovery process is reliable? 2. If IMDG is kept as a secondary resource then what are the challenges we will face while syncing up with the primary source database? In nutshell, when should we choose IMDG to be primary or secondary resource?
0
[ 2, 19, 1912, 1054, 7354, 28584, 800, 3726, 3726, 76, 95, 14710, 797, 14280, 4295, 15, 95, 478, 277, 16, 544, 32, 21, 1256, 6577, 54, 21, 2277, 6577, 9, 156, 14, 7501, 361, 5514, 93, 60, 137, 9, 100, 95, 643, 797, 14280, 28, 12...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PhaseListener : beforePhase method not called on form submit === I'm trying to set the focus to an inputText which has an error. When I click to navigate to my form from another page then my beforePhase() code is hit. However in the form once I click submit my beforePhase() code is not hit. Are the requiredMessage/validatorMessage attributes on my inputText element preventing it from reaching my beforePhase() code? Any ideas? Thanks
0
[ 2, 2702, 13891, 106, 13, 45, 115, 20043, 2109, 52, 227, 27, 505, 12298, 800, 3726, 3726, 31, 22, 79, 749, 20, 309, 14, 1776, 20, 40, 6367, 11969, 56, 63, 40, 7019, 9, 76, 31, 10840, 20, 20782, 20, 51, 505, 37, 226, 2478, 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...
Getting error message when i click on a link on master page in asp.net 4.0 === **Script link on master page:** <head runat="server"> <script src="<%=ConfigurationManager.AppSettings["ApplicationURL"].ToString()%>Scripts/jquery-1.7.2.js" type="text/javascript" language="javascript"></script> </head> **Default.aspx page** <a class="level1" href="VideoLibrary/VideoUpload.aspx">Video Library</a> When i click on this hyperlink i got following error message: ![enter image description here][1] [1]: http://i.stack.imgur.com/gs71f.png What should i do? Thanks
0
[ 2, 1017, 7019, 2802, 76, 31, 10840, 27, 21, 3508, 27, 1129, 2478, 19, 28, 306, 9, 2328, 268, 9, 387, 800, 3726, 3726, 13, 1409, 8741, 3508, 27, 1129, 2478, 45, 1409, 13, 1, 1743, 485, 721, 3726, 7, 10321, 106, 7, 1, 13, 1, 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...
File Writer Java ; how to overwrite === i'm making an Highscore implementation for my game. Here there's what i want to do: I have object Score which contains String Name and Integer score. Now : - if Name isn't already in the file, add it - if Name is on the file, after a space take the String and convert into integer, so i got the score. Now, if score is better than the actual, i have to OVERWRITE it on the file... and here's my problem..i can i do that? how can i write exactly a string over another in a certain point of the file?
0
[ 2, 3893, 1462, 8247, 13, 73, 184, 20, 84, 23716, 800, 3726, 3726, 31, 22, 79, 544, 40, 183, 15077, 6123, 26, 51, 250, 9, 235, 80, 22, 18, 98, 31, 259, 20, 107, 45, 31, 57, 3095, 1618, 56, 1588, 3724, 204, 17, 13820, 1618, 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 devise instruction set of a stack based machine? === Stack based virtual machines like CLR and JVM has different set of instructions. Is there any theory behind devising the instruction set while creating a virtual machine? e.g. there are JVM instruction sets to load constants from 0-5 onto the stack iconst_0 iconst_1 iconst_2 iconst_3 iconst_4 iconst_5 whereas in CLR there are instruction set to load number from 0 to 8 onto the stack as follows ldc.i4.0 ldc.i4.1 ldc.i4.2 ldc.i4.3 ldc.i4.4 ldc.i4.5 ldc.i4.6 ldc.i4.7 ldc.i4.8 why there is no `ldc.i4.9` and if `ldc.i4 <int32 (num)>` is there why we need the above opcodes? And there are others like these. I am eager to know what is the reason behind this difference between opcodes of different VMs? Is there any specific theory to devise these opcodes or it is totally driven by the characteristics of the VM itself or depends on the high-level language constructs?
0
[ 2, 184, 20, 29276, 7304, 309, 16, 21, 7566, 432, 1940, 60, 800, 3726, 3726, 7566, 432, 6599, 6035, 101, 10842, 139, 17, 487, 20147, 63, 421, 309, 16, 7650, 9, 25, 80, 186, 1639, 439, 10013, 18, 68, 14, 7304, 309, 133, 2936, 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...
set the link as default homepage in firefox when user click on the link === is it possible to make the link as default homepage for firefox? Something like when user click on the link on the webpage, the link will automatically be set as default homepage .. and it will open the link the next time user open the browser....
0
[ 2, 309, 14, 3508, 28, 12838, 213, 6486, 19, 535, 18219, 76, 4155, 10840, 27, 14, 3508, 800, 3726, 3726, 25, 32, 938, 20, 233, 14, 3508, 28, 12838, 213, 6486, 26, 535, 18219, 60, 301, 101, 76, 4155, 10840, 27, 14, 3508, 27, 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...
Login page, Jdeveloper, Servlet quesiton === I am trying to understand a process involved in logging in a user. I was told a servlet needed to be made in order to access the headers of a request/response. So one was made, it graps the header info, then checks to make sure the user in a valid user in the DB if so it sets the session with this user. If not it directs to the restration page. My issues is in understanding what calls this servlet, is a "start page needed to call this servlet?" Thanks Brian.
0
[ 2, 6738, 108, 2478, 15, 487, 26051, 106, 15, 13, 10321, 1336, 13, 13655, 49, 444, 800, 3726, 3726, 31, 589, 749, 20, 1369, 21, 953, 1013, 19, 13, 13919, 19, 21, 4155, 9, 31, 23, 470, 21, 13, 10321, 1336, 851, 20, 44, 117, 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...
Filtering a loaded kml file in OpenLayers === I'm trying to create an interactive search engine (for finding event tickets) of which one of its features is a visual map that shows related venues using OpenLayers. I have a plethora of venues (3000+) in a kml file that I would like to selectively show a filtered subsection of. Below is the code I have but when I try to run it has a JavaScript error. Running firebug and chrome developer tools makes me think that it is not getting passed the parameters I give because it says that the variables are null. However, I cannot figure out why they are not getting passed. Any insight is greatly appreciated. <!-- language: lang-js --> var map, drawControls, selectControl, selectedFeature, select; $('#kml').load('venuesComplete.kml'); kml=$('#kml').html(); function showVenues(state, city, venue){ filterStrategy = new OpenLayers.Strategy.Filter({}); var kmllayer = new OpenLayers.Layer.Vector("KML", { strategies: [filterStrategy, new OpenLayers.Strategy.Fixed()], protocol: new OpenLayers.Protocol.HTTP({ url: "venuesComplete.kml", format: new OpenLayers.Format.KML({ extractStyles: true, extractAttributes: true }) }) }); select = new OpenLayers.Control.SelectFeature(kmllayer); kmllayer.events.on({ "featureselected": onFeatureSelect, "featureunselected": onFeatureUnselect }); map.addControl(select); select.activate(); filter = new OpenLayers.Filter.Comparison({ type: OpenLayers.Filter.Comparison.LIKE, property: "", value: "" }); function clearFilter(){ filterStrategy.setFilter(null); } function setFilter(property, value){ filter.value = property; filter.property = value; filterStrategy.setFilter(filter); } var vector_style = new OpenLayers.Style(); if(venue!=""){ setFilter('name', venue); }else if(city!=""){ setFilter('description', city); }else if(state!=""){ setFilter('description', state); } map.addLayer(kmllayer); function onPopupClose(evt) { select.unselectAll(); } function onFeatureSelect(event) { var feature = event.feature; var selectedFeature = feature; var popup = new OpenLayers.Popup.FramedCloud("chicken", feature.geometry.getBounds().getCenterLonLat(), new OpenLayers.Size(100,100), "<h2>"+feature.attributes.name + "</h2>" + feature.attributes.description +'<br>'+feature.attributes, null, true, onPopupClose ); document.getElementById('venueName').value=feature.attributes.name; document.getElementById("output").innerHTML=event.feature.id; feature.popup = popup; map.addPopup(popup); } function onFeatureUnselect(event) { var feature = event.feature; if(feature.popup) { map.removePopup(feature.popup); feature.popup.destroy(); delete feature.popup; } } } function init() { map = new OpenLayers.Map('map'); var google_map_layer = new OpenLayers.Layer.Google( 'Google Map Layer', {type: google.maps.MapTypeId.HYBRID} ); map.addLayer(google_map_layer); state=""; state+=document.getElementById('stateProvDesc').value; city=""; city+=document.getElementById('cityZip').value; venue=""; venue+=document.getElementById('venueName').value; showVenues(state,city,'Michie Stadium'); map.addControl(new OpenLayers.Control.LayerSwitcher({})); map.zoomToMaxExtent(); }
0
[ 2, 25272, 21, 8572, 401, 255, 3893, 19, 368, 15187, 18, 800, 3726, 3726, 31, 22, 79, 749, 20, 1600, 40, 9194, 2122, 1406, 13, 5, 1106, 3007, 807, 10309, 6, 16, 56, 53, 16, 82, 967, 25, 21, 3458, 2942, 30, 1285, 1597, 9771, 568...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible for C/C++ PCRE to match 2 or more UTF-8 codepoints which are far apart from each other in a UTF-8 String? === Good afternoon, We are using the latest C/C++ version of PCRE on WINDOWS Visual Studio 8.0 and 9.0 with PCRE_CASELESS, PCRE_UTF8, PCRE_UCP. When we use the PCRE regex [\x{00E4}]{1} we are able to match Standard Latin code point U+00E4 with the string DAS tausendschöne Jungfräulein, also known as 44 41 53 20 74 61 75 73 65 6E 64 73 63 68 C3 B6 6E 65 20 4A 75 6E 67 66 72 C3 A4 75 6C 65 69 6E. Now we would like to match both the codepoints U+00E4(i,e.C3 B6) and U+00F6 (i.e. C3 A4) so we can implement a simple prototype C/C++ search and replace operation $1 $2. Is this possible to do? Thank you.
0
[ 2, 25, 32, 938, 26, 272, 118, 150, 20512, 5168, 99, 20, 730, 172, 54, 91, 287, 11720, 8, 457, 1797, 3132, 18, 56, 50, 463, 2629, 37, 206, 89, 19, 21, 287, 11720, 8, 457, 3724, 60, 800, 3726, 3726, 254, 3435, 15, 95, 50, 568,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Associated tables: Join or Include with Rails === I am feeling a bit slow when it comes to rails and the Active Record associations... I have two tables. Table = **Rings**<br/> Table = **Variations** with foreign_key => "ring_id". class Ring < ActiveRecord::Base has_many :variations end class Variation < ActiveRecord::Base belongs_to :ring end So in my "index/list" view i want to display all the rings, and both the variations, and i was thinking it would be possible to do this through one SQL query... however, i have tried the join and the include methods and i think i am just not understanding how they work properly. So my question is, how would i write a query in my controller, that would pull my "title" and "value" column values from the "variations" and combine them into one simple object for easy looping? Or do i have to loop through all rings and look up the variation values during the loop? thanks
0
[ 2, 1598, 7484, 45, 1865, 54, 468, 29, 2240, 18, 800, 3726, 3726, 31, 589, 1249, 21, 1142, 2276, 76, 32, 1624, 20, 2240, 18, 17, 14, 1348, 571, 10642, 9, 9, 9, 31, 57, 81, 7484, 9, 859, 800, 13, 1409, 2090, 18, 1409, 1, 5145,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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# system.io.filenotfoundexception when publishing === I wrote a form application in c# using vb2008, third party dlls, an xml file and images. The images are included in the project as ressources. When I publish the application and try to set it up on a diffrent pc then the one it was developed on, I get the system.io.filenotfoundexception error. If I copy the exe file to the desktop on the pc, and also copy the dlls and the xml file to the desktop, double clicking on the exe works fine. In my project, I have the copyLocal set to true for the required dll references. The xml is added to the project and set to copy if newer to output directory. I also checked the publish application files and everything is there. The line I use to load the xml file is this config = new XmlDocument(); config.Load("fileName.xml"); Can anyone help me? Thanks in advance.
0
[ 2, 272, 5910, 329, 9, 1963, 9, 16877, 1270, 12235, 10066, 872, 76, 3107, 800, 3726, 3726, 31, 738, 21, 505, 3010, 19, 272, 5910, 568, 13, 20468, 2753, 15, 422, 346, 13, 43, 211, 18, 15, 40, 23504, 3893, 17, 3502, 9, 14, 3502, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to implement Singleton Pattern in my IPhone project? === i am working on a project in wich i want to use Singleton Pattern model. i want to any data model of my this project fallow Singleton Pattern. i study the apple documentation regarding this http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaDesignPatterns/CocoaDesignPatterns.html#//apple_ref/doc/uid/TP40002974-CH6-SW6 and http://www.oodesign.com/singleton-pattern.html http://www.daveoncode.com/2011/12/19/fundamental-ios-design-patterns-sharedinstance-singleton-objective-c/ now i know my custom object classes should fallow the main rule of allocing a object but the i need the complete implementation like using of this class object i am new in iphone app development so if i am wrong in any place in this Question please guide
0
[ 2, 184, 20, 8713, 345, 444, 3732, 19, 51, 21024, 669, 60, 800, 3726, 3726, 31, 589, 638, 27, 21, 669, 19, 13, 13583, 31, 259, 20, 275, 345, 444, 3732, 1061, 9, 31, 259, 20, 186, 1054, 1061, 16, 51, 48, 669, 1080, 3581, 345, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 post a Message to Facebook Fanpage Status Box === I have a facebook fanpage. I know how to post a message to facebook fanpage wall. But i want to post a message to Facebook's Fanpage Status Box.(I am the Owner of the Fanpage) Can anyone please help me out on this?
0
[ 2, 184, 20, 678, 21, 2802, 20, 9090, 2514, 6486, 1782, 1649, 800, 3726, 3726, 31, 57, 21, 9090, 2514, 6486, 9, 31, 143, 184, 20, 678, 21, 2802, 20, 9090, 2514, 6486, 769, 9, 47, 31, 259, 20, 678, 21, 2802, 20, 9090, 22, 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...
ADFS - Windows integrated OR Forms authentication === I'm configuring an ADFS Server and are trying to achieve user-friendly sign-on for our relying party applications. Currently there are two relevant options as far as I know: - **Windows authentication**: this works great as a single-sign-on provider, but provides a user-unfriendly pop-up if the user is not currently in the correct windows domain. - **Forms Authentication**: this will always ask for a login method regardless of where the user is coming from. My question here is, is it possible to satsify these requirements: - If the user is logged in with the windows account, provide SSO - Otherwise, display the forms login page and let the user enter his windows credentials.
0
[ 2, 21, 8736, 18, 13, 8, 1936, 5547, 54, 1997, 27963, 800, 3726, 3726, 31, 22, 79, 1065, 13549, 68, 40, 21, 8736, 18, 8128, 17, 50, 749, 20, 4689, 4155, 8, 15950, 1676, 8, 218, 26, 318, 21760, 346, 3767, 9, 871, 80, 50, 81, 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...
infragistics grid === I am looking for some advise on the following approach to make tabs listen to jms messsages 1. a config file will have: tab names col names in each tab permissions for those columns in each tab 2. a grid component which can consume thise config file at startup and display those components 3. a jms message inserter/deleter/populator which can read the data grid of an associated array. Was wondering if someone can provide some sample infragistics components for : 1. a container for multiple tabs where each tab is a grid 2. an associated array bound datagrid ( which will update when array is updated ) 3. as a bonus, a grid which can listen to memcache
0
[ 2, 19, 22133, 3771, 18, 7354, 800, 3726, 3726, 31, 589, 699, 26, 109, 14640, 27, 14, 249, 2141, 20, 233, 6523, 18, 3834, 20, 487, 79, 18, 3957, 18, 14465, 137, 9, 21, 13, 14093, 2816, 3893, 129, 57, 45, 6523, 1817, 3313, 1817, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ShareKit 2.0 FBDialog.bundle no such file or directory === I'm using Sharekit 2.0 in my app but when I build app this error cames. I'm not getting what they are saying I tried my best to solve this from different questions but was not able. error: /Users/infoshore/Music/ShareKit-ShareKit-a089592/Classes/ShareKit/Sharers/Services/Facebook/../../../../../Submodules/facebook-ios-sdk/src/FBDialog.bundle: No such file or directory
0
[ 2, 1891, 13703, 172, 9, 387, 13, 13478, 4286, 5567, 9, 9930, 413, 90, 145, 3893, 54, 16755, 800, 3726, 3726, 31, 22, 79, 568, 1891, 13703, 172, 9, 387, 19, 51, 4865, 47, 76, 31, 1895, 4865, 48, 7019, 281, 18, 9, 31, 22, 79, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Excercise about C lists === I need help with the following code about linked lists: #include <stdlib.h> #include <stdio.h> struct nodo { int d; struct nodo *next; }; struct nodo *full(); int main(){ struct nodo *l; l=(struct nodo *)malloc(sizeof(struct nodo)); l=full(); while(l!=NULL){ printf("-->%d\n",l->d); l=l->next; } system("PAUSE"); } struct nodo *full(){ int i; struct nodo *head,*nes; head=(struct nodo *)malloc(sizeof(struct nodo)); head->next=NULL; for(i=1;i<5;i++){ nes=(struct nodo *)malloc(sizeof(struct nodo)); printf("Insert the %d element:\n",i); scanf("%d",&nes->d); nes->next=head; head=nes; } return head; } If I try for example to input 1,2,3,4 I got the following output: -->4 -->3 -->2 -->1 -->9708864 Why do I get the last number?What's wrong with my code? Thanks for your help :)
0
[ 2, 1396, 5482, 150, 2628, 88, 272, 7227, 800, 3726, 3726, 31, 376, 448, 29, 14, 249, 1797, 88, 4727, 7227, 45, 6926, 22640, 13, 1, 384, 43, 8326, 9, 252, 1, 6926, 22640, 13, 1, 384, 6921, 9, 252, 1, 13, 10346, 90, 537, 13, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Loss of data from sqlite database === I am using sqlite to store data in my application. The data gets stored correctly (I can see it in the database) and is fetched correctly. However, about a day later, when I go back into my app, the database has lost some of the data. I have put debug in to verify that what is being displayed is what is stored in the DB. Does anyone know of any examples or scenarios where this happens? And why it happens and what I can do to stop it from happening? Thanks
0
[ 2, 1526, 16, 1054, 37, 4444, 10601, 6018, 800, 3726, 3726, 31, 589, 568, 4444, 10601, 20, 1718, 1054, 19, 51, 3010, 9, 14, 1054, 3049, 8214, 12044, 13, 5, 49, 92, 196, 32, 19, 14, 6018, 6, 17, 25, 13, 28998, 12044, 9, 207, 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...
Cant get last array value === I dont understand why my array gets cut in loop? Array ( [0] => Array ( [name] => order [value] => asd ) [1] => Array ( [name] => item [value] => aa ) [2] => Array ( [name] => quant [value] => 5 ) [3] => Array ( [name] => price [value] => 20 ) ) My php code with for loop: for($i = 0; $i < count($json_array); $i++) { echo $json_array[$i]['name']; } The result I'm getting is: `order item quant` but why last value `price` is gone? What is wrong with this code?
0
[ 2, 2973, 164, 236, 7718, 1923, 800, 3726, 3726, 31, 1049, 1369, 483, 51, 7718, 3049, 1077, 19, 5293, 60, 7718, 13, 5, 636, 387, 500, 800, 1, 7718, 13, 5, 636, 7259, 500, 800, 1, 389, 636, 15165, 500, 800, 1, 28, 43, 13, 6, 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...
When debugging a console app, Visual Studio gets stuck in an exception-reporting loop. Why? === Consider this simple console application: using System; namespace Demo { class Program { static void Main(string[] args) { throw new Exception(); } } } I run this under the debugger in either Visual Studio 2010 or Visual Studio 2012 Beta. When I do so, naturally the debugger stops at the exception. Ok so far. But when I press F5 to continue (or choose Debug|Continue) it stops at the same exception again. I have to stop debugging for the program to exit. I expected the program to exit when I pressed F5. Does anyone know why it behaves the way that it does?
0
[ 2, 76, 121, 16254, 2762, 21, 8650, 4865, 15, 3458, 1120, 3049, 4549, 19, 40, 5391, 8, 17437, 68, 5293, 9, 483, 60, 800, 3726, 3726, 3563, 48, 1935, 8650, 3010, 45, 568, 329, 73, 204, 5582, 8376, 13, 1, 718, 625, 13, 1, 12038, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 FadeOut function === I'm quite new to the Jquery game so bare with me as this may sound like a stupid question to some. I'm trying to add a fadeOut function which links to another.[CLICK HERE][1] At present i have a flashing log when the user click on the logo, the flashing stops, has a slight delay then slowly fades Out. Is there anyone out there that is able to correct me on the code i have pasted below? <script> $(document).ready(function(){ $("#center-gif").click(function(){ $('#center-gif').hide(); $('#center-img').show(); }); $('#center-img').click(function(){ $('#center-img').hide(); $('#center-img-gif').show(); }); $('flash-link').click(function(){ $('center-img').fadeOut(5000); }); }); </script> [1]: http://iamnatesmithen.com/jukebox/index.php
0
[ 2, 487, 8190, 93, 11381, 1320, 1990, 800, 3726, 3726, 31, 22, 79, 1450, 78, 20, 14, 487, 8190, 93, 250, 86, 4856, 29, 55, 28, 48, 123, 646, 101, 21, 3553, 1301, 20, 109, 9, 31, 22, 79, 749, 20, 3547, 21, 11381, 1320, 1990, 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...
a4j:commandButton action doesn't work in maven integrated seam project === We have developed a maven integrated seam project which is using following technologies; - seam 2.2.1.Final - Richfaces 3.3.3.Final - JSF 1.2 - Jboss 7.0 Thunder In this project a4j:commandButton doesn't call action ,but h:commandButton works fine. I must use a4j:commandButton for partial rendering of my xhtml pages. How can I fixed this problem ? Configuration files are below. **faces-config.xml** <?xml version="1.0" encoding="UTF-8"?> <faces-config xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd" version="1.2"> <application> <view-handler>com.sun.facelets.FaceletViewHandler</view-handler> <locale-config> <default-locale>en</default-locale> <supported-locale>bg</supported-locale> <supported-locale>de</supported-locale> <supported-locale>en</supported-locale> <supported-locale>fr</supported-locale> <supported-locale>tr</supported-locale> </locale-config> </application> </faces-config> **web.xml** <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> <display-name>MuSEWEB</display-name> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> <context-param> <param-name>facelets.DEVELOPMENT</param-name> <param-value>false</param-value> </context-param> <context-param> <param-name>javax.faces.DEFAULT_SUFFIX</param-name> <param-value>.xhtml</param-value> </context-param> <context-param> <param-name>org.jboss.jbossfaces.JSF_CONFIG_NAME</param-name> <param-value>Mojarra-1.2</param-value> </context-param> <context-param> <param-name>org.richfaces.SKIN</param-name> <param-value>blueSky</param-value> </context-param> <filter> <filter-name>Seam Filter</filter-name> <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class> <init-param> <param-name>createTempFiles</param-name> <param-value>false</param-value> </init-param> </filter> <filter-mapping> <filter-name>Seam Filter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <listener> <listener-class>org.jboss.seam.servlet.SeamListener</listener-class> </listener> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>1</load-on-startup> </servlet> <servlet> <servlet-name>Seam Resource Servlet</servlet-name> <servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.seam</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>Seam Resource Servlet</servlet-name> <url-pattern>/seam/resource/*</url-pattern> </servlet-mapping> <session-config> <session-timeout>-1</session-timeout> </session-config> <security-constraint> <display-name>Restrict raw XHTML Documents</display-name> <web-resource-collection> <web-resource-name>XHTML</web-resource-name> <url-pattern>*.xhtml</url-pattern> </web-resource-collection> <auth-constraint /> </security-constraint> </web-app> Thanks in advance...
0
[ 2, 21, 300, 728, 45, 16239, 811, 444, 1028, 1437, 22, 38, 170, 19, 1216, 3124, 5547, 13927, 669, 800, 3726, 3726, 95, 57, 885, 21, 1216, 3124, 5547, 13927, 669, 56, 25, 568, 249, 5740, 73, 13, 8, 13927, 172, 9, 135, 9, 165, 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 can we prevent that DB2 fills blank chracters in Char Type? === Currently, I have a DB2 database and some columns in char type. If i insert some data to these columns with less characters than it's specified, DB2 fillst the rest with blank characters. For example: Column: orderkey in type `char(8)`<br> If I insert `"AB12"`, it is saved like `"AB12XXXX"` (X indicates the blank chracters) Is ist possible to prevent that DB2 fills blank characters by char type? DB2 Version 9.5
0
[ 2, 184, 92, 95, 2501, 30, 13, 9007, 135, 3509, 18, 6463, 6193, 5797, 6052, 19, 4892, 1001, 60, 800, 3726, 3726, 871, 15, 31, 57, 21, 13, 9007, 135, 6018, 17, 109, 7498, 19, 4892, 1001, 9, 100, 31, 14692, 109, 1054, 20, 158, 74...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 attached properties events? === I created an expander style that contains a checkbox in its header. The checkbox state is bound to an attached property: <Style TargetType="{x:Type Expander}" x:Key="MyCheckboxExpander"> <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type Expander}"> (...) <CheckBox x:Name="ExpanderHeaderChk" VerticalAlignment="Center" Margin="4,0,0,2" IsChecked="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(my:AP.IsChecked)}" /> (...) I my view, inside the expander I have a stackpanel with a ComboBox. Whenever the user checks the expander's checkbox, I wan't that the combobox gets the first item selected, on the oher hand whenever the user unchecks it, I wan't that the selecteditem of the combobox be null. How can I accomplish this? I'm following the MVVM pattern, but since this is more a matter of the view, I'm open to code-behind suggestions.
0
[ 2, 184, 20, 3053, 3638, 3704, 963, 60, 800, 3726, 3726, 31, 679, 40, 6073, 106, 1034, 30, 1588, 21, 2631, 5309, 19, 82, 157, 106, 9, 14, 2631, 5309, 146, 25, 4138, 20, 40, 3638, 1354, 45, 13, 1, 4381, 2935, 4474, 3726, 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...
I'm trying to make a uerscript that replaces the backround image on a site with a wooden image === This is the code // ==UserScript== // @name Wood Background // @namespace http://www.nationstates.net/nation=ellorn // @description Changes background to wood finish // @include http:*//w11.zetaboards.com/Allied_Republics/* // ==/UserScript== function addCss(cssString) { var head = document.getElementsByTagName('head')[0]; return unless head; var newCss = document.createElement('style'); newCss.type = "text/css"; newCss.innerHTML = cssString; head.appendChild(newCss); } addCss ( '* { background: #00ff00 url('http://awesomewallpapers.files.wordpress.com/2010/01 /wooden_top.jpg') no-repeat fixed center; }' ); I'm trying to replace the background of the sight to: http://awesomewallpapers.files.wordpress.com/2010/01/wooden_top.jpg
0
[ 2, 31, 22, 79, 749, 20, 233, 21, 287, 106, 8741, 30, 3934, 18, 14, 97, 5000, 1961, 27, 21, 689, 29, 21, 3248, 1961, 800, 3726, 3726, 48, 25, 14, 1797, 12894, 800, 3726, 16704, 8741, 3726, 3726, 12894, 13, 1, 7259, 1370, 2395, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Why my ajax call respon goes w === I have two page index.php and page.php.... index.php : this is my ajax call <!--- I hope all request GET/POST use this ajax call and update div Content-padding --> <script type="text/javascript"> $(document).ready(function() { $('a').click(function() { $.ajax({ type:'GET', url:$(this).attr('href'), dataType:'text', success: function(data) { $('#content-padding').load(url); } }); return false; }); $('#input-form').submit(function() { $.ajax({ type: 'POST', url: $(this).attr('action'), dataType:'text', success: function(data) { $('#content-padding').html(data); } }); return false; }); }) </script> .... <body> <div id="content-padding"> </div> <ul> <li><a href="page.php?modul=product&act=view" id="link-show">Product</a></li> </ul> </body> AND THIS IS MY page.php ........ ........ include ("config/conecction.php"); //handle for product view if($_GET[modul]=='product' and $_GET[act]=='view'){ $i=0; echo"<h2>Product List</h2>"; echo"<a href='page.php?modul=product&act=addProduct' > add Product </a>"; $sql=mysql_query("Select * from product "); echo"<table border='0'> <tr> <th>no</th> <th>Tanggal</th> <th>No.Bukti</th> <th>Keterangan</th> <th>Saldo</th>"; while($row=mysql_fetch_array($sql)){ $i=$i+1; echo"<tr> <td>$i</td> <td> $row[tanggal] </td> <td> $row[noBukti]</td> <td> $row[keterangan]</td> <td> $row[saldo]</td> <td> <a href='page.php?modul=product&act=update&id=$row[id]'>Update</a> </td> <td> <a href='page.php?modul=product&act=delete&id=$row[id]'>Delete</a> </td> </tr>"; } echo"</table>"; exit; } note : everything is fine when I open index.php and I clicked product link ajax call gave response without refresh and show product table correctly,, but when I want to update record that execute this code : if($_GET[modul]=='product' and $_GET[act]=='update'){ /// show the form with id "input-form" and selected value } WHY THE RESPONSE SHOW IN OTHER PAGE(page.php) not in index.php div content-padding ??? Please somebody help me... should i make ajax call in two places index.php and page.php,, but it's still wrong ???
3
[ 2, 483, 51, 20624, 645, 10719, 8782, 1852, 619, 800, 3726, 3726, 31, 57, 81, 2478, 4348, 9, 26120, 17, 2478, 9, 26120, 9, 9, 9, 9, 4348, 9, 26120, 13, 45, 48, 25, 51, 20624, 645, 13, 1, 187, 8, 8, 8, 31, 1376, 65, 3772, 16...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
how to use sum function in sql joins === How to use sum function in joins in sql server 2008 select SUM(d.TranTypeAmt), h.LnNo,h.LoanRcptAmt,d.Trantype,d.TranTypeAmt from LGen_LnInstClln_h h right outer join LGen_LnInstClln_d d on h.PK_Id=d.InstCllnHdr_FK where h.LnNo='40009'
0
[ 2, 184, 20, 275, 3907, 1990, 19, 4444, 255, 10612, 800, 3726, 3726, 184, 20, 275, 3907, 1990, 19, 10612, 19, 4444, 255, 8128, 570, 5407, 3907, 5, 43, 9, 17685, 4474, 765, 38, 6, 15, 746, 9, 16600, 251, 15, 252, 9, 1415, 210, 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...