text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
public TreeDemo() { vm.add(new LabelField("Table:")); myTree.setRowHeight(rowHeight); myTree.setIndentWidth(15); myTree.setDefaultExpanded(false); for(int i = parent.length-1; i >= 0 ; i--) { parent[i] = myTree.addChildNode(0, "Parent_" + (i+1)); child[i] ...
[ -0.006321686785668135, -0.09743142127990723, 0.36174261569976807, -0.1894676238298416, 0.4677927494049072, 0.2709730267524719, 0.5891397595405579, -0.2194254994392395, -0.14022399485111237, -0.38691598176956177, -0.35464197397232056, 0.4011809527873993, -0.16081464290618896, 0.254799664020...
child[i].length-1; j >=0 ; j--) { child[i][j] = myTree.addChildNode(parent[i], "Child_"+ (i+1) + "_" + (j+1)); child_child[i][j] = new int[3]; for(int k = child_child[i][j].length-1; k >= 0 ; k--) { child_child[i][j][k] = myTree.addChildNode(child[i][j...
[ -0.3002384305000305, 0.13182419538497925, 0.33158910274505615, -0.3821391761302948, 0.3367267847061157, 0.6547079086303711, 0.37593063712120056, -0.3087690472602844, -0.057624269276857376, -0.6894875168800354, -0.2532825171947479, 0.38682180643081665, -0.19105742871761322, 0.38222056627273...
+ (j+1)+ "_" + (k+1)); } } } vm.add(myTree); add(vm); } private class CustomTreeFieldCallback implements TreeFieldCallback { public void drawTreeItem(TreeField treeField, Graphics graphics, int node,
[ -0.13253936171531677, -0.2517423927783966, 0.5108650326728821, -0.268707275390625, 0.002591386204585433, 0.3525483310222626, 0.2986624538898468, -0.3056221902370453, -0.18962976336479187, -0.4286384880542755, -0.2929930090904236, 0.6585686802864075, -0.461814284324646, -0.07916662096977234...
int y, int width, int indent) { // TODO Auto-generated method stub String string = (String) treeField.getCookie(node); int preservedColor = graphics.getColor(); if(treeField.getCurrentNode() == node) { graphics.setColor(0x0CCCC0); } else {
[ 0.058443833142519, -0.4187828302383423, 0.37815216183662415, -0.004050024785101414, 0.1370021253824234, 0.2281968593597412, 0.2923719882965088, -0.23074615001678467, -0.007614764850586653, -0.3306361138820648, -0.22172535955905914, 0.5210637450218201, -0.40924501419067383, 0.06578388810157...
graphics.setColor(0x404040); } graphics.fillRect(0, y, Display.getWidth(), treeField.getRowHeight()); Bitmap iconImage; int iconImageWidth = 0; indent -= 20; // decrease the extra indentation for all nodes.
[ -0.36790546774864197, -0.43658584356307983, 0.5355402827262878, -0.1377384513616562, 0.13743719458580017, 0.3455115854740143, 0.2900044023990631, -0.10490936040878296, -0.13341841101646423, -0.7154325842857361, -0.28992655873298645, 0.5587916374206543, -0.4293120503425598, -0.0982371494174...
if(treeField.getFirstChild(node) != -1){ // if the node is not a leaf node if(treeField.getExpanded(node)) { iconImage = Bitmap.getBitmapResource("icon_arrow_down.png"); iconImageWidth = iconImage.getWidth(); } else {
[ -0.7734196782112122, -0.3796093463897705, 0.4891919195652008, -0.06949225813150406, 0.3145454227924347, 0.04691595956683159, 0.400648832321167, -0.19973203539848328, -0.35267356038093567, -0.3612671196460724, -0.6045436263084412, 0.43109577894210815, -0.3231900930404663, -0.123847328126430...
iconImage = Bitmap.getBitmapResource("icon_arrow_right.png"); iconImageWidth = iconImage.getWidth(); } graphics.drawBitmap(indent, y, indent+iconImageWidth, treeField.getRowHeight(), iconImage, 0, 0); } if(
[ -0.4743916690349579, -0.4341856837272644, 0.6874843835830688, -0.042268626391887665, 0.021378865465521812, 0.31540295481681824, 0.26407697796821594, -0.24734778702259064, -0.24952928721904755, -0.4220251142978668, -0.45651307702064514, 0.793188214302063, -0.4431079626083374, -0.20717853307...
treeField.getCurrentNode() == node ) { graphics.setColor(0x404040); } else { graphics.setColor(0x0CCCC0); } graphics.drawText(string, indent+iconImageWidth, y);
[ -0.3355875313282013, -0.4287208020687103, 0.5671999454498291, -0.12937885522842407, 0.1906903237104416, 0.12490184605121613, 0.31814733147621155, -0.08409497886896133, -0.08676137030124664, -0.5738476514816284, -0.41146188974380493, 0.5665619373321533, -0.5179715752601624, -0.1722562015056...
graphics.setColor(preservedColor); } } } ``` ![Customizing TreeField in BlackBerry](https://i.stack.imgur.com/r2u39.png)
[ -0.20614251494407654, -0.17872880399227142, 0.27941250801086426, -0.1099652647972107, 0.13955318927764893, 0.11401540040969849, 0.451544851064682, 0.02951405569911003, -0.39312171936035156, -0.5911393165588379, -0.012597394175827503, 0.6174409985542297, -0.35000351071357727, -0.18547001481...
I am running my Python script in Windows PowerShell, and the script should run another program using Popen, then pipe the output of that program (Mercurial, actually) for use in my script. I am getting an encoding error when I try to execute my script in PowerShell. I am quite sure it is happening because Python is no...
[ 0.3236403167247772, 0.4173858165740967, 0.1751631498336792, -0.23392659425735474, -0.04224655404686928, -0.16899330914020538, 0.47155529260635376, 0.22247079014778137, 0.0649862065911293, -0.7520921230316162, -0.03950534015893936, 0.6886407732963562, -0.70710289478302, 0.09513590484857559,...
"--cwd", self.path, "--encoding", "UTF-8"] + list(args), stdout=PIPE, stderr=PIPE) #... other code ``` When I run this script on Linux, I have no problems whatsoever. I can also run the script in Windows 7 Home Premium 64-bit using PowerShell with no problems. The PowerShell in this Windows 7 is using the code page 8...
[ -0.07111021131277084, 0.3262263238430023, 0.4016306400299072, -0.36454129219055176, 0.13233007490634918, -0.10849526524543762, 0.4179207980632782, 0.059369608759880066, -0.20464642345905304, -0.7538468241691589, -0.28538382053375244, 0.8203381299972534, -0.24179880321025848, 0.027656914666...
proc = Popen(["hg", "--cwd", self.path, "--encoding", "UTF-8"] + list(args), stdout=PIPE, stderr=PIPE) File "C:\Program files\Python27\lib\subprocess.py", line 679, in __init__ errread, errwrite) File "C:\Program files\Python27\lib\subprocess.py", line 852, in _execute_child args = list2cmdline(args) File "C:\P...
[ -0.21678759157657623, 0.17070062458515167, 0.5931254029273987, -0.3652464747428894, 0.388397216796875, 0.688521146774292, 0.4051671028137207, -0.016280200332403183, -0.08945345878601074, -0.29509127140045166, -0.3036164939403534, 0.586715817451477, -0.5132291913032532, -0.07394175976514816...
encoding to `chcp 850` in PowerShell before executing my script. * Many other miscellaneous Python hacks I've found in other Stack Overflow answers. For my specific details, my whole source code is available [here in BitBucket](https://bitbucket.org/staltz/hypergrass/src/2d7730269e04/src/). `hgapi.py` is the script th...
[ 0.08672522753477097, 0.2612181007862091, 0.257595032453537, -0.13554958999156952, -0.031964004039764404, -0.04381662979722023, 0.3606533706188202, -0.17008036375045776, -0.10125654935836792, -0.7456421852111816, -0.05405812710523605, 0.4509079158306122, -0.48246362805366516, -0.06293208897...
of the code: ``` out, err = [x.decode("utf-8") for x in proc.communicate()] ``` Gave the error ``` UnicodeDecodeError: 'utf8' codec cant decode byte 0xe3 in position 33 .... ``` Indeed, `x` was a **byte string** with `\xe3` (which is `ã` in cp1252) included. So instead of using `x.decode('utf-8')`, I used `x.de...
[ -0.3327455520629883, 0.3256460428237915, 0.15257331728935242, -0.1888890415430069, 0.07605981081724167, 0.06531169265508652, 0.7060388326644897, -0.1058424636721611, -0.1427546590566635, -0.4477103650569916, -0.4038547873497009, 0.7041379809379578, -0.5957297682762146, -0.12135046720504761...
I am a newbie to developing in phonegap so I am sorry if this is a obvious answer. This is the last part of my project the only part of it that isnt functioning is the plugin. I get the message "Failed to send email via Android Intent" and get the following error in logcat "Error: Status=2 Message=Class not found at ...
[ 0.2148689180612564, 0.333816796541214, 0.43591275811195374, -0.33000314235687256, 0.11821461468935013, -0.08781993389129639, 0.6542152762413025, -0.20793111622333527, -0.011782360263168812, -0.7187243103981018, -0.10925372689962387, 0.511418342590332, -0.38606444001197815, 0.04222922027111...
file referenced in my index.html. Below is the function which uses the plugin. function emailxmlfile(){ ``` var subject = "Sports Code Xml Edit List" + filedate.toDateString(); var body = ""; if(!window.plugins || !window.plugins.webintent){ alert('Unable to find webintent plugin'); }else{ var extras={}; ext...
[ 0.5307108163833618, -0.29020562767982483, 0.509072482585907, -0.007133647333830595, -0.11810223013162613, 0.071595698595047, 0.5374447703361511, -0.2734440565109253, -0.3227652907371521, -0.8412172198295593, -0.15853728353977203, 0.6979782581329346, -0.221475288271904, -0.15466856956481934...
code working without a minor and subtle change: respect capitalization when adding the plugin details to the .xml file. I mean, you stated this: ``` plugin name="webintent" value="com.borismus.webintent.WebIntent" ``` BUT **should read this instead** (watch out for the name!): ``` plugin name="WebIntent" value="com...
[ 0.3353223204612732, -0.06361499428749084, 0.3198396861553192, -0.0026942368131130934, -0.24159789085388184, -0.11729714274406433, 0.19467021524906158, -0.08586390316486359, -0.13852576911449432, -0.7273484468460083, 0.07084209471940994, 1.0054024457931519, -0.2827296853065491, -0.127793192...
I have an array: ``` string myArray={"15","56","17-75","78","100-150","130"} ``` I want to filter **myList** by **arrayElements**. I want equivalent to code below, but programmatically: ``` mylist.Where(i=>i.val==15 || i.val==56 || (i.val >= 17 && i.val<75) ||i.val==78 || (i.val >= 100 && i.val<150)|| i.val==130...
[ -0.038195058703422546, -0.047337424010038376, 0.5738318562507629, -0.25810346007347107, -0.19609476625919342, 0.26887041330337524, 0.19145607948303223, -0.7126559019088745, -0.22900600731372833, -0.7950930595397949, -0.08329793065786362, 0.4073432385921478, -0.23782578110694885, 0.02136149...
>= s[0] && i <= s[1]; } })); ```
[ 0.08709441125392914, -0.011455446481704712, 0.5954697728157043, -0.5047733783721924, 0.22093655169010162, -0.18249693512916565, 0.6534414291381836, -0.5456469655036926, 0.12296558916568756, -0.46709540486335754, -0.7146158814430237, 0.6502975225448608, -0.41008511185646057, 0.2717609405517...
I have a web application in Tomcat 7. When I shut down Tomcat I see these warning (but not always) ``` SEVERE: The web application [/MyApplication] created a ThreadLocal with key of type [org.apache.xml.security.algorithms.MessageDigestAlgorithm$1] (value [org.apache.xml.security.algorithms.MessageDigestAlgorithm$...
[ -0.22137409448623657, 0.33822041749954224, 1.026347041130066, -0.21003687381744385, -0.1221739649772644, -0.015924708917737007, 0.8049646615982056, -0.31511324644088745, -0.4273969233036041, -0.543323278427124, 0.0084663862362504, 0.49603471159935, -0.2287980616092682, 0.3150824010372162, ...
was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. Apr 3, 2012 1:56:19 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks SEVERE: The web application [/MyApplication] created a ThreadLocal with key of type [org.apache.xml.security.utils.UnsyncBuf...
[ 0.1737433224916458, 0.07921413332223892, 0.8701114058494568, 0.24527277052402496, 0.21347372233867645, -0.4615412652492523, 0.6801658272743225, -0.11550387740135193, -0.5906404256820679, -0.008381739258766174, 0.07765819877386093, 0.7397926449775696, 0.21358150243759155, 0.1122777685523033...
one or more memory leaks in your application. For a full explanation of why these occur, which ones are your fault and what you can do to fix them see this presentation: <http://people.apache.org/~markt/presentations/2010-11-04-Memory-Leaks-60mins.pdf>
[ -0.07220124453306198, 0.28075742721557617, -0.33088845014572144, 0.4134371280670166, 0.10596484690904617, -0.05315237119793892, 0.4901423454284668, 0.22660881280899048, -0.4416041970252991, -0.21262815594673157, -0.21145209670066833, 0.4852234423160553, -0.1696808636188507, -0.043764844536...
We are C# winform application.I want to modify the content of the xml file located in "c:\program files\filezilla Server\FileZilla Server.xml".It is working fine with **Windows XP**. When i accessing the file in **Windows 7** it throws UnauthroziedAccessException and program will be terminated with showing this messag...
[ 0.6448268890380859, 0.06921950727701187, 0.7424795031547546, 0.22817735373973846, 0.1761932522058487, -0.2959097623825073, 0.12948305904865265, -0.14263907074928284, 0.25069111585617065, -0.8452606201171875, 0.05887897312641144, 0.8698510527610779, -0.007905335165560246, 0.3472124636173248...
is it to possible to get data from grayscale png with fopen and then convert it to integer numbers corresponding to grayscale? ``` FILE *fr; int ch; fr = fopen( "file_name.png", "rb" ); while ( (ch=fgetc(fr)) != EOF ) printf( "%d", ch ); fclose( fr ); ``` Not that easily, you can read about the file format at for...
[ 0.24285700917243958, -0.1346249133348465, 0.5223258137702942, 0.16873671114444733, -0.11005248874425888, -0.24879944324493408, -0.11334346234798431, -0.11937210708856583, -0.26138827204704285, -0.78607577085495, -0.027490360662341118, 0.770219624042511, -0.2416183203458786, -0.127319604158...
I am trying to display the ImageButton Image Url clicked in a CSS pop up however the event is not getting called My code behind is as follows: ``` protected void Page_Load(object sender, EventArgs e) { uid = (string)Session["uid"]; api = (FacebookAPI)Session["Api"]; con = new SqlConnection("Data Source=...
[ 0.2268127053976059, 0.06854761391878128, 0.7322519421577454, -0.38815608620643616, -0.0885050818324089, 0.31432560086250305, 0.5191653370857239, -0.37277019023895264, -0.024813326075673103, -0.9277346134185791, -0.2395944744348526, 0.40634092688560486, -0.47930383682250977, -0.098499871790...
adapter.Fill(ds); int count = ds.Tables[0].Rows.Count; for (int i = 0; i < count; i++) { HtmlGenericControl listitem = new HtmlGenericControl("li"); HtmlGenericControl anchor = new HtmlGenericControl("a"); ImageButton im = new ImageButton(); im.ImageUrl = (string)ds.Tables[0...
[ -0.19142824411392212, -0.5615355968475342, 1.0525505542755127, -0.3222578763961792, -0.2210715264081955, 0.40678131580352783, 0.24164995551109314, -0.7546176314353943, -0.5185771584510803, -0.5511239171028137, -0.3202243447303772, 0.5697762370109558, -0.5308442115783691, 0.1267425417900085...
im.Width = 80; //anchor.InnerHtml = fr.data[i].name; anchor.Controls.Add(im); anchor.Attributes.Add("href", "#lightbox-unlocked"); anchor.Attributes.Add("class", "open-popup"); anchor.Attributes.CssStyle.Add("div", "holder"); listitem.Controls.Add(anchor); im.Cli...
[ 0.0199627336114645, -0.3000151216983795, 0.9293465614318848, -0.232589453458786, 0.06948092579841614, 0.18569853901863098, 0.20412178337574005, -0.5211396217346191, -0.43670418858528137, -0.4933628439903259, -0.18825462460517883, 0.7238550782203674, -0.44711732864379883, 0.0689396411180496...
list.Controls.Add(listitem); Panel1.Controls.Add(list); } else if (5 < i && i <= 11 ) { list1.Controls.Add(listitem); Panel2.Controls.Add(list1); } else if (11 < i && i<= 17)
[ -0.09631235152482986, -0.21813827753067017, 0.48539847135543823, -0.15006783604621887, 0.20450197160243988, 0.23474708199501038, -0.039204731583595276, -0.7363050580024719, -0.5081364512443542, -0.38763684034347534, -0.26162973046302795, 0.5018858313560486, -0.4651084542274475, -0.31422936...
{ list2.Controls.Add(listitem); Panel3.Controls.Add(list2); } else if (17 < i && i <= 23) { list3.Controls.Add(listitem); Panel4.Controls.Add(list3); } else
[ -0.10838324576616287, -0.13936500251293182, 0.506614089012146, -0.27340275049209595, 0.14317362010478973, 0.2614023685455322, 0.03851858153939247, -0.6892585754394531, -0.5718933939933777, -0.42541420459747314, -0.2985808849334717, 0.4526207149028778, -0.4165228605270386, -0.31165617704391...
{ list4.Controls.Add(listitem); Panel5.Controls.Add(list4); } } protected void im_Click(object sender, ImageClickEventArgs e) { ImageButton im1 = (ImageButton)sender; string i1 = im1.ID.Substring(im1.ID.Length - 1, 1); Regex re = new Regex(@"\d+"); Match m = re.Ma...
[ -0.11642740666866302, -0.24961510300636292, 0.8102860450744629, -0.23384033143520355, -0.11410289257764816, 0.3509310483932495, 0.4947874844074249, -0.7221478223800659, -0.30983972549438477, -0.7049477100372314, -0.27860400080680847, 0.7093016505241394, -0.7298764586448669, 0.2126867026090...
is no 100% security for anything you run on a device that is not under your control (like Android devices in your case).** You could make "abuse" harder by several measures: * issue a random session key (cryptographically secure) after a successfull login with a time-limit so a new login needs to happen after a certa...
[ 0.0923769474029541, -0.15612800419330597, 0.3208339512348175, 0.20178954303264618, 0.1261371672153473, -0.6831240653991699, 0.6147669553756714, -0.030223069712519646, -0.17890921235084534, -0.3617192208766937, -0.36567720770835876, 0.48206210136413574, -0.2222132384777069, -0.0989960432052...
limit how many calls per minute/hour or similar are allowed (might be impossible depending on the specific application) IF you really really want to make it very hard you can issue a device-specific client-certificate (when the client buys your app) and use cert-based client authentication (defined in SSL standard) - ...
[ 0.32465678453445435, 0.11137303709983826, 0.5302162766456604, 0.11951229721307755, 0.17035135626792908, -0.6609856486320496, 0.31305888295173645, -0.0115450918674469, -0.25733423233032227, -0.43772047758102417, -0.3554880917072296, 0.6769200563430786, -0.23948071897029877, -0.0607061609625...
I want create an object using ember-data, but I don't want to save it until I call commit. How can I achieve this behavior? You can use `transaction`'s, defined [transaction.js](https://github.com/emberjs/data/blob/master/packages/ember-data/lib/system/transaction.js) with corresponding tests in [transaction\_test.js](...
[ 0.22195811569690704, 0.30586642026901245, 0.5861315131187439, -0.14542289078235626, 0.11128437519073486, 0.23326238989830017, 0.5414389967918396, -0.6634335517883301, -0.20938459038734436, -0.8899076581001282, -0.2343733012676239, 0.5112669467926025, -0.5164601802825928, 0.1990894675254821...
How can I run several applications (with all of them) in debug mode on the same `JBoss 4.2` server? Is this available in `JBoss 4.2`? If not then in which `JBoss` version is it available? Debug mode is all about JVM and has nothing specific to JBoss at all. Single JVM can have only one debugger client attached at the ...
[ 0.3508707582950592, 0.0017805672250688076, 0.06701840460300446, 0.06379493325948715, -0.2617032527923584, -0.35626909136772156, 0.31668925285339355, 0.078485406935215, -0.32366666197776794, -0.45727333426475525, -0.1904897540807724, 0.4607144892215729, -0.3928930461406708, 0.23621028661727...
one See also [JBoss debugging in Eclipse](https://stackoverflow.com/questions/516196/jboss-debugging-in-eclipse) <http://www.jetbrains.com/idea/webhelp/run-debug-configuration-jboss-server.html>
[ 0.15806038677692413, -0.30452364683151245, 0.09721828997135162, 0.20606914162635803, -0.26303890347480774, -0.35193344950675964, -0.021571995690464973, 0.040239445865154266, -0.5041025876998901, -0.21562376618385315, -0.36618953943252563, 0.39279597997665405, -0.39967599511146545, -0.25920...
I have a process that pickles a dictionary using Python 3.2. I then need to unpickle this dictionary using Python 2.7 or 2.6. The problem is that when transferring between python versions I get a dictionary full of unicode data which upsets the Python API I am trying to feed it into. Pickling in Python 3.2: ``` myDic...
[ -0.060996148735284805, -0.053787022829055786, 0.06766031682491302, -0.25739362835884094, -0.34884339570999146, 0.2538129687309265, -0.10528796166181564, -0.07560672610998154, -0.013257813639938831, -0.5350717306137085, 0.10257452726364136, 0.31503066420555115, -0.2796231508255005, 0.087351...
(i.e. not unicode)? You're actually getting back exactly what you put in, since strings in [Python 3 *are* unicode](http://docs.python.org/release/3.0.1/whatsnew/3.0.html#text-vs-data-instead-of-unicode-vs-8-bit) To get `str`'s, you can convert the keys and values in the dictionary: ``` strDict = dict((k.encode(), v....
[ 0.15788723528385162, 0.1321510672569275, 0.45175105333328247, -0.06616955250501633, -0.12850113213062286, 0.30889105796813965, 0.20079848170280457, -0.16667446494102478, -0.22101204097270966, -0.5028271675109863, -0.308124303817749, 0.427715927362442, 0.01961546577513218, -0.12493193894624...
I'm having difficulty understanding the how formal ordering rules work as described in chapter 12 of the book C++ Templates, The Complete Guide by D. Vandevoorde and N. M. Josuttis. On page 188 of this book the authors give the following scenario used to decide which of two viable function templates is more specialized...
[ 0.16720353066921234, 0.11865965276956558, -0.44723188877105713, -0.27535197138786316, -0.16793768107891083, 0.17687076330184937, 0.27211499214172363, -0.7591816186904907, -0.23541808128356934, -0.5394089818000793, -0.12145502865314484, 0.6695799827575684, -0.333862841129303, -0.23710060119...
substituting `A2*` for `T`. However, there is no way to make `T*` of the second template match the nonpointer type `A1` in the first list. Hence, we formally conclude that the second template is more specialized than the first. I'd like some understanding this example. **Edit** I believe that the two function templa...
[ 0.38506850600242615, -0.23521211743354797, -0.15207025408744812, -0.12720277905464172, -0.17799296975135803, -0.05169070512056351, 0.11945287883281708, -0.3940378725528717, -0.03657989203929901, -0.7221817374229431, -0.20050036907196045, 0.7037331461906433, -0.3882925510406494, -0.11137643...
the more specialized is a strict subset of the set of possible instantiations of the less specialized one. That is, every type that can be use as an argument to the more specialized can also be used as argument to the less specialized, and there is at least one type that can be used with the less specialized that can...
[ 0.28673988580703735, -0.2505122721195221, 0.17112484574317932, 0.11168650537729263, -0.004357204772531986, 0.0796099454164505, 0.02662396989762783, -0.28775012493133545, 0.08840613812208176, -0.6057537794113159, -0.428882896900177, 0.659378707408905, -0.4524167478084564, 0.0820619016885757...
can take a greater number of arguments). The whole description in the standard is done in terms of synthetic unique types that are used for `A` and `B`, but in a less precise way we can try to resolve by hand waving. Say we find a type `X` that matches the second template argument, then an instantiation of that second...
[ 0.41098201274871826, -0.10497322678565979, -0.003314368659630418, 0.11486213654279709, -0.24841667711734772, -0.16015207767486572, -0.025159189477562904, -0.485654354095459, -0.02625853940844536, -0.4374241828918457, -0.0415530800819397, 0.722178041934967, -0.3550420105457306, -0.200191125...
it in the opposite direction? Say we find a type `Y` with which we can instantiate the first template, we get `void f( Y )`. Can the second template match this call? No, only for the subset of types that are *pointers* the previous statement can hold. That means that the second template is more *specialized*, since fo...
[ 0.295246958732605, -0.2881873548030853, 0.034922920167446136, 0.019551781937479973, -0.3636843264102936, 0.09056107699871063, 0.08294722437858582, -0.17817921936511993, -0.061333876103162766, -0.5189434885978699, -0.08716027438640594, 0.7460053563117981, -0.5662444829940796, -0.08158431947...
templates, but `f( 5 )` can only be matched by the first one. The reason for the weird explanation in terms of synthetic types is that a single example does not guarantee the order, it has to hold for *all* types. The synthetic type is a representative of *any* type.
[ 0.505430281162262, -0.2617740333080292, -0.1589171439409256, 0.17385943233966827, -0.25315895676612854, -0.31664007902145386, 0.27645719051361084, -0.25077033042907715, -0.1748238503932953, -0.6081039905548096, 0.01333257369697094, 0.3053915202617645, -0.7728884220123291, 0.099181890487670...
Sorry if this is obvious but have looked around and can't get this working: ``` row.find("td.favourite:first-child").attr('disabled', 'disabled'); ``` I am struggling to select the checkbox inside the td at all, could anyone help me with this? Does your check box have an ID? If not or if it is unknown at design time...
[ 0.30459535121917725, 0.1600758284330368, -0.2009619027376175, 0.27662724256515503, -0.08662260323762894, 0.003320744726806879, 0.2832482159137726, 0.06246265396475792, 0.003934990148991346, -0.5955143570899963, -0.012920343317091465, 0.2437383234500885, -0.24061988294124603, 0.136550530791...
up a name if you like), you could then disable all check boxes with that class like so: ``` $(".MyCheckboxCSSClass").attr("disabled", true); ``` I am sure that will simplify the whole process for you.
[ 0.13734318315982819, 0.143497034907341, 0.2733156979084015, 0.11143743246793747, 0.2657177150249481, -0.02541470341384411, 0.33749920129776, 0.018596822395920753, -0.321869432926178, -0.5978107452392578, -0.20668114721775055, 0.26056963205337524, -0.3515991270542145, 0.2149691879749298, ...
I am trying to remove the last character from a string, if it is a `/`. I am using a string array, `temp[]`, to store the strings. Here's my code: ``` char ch = ' '; for (int st = 0; st < temp.length; st++) { ch = temp[st].charAt(temp[st].length()-1); if (ch == '/') temp[st] = temp[st].substring(0, te...
[ 0.21852514147758484, 0.29788845777511597, 0.32797831296920776, -0.4976443350315094, 0.027832254767417908, 0.36836767196655273, 0.7022199034690857, -0.3063480257987976, 0.06464176625013351, -0.5321981310844421, -0.22621387243270874, 0.48208141326904297, -0.4350893497467041, 0.21358065307140...
I am working with the Git SVN plugin with a SVN repository, every timeI do a git fetch it fetches all the branches changes all over SVN repository. it takes a long time after couple of hours with many commits over many branches Can I tell it to fetch changes only for specific branches? You can fetch the remote branch ...
[ 0.37323012948036194, -0.28544092178344727, 0.6713619232177734, 0.1203860267996788, -0.01954726316034794, -0.04892296716570854, -0.062445592135190964, -0.028442848473787308, -0.26665621995925903, -0.6652858257293701, 0.12818054854869843, 0.45196059346199036, -0.0027058159466832876, 0.475298...
your working copy at all. I have my computer set up to do the fetch automatically overnight using `cron`.
[ 0.367084801197052, 0.23681241273880005, 0.4971138834953308, 0.44713228940963745, 0.23795989155769348, -0.2865300178527832, 0.0462464764714241, 0.26095888018608093, -0.3093748390674591, -0.3613163232803345, -0.23101727664470673, 0.8264707326889038, -0.11603528261184692, -0.05521255731582641...
Hi I have been trying to learn RegExpresions using Java I am still at the begining and I wanted to start a little program that is given a string and outputs the syllabels split.This is what I got so far: ``` String mama = "mama"; Pattern vcv = Pattern.compile("([aeiou][bcdfghjklmnpqrstvwxyz][aeiou])"); Ma...
[ 0.21121689677238464, 0.10415385663509369, 0.5824540853500366, -0.4675118923187256, -0.2669631540775299, 0.07743792235851288, 0.39290401339530945, -0.7399072647094727, -0.047186318784952164, -0.5398291349411011, 0.016154956072568893, 0.4437422752380371, -0.5346691608428955, 0.13685420155525...
finds a pattern that contains a vocale/consonant/vocale it will add a "-" like this v-cv .How can I achive this. In the following example i matched the first vowel and used positive lookahead for the next consonant-vowel group. This is so i can split again if i have a vcvcv group. ``` import java.util.regex.Matcher; ...
[ 0.6477404236793518, -0.08474420011043549, -0.02580849640071392, -0.4245968163013458, -0.2227821797132492, 0.32390838861465454, 0.5520081520080566, -0.5943768620491028, 0.037913963198661804, -0.38816094398498535, -0.10578269511461258, 0.6442556977272034, -0.47893545031547546, 0.268609911203...
Pattern.compile("([aeiou])(?=[bcdfghjklmnpqrstvwxyz][aeiou])"); Matcher matcher = vcv.matcher(mama); System.out.println(matcher.replaceAll("$1-")); String mamama = "mamama"; matcher = vcv.matcher(mamama); System.out.println(matcher.replaceAll("$1-")); } } ``` Output: ``` ma-ma ma-...
[ 0.17036715149879456, -0.19069816172122955, 0.5611326098442078, -0.45890966057777405, 0.3337285816669464, 0.18471179902553558, 0.3538300395011902, -0.4134487211704254, -0.351874440908432, -0.6922968626022339, -0.29061442613601685, 0.49384623765945435, -0.8789582252502441, 0.2750657796859741...
Is there anyway to give text editors summary information in a tooltip for custom functions/classes etc. in the way that they can do for standard libraries while coding? Failing this what is the standard way to highlight the purpose, required params etc. for a function/class in PHP. Check out [PHPDocumentor](http://www...
[ 0.31614023447036743, 0.15967608988285065, 0.1917872428894043, 0.15134547650814056, -0.34101733565330505, 0.16202011704444885, 0.09655659645795822, -0.689460277557373, -0.3956351578235626, -0.05934746563434601, -0.09339626878499985, 0.037741757929325104, -0.5587843656539917, -0.026340808719...
the comments self-explain, you use `@access` to show the visibility of the method (if the code being summarized is a method, of course), `@param`to show each parameter, and `@return` to show the type of the data being returned. There are many different tags to document many different aspects of the code.
[ 0.2508580684661865, -0.05395093560218811, 0.12075216323137283, 0.534395158290863, -0.38135746121406555, 0.06963223963975906, -0.06481911242008209, -0.1803230494260788, -0.3899126648902893, -0.35624417662620544, -0.025957895442843437, 0.4572906494140625, -0.08620428293943405, -0.09451212733...
I need to export an SQLite database from an Android phone to a computer. I know you can do it with the pull command and shell, but it seems that this is only possible on rooted phones (or that's what I read). Is this true or is there another way to pull the db files? At the moment I copy the whole database file to ...
[ 0.48493871092796326, 0.05474602058529854, 0.08365731686353683, 0.1816943734884262, 0.09455665200948715, -0.025867436081171036, 0.15065868198871613, -0.06857333332300186, -0.10838671028614044, -0.5725539922714233, 0.2835158109664917, 0.5839094519615173, -0.43320849537849426, 0.2042357325553...
JUST an SQLite database. Sure, SQLite is an option, but there are other options as well, such as in-memory and, as of iOS5, a whole slew of custom data stores. The biggest benefit with CoreData is persistence, obviously. But even if you are using an in-memory data store, you get the benefits of a very well structured o...
[ 0.1608138531446457, 0.1564084142446518, 0.0939224436879158, 0.48416945338249207, 0.13940802216529846, -0.12029244005680084, 0.11325358599424362, 0.3868991434574127, -0.3532316982746124, -0.5619561076164246, 0.0947219580411911, 0.574143648147583, -0.30837494134902954, 0.0054276785813272, ...
today you don't care too much about persistence, so you could use an in-memory data store. What happens if tomorrow, or in a month, or a year, you decide to add a feature that would really benefit from persistence? With CoreData, you simply change or add a persistent data store, and all of your methods to get informati...
[ 0.04700315743684769, 0.0019104041857644916, 0.1740035116672516, 0.44007259607315063, 0.15457189083099365, -0.1620170623064041, -0.025081316009163857, 0.024184681475162506, -0.5377679467201233, -0.8257398009300232, 0.21504050493240356, 0.6609454154968262, -0.2159898430109024, 0.232045143842...
of the most powerful things behind OOP. Granted, building the Data Model just for in-memory storage could be overkill for your app, depending on how involved the app is. But, just as a side note, you may want to consider what is faster: Requesting information from your web service every time you want to perform some ac...
[ 0.17319811880588531, -0.3120759129524231, 0.2410624623298645, 0.5236386060714722, 0.027831431478261948, -0.12021951377391815, 0.1228298470377922, 0.38901734352111816, -0.3822786211967468, -0.7998882532119751, 0.06326664984226227, 0.6705079078674316, -0.18125516176223755, 0.0952302739024162...
fetching, and undo-redo.
[ -0.2999858260154724, 0.260081946849823, 0.14741909503936768, 0.006558060646057129, -0.14834214746952057, 0.25933489203453064, -0.23448395729064941, -0.21259120106697083, -0.2664088010787964, -0.3960418701171875, -0.2492700070142746, 0.5799197554588318, -0.0871768370270729, -0.1534376442432...
I have created a drop down menu using JQuery but when I test it in Chrome, the third and lower level menus show a thick white line (across the centre of the list item) in addition to the border which should be added. This does not happen in other browsers. It only occurs when I apply the `border-top` parameter to the l...
[ 0.4171290993690491, -0.06638766825199127, 0.4210391938686371, -0.13442417979240417, -0.02371343970298767, -0.05406918004155159, 0.28351160883903503, 0.2394804060459137, -0.27419358491897583, -0.6876006126403809, 0.04373573511838913, 0.25026288628578186, -0.303958922624588, 0.08454189449548...
look: [JSfiddle](http://jsfiddle.net/sAuhsoj/2uGFC/6/) [Full screen](http://jsfiddle.net/sAuhsoj/2uGFC/6/embedded/result/) It seems that some kind of 'collision' is happening between ``` .nav ul ul li:first-child{ border-top:solid 1px white; ``` and ``` .nav ul li{ border-bottom:solid 1px #fff; ``` I c...
[ -0.45394718647003174, 0.12430023401975632, 0.9330229163169861, -0.12856414914131165, -0.2977809011936188, 0.22627635300159454, -0.005528497043997049, -0.0027272943407297134, -0.2601633369922638, -0.9328794479370117, -0.3495834767818451, 0.261442095041275, -0.22925961017608643, 0.3639998733...
I'm converting a code from C to Delphi, but I'm stuck on the last line of this code: ``` BOOL is_match = FALSE; unsigned int temp_val; unsigned int prev_val = 0; is_match = (temp_val == val); ``` I can only convert this much: ``` var is_match: boolean; temp_val: cardinal; prev_val: cardinal; begin is...
[ -0.010522576980292797, 0.13836219906806946, 0.47529324889183044, -0.19908548891544342, -0.10932557284832001, -0.003784241620451212, 0.533794105052948, -0.1322898119688034, -0.012089572846889496, -0.6559265851974487, -0.32019779086112976, 0.8906567692756653, -0.3217412531375885, -0.03871103...
it with `val`.
[ -0.3350028991699219, 0.1661769449710846, 0.1703491508960724, -0.10152357071638107, -0.6724087595939636, 0.22620448470115662, 0.016180915758013725, 0.2667323052883148, -0.10333368927240372, -0.08810694515705109, -0.3297368288040161, 0.43403786420822144, 0.059692252427339554, 0.2006587386131...
I'm wondering about a feature in Visual Studio. Personally it bugs me when I open a solution someone else has been working on and it's full of Controls with Ids like "label27" "textbox3" etc. One of the first things I do is either rename them or remove them if they are never referenced in code behind (as is usually th...
[ 0.5634929537773132, 0.2745001018047333, 0.04192733019590378, 0.11642873287200928, 0.0008019500528462231, -0.17202259600162506, 0.01885078102350235, 0.10497825592756271, -0.304962694644928, -0.45334482192993164, 0.35617730021476746, 0.38796454668045044, -0.08197744935750961, 0.2338587641716...
is to give them all sensible names, but if I come across a project full of those auto generated Ids, am I doing the author a favour by removing them to "clean up" the solution? I used to think so, but wouldn't the default for dragging and dropping or copying and pasting controls in be without an Id? I think there's no ...
[ 0.502767026424408, 0.3070034980773926, -0.029287736862897873, 0.2813936173915863, -0.13643690943717957, -0.2522461414337158, 0.4091137945652008, 0.1173022910952568, -0.29989904165267944, -0.30636176466941833, 0.0607726015150547, 0.329178124666214, -0.3862151503562927, 0.27403801679611206, ...
VS's default behavior, you can disable "auto id-ing" via settings: Tools -> Options -> (Show all settings) -> Text editor -> HTML -> Miscellaneous
[ 0.18834902346134186, -0.42414340376853943, 0.5027140378952026, 0.4460630416870117, -0.03185616061091423, -0.1768893450498581, 0.44497889280319214, -0.14331480860710144, -0.11587348580360413, -0.7423207759857178, -0.05832769349217415, 0.7553284764289856, -0.35976406931877136, -0.12737378478...
I'm trying to use a .NET Regex to validate the input format of a string. The string can be of the format ``` single digit 0-9 followed by single letter A-Z OR 07 OR 03 or AA followed by two letters A-Z ``` So 0AAA, 107ZF, 503GH, 0AAAA are all valid. The string with which I construct my Regex is as follows: ``` ...
[ 0.16974906623363495, 0.4005765914916992, 0.5611316561698914, -0.1403932124376297, -0.18682368099689484, 0.27344006299972534, 0.31430599093437195, -0.2946222722530365, 0.24935977160930634, -0.19601410627365112, -0.039860669523477554, 0.6179113984107971, -0.13223505020141602, 0.1458420306444...
the regex, and found that input strings of the form 103, 507, 6AA WOULD validate....... Any ideas why, when I then put the third term back into the Regex, the input strings such as 1AAGM do not match? Thanks Tom This is because your expression requires the strings with `03`, `07` and `AA` to end right there (`$` mat...
[ 0.038428738713264465, 0.2786717116832733, 0.6267711520195007, 0.09330456703901291, 0.14259347319602966, -0.0011594139505177736, 0.5140239000320435, -0.16074317693710327, -0.032779306173324585, -0.1597311794757843, -0.3638114333152771, 0.836334764957428, -0.49768805503845215, -0.13945762813...
The following code should display the `id` out of the JSON-object, which I got from a server. I cant find the mistake, could somebody help me? Thank you in advance! The JSON-object which is returned when `http://localhost:8387/nscalemc/rest/mon/resourcestatus.json` is called: ``` { "groupStatus": [ { ...
[ -0.19395840167999268, 0.18239997327327728, 0.393886536359787, 0.2500675618648529, 0.45521748065948486, -0.17721913754940033, 0.3464526832103729, -0.023593677207827568, -0.23752346634864807, -0.8865683674812317, -0.30740004777908325, 0.6195324063301086, 0.06437177956104279, -0.1256336122751...
"warningIds": [], "errorIds": [] }, { "id": "Application Layer-ApplicationLayer:nscalealinst2", "time": 1333431531046, "level": 0, "warningIds": [], "errorIds": []
[ -0.32299792766571045, 0.02999425120651722, 0.3812563419342041, -0.025770431384444237, 0.49522915482521057, -0.06342188268899918, 0.2881443202495575, -0.03502866253256798, -0.10470845550298691, -0.9288861751556396, -0.35027942061424255, 0.592070460319519, -0.23445208370685577, 0.06664741784...
}, { "id": "Application Layer-ApplicationLayer:nscalealinst1", "time": 1333431531046, "level": 1, "warningIds": [ "documentarea.locked" ],
[ -0.2515633702278137, -0.10333633422851562, 0.29526257514953613, 0.0036899743136018515, 0.7483195662498474, 0.0036502748262137175, 0.1223713606595993, 0.10700352489948273, -0.056480634957551956, -0.8147917985916138, -0.3482731282711029, 0.46016955375671387, -0.23889198899269104, 0.247659593...
"errorIds": [] }, { "id": "Storage Layer-StorageLayerInstance1", "time": 1331208543687, "level": 0, "warningIds": [], "errorIds": [] }
[ -0.23697398602962494, 0.03624080494046211, 0.23650257289409637, 0.20040792226791382, 0.5098823308944702, 0.02425781823694706, 0.03983832150697708, -0.10874851793050766, -0.11815846711397171, -0.7673013210296631, -0.2026519477367401, 0.5998972058296204, -0.021555250510573387, 0.278068006038...
] } ``` My HTML file `gadget.html`: ``` <html> <head> <title>Monitor</title> <link href="css/gadget.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js/jquery-1.7.2.js"></script> <script type="text/javascript" src="js/gadget.js"></script> </head> <body> <div id="conten...
[ -0.07049275189638138, 0.4647388160228729, 0.4444838762283325, -0.11809324473142624, -0.2410445213317871, 0.029304765164852142, 0.47900527715682983, -0.6305187344551086, -0.22885851562023163, -0.6357895731925964, -0.2736093997955322, 0.6745123267173767, -0.3436320424079895, 0.18078340590000...
found out, that the getJSON-call ends with status "401 unauthorized".. You should do ``` $('#content').append('<p>ID: ' + this.id+ '</p>'); ``` fiddle here <http://jsfiddle.net/JaxpC/> EDIT - of course you should use the ready handler to make sure thatthe dom is present (i don't think that's your case because t...
[ -0.07207102328538895, -0.19340263307094574, 0.6824948191642761, -0.10311052948236465, 0.32895293831825256, -0.2764807343482971, 0.528889536857605, -0.2866084575653076, -0.2244158685207367, -0.5365051627159119, -0.40654218196868896, 0.8582219481468201, -0.24851341545581818, 0.18323846161365...
}); }); }); ```
[ -0.16463500261306763, 0.19397331774234772, 0.4254131019115448, -0.551661491394043, 0.26649460196495056, -0.3684123158454895, 0.3181069791316986, -0.10071968287229538, 0.09610429406166077, -0.3741302788257599, -0.5190057754516602, 0.9632701873779297, -0.5645262002944946, 0.2957855761051178,...
I have an array built from the URL of a webpage. If an item in that array contains the `?` symbol (The question mark symbol) then I want to remove that item from the array. ``` $array = ['news', 'artical', '?mailchimp=1']; ``` How could I do this? I've seen many examples where the searched string is the whole value...
[ 0.19010871648788452, 0.09221076965332031, 0.29817208647727966, -0.20252524316310883, -0.07275046408176422, 0.15519429743289948, 0.3786284029483795, -0.38692572712898254, -0.23010210692882538, -0.5787438154220581, -0.12040331214666367, 0.1644638031721115, -0.5050740838050842, 0.308897852897...
I'm sending a reply to a request over a `chan X`, where `X` is a struct. The request is a search operation, so ideally I'd like to be able to return either an `X`, or report it wasn't found. This would be a task for a `Maybe X` in Haskell or an `x option` in OCaml. Is there any decent way to do this in Go? I'm not ret...
[ 0.137307807803154, -0.021462902426719666, 0.16346152126789093, -0.020141838118433952, -0.6111581921577454, -0.10134158283472061, 0.47266629338264465, 0.3886617422103882, 0.009858241304755211, -0.6276273727416992, -0.17712704837322235, 0.4948853552341461, -0.4086603820323944, 0.132266923785...
`nil`, but this is ugly and defeats type-safety. If you're using `interface {}` you're effectively returning a pointer now. Why not change `interface {}` to `*X` and make sure to return a copy of the object? If I understand your reasoning behind not using a `chan *X`, that is.
[ 0.13019216060638428, 0.2411961704492569, 0.050615619868040085, 0.10265012085437775, -0.3758107125759125, -0.131236732006073, 0.22963646054267883, 0.22240452468395233, 0.09162475913763046, -0.6395593881607056, 0.09312818199396133, 0.583810567855835, -0.26816409826278687, 0.31915155053138733...
I'm writing some java code that's supposed to parse csv files with different column types and values. A basic file looks something like this (CSV), without the header/column row. To make things simpler when processing the file, I want to be able to access each cell's index value using the column name. **I don't want to...
[ 0.0004475028545130044, 0.27669960260391235, 0.3402990996837616, -0.21669669449329376, -0.17122285068035126, 0.22291424870491028, 0.21184173226356506, -0.3813430666923523, -0.21545915305614471, -0.7078192830085754, -0.08628235012292862, 0.2419160008430481, -0.4136110544204712, 0.00284499186...
| val31 | val12 | val22 | val32 | ... | ... | ... | ``` I thought about using ArrayList of column names (in order), since enum doesn't convert back to integers as in C++. This way I could do something like: ``` ArrayList<String> columnNames = new ArrayList<String>(); columnNames.a...
[ -0.232839435338974, -0.12506447732448578, 0.6080895662307739, -0.4797516465187073, -0.08536634594202042, 0.3770374655723572, 0.3600533902645111, -0.5298746824264526, -0.23556232452392578, -0.5073042511940002, -0.18937863409519196, 0.4407199025154114, -0.43087801337242126, -0.25986295938491...
String[] row = line.trim().split(","); String col2 = row[ columnNames.indexOf("Column2") ]; ``` I'm fairly new to Java - is there a better / smarter way to do this? thanks. Your code works. however two points you may want to re-think, if you are looking for "better" way: 1. indexOf(object) method of List is not ...
[ -0.15689872205257416, 0.03413720801472664, 0.37254756689071655, -0.062404733151197433, -0.17976464331150055, 0.0440598800778389, 0.06720063090324402, -0.2879185378551483, -0.27126020193099976, -0.7462788224220276, 0.18067589402198792, 0.6294337511062622, -0.3479262590408325, -0.16105525195...
interfaces. 2. you should do some exception handling. what if one line in your file missing a (or more) column(s). Your current codes will throw OutOfbound exception. however I hope this was already done in your real codes.
[ 0.10354256629943848, -0.08382488042116165, 0.34537550806999207, 0.24434861540794373, -0.3362645208835602, -0.24194182455539703, 0.2306460738182068, 0.11976516246795654, -0.257035493850708, -0.9820414185523987, 0.3076263964176178, 0.49227991700172424, -0.4461110532283783, -0.101749613881111...
I have created a JAVA application. Sometimes, users do invalid operations on it or there are some exceptions that the application encounters when it outputs the errors. However, these outputs are not visible unless I run the application from command line using java -jar myapp.jar I wish to record all of these to a fi...
[ 0.403354287147522, 0.46458789706230164, 0.19527293741703033, -0.30058911442756653, -0.07043913751840591, 0.09035754948854446, 0.4316290020942688, -0.30542370676994324, -0.3464503288269043, -0.6048479676246643, 0.12898649275302887, 0.13714498281478882, -0.3945050537586212, 0.229784995317459...
can I record everything that is output to the System? Thanks Agreed with above, you should use a logging framework. I prefer to use abstractions such as SLF4J. In this example you can use log4j underneath. Here is an example log4j.properties file you can put in the classpath of your java application. ``` #Rootlogge...
[ 0.12953104078769684, -0.15470775961875916, 0.32900819182395935, 0.0282355435192585, -0.14181800186634064, 0.05382427200675011, 0.4877690076828003, -0.3911302089691162, -0.453716516494751, -0.7731502056121826, 0.08873573690652847, 0.5017942190170288, -0.44893375039100647, 0.0089640580117702...
create two log files with a rolling appender, printing all debug log output of any class that logs in the com.techtrip.mypackage to /tmp/mypackage.log. Suppose a simple example class with a Logger and a Formatter: ``` package com.techtrip.mypackage; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public cl...
[ 0.32047194242477417, -0.34050047397613525, 0.33977019786834717, -0.15107913315296173, 0.12772800028324127, 0.13344056904315948, 0.165897399187088, -0.3151360750198364, -0.1789955347776413, -0.8023380041122437, -0.2545114755630493, 0.7211303114891052, -0.6334607601165771, -0.009618405252695...
someString %s", someString)); } this.someString = someString; } } ``` This will log the setter output to the log file. Turn it off by simply changing the property file. Very simple.
[ 0.0272267647087574, -0.22610121965408325, 0.45043498277664185, -0.18886040151119232, 0.0661541000008583, -0.27169448137283325, 0.255915105342865, -0.18188662827014923, 0.0605945847928524, -0.27655425667762756, -0.2517511248588562, 0.7782872319221497, -0.4061533808708191, 0.2382034659385681...
*tl,dr:How can I rotate between two different pages in my DIV?* Hi, I am currently using the following code (Thank your internets!) to refresh PageThatGetsRefreshed.asp in a DIV on my page. All of this works famously. ``` <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js">...
[ 0.02115706540644169, 0.014205130748450756, 0.7651599049568176, -0.009002989158034325, -0.39043882489204407, 0.12558597326278687, 0.33403417468070984, 0.01096424087882042, -0.36414602398872375, -0.975074827671051, 0.009433792904019356, 0.624196469783783, -0.15313616394996643, 0.103528305888...
{ $('#container').load('PagethatGetsRefreshed.asp')}, 10000); </script> </head> <body> <div id="container"> <font size="4" face="arial" color="grey"> <i>Page </i></font> </div> </body> ``` **What I would like to do now is to rotate between two different pages in that DIV. IE,. page1.asp sh...
[ 0.319720983505249, -0.16093571484088898, 0.9414293169975281, -0.19457878172397614, -0.0005809888825751841, 0.11852999776601791, 0.4043016731739044, -0.017110373824834824, -0.24578364193439484, -0.7739407420158386, -0.051165442913770676, 0.3533775508403778, 0.04495060816407204, 0.2349758744...
global variable somewhere to indicate which page is currently loaded then use IF/Else to load the other page and change the variable but I cant get this to work, Grrrr. Also, can someone tell me does the script here continue to run so that the var auto\_refresh always remains active or is it lost and reinitiated each ...
[ -0.36581283807754517, -0.0278661847114563, 1.0336394309997559, 0.05256528779864311, -0.007465912029147148, 0.1471303105354309, 0.4283570349216461, 0.039739321917295456, -0.5551269054412842, -0.6283681988716125, -0.09483734518289566, 0.6387162804603577, -0.38524115085601807, -0.043665487319...
In Visio VBA (or COM API) How can i get a shape without expecting an exception when the shape name is not found? ... in my visio page, there might or might not be a Rectangle Shape with the name "DraftText". i want to check that it is there and if yes, do smth. my code seems like: ``` Shape waterMarkRect = page.Sh...
[ 0.12038601189851761, -0.1263071745634079, 1.0075759887695312, -0.25273460149765015, -0.13977307081222534, 0.05190083384513855, 0.21605412662029266, -0.6626406311988831, 0.03420988470315933, -1.0060497522354126, 0.012093019671738148, 0.26735419034957886, 0.015752360224723816, 0.193810284137...
shape "DraftText" is not there, i get a COM Exception. as i am against using try catch block as a coding utility, i am searching for a way to check for the shape existance prior to taking it such as IDictionary.TryGetValue(, out); or if(page.Shapes.Contain("DraftText"))... Any Ideas? Using try catch block ``` Shap...
[ 0.20234735310077667, -0.1335838884115219, 0.5563033223152161, -0.26523926854133606, 0.07375916093587875, 0.025877725332975388, 0.2425927370786667, -0.5748000144958496, 0.09350531548261642, -1.0151110887527466, -0.1537948101758957, 0.026647085323929787, -0.10566505789756775, 0.2683349549770...
I have an embedded glassfish server and a small web app. I want to add login-authentification thingy to it. Problem: all tutorials i've found so far tell to go glassfish admin console on 4848 port and config jdbc realm there. Is it's possible to do this using xml files like *web.xml*, *glassfish-resources.xml* and prov...
[ 0.2653608024120331, 0.5816767811775208, 0.2044242024421692, -0.07473457604646683, -0.15858042240142822, 0.16439330577850342, 0.515214741230011, -0.304168701171875, -0.11967599391937256, -0.7946774363517761, 0.00867223646491766, 0.8380219340324402, 0.08422759175300598, -0.08641858398914337,...
standard Security concepts, it's not wise to make your web application aware of realms and other features that should be managed by the container. In theory there is a way for reaching your goal, but it's very complex and at the end of the day it's not even fully container-agnostic. This way consists in developing you...
[ 0.34480246901512146, 0.20058231055736542, 0.17489512264728546, 0.08190886676311493, 0.14998982846736908, -0.5992342233657837, 0.3457125127315521, -0.3764834702014923, -0.11326588690280914, -0.34968602657318115, -0.2765965759754181, 0.5598106980323792, -0.007990152575075626, -0.140275552868...
in terms of User Groups, called > Roles, and in terms of security privileges mapping definitions, called > Realms. Application level security is constituted from User Groups and > Realms. > > > At the application level, security permissions also list the > various application components that are accessible by ea...
[ -0.021709652617573738, 0.12110961228609085, 0.3728998601436615, 0.3500053286552429, 0.4035436809062958, -0.08684195578098297, 0.20692411065101624, -0.328837513923645, -0.2535722553730011, -0.6146888732910156, -0.5938391089439392, 0.2911421060562134, -0.0841088518500328, 0.01720952242612838...
Given doubles can't be used in volatile fields, is this a safe alternative? Or could it lead to a null pointer exception. ``` public sealed class DoubleStorage { public readonly double Value; public DoubleStorage(double value) { this.Value = value; } public static readonly DoubleStorage Z...
[ 0.5154201984405518, -0.1239929050207138, 0.2903233766555786, -0.1511390656232834, 0.2124418020248413, -0.18504689633846283, 0.3755055069923401, -0.34472596645355225, -0.1400582641363144, -0.172968327999115, -0.4427603781223297, 0.968108057975769, -0.5912545919418335, 0.1841457039117813, ...
{ //is this assignment attomic? boostResult = new DoubleStorage(value); } get { //or could this give null pointer exception? return boostResult.Value; }
[ -0.14631856977939606, -0.3609570860862732, 0.12923872470855713, -0.09605760127305984, -0.07825754582881927, 0.0494382418692112, 0.45410266518592834, -0.2538391053676605, -0.0584837831556797, 0.008624809794127941, -0.2473347932100296, 0.7122754454612732, -0.46005308628082275, -0.24500708281...
} } ``` Yes, accessing references is atomic. However, you can just box the double, you don't have to create a class to encapsulate it: ``` public sealed class Val { private volatile object boostResult = 0.0; public double ThreadSafeDouble { set { boostResult = value; } get { return ...
[ 0.3047451674938202, 0.05262239649891853, 0.2311762273311615, -0.025183310732245445, 0.22975310683250427, -0.04904721677303314, 0.29316970705986023, -0.24526579678058624, -0.147048220038414, -0.09651273488998413, -0.25439900159835815, 0.6581148505210876, -0.5508036017417908, 0.1291471421718...
assignment is atomic, it's thread safe. When unboxing the double, reading the reference from the variable is atomic, so it's thread safe eventhough reading the double isn't atomic. As the boxed double is immutable, a specific boxed value will never change. --- Or what about a generic version: ``` public sealed clas...
[ 0.24515272676944733, -0.33617350459098816, 0.26570868492126465, 0.12146427482366562, 0.025525938719511032, -0.35603031516075134, 0.2792166471481323, -0.29521510004997253, -0.20701299607753754, -0.23778028786182404, -0.349174439907074, 0.6660513281822205, -0.5230027437210083, 0.227563127875...
} set { _value = value; } } } ```
[ -0.06691429018974304, 0.24587003886699677, 0.08039397746324539, -0.24638158082962036, 0.29170703887939453, -0.3593725264072418, 0.21155618131160736, -0.04460548609495163, 0.14837372303009033, -0.35338571667671204, -0.26085489988327026, 0.8914204835891724, -0.5622999668121338, 0.18308359384...
Hi Could anyone suggest me efficient of way of getting no of records in a .dat file. Currently for validating record count i am iterating through the entire file . And then once again i'm iterating the entire file for processing records one by one. So I have to iterate through the entire file twice( for validating the ...
[ 0.5744141340255737, 0.06378861516714096, 0.15157905220985413, 0.09717153757810593, -0.42628470063209534, -0.06603654474020004, 0.2207624763250351, -0.14222027361392975, -0.6529377698898315, -0.4096924364566803, 0.4373292326927185, 0.5217605233192444, -0.013885273598134518, 0.52756989002227...
encapsulate it: ``` public sealed class Val { private volatile object boostResult = 0.0; public double ThreadSafeDouble { set { boostResult = value; } get { return (double)boostResult; } } } ``` Assigning a double to the variable will create an object that boxes the double, th...
[ 0.1647600680589676, -0.03580150753259659, 0.36540287733078003, -0.06720087677240372, 0.246454119682312, -0.06963521987199783, 0.2528765797615051, -0.26291996240615845, -0.13971421122550964, -0.039484020322561264, -0.2594734728336334, 0.5502147674560547, -0.5180622339248657, 0.1384260058403...