unified_texts
stringlengths
32
30.1k
OpenStatus_id
int64
0
4
input_ids
list
token_type_ids
list
attention_mask
list
dealing with case sensitivity in client side xslt accross ie6+ and mozilla === I am delivering a small amount of XML to the client wrapped in a DIV, using jQuery I snip it out, store it as a string (called text) and convert it into a XMLdoc fragment. In IE(6+) I use: var doc=new ActiveXObject('Microsoft.XMLDOM'); doc.async='false'; doc.loadXML(text); in MOZILLA(3+) I use: var parser=new DOMParser(); var doc=parser.parseFromString(text,'text/xml'); this works fine, except that IE capitalises all the tag names, and Mozilla puts them all into lower case. The problem is that the XSLT I am then applying to them is case sensitive, and I am therefore having to write 2 templates, eg: <xsl:template match="VIDEOPLAYER">... and <xsl:template match="videoplayer">... which are doing the same thing (in this case injecting javascript). (I do not want to do the XSLT on the server because I don't want to have to parse every outgoing page, and that would be a problem for our server.) So does anyone know if there is either a way to control the case transformations that happens in the creation of the XML object, or a way of dealing with case in my XSLT xpath match attributes.
0
[ 2, 5746, 29, 610, 17018, 19, 6819, 270, 993, 18, 255, 38, 21, 150, 7703, 13, 660, 379, 2430, 17, 13, 18057, 3247, 800, 3726, 3726, 31, 589, 14150, 21, 284, 2006, 16, 23504, 20, 14, 6819, 3684, 19, 21, 13, 12916, 15, 568, 487, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Make Android WebView.loadUrl(...) Behave Synchronously === Has anybody tried to make Android WebView.loadUrl(...) behave synchronously? My scenario is this: I want to execute some javascript but I don't want to initialize the WebView that executes the javascript until the time at which the javascript is to be executed. For the javascript to execute successfully the call stack needs to have been prepared. The problem is that loadUrl is called and then returns immediately, tearing down the call stack in the process. Then WebViewClient::onPageFinished(...) gets called later signaling that the WebView is ready and I can execute my script. But now it is too late because my call stack is gone. I would like loadUrl to wait for onPageFinished but the problem is that onPageFinished gets called in the same thread as loadUrl was called on (even though the loadUrl happens in another thread). So waiting after calling loadURL blocks the thread and onPageFinished never gets called. Is there some pattern in android/java that permits a thread to wait but have the thread's message loop continue to execute so that a notification to that thread can be received?
0
[ 2, 233, 13005, 2741, 4725, 9, 8294, 911, 255, 5, 9, 9, 9, 6, 14149, 13, 16023, 13985, 800, 3726, 3726, 63, 11181, 794, 20, 233, 13005, 2741, 4725, 9, 8294, 911, 255, 5, 9, 9, 9, 6, 14149, 13, 16023, 13985, 60, 51, 12705, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Set TargetProfile for an Azure project === I'm getting the following error from a build I'm running through TeamCity on my development machine: [ResolveServiceConfiguration] WATMessage [16:02:05][WATMessage] C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\Windows Azure Tools\1.7\Microsoft.WindowsAzure.targets(354, 5): No default service configuration "ServiceConfiguration.cscfg" could be found in the project. [16:02:05][Xxx.Azure.Production\Xxx.Azure.Production.ccproj] Project Xxx.Azure.Production\Xxx.Azure.Production.ccproj failed. The same solution builds okay in VS.NET. I think what I need to do is set the `TargetProfile` for each of the Azure projects (there's more than one complaining) to override the default of `Cloud` but I can't find out where to do this. So how do I set the Target Profile for an Azure project?
0
[ 2, 309, 2935, 14503, 26, 40, 25715, 669, 800, 3726, 3726, 31, 22, 79, 1017, 14, 249, 7019, 37, 21, 1895, 31, 22, 79, 946, 120, 173, 5788, 27, 51, 522, 1940, 45, 636, 99, 5594, 195, 11449, 1126, 13549, 857, 500, 15553, 3845, 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...
Cygwin: compiling with -mno-cygwin give ncursesw/curses.h: No such file or directory === I've installed the ncurses library from Cygwin setup. It compiles fine, but when I try to compile to run without Cygwin dependecies, the compiler says: a.c:4:29: ncursesw/curses.h: No such file or directory a.c: In function `main': a.c:29: warning: implicit declaration of function `initscr' a.c:31: warning: implicit declaration of function `endwin' a.c: In function `goo': a.c:48: warning: implicit declaration of function `printw' I'm using the command-line: `gcc-3 -Wall -O3 -I C:/C -o rl a.c -mno-cygwin -lncursesw`. How to fix this?
0
[ 2, 6728, 263, 4181, 45, 24378, 29, 13, 8, 79, 251, 8, 2731, 263, 4181, 590, 9276, 9679, 160, 499, 118, 4734, 7202, 9, 252, 45, 90, 145, 3893, 54, 16755, 800, 3726, 3726, 31, 22, 195, 4066, 14, 9276, 9679, 160, 1248, 37, 6728, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
session id changing on ajax call to file in subfolder === I am calling an ajax file in my top directory ("/filename.php") The ajax file is located in a sub directory ("/uploads/filename.php") When I call the `start_session()` function and then echo the session id at the top of each page, the session id is different on the file in the top directory than the session id on the file in the sub directory. I need access to the session variables created in the top directory from the sub directory. What do I have to do to accomplish this?
0
[ 2, 3723, 4924, 4226, 27, 20624, 645, 20, 3893, 19, 972, 8814, 106, 800, 3726, 3726, 31, 589, 2555, 40, 20624, 3893, 19, 51, 371, 16755, 13, 5, 7, 118, 16877, 7259, 9, 26120, 7, 6, 14, 20624, 3893, 25, 335, 19, 21, 972, 16755, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
converting List<List<string[]>> into string [][][] in c# === When creating webservices, in c#, I have found it very useful to pass back jagged arrays, i.e. string[][] I also found a neat trick to build these in a simple way in my code, which was to create a List<string[]> and convert it by doing a ToArray() call. e.g. public string[][] myws() { List<string[]> output = new List<string[]>(); return output.ToArray(); } I would like to be able to employ a similar solution, but I can't think how to do something similar with a 3 level jagged array or string[][][], without resorting to loops and such. Regards Martin
0
[ 2, 19583, 968, 1, 5739, 1, 11130, 2558, 500, 1, 77, 3724, 20767, 2558, 500, 2558, 500, 19, 272, 5910, 800, 3726, 3726, 76, 2936, 2741, 11449, 18, 15, 19, 272, 5910, 15, 31, 57, 216, 32, 253, 4811, 20, 1477, 97, 20409, 7718, 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...
Cannot access a property or method of a null object reference Flex === I've been trying to learn flex/flash programming and am working on a project where I need to populate a spinner list in flex dynamically from a string. I have a function that separates the string using "split" and now I need to populate an array list. I have been working with this stupid big for hours now and can;t find help anywhere. I keep getting the following error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at views::CommonPlaces/initApp()[/Users/twing207/Documents/Adobe Flash Builder 4.6/AmericanTaxi/src/views/CommonPlaces.mxml:30] My code is here: <fx:Script> <![CDATA[ import mx.collections.ArrayList; import spark.events.IndexChangeEvent; var Arr1:Array; var Arr2:Array; var Arr3:Array; [Bindable] public var CommonPlacesArray:ArrayList; var CommonPlacesData:String = new String("2133664:American Taxi Dispatch, Inc:Mount Prospect:834 E RAND RD|2133665:Walmart:Mount Prospect:930 Mount Prospect Plaza|2228885:Garage:Des Plaines:1141 Lee St|2228886:Asian Island:Palatine:1202 E Dundee Rd|2229464:Kohl's:Arlington Heights:700-856 W Dundee Rd|"); var CurrentSelect:String = new String(); private function initApp():void { Arr1 = CommonPlacesData.split("|"); var arrLength:Number = new Number(Arr1.length); for (var i:Number = 0; i < (arrLength - 1); i++) { CurrentSelect = new String(Arr1[i]); Arr2 = CurrentSelect.split(":"); //THE LINE BELOW IS WHERE IT STOPS: CommonPlacesArray.addItem(Arr2[1]); } } It doesn't seem to like the "CommonPlacesArray.addItem" line. Any help or a point in the right direction would be great. Thanks in advanced!
0
[ 2, 1967, 1381, 21, 1354, 54, 2109, 16, 21, 16203, 3095, 2801, 14409, 800, 3726, 3726, 31, 22, 195, 74, 749, 20, 2484, 14409, 118, 26694, 3143, 17, 589, 638, 27, 21, 669, 113, 31, 376, 20, 1675, 12383, 21, 3310, 1031, 968, 19, 14...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Pivoting with Sum function in tsql === i have data in following format Client Business Unit Year Quarter USD Amt BalckRock Pricing 2010 Q1 234 BalckRock Pricing 2010 Q2 343 BalckRock Pricing 2010 Q3 545 BalckRock Pricing 2010 Q4 5435 BalckRock Pricing 2011 Q1 5425 BalckRock Pricing 2011 Q2 3524 BalckRock Pricing 2011 Q3 54 BalckRock Pricing 2011 Q4 5425 BalckRock Pricing 2012 Q1 545 BalckRock Pricing 2012 Q2 5445 BalckRock Pricing 2012 Q3 545 BalckRock Pricing 2012 Q4 4545 BalckRock Sales 2010 Q1 23 BalckRock Sales 2010 Q2 3434 BalckRock Sales 2010 Q3 4234 BalckRock Sales 2010 Q4 4234 BalckRock Sales 2011 Q1 3423 BalckRock Sales 2011 Q2 1 BalckRock Sales 2011 Q3 1341 BalckRock Sales 2011 Q4 434 BalckRock Sales 2012 Q1 421 BalckRock Sales 2012 Q2 42 BalckRock Sales 2012 Q3 434 BalckRock Sales 2012 Q4 4214 and i want it in following format Client Business Unit 2010 2011 2012 BalckRock Pricing 6557 14428 11080 BalckRock Sales 11925 5199 5111 Basically the sum of USD amnt year wise, but years as the column heading Can anyone help me in this ?
0
[ 2, 20670, 68, 29, 3907, 1990, 19, 13, 38, 18, 22402, 800, 3726, 3726, 31, 57, 1054, 19, 249, 2595, 6819, 508, 1237, 159, 2650, 182, 43, 589, 38, 3350, 2601, 4651, 24318, 498, 2593, 165, 13, 20404, 3350, 2601, 4651, 24318, 498, 259...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Bootstrap twitter collapse javascript generic === Am trying to write a generic javascript that would rename the collapsible link when clicked from "Expand" to "Hide" and vice versa. I wrote the below code for that in jquery $(".collapse").collapse(); $(".collapse").on('show', function() { $("a[data-target='#"+$(this).attr('id')+"']").text($("a[data-target='#"+$(this).attr('id')+"']").attr('data-on-hidden')) }); $(".collapse").on('hidden', function() { $("a[data-target='#"+$(this).attr('id')+"']").text($("a[data-target='#"+$(this).attr('id')+"']").attr('data-on-active')) }); which is interacts with the following html <div class="collapse in" id="collapse-fields"> Expandable content </div> <a href="#" data-toggle="collapse" data-target="#collapse-fields" data-on-hidden="Hide" data-on-active="Expand">Expand</a> Am a little newbie to JQuery and I was wondering if my code is written in a right way or if there is a better approach to write such a function? Thank you
0
[ 2, 5894, 16514, 10623, 6529, 8247, 8741, 12733, 800, 3726, 3726, 589, 749, 20, 2757, 21, 12733, 8247, 8741, 30, 83, 302, 7259, 14, 9470, 2552, 18, 3426, 3508, 76, 15802, 37, 13, 7, 6899, 290, 7, 20, 13, 7, 19522, 7, 17, 1821, 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...
Android MySQL Php application trying to store user details using post statements in php === Hi all I am creating an application and I am trying to store user details on a mysql database using android as front end and JSON/php to post email address, first name, last name etc. When I try to store/post data I get the following logcat output log, can anyone suggest any tips through better interpretation of the log. Note I have declared 'Email_address' in 'index.php'. 07-29 19:20:48.463: E/JSON(340): <br />n<font size='1'><table class='xdebug-error xe-notice xe-scream' dir='ltr' border='1' cellspacing='0' cellpadding='1'>n<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> SCREAM: Error suppression ignored for</th></tr>n<tr><th align='left' bgcolor='#f57900' colspan="5"><span style='background-color: #cc0000; color: #fce94f; font-size: x-large;'>( ! )</span> Notice: Undefined index: Email_address in C:\wamp\www\socialeyes\index.php on line <i>57</i></th></tr>n<tr><th align='left' bgcolor='#e9b96e' colspan='5'>Call Stack</th></tr>n<tr><th align='center' bgcolor='#eeeeec'>#</th><th align='left' bgcolor='#eeeeec'>Time</th><th align='left' bgcolor='#eeeeec'>Memory</th><th align='left' bgcolor='#eeeeec'>Function</th><th align='left' bgcolor='#eeeeec'>Location</th></tr>n<tr><td bgcolor='#eeeeec' align='center'>1</td><td bgcolor='#eeeeec' align='center'>0.0019</td><td bgcolor='#eeeeec' align='right'>267768</td><td bgcolor='#eeeeec'>{main}( )</td><td title='C:\wamp\www\socialeyes\index.php' bgcolor='#eeeeec'>..\index.php<b>:</b>0</td></tr>n</table></font>n{"tag":"register","success":0,"error":2,"error_msg":"User already existed"}n 07-29 19:20:48.481: E/JSON Parser(340): Error parsing data org.json.JSONException: Value <br of type java.lang.String cannot be converted to JSONObject 07-29 19:20:48.481: D/AndroidRuntime(340): Shutting down VM 07-29 19:20:48.491: W/dalvikvm(340): threadid=1: thread exiting with uncaught exception (group=0x40015560) 07-29 19:20:48.523: E/AndroidRuntime(340): FATAL EXCEPTION: main 07-29 19:20:48.523: E/AndroidRuntime(340): java.lang.NullPointerException 07-29 19:20:48.523: E/AndroidRuntime(340): at wavedevelopment.socialeyes.RegisterActivity$1.onClick(RegisterActivity.java:78) 07-29 19:20:48.523: E/AndroidRuntime(340): at android.view.View.performClick(View.java:2485) 07-29 19:20:48.523: E/AndroidRuntime(340): at android.view.View$PerformClick.run(View.java:9080) 07-29 19:20:48.523: E/AndroidRuntime(340): at android.os.Handler.handleCallback(Handler.java:587) 07-29 19:20:48.523: E/AndroidRuntime(340): at android.os.Handler.dispatchMessage(Handler.java:92) 07-29 19:20:48.523: E/AndroidRuntime(340): at android.os.Looper.loop(Looper.java:123) 07-29 19:20:48.523: E/AndroidRuntime(340): at android.app.ActivityThread.main(ActivityThread.java:3683) 07-29 19:20:48.523: E/AndroidRuntime(340): at java.lang.reflect.Method.invokeNative(Native Method) 07-29 19:20:48.523: E/AndroidRuntime(340): at java.lang.reflect.Method.invoke(Method.java:507) 07-29 19:20:48.523: E/AndroidRuntime(340): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839) 07-29 19:20:48.523: E/AndroidRuntime(340): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) 07-29 19:20:48.523: E/AndroidRuntime(340): at dalvik.system.NativeStart.main(Native Method) 07-29 19:20:50.981: I/Process(340): Sending signal. PID: 340 SIG: 9
0
[ 2, 13005, 51, 18, 22402, 13, 26120, 3010, 749, 20, 1718, 4155, 3289, 568, 678, 9015, 19, 13, 26120, 800, 3726, 3726, 4148, 65, 31, 589, 2936, 40, 3010, 17, 31, 589, 749, 20, 1718, 4155, 3289, 27, 21, 51, 18, 22402, 6018, 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, 1, 1, 1, 1, 1, 1...
AS2: attachMovie issue in simple Flash game === I am creating a very small flash game in which the character must avoid enemies that are following it. There is no gravity involved, just simple wasd or arrow key movement in any direction. It works perfectly with 1 enemy but as soon as i add multiple enemies through use of attachMovie it goes funny. The enemies slowly move away from each other and out of the screen and their properties don't work individually but as a group, meaning they only follow the character if the character moves away from the all of the enemies. Any help would be much appreciated, here's the code on the first frame of the enemy: this.onEnterFrame = function() { /*------------Enemy Movement-------------*/ this._x += _root.xspeed_enemy; this._y += _root.yspeed_enemy; // add speed to the objects x and y coordinates _root.xspeed_enemy *= _root.friction_enemy; _root.yspeed_enemy *= _root.friction_enemy; // multiply by 0.x every frame to simulate friction (object slows to a stop) if (this._x < _root.box._x) { _root.xspeed_enemy += 0.3; } else { _root.xspeed_enemy -= 0.3; } // locate character x coordinate and move towards them if (this._y < _root.box._y) { _root.yspeed_enemy += 0.3; } else { _root.yspeed_enemy -= 0.3; // "" "" y coordinate "" "" "" "" } if (_root.xspeed_enemy < 0.04 && _root.xspeed_enemy > -0.04) { _root.xspeed_enemy = 0; } if (_root.yspeed_enemy < 0.04 && _root.yspeed_enemy > -0.04) { _root.yspeed_enemy = 0; } // makes very small insignificant values = 0 to avoid object crawling /*---------------------------------------*/ /*-------Frame Collision Checks------------*/ if (_root.frame.hitTest(_x+17.5, _y, true)) { // collision check character right with frame _root.xspeed_enemy *= -1; } // bounces character in opposite direction if (_root.frame.hitTest(_x-17.5, _y, true)) { // "" "" "" left with frame _root.xspeed_enemy *= -1; } if (_root.frame.hitTest(_x, _y+17.5, true)) { // "" "" "" bottom with frame _root.yspeed_enemy *= -1; } if (_root.frame.hitTest(_x, _y-17.5, true)) { // "" "" "" top with frame _root.yspeed_enemy *= -1; } /*------------------------------------------*/ /*----------Enemy Duplication-----------*/ while (_root.i < 1) { _root.i++ _root.attachMovie("enemy", "enemy" + _root.i, _root.getNextHighestDepth()) // creates new enemy with name of enemy1, enemy2 etc _root.enemy1._x = _root.enemy._x -80; _root.enemy1._y = _root.enemy._y -80; // positions new enemy on screen } /*--------------------------------------*/ }
0
[ 2, 28, 135, 45, 19514, 22607, 1513, 19, 1935, 4433, 250, 800, 3726, 3726, 31, 589, 2936, 21, 253, 284, 4433, 250, 19, 56, 14, 925, 491, 2658, 5743, 30, 50, 249, 32, 9, 80, 25, 90, 8849, 1013, 15, 114, 1935, 23, 43, 54, 7409, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 request header to WCF service from cross domain? === From the caller site I will be having this code: $.ajax({ type: "GET", contentType: "application/json; charset=utf-8", beforeSend: function (xhr) { xhr.setRequestHeader("My-Key", '12345'); }, crossDomain: true, xhrFields: { withCredentials: true }, url: "http://targetsite.com/services/myservice/mymethod", dataType: "json", success: function (response) { }, error: function (message) { } }); In the target site *service* I have the following code: public override void ProcessRequest(ref RequestContext requestContext) { var keys = (HttpRequestMessageProperty) requestContext.RequestMessage.Properties[HttpRequestMessageProperty.Name]; string apiKey = prop.Headers["My-Key"];// this is coming null always } I am getting apiKey null. Can you let me know what I am doing wrong here?
0
[ 2, 184, 20, 1477, 3772, 157, 106, 20, 11801, 410, 365, 37, 919, 4603, 60, 800, 3726, 3726, 37, 14, 21326, 689, 31, 129, 44, 452, 48, 1797, 45, 5579, 9, 6881, 7522, 5, 1, 1001, 45, 13, 7, 3060, 7, 15, 2331, 4474, 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...
How to add different layouts for children in expandable list view in android? === I'm new to android programming. There might be simple solution for this but I can't find it. I'm trying to implement expendable list view with two different layouts for children in different groups. After quite a bit of searching I came up with the following code for my adapter. When I run application and try to expand last group (of 4 groups) it crashes with ArrayIndexOutOfBoundsException: length=2; index=2 no matter for which group I check the condition in getChildType: public int getChildType (int groupPosition, int childPosition) { Log.i(TAG, "getChildType("+groupPosition+","+childPosition+") called"); if (groupPosition == 3) return 1; else return 0; } Thanks for any help! Code for adapter: public class ExpListAdapter extends BaseExpandableListAdapter { private String TAG = "ExpListAdapter"; private String arrGroupelements[]; private String arrChildelements[][][]; private Context myContext; public ExpListAdapter(Context context, String[] groupElements, String[][][] childElements) { myContext = context; arrGroupelements = groupElements; arrChildelements = childElements; } public Object getChild(int groupPosition, int childPosition) { return arrChildelements[groupPosition][childPosition]; } public int getChildType (int groupPosition, int childPosition) { Log.i(TAG, "getChildType("+groupPosition+","+childPosition+") called"); if (groupPosition == 3) return 1; else return 0; } public long getChildId(int groupPosition, int childPosition) { return childPosition; } public View getChildView( int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent) { LayoutInflater inflater = (LayoutInflater) myContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); int gp = groupPosition; int cp = childPosition; Log.d(TAG, "groupPosition: "+gp); Log.d(TAG, "childPosition: "+cp); Log.d(TAG, "isLastChild: "+isLastChild); if (convertView == null) { if (getChildType(groupPosition,childPosition)==0) convertView = inflater.inflate(R.layout.child_row, null); else convertView = inflater.inflate(R.layout.child_row_slide_btn, null); } if (getChildType(groupPosition,childPosition)==0) { TextView fieldInfo = (TextView) convertView.findViewById(R.id.fieldInfo); fieldInfo.setText(arrChildelements[gp][cp][0]); EditText editField = (EditText) convertView.findViewById(R.id.editField); editField.setText(arrChildelements[gp][cp][1], null); editField.addTextChangedListener( new TextWatcher() { public void afterTextChanged(Editable s) { // Log.i(TAG,"afterTextChanged called"); } public void beforeTextChanged(CharSequence s, int start, int count, int after) { } public void onTextChanged(CharSequence s, int start, int before, int count) { } }); } else { CheckBox cb = (CheckBox)convertView.findViewById(R.id.onOff); cb.setText("konj"); } return convertView; } public int getChildTypeCount (int groupPosition) { if (groupPosition==3) return 2; else return 1; } public int getChildrenCount(int groupPosition) { return arrChildelements[groupPosition].length; } public Object getGroup(int groupPosition) { return arrGroupelements[groupPosition]; } public int getGroupCount() { return arrGroupelements.length; } public long getGroupId(int groupPosition) { return groupPosition; } public View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent) { if (convertView == null) { LayoutInflater inflater = (LayoutInflater) myContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE); convertView = inflater.inflate(R.layout.group_row, null); } TextView groupTitle = (TextView) convertView.findViewById(R.id.groupTitle); groupTitle.setText(arrGroupelements[groupPosition]); return convertView; } public boolean hasStableIds() { return true; } public boolean isChildSelectable(int groupPosition, int childPosition) { return true; } }
0
[ 2, 184, 20, 3547, 421, 9106, 18, 26, 391, 19, 6073, 579, 968, 1418, 19, 13005, 60, 800, 3726, 3726, 31, 22, 79, 78, 20, 13005, 3143, 9, 80, 530, 44, 1935, 4295, 26, 48, 47, 31, 92, 22, 38, 477, 32, 9, 31, 22, 79, 749, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How can i create search bar for my table view === i want to make search bar for my table view i tried too much but i couldn't l must use below code in my table view : in RootViewController.h // // RootViewController.h // my tabless // // Created by Mac on 6/14/12. // Copyright (c) 2012 __MyCompanyName__. All rights reserved. // #import <UIKit/UIKit.h> @interface RootViewController : UITableViewController { NSMutableArray *data; } @end and in RootViewController.m // // RootViewController.m // my tabless // // Created by Mac on 6/14/12. // Copyright (c) 2012 __MyCompanyName__. All rights reserved. // #import "RootViewController.h" #import "DetialViewController.h" @implementation RootViewController - (id)initWithStyle:(UITableViewStyle)style { self = [super initWithStyle:style]; if (self) { // Custom initialization } return self; } - (void)didReceiveMemoryWarning { // Releases the view if it doesn't have a superview. [super didReceiveMemoryWarning]; // Release any cached data, images, etc that aren't in use. } #pragma mark - View lifecycle - (void)viewDidLoad { [super viewDidLoad]; data = [[NSMutableArray alloc] init]; //data [data addObject:[[NSMutableDictionary alloc] initWithObjectsAndKeys:@" One ", @"name" , @"Number One", @"name1" , @"zhmara yak", @"description" , @"n1.png", @"image" ,nil]]; [data addObject:[[NSMutableDictionary alloc] initWithObjectsAndKeys:@" Two ", @"name" , @"Number Two", @"name1" , @"zhmara dw ", @"description" , @"n2.png", @"image" ,nil]]; [data addObject:[[NSMutableDictionary alloc] initWithObjectsAndKeys:@" Three ", @"name" , @"Number Three", @"name1" , @"zhmara se", @"description" , @"n3.png", @"image" ,nil]]; [data addObject:[[NSMutableDictionary alloc] initWithObjectsAndKeys:@" Four ", @"name" , @"Number Four", @"name1" , @"zhmara chwar", @"description" , @"n4.jpeg", @"image" ,nil]]; [data addObject:[[NSMutableDictionary alloc] initWithObjectsAndKeys:@" Five ", @"name" , @"Number Five", @"name1" , @"penj", @"description" , @"n5.jpeg", @"image" ,nil]]; // Uncomment the following line to preserve selection between presentations. // self.clearsSelectionOnViewWillAppear = NO; // Uncomment the following line to display an Edit button in the navigation bar for this view controller. // self.navigationItem.rightBarButtonItem = self.editButtonItem; //Set the title self.navigationItem.title = @"Numbers"; } - (void)viewDidUnload { [super viewDidUnload]; // Release any retained subviews of the main view. // e.g. self.myOutlet = nil; } - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; } - (void)viewDidAppear:(BOOL)animated { [super viewDidAppear:animated]; } - (void)viewWillDisappear:(BOOL)animated { [super viewWillDisappear:animated]; } - (void)viewDidDisappear:(BOOL)animated { [super viewDidDisappear:animated]; } - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations return (interfaceOrientation == UIInterfaceOrientationPortrait); } #pragma mark - Table view data source - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { // Return the number of sections. return 1; } - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { // Return the number of rows in the section. return [data count]; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; } // Configure the cell... cell.textLabel.text = [[data objectAtIndex:indexPath.row] objectForKey:@"name"]; [cell setAccessoryType:UITableViewCellAccessoryDisclosureIndicator]; return cell; } /* // Override to support conditional editing of the table view. - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { // Return NO if you do not want the specified item to be editable. return YES; } */ /* // Override to support editing the table view. - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { if (editingStyle == UITableViewCellEditingStyleDelete) { // Delete the row from the data source [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade]; } else if (editingStyle == UITableViewCellEditingStyleInsert) { // Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view } } */ /* // Override to support rearranging the table view. - (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath { } */ /* // Override to support conditional rearranging of the table view. - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath { // Return NO if you do not want the item to be re-orderable. return YES; } */ #pragma mark - Table view delegate - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { DetialViewController *Detial = [[DetialViewController alloc] initWithNibName:@"DetialViewController" bundle:nil]; { Detial.Label1String = [[NSString alloc] initWithString:[[data objectAtIndex:indexPath.row] objectForKey:@"name1"]]; Detial.LabelString = [[NSString alloc] initWithString:[[data objectAtIndex:indexPath.row] objectForKey:@"description"]]; Detial.ImageString = [[NSString alloc] initWithString:[[data objectAtIndex:indexPath.row] objectForKey:@"image"]]; Detial.title = [[data objectAtIndex:indexPath.row] objectForKey:@"name"]; } [self.navigationController pushViewController:Detial animated:YES];} @end please help me its very important for me ... and the link below is my table view created please create for me search bar for my table view and send to my email:sarmad.gardi@yahoo.com thanks for helping .. [my table view link][1] [1]: http://www.datafilehost.com/get.php?file=3b1d9e17
0
[ 2, 184, 92, 31, 1600, 2122, 748, 26, 51, 859, 1418, 800, 3726, 3726, 31, 259, 20, 233, 2122, 748, 26, 51, 859, 1418, 31, 794, 266, 212, 47, 31, 711, 22, 38, 644, 491, 275, 1021, 1797, 19, 51, 859, 1418, 13, 45, 19, 5900, 472...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PL/SQL - Only one value for a person === I have the following table. CLASS_HAS_STUDENTS ( PER_SSN INTEGER NOT NULL, PER_YEAR INTEGER NOT NULL, /*These two are PKs for a student*/ SCHOOL_CODE INTEGER NOT NULL, /*PK for a school*/ CLASS_YEAR INTEGER NOT NULL, CLASS_NUMBER INTEGER NOT NULL, CLASS_TEACHTYPE CHAR(3) NOT NULL, /*These three are PKs for a class*/ STUDCLASS_STATUS CHAR(1) NOT NULL constraint CKC_STUDCLASS_STATUS_CLASS_TI check (StudClass_Status IN ('E', 'Y', 'T', 'P', 'F')), STUDCLASS_LISTNUMBER INTEGER NOT NULL, STUDCLASS_ROLLNUMBER INTEGER NOT NULL ); (This code lacks some minor constraints) Now, I need a way to check that one PER_SSN/PER_YEAR (a person's PK) can only have one 'E' ("Enrolled") status. I can't do this with a trigger (given I'm selecting from the same table) and I don't know if I can do this with a check constraint (can I use COUNT() here?). Any help is appreciated.
0
[ 2, 12443, 118, 18, 22402, 13, 8, 104, 53, 1923, 26, 21, 840, 800, 3726, 3726, 31, 57, 14, 249, 859, 9, 718, 1, 6482, 1, 24822, 18, 13, 5, 416, 1, 18, 18, 103, 13820, 52, 16203, 15, 416, 1, 731, 13820, 52, 16203, 15, 13, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Array of Lists or Other Possibilities? === So my question starts out as being is it possible to make an array of linked lists in Java? For some background on why I am asking. I am working on a project in which we are given a file of square matrices. We have to find the determinant of the matrices but they have to be stored in a linked structure. We have previously done this same thing using arrays and so I can reuse a decent bit of my source from that one. Here is what I have though up to do (mostly based on my previous project): 1) Read each line of the file in as a string 2) Count the number of matrices and determine where each starts and ends. *3) Read each element of each matrix into a multi-linked ListNode (I'll write the class for those) *4) Repeat for each matrix 5) Process the determinant of each. So the two starred steps are the ones I'm having a tough time figuring out. I want to read in all the matrices at once so I don't lose track of where I am in the file like I would if I read in one matrix, did the determinant, and then went back to the file to get another one. However, I don't know how to store each linked list representation so that I can just iteratively process through each. My only thought is to read each matrix into the linked list structure and store each linked list structure in an array if possible. If not possible, what is a possible alternative? I apologize if I haven't been very clear. It's hard to articulate in paragraph form.
0
[ 2, 7718, 16, 7227, 54, 89, 13086, 60, 800, 3726, 3726, 86, 51, 1301, 3244, 70, 28, 142, 25, 32, 938, 20, 233, 40, 7718, 16, 4727, 7227, 19, 8247, 60, 26, 109, 2395, 27, 483, 31, 589, 3379, 9, 31, 589, 638, 27, 21, 669, 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...
Using GGNFS on CYGWIN for finding prime factors === I need to find the prime factors of a 94 digit. I found on the internet this [Link][1] which is suppose to be a guidance for beginners to do the job. I couldn't get to pass Step2. Anyway, my problem is I don't know how to use GGNFS with either windows or CYGWIN? I downloaded the required files but I don't know how to execute the code. I downloaded the GGNFS from [HERE][2]. The details of the file that I downloaded are: Type------Processor----Version----Size--------File---------------------------------Date 32bit-------x86-----------SVN 413----4.0 MB---ggnfs-svn413-win32-p4.zip-----03/20/2011 Your help would be appreciated. Thanks, [1]: http://gilchrist.ca/jeff/factoring/nfs_beginners_guide_perl.html [2]: http://gilchrist.ca/jeff/factoring/index.html
0
[ 2, 568, 13, 4572, 11408, 18, 27, 6728, 263, 4181, 26, 3007, 1621, 4776, 800, 3726, 3726, 31, 376, 20, 477, 14, 1621, 4776, 16, 21, 10549, 15611, 9, 31, 216, 27, 14, 2620, 48, 636, 6258, 500, 2558, 165, 500, 56, 25, 5787, 20, 4...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
glOrtho in a 3D scene isn't working === I made a 3D scene and I used glOrtho and gluOrtho2D to get things to stay on my screen when I move the camera to look around in my 3D scene. But when I start to look around the characters disappear. How do you get the characters to stay on your screen.
0
[ 2, 489, 7386, 11927, 19, 21, 203, 43, 1691, 2532, 22, 38, 638, 800, 3726, 3726, 31, 117, 21, 203, 43, 1691, 17, 31, 147, 489, 7386, 11927, 17, 13, 13161, 248, 11927, 135, 43, 20, 164, 564, 20, 1179, 27, 51, 2324, 76, 31, 780, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
problems with ie9 javascript debugger === I'm new to javascript and I'm trying to run some examples for d3 in IE9 on Windows 7 x64. In particular, I'm trying to run the choropleth example. <pre> var data; // loaded asynchronously var path = d3.geo.path(); var svg = d3.select("#chart") .append("svg"); var counties = svg.append("g") .attr("id", "counties") .attr("class", "Blues"); var states = svg.append("g") .attr("id", "states"); d3.json("https://raw.github.com/mbostock/d3/master/examples/data/us-counties.json", function (json) { counties.selectAll("path") .data(json.features) .enter().append("path") .attr("class", data ? quantize : null) .attr("d", path); }); d3.json("https://raw.github.com/mbostock/d3/master/examples/data/us-states.json", function (json) { states.selectAll("path") .data(json.features) .enter().append("path") .attr("d", path); }); d3.json("https://raw.github.com/mbostock/d3/master/examples/choropleth/unemployment.json", function (json) { data = json; counties.selectAll("path") .attr("class", quantize); }); function quantize(d) { return "q" + Math.min(8, ~ ~(data[d.id] * 9 / 12)) + "-9"; } </pre> My problem is that it won't display in IE9. When I look at the DOM, all I have under `<body>` is `<div id="chart"/>`. Another issue that I have had with this example and other d3 examples is when I try to debug the script using the IE9 debugging tool, I get a `SCRIPT 1014: Invalid character` error and when I enter debug mode, the javascript doesn't load. But, when I exit, it reloads. Also, if I try adding breakpoints and viewing them in debug mode I get the following error: The breakpoint is not valid. No executable code is associated with this line. NOTE: I edited the file names to direct to non-local files because I was also having problems with using local files for the request functions. Many thanks!
0
[ 2, 1716, 29, 13, 660, 518, 8247, 8741, 121, 2345, 11356, 800, 3726, 3726, 31, 22, 79, 78, 20, 8247, 8741, 17, 31, 22, 79, 749, 20, 485, 109, 3770, 26, 13, 43, 240, 19, 13, 660, 518, 27, 1936, 453, 993, 3470, 9, 19, 1498, 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...
Database Restore - SQL Script for listing securables === I restored a database from one server to another. After restoring the database, I came across this issue of orphaned users which I resolved using - exec sp_change_users_login 'Update_One', 'UserName', 'LoginName' Now, this particular user is linked with given server login. All good until here. However, I am still having an issue that is to do with 'Securables' As permission to many database objects was missing for *this* user, I Googled and found out a way - Generate Script by - 1. Select Database 2. Right click database to see context menu 3. Select 'Tasks', 4. From the sub-menu, select 'Generate Scripts' 5. Select 'Set Scripting Options' 6. From 'Advanced' section - set 'Object Level Permissions' to true. So, we will get a list of all the GRANT SELECT/GRANT EXECUTE scripts etc. But, I am looking for another way, where I don't have to run through this wizard every time and I can write my own database script to list database securables and permissions for a given database user. Can anyone please guide which (system)database tables should I look for? Thank you!
0
[ 2, 6018, 8454, 13, 8, 4444, 255, 3884, 26, 9554, 1353, 4734, 579, 18, 800, 3726, 3726, 31, 4617, 21, 6018, 37, 53, 8128, 20, 226, 9, 75, 19144, 14, 6018, 15, 31, 281, 464, 48, 1513, 16, 11728, 69, 3878, 56, 31, 11052, 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, 1, 1, 1, 1, 1, 1...
How to add a new record to datagridview control in Visual Basic? === I want to add to my site a simple table/excel-like feauture that will display some values,So i added a gridview. I don't use Dataset or database biding at all, all I have is a small form with 2 entries. When the user clicks a button, i want to add some values to the datagridview control as new row. How to add a new record to datagridview control in VB.net?
0
[ 2, 184, 20, 3547, 21, 78, 571, 20, 1054, 16375, 4725, 569, 19, 3458, 2125, 60, 800, 3726, 3726, 31, 259, 20, 3547, 20, 51, 689, 21, 1935, 859, 118, 1706, 11040, 8, 1403, 398, 5954, 6418, 30, 129, 3042, 109, 4070, 15, 656, 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...
Html 5 web page with video and overlay === I'm trying to create a web page, with an html 5 video that has some other elements over it (divs, with text etc) that appear at certain times. My understanding is that on the iphone, you cannot have these videos in the page itself but that they instead pop open in a new windows (quicktime?) However, can i still have html 5 elements absolutely positioned and displayed over the video while its playing, or does the mobile version of quicktime not allow that? Thanks, Craig
0
[ 2, 13, 15895, 331, 2741, 2478, 29, 763, 17, 84, 4414, 800, 3726, 3726, 31, 22, 79, 749, 20, 1600, 21, 2741, 2478, 15, 29, 40, 13, 15895, 331, 763, 30, 63, 109, 89, 2065, 84, 32, 13, 5, 12916, 18, 15, 29, 1854, 2722, 6, 30, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Hiding and showing Divs with form validation === Upon submit I am trying to have "quiz" hide and have "thanks" be shown. All was working correct until I added a JavaScript form validation code, and now it just reloads the first div "welcome" I thought adding "#thanks" to the action upon submit would solve the issue, but it did not. Then trying to add an "if true" statement to my form validation ended up breaking the form validation. If anyone has any suggestions it would be greatly appreciated. <div id="quiz"> <form name="form" id="form" class="form" action="" onSubmit="return validate(this)" method="post"> <label for="name">Full Name:</label><br> <input type="text" name="name" id="name" /><br> <label for="company">Company Title:</label><br> <input type="text" name="company" id="company" /><br> <label for="phone">Phone:</label><br> <input type="text" name="phone" id="phone" /><br> <label for="email">Email Address:</label><br> <input type="text" name="email" id="email" /><br> <input type="submit" value="" class="submit" style= "background : url(images/VSP_Microsite_Layout_v2_09.gif); width:357px; height:37px; align:center" /> </form> </p> </div> <div id="thanks"><h2>Thank you.</h2> You will receive an email momentarily </div> <script> $("#begin").click(function(){ $("#quiz").show(); $("#welcome").hide(); }); $("#submit").click(function(){ $("#thanks").show(); $("#quiz").hide(); }); </script> This is my form validation script function validate(form) { var name = form.name.value; var company = form.company.value; var phone = form.phone.value; var email = form.email.value; var nameRegex = /^[a-zA-Z]+(([\'\,\.\- ][a-zA-Z ])?[a-zA-Z]*)*$/; var companyRegex = /^[a-zA-Z0-9&-.]+(([\'\,\.\&\- ][a-zA-Z0-9 ])?[a-zA-Z0-9&-.]*)*$/; var phoneRegex = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/; var emailRegex = /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/; if(name == "") { inlineMsg('name','You must enter your name.',2); return false; } if(!name.match(nameRegex)) { inlineMsg('name','You have entered an invalid name.',2); return false; } if(company == "") { inlineMsg('company','<strong>Error</strong><br />You must enter your company title.',2); return false; } if(!company.match(companyRegex)) { inlineMsg('company','<strong>Error</strong><br />You have entered an invalid company title.',2); return false; } if(phone == "") { inlineMsg('phone','<strong>Error</strong><br />You must enter your phone number.',2); return false; } if(!phone.match(phoneRegex)) { inlineMsg('phone','<strong>Error</strong><br />You have entered an invalid phone number.',2); return false; } if(email == "") { inlineMsg('email','<strong>Error</strong><br />You must enter your email.',2); return false; } if(!email.match(emailRegex)) { inlineMsg('email','<strong>Error</strong><br />You have entered an invalid email.',2); return false; } return true; } // START OF MESSAGE SCRIPT // var MSGTIMER = 20; var MSGSPEED = 5; var MSGOFFSET = 3; var MSGHIDE = 3; // build out the divs, set attributes and call the fade function // function inlineMsg(target,string,autohide) { var msg; var msgcontent; if(!document.getElementById('msg')) { msg = document.createElement('div'); msg.id = 'msg'; msgcontent = document.createElement('div'); msgcontent.id = 'msgcontent'; document.body.appendChild(msg); msg.appendChild(msgcontent); msg.style.filter = 'alpha(opacity=0)'; msg.style.opacity = 0; msg.alpha = 0; } else { msg = document.getElementById('msg'); msgcontent = document.getElementById('msgcontent'); } msgcontent.innerHTML = string; msg.style.display = 'block'; var msgheight = msg.offsetHeight; var targetdiv = document.getElementById(target); targetdiv.focus(); var targetheight = targetdiv.offsetHeight; var targetwidth = targetdiv.offsetWidth; var topposition = topPosition(targetdiv) - ((msgheight - targetheight) / 2); var leftposition = leftPosition(targetdiv) + targetwidth + MSGOFFSET; msg.style.top = topposition + 'px'; msg.style.left = leftposition + 'px'; clearInterval(msg.timer); msg.timer = setInterval("fadeMsg(1)", MSGTIMER); if(!autohide) { autohide = MSGHIDE; } window.setTimeout("hideMsg()", (autohide * 1000)); } // hide the form alert // function hideMsg(msg) { var msg = document.getElementById('msg'); if(!msg.timer) { msg.timer = setInterval("fadeMsg(0)", MSGTIMER); } } // face the message box // function fadeMsg(flag) { if(flag == null) { flag = 1; } var msg = document.getElementById('msg'); var value; if(flag == 1) { value = msg.alpha + MSGSPEED; } else { value = msg.alpha - MSGSPEED; } msg.alpha = value; msg.style.opacity = (value / 100); msg.style.filter = 'alpha(opacity=' + value + ')'; if(value >= 99) { clearInterval(msg.timer); msg.timer = null; } else if(value <= 1) { msg.style.display = "none"; clearInterval(msg.timer); } } // calculate the position of the element in relation to the left of the browser // function leftPosition(target) { var left = 0; if(target.offsetParent) { while(1) { left += target.offsetLeft; if(!target.offsetParent) { break; } target = target.offsetParent; } } else if(target.x) { left += target.x; } return left; } // calculate the position of the element in relation to the top of the browser window // function topPosition(target) { var top = 0; if(target.offsetParent) { while(1) { top += target.offsetTop; if(!target.offsetParent) { break; } target = target.offsetParent; } } else if(target.y) { top += target.y; } return top; } // preload the arrow // if(document.images) { arrow = new Image(7,80); arrow.src = "images/msg_arrow.gif"; }
0
[ 2, 5314, 17, 3187, 13, 12916, 18, 29, 505, 27999, 800, 3726, 3726, 685, 12298, 31, 589, 749, 20, 57, 13, 7, 3003, 380, 7, 3077, 17, 57, 13, 7, 9107, 7, 44, 1721, 9, 65, 23, 638, 4456, 163, 31, 905, 21, 8247, 8741, 505, 27999...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Is it possible to open the subreport with onlick event in pentaho? === I am new to Pentaho report designer. This is what I want. I have a master report which has several columns.Say it, A, B and C. When a user clicks on any data in B(I want to use onlick event), then a subreport has to open showing some detailed data regarding the selected value. Please help me. Thanks in advance. Regards, SAP
0
[ 2, 25, 32, 938, 20, 368, 14, 972, 17437, 29, 27, 10129, 807, 19, 11734, 58, 1807, 60, 800, 3726, 3726, 31, 589, 78, 20, 11734, 58, 1807, 1330, 4742, 9, 48, 25, 98, 31, 259, 9, 31, 57, 21, 1129, 1330, 56, 63, 238, 7498, 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...
echoing multiple variables with the variables containing muliple columns of data ; bash === ok, so first to explain the problem i am having in more detail. i am setting two variables here; one to copy one column of data and another to copy multiple columns of data... the issue is that i want to append the first column of data infront of the multiple columns while keeping them aligned the loops do what i want them too when i redirect them to Cmain individually; but i need to do it to both of them #copies first column of original car file to format the atom numbers FC=$(awk '{for (i=6; i<=21 ; i++) if (NR >= 6 && NR == i) print $1}' $carf) #copies and formats the rest of the columns from the .incoor file and sets to variable Col col=$(awk '{for (j=6; j <= 21 ; j++) if (NR >= 6 && NR == j) printf "%13.8f\t%12.8f\t%12.8f%s%s%s%s%4.3f\n", $2, $3, $4, " XXXX", " 1", " xx"," " $1" ", " 0.000"}' $coor) this is where things go wrong #echos variables and appends to Cmain echo " $FC $col" >> Cmain example of what is happening; for some reason it takes the second set of columns and shifts them down, and shifts the first row over...like i said when i do them individually the columns align and everything is peachy...except im missing the first column of data U1 U2 U3 U4 C1 C2 C3 C4 U5 U6 U7 U8 C5 C6 C7 C8 0.00000000 0.00000000 0.00000000 XXXX 1 xx U 0.000 0.00000000 4.43785037 4.86047726 XXXX 1 xx U 0.000 4.86047726 0.00000000 4.86047726 XXXX 1 xx U 0.000 4.86047726 4.43785037 0.00000000 XXXX 1 xx U 0.000 4.86047726 4.43785037 4.86047726 XXXX 1 xx C 0.000 4.86047726 0.00000000 0.00000000 XXXX 1 xx C 0.000 0.00000000 0.00000000 4.86047726 XXXX 1 xx C 0.000 0.00000000 8.87570074 0.00000000 XXXX 1 xx U 0.000 0.00000000 13.31355111 4.86047726 XXXX 1 xx U 0.000 4.86047726 8.87570074 4.86047726 XXXX 1 xx U 0.000 4.86047726 13.31355111 0.00000000 XXXX 1 xx U 0.000 4.86047726 13.31355111 4.86047726 XXXX 1 xx C 0.000 4.86047726 8.87570074 0.00000000 XXXX 1 xx C 0.000 0.00000000 13.31355111 0.00000000 XXXX 1 xx C 0.000 0.00000000 8.87570074 4.86047726 XXXX 1 xx C 0.000 ~
0
[ 2, 19810, 1886, 12157, 29, 14, 12157, 3503, 6633, 49, 5106, 7498, 16, 1054, 13, 73, 13158, 800, 3726, 3726, 5854, 15, 86, 64, 20, 3271, 14, 1448, 31, 589, 452, 19, 91, 6110, 9, 31, 589, 2697, 81, 12157, 235, 73, 53, 20, 4344, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Screenshot from an inactive to an RDP session === I need to do a screen capture using DirectShow from the RDP session, but the problem is that the seizure does not occur if the disconnect from the session. Is there any way to make a drawing of the session to continue even after you disconnect rdp session?
0
[ 2, 2324, 7868, 37, 40, 19, 7889, 20, 40, 13, 897, 306, 3723, 800, 3726, 3726, 31, 376, 20, 107, 21, 2324, 3683, 568, 1744, 9303, 37, 14, 13, 897, 306, 3723, 15, 47, 14, 1448, 25, 30, 14, 16138, 630, 52, 3744, 100, 14, 29363, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Java: how to invert sortedMaps === I'm faced with a fiddly problem and while I can think of a few inefficient methods to solve it my instinct tells me there is a more elegant solution which I am missing. In short I am implementing a lightweight but adaptable spreadsheet style class, using SortedMap<Integer,TransString> (TransString being a custom class that can be handled both as a String or as a Generic transformable to/from string form based on context). For the most part it's a fairly easy thing to do, and a few overrides let me add support for R1C1 and A1 referencing as well as the two coordinate method. However, I'm looking to add one extra referencing method: "Header row". To do this I want to be able to nominate a row as the header and to be able to lookup the row I want by the header. In short: I want to invert one Map<Integer, String> into a Map<String, Integer> and use that to get the key of my data. The methods I see so far are: use of Arrays and searches to get the index of the header from the map, a one time creation of a header lookup map, a one time creation of a header lookup ArrayList and using indexOf. I strongly suspect there is another method, however, but it doesn't seem to come to mind. Realistically I'm considering the ArrayList option is probably the most gentle approach. Any pointers are welcome. notes: No 3rd party libraries, The simpler and more widely version compatible the better: this is for a custom library and will be reused heavily in many situations, concurrency safe is a must since I don't want to limit usage.
0
[ 2, 8247, 45, 184, 20, 19, 8122, 22554, 15022, 18, 800, 3726, 3726, 31, 22, 79, 3110, 29, 21, 13, 15817, 43, 102, 1448, 17, 133, 31, 92, 277, 16, 21, 310, 19, 23702, 3195, 20, 8402, 32, 51, 11439, 2609, 55, 80, 25, 21, 91, 11...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
can't into OnChar() when deal with WM_KEYDOWN in 'PreTranslateMessage' function === For some reason, I need to do something when I get WM_KEYDOWN message in 'PreTranslateMessage', So I do something like this: `if(WM_KEYDOWN == pMsg->message && pMsg->hwnd == GetSafeHwnd()) { SendMessage(pMsg->message,pMsg->wParam,pMsg->lParam); return TRUE; }` After doing so, I find there is no way to get into 'OnChar' function, It's bad. Anybody knows why and how to solve this problem? Help will be greatly appreciated.
0
[ 2, 92, 22, 38, 77, 27, 5433, 5, 6, 76, 1183, 29, 19312, 1, 4237, 2968, 19, 13, 22, 3515, 7028, 6554, 3845, 18, 1303, 22, 1990, 800, 3726, 3726, 26, 109, 1215, 15, 31, 376, 20, 107, 301, 76, 31, 164, 19312, 1, 4237, 2968, 280...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 characters as array subscripts in C/C++ === Is it okay to use characters as array subscripts? My array is initialized to hold 256 objects, so it seems as though accessing out of bounds would not be an issue. But, I was getting some weird segmentation faults, which I found out were due to the fact that the character value that I was reading in was negative in some cases. I don't know how that is possible, however. Then, I casted it to an unsigned char, but that didn't work either. I ended up getting boundary issues there as well. I also tried casting the char variables to ints and then accessing the array, but I still had segmentation issues. What can I do to mitigate this? Being able to access the array via characters is nice because my program has an array cell for each character in the ASCII set. It seems to make sense, but I don't know why its not working.
0
[ 2, 568, 1766, 28, 7718, 972, 8741, 18, 19, 272, 118, 150, 20512, 800, 3726, 3726, 25, 32, 1705, 20, 275, 1766, 28, 7718, 972, 8741, 18, 60, 51, 7718, 25, 2104, 1333, 20, 1027, 13, 16910, 3916, 15, 86, 32, 2206, 28, 362, 1381, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
andengine vs unity3d === I am developing a j2me game and android game using andengine . I used same code using in j2me(java games) for android also. I saw Unity 3d is good tool for developing a game in (web,android and iphone) using c#. Using andengine not need to work out porting.. one build run in all device. Whether unity 3d its look like flash file.. If i used Unity 3d for android game.. Its possible to handle events(External/internal). whether unity 3d is good for developing android games ? compare to andengine . Which one will be good for future game development ?
4
[ 2, 17, 16847, 4611, 8385, 240, 43, 800, 3726, 3726, 31, 589, 3561, 21, 487, 135, 790, 250, 17, 13005, 250, 568, 17, 16847, 13, 9, 31, 147, 205, 1797, 568, 19, 487, 135, 790, 5, 1004, 1385, 466, 6, 26, 13005, 67, 9, 31, 441, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Display of indication in Textview === In my application i have 1 list view with 4 text views as column wise.I am showing data from database,in that some data have some recurrence value and other will not.So i have to have a indication image for that data which have recurrence.So i have an idea to place some small image at the end of 2nd Text view in list view.If i tried by placing some text view in xml and set some image for that means the other textview(textview 3 ,4) is also misplaced.Does anybody have anyidea to do this.I also tried for spannableimage but not getting desired result.Thanks in advance. What i have: My list view: 31/7/2012 | gfdhh | 78 | 78 What i want is : 31/7/2012 | gfdhh* | 78 |78. My code:(for listview) <?xml version="1.0" encoding="utf-8"?> <LinearLayout android:id="@+id/Layout1" xmlns:android="http://schemas.android.com/apk/res/android" android:paddingTop="4dip" android:paddingBottom="6dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="horizontal" > <TextView android:id="@+id/text1" android:layout_width="80dip" android:layout_height="wrap_content" /> <View android:layout_width="1dp" android:layout_height="fill_parent" android:layout_marginLeft="2dp" android:layout_marginRight="2dp" android:background="#FF909090" /> <TextView android:id="@+id/text3" android:layout_width="60dip" android:layout_height="wrap_content" android:layout_marginLeft="30dp"/> <View android:layout_width="1dp" android:layout_height="fill_parent" android:layout_marginLeft="2dp" android:layout_marginRight="2dp" android:background="#FF909090" /> <TextView android:id="@+id/text5" android:layout_width="60dip" android:layout_height="wrap_content" android:layout_marginLeft="20dp" /> <View android:layout_width="1dp" android:layout_height="fill_parent" android:layout_marginLeft="2dp" android:layout_marginRight="2dp" android:background="#FF909090" /> <TextView android:id="@+id/text7" android:layout_width="60dip" android:layout_height="wrap_content" android:layout_marginLeft="10dp" /> <TextView android:id="@+id/text9" android:layout_width="60dip" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:visibility="gone"/> </LinearLayout> The spannable image code i tried for: SpannableString ss = new SpannableString(cursor.getString(cursor.getColumnIndex(db.KEY_DESC))); Drawable d = getResources().getDrawable(R.drawable.up); d.setBounds(0, 0, d.getIntrinsicWidth(), d.getIntrinsicHeight()); ImageSpan span = new ImageSpan(d, ImageSpan.ALIGN_BASELINE); ss.setSpan(span, 0,cursor.getString(cursor.getColumnIndex(db.KEY_DESC)).length() , Spannable.SPAN_INCLUSIVE_EXCLUSIVE); text3.setText(ss);
0
[ 2, 3042, 16, 11290, 19, 1854, 4725, 800, 3726, 3726, 19, 51, 3010, 31, 57, 137, 968, 1418, 29, 268, 1854, 4146, 28, 4698, 6714, 9, 49, 589, 3187, 1054, 37, 6018, 15, 108, 30, 109, 1054, 57, 109, 26604, 139, 2940, 1923, 17, 89, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 show regular expression validation's message after button click only? === Below is my html code. I have a email textbox and there is a login button. I have added a required field validator and regular expression validator for email textbox. The problem is that when I type some thing in the email textbox browser's auto suggestion shows some list of emails. When I select any of those emails by using down arrow key and enter key it shows the error message for regular expression validation even though email is in proper format. <asp:RequiredFieldValidator ID="reqValUserName" runat="server" ErrorMessage="Email is required!" ControlToValidate="txtUserName" ValidationGroup="validateCredential" Display="Dynamic"> </asp:RequiredFieldValidator> <asp:TextBox ID="txtUserName" runat="server" TabIndex="1" CssClass="inputCredential" MaxLength="60" AccessKey="E" ValidationGroup="validateCredential"> </asp:TextBox> <asp:Button ID="btnLogin" runat="server" CssClass="btnPrimary" Text="Login" onclick="btnLogin_Click" ValidationGroup="validateCredential"/> Can anyone please let me know, how to stop this kind of message display?
0
[ 2, 184, 20, 298, 1290, 1803, 27999, 22, 18, 2802, 75, 5167, 10840, 104, 60, 800, 3726, 3726, 1021, 25, 51, 13, 15895, 1797, 9, 31, 57, 21, 8517, 1854, 5309, 17, 80, 25, 21, 6738, 108, 5167, 9, 31, 57, 905, 21, 1390, 575, 7394,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Application token/secrets when creating an OAuth API === Background: I am using node.js and express to create an API. I have implemented OAuth in my API server in a standard consumer/user key/secret fashion (the same way Twitter, Facebook, etc. do). I expect 3rd parties to connect to my API, again in the same manner as these common APIs. Normally, a client would connect with an application token/secret (eg, you create a Facebook app as a Facebook developer and these are given to you). However there are times when the client cannot provide a secret for the application because the code is implemented in an insecure fashion. Specifically, I am referring to Javascript libraries. Eg, developers do not want to expose their application secret in Javascript code because it is plaintext and could be read by malicious users. I've noticed that Facebook avoided this problem. The developer needs to provide only an application token (not secret) to the Javascript library. I do not understand how to provide a similar option for my API without fundamentally making my library insecure. Namely, if requests are being made by a Javascript client library to an API without providing a well-secured token/secret, how are those requests authenticated by the OAuth API? Intellectually, the best solution I could think of would to have some sort of token handoff between the Javascript client library and the API server via a HTTPS connection, in order to return a secret for the library to use. I'm not quite sure how I'd secure this handoff to prevent spoofs, though.
0
[ 2, 3010, 20, 2853, 118, 17902, 18, 76, 2936, 40, 635, 1346, 96, 21, 2159, 800, 3726, 3726, 2395, 45, 31, 589, 568, 15421, 9, 728, 18, 17, 2999, 20, 1600, 40, 21, 2159, 9, 31, 57, 6807, 635, 1346, 96, 19, 51, 21, 2159, 8128, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
3D Transform (rotateY) in Chrome and Firefox do react differently === I created a CSS 3D Transformation for a logo div within a header of my page. On hover the logo gets rotated. Everything looks fine in Chrome, but Firefox renders it completely different. I moved the transform origin to the left side of the logo div. When rotating the right side of the div gets "compressed" to get the visual 3D effect. In Firefox the logo div only gets smaller but not "compressed" and you can't see a 3D effect. The Code: <!doctype html> <html lang="de"> <head> <meta charset="UTF-8" /> <title>test</title> <style> #header { width: 940px; margin: auto; background-color: blue; height: 350px; position: relative; -webkit-perspective: 800; -moz-perspective: 800; } #logo { width: 300px; height: 80px; background-color: red; position: absolute; top: 50px; left: 0px; -webkit-transition-duration: 0.25s; -webkit-transform-origin: 0% 50%; -webkit-transform-style: preserve-3d; -webkit-transform: rotate3d(0,1,0,0deg); -moz-transition-duration: 0.25s; -moz-transform-origin: 0% 50%; -moz-transform-style: preserve-3d; -moz-transform: rotate3d(0,1,0,0deg); } #logo:hover { -webkit-transition-duration: 0.5s; -webkit-transform: rotate3d(0,1,0,45deg); -moz-transition-duration: 0.5s; -moz-transform: rotate3d(0,1,0,45deg); } </style> </head> <body> <div id="header"> <div id="logo"></div> </div> </body> </html> Please try the following JSFiddle: http://jsfiddle.net/4CN5g/ Any idea what I'm doing wrong? Thanks, Marc
0
[ 2, 203, 43, 8007, 13, 5, 22650, 38, 1436, 6, 19, 13, 12985, 17, 535, 18219, 107, 7749, 12670, 800, 3726, 3726, 31, 679, 21, 272, 18, 18, 203, 43, 6978, 26, 21, 6449, 13, 12916, 363, 21, 157, 106, 16, 51, 2478, 9, 27, 21350, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Use of undeclared identifier 'NSLineBreakByWordWrapping' using xCode 4.3.3 === I get "Use of undeclared identifier 'NSLineBreakByWordWrapping'" on xCode 4.3.3 which doesn't appear on the beta one. It happens on this code: [text sizeWithFont:font constrainedToSize:textConstraintRect.size lineBreakMode: NSLineBreakByWordWrapping].height); What do I need to import to solve this one? Please help,
0
[ 2, 275, 16, 13, 12239, 12078, 69, 25570, 13, 22, 2172, 1143, 12008, 779, 9587, 499, 525, 5574, 22, 568, 993, 9375, 268, 9, 240, 9, 240, 800, 3726, 3726, 31, 164, 13, 7, 3699, 16, 13, 12239, 12078, 69, 25570, 13, 22, 2172, 1143, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Zenoss Alert Delivery to a Web Service === I am new to Zenoss and interested in exploring alert delivery options. Is there any alert delivery option which can send the alert to a Web Service? Thanks, RR
0
[ 2, 10526, 759, 18, 7863, 6010, 20, 21, 2741, 365, 800, 3726, 3726, 31, 589, 78, 20, 10526, 759, 18, 17, 3158, 19, 11748, 7863, 6010, 6368, 9, 25, 80, 186, 7863, 6010, 4255, 56, 92, 2660, 14, 7863, 20, 21, 2741, 365, 60, 3669, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Output Left/Right channels with Audio Queue === Trying to output funciton generated sine waves to left/right outputs in iOS app using AudioQueueBufferRef. I was able to accomplish L/R split successfully with an AudioUnit using AudioBufferList, but not AudioQueue. The code below outputs signal to left channel only. Any suggestions? -(OSStatus) fillBuffer: (AudioQueueBufferRef) buffer { double j = self.startingFrameCountL; double k = self.startingFrameCountR; double cycleLengthL = 44100. / self.currentFrequencyL; double cycleLengthR = 44100. / self.currentFrequencyR; int frame = 0; double frameCount = bufferSize / self.streamFormat.mBytesPerFrame; for (frame = 0; frame < frameCount; ++frame) { SInt32 *data = (SInt32*)buffer->mAudioData; (data)[frame] = (SInt32) (sin (2 * M_PI * (j / cycleLengthL)) * 0x2000); j += 1.0; if (j > cycleLengthL) j -= cycleLengthL; //Copy to right channel (data)[frame] = (SInt32) (sin (2 * M_PI * (j / cycleLengthR)) * 0x2000); k += 1.0; if (k > cycleLengthR) k -= cycleLengthR; } self.startingFrameCountL = j; self.startingFrameCountR = k; buffer->mAudioDataByteSize = bufferSize; return noErr; }
0
[ 2, 5196, 225, 118, 4183, 6328, 29, 4023, 22521, 800, 3726, 3726, 749, 20, 5196, 2414, 1892, 444, 6756, 13, 18, 1149, 5097, 20, 225, 118, 4183, 5196, 18, 19, 13, 7760, 4865, 568, 4023, 2005, 4185, 2345, 6866, 14057, 9, 31, 23, 777,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WIndows 7 won't show USB ubuntu installation mass storage drive === I've got a USB 2GB drive (let's call it Drive-X) with the latest Ubuntu ISO installed on it. When I boot the computer with the USB drive plugged in the Ubuntu installation program kicks in, so there's nothing wrong with the storage device. I also have an identical 2GB USB drive (let's call it Drive-Y) with various files on it. When I plug this drive into the PC with Windows 7 on I can view the files it contains and browse such files. However when the Windows 7 OS is booted and I plug Drive-X into the PC (Drive-X has the Ubuntu installation executable stored in it), I don't see anything when I go to Start -> Computer. Can anyone tell me why the USB disk is not showing up and how I can get it to show up somewhere, just so I know it's there? Since Drive-X and Drive-Y are identical, it's not a driver problem, so I am not sure what the answer to this question is. Perhaps someone with more Windows 7 experience can let me know. Thanks, John Goche
0
[ 2, 1936, 453, 230, 22, 38, 298, 182, 220, 287, 12968, 2473, 7758, 1619, 4326, 1493, 800, 3726, 3726, 31, 22, 195, 330, 21, 182, 220, 172, 11400, 1493, 13, 5, 1336, 22, 18, 645, 32, 1493, 8, 396, 6, 29, 14, 5736, 287, 12968, 24...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How do I ensure my website or web app based on html works on all browsers properly === I am wondering if there is a way or settings I need to do in html file so that my asp.net website/html based website works properly with correct length/height dimensions in all the browsers (IE/Firefox/Opera)...etc.... Whats the settings and where I need to do it ?
0
[ 2, 184, 107, 31, 4062, 51, 2271, 54, 2741, 4865, 432, 27, 13, 15895, 693, 27, 65, 16495, 18, 7428, 800, 3726, 3726, 31, 589, 5712, 100, 80, 25, 21, 161, 54, 12410, 31, 376, 20, 107, 19, 13, 15895, 3893, 86, 30, 51, 28, 306, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Capture client area of another program in C#? === i have a listview that is populated with the running application names: listView1.Items.Add(proc.MainWindowTitle); The code is in a foreach statment. I have tried to use this code to get the selected item (program name) and take a screenshot of the client window of that program: public string selectedProgram; [DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)] public static extern IntPtr GetForegroundWindow(); [DllImport("user32.dll")] public static extern bool GetWindowRect(IntPtr hwnd, out Rectangle lpRect); private void button2_Click(object sender, EventArgs e) { Process[] process = Process.GetProcesses(); foreach (var p in process) { selectedProgram = listView1.SelectedItems.ToString(); } Rectangle bonds = new Rectangle(); GetWindowRect(Handle, out bonds); Bitmap bmp = new Bitmap(bonds.Width, bonds.Height); using (var gfx = Graphics.FromImage(bmp)) { gfx.CopyFromScreen(bonds.Location, Point.Empty, bonds.Size); pictureBox1.Image = bmp; Form2 frm2 = new Form2(this); frm2.Show(); frm2.pictureBox1.Image = pictureBox1.Image; } what am i doing wrong?
0
[ 2, 3683, 6819, 217, 16, 226, 625, 19, 272, 5910, 60, 800, 3726, 3726, 31, 57, 21, 968, 4725, 30, 25, 11111, 29, 14, 946, 3010, 1817, 45, 968, 4725, 165, 9, 2119, 79, 18, 9, 14854, 5, 15617, 9, 6232, 27508, 22235, 6, 73, 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...
c fgets not waiting for input === I have 2 fgets into my code and both of them **aren't wait for input**...<br> This is an example of the first `fgets`... printf("Insert path: "); if(fgets(dirpath, BUFFGETS, stdin) == NULL){ perror("fgets dir path"); close(sockd); } and, as i've written before, also the next fgets is not waiting for my input :(<br> Before the first `fgets` i have 2 `scanf("%ms", &string);` (if this could be the trouble).
0
[ 2, 272, 398, 3060, 18, 52, 1672, 26, 6367, 800, 3726, 3726, 31, 57, 172, 398, 3060, 18, 77, 51, 1797, 17, 156, 16, 105, 13, 1409, 19573, 22, 38, 1760, 26, 6367, 1409, 9, 9, 9, 1, 5145, 1, 48, 25, 40, 823, 16, 14, 64, 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...
When I add <mvc:annotation-driven />, I get a "Error creating bean", "java.lang.IllegalMonitorStateException" === I have a simple application but when I try to add `<mvc:annotation-driven />` to my servlet, I get this error : [09/07/12 12:09:45:703 EDT] 00000053 DispatcherSer E org.springframework.web.servlet.FrameworkServlet initServletBean Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0': Invocation of init method failed; nested exception is java.lang.IllegalMonitorStateException [09/07/12 12:09:45:718 EDT] 00000053 servlet E com.ibm.ws.webcontainer.servlet.ServletWrapper init SRVE0100E: Uncaught init() exception created by servlet cm-dispatcher in application CM_ContractMaintenance: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0': Invocation of init method failed; nested exception is java.lang.IllegalMonitorStateException My Dispatcher servlet : <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.1.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd"> <!-- Scans the classpath of this application for @Components to deploy as beans --> <context:component-scan base-package="ca.gc.ic.cipo.cm.web" /> <!-- Saves a locale change using a cookie --> <bean id="localeResolver" class="org.springframework.web.servlet.i18n.CookieLocaleResolver" /> <!-- Application Message Bundle --> <bean id="messageSource" class="org.springframework.context.support.ReloadableResourceBundleMessageSource"> <property name="basename" value="messages" /> <property name="cacheSeconds" value="0" /> </bean> <!-- Resolves view names to protected .jsp resources within the /WEB-INF/views directory --> <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="prefix" value="/WEB-INF/jsp/"/> <property name="suffix" value=".jsp"/> </bean> <!-- Configures the @Controller programming model --> <mvc:annotation-driven /> </beans> My Web.XML <?xml version="1.0" encoding="UTF-8"?> <web-app 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-app_2_5.xsd" version="2.5"> <display-name>Contract Maintenance Web Application</display-name> <!-- Reads request input using UTF-8 encoding --> <filter> <filter-name>characterEncodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> </init-param> <init-param> <param-name>forceEncoding</param-name> <param-value>true</param-value> </init-param> </filter> <filter-mapping> <filter-name>characterEncodingFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <!-- Handles all requests into the application --> <servlet> <servlet-name>cm-dispatcher</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>/WEB-INF/cm-dispatcher-servlet.xml </param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>cm-dispatcher</servlet-name> <url-pattern>/</url-pattern> </servlet-mapping> <!-- Spring Security --> <!-- <filter> <filter-name>springSecurityFilterChain</filter-name> <filter-class> org.springframework.web.filter.DelegatingFilterProxy </filter-class> </filter> <filter-mapping> <filter-name>springSecurityFilterChain</filter-name> <url-pattern>/</url-pattern> </filter-mapping> --> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener </listener-class> </listener> <error-page> <error-code>404</error-code> <location>/WEB-INF/jsp/404.jsp</location> </error-page> <error-page> <exception-type>java.lang.Exception </exception-type> <location>/WEB-INF/jsp/404.jsp</location> </error-page> <!-- Datasource definition section --> <resource-ref> <description>The datasource reference for the Contract Maintenance Application. There will be a corresponding reference bound in 'ibm-web-bnd.xml'.</description> <res-ref-name>CMDatasource</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> <res-sharing-scope>Shareable</res-sharing-scope> </resource-ref> </web-app> My pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <artifactId>cipo-parent</artifactId> <groupId>ca.gc.ic.cipo</groupId> <version>1.1</version> </parent> <groupId>ca.gc.ic.cipo.cm</groupId> <artifactId>cm-webapp</artifactId> <packaging>war</packaging> <version>1.1</version> <name>cm-webapp Maven Webapp</name> <url>http://maven.apache.org</url> <properties> <spring.version>3.1.1.RELEASE</spring.version> <spring.security.version>3.1.0.RELEASE</spring.security.version> </properties> <dependencies> <dependency> <groupId>ca.gc.ic.cipo.cm</groupId> <artifactId>cm-product-core</artifactId> <version>1.1</version> </dependency> <dependency> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.16</version> </dependency> <dependency> <groupId>javax</groupId> <artifactId>javaee-api</artifactId> <version>6.0</version> </dependency> <dependency> <groupId>commons-configuration</groupId> <artifactId>commons-configuration</artifactId> <version>1.6</version> </dependency> <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>1.4</version> </dependency> <dependency> <groupId>commons-lang</groupId> <artifactId>commons-lang</artifactId> <version>2.5</version> </dependency> <dependency> <groupId>commons-logging</groupId> <artifactId>commons-logging</artifactId> <version>1.1.1</version> </dependency> <!-- Spring 3 dependencies --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-web</artifactId> <version>${spring.version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-webmvc</artifactId> <version>${spring.version}</version> </dependency> <!-- Reinject dependencies due to Spring Security --> <!-- Spring Aspect Oriented Programming (AOP) Framework --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-aop</artifactId> <version>${spring.version}</version> </dependency> <!-- Spring Core Framework --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${spring.version}</version> </dependency> <!-- Spring Application Context --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>${spring.version}</version> </dependency> <!-- Spring JDBC --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-jdbc</artifactId> <version>${spring.version}</version> </dependency> <!-- Spring Bean Factory and JavaBeans utilities --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>${spring.version}</version> </dependency> <!-- Spring Core Framework --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-tx</artifactId> <version>${spring.version}</version> </dependency> <!-- Spring Security --> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-config</artifactId> <version>${spring.security.version}</version> </dependency> <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-web</artifactId> <version>${spring.security.version}</version> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-validator</artifactId> <version>4.3.0.Final</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>1.6.4</version> <scope>runtime</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>1.6.1</version> </dependency> </dependencies> <build> <finalName>cm-webapp</finalName> </build> </project> HELP!!
0
[ 2, 76, 31, 3547, 13, 1, 79, 8990, 45, 210, 1270, 857, 8, 14489, 13, 118, 1, 15, 31, 164, 21, 13, 7, 29992, 2936, 15322, 7, 15, 13, 7, 1004, 1385, 9, 9949, 9, 5564, 4941, 2111, 242, 248, 3859, 10066, 872, 7, 800, 3726, 3726, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Select text in a disabled textbox c# === I would like select the text in a disabled textbox. Does anyone know how?
0
[ 2, 5407, 1854, 19, 21, 10154, 1854, 5309, 272, 5910, 800, 3726, 3726, 31, 83, 101, 5407, 14, 1854, 19, 21, 10154, 1854, 5309, 9, 630, 1276, 143, 184, 60, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
testng specify different Users === I am running our automated tests using TestNG. The reason we picked TestNG is because we can send variables inputs into the test methods example **public void testXX( String userId )** and the userId can change for each test. The code below shows three different userIds I can use to execute my tests. So my exact same test will run three times for each of the three different users. This feature is awesome and really enables me to have multiple tests under different scenarios because each of our users carry different profiles. // All valid Pricing Leads @DataProvider(name = "userIds") public Object[][] createPricingLeadUsersParameters() { return new Object[][] { { "TestUser001" }, { "TestUser002" }, { "TestUser003" } }; } @Test( dataProvider = "userIds" ) public void createGroup( String userIds) { ............ } The problem I am having right now is during certain conditions I can only have one userId used or else all of my tests will fail. I would like to keep my exact same test but only pass in on userId not the three shown above. It there a way to configure TestNG to make this variable on the command line so at times I would use the three defined, but under another condition it would only be one of the three or a new userId?
0
[ 2, 1289, 2723, 19077, 421, 3878, 800, 3726, 3726, 31, 589, 946, 318, 14904, 4894, 568, 1289, 2723, 9, 14, 1215, 95, 2114, 1289, 2723, 25, 185, 95, 92, 2660, 12157, 6367, 18, 77, 14, 1289, 3195, 823, 13, 1409, 12259, 11364, 1289, 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...
Why use tuples in Finger Trees vs Linked Lists etc === Regarding finger trees, as seen in [this paper][1] and mentioned in [this post][2] by Eric Lippert. I do not understand why an explicit tuple arrangement is used, as opposed to some sort of linked list structure for each finger. That is, why do we define `One(x), Two(x, y), Three(x, y, z), Four(x, y, z, a)` and not just have a less optimal deque object and do `LessOptimalDeque.AddLeft(x)`? Is it somehow slower? I mean, even though you could use some data structure that re-uses the memory of some nodes/groups of nodes? In the paper, it's even mentioned: > Exercise 1. In the above presentation, we represented digits as lists for simplicity. A more accurate and ecient implementation would use the type data Digit a = One a | Two a a | Three a a a | Four a a a a >Rework the above denitions to use this denition of Digit. I don't know why it's more efficient though. Is it only something relevant to the functional language the author was using, and otherwise could also be done using the data structures I proposed above? [1]: http://www.soi.city.ac.uk/~ross/papers/FingerTree.pdf [2]: http://blogs.msdn.com/b/ericlippert/archive/2008/02/12/immutability-in-c-part-eleven-a-working-double-ended-queue.aspx
0
[ 2, 483, 275, 2289, 18534, 19, 2363, 1913, 4611, 4727, 7227, 2722, 800, 3726, 3726, 3467, 2363, 1913, 15, 28, 541, 19, 636, 1565, 1397, 500, 2558, 165, 500, 17, 2211, 19, 636, 1565, 678, 500, 2558, 135, 500, 34, 2647, 3235, 17631, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Page doesn't initilize properly when backing from location.href === I've just finished writing a pretty substantial amount of Javascript (I'll spare you everything but the most relevant parts) and I'm left with just one problem. At one point I need to use `location.href` to advance to an article page. If the user clicks their browser's back button from the article page, they return to the home page (good) but the page is in the state it was when they left initially (bad). The Javascript simply doesn't realize that the page has changed, and, perhaps more surprisingly, neither does the HTML (there are several places where I've used Javascript to modify the standing HTML). A small amount of disclosure: This is a mobile site. I'm listening for a short press of an element (as opposed to long for dragging) using touch events. Any sort of non-Javascript linking I've tried has messified up the dragging bit as none of it cares too much how long a finger has been down for, and usually freaks out if you try to move the finger while dragging. I can't think of any other code that would be horribly useful here, but I'd be glad to post whatever it takes. Thanks! -S
0
[ 2, 2478, 1437, 22, 38, 19, 242, 947, 2952, 7428, 76, 3931, 37, 1474, 9, 252, 14057, 800, 3726, 3726, 31, 22, 195, 114, 842, 1174, 21, 1772, 6185, 2006, 16, 8247, 8741, 13, 5, 49, 22, 211, 8001, 42, 796, 47, 14, 127, 7480, 1341...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
SQL optimization on the following 7 update queries. same table. Combine into one? === The following queries update the same table like 7 times.. I would appreciate your help on how I might optimize this by putting it into one query so it passes through the table only once instead of 7 times.. This is really slowing down performance on large datasets.. Thanks. P.S. I don't know if it will still work out but each query string depends on the query before it to accurately calculate.. So if we need to keep them separate in order to keep it accurate then I could use some help optimizing each string (query) individually. The following SQL queries are made in Delphi 2009 So the format may be a little different but you should still be able to read the query pretty easily.. Str1 := 'update user set amount = ' + '(select round(sum(bill.amount),2) from bill where ' + 'bill.user = user.code); ' + 'update user set pay = ' + '(select round(sum(bill.pay),2) from bill where ' + 'bill.user = user.code); ' + 'update user set balance = round(amount + pay,2);'; //execute query Str1 := 'update user set group_amt = ' + '(select sum(bill.amount) from bill where ' + 'bill.client = user.client); ' + 'update user set group_pay = ' + '(select sum(bill.pay) from bill where ' + 'bill.client = user.client); ' + 'update user set group_bal = round(group_amt + group_pay,2);'; //execute query Str1 := 'update user set bal_flag = true ' + 'where abs(balance) > 0.001 and bal_flag = false;';
0
[ 2, 4444, 255, 21597, 27, 14, 249, 453, 11100, 9386, 2829, 9, 205, 859, 9, 12287, 77, 53, 60, 800, 3726, 3726, 14, 249, 9386, 2829, 11100, 14, 205, 859, 101, 453, 436, 9, 9, 31, 83, 8831, 154, 448, 27, 184, 31, 530, 22864, 48, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Trouble Aggregating Rows with SQL Statement === I am attempting to pivot some data out of the "Vendor" column in this table, creating new columns for each of my vendors. Ideally, i would have 1 row for each "ContractDate", and then 2 values. However, I'm ending up with 2 rows of a distinct "ContractDate". I believe i may need some sort of temp table query to do this...i'm not sure though. SELECT [ContractDate] ,(CASE WHEN Vendor = 'AirDat' THEN (sum(wf.Temppop) / sum(wf.Population)) END ) as 'AirDat' ,(CASE WHEN Vendor = 'CWG' THEN (sum(wf.Temppop) / sum(wf.Population)) END) as 'CWG' FROM [ECPDB].[dbo].[weather.forecast] as wf inner join ecpdb.[lookup].[newWeatherStation] as ws on wf.[Station_ID] = ws.[Station ID] inner join ecpdb.[lookup].[CountyNew] as c on ws.[County FIPS] = c.[County FIPS] where tradedate = '7/2/2012' and [BENTEK Cell] = 'Northeast' group by [ContractDate] ,vendor
0
[ 2, 2572, 11342, 17565, 1880, 11295, 29, 4444, 255, 3331, 800, 3726, 3726, 31, 589, 6314, 20, 20670, 109, 1054, 70, 16, 14, 13, 7, 3124, 5290, 7, 4698, 19, 48, 859, 15, 2936, 78, 7498, 26, 206, 16, 51, 19787, 9, 5628, 102, 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...
C/C++ Math Order of Operation === So I know that C++ has an Operator Precedence and that int x = ++i + i++; is undefined because pre++ and post++ are at the same level and thus there is no way to tell which one will get calculated first. But what I was wondering is if int i = 1/2/3; is undefined. The reason I ask is because there are multiple ways to look at that (1/2)/3 OR 1/(2/3). My guess is that it is a undefined behavior but I would like to confirm it.
0
[ 2, 272, 118, 150, 20512, 5057, 389, 16, 1453, 800, 3726, 3726, 86, 31, 143, 30, 272, 20512, 63, 40, 6022, 24720, 17, 30, 19, 38, 993, 800, 13, 20512, 49, 2754, 31, 20512, 73, 25, 367, 13439, 185, 782, 20512, 17, 678, 20512, 50, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
PHP: call a function from another function (out of scope?) === I'm having a problem creating webservices through nuSOAP (although i believe my problem has nothing to do with it) What i'm trying to do: function loadActiveItems() { $list = Item::loadActive(); $ret = array(); foreach ($list as $val){ //two tests to check if i really have an object and if the toDTO method is callable echo var_dump($val); echo is_callable(array($val, 'toDTO')); array_push($ret, $val->toDTO()); } unset($val); return $ret; } I'm getting the following error: Call to a member function toDTO() on a non-object and both `var_dump($val)` and `is_callable` are returning the expected (the object and true, respectively) from what i've been seeing online, it appears i have a out of scope problem... but for some reason i don't seem to get my head around it :P Thanks in advance
0
[ 2, 13, 26120, 45, 645, 21, 1990, 37, 226, 1990, 13, 5, 1320, 16, 9914, 60, 6, 800, 3726, 3726, 31, 22, 79, 452, 21, 1448, 2936, 2741, 11449, 18, 120, 3152, 656, 2552, 13, 5, 8655, 31, 985, 51, 1448, 63, 626, 20, 107, 29, 32,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Register click event for User Control in Page_Init method === I'm having a bit of trouble with my dynamically added user controls. The user controls are just a simple textbox, checkbox and button. They are being added to the page fine in the Page_Init method, but the button Click event isn't firing and I'm assuming I need to subscribe to this seperately. Is this correct? If so, how do I do it? My current Page_Init method is below. Thanks in advance! protected void Page_Init(object sender, EventArgs e) { PropertyList = new List<Control>(); PropertyList = Session["propertyList"] as List<Control>; if (PropertyList != null) { foreach (AddProperty prop in PropertyList) { this.propPlaceholder.Controls.Add(prop); } } }
0
[ 2, 2243, 10840, 807, 26, 4155, 569, 19, 2478, 1, 108, 242, 2109, 800, 3726, 3726, 31, 22, 79, 452, 21, 1142, 16, 2572, 29, 51, 7782, 1326, 905, 4155, 8671, 9, 14, 4155, 8671, 50, 114, 21, 1935, 1854, 5309, 15, 2631, 5309, 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...
PHP preg_replace number of digits === i have this: preg_replace('/(\d{1}|\d{2})/gi', '$1', 'some number'); If text is one digit number $1 returns one digit number, if it is 2 digit it return 2 digit number...., but I need to returned number was always been 2 digit: 1 => 01 2 => 02 ... 10 => 10 ... 99 => 99 How can I do that?
0
[ 2, 13, 26120, 782, 263, 1, 99, 5119, 234, 16, 19076, 800, 3726, 3726, 31, 57, 48, 45, 782, 263, 1, 99, 5119, 5, 22, 118, 5, 1, 43, 1, 165, 1, 43, 1, 135, 1, 6, 118, 2234, 22, 15, 13, 22, 11019, 22, 15, 13, 22, 3220, 23...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
To open the popUp menu through Tab button === I want to open the popUp menu through the TAB button. Attaching an image to explain it. ![enter image description here][1] [1]: http://i.stack.imgur.com/zCFUz.png When I press TAB on the first textField it should open the popUp menu below it and so on. Currently it just selects the popUp menu and we have to click on it to open. Please let me know if there is a way to open the popUp menu through TAB. Thanks
0
[ 2, 20, 368, 14, 1675, 576, 11379, 120, 6523, 5167, 800, 3726, 3726, 31, 259, 20, 368, 14, 1675, 576, 11379, 120, 14, 6523, 5167, 9, 19514, 68, 40, 1961, 20, 3271, 32, 9, 13, 187, 2558, 13679, 1961, 5318, 235, 500, 2558, 165, 500...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Google Drive SSO on VDI === Had a question for you folks. We are looking to deploy the Google Drive desktop client to thin clients running vmware around our school. Deploying is not the problem since we have the desktop client on the gold image that is used in the VDI. The issue we are having is SSO. We would like to have GDrive login automatically each time but because we wipe the desktop it keeps bringing up the prompt. We are using AD and have not yet run the Google Apps Directory Sync as we feel that really isnt the issue. We can log into Gmail accounts with SSO just not the GDrive desktop client. Any ideas on this? We thought maybe if we knew where the key was located we could solve the problem. Thanks, B
0
[ 2, 8144, 1493, 13, 18, 656, 27, 566, 1115, 800, 3726, 3726, 41, 21, 1301, 26, 42, 14563, 9, 95, 50, 699, 20, 17617, 14, 8144, 1493, 17404, 6819, 20, 2951, 7421, 946, 13, 20147, 5011, 140, 318, 116, 9, 17617, 68, 25, 52, 14, 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...
DBDataReader, rename value === MySqlDataReader dr = cmd.ExecuteReader(); while (dr.Read()) { if (dr["date_payment"].ToString() == "01.01.0001 0:00:00") { dr["date_payment"] = dr["date_payment"].ToString().Replace("01.01.0001 0:00:00", "Не оплачено"); } } please help, how i can rename this? `date_payment` have DateTime type
0
[ 2, 13, 9007, 18768, 10647, 106, 15, 302, 7259, 1923, 800, 3726, 3726, 51, 18, 22402, 18768, 10647, 106, 744, 800, 2390, 43, 9, 1706, 17194, 591, 10647, 106, 5, 6, 73, 133, 13, 5, 3807, 9, 10647, 5, 6, 6, 13, 1, 100, 13, 5, 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...
Streaming video over HTTP in IOS === I am am working on my app.which have requirement play video on iPhone by server. I have a video link http://www.cwtmedia.se/cwtvideo.mp4 . Can any body suggest me how i perform this on MPMoviePlayerController.I am using this code for that but its not working. enter code here NSURL *url = [NSURL fileURLWithPath:@"http://www.cwtmedia.se/cwtvideo.mp4"]; moviePlayer1 = [[MPMoviePlayerController alloc] initWithContentURL:url]; [self.view addSubview:moviePlayer1.view]; moviePlayer1.view.frame = CGRectMake(0, 0, 320, 416); moviePlayer1.fullscreen=YES; [moviePlayer1 setFullscreen:NO animated:YES]; moviePlayer1.controlStyle = MPMovieControlStyleFullscreen; [moviePlayer1 play];
0
[ 2, 11920, 763, 84, 7775, 19, 13, 7760, 800, 3726, 3726, 31, 589, 589, 638, 27, 51, 4865, 9, 2140, 57, 8981, 418, 763, 27, 21024, 34, 8128, 9, 31, 57, 21, 763, 3508, 7775, 6903, 6483, 9, 18822, 38, 8260, 9, 870, 118, 18822, 38,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
WF4 state machine rehosting: FinalState === I am rehosting WF4 workflow designer. For a state machine, I don't know how to provide a "FinalState" via sapt:ToolboxItemWrapper in XAML. There is no FinalState class, only a State class for "regular" states. State class has a IsFinal property, so I guess it has to be set in order to become a "FinalState". I tried deriving my own FinalState class from State that would set IsFinal in the constructor, but it doesn't work as State is sealed. So how can I provide FinalState from XAML?
0
[ 2, 13, 15263, 300, 146, 1940, 302, 11694, 68, 45, 426, 3859, 800, 3726, 3726, 31, 589, 302, 11694, 68, 13, 15263, 300, 170, 9990, 4742, 9, 26, 21, 146, 1940, 15, 31, 221, 22, 38, 143, 184, 20, 1181, 21, 13, 7, 4932, 3859, 7, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to read PDF document in windows phone 7? === When click on button need to read the PDF file in windows phone 7.I am saving the PDF file in a folder and given the specified path in Databse.please tell me how to read the PDF document in windows phone 7????????????????
0
[ 2, 184, 20, 1302, 13, 11124, 4492, 19, 1936, 1132, 453, 60, 800, 3726, 3726, 76, 10840, 27, 5167, 376, 20, 1302, 14, 13, 11124, 3893, 19, 1936, 1132, 453, 9, 49, 589, 7599, 14, 13, 11124, 3893, 19, 21, 19294, 17, 504, 14, 9931, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
merging 2 array in ruby === I have 2 arrays. For example x= [1,2,3,4,5] y= [a,b,c,d,e] How do I merge them so that I have an array like below z=[[1,a],[2,b],[3,c],[4,d],[5,e]]
0
[ 2, 18842, 172, 7718, 19, 10811, 800, 3726, 3726, 31, 57, 172, 7718, 18, 9, 26, 823, 993, 3726, 636, 15793, 15, 240, 15, 300, 15, 264, 500, 13, 93, 3726, 636, 58, 15, 220, 15, 150, 15, 43, 15, 62, 500, 184, 107, 31, 12666, 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...
About upsert in pymongo === Each record in the collection has two key "ip" and "timestamp" db.posts.update({'ip' : '127.0.0.1', 'timestamp' : {'$gt' : sometimestamp}}, {'$set' : {'timestamp' : time.time()}, True) The command above will insert a new record, if field "ip" with "127.0.0.1" not in the collection or "timestamp" is less than sometimestamp Now, if I want to insert a new record only "ip" with "127.0.0.1" not in collection, in other word, keep value of "ip" unique. How to do ?
0
[ 2, 88, 71, 18, 6767, 19, 7103, 2111, 839, 800, 3726, 3726, 206, 571, 19, 14, 1206, 63, 81, 1246, 13, 7, 4307, 7, 17, 13, 7, 891, 384, 10158, 7, 13, 9007, 9, 6962, 18, 9, 576, 8209, 5, 1, 22, 4307, 22, 13, 45, 13, 22, 115...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
"missing right parenthesis" while using Sub-Query with INER JOIN in Oracle === I have a Oracle command as Select offers.OFR_STAT,OFFER_DETAILS.*,PrevData.* From offers INNER JOIN OFFER_DETAILS ON OFFER_DETAILS.OFFER_ID=offers.OFFER_ID INNER JOIN (SELECT InnerOfrDtl.* FROM OFFER_DETAILS as InnerOfrDtl WHERE InnerOfrDtl.offer_id=offers.offer_id) AS PrevData ON PrevData.SCHEDULE_TYPE=OFFER_DETAILS.SCHEDULE_TYPE While running i got a error message as "missing right parenthesis". Here i wanted to use Sub-query for Inner join.
0
[ 2, 13, 7, 7292, 68, 193, 4766, 438, 4557, 7, 133, 568, 972, 8, 8190, 93, 29, 19, 106, 1865, 19, 15759, 800, 3726, 3726, 31, 57, 21, 15759, 1202, 28, 5407, 2486, 9, 1041, 139, 1, 10631, 15, 1299, 106, 1, 546, 8682, 18, 9, 248...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 multiple submit button clicks. ( Not prevent multiple submission or clicks ) === I have a register form and i have already set email column to be unique in DB so there is no duplicate email to be allowed if a user register with a used email address. My problem is, if a user register with a new email (means no in DB) and he/she clicking too fast or what. The first submit request will successful insert to the DB and return an error message which is "the email is not available or used". How to i prevent the second or the rest request if a user clicking too fast? Note, i need prevent in server side not client side like disable button
0
[ 2, 1797, 9693, 242, 106, 1886, 12298, 5167, 10840, 18, 9, 13, 5, 52, 2501, 1886, 10923, 54, 10840, 18, 13, 6, 800, 3726, 3726, 31, 57, 21, 2243, 505, 17, 31, 57, 614, 309, 8517, 4698, 20, 44, 2619, 19, 13, 9007, 86, 80, 25, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
click the content slide up and slide down the following content? === <table> <tr class="clicke"> <td colspan="2"><img src="images/title_.gif" vspace="0" hspace="0" width="690" height="65" border="0" alt="" /></td> </tr> <tr class="tbl_even"> <td class="required">Name (First, Middle Initial, Last)</td> <td><input type="text" name="realname" /></td> </tr> <tr class="tbl_odd"> <td>Birth Date</td> <td><input type="text" name="Birth Date" /></td> </tr> <tr class="clicke"> <td colspan="2"><img src="images/informati.gif" vspace="0" hspace="0" width="690" height="65" border="0" alt="" /></td> </tr> <tr class="tbl_odd"> <td>Present Address</td> <td><input type="text" name="Present Address" style="width:250px;" /></td> </tr> <tr class="tbl_even"> <td class="required">City</td> <td><input type="text" name="City" value="credit-application.php" /></td> </tr> </table> when click the `clicke class tr`, the following tr will hide with slow up untill the next `clicke` tr. when click again, the following tr content will show with slow down. my code: $(document).ready(function(){ $(".clicke").click(function(){ $("tr").slideToggle("slow"); } ); }); but all the tr are effect, which are not i want, how to determine the related tr content. thank you
0
[ 2, 10840, 14, 2331, 6464, 71, 17, 6464, 125, 14, 249, 2331, 60, 800, 3726, 3726, 13, 1, 5924, 1, 13, 1, 6384, 718, 3726, 7, 150, 10129, 62, 7, 1, 13, 1, 38, 43, 3313, 18, 3206, 3726, 7, 135, 7, 1, 1660, 263, 13, 18, 5453, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 find distance between two GeoPoints === Can i take distance from kml file. (Sorry bad language) urlString.append("http://maps.google.com/maps?"); urlString.append("&saddr=");//from urlString.append(src.getLatitudeE6()/1e6);urlString.append(","); urlString.append(src.getLongitudeE6()/1e6); urlString.append("&daddr=");//to urlString.append( dest.getLatitudeE6()/1e6); urlString.append(","); urlString.append( dest.getLongitudeE6()/1e6); urlString.append("&ie=UTF8&0&om=0&output=kml");
0
[ 2, 184, 92, 31, 477, 1583, 128, 81, 6389, 3132, 18, 800, 3726, 3726, 92, 31, 247, 1583, 37, 401, 255, 3893, 9, 13, 5, 8959, 896, 816, 6, 287, 6362, 11130, 9, 22358, 43, 5, 7, 21127, 6903, 15022, 18, 9, 16111, 4875, 9, 960, 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...
Create and resresh a WPF TreeView tree + remembering of expanded nodes Without XAML === I am currently upgrading the tool of my predecessor and I'm stuck on a TreeView issue. His software analyzed data one time and displayed the results in a tree view. I changed the tool to analyze real-time data and hence the user gets real time results. Now I would like the tree view nodes to keep expanded when the user expands it, even after an update. I know this topic has been discussed several times and I spent hours reading the answers but I never found a solution for my problem. The basic problem is: there is no stable tree any more and currently the tree is just re-created every time. I have no idea about data binding or XAML up to now and few time to learn programming in XAML. Below you can the see the code like it was created by my predecessor. I did not change anything up to now, I just recall this method every 2-5 seconds. Is there an (easy?) way to store the information about expanded nodes anywhere (global?) and re-expand it after refresh or do I really need to get a deeper understanding of WPF first? Kind regards Larimow foreach (Analyser.ALARM_GROUP alarmGroup in alarmGroupList) { //Display Problem Group TreeViewItem groupItem = new TreeViewItem(); List<String> ListAreas = new List<string>(); string areas = ""; //GROUP HEADER //display alarm group which contains more than one alarm if (alarmGroup.AlarmList.Count > 1) { groupItem.Header = Convert.ToString(alarmGroup.AlarmList.Count) + " --- " + alarmGroup.AlarmList[0].EventTime + " " + alarmGroup.AlarmList[0].AlarmText + "\n " + alarmGroup.AlarmList[alarmGroup.AlarmList.Count - 1].EventTime + " " + alarmGroup.AlarmList[alarmGroup.AlarmList.Count - 1].AlarmText + " --- " + " AREAS: " + areas; } else //display alarm group with only one alarm message { groupItem.Header = Convert.ToString(alarmGroup.AlarmList.Count) + " --- " + alarmGroup.AlarmList[0].EventTime + " " + alarmGroup.AlarmList[0].AlarmText + " --- " + " AREA: " + areas; } //HEADLINE of single Alarm Item TreeViewItem alarmItem = new TreeViewItem(); alarmItem.Header = "[EVENTTIME] [ALARMTAG] --- [OPCCONDITION] --- [SEVERITY] --- [AREA] --- [ALARMTEXT]"; alarmItem.FontWeight = FontWeights.SemiBold; groupItem.Items.Add(alarmItem); //Display single alarm messages foreach (var alarm in alarmGroup.AlarmList) { alarmItem = new TreeViewItem(); alarmItem.Header = alarm.EventTime + " --- " + alarm.AlarmTag + " --- " + alarm.Condition + " --- " + alarm.Severity + " --- " + alarm.Area + " --- " + alarm.AlarmText; alarmItem.FontWeight = FontWeights.Normal; groupItem.Items.Add(alarmItem); } AlarmPresentationBox.Items.Add(groupItem);
0
[ 2, 1600, 17, 10719, 99, 1635, 21, 619, 7721, 1541, 4725, 1541, 2754, 11135, 16, 2766, 16272, 366, 13, 6791, 8184, 800, 3726, 3726, 31, 589, 871, 26939, 14, 5607, 16, 51, 8687, 17, 31, 22, 79, 4549, 27, 21, 1541, 4725, 1513, 9, 3...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
endless vertical scrolling background layer - Cocos2d === How can I make an endless vertical scrolling background (having it's own layer) for my game. I've not found any helpful posts on this.
1
[ 2, 11340, 7035, 13, 28166, 2395, 5385, 13, 8, 22470, 18, 135, 43, 800, 3726, 3726, 184, 92, 31, 233, 40, 11340, 7035, 13, 28166, 2395, 13, 5, 13693, 32, 22, 18, 258, 5385, 6, 26, 51, 250, 9, 31, 22, 195, 52, 216, 186, 15600, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
Flash hangs javascript setTimeout call in IE === I am calling a Javascript (JS) function from Flash to load some data and show a Flash loading animation while the data loads. The JS function: getLMSObjectivesStatus() takes some time to complete (e.g. > 30 seconds) due to AJAX calls. As expected, if I call the JS function directly, Flash hangs as it waits for a reply. To get round this, I've decoupled Flash from Javascript by calling a different JS function from Flash which calls the original JS function using an anonymous function within a setTimeout: function delayedCallToGetObjectives(){ setTimeout(function(){getLMSObjectivesStatus()},200); } This works great with Firefox/Chrome as it allows Flash to continue the loading animation without waiting for a response from JS. When the slow JS function has finished, it calls Flash to tell it to use the retrieved data and continue. Lovely, jubbly! IE doesn't decouple Flash from JS when I use setTimeout. Flash hangs while waiting for both: delayedCallToGetObjectives() and getLMSObjectivesStatus() to complete. I've checked by logging progress and the order tells me this is definitely what is happening. Does anyone know why this is in IE and are there any fixes/workarounds please?
0
[ 2, 4433, 4546, 18, 8247, 8741, 309, 891, 1320, 645, 19, 13, 660, 800, 3726, 3726, 31, 589, 2555, 21, 8247, 8741, 13, 5, 728, 18, 6, 1990, 37, 4433, 20, 6305, 109, 1054, 17, 298, 21, 4433, 12797, 6236, 133, 14, 1054, 19069, 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...
Time tracking applications? === I'm looking for an application that logs barcodes and current time into a notepad or something that can easily be uploaded to a database. For example: A user swipes his ID, then the application will record the barcode and time the user swiped,.. basically an employee time tracker. I created a web based system but it takes a bit long and the users usually swipe multiple times really fast. Is there any application like that?, or can anyone suggest a programming/scripting language to make one?
0
[ 2, 85, 10353, 3767, 60, 800, 3726, 3726, 31, 22, 79, 699, 26, 40, 3010, 30, 18893, 748, 9375, 18, 17, 866, 85, 77, 21, 1945, 8240, 54, 301, 30, 92, 2351, 44, 23782, 20, 21, 6018, 9, 26, 823, 45, 21, 4155, 27246, 18, 33, 4924...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 InformCallBackCompleted in Silverlight Unit Testing === I have used InformCallBackCompleted for asynchronous testing in Silverlight5. I have multiple test cases involving methods which are interdependant, so have to manually change the "InformCallBackCompleted" for them. Thats why I cant execute all the test cases at once, instead test them each at a time. Is there any way that I could test them at once?
0
[ 2, 568, 10361, 9200, 1958, 15990, 43, 19, 1172, 3130, 1237, 4431, 800, 3726, 3726, 31, 57, 147, 10361, 9200, 1958, 15990, 43, 26, 21, 16023, 1291, 4431, 19, 1172, 3130, 264, 9, 31, 57, 1886, 1289, 1871, 4838, 3195, 56, 50, 1480, 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...
Can the filter option in Excel be constantly enabled VB6? === I am creating a program in VB6 where data is opened in Excel. I have thousands of lines of data and I use the filter option to view certain data. What I am wondering is if it is possible to always have the filter option turned on whenever an excel sheet is opened without me having to click filter? I know it's no big deal clicking the filter function but it will be used by others so it would be handy to always have this option in the first row of each column every time a sheet is viewed. I hope this makes sense :/ Thanks This is my code: Private Sub cmdReports_Click() Dim ExcelObj As Object Dim ExcelBook As Object Dim ExcelSheet As Object Dim i As Integer Set ExcelObj = CreateObject("Excel.Application") Set ExcelBook = ExcelObj.WorkBooks.Add Set ExcelSheet = ExcelBook.WorkSheets(1) With ExcelSheet .AutoFilterMode = True For i = 1 To ListView1.ColumnHeaders.Count .cells(1, i) = ListView1.ColumnHeaders(i).Text Next i For i = 1 To ListView1.ListItems.Count .cells(i + 1, 1) = ListView1.ListItems(i).Text .cells(i + 1, 2) = ListView1.ListItems(i).SubItems(1) .cells(i + 1, 3) = ListView1.ListItems(i).SubItems(2) .cells(i + 1, 4) = ListView1.ListItems(i).SubItems(3) Next End With ExcelObj.Visible = True Set ExcelSheet = Nothing Set ExcelBook = Nothing Set ExcelObj = Nothing End Sub I tried to add .AutoFilter property to the cells but I get an error.
0
[ 2, 92, 14, 11945, 4255, 19, 20700, 44, 7545, 9338, 13, 20468, 379, 60, 800, 3726, 3726, 31, 589, 2936, 21, 625, 19, 13, 20468, 379, 113, 1054, 25, 520, 19, 20700, 9, 31, 57, 3805, 16, 1560, 16, 1054, 17, 31, 275, 14, 11945, 42...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Implementing a UITableView and it's Controller === I am trying to implement programmatically a UITableView. I have a UIView (named IndexView). Here is the constructor : - (id)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { MyTableViewController* favorite_table_view_controller = [[MyTableViewController alloc] init]; UITableView* theTableView = [[UITableView alloc] initWithFrame:CGRectMake(20, 65, 280, 350) style:UITableViewStylePlain]; theTableView.delegate = favorite_table_view_controller; theTableView.dataSource = favorite_table_view_controller; [self addSubview:theTableView]; } return self; } MyTableViewController is defined this way : @interface FavoriteTableViewController : UIViewController <UITableViewDataSource, UITableViewDelegate> And implements the two necessary functions : - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return data.count; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:@"Cell"]; [cell.textLabel setText:[data objectAtIndex:indexPath.row]]; return cell; } And I get this error : [__NSMallocBlock__ tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x6897de0 2012-07-18 12:07:24.607 ButtonsTest[22854:f803] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSMallocBlock__ tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x6897de0' I think there is a problem when I'm binding the controller to the view. But I can't find where. Any idea where does the problem come from ?
0
[ 2, 17333, 21, 13, 11193, 579, 4725, 17, 32, 22, 18, 9919, 800, 3726, 3726, 31, 589, 749, 20, 8713, 625, 6732, 1326, 21, 13, 11193, 579, 4725, 9, 31, 57, 21, 13, 5661, 4725, 13, 5, 11482, 4348, 4725, 6, 9, 235, 25, 14, 6960, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Wix: Patch can't update installed product and shows Change/Repair dialog === I'm building a patch using PCP, according to this tutorial:<br/> http://wix.sourceforge.net/manual-wix3/patch_building.htm I'v two MSI (extracted as Admin installs) 1. 8.11.9.225 (This is my target to update) 2. 8.11.9.353 (The latest one). Above procedure worked without any problem and generates my .msp file, but of a big size (500+ MB) so I think, it is getting too much differences. However, whenever I tried to install this patch, it shows Change/Repair Dialog, and if I use Change or Repair, in both cases it error<br/><br/> **"Another version is already installed. You must first uninstall it in order to install this version."**<br/> <br/> I even changed the Product Code in the 2nd msi (in all tables), but it can't solve any problem. Here is my patch code: <?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <PatchCreation Id="{ff8364b1-f222-48fb-bc6b-cfb37b38fcdf}" CleanWorkingFolder="yes" OutputPath="ABD_Patch_353.pcp" WholeFilesOnly="yes" AllowProductCodeMismatches="yes" > <PatchInformation Description= "Patch for build 225" Comments= "Patch for build 225" Manufacturer= "Farrukh" /> <PatchMetadata AllowRemoval= "yes" Description= "Patch for build 225" ManufacturerName= "Farrukh" TargetProductName="My Product 08.11.09.225" Classification= "Update" DisplayName= "My Product 08.11.09.225" /> <Family DiskId="5000" MediaSrcProp="ABD_225" Name="ABD_225" SequenceStart="5000"> <UpgradeImage Id="ABD_353" SourceFile="D:\ABD\353\My_Product.msi" > <TargetImage Id="ABD_225" SourceFile="D:\ABD\225\My_Product.msi" Order="2" IgnoreMissingFiles="no" /> </UpgradeImage> </Family> <PatchSequence PatchFamily="ABDPatchFamily" Sequence="1.0.0.0" Supersede="yes" /> </PatchCreation> </Wix> As it is generating a big size .msp, should I use msp for such size or do major upgrade? Any help would be really appreciate Best regards
0
[ 2, 4807, 396, 45, 7331, 92, 22, 38, 11100, 4066, 2374, 17, 1285, 753, 118, 99, 306, 2642, 28223, 800, 3726, 3726, 31, 22, 79, 353, 21, 7331, 568, 5168, 306, 15, 496, 20, 48, 29724, 45, 1, 5145, 118, 1, 7775, 6903, 3976, 396, 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 send email using gmail sender in phonegap? === anybody have any idea about using gmail sender in phonegap.I have to send email by just clicking a button without user interaction ie without using intents.In android it is possible to send email using SMTP client.Is it possible in phonegap to send email as android using SMTP client.Please give some ideas.
0
[ 2, 184, 20, 2660, 8517, 568, 489, 8079, 2660, 106, 19, 1132, 1136, 306, 60, 800, 3726, 3726, 11181, 57, 186, 882, 88, 568, 489, 8079, 2660, 106, 19, 1132, 1136, 306, 9, 49, 57, 20, 2660, 8517, 34, 114, 25590, 21, 5167, 366, 4155...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 observe the content of static lib in mac OS? === I create a static library project in my xCode and build a *.a named mylib.a. There some code (*.m files) and another static lib file named common.a to inform the static library nylib.a. But I doubt that if the contend of common.a are pack in the mylib.a really. So how can I observe the content of the mylib.a in mac OS? I knew there are some command such as ar, nm to complete this task in Linux. but It does't run in mac OS.
0
[ 2, 184, 20, 10503, 14, 2331, 16, 12038, 13, 8326, 19, 1572, 13, 759, 60, 800, 3726, 3726, 31, 1600, 21, 12038, 1248, 669, 19, 51, 993, 9375, 17, 1895, 21, 1637, 9, 58, 377, 51, 8326, 9, 58, 9, 80, 109, 1797, 13, 5, 2483, 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...
jquery change img atrobute name without loosing atribute values === i generate dynamic php gallery in witch is possible to drag images by using jquery UI. All images has option to be cropped. Image that is listed as first in gallery is the "title image" of gallery and they have different crapping ratio as non "title images" Problem: I echo out all images with attribute 'ondblclick="open_original=(21, 153)"'. I need to figure out how i can change "open_original" to "open_original_main" only for the first images of the gallery so they can have different cropping ratio. if I use .attr() then i lose all my atribute values and i cant get them back. is therer and way to just replace there function names? my jquery for this problem so far: $(".galOf .gallery_nav:first-child .img_thumb img").ready(function(){ $(this.ondblclick).replace("open_original","open_original_main"); }); i know .replace() is not a functions. just read info....
0
[ 2, 487, 8190, 93, 753, 797, 263, 35, 12417, 6567, 204, 366, 13, 10165, 18, 68, 21, 14755, 4070, 800, 3726, 3726, 31, 7920, 7782, 13, 26120, 2246, 19, 5722, 25, 938, 20, 5501, 3502, 34, 568, 487, 8190, 93, 13, 5661, 9, 65, 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...
:not() selector === I want all the clicks on links to execute a certain action with the exception of `mailto` links. I have the following code that works as expected. It first attaches the function to all the links and then removes it from the `mailto` links: <a href="http://www.example.com">example.com</a> <a href="mailto:someone@www.example.com">Someone</a> <script type="text/javascript"> $('a').on('click', function () { theAction(); }); $('a[href^="mailto"]').off('click'); </script> I would like the same functionality but using the `:not()` selector as it looks more elegant. How would it be?
0
[ 2, 13, 45, 1270, 5, 6, 23946, 800, 3726, 3726, 31, 259, 65, 14, 10840, 18, 27, 6271, 20, 15644, 21, 1200, 1028, 29, 14, 5391, 16, 13, 1, 8079, 262, 1, 6271, 9, 31, 57, 14, 249, 1797, 30, 693, 28, 1727, 9, 32, 64, 23453, 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...
EJB 3 Stub generation === I have an ejb-3 compatible ejb, say @Remote interface Hai{ String sayHai(); } Stateless(name = "xxx", mappedname="yyy") public class HaiImpl implements Hai{ public String sayHai(){ return "Hai"; } } And I need to generate stub for this EJB. but I dont want to use websphere tool or maven tool. Is there any way to generate stub using java compiler manualy? Thanks David Mathias
0
[ 2, 13, 10022, 220, 203, 21354, 2782, 800, 3726, 3726, 31, 57, 40, 13, 10022, 220, 8, 240, 14961, 13, 10022, 220, 15, 395, 13, 1, 99, 20209, 6573, 8349, 1, 3724, 395, 8598, 5, 6, 73, 13, 1, 146, 923, 5, 7259, 800, 13, 7, 1329...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Making a page show up better on google === Hey i have a website that has been going for a while but it has no Meta data set in it. I have added some meta data like language, description, keywords and a title. The thing i want to know is when would google change its records of that site and start ranking the page better? Does anyone know any helpful guides or anything like that that explain this? Any other search engine optimisation tips would be very welcome as well. Thanks for the help
0
[ 2, 544, 21, 2478, 298, 71, 574, 27, 8144, 800, 3726, 3726, 8409, 31, 57, 21, 2271, 30, 63, 74, 228, 26, 21, 133, 47, 32, 63, 90, 7618, 1054, 309, 19, 32, 9, 31, 57, 905, 109, 7618, 1054, 101, 816, 15, 5318, 15, 1246, 12827, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Make a WCF .NET service implementation implement multiple ServiceContract interfaces === I am developing a RESTful webservice using WCF. I would like to have a `ServiceContract` interface that all my services implement, however, I would also like each service to aditionally implement their own methods. In my Global.asax file I initialize the service routes: <!-- language: lang-cs --> RouteTable.Routes.Add(new ServiceRoute("iOSAppService", new WebServiceHostFactory(), typeof(Service.iOSAppService))); RouteTable.Routes.Add(new ServiceRoute("AndroidAppService", new WebServiceHostFactory(), typeof(Service.AndroidAppService))); RouteTable.Routes.Add(new ServiceRoute("WindowsPhoneAppService", new WebServiceHostFactory(), typeof(Service.WindowsPhoneAppService))); Each of the services must implement the `IAppService` interface: [ServiceContract] public interface IAppService Which is implemented as follows: [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)] public class iOSAppService : IAppService However, I would for instance also like the `iOSAppService` to implement the IiOSApService interface: [DataContract] public interface IiOSAppService Thus resulting in the implementation: public class iOSAppService : IAppService, IiOSAppService However, this results in the following exception: *Service 'iOSAppService' implements multiple ServiceContract types, and no endpoints are defined in the configuration file. WebServiceHost can set up default endpoints, but only if the service implements only a single ServiceContract. Either change the service to only implement a single ServiceContract, or else define endpoints for the service explicitly in the configuration file.* Does anyone know how I can achieve my goal? Thank you in advance!
0
[ 2, 233, 21, 11801, 410, 13, 9, 2328, 365, 6123, 8713, 1886, 365, 23311, 6573, 18, 800, 3726, 3726, 31, 589, 3561, 21, 760, 1566, 2741, 11449, 568, 11801, 410, 9, 31, 83, 101, 20, 57, 21, 13, 1, 11449, 23311, 1, 6573, 30, 65, 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...
Speech to text Android lib === I want to add a voice recoing (speech2text) in my android app, but not using Android voice recoign (need connection to work). Do you know any library, preferably open source ?
1
[ 2, 2974, 20, 1854, 13005, 13, 8326, 800, 3726, 3726, 31, 259, 20, 3547, 21, 430, 302, 716, 68, 13, 5, 18, 1664, 7455, 135, 11969, 6, 19, 51, 13005, 4865, 15, 47, 52, 568, 13005, 430, 302, 716, 9693, 13, 5, 556, 69, 2760, 20, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0...
I want to execute code when every action is called in ASP.NET MVC3 === I'm new to MVC3, and my site has a setting that if the site is open. So, I need to check this value when every action is called. The idea is like: public ActionResult SomeAction() { if(!settings.SiteIsOpen) { // redirect to siteclosed page } // someaction logic... } I know that there are something called Filter in MVC3, and need to register it RegisterGlobalFilters. I want to use this feature, but I don't know the detail steps to implement that. Can anyone help me? thanks!
0
[ 2, 31, 259, 20, 15644, 1797, 76, 352, 1028, 25, 227, 19, 28, 306, 9, 2328, 307, 8990, 240, 800, 3726, 3726, 31, 22, 79, 78, 20, 307, 8990, 240, 15, 17, 51, 689, 63, 21, 2697, 30, 100, 14, 689, 25, 368, 9, 86, 15, 31, 376, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Linq to sql: Could anyone explain me the difference in the following 2 queries? === I'm working with SqlMetal (linq to sql) in order to retrieve stuff from the database. However, im getting different results using the following code: var record1 = Enumerable.FirstOrDefault(_dataContext.StaticPageLangs, r => r.selected_partial_url_id == partialUrlid && r.selected_last_part_url_id == lastPartUrlId && r.language_id == languageId); var record2 = _dataContext.StaticPageLangs.FirstOrDefault( r => r.selected_partial_url_id == partialUrlid && r.selected_last_part_url_id == lastPartUrlId && r.language_id == languageId); After this record1 is filled, but record2 is NULL where i expect them to be the same. Could anyone explain the difference?
0
[ 2, 6294, 1251, 20, 4444, 255, 45, 110, 1276, 3271, 55, 14, 2841, 19, 14, 249, 172, 9386, 2829, 60, 800, 3726, 3726, 31, 22, 79, 638, 29, 4444, 255, 13651, 13, 5, 1226, 1251, 20, 4444, 255, 6, 19, 389, 20, 11917, 3217, 37, 14, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Any suggestions? === Given a character array. Find if there exists a path from O to X. Here is an example . . . . . . . . . . . . . . w . . . . . . w . w . w . . . . . . O . . . . w . . . . . . . X . . . You have to just keep in mind that you cannot go through 'W'.
1
[ 2, 186, 18389, 60, 800, 3726, 3726, 504, 21, 925, 7718, 9, 477, 100, 80, 5636, 21, 2013, 37, 635, 20, 993, 9, 235, 25, 40, 823, 13, 9, 13, 9, 13, 9, 13, 9, 13, 9, 13, 9, 13, 9, 13, 9, 13, 9, 13, 9, 13, 9, 13, 9, 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...
email patterne with primefaces === i think my problem is simple enaugh (noob ) but i can't seem to overcome it i'm using an input text for emails like this <h:outputLabel value="Mail:" for="mail" /> <p:inputText id="mail" value="#{UtilisateurBean.mail}" title="Mail" validator="#{UtilisateursValidate.email}" validatorMessage="ecrivez un mail valide"> <f:validateRegex pattern="[\w\.-]*[a-zA-Z0-9_]@[\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]" /> <f:validateLength minimum="2" /> </p:inputText> the probleme is that it doesn't support the dot caractere befor the @ like nouraty.n@mail.com (wich is usuly the case for gmail ). i tried stuff ike: pattern="[\w\.-]*[a-zA-Z0-9._%-]@[\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]" pattern="[\w\.-]*[a-zA-Z0-9\._%-]@[\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]" but no luck help!! thank you
0
[ 2, 8517, 3732, 62, 29, 1621, 6413, 18, 800, 3726, 3726, 31, 277, 51, 1448, 25, 1935, 1957, 17750, 13, 5, 251, 4995, 13, 6, 47, 31, 92, 22, 38, 2260, 20, 9059, 32, 31, 22, 79, 568, 40, 6367, 1854, 26, 8517, 18, 101, 48, 13, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
What is another JQuery function that does something similar to is()? === `$target.is( "a.foo" )` will return true or false depending on if the target matches what's inside is(). What if I want to check what is() sees? What function do I use? I tried `alert($(target.is())` to see if I could find out what the target is, but I just got the value false.
0
[ 2, 98, 25, 226, 487, 8190, 93, 1990, 30, 630, 301, 835, 20, 25, 5, 6, 60, 800, 3726, 3726, 13, 1, 4403, 3958, 3060, 9, 403, 5, 13, 7, 58, 9, 4120, 111, 7, 13, 6, 1, 129, 788, 1151, 54, 4997, 4758, 27, 100, 14, 2935, 1717...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Child div 100% height to parranet auto height === Im here because other similar questions couldn't help my particular problem. Problem is I need `right div` to be 100% height all the time, where as `parrent` height depends on `left div` height where it depends on content inside. Here is the html: <div class="container clearfix"> <div class="left"></div> <div class="right"></div> </div> ​Here is CSS: .container{ min-height: 10px; width: auto; height: auto; background-color: #eeeeee; } .left{ position: relative; float: left; min-height: 100px; width: 50px; background-color: #dddddd; } .right{ min-height: 20px; position: relative; float: left; height: 100%; width: 50px; background-color: #dddddd; } . .clearfix:after { content: "."; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; } .clearfix { display: inline-block; } ​Note: I'm using `clearfix`. And if you can show your answer in `jsfiddle` Here is jsFiddle http://jsfiddle.net/C9Kmx/32/
0
[ 2, 850, 13, 12916, 12849, 2947, 20, 2017, 19692, 38, 3108, 2947, 800, 3726, 3726, 797, 235, 185, 89, 835, 2346, 711, 22, 38, 448, 51, 1498, 1448, 9, 1448, 25, 31, 376, 13, 1, 4183, 13, 12916, 1, 20, 44, 12849, 2947, 65, 14, 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...
Change style of test in gridPanel. ExtJs === I have a gridPanel with few columns. And i want to change text color of some rows. do this viewConfig: { getRowClass: function(rec, ind) { var c = rec.get('kad_id'); if (c <95) { return 'acc'; } else if (c>96) { return 'unacc'; } } }, css //CSS .acc { color: blue; } .unacc { color: red; } I have 2 rows with `kad_id=94` and `kad_id=105` but only row with `kad_id=105` change color.
0
[ 2, 753, 1034, 16, 1289, 19, 7354, 3206, 532, 9, 1396, 38, 728, 18, 800, 3726, 3726, 31, 57, 21, 7354, 3206, 532, 29, 310, 7498, 9, 17, 31, 259, 20, 753, 1854, 1665, 16, 109, 11295, 9, 107, 48, 1418, 14093, 2816, 45, 13, 1, 1...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to make a cloned input form with several functions? === I'm making the input form. In the form, I'd like to implement the button whose function is adding a new cloned form. Also in the form, every element has initial value colored gray. When a user clicks a form to input, an initial value disappears. The problems are; - When a user clicks a new added form, an initial value dose not disappear. - In the textarea, I cannot reset an initial value. It seems that there are some problems about textarea. <script type="text/javascript" src="jquery-1.7.2.min.js"></script> <script src="des.js"></script> <script type="text/javascript"> var tbl_cnt4 = 1; jQuery(document).ready(function($) { $('#add_btn4').click(function() { var original4 = $('#project_form_set_' + tbl_cnt4); var cloned4 = $(original4).clone(); $(original4).after(cloned4); tbl_cnt4++; $(cloned4).attr('id', 'project_form_set_' + tbl_cnt4); $('#project_form_set_' + tbl_cnt4 + ' label:eq(0)').attr('for', 'project_name_' + tbl_cnt4); $('#project_form_set_' + tbl_cnt4 + ' label:eq(1)').attr('for', 'project_url_' + tbl_cnt4); $('#project_form_set_' + tbl_cnt4 + ' label:eq(2)').attr('for', 'project_description_' + tbl_cnt4); $('#project_form_set_' + tbl_cnt4 + ' input:eq(0)').attr('name', 'project_name_' + tbl_cnt4); $('#project_form_set_' + tbl_cnt4 + ' input:eq(1)').attr('name', 'project_url_' + tbl_cnt4); $('#project_form_set_' + tbl_cnt4 + ' textarea:eq(2)').attr('name', 'project_description_' + tbl_cnt4); var tmp_pro_name = document.getElementsByName('project_name_' + tbl_cnt4)[0]; tmp_pro_name.value = 'ex. Hoge Project'; tmp_pro_name.style.color = "#999"; var tmp_pro_url = document.getElementsByName('project_url_' + tbl_cnt4)[0]; tmp_pro_url.value = 'http://hogehogeproject.com'; tmp_pro_url.style.color = "#999"; var tmp_pro_des = document.getElementsByName('project_description_' + tbl_cnt4); tmp_pro_des.value = "mosmo"; //$("tmp_pro_des").val("mos"); tmp_pro_des.style.color = "#999"; $(document).ready(function() { $('textarea,input[type="text"]').focus(function() { if ($(this).val() == this.defaultValue) { this.style.color = "#999"; $(this).val(''); this.style.color = "black"; }; }).blur(function() { if ($(this).val() == this.defaultValue | $(this).val() == '') { $(this).val(this.defaultValue); this.style.color = "#999"; }; }); }); }); }); </script> <table id="project_form_set_1"> <tbody> <tr> <td><label for="project_name_1">Name *</label></td> <td><input name="project_name_1" class="input" value="ex. Hoge Project" type="text" size="50"></td> </tr> <tr> <td><label for="project_url_1">URL</label></td> <td><input name="project_url_1" class="input" value="http://hogehogeproject.com" type="text" size="50"></td> </tr> <tr> <td><label for="project_description_1">Description</label></td> <td><textarea name="project_description_1" class="input" rows="4" cols="40" value="Please input the description of the project.">Please input the description of the project.</textarea></td> </tr> </tbody> </table> <input value="Add new project" id="add_btn4" type="button">
0
[ 2, 184, 20, 233, 21, 13871, 43, 6367, 505, 29, 238, 3719, 60, 800, 3726, 3726, 31, 22, 79, 544, 14, 6367, 505, 9, 19, 14, 505, 15, 31, 22, 43, 101, 20, 8713, 14, 5167, 1196, 1990, 25, 4721, 21, 78, 13871, 43, 505, 9, 67, 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 change Android file permissions in internal memory === I have an Android app, let's call it com.android.myapp. I wish to store its application data at /data/data/com.android.myapp/files. In fact, if I create files in the app, this is where it gets saved to by default. However, I wish to have certain files injected into this directly rather than created by the app. The app should then be able to read these injected files. I tried doing so by doing an adb push into the directory, but the resulting file belongs to root rather than app_18, which is my app. Therefore, my app is unable to open this file. How do I change the file permissions so that it belongs to app_18? I tried chown app_18:app_18 /data/data/com.android.myapp/files but it tells me that there's no such user as app_18. Thanks.
0
[ 2, 184, 20, 753, 13005, 3893, 5572, 18, 19, 3117, 1912, 800, 3726, 3726, 31, 57, 40, 13005, 4865, 15, 408, 22, 18, 645, 32, 13, 960, 9, 290, 18524, 9, 915, 7753, 9, 31, 2536, 20, 1718, 82, 3010, 1054, 35, 13, 118, 18768, 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...
Flurry does nothing in android === I am evaluating Flurry and has integrated it to a test project The Activity: package com.test.flurry; import java.util.Hashtable; import com.flurry.android.FlurryAgent; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; public class TestFlurryActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); Button button = (Button) findViewById(R.id.button1); button.setOnClickListener(new View.OnClickListener(){ @Override public void onClick(View v){ Hashtable<String, String> map = new Hashtable<String, String>(); for(int i = 0; i < 20; i++){ map.put("MappedKey"+i, "MappedValue"+i); } Log.d("Flurry", "Event2"); FlurryAgent.logEvent("buttonPressedEvent", map); } }); } public void onStart() { super.onStart(); Log.d("Flurry", "Starting1"); FlurryAgent.onStartSession(this, "FlurryKey"); Log.d("Flurry", "Setting user"); FlurryAgent.setUserId("user1"); Log.d("Flurry", "Event1"); FlurryAgent.logEvent("Event1"); } public void onStop() { super.onStop(); FlurryAgent.onEndSession(this); } } The manifest: <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.test.flurry" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="7" /> <uses-permission android:name="android.permission.INTERNET"/> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <activity android:name=".TestFlurryActivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest> When I run this sample on my device it looks like flurry is not working. No flurry logs in logcat except my logs ("Flurry" tag). I double checked the flurry key, and even tried "XXX" string and nothing. What am I doing wrong? Thanks, Guy
0
[ 2, 29471, 630, 626, 19, 13005, 800, 3726, 3726, 31, 589, 26764, 29471, 17, 63, 5547, 32, 20, 21, 1289, 669, 14, 2358, 45, 6030, 13, 960, 9, 10543, 9, 12848, 139, 622, 73, 9010, 8247, 9, 14255, 9, 25436, 5924, 73, 9010, 13, 960, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Visual studio: disable web development server for some web projects === I'm working on a web platform which uses ASP.NET MVC and supports plugins. In this platform, each plugin is a folder under /Plugins folder. For example, plugin A's virtual path is /Plugins/PluginA. In development, one plugin is one separated asp.net mvc web application. To make plugin development easier. I create plugin projects in the same solution where the main project (the platform) is in. At runtime, the platform will dynamically load the assemblies in the plugin project's bin folder. The problem is, **every time I debug the main project, visual studio will start many web development servers** (one for main project, and one for each plugin project). So if I have 20 plugins, visual studio will start 21 development server. It makes my computer slow. So, if there's a way to disable the development server for plugin projects, that is, let visual studio start only one development server when debugging? **BTW:** I still need the intellisence for the Razor views in plugin projects. Thanks in advance!
0
[ 2, 3458, 1120, 45, 1460, 579, 2741, 522, 8128, 26, 109, 2741, 2314, 800, 3726, 3726, 31, 22, 79, 638, 27, 21, 2741, 2452, 56, 2027, 28, 306, 9, 2328, 307, 8990, 17, 6747, 10922, 108, 18, 9, 19, 48, 2452, 15, 206, 10922, 108, 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...
Richfaces validation error showing with namespace in portlet === We are trying to use richfaces input validator in jsf-portlets. If there is a validation error, the error message is coming as below. viewns_Z7_4IH2H4S0IGV970I3MN0VQQ10V2_:ns_Z7_4IH2H4S0IGV970I3MN0VQQ10V2_j_id255337199_f3822a1:field1: Wrong size for tan How to avoid this whole id and just show only the error message?
0
[ 2, 2042, 6413, 18, 27999, 7019, 3187, 29, 204, 5582, 19, 1295, 1336, 800, 3726, 3726, 95, 50, 749, 20, 275, 2042, 6413, 18, 6367, 7394, 3457, 19, 487, 18, 410, 8, 1993, 11045, 9, 100, 80, 25, 21, 27999, 7019, 15, 14, 7019, 2802,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
returning multiple values using php to jquery.ajax with json === i'm trying to make a simple call to data from database using php and ajax. I need multiple results. hence i'm using json method. But its not working. $.ajax({ type: "POST", data: "qid=162", url: "activity_ajax.php", dataType: json, success: function(data) { alert(data.first); } }); My activity_ajax.php page returns the following echo "first":"Steven","last":"Spielberg","address":"1234 Unlisted Drive";
0
[ 2, 2485, 1886, 4070, 568, 13, 26120, 20, 487, 8190, 93, 9, 6881, 7522, 29, 487, 528, 800, 3726, 3726, 31, 22, 79, 749, 20, 233, 21, 1935, 645, 20, 1054, 37, 6018, 568, 13, 26120, 17, 20624, 9, 31, 376, 1886, 1736, 9, 5796, 31,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
How to check Blackberry device is connected to internet connection? === In `Android`, checking internet connection is like that. public boolean isOnline() { ConnectivityManager cm = (ConnectivityManager) activity .getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo netInfo = cm.getActiveNetworkInfo(); if (netInfo != null && netInfo.isConnectedOrConnecting()) { return true; } return false; } How about in Blackberry RIM? p/s*: I am not asking for checking the type of connection or connection available.
0
[ 2, 184, 20, 2631, 27367, 3646, 25, 2587, 20, 2620, 2760, 60, 800, 3726, 3726, 19, 13, 1, 290, 18524, 1, 15, 9886, 2620, 2760, 25, 101, 30, 9, 317, 9827, 413, 210, 25, 218, 1143, 5, 6, 13, 1, 24026, 22256, 2390, 800, 13, 5, 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...
Quickreport - pagenumber does not increment when page changed === I am using the OnNeedData feature with an array feeding a number of qrLabels in a detail band configuration - (Delphi 2010 and QuickRep5) - On a multi-page report, I need to detect every next page (2, 3, 4 etc) and modify the first line in the detail band. Everything works fine except that the internal page number variable (QuickReport.QRprinter.pagenumber) does not increment before the first line is printed (or shown). As an exemple, if I print a ***** spam removed **** of labels with the caption equal to the page number, the first line of page 2 will show "Page 1" and the rest of the lines on that page will show correctly "Page 2"; same thing happens for all other pages. Can someone help me find a way to properly identify the beginning of a new page, I have tried "OnEndPage, OnStartPage, BeforePrint, etc. without success - the counter always increment after the first line of the detail band has been printed... Thank you
0
[ 2, 2231, 17437, 13, 8, 2478, 16299, 630, 52, 13, 28461, 76, 2478, 1015, 800, 3726, 3726, 31, 589, 568, 14, 27, 556, 69, 18768, 1580, 29, 40, 7718, 8524, 21, 234, 16, 2593, 139, 21018, 18, 19, 21, 6110, 323, 8091, 13, 8, 13, 5,...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
CanCan: wrong number of arguments(1 for 0) === I can't seem to get CanCan working. This has turned out to be quite frustrating, especially when I have followed the rule book and tried, seemingly, all the tricks under the sun to get it to work. I am using Rails 3.1.2, Devise 2.1.2, and CanCan 1.6.8. I set-up a separate role model as described by RyanB [here][1]. This is my code. **1) ability.rb** class Ability include CanCan::Ability def initializer(user) user ||= User.new(:roles => { :name => "guest" }) # For users with no account if (user.has_role?(:admin)) || (user.has_role?(:mod)) can :manage, :all elsif user.has_role?(:registered) can :read, :all can :create, :all can :update, :all do |obj| obj.try(:user) == (user || user.role?(:admin) || user.role?(:mod)) end can :destroy, :all do |obj| obj.try(:user) == (user || user.role?(:admin) || user.role?(:mod)) end else can :read, :all end end end **2) has_role? definition in user.rb** def has_role?(role_sym) roles.any? { |r| r.name.underscore.to_sym == role_sym } end **3) Controller before filters** before_filter :authenticate_user!, :except => :show load_and_authorize_resource skip_authorize_resource :only => :show Authorizing any controller with CanCan results in the same error on all actions. [1]: https://github.com/ryanb/cancan/wiki/Separate-Role-Model
0
[ 2, 92, 1245, 45, 1389, 234, 16, 10553, 5, 165, 26, 713, 6, 800, 3726, 3726, 31, 92, 22, 38, 2260, 20, 164, 92, 1245, 638, 9, 48, 63, 412, 70, 20, 44, 1450, 25568, 15, 1118, 76, 31, 57, 709, 14, 1828, 360, 17, 794, 15, 9688...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Need to record the time taken for the following requests? === I am performing WCF service testing here using a small C# .net test client. How do i record the time taken for the following items : - 1. Transmission time for the response. 2. Time taken for De-Serialization of data. How do i get these times using a WCF service proxy in .net ? Any other way ( cant use Soap UI and fiddler due to admin policy issues here) would be highly appreciated.
0
[ 2, 376, 20, 571, 14, 85, 658, 26, 14, 249, 12279, 60, 800, 3726, 3726, 31, 589, 2955, 11801, 410, 365, 4431, 235, 568, 21, 284, 272, 5910, 13, 9, 2328, 1289, 6819, 9, 184, 107, 31, 571, 14, 85, 658, 26, 14, 249, 3755, 13, 45...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Zooming core plot along Y-axis and X-axis Independently === I am Using the below code to scroll my core plot along X-axis Y-axis and zoom. Its working fine. But I when i zoom my core plot, it zooms in both the directions. I want the plot to zoom along X if I pinch along x-direction and zoom Y if pinch along Y-direction. Can someone help me with this please. -(CGPoint)plotSpace:(CPTPlotSpace *)space willDisplaceBy:(CGPoint)displacement { return CGPointMake(displacement.x, displacement.y); } -(CPTPlotRange *)plotSpace:(CPTPlotSpace *)space willChangePlotRangeTo:(CPTPlotRange *)newRange forCoordinate:(CPTCoordinate)coordinate { // Adjust axis to keep them in view at the left and bottom; // adjust scale-labels to match the scroll. // CPTXYAxisSet *axisSet = (CPTXYAxisSet *)self.hostView.hostedGraph.axisSet; if (coordinate == CPTCoordinateX) { axisSet.yAxis.orthogonalCoordinateDecimal = newRange.location; } else { axisSet.yAxis.titleLocation = CPTDecimalFromFloat(newRange.locationDouble + (newRange.lengthDouble / 2.0F)); } return newRange; }
0
[ 2, 19469, 68, 2884, 3798, 303, 13, 93, 8, 19676, 17, 993, 8, 19676, 9029, 800, 3726, 3726, 31, 589, 568, 14, 1021, 1797, 20, 12159, 51, 2884, 3798, 303, 993, 8, 19676, 13, 93, 8, 19676, 17, 19469, 9, 82, 638, 1123, 9, 47, 31, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
ASP.NET MVC 4 - Application not accepting new connection string - AppHarbor Deploy Issue === I'm currently working on an ASP.NET MVC 4 project that is using Entity Framework 4.3 with a CodeFirst approach using simple POCO classes. Also, I'm using SQL Server Express as the development database. After building my classes and setting the connection string, I ran my project and it generated a SQL Server Express database for me with no problems. The problem though, is that I am trying to deploy to AppHarbor and I'm having an issue with the connection string. AppHarbor requires that you install SQL Server as an 'Add-On' and configure the connection string to have an alias that will inject their Sequilizer connection string into the project that you push from GitHub. Here is their documentation on how this works: http://support.appharbor.com/kb/add-ons/using-sequelizer I believe I have all of this setup correctly, but there seems to be a problem with how my app is reading the connection string. Here is the development connection string that I am using on my local machine: <connectionStrings> <add name="DefaultConnection" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=aspnet-FranchiseManager-201275154247;Integrated Security=True" providerName="System.Data.SqlClient" /> </connectionStrings> Here is what the AppHarbor Sequilizer connection string looks like: <connectionStrings> <add name="DefaultConnection" connectionString="Server=0691298f-d461-40cc-86d6-a089016ba88d.sqlserver.sequelizer.com;Database=<removed hash value>;User ID=<removed hash value>;Password=<removed hash value>;" providerName="System.Data.SqlClient" /> </connectionStrings> The first connection - generated locally by my EF - works just fine. The second - created by Sequilizer - is not being read by my application. **However - I can connect to the Sequilizer database through SQL Server Management Studio.** So it must be my app right? In order to trouble shoot my deployment to AppHarbor, I hard-coded their connection string into my app instead of the one auto-generated by EF and tested on my local machine. Here's what I did: 1. Replaced the connection string in Web.config with the one AppHarbor provided, 2. Cleaned the solution, 3. Rebuilt the solution But when I ran the application, it is still utilizing the original database generated by EF - which must mean that it is still reading the old connection string. **It seems like changing the connection string is not enough. What else in my application should I change in order to replace the connection string?** Any advice is appreciated - thanks!
0
[ 2, 28, 306, 9, 2328, 307, 8990, 268, 13, 8, 3010, 52, 10894, 78, 2760, 3724, 13, 8, 4865, 2269, 6157, 17617, 1513, 800, 3726, 3726, 31, 22, 79, 871, 638, 27, 40, 28, 306, 9, 2328, 307, 8990, 268, 669, 30, 25, 568, 9252, 6596, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
Proper SqlAlchemy query using contains_eager === I have a query that I have found a working solution for. I am not sure if I am performing the query properly and I was hoping to find out. The tables appear as follows: ![owner](http://i.imgur.com/prHMh.png) The query is: q = session.query(Person).outerjoin(PetOwner).join(Animal).options(contains_eager("petowner_set"), contains_eager("petowner_set.animal")) There is a relationship on person connecting it to petowner. It would be easy if the join from person to petowner AND the join from petowner to animal were both inner joins or both outer joins. However, the join from person to petowner is an outer join and the join from petowner to animal is an inner join. To accomplish this, i added two contains_eager calls to the options. Is this the correct way to accomplish this?
0
[ 2, 4119, 4444, 10834, 2569, 915, 25597, 568, 1588, 1, 62, 14892, 800, 3726, 3726, 31, 57, 21, 25597, 30, 31, 57, 216, 21, 638, 4295, 26, 9, 31, 589, 52, 562, 100, 31, 589, 2955, 14, 25597, 7428, 17, 31, 23, 3935, 20, 477, 70, ...
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...