text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
``` (?:) ``` It is a valid ruby regular expression, could anyone tell me what it means? Thanks It will not capture the part of the matching string in a [backreference](http://www.regular-expressions.info/brackets.html#usebackrefinregex) (i.e \1).
[ 0.3751729726791382, -0.06441085785627365, 0.508057713508606, 0.04094140976667404, -0.11011914908885956, -0.35589125752449036, 0.5503367185592651, -0.008682732470333576, 0.07599032670259476, -0.1273842751979828, -0.2683001458644867, 0.4137756824493408, -0.39733657240867615, -0.1296619623899...
I'm trying to learn some Lisp (Common Lisp) lately, and I wonder if there is a way to give constant numbers a name just like you can do in C via enums. I don't need the full featureset of enums. In the end I just want to have fast *and* readable code. I've tried globals and little functions, but that always came wit...
[ 0.06560854613780975, 0.18356554210186005, 0.11031313240528107, 0.019083665683865547, -0.29933279752731323, 0.05213005095720291, 0.4514572322368622, 0.2680969536304474, -0.37660646438598633, -0.5339131355285645, 0.13507765531539917, 0.3499343991279602, -0.3998429775238037, -0.07110333442687...
so they are as fast as integers and as readable as enumerated constants in other languages. So where in C you might write: ``` enum { apple, orange, banana, }; ``` In Lisp you can just use `'apple`, `'orange` and `'banana` directly. If you need an enumerated *type*, then you can define one with [`deftype...
[ -0.04828266799449921, 0.15053623914718628, 0.12371142953634262, -0.3176679313182831, -0.04926973581314087, 0.21034181118011475, -0.05307365581393242, -0.07922004908323288, -0.1729583591222763, -0.7027735114097595, -0.2770495116710663, 0.7326067686080933, -0.40680134296417236, -0.2443005293...
I want to print the output of a program in MS-DOS so I wrote a .bat file that says: ``` cls ruby foo.rb ``` But the output - as it appears on my command prompt - looks like this: ``` c:\workspace>ruby foo.rb foo output c:\workspace> ``` I wanted to insert a newline into the output using MS-DOS because I don't wan...
[ 0.48850807547569275, 0.36777082085609436, 0.3357621729373932, -0.41704416275024414, -0.24822071194648743, 0.1697721779346466, 0.23782840371131897, -0.10836178809404373, -0.04564938321709633, -0.5541975498199463, 0.09710245579481125, 0.5016173720359802, -0.6851854920387268, 0.06712786853313...
using the 'type' command but it looks messy. Any ideas would be appreciated. `echo.` will produce a new line. So your script should look something like this: ``` @ECHO OFF cls echo. ruby foo.rb ```
[ 0.644705593585968, 0.2938259243965149, 0.23117633163928986, -0.37841641902923584, 0.13084514439105988, -0.03982146829366684, 0.5554981827735901, -0.19870008528232574, -0.033033061772584915, -0.3779321014881134, 0.13343210518360138, 0.2996520400047302, -0.5480623841285706, 0.007247829809784...
I recently installed a secure certificate for a web site I help maintain. When I'm at work and on the network where the webs server is I can navigate to secure pages (https) fine. When I try to access the same pages from outside the network (like from home) I get an error. Here is an example page from my web site: <htt...
[ 0.4819523096084595, 0.2602665424346924, 0.5284506678581238, -0.053616974502801895, 0.1816066950559616, -0.13082271814346313, 0.49519750475883484, -0.03929825872182846, -0.5612310767173767, -0.6086474657058716, 0.3119000792503357, 0.4309868812561035, -0.06191029027104378, 0.1528521180152893...
Thank you! Verisign's [OCSP](http://en.wikipedia.org/wiki/Ocsp) responder says that your certificate has been revoked. It's likely that some environments you are using for testing don't have OCSP enabled. You can test this by disabling OCSP checks in a browser that currently fails. It should start working after that. ...
[ 0.012604889459908009, 0.2845691442489624, 0.6165097951889038, 0.13541194796562195, 0.2143450677394867, -0.1957576423883438, 0.4063281714916229, 0.15386518836021423, -0.32555902004241943, -0.24362586438655853, -0.24196572601795197, 0.12091155350208282, -0.2697700560092926, 0.109082043170928...
can't see the "reason" code being given, but judging from the info there, a replacement was requested on February 10 by the certificate owner. Make sure that you correctly installed the *new* certificate. You can see this status information through Verisign's certificate [repository tool](https://securitycenter.verisi...
[ 0.5961887836456299, -0.13094431161880493, 0.5852453708648682, 0.1964706927537918, 0.2534787058830261, -0.27303430438041687, 0.13668540120124817, 0.24686844646930695, -0.5372300744056702, -0.21904022991657257, -0.25320667028427124, 0.12262746691703796, -0.19536952674388885, 0.49996539950370...
I am trying to build a virtual machine that clones one of the servers used in production instances of our webapp so that we can do deployment testing on it. I have gotten all the necessary files over, IIS installed, the database up and running. To my eye all that remains is to copy all the IIS settings from a producti...
[ 0.4934089779853821, 0.26823878288269043, 0.21882475912570953, 0.08546531945466995, 0.3358151614665985, 0.12624698877334595, 0.26417630910873413, 0.1454882174730301, 0.10814525932073593, -0.8967665433883667, 0.11314430087804794, 0.6542525887489319, -0.21174760162830353, 0.36168935894966125,...
to do this the target machine tells me the metabase file has "invalid signature". Googling around for a while I find the the recommendation for this is to use iiscnfg.vbs /export however, the msdn page on [this](http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/73f66ff1-be38-4850-8965-739004ac...
[ -0.24601231515407562, 0.44191867113113403, 0.4263424277305603, 0.1532389521598816, 0.17515233159065247, -0.34887513518333435, 0.21852336823940277, 0.13978064060211182, -0.2585882246494293, -0.45028239488601685, -0.472811222076416, 0.5676559209823608, -0.3419516980648041, 0.4195963740348816...
looks good, except that on the target computer it would seem that nothing has changed. What gives? Is there another way to do this? You can use the [Web Deployment Tool](http://learn.iis.net/page.aspx/445/synchronize-iis-60/) to sync websites between a local and remote IIS server. (It also works to go to IIS 7 from IIS...
[ 0.24429839849472046, -0.07093178480863571, 0.6154257655143738, 0.07581446319818497, 0.32958754897117615, -0.25580647587776184, 0.3190559446811676, 0.19436106085777283, -0.24228107929229736, -0.9356077909469604, 0.03358089178800583, 0.42827093601226807, 0.14141853153705597, -0.0293506141752...
If I have three tabs: ``` <div id="tabs"> <ul> <li><a href="#sample-tab-1"><span>One</span></a></li> <li><a href="#sample-tab-2"><span>Two</span></a></li> <li><a href="#sample-tab-3"><span>Three</span></a></li> </ul> </div> ``` I would like to swap to #sample-tab-2 by it's name. I kno...
[ 0.10475924611091614, 0.10800787806510925, 0.4345698058605194, -0.35278353095054626, -0.38135814666748047, 0.15709419548511505, -0.13973979651927948, -0.680379331111908, -0.052007656544446945, -0.6472491025924683, 0.059727542102336884, 0.5595438480377197, -0.3032592236995697, -0.17896999418...
index = $('#tabs a[href="#simple-tab-2"]').parent().index(); $('#tabs').tabs('select', index); ```
[ -0.053209785372018814, 0.12250661104917526, 0.3488888144493103, -0.06229117512702942, 0.19323594868183136, 0.04659584164619446, 0.026834603399038315, 0.01966313272714615, 0.07845789939165115, -0.5846815705299377, -0.49922892451286316, 0.5020980834960938, -0.4154375493526459, 0.390675842761...
I have been getting an error message that I can't resolve. It originates from Visual Studio or the debugger. I'm not sure whether the ultimate error condition is in VS, the debugger, my program, or the database. This is a Windows app. Not a web app. First message from VS is a popup box saying: "No symbols are loaded...
[ 0.46547189354896545, 0.21250374615192413, 0.1917378306388855, 0.019568586722016335, 0.00504245376214385, 0.11218288540840149, 0.47610610723495483, -0.019971735775470734, -0.04281574487686157, -0.6848204731941223, -0.03591441735625267, 0.5024754405021667, -0.28890687227249146, 0.10405754297...
key (HIC #) value from the table as a parameter for a SqlCommand. The command is used to create a SqlDataReader which returns one line. Data are compared. If an error is detected a row is added to a second DataTable. The error seems to be related to how long the procedure takes to run (i.e. after 60 sec), not how many...
[ 0.01935415342450142, -0.01885819621384144, 0.4924124777317047, 0.035584039986133575, -0.05162057653069496, -0.07632463425397873, 0.4361991286277771, -0.4217487573623657, 0.003551045898348093, -0.33805787563323975, -0.061451446264982224, 0.5348304510116577, -0.4378988742828369, 0.3085294961...
a SqlServer site on the same laptop. There are no fancy gizmos or gadgets on the Form. I am not aware of anything in this proc which is greatly different from what I've done dozens of times before. I have seen the error before, but never on a consistent basis. Any ideas, anyone? **Full error Text:** The CLR has bee...
[ 0.11000996083021164, 0.2645387351512909, 0.621397852897644, -0.0169190876185894, 0.2916914224624634, -0.1559818834066391, 0.5015130043029785, 0.23188112676143646, -0.19910497963428497, -0.43510937690734863, -0.22489425539970398, 0.4872084856033325, -0.00926669780164957, 0.07489726692438126...
a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long ...
[ 0.2929125130176544, -0.08387234061956406, 0.30516156554222107, 0.049977682530879974, 0.03651208430528641, -0.1876920461654663, 0.6285373568534851, -0.1897628903388977, -0.43970414996147156, -0.6788412928581238, -0.25302654504776, 0.4773201644420624, -0.28265559673309326, -0.018480429425835...
to process. In some cases you may validly have a long-running operation. It's also helpful if you are debugging and have stopped on a line while this is processing - you don't want it to complain before you've had a chance to dig into an issue.
[ 0.37858444452285767, 0.06733237206935883, -0.06736502796411514, 0.0656728520989418, 0.06634213030338287, 0.13700401782989502, 0.2730165421962738, -0.015629099681973457, -0.4369044899940491, -0.1945365071296692, -0.10999343544244766, 0.39523521065711975, 0.08837176859378815, 0.2107551842927...
I have a RESTful web application that supports multiple sort fields on a collection of items. Is there a common convention for encoding these sort fields into the query string of a URL? I'm considering a pattern like the following: ``` http://myapp.com/books?sort=author:asc,datepublished:desc&count=12 ``` This wou...
[ 0.37146955728530884, 0.24836523830890656, 0.42283788323402405, 0.12021982669830322, -0.07253191620111465, -0.31362369656562805, -0.01386953517794609, -0.1298152208328247, -0.3590964376926422, -0.4985610246658325, -0.05359381437301636, 0.09478099644184113, -0.22016960382461548, 0.0650846883...
other frameworks that have established ways for dealing with this issue? I'd rather use a familiar format than roll my own. I'd also prefer a format that uses as little URL percent-encoding as possible. I've done this before using the standard SQL sorting syntax. There are numerous parsing functions and techniques out...
[ 0.4804588854312897, 0.3484780490398407, 0.06992396712303162, 0.09296105057001114, -0.06589187681674957, -0.09477413445711136, -0.1780746877193451, -0.2027921825647354, -0.15779294073581696, -0.6236337423324585, -0.21056993305683136, 0.42710572481155396, -0.2377951294183731, -0.162849843502...
I'm having a problem sending java.util.Date objects over RMI, to and from machines in different timezones. For example, a client in Germany will send a date object to a server in the UK. 1. User enters a date string e.g. 20090220. 2. Client app in Germany converts it to date using SimpleDateFormat("yyyyMMdd") to giv...
[ 0.2489066869020462, 0.02853560447692871, 1.0813016891479492, -0.1480572521686554, -0.18558746576309204, 0.08295289427042007, 0.4083261489868164, -0.06700122356414795, -0.13491466641426086, -0.3617847263813019, 0.02166021056473255, 0.08280421048402786, -0.03993431106209755, 0.21481508016586...
and have the Server convert it to a Date, but I want to reduce the amount of work that the Server has to do. Here is a stand-alone test program showing date serialisation: ``` import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.FileInputStream; import java.io.FileOutputStream; impo...
[ 0.007160066626966, -0.1744648963212967, 0.6025048494338989, -0.29784178733825684, 0.11583728343248367, 0.25786036252975464, 0.2944842576980591, -0.19218964874744415, -0.22721676528453827, -0.5545485615730286, -0.21906974911689758, 0.19452692568302155, -0.36100825667381287, 0.40654504299163...
System.out.println("Usage SerializationTest S|D"); } boolean serialise = false; if (args[0].equals("S")) { serialise = true; } else if (args[0].equals("D")) { serialise = false; } String filename =
[ -0.24198785424232483, -0.4415820240974426, 0.422043114900589, -0.07339195907115936, 0.19384914636611938, 0.2344883680343628, 0.27442702651023865, -0.247227743268013, -0.25720080733299255, -0.660702645778656, -0.15727859735488892, 0.48165085911750793, -0.2992241084575653, 0.3342260420322418...
"date.ser"; if (serialise) { // write the object to file FileOutputStream fos = new FileOutputStream(filename); BufferedOutputStream bos = new BufferedOutputStream(fos); ObjectOutputStream outputStream = new ObjectOutputStream(bos); outputStream.writeO...
[ -0.08664549142122269, -0.39664414525032043, 0.6924131512641907, -0.4321519434452057, 0.26851075887680054, 0.2797166705131531, 0.12039584666490555, -0.21807841956615448, -0.25418195128440857, -0.5565894842147827, -0.2020355761051178, 0.25581344962120056, -0.15695461630821228, 0.283743649721...
outputStream.close(); System.out.println("Serialised: " + date); } else { FileInputStream fis = new FileInputStream(filename); BufferedInputStream bis = new BufferedInputStream(fis); ObjectInputStream inputStream = new ObjectInputStream(bis);
[ -0.19302454590797424, -0.6368934512138367, 0.7837837338447571, -0.08482286334037781, -0.03169301152229309, 0.08341996371746063, 0.1392054557800293, -0.2653372585773468, -0.2461681365966797, -0.7003515362739563, -0.27689096331596375, 0.25725114345550537, -0.3387620449066162, 0.1923448592424...
Date outDate = (Date) inputStream.readObject(); inputStream.close(); // print the object System.out.println(outDate); } } } ``` I fail to see what your problem is here, those dates look correct to me- they're just being formatted to the locale in use. If you want the da...
[ 0.3518923819065094, -0.008215753361582756, 0.49578335881233215, -0.30759716033935547, 0.27592381834983826, -0.148130401968956, 0.03662339970469475, 0.3267425298690796, -0.23665131628513336, -0.5544285774230957, -0.35979893803596497, 0.17671895027160645, -0.3974013924598694, 0.2866849303245...
SimpleDateFormat constructor
[ -0.032176997512578964, 0.08656533807516098, 0.30508050322532654, 0.04267448931932449, -0.1597493290901184, 0.15258526802062988, -0.10403276234865189, -0.6168197393417358, -0.12340810894966125, -0.12376704066991806, -0.16282950341701508, 0.47638699412345886, -0.3644063472747803, -0.16606904...
I am redirecting the g++ compiler output(both stderr and stdout) to a file on linux. But it is creating an empty file. I read in some other post that stdout is not flushed after every line. Thats ok, but what about stderr. In my case there are compilation errors running several screens. So, I am interested in stderr o...
[ -0.10904639214277267, 0.3406078517436981, 0.15617699921131134, -0.23276890814304352, -0.4645922780036926, 0.21830086410045624, 0.4595149755477905, -0.07169633358716965, -0.15724733471870422, -0.700375497341156, -0.10039011389017105, 0.47286152839660645, -0.653298556804657, 0.08306507766246...
null command. ``` One of your comments betrays that you are not using bash. You're using csh or tcsh. In that case, you can redirect all output (including standard error) like this: ``` g++ -c Algorithms.cpp >& output ``` For more csh redirection syntax, I have [a useful link](http://tomecat.com/jeffy/tttt/cshredi...
[ -0.0544649101793766, 0.06947064399719238, 0.008458764292299747, -0.11205095797777176, -0.2522410452365875, -0.10697881132364273, 0.4106450080871582, -0.006452359724789858, -0.40447714924812317, -0.6568750143051147, -0.2057519555091858, 0.5908087491989136, -0.5296955704689026, 0.08435241878...
I want to disallow entering a new-line character in my NSTextField, which by default is possible by typing Option-Enter (or Option-Return). While I found [some](http://developer.apple.com/qa/qa2006/qa1454.html) [pages](http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/TextEditing/Tasks/FieldEditor.html) explai...
[ -0.18605871498584747, -0.1652837097644806, 0.2657720446586609, -0.19626902043819427, -0.04929254576563835, 0.029240844771265984, 0.5211696028709412, -0.1186382994055748, -0.24168628454208374, -0.5267083048820496, -0.36982986330986023, 0.41515129804611206, -0.32851478457450867, 0.1134031116...
errorDescription:(NSString **)error { // the user may have: // -- deleted the left most character // -- deleted the last character and we have an empty string // both cases are valid if (proposedSelRangePtr->location == 0) return YES; unichar theChar = [*partialStringPtr characterAtInde...
[ -0.3741277754306793, -0.01766941137611866, 0.4015541970729828, -0.25956544280052185, 0.19200961291790009, 0.20641092956066132, 0.4728836417198181, -0.15901292860507965, 0.0567401684820652, -0.45926931500434875, -0.38879361748695374, 0.280945360660553, 0.02283865585923195, 0.271445482969284...
NSBeep(); return NO; } return YES; } ```
[ -0.06066935881972313, -0.15254934132099152, 0.1672603040933609, -0.26367461681365967, 0.08560781925916672, -0.1189122125506401, 0.4007658362388611, 0.30372536182403564, -0.2388080507516861, -0.5373339653015137, -0.4090977609157562, 0.5799529552459717, -0.3673117756843567, 0.332265168428421...
I have a MXML with a form, and inside it, two TextInputs. I hate having any piece of code inside the MXML file (I come from a JavaScript formation) so I use a ``` mx:Script source="external.as" ``` tag to include any code used in any MXML file. The problem is that if I have this code on the `external.as` file: ``...
[ 0.672767162322998, -0.16576741635799408, 1.005791187286377, -0.07806001603603363, -0.07008956372737885, 0.3553459942340851, -0.16574615240097046, -0.1272866129875183, -0.11311038583517075, -0.5788241028785706, -0.04138783738017082, 0.9066036343574524, -0.29901009798049927, 0.43096023797988...
try to complile I get a **1120: Access to undefined property XXXXX** I have tried adding this lines prior to the function: ``` public var marketInput:TextInput; public var segmentInput:TextInput; public var priceLowInput:TextInput; public var priceHighInput:TextInput; ``` But instead I get a **1151:A conflict exist...
[ 0.24758052825927734, -0.14775393903255463, 0.43793728947639465, 0.012883014045655727, -0.23235858976840973, 0.23835492134094238, -0.034681349992752075, -0.2410234808921814, 0.039099808782339096, -0.6029214262962341, 0.10785183310508728, 0.9417409300804138, -0.16000774502754211, 0.033542376...
you get used to the idea of embedding code in mxml. Use script tags avoiding inline code as much as possible. If you have to write a lot of code within MXML, perhaps you may want to re-factor the code into multiple custom components. Bonus points if they are reusable.
[ 0.674759030342102, -0.13081270456314087, 0.18874132633209229, 0.3948080539703369, -0.1337253451347351, -0.3104577660560608, 0.1463969200849533, 0.04447467252612114, -0.3002288043498993, -0.6491072177886963, 0.09020502865314484, 0.477881520986557, -0.3546724021434784, -0.014790891669690609,...
Using GNU make, is it possible to create a set of targets that will never be scheduled at the same time when using the "--jobs" option? ### Background: To make this a little more concrete, consider a makefile of the form ``` p1: ...deps... # no parallelization conflicts (can run at the same time as p*, e*) ....
[ 0.5258181095123291, -0.3306245505809784, 0.12830750644207, 0.09777945280075073, -0.04330355301499367, -0.10607077926397324, 0.07141844183206558, -0.1304888129234314, -0.23269206285476685, -0.759148895740509, -0.10761426389217377, 0.6263462901115417, -0.862060010433197, -0.15217803418636322...
...rules... e1: ...deps... # cannot run at same time as any other e* ...rules... e2: ...deps... # cannot run at same time as any other e* ...rules... e3: ...deps... # cannot run at same time as any other e* ...rules... ``` The main thing I need to do is make sure that e1, e2, and e3 never a...
[ 0.23735220730304718, 0.1668708324432373, 0.20665667951107025, 0.2396305799484253, 0.08621327579021454, -0.17084071040153503, 0.45424485206604004, -0.35429081320762634, -0.25646841526031494, -0.7214629650115967, -0.41431286931037903, 0.41857990622520447, -0.44126853346824646, 0.016131090000...
ones of them are executing at the same time. p1, p2, and p3 can be executed in parallel with anything, including any e\* job. Note that the actual makefile has a few thousand targets with a dependency tree that's about 10 levels deep, so I'm hoping there's a way to do this that (a) doesn't require running make seriall...
[ 0.7946761846542358, -0.34346190094947815, 0.10013306885957718, -0.005189317278563976, 0.08073453605175018, 0.13849863409996033, 0.2655598819255829, -0.47426837682724, -0.25738874077796936, -0.5501106977462769, 0.05508584529161453, 0.36039090156555176, -0.5071601271629333, -0.22283899784088...
my_cmd foo bar ``` You can have ``` e2: deps flock .embedded-device-lock -c my_cmd foo bar ``` What happens then is that all the "e" targets get started by make in parallel (possibly), but the actual commands will be executed serially.
[ 0.26874399185180664, 0.2751493453979492, 0.6387307047843933, -0.25038591027259827, 0.18536131083965302, -0.1751236766576767, 0.10267143696546555, 0.06987366825342178, -0.047322358936071396, -0.4737953841686249, -0.33056217432022095, 0.6684167981147766, -0.39163005352020264, 0.0281453784555...
Using Castle Windsor, I have a component configured with the transient lifestyle: ``` <component id="publish.mapping.default" service="IMyService, MyAssembly" type="MyServiceImplementation, Myassembly" lifestyle="transient" /> ``` Which will be used like this...
[ -0.180497944355011, 0.13369441032409668, 0.3854532241821289, -0.1184120699763298, 0.2572992742061615, 0.07354940474033356, 0.3339429199695587, -0.369233101606369, -0.1750449240207672, -0.38319921493530273, 0.03966416418552399, 0.6284205317497253, -0.22901099920272827, 0.2976680397987366, ...
collected after it goes out of scope, or will Castle Windsor hold on to a reference ? I found [this similar question](https://stackoverflow.com/questions/132940/why-does-castle-windsor-hold-onto-transient-objects), that implies that the latter might be the case - but after examining the links posted there, I am unsure ...
[ 0.062208693474531174, 0.01643160730600357, 0.6425280570983887, 0.25019487738609314, 0.3510114550590515, -0.09959340840578079, -0.13884742558002472, -0.220658540725708, -0.8001927137374878, -0.06721261143684387, -0.3723614513874054, 0.5598419904708862, -0.13719478249549866, 0.09273079782724...
release tracking policy. Can this be configured in the xml config file, or does it need to be set in code ? Can the release tracking policy be set on a per-component basis ? By default, the container holds a reference to your objects (even the transient ones). However, as @Bittercoder notes in [Why does Castle Windsor...
[ 0.010624866932630539, -0.02620258368551731, 0.733654797077179, -0.060996364802122116, 0.23526152968406677, -0.24522218108177185, 0.06201031059026718, -0.016107602044939995, -0.5612019896507263, 0.12296508997678757, -0.4273339509963989, 0.7064759731292725, -0.3252969980239868, 0.17191661894...
Consider the following snippet: ``` struct Foo { static const T value = 123; //Where T is some POD-type }; const T Foo::value; //Is this required? ``` In this case, does the standard require us to explicitly declare **value** in a translation unit? It seems I have conflicting information; boost and things like ...
[ 0.5670745372772217, 0.09144437313079834, 0.11279964447021484, -0.13423429429531097, 0.11575180292129517, -0.4568844735622406, -0.022948872298002243, -0.14826056361198425, -0.18619318306446075, -0.15213897824287415, -0.3079366981983185, 0.7354549169540405, -0.16317442059516907, -0.140959426...
a declaration? I'd appreciate your comments as to what the "right way" is. You have to provide a *definition* in a translation unit too, in case you *use* the value variable. That means, if for example you read its value. The important thing is that the compiler is not required to give a warning or error if you viol...
[ 0.6548135280609131, -0.08624443411827087, 0.06696141511201859, -0.07028461992740631, -0.3738708198070526, -0.34614983201026917, 0.3874684274196625, 0.002695576287806034, -0.2930556535720825, -0.35013920068740845, -0.22815954685211182, 0.7307652831077576, -0.3071117401123047, 0.240618824958...
in the class means that still no definition is required then. See the definition of `use` in section `3.2 One Definition Rule` of the Standard and requirement for a definition for static data-members in `9.4.2, paragraph 4 and 5` (in the C++98 Standard. Appears in paragraph 3 and 4 in the n2800 draft of the next Stan...
[ 0.03618428856134415, -0.15593321621418, 0.28542304039001465, -0.00429868558421731, 0.05853831768035889, -0.41912445425987244, 0.4103066921234131, -0.2990070879459381, -0.16102543473243713, -0.31009361147880554, -0.43215301632881165, 0.5678446292877197, -0.2934856712818146, 0.21500279009342...
evaluated unless it appears where an integral constant expression is required (see 5.19), is the operand of the sizeof operator (5.3.3), or is the operand of the typeid operator and the expression does not designate an lvalue of polymorphic class type (5.2.8)... Note that even then, many uses are in cases where an int...
[ 0.04275524988770485, 0.018754219636321068, 0.3069426119327545, -0.15985919535160065, 0.1419520378112793, -0.26330694556236267, 0.15214787423610687, -0.5754281282424927, 0.1293758600950241, -0.27616026997566223, -0.12583786249160767, 0.6413488984107971, -0.2696560025215149, -0.1561076194047...
of the static member is not needed, because the next Standard has a different, better wording of 3.2. This is however quite theoretical stuff, since most (all?) compiler don't moan anyway. Thanks for the guy in the comment section for telling me.
[ 0.4263823330402374, -0.026691511273384094, -0.08249620348215103, 0.18002083897590637, -0.3855874240398407, -0.2928001880645752, 0.4866313636302948, 0.15666766464710236, -0.18300428986549377, -0.10639249533414841, -0.2041918933391571, 0.503401517868042, -0.38668325543403625, 0.1557380557060...
I have a search that is very slowly done by finding the primary records then looping in a thread to sum related transactions. I'm trying to make it work in a single statement, have come close but still have records which are alternating debit and credits. **I can't work out how to pull the debit and credit rows up int...
[ 0.3471868634223938, 0.10713915526866913, 0.3853748142719269, -0.18402160704135895, -0.14376261830329895, 0.2775750756263733, 0.02268933318555355, -0.26409387588500977, -0.254299521446228, -0.6090229749679565, 0.0507621169090271, 0.5645442008972168, -0.03554317355155945, 0.5231955051422119,...
r ON j.strJobKey = r.strJobKey INNER JOIN tblcustomers AS c ON j.intCustomerID = c.intCustomerID WHERE c.strCustomerName = 'Acme Runners Inc' GROUP BY j.strJobKey, c.strCustName, strTransType ORDER BY dtmInvoicedOn, strJobKey; ``` produces output like this, with nearly alternating debit and cred...
[ -0.9701529741287231, 0.07503896206617355, 0.5198053121566772, 0.05217751860618591, -0.05234554782509804, 0.5405401587486267, -0.021644633263349533, -0.5036002397537231, -0.14617310464382172, -0.15069732069969177, -0.20001722872257233, 0.8227012157440186, 0.12634526193141937, 0.091362945735...
| -5531.52 | | 2008-07-11 | 270880-1 | Acme Runners Inc | debit | 5058.54 | | 2008-07-11 | 270880-1 | Acme Runners Inc | credit |
[ -0.29525503516197205, 0.12168556451797485, -0.1007811576128006, 0.29347285628318787, 0.05518896132707596, 0.39462342858314514, -0.23277616500854492, 0.19025404751300812, -0.15319041907787323, -0.019242512062191963, -0.1433122307062149, 0.6486855149269104, 0.10705666989088058, -0.0119457198...
-5058.54 | | 2008-07-18 | 271468-1 | Acme Runners Inc | debit | 5290.17 | | 2008-07-18 | 271468-1 | Acme Runners Inc | credit | -5290.17 | | 2008-11-07
[ -0.37200745940208435, 0.00040905180503614247, -0.21171052753925323, 0.40972769260406494, 0.0615168996155262, 0.46179845929145813, -0.21506299078464508, 0.28710415959358215, -0.19617226719856262, 0.009675511159002781, -0.0795765295624733, 0.6276649832725525, 0.05573214590549469, -0.01512440...
| 286049-1 | Acme Runners Inc | debit | 5230.44 | | 2008-11-14 | 286051-1 | Acme Runners Inc | debit | 5375.14 | | 2008-11-21 | 286107-1
[ -0.43897417187690735, 0.09342020004987717, -0.1989063024520874, 0.3082412779331207, 0.037768226116895676, 0.46504706144332886, 0.149704247713089, 0.2764210104942322, -0.16645316779613495, -0.021824171766638756, -0.0987066701054573, 0.6251224875450134, -0.37595289945602417, -0.0961284637451...
| Acme Runners Inc | debit | 5572.33 | | 2008-11-28 | 286112-1 | Acme Runners Inc | debit | 5123.42 | ``` so I want it to look like: ``` +----------------+---------------+------------------+----------+----------+ | dtmInvoicedOn | strJobKey | strCustome...
[ -0.33169999718666077, -0.049368999898433685, 0.2283836156129837, 0.11834866553544998, -0.11737100034952164, 0.4026491045951843, 0.035180095583200455, 0.07384881377220154, 0.1376635730266571, -0.14957353472709656, 0.060814421623945236, 0.47915732860565186, -0.14614766836166382, -0.133874922...
credit | debit | +----------------+---------------+------------------+----------+----------+ | 2008-07-03 | 270876-1 | Acme Runners Inc | -5531.52 | 0 | | 2008-07-11 | 270880-1 | Acme Runners Inc | -5058.54 | 5058.54 | | 2008-07-18 | 271468-1 | Acme Runners Inc | -5290.17 | 5290....
[ -0.3351346552371979, 0.11204356700181961, 0.054345373064279556, 0.25054189562797546, 0.16734565794467926, 0.3649764955043793, -0.42253848910331726, 0.11874544620513916, -0.2633848786354065, 0.12183684855699539, -0.34282398223876953, 0.830112099647522, 0.10535738617181778, 0.093940339982509...
0 | 5230.44 | | 2008-11-14 | 286051-1 | Acme Runners Inc | 0 | 5375.14 | | 2008-11-21 | 286107-1 | Acme Runners Inc | 0 | 5572.33 | | 2008-11-28 | 286112-1 | Acme Runners Inc 0 |
[ -0.476292222738266, 0.15856324136257172, -0.11846386641263962, 0.12877610325813293, -0.259211927652359, 0.5575029850006104, -0.00831630453467369, 0.16204901039600372, -0.05589202418923378, -0.17779982089996338, 0.20284973084926605, 0.5118522047996521, -0.32626691460609436, 0.01270160079002...
5123.42 | ``` Note that the server is currently running mysql but will migrate to postgres and sqlite later. thanks this should do the job: ``` SELECT j.dtmInvoicedOn, j.strJobKey, c.strCustName, strTransType, SUM(CASE WHEN strTransType='credit' THEN r.dblTransactionAmount ELSE 0 END) AS SUM_CREDIT, SUM...
[ -0.3257104754447937, -0.09218861162662506, 0.4457376003265381, -0.0415247417986393, 0.018123194575309753, 0.3037859797477722, 0.17630107700824738, -0.42501506209373474, -0.2166340947151184, -0.32245439291000366, -0.14366275072097778, 0.5563826560974121, -0.21104472875595093, 0.243764430284...
I would like to do some experimenting with javascript and encryption and I got curious as to how unpredictable the implementation of the random function is. Has anyone done any hard tests? Clearly browsers have the ability to generate strong randomness (for ssl). The questions is do they give javascript access to the ...
[ 0.2077004313468933, -0.0542900376021862, -0.2770969569683075, 0.16257423162460327, -0.4733513295650482, -0.29176753759384155, 0.21060433983802795, 0.11534419655799866, -0.2304268479347229, -0.49988701939582825, 0.07160536199808121, 0.26533427834510803, -0.2777527868747711, 0.26477706432342...
require careful management of the entropy pool, which is not a guarantee that Mozilla, cstdlib, etc. want to make to you. If you need access to cryptographically strong random number generators, I'd look into getting access to the underlying SSL implementation (which a given browser may or may not allow access to).
[ 0.4149618446826935, 0.017519058659672737, -0.14861886203289032, 0.23138634860515594, -0.12618206441402435, -0.6792201399803162, 0.2869490683078766, 0.2596176564693451, -0.35934892296791077, -0.663082480430603, -0.23233389854431152, 0.3183455467224121, -0.13628172874450684, 0.18590356409549...
It seems to me that a lot of my debugging time is spent chasing down null-reference exceptions in complex statements. For instance: ``` For Each game As IHomeGame in _GamesToOpen.GetIterator() ``` Why, when I get a NullReferenceException, can I get the line number in the stack trace, but not the name of the object t...
[ -0.20836535096168518, 0.1309163123369217, -0.08729465305805206, 0.05931897833943367, 0.0379023514688015, -0.316871702671051, 0.35803109407424927, 0.031041640788316727, -0.4436335563659668, -0.5298522114753723, -0.2717035710811615, 0.45656847953796387, -0.5214393138885498, 0.201117143034935...
is there a compelling reason in compiler design not to include this information in the debug-time exception? Exceptions are runtime things, variables are compile time things. In fact, the variable in your example is *an expression*. Expressions are not always simple variables. At runtime, the expression will be evalua...
[ 0.20662271976470947, -0.032234448939561844, 0.07675550132989883, -0.15542331337928772, 0.04809664189815521, -0.22154289484024048, 0.4100706875324249, -0.19785219430923462, -0.1426706314086914, -0.32087066769599915, -0.3572319447994232, 0.57381272315979, -0.5747883915901184, 0.1015362441539...
For example, would a full int[50][8] use more resources (RAM and CPU) than 8 full int[50] arrays? In the first case you have one array object pointing to fifty array objects holding 8 int's. So 1 + 50 array objects + fifty pointers in the first array object. In the second case you have one array object pointing to 8 a...
[ 0.022471465170383453, -0.13015003502368927, 0.06948264688253403, -0.16122794151306152, -0.21859681606292725, 0.5504834651947021, 0.08252151310443878, -0.7762100696563721, -0.2383773922920227, -0.7082549333572388, 0.17761097848415375, 0.3069622218608856, -0.04464014619588852, -0.21174500882...
I am trying to teach myself Python by working through some problems I came up with, and I need some help understanding how to pass functions. Let's say I am trying to predict tomorrow's temperature based on today's and yesterday's temperature, and I have written the following function: ``` def predict_temp(temp_today...
[ 0.4246272146701813, 0.031160959973931313, 0.38095760345458984, -0.14486606419086456, 0.0537363737821579, 0.03139147162437439, 0.41318315267562866, -0.1134684756398201, 0.07356258481740952, -0.7812367677688599, 0.026438377797603607, 0.1674397885799408, -0.0794038251042366, 0.079336307942867...
list of daily temperatures for some interval in the past, I can see how my prediction function would have done **with specific k1 and k2 parameters** like this: ``` >>> past_temps = [41, 35, 37, 42, 48, 30, 39, 42, 33] >>> pred_temps = [predict_temp(past_temps[i-1],past_temps[i-2],0.5,0.5) for i in xrange(2,len(past_t...
[ 0.20011308789253235, 0.06310758739709854, 0.4700169563293457, 0.05237241089344025, 0.14031440019607544, 0.36462053656578064, 0.5397054553031921, -0.3635816276073456, -0.025635702535510063, -0.7163970470428467, 0.1874723732471466, 0.16657403111457825, -0.08705872297286987, 0.220284312963485...
data, and that uses some search/optimization method (gradient descent for example) to estimate and return the values of k1 and k2 that minimize my error given the data? I am not asking how to implement the optimization method. Assume I can do that. Rather, I would just like to know **how to pass my predict and error f...
[ -0.0038410834968090057, -0.0008704162901267409, 0.3305208384990692, 0.3190152049064636, 0.15423963963985443, 0.26594993472099304, -0.09759311378002167, -0.38145896792411804, 0.19674548506736755, -0.49692007899284363, 0.2966853976249695, 0.6206406354904175, -0.2164953500032425, 0.0031335481...
function with those parameters each time to the data and computing error (like I did manually for k1=0.5 and k2=0.5 above) and then return the best results. I would like to be able to pass these functions so I can easily swap in different prediction and error functions (differing by more than just parameter settings t...
[ 0.36506572365760803, 0.06250063329935074, 0.30887746810913086, -0.015311762690544128, 0.07155761867761612, 0.4025437533855438, 0.070304274559021, -0.5864521265029907, 0.22190509736537933, -0.7321166396141052, 0.44961899518966675, 0.8220254182815552, -0.3534070551395416, 0.0834755226969719,...
function with current parameters to data to compute predictions # 3: use error function to compute error between predictions and data # 4: if stopping criterion is met, return parameters # 5: update parameters # 6: GOTO 2 ``` Edit: It's that easy?? This is no fun. I am going back to Java. On a more ...
[ 0.020119935274124146, -0.12271355092525482, 0.1676805317401886, 0.09380538761615753, -0.1148475632071495, -0.16654689610004425, 0.16547605395317078, -0.38299208879470825, -0.17070046067237854, -0.509969174861908, 0.19994550943374634, 0.8229116201400757, -0.3983479142189026, -0.134097427129...
one tuple I can keep the form of the function the same so it easy to pass and use. Here is an example of how to pass a function into another function. `apply_func_to` will take a function `f` and a number `num` as parameters and `return f(num)`. ``` def my_func(x): return x*x def apply_func_to(f, num): return...
[ 0.23481164872646332, -0.055558398365974426, 0.3636699914932251, -0.12568864226341248, -0.3592143952846527, -0.13280218839645386, 0.25800979137420654, -0.17465688288211823, 0.03812621533870697, -0.5242993235588074, -0.07696658372879028, 0.7158543467521667, -0.47982853651046753, -0.097565598...
I have need to call a webservice when a particular column in a table changes. I can handle the deciding of which column changed in the insert/update/delete but I'm not sure how I should call the webservice. The webservice is offsite, we have a little control over it (we can ask for changes and get a reasonably quick ...
[ 0.2303358018398285, 0.35872209072113037, 0.9962198138237, -0.12265398353338242, -0.05420292168855667, -0.163101464509964, 0.2588058114051819, 0.11551441997289658, -0.4206071197986603, -0.5536089539527893, 0.21874935925006866, 0.47613778710365295, -0.0577186644077301, 0.15350569784641266, ...
about it is not a good use of my time. It is what it is. Wish that there was a business logic layer but it's partially in the pres layer and partially in the SQL layer. A trigger in the table is the most central place. Don't. The overhead of a web service is incompatible with the execution processing cycles of a databa...
[ 0.7575520873069763, 0.09516683220863342, 0.1388504058122635, 0.35033515095710754, 0.06975477188825607, -0.3592030107975006, 0.034226953983306885, 0.3162529170513153, -0.21984821557998657, -0.34986528754234314, 0.04040169343352318, 0.2951713800430298, -0.20986172556877136, 0.236254528164863...
I need to start an external process from my web application. This means using *System.Diagnostics.ProcessStartInfo* to call out and execute a console app (exe). But I then need to somehow ***make sure nothing went wrong*** during it's execution **and know when the application completed** its work. **What's the best w...
[ 0.4280076324939728, 0.40987884998321533, 0.5540680289268494, -0.015503311529755592, 0.14697565138339996, 0.22770360112190247, 0.7485646605491638, 0.06578719615936279, -0.1879279464483261, -0.8895874619483948, -0.017716215923428535, 0.8667210340499878, 0.12644006311893463, 0.147200196981430...
hang and not terminate. You can then use the WaitForExit(), ExitCode, StandardError, StandardOut to "catch all possible errors and find out when it's completed"
[ 0.6893278360366821, -0.6233109831809998, 0.48653069138526917, 0.2326493114233017, 0.15160946547985077, -0.26479512453079224, -0.011531798169016838, -0.19031409919261932, -0.4087163209915161, 0.0022122894879430532, -0.21572788059711456, 0.24516522884368896, -0.1376013308763504, 0.1021796092...
If I have a util class with static methods that will call Hibernate functions to accomplish basic data access. I am wondering if making the method `synchronized` is the right approach to ensure thread-safety. I want this to prevent access of info to the same DB instance. However, I'm now sure if the following code are...
[ 0.1792772263288498, -0.26045554876327515, 0.22518625855445862, 0.03358142822980881, -0.01923297718167305, -0.21124579012393951, 0.23228633403778076, -0.24903829395771027, -0.10489675402641296, -0.3363571763038635, -0.24950240552425385, 0.5359960794448853, -0.6490739583969116, 0.29870676994...
hibernate class Session session = new Configuration().configure().buildSessionFactory().openSession(); Object obj = session.load(objclass, id); session.close(); return obj; } // other static methods } ``` By using synchronized on a static method lock you will [synchronize...
[ 0.00030613457784056664, -0.14703792333602905, 0.4863849878311157, -0.11769205331802368, -0.12750132381916046, 0.030299417674541473, 0.5580305457115173, -0.4291996359825134, -0.17457443475723267, -0.3564601540565491, -0.16314750909805298, 0.6976531744003296, -0.5865910053253174, 0.015892025...
to ensure thread-safety.* Not really. You should let your RDBMS do that work instead. They are good at this kind of stuff. The only thing you will get by synchronizing the access to the database is to make your application terribly slow. Further more, in the code you posted you're building a Session Factory each time...
[ 0.6158000826835632, 0.06038923189043999, -0.0731351301074028, 0.16065678000450134, -0.14089100062847137, -0.07793638855218887, 0.3552832007408142, 0.13253553211688995, -0.4753868877887726, -0.48222020268440247, 0.44073396921157837, 0.36512404680252075, -0.3753524720668793, 0.26680037379264...
called after the other, when this would happen anyway in the DB, because the RDBMS will prevent them from inserting half information from A and half from B at the same time. The result will be the same but only 5 times ( or more ) slower. Probably it could be better to take a look at the ["Transactions and Concurrency...
[ 0.29603311419487, -0.14290174841880798, 0.36242514848709106, 0.015064673498272896, -0.2094692885875702, -0.2876306474208832, 0.041100870817899704, -0.38337305188179016, -0.22381088137626648, -0.5661223530769348, -0.06949933618307114, 0.5178824663162231, -0.356351763010025, 0.25471082329750...
Has anyone got a Web Deployment Project to work with ASP.NET MVC? When I open the "deployed" project, a lot of the files are missing that MVC requires and makes it tough to Publish to the server with all the missing files in the project. Or... Is there a better way than a Web Deployment Project to modify the Web.Confi...
[ 0.1733568161725998, 0.04816822335124016, 0.19550062716007233, -0.04776487126946449, -0.20941618084907532, -0.16855518519878387, 0.4213537573814392, 0.3147713840007782, -0.6264830231666565, -0.8726818561553955, 0.041228845715522766, 0.5651487112045288, -0.26840364933013916, 0.03052460774779...
Publish, I get this error. `Could not load type 'AppNamespace._Default'.` I haven't set up a Deployment project yet with my mvc app but I've been using this technique outlined by Scott Hanselman and it works great. [Managing Multiple Configuration File Environments](http://www.hanselman.com/blog/ManagingMultipleConfi...
[ 0.005826279055327177, 0.19489751756191254, 0.42520761489868164, 0.257648229598999, -0.033284302800893784, -0.2715643644332886, 0.3394717574119568, -0.22016727924346924, -0.31394389271736145, -0.65556401014328, -0.027160657569766045, 0.5562467575073242, -0.31860989332199097, -0.001420661224...
I am working in a C# winforms project and I have a user control which gets loaded upon its selection from a tool-strip menu. I have a dictionary lookup set to occur upon form load of the user control for other functionality. Also, when I close the user control I am just using the ".Hide();" method. I noticed that when ...
[ 0.3836677074432373, 0.16396665573120117, 0.12086782604455948, -0.10651039332151413, -0.1572856605052948, -0.22096416354179382, 0.32160672545433044, 0.05116710811853409, -0.009463281370699406, -0.7531145215034485, -0.13220570981502533, 0.6727572679519653, -0.2234318107366562, 0.226079225540...
I wrote some code in an attempt to fix the issue. What I need to do is to somehow say that if an instance of the user control already exists, do not create a new instance of that object. Instead, just make the user control visible again. Therefore I have written code in an attempt to accomplish this purpose. When I s...
[ 0.39602187275886536, 0.006481669843196869, 0.10933519899845123, 0.10093402117490768, -0.22143784165382385, 0.12178000062704086, 0.30641233921051025, 0.011812349781394005, -0.5475082397460938, -0.5890853404998779, 0.03685667738318443, 0.40405797958374023, -0.3593843877315521, 0.437847197055...
the item from the tool-strip menu: ``` if (Controls.ContainsKey("CheckAvailUserControl")) { Controls["CheckAvailUserControl"].Dock = DockStyle.Fill; Controls["CheckAvailUserControl"].Visible = true; Controls["CheckAvailUserControl"].Show(); Controls["CheckAvailU...
[ -0.31122809648513794, 0.04663850739598274, 0.7780360579490662, -0.3599497079849243, 0.13549861311912537, 0.22305259108543396, 0.37959301471710205, -0.43007951974868774, -0.10920707881450653, -0.5730478763580322, -0.5676969885826111, 0.534784197807312, -0.23043201863765717, 0.01919416151940...
= new CheckAvailUserControl(); Controls.Add(checkAvailUserControlLoad); checkAvailUserControlLoad.Dock = DockStyle.Fill; checkAvailUserControlLoad.Visible = true; checkAvailUserControlLoad.Show(); } ``` When I trace through my code in the debugger it is in fact hitting t...
[ 0.1831883043050766, 0.1614229679107666, 0.6478791236877441, -0.22994215786457062, 0.5090285539627075, -0.0710335448384285, 0.7808957099914551, -0.4748995304107666, -0.12533193826675415, -0.6311957240104675, -0.15610721707344055, 0.5243536829948425, -0.26609694957733154, 0.00792081560939550...
user control to load correctly after I close it, then select it from the tool-strip menu again? I think that Controls.ContainsKey(...) is always returning false, because you never assigned a name to your control when you created it. If, when you create the control, you say ``` //... checkAvailUserControlLoad.Name = "...
[ -0.032569125294685364, 0.13188990950584412, 0.4374367594718933, -0.023127185180783272, 0.3441613018512726, -0.20053374767303467, 0.48547208309173584, -0.05542934313416481, 0.012823909521102905, -0.5958396792411804, -0.24144451320171356, 0.8030549883842468, -0.29185065627098083, 0.318015277...
We've written a WCF service to be used by a Java shop, who is using CXF to generate the adapters. We're not that familiar with Java, but have exposed the service using basicHttpBinding, SSL, and basic authentication. Integration tests show that a .NET client can consume the service just fine. However, the Java shop is ...
[ 0.3320421576499939, 0.06674400717020035, 0.12134910374879837, -0.026347622275352478, -0.0022048940882086754, -0.11102516204118729, 0.3789299428462982, -0.34603482484817505, 0.2137240171432495, -0.7248949408531189, 0.05541189759969711, 0.7488719820976257, -0.5477314591407776, 0.019424177706...
or operation names that should cause any sort of collision. We have made sure that all custom types specify a namespace, and tempuri.org is not specified anywhere in the WSDL. The Java shop suspects the error is because the generated WSDL contains <xsd:import elements. So, my questions: * Is there any better way th...
[ 0.5132439136505127, 0.05942295864224434, 0.10887589305639267, -0.019749470055103302, -0.25029808282852173, -0.29317477345466614, 0.28677433729171753, -0.07345807552337646, -0.2436666339635849, -0.5335224866867065, -0.04220232367515564, 0.5999988317489624, -0.43635568022727966, -0.100043810...
have interop problems. Should we consider other bindings or settings to make this easier to consume? * Is there a way to configure WCF to always output a single WDSL with no schema imports? The "Two declarations cause a collision in the ObjectFactory class" error message usually has nothing to do with imports. That's a...
[ 0.3414020836353302, -0.10548463463783264, 0.047209110110998154, 0.05038740485906601, -0.16690465807914734, -0.24163804948329926, 0.3608395755290985, -0.022768476977944374, -0.16394829750061035, -0.8711848258972168, 0.05291159451007843, 0.4250396490097046, -0.6907633543014526, 0.19167748093...
such that are usually eliminated+capped: <element name="doFoo" .../> and <element name="do\_foo" .../> With 2.1.4, you can TRY running the wsdl2java with the -autoNameResolution flag. That SOMETIMES helps with this, but not always. Unfortunately, the information that JAXB gives in these cases is nearly worthless and l...
[ 0.2747238576412201, -0.1119280532002449, 0.4004877805709839, -0.34221890568733215, 0.36384233832359314, -0.3276165723800659, 0.2812623381614685, -0.3444085121154785, 0.01984737627208233, -0.38922587037086487, -0.264058381319046, 0.68927401304245, -0.481627881526947, 0.021298788487911224, ...
At my company, we have to fill out a daily timecard, and I want to automate it. I want to use some sort of tool that will allow me to write something like this: ``` Launch Firefox go to www.example.com/timecard Wait for page load complete In UserName box: put username In Password box: put password Press enter Wait f...
[ 0.6355075836181641, 0.22680401802062988, 0.4390905499458313, -0.2093568593263626, 0.24022844433784485, -0.25192299485206604, 0.153598815202713, 0.01518017053604126, -0.09550037235021591, -0.7499607801437378, -0.16713564097881317, 0.7230079174041748, -0.4810701608657837, -0.1634863317012787...
hours click "Save" link close firefox return; ``` It would be really nice if the software solution will also execute itself daily at a given time. If all you need to automatize is related to browsers, then you may try out [Selenium Remote Control](http://seleniumhq.org/) which provides libraries in different language...
[ 0.7640489339828491, 0.10884290933609009, 0.232918843626976, 0.33722302317619324, 0.00356740178540349, -0.31135356426239014, 0.24241474270820618, 0.056451186537742615, -0.3641456663608551, -0.5337265729904175, -0.2704021632671356, 0.6181747317314148, -0.10041401535272598, 0.0972443819046020...
This thing is so confusing compared to the old IIS, I haven't even found where to pick the version of .NET still. I had to comment out the and from my web.config because I kept getting: > This configuration section cannot be > used at this path. This happens when > the section is locked at a parent > level. Lockin...
[ 0.14555412530899048, 0.10225711762905121, 0.18540842831134796, 0.12915757298469543, 0.3006713092327118, -0.45676329731941223, 0.7537903785705566, 0.050619591027498245, -0.1797770857810974, -0.7797935009002686, -0.08581245690584183, 0.21547746658325195, -0.34738701581954956, 0.6302849650382...
THERE (and I created a default page entry for it). It says it is possible it is missing a handler mapping, what the hell is that? Why did they make it so confusing to use the new IIS? I am losing a lot of time on this project trying to set this up. Did me commenting out the from my web.config create this new problem? P...
[ 0.13698166608810425, 0.0781012549996376, 0.03590467572212219, 0.2355847805738449, 0.0036613524425774813, -0.5169231295585632, 0.653839111328125, 0.33232709765434265, -0.5496943593025208, -0.7055045366287231, 0.12249942868947983, 0.7568175792694092, -0.4500095546245575, 0.15996912121772766,...
aspx/ashx handling? UPDATE: Yeah I had to install asp.net now I am getting 500.19: > Module DefaultDocumentModule > Notification ExecuteRequestHandler > Handler StaticFile Error Code > 0x800700b7 Config Error Cannot add > duplicate collection entry of type > 'add' with unique key attribute > 'value' set to 'D...
[ -0.042267270386219025, 0.09542722254991531, 0.4632599949836731, 0.12632350623607635, -0.28038543462753296, 0.1292579174041748, 0.5040711760520935, -0.10576093196868896, -0.3364628851413727, -0.6800724267959595, -0.013599168509244919, 0.3662130534648895, -0.23396684229373932, -0.12558446824...
so hopefully it's not tottally a waste and this adds to the useful content of this site. Thanks for all the replies. I've found the best way to do this is to let Visual Studio do it for you. If you're using a Web Application Project, then in the project properties, on the Web tab, you'll have the option to use IIS. Wit...
[ 0.5628276467323303, 0.044053491204977036, 0.3883460462093353, 0.2148069441318512, -0.2435126155614853, -0.2423015981912613, -0.01789708249270916, 0.2915078103542328, -0.3461498022079468, -0.5379450917243958, -0.08680535852909088, 0.6080148816108704, -0.1216491237282753, 0.07092312723398209...
if you were looking for one of those versions.
[ 0.4718780219554901, -0.3403741121292114, -0.11259914934635162, 0.2331649214029312, 0.017421197146177292, 0.0193974319845438, 0.4272454082965851, 0.4403011202812195, -0.3404980003833771, -0.06904339045286179, 0.05427910387516022, 0.05199382081627846, -0.10553935170173645, 0.1238990798592567...
I need to pass back a JSON result for a routine I am working with. In `VB.NET`, how can arrays be JSON encoded? ``` Dim serializer as New JavaScriptSerializer() Dim arrayJson as String = serializer.Serialize(myArray) ```
[ 0.2880725562572479, -0.2564507722854614, 0.27981746196746826, -0.1587100625038147, -0.1978389173746109, -0.1436004340648651, 0.1998458206653595, -0.34925487637519836, -0.22610342502593994, -0.5031408667564392, -0.11388058215379715, 0.45471838116645813, -0.4736957848072052, -0.0904072225093...
We recently started to develop a Java desktop app and management has requested that we make use of Rich Client Platform. I know of four for Java namely: 1. Eclipse RCP - [www link to ecipse rcp](http://wiki.eclipse.org/index.php/Rich_Client_Platform), 2. Netbean RCP - [Netbeans RCP web site](http://platform.netbeans.o...
[ 0.2554641664028168, -0.17809727787971497, 0.5436131954193115, 0.01001002173870802, -0.5815781950950623, 0.028063004836440086, 0.016967112198472023, -0.3733072280883789, -0.49850931763648987, 0.01387277152389288, -0.13384728133678436, 0.479068785905838, -0.10236456245183945, -0.239514976739...
providing certain core functionality that you really, really need in every Java GUI app, without forcing you to live in an overly complicated framework. I have used JSR 296 successfully to create a mid-sized application. For window layout in this app, we use [MyDoggy](http://mydoggy.sourceforge.net/) (highly recommend...
[ 0.1079484149813652, -0.0069181909784674644, 0.7332541346549988, -0.021222269162535667, -0.1159733310341835, -0.11868355423212051, 0.025181937962770462, -0.3315001428127289, -0.06284315884113312, -0.6262689232826233, -0.041740141808986664, 0.8211531639099121, -0.29733189940452576, -0.194460...
far, I think it will 'play well' with JSR 296 with a tweak here and there). Let's see... persistence is the big missing link here - I am currently evaluating [Simple](http://simple.sourceforge.net/) for XML persistence, but am running into issues with getting it to work with DI containers like Guice. I have [Betwixt](h...
[ 0.2982822060585022, -0.01872257888317108, 0.13847394287586212, 0.04145689308643341, -0.34805259108543396, -0.4284948706626892, 0.32187655568122864, -0.14707154035568237, -0.14239206910133362, -0.5323210954666138, 0.08572066575288773, 0.9252551198005676, -0.2283829003572464, 0.0263546351343...
make poor design decisions - and it's almost impossible to use if you don't use NetBeans as your IDE (I tried, but I just couldn't switch from Eclipse to NB). It's probably just me, but it seems that it should be possible to write code for an RCP framework without using big complicated wizards and reams of auto-generat...
[ 0.5559640526771545, 0.18344472348690033, -0.11345304548740387, -0.022049598395824432, -0.37597981095314026, -0.18336713314056396, 0.06743936985731125, 0.10815917700529099, -0.3519589304924011, -0.4208557605743408, 0.03217257186770439, 0.4675232768058777, -0.018421215936541557, 0.0066525796...
the documentation is really, really weak. It's pretty difficult to get up to speed on it (But once you do, you can get things done pretty quickly). Eclipse RCP: Haven't used Eclipse just because of the deployment overhead (depends on your target audience - for us, deploying an extra 50 MB of runtime just didn't work)....
[ 0.2715708315372467, 0.1493111103773117, 0.17399288713932037, 0.1331469565629959, -0.09431503713130951, -0.19705525040626526, 0.23862755298614502, 0.02826293185353279, -0.23397871851921082, -0.5762259364128113, -0.16670210659503937, 0.49562519788742065, -0.11298693716526031, -0.338976293802...
I'm creating some checkbox elements on the fly with jQuery and appending them to a node like so ``` var topics = ['All','Cat1','Cat2']; var topicContainer = $('ul#someElementId'); $.each( topics, function( iteration, item ) { topicContainer.append( $(document.createElement("li")) .append( ...
[ 0.09516636282205582, -0.23802399635314941, 0.705392062664032, -0.021023444831371307, 0.0027285332325845957, 0.23888085782527924, 0.010547390207648277, -0.20224282145500183, -0.21795809268951416, -0.5465306043624878, -0.05700342357158661, 0.35011351108551025, -0.434760719537735, 0.044089838...