text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
window.event; var bt = document.getElementById(buttonid); if (bt){ if (evt.keyCode == 13){ bt.click(); return false; } } } //code behind TextBox1.Attributes.Add("onkeypress", "return clickButton(event,'" + Button1.ClientID + "')"); ``` The code behind generates...
[ 0.04660740867257118, -0.08235978335142136, 0.5076233148574829, -0.5110371112823486, 0.04314325004816055, 0.30641448497772217, 0.21919572353363037, -0.4488949775695801, -0.09427975118160248, -0.6470528244972229, -0.5403872132301331, 0.6676172614097595, -0.15181253850460052, -0.2365383654832...
I seem to remember that in PHP there is a way to pass an array as a list of arguments for a function, dereferencing the array into the standard `func($arg1, $arg2)` manner. But now I'm lost on how to do it. I recall the manner of passing by reference, how to "glob" incoming parameters ... but not how to de-list the arr...
[ 0.15077534317970276, 0.32758405804634094, 0.21989288926124573, -0.14629386365413666, -0.46141931414604187, 0.07789045572280884, 0.2320762276649475, 0.12355868518352509, -0.3025723695755005, -0.1792537122964859, 0.05586617812514305, 0.5770594477653503, -0.20784765481948853, 0.02089924737811...
the last year or so. <http://www.php.net/manual/en/function.call-user-func-array.php> ``` call_user_func_array('func',$myArgs); ```
[ 0.1674620360136032, -0.14322464168071747, 0.5755635499954224, -0.26943349838256836, -0.06377778202295303, -0.005341195501387119, -0.10471934825181961, 0.12575387954711914, -0.7373773455619812, -0.11069531738758087, -0.3150160610675812, 0.07405117154121399, 0.1917841136455536, 0.18037779629...
I can't access my host machine from my guest machine using the computer name (i.e. WINS). I can access it using whatever IP address it happens to have at the time, but I need a consistent way of accessing it (even if I'm not online). I have a Windows Server 2003 guest virtual machine and a Vista host. I'm using Shared...
[ 0.04519135504961014, 0.2277826964855194, 0.5486354231834412, -0.013701999559998512, -0.14086981117725372, -0.22407066822052002, 0.3679642975330353, 0.1941794455051422, -0.35885709524154663, -0.7647926211357117, 0.013057220727205276, 0.7574558258056641, -0.015601012855768204, 0.704080164432...
172.16.16.4 localserver ``` Here is the blog that explains it: <http://blog.flexuous.com/2007/02/04/virtual-pc-ip-routing-enabling-vpc-nat-loopback-connector-at-the-same-time/>
[ 0.10712716728448868, 0.030111990869045258, 0.4763425588607788, -0.09025052934885025, -0.18696001172065735, -0.3833963871002197, 0.05572066083550453, 0.15386590361595154, -0.5875174403190613, -0.49120602011680603, -0.10407291352748871, 0.5065668225288391, -0.22269362211227417, 0.37956157326...
I've written some code to upgrade a SQL Server database. Before I upgrade the database, I attain an exclusive lock via: ``` ALTER DATABASE Test SET SINGLE_USER WITH NO_WAIT ``` However, I'd like to test the database to see if the exclusive lock is possible *before* I run the above code. The test doesn't have to be 1...
[ 0.530604898929596, 0.11281758546829224, 0.4701572358608246, 0.00979936309158802, 0.3265245854854584, -0.34662696719169617, 0.17953386902809143, -0.3247350752353668, -0.06346272677183151, -0.8162368535995483, 0.0032420966308563948, 0.7273488640785217, -0.14006252586841583, 0.185986518859863...
request_session_id <> @@SPID ``` I'm assuming that if there's 1 or more row returned, then the database must be in use. Is this true? Or is it not that simple? **UPDATE** Taking @gbn's comments into account, I've decided to force rollback of existing connections using the following statement: ``` ALTER DATABASE Tes...
[ 0.10016211867332458, 0.12574785947799683, 0.40601351857185364, -0.11146190017461777, -0.22406183183193207, -0.19620980322360992, 0.3240770399570465, -0.3132604956626892, -0.26929762959480286, -0.6285296082496643, 0.004176533315330744, 0.5103894472122192, -0.33205461502075195, 0.28792461752...
lock is just to show it is in use. Databases don't really have many exclusive locks situations compared to code/table objects. Single user mode is not a lock, but the number of connections allowed. I'd wrap the ALTER DATABASE in a TRY/CATCH block because there is no guarantee the state won't change between check and ...
[ 0.2770691215991974, -0.12481213361024857, 0.4156494736671448, 0.2909143269062042, 0.058995019644498825, -0.41705670952796936, 0.27045729756355286, -0.2397596389055252, -0.3087786138057709, -0.5350165367126465, 0.05585724115371704, 0.30207401514053345, -0.311512291431427, 0.3004155457019806...
in SSMS... Edit, based on comment You can detect who is using it by these: * `sys.dm_exec_connection`s * `sys.dm_exec_sessions` * `sys.dm_exec_requests` To be honest, it's difficult to stop auto stats update or a user taking the single connection. Normally, you'd this which disconnects all other users and not bothe...
[ -0.04574279487133026, -0.120623379945755, 0.4683000147342682, 0.1135191023349762, -0.15346422791481018, -0.6067964434623718, 0.3296179175376892, -0.10889804363250732, -0.6577415466308594, -0.9666330218315125, -0.33272436261177063, 0.3513347804546356, -0.6577898859977722, 0.2143422365188598...
I have a c# client talking to a cherrypy(http/rest) webservice. The problem is i can't both turn on compression and caching at the same time. ``` request.AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate; ``` By leaving out the above line I get the correct caching headers (If-None-Mat...
[ 0.09039231389760971, 0.35955381393432617, 0.3323257267475128, -0.20272301137447357, -0.1458052694797516, -0.13271157443523407, 0.470543771982193, -0.2456260323524475, 0.0823550596833229, -0.6564195156097412, -0.5629504919052124, 0.7718216776847839, -0.3869679868221283, 0.13683834671974182,...
// Create the web request HttpWebRequest request = WebRequest.Create(URL) as HttpWebRequest; HttpRequestCachePolicy cPolicy = new HttpRequestCachePolicy(HttpRequestCacheLevel.Revalidate); request.Accept = "application/json"; request.CachePolicy = cPolicy; request.A...
[ 0.06578189879655838, -0.14177028834819794, 0.5631277561187744, 0.17910136282444, -0.17553965747356415, 0.2008126974105835, 0.6612054705619812, -0.4704630672931671, -0.14379246532917023, -0.7129271626472473, -0.5439999103546143, 0.1997344195842743, -0.4032426178455353, 0.3832746744155884, ...
using (HttpWebResponse response = request.GetResponse() as HttpWebResponse) { // Get the response stream StreamReader readerF = new StreamReader(response.GetResponseStream()); JSON = readerF.ReadToEnd(); // Console application output
[ -0.3621571362018585, -0.43593212962150574, 0.9125528335571289, -0.14332035183906555, -0.03896982595324516, 0.3077065050601959, 0.302042692899704, -0.4307157099246979, 0.09545611590147018, -0.8027834296226501, -0.4926842749118805, 0.7099937796592712, -0.35635465383529663, 0.2225668877363205...
//Console.WriteLine(JSON); if (response.IsFromCache ) Console.WriteLine("Request not from cache"); } return JSON; } ``` I have implemented a workaround, see code below. I judged handling the compression easier than handling the cacheing so I implemented the compression ...
[ -0.09963815659284592, 0.061282627284526825, 0.23992592096328735, -0.3163037896156311, 0.05306493118405342, -0.0065951282158494, 0.47776666283607483, -0.29210618138313293, 0.10345032066106796, -0.7185096740722656, -0.39566031098365784, 0.7156481742858887, -0.20986536145210266, 0.03978189080...
and GZip Http Responses](http://www.west-wind.com/WebLog/posts/102969.aspx); I still think this is a bug in .net. ``` public static string GET(string URL) { string JSON; // Create the web request HttpWebRequest request = WebRequest.Create(URL) as HttpWebRequest; HttpReques...
[ -0.025165867060422897, 0.035502683371305466, 0.7551475167274475, -0.15495231747627258, -0.2437479943037033, -0.09453316777944565, 0.5481707453727722, -0.5239875912666321, -0.15466919541358948, -0.532983660697937, -0.863189160823822, 0.657551109790802, -0.44132739305496216, 0.33416244387626...
request.CachePolicy = cPolicy; request.Pipelined = false; // Get response using (HttpWebResponse response = request.GetResponse() as HttpWebResponse) { //From http://www.west-wind.com/WebLog/posts/102969.aspx Stream responseStream = responseStream = response.Ge...
[ -0.13080289959907532, -0.29967692494392395, 0.8026379942893982, 0.11531782895326614, -0.050214629620313644, 0.15746092796325684, 0.6614612936973572, -0.5095871090888977, -0.32647770643234253, -0.518507719039917, -0.6683881282806396, 0.1784859150648117, -0.2721444070339203, 0.35706737637519...
responseStream = new GZipStream(responseStream, CompressionMode.Decompress); else if (response.ContentEncoding.ToLower().Contains("deflate")) responseStream = new DeflateStream(responseStream, CompressionMode.Decompress); // Get the response stream StreamReader rea...
[ -0.22482874989509583, -0.6354766488075256, 0.9767987132072449, -0.27591702342033386, -0.2555549442768097, 0.44776690006256104, 0.39545726776123047, -0.6041662693023682, -0.0422687903046608, -0.8727201819419861, -0.7059409022331238, 0.47749030590057373, -0.4337247312068939, 0.09155292063951...
} return JSON; } ```
[ -0.2017858773469925, 0.1548364907503128, -0.1542963981628418, -0.3951088488101959, 0.15990003943443298, -0.17963986098766327, 0.3589116334915161, 0.2179688662290573, 0.16370616853237152, -0.37347108125686646, -0.5857576727867126, 0.7622063755989075, -0.43093496561050415, 0.1253027021884918...
I have a 384MB text file with 50 million lines. Each line contains 2 space-separated integers: a key and a value. The file is sorted by key. I need an efficient way of looking up the values of a list of about 200 keys in Python. My current approach is included below. It takes 30 seconds. There must be more efficient P...
[ 0.2788948714733124, 0.34083420038223267, 0.4225144386291504, 0.06832488626241684, -0.030327610671520233, 0.35843518376350403, 0.43048185110092163, -0.31907036900520325, -0.2656734585762024, -0.7484480142593384, 0.14134612679481506, 0.5036196112632751, -0.04232172667980194, 0.11997514218091...
the code # we use pointer to iterate through the list of keys for line in fin: line = map(int, line.split()) while line[0] == list[pointer].key: list[pointer].value = line[1] pointer += 1 while line[0] > list[pointer].key: pointer += 1 if pointer >= len(list) - 1: break # end of list; -1 is due ...
[ -0.08902166783809662, -0.14560800790786743, 0.6615114808082581, 0.165678009390831, -0.11132476478815079, 0.11292833834886551, 0.48588842153549194, -0.6589520573616028, -0.19166836142539978, -0.5469150543212891, -0.14979204535484314, 0.7769151329994202, 0.02237839065492153, 0.38297629356384...
padded with spaces # at the end of each line for i, search in enumerate(list): # list contains the list of search keys left, right = 0, entries-1 key = None while key != search and left <= right: mid = (left + right) / 2 fin.seek(mid * width) key, value = map(int, fin.readline().sp...
[ -0.25983676314353943, -0.4385521709918976, 0.771351158618927, -0.06258309632539749, 0.13806593418121338, 0.2236730456352234, -0.278860479593277, -0.6612272262573242, -0.33115339279174805, -0.4172762334346771, -0.3108043968677521, 0.6760318279266357, -0.014577225781977177, 0.007210831157863...
1 else: right = mid - 1 if key != search: value = None # for when search key is not found search.result = value # store the result of the search ``` If you only need 200 of 50 million lines, then reading all of it into memory is a waste. I would sort the list of search keys and then apply binary sear...
[ -0.03166281431913376, 0.05720509961247444, 0.464747816324234, 0.08902997523546219, 0.11244343221187592, -0.03498343750834465, 0.28433936834335327, -0.274743914604187, 0.007138218265026808, -0.5301923751831055, -0.28736206889152527, 0.3945659399032593, -0.1979982703924179, 0.028453221544623...
things up.
[ 0.12768380343914032, -0.4212704598903656, 0.8413745760917664, -0.12942823767662048, 0.007052228786051273, -0.4363686144351959, -0.07374968379735947, 0.41844937205314636, -0.4879976511001587, -0.5250793099403381, 0.13989976048469543, 0.3563102185726166, -0.04190366715192795, 0.0264602769166...
I would like to add a right click menu option to Windows explorer for all .sln files that says "Build." It just needs to call devenv to build the sln without opening it first. What is the easiest way to do this? Note that I am using Windows Vista, if that matters. **Solution** I found a simple solution for Vs2008 on...
[ 0.4112667143344879, 0.02086489088833332, 0.8324890732765198, 0.10457807779312134, -0.04675736650824547, 0.07210700958967209, 0.32878953218460083, -0.11733290553092957, -0.06001966446638107, -0.8090764880180359, 0.18502391874790192, 0.7416868209838867, -0.04956749454140663, 0.15918596088886...
Visual Studio is correct. ``` Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\VisualStudio.Launcher.sln\Shell\Build (Debug)\command] @="\"C:\\Program Files\\Microsoft Visual Studio 9.0\\Common7\\IDE\\devenv.com\" %1 /Build Debug" ``` The above example is for VS2008 on 32 bit windows. For newer versions of ...
[ 0.17673330008983612, 0.15061284601688385, 0.6334938406944275, -0.17473122477531433, -0.2195156216621399, -0.1081186980009079, 0.4931766390800476, 0.03611806407570839, -0.1342465877532959, -0.7194759845733643, -0.15000560879707336, 0.7401366233825684, -0.1410275548696518, -0.014760733582079...
Let's say the rule is as follows: ``` .largeField { width: 65%; } ``` Is there a way to get '65%' back somehow, and not the pixel value? Thanks. **EDIT:** Unfortunately using DOM methods is unreliable in my case, as I have a stylesheet which imports other stylesheets, and as a result the **cssRules** parameter...
[ 0.008992142044007778, 0.052712127566337585, 0.5392427444458008, -0.259992390871048, 0.01479004230350256, -0.15570026636123657, 0.21316401660442352, -0.28300413489341736, -0.21499991416931152, -0.5554068088531494, -0.12402191758155823, 0.7059957385063171, -0.2438730150461197, 0.015483330935...
) + '%'; ```
[ 0.2139330804347992, 0.18604202568531036, 0.34782281517982483, -0.17372459173202515, -0.2178744077682495, 0.1661464124917984, 0.24965736269950867, -0.20925916731357574, 0.30785292387008667, -0.04675772413611412, -0.5101039409637451, 0.410641610622406, -0.38153326511383057, 0.161434382200241...
Let's say I have this interface: ``` // .h @interface DataObject : NSObject { NSString* value; } @property (retain) NSString* value; @end // .m @implementation DataObject @synthetize value @end ``` As far as I understand, the following two snippets are identical: ``` DataObject *o = [[[DataObject alloc] i...
[ -0.011878510937094688, -0.14767703413963318, 0.4753069579601288, -0.1593465954065323, -0.36678633093833923, 0.06526440382003784, 0.07272251695394516, -0.2148740291595459, 0.05285896733403206, -0.6937156319618225, -0.029996011406183243, 0.7079817652702332, -0.45837393403053284, -0.287945121...
Am supposed to be learning French at the moment, but rather than learning any vocab, I've been mucking around with a rails app that tests vocab - so it displays a word, and I have to type its translation. Unfortunately, Firefox remembers everything I've already type there, so which diminishes its usefulness somewhat. ...
[ 0.19815997779369354, 0.5491232872009277, 0.42059439420700073, -0.06558910757303238, 0.20208168029785156, -0.1824948936700821, 0.5859267115592957, 0.19519703090190887, 0.09536414593458176, -0.5375766158103943, -0.2905305325984955, 0.560343325138092, -0.1744260936975479, -0.2721651494503021,...
How can I disable an event handler temporarily in WinForms? Probably, the simplest way (which doesn't need unsubscribing or other stuff) is to declare a boolean value and check it at the beginning of the handler: ``` bool dontRunHandler; void Handler(object sender, EventArgs e) { if (dontRunHandler) return; //...
[ -0.06002439931035042, -0.2110506147146225, 0.05161740630865097, -0.18024903535842896, 0.1637461930513382, -0.25525158643722534, 0.29013916850090027, -0.09958387166261673, 0.09965551644563675, -0.34836456179618835, -0.4148738384246826, 0.540661096572876, -0.3962230980396271, 0.2202383428812...
In my specific case, I am making use of a discriminator column strategy. This means that my JPA implementation (Hibernate) creates a *users* table with a special *DTYPE* column. This column contains the class name of the entity. For example, my *users* table can have subclasses of **TrialUser** and **PayingUser**. Thes...
[ 0.21955205500125885, -0.02201448567211628, -0.05031772702932358, 0.008554637432098389, -0.45679861307144165, -0.02883802354335785, 0.18269754946231842, -0.0851941928267479, -0.0317390114068985, -0.7349307537078857, 0.2774425745010376, 0.45535045862197876, -0.3730991780757904, 0.24252495169...
UPDATE on the column, changing its value. This works for entities whose property constraints are similar. 2. Create a new entity of the target type, do a *BeanUtils.copyProperties()* call to move over the properties, save the new entity, then call a named query which manually replaces the new Id with the old Id so that...
[ -0.06722429394721985, -0.009662948548793793, 0.5287517309188843, 0.030354639515280724, -0.27042484283447266, -0.2522284984588623, 0.2357417494058609, -0.18664386868476868, -0.22460640966892242, -0.6783080697059631, 0.05094940587878227, 0.5633234977722168, -0.5363483428955078, 0.18450923264...
Here I could probably do an EntityManager.clear() and detach all Entities/clear the Per. Context, but since this is a Service bean, it would wipe pending changes for all users of the system. The problem with #2 is that when you delete the **TrialUser** all of the properties you have set to Cascade=ALL will be deleted ...
[ 0.0991918072104454, 0.0229311753064394, 0.43077921867370605, -0.11819833517074585, -0.18489766120910645, -0.3159746825695038, 0.6112919449806213, -0.2998901605606079, -0.3073415160179138, -0.5969126224517822, 0.08650000393390656, 0.5749763250350952, -0.529694676399231, 0.14155544340610504,...
The more elegant of the hacks is definitely #1, and I have made some progress in this respect. The key is to first get a reference to the underlying Hibernate Session (if you're using Hibernate as your JPA implementation) and call the Session.evict(user) method to remove only that single object from your persistance co...
[ -0.008240395225584507, -0.047795653343200684, 0.4717891812324524, -0.1477108895778656, -0.267902135848999, -0.2505493760108948, 0.5628164410591125, -0.12640240788459778, -0.09232304990291595, -0.7431596517562866, -0.17319346964359283, 0.49394461512565613, -0.4221968352794647, 0.21840181946...
// Update the DTYPE final String sqlString = "update user set user.DTYPE = '" + targetClass.getSimpleName() + "' where user.id = :id"; final Query query = entityManager.createNativeQuery(sqlString); query.setParameter("id", user.getId()); query.executeUpdate(); entityManager.flush(); // *** PROBLEM HERE **...
[ -0.2602981925010681, 0.06028920039534569, 0.6989715695381165, -0.00624605780467391, -0.24897368252277374, 0.4803055226802826, 0.4766594469547272, -0.548245906829834, -0.4693402647972107, -0.03143814206123352, -0.15142981708049774, 0.11653154343366623, -0.5536328554153442, 0.387658655643463...
has a OneToMany Set, is causing some problems. I don't know enough about what's going on behind the scenes to crack this nut. ***Update 2***: The only thing that works so far is to change DTYPE as shown in the above code, then call **entityManager.clear()** I don't completely understand the ramifications of clearing ...
[ 0.0975930467247963, -0.1424216628074646, 0.48646700382232666, -0.0015695466427132487, -0.01142888329923153, -0.20557497441768646, 0.3881579637527466, 0.07964877784252167, -0.4216161072254181, -0.6595032811164856, 0.232472762465477, 0.6911126375198364, -0.44068849086761475, 0.15775331854820...
existing transaction, but that is probably tied to the same persistence context of the Entity you're modifying. What this means is that after you update *DTYPE* you have to find a way to **evict()** the Entity. The easy way is to call **entityManager.clear()** but this results in all sorts of side effects (read about i...
[ 0.16649997234344482, 0.048627279698848724, 0.3739822208881378, 0.15839850902557373, -0.0918700248003006, -0.2586560845375061, 0.4145999550819397, -0.12567725777626038, -0.4356616139411926, -0.669342041015625, 0.1196286529302597, 0.2948906421661377, -0.32031571865081787, 0.30720630288124084...
with my existing JPA annotations, like **@OneToOne(cascade = CascadeType.ALL)**. I also tried manually passing my domain graph a **Session** and having each parent Entity evict its children. This also didn't work for unknown reasons. I was left in a situation where only **entityManager.clear()** would work, but I cou...
[ -0.017201079055666924, -0.0020865467377007008, 0.14460931718349457, 0.07544451951980591, -0.21139052510261536, 0.10707009583711624, 0.577365517616272, -0.21639859676361084, -0.27282270789146423, -0.5038695931434631, 0.3724338710308075, 0.09067285805940628, -0.5127971768379211, 0.4442168772...
transaction manager into the Repository for manual wrapping of the **executeUpdate()** in a transaction corresponding to the proper PC. Here I have to say that I don't know enough about Spring/JPA container managed transactions, because it ended up being a nightmare trying to get the local/manual transaction for **exec...
[ -0.5030322670936584, 0.04447709023952484, 0.25176218152046204, -0.13492761552333832, -0.1591886579990387, -0.28187593817710876, 0.25692713260650635, -0.21754518151283264, -0.3374834656715393, -0.7828229069709778, -0.053284429013729095, 0.6011427640914917, -0.4710610508918762, 0.43287840485...
// Update the DTYPE jdbcTemplate.update("update user set user.DTYPE = ? where user.id = ?", new Object[] { targetClass.getSimpleName(), user.getId() }); // Before we try to load our converted User back into the Persistence // Context, we need to remove them from the PC so the EntityManager ...
[ -0.016135036945343018, 0.0886181890964508, 0.48596787452697754, -0.14232587814331055, 0.08655838668346405, 0.06598878651857376, 0.25571659207344055, -0.14218293130397797, -0.09961043298244476, -0.8084454536437988, 0.0427541621029377, 0.6419815421104431, -0.4144022762775421, 0.1021779030561...
the child Entities of this User will remain in the PC. This would // normally cause a problem when the PC is flushed, throwing a detached // entity exception. In this specific case, we return a new User // reference which replaces the old one. This means if we just evict the // User, the...
[ -0.08675698935985565, 0.19066067039966583, 0.4245067536830902, 0.5582335591316223, 0.4021071493625641, 0.00035039798240177333, 0.08899707347154617, 0.14368130266666412, -0.10198003798723221, -0.3528865873813629, -0.18667301535606384, 0.4169508218765259, -0.21517018973827362, 0.547482132911...
// drill down into the children and try to persist them. userService.evictUser(user); // Reload the converted User into the Persistence Context return userService.getUserById(user.getId()); } public void setDataSource(final DataSource dataSource) { this.jdbcTemplate = new JdbcT...
[ 0.19596143066883087, -0.07273849844932556, 0.5677727460861206, -0.11123761534690857, 0.406958669424057, -0.12705712020397186, 0.3490217626094818, -0.19362784922122955, -0.21823357045650482, -0.6643219590187073, -0.11903497576713562, 0.5992209315299988, -0.264582097530365, 0.363427519798278...
transaction coming in from the Service layer and allow the conversion to take place external of the PC. 2. Before trying to reload the converted Entity back into the PC, I evict the old copy currently stored in the PC with **userService.evictUser(user);**. The code for this is simply getting a **Session** instance and ...
[ -0.1137722060084343, 0.13736702501773834, 0.5170082449913025, 0.03163060545921326, 0.22769637405872345, -0.19732244312763214, 0.2486586570739746, -0.09124785661697388, -0.2387264519929886, -0.8507614135742188, -0.05719679966568947, 0.5402265191078186, -0.25239241123199463, 0.36707583069801...
gone well, this solution may still have some problems. I will keep this updated as they are uncovered.
[ 0.45041945576667786, 0.1573101431131363, 0.28658154606819153, 0.04350854083895683, 0.5054326057434082, -0.22534917294979095, 0.33219337463378906, 0.21327100694179535, -0.1584981232881546, -0.5216505527496338, 0.1196255162358284, 0.4910527765750885, 0.4405875504016876, 0.3117774426937103, ...
Can someone explain what a `SpanQuery` is, and what are typical use cases for it? The [documentation](https://lucene.apache.org/core/7_7_3/core/org/apache/lucene/search/spans/SpanQuery.html) is very laconic, and keeps mentioning the concept of "span", which I'm not quite sure I get. Spans provide a [proximity search](...
[ 0.43483009934425354, 0.1333806812763214, 0.8018208742141724, 0.182536780834198, -0.09126663208007812, -0.268677294254303, -0.29888665676116943, -0.0568404495716095, -0.21074071526527405, -0.6179016828536987, -0.11352158337831497, 0.28909438848495483, 0.059342578053474426, 0.128321006894111...
I'm currently working on a C# app targeted for Windows Mobile 6 devices that will run in kiosk (being well aware that WinMob 6 [isn't the greatest platform for kiosk apps](http://blogs.msdn.com/raffael/archive/2008/03/01/supporting-kiosk-applications-on-windows-mobile-technically-achievable-vs-supported.aspx)). I can m...
[ 0.286697655916214, 0.1653749644756317, 0.48155948519706726, -0.015936020761728287, 0.18688936531543732, -0.12144296616315842, 0.331389456987381, -0.03853430598974228, -0.20571403205394745, -0.6792944669723511, -0.14538082480430603, 0.5368643403053284, -0.12439247965812683, 0.15496778488159...
respectively. Besides you can try [SureLock Studio](http://www.42gears.com/surelock/index.shtml) which handles these messages and many other situations to simulate kiosk mode.
[ 0.22180308401584625, 0.1190839409828186, 0.18392381072044373, 0.2264876812696457, 0.3276987671852112, -0.05058138817548752, 0.3736245930194855, 0.044207822531461716, -0.20274941623210907, -0.5041673183441162, -0.039021946489810944, 0.4076786935329437, -0.26676711440086365, -0.1369776874780...
I am trying to use the [jQuery dialog UI](http://docs.jquery.com/UI/Dialog) library in order to position a dialog next to some text when it is hovered over. The jQuery dialog takes a position parameter which is measured from the top left corner of the current viewport (in other words, `[0, 0]` will always put it in the...
[ 0.019225316122174263, -0.11297735571861267, 0.992643415927887, 0.016293993219733238, 0.024057554081082344, -0.005353778600692749, -0.2504480183124542, 0.3202953636646271, -0.045935504138469696, -0.8418667912483215, 0.19328083097934723, 0.36341288685798645, 0.15490910410881042, 0.0293192081...
be something like 1200 or so, which puts the dialog well below the rest of the content on the page. ``` $(".mytext").mouseover(function() { position = $(this).position(); $("#dialog").dialog('option', 'position', [position.top, position.left]); } ``` How can I find the correct position? Thanks! Check out so...
[ 0.18498608469963074, -0.4741261303424835, 0.6347106099128723, 0.1336187720298767, 0.37341201305389404, 0.0025466468650847673, -0.046788834035396576, -0.06304890662431717, -0.01085353922098875, -0.8799333572387695, -0.10219035297632217, 0.7685640454292297, 0.10539629310369492, -0.2973792850...
I'm trying to write a helper method that accepts the name of a plural resource and returns a corresponding link. The essence of the method is: ``` def get_link(resource) link_to "#{resource.capitalize}", resource_path end ``` —Clearly the `resource_path` part above doesn't work. What I'd like is to be able to pass...
[ -0.35520774126052856, 0.24813924729824066, 0.4226895272731781, -0.08142479509115219, -0.11319182813167572, -0.011536511592566967, 0.22828075289726257, -0.06023551523685455, 0.1477188616991043, -0.6556068658828735, -0.07508568465709686, 0.5151731371879578, -0.599704921245575, 0.187586963176...
I'm engaged in a project with a customer that requires MOSS to be installed for Internet and Intranet. Unfortunately the client does not know what he wants. Is there a systematic appraoch usually used to gather MOSS requirement such as a set of questions usually business analysts ask to clear the direction and to manag...
[ 0.23496882617473602, -0.07820385694503784, 0.3109479546546936, 0.0830407589673996, 0.3096480667591095, -0.13588882982730865, -0.11870096623897552, -0.12320713698863983, -0.1733817607164383, -0.5880839824676514, 0.1861584335565567, 0.43767181038856506, 0.05725828558206558, 0.026994876563549...
one, we ask the MOSS designer to reflect the PSD files on a MOSS site for showing as a demo. Do you use another approach? Deploying MOSS in a production environment requires a lot of planning. Initially everyone is just thrilled because of how easy MOSS is to set up and suddenly you have collaboration sites and wiki's ...
[ 0.3496467173099518, -0.06015527993440628, -0.05044052377343178, 0.03555917367339134, 0.12427999079227448, -0.01282248180359602, -0.2512698173522949, -0.009530333802103996, -0.15052467584609985, -0.7015563249588013, 0.2336432784795761, 0.34400370717048645, -0.0022457914892584085, 0.02151423...
get you started: * Downloadable Book: [Planning and Architecture for Office SharePoint Server 2007](http://technet.microsoft.com/en-us/library/cc262757.aspx) * [Planning Overall Design](http://technet.microsoft.com/en-us/library/cc262612.aspx) * [Capacity Planning](http://technet.microsoft.com/en-us/library/bb961988.a...
[ 0.4824058413505554, -0.2322804480791092, 0.1620599925518036, 0.1251298040151596, 0.2547667324542999, -0.08901629596948624, -0.04897664859890938, -0.07446335256099701, -0.48028233647346497, -0.8311925530433655, -0.18648077547550201, 0.5369271039962769, 0.20283186435699463, 0.027857244014739...
a 6 month project that is nearing completion at the end of April. Good Luck.
[ 0.5024163722991943, 0.0037045187782496214, 0.9865170121192932, 0.07341711223125458, 0.4712138772010803, -0.1755618155002594, 0.7289974093437195, 0.5200383067131042, -0.2516952455043793, -0.7711344957351685, 0.09578375518321991, 0.012633847072720528, 0.5578536987304688, -0.0650843158364296,...
We are trying to do a loose-integration of our product with another in the company. Ours has both a windows and web client, theirs is entirely on the web. In short they've made a landing page for us that accepts some parameters and we simply make a GET to that URL to transition the user into the other application. The...
[ 0.7326187491416931, 0.16996049880981445, 0.23282091319561005, 0.07919581979513168, 0.18934056162834167, -0.1066221073269844, 0.25191354751586914, -0.10289154946804047, 0.03219253569841385, -0.762942373752594, 0.0355951227247715, 0.5414036512374878, 0.0398205891251564, 0.18220342695713043, ...
window name parameter it always opens in the same tab/window. The tricky issue is in the winforms application all I'm doing is launching the default browser to the URL: ``` Process.Start('http://theotherappsurl.com'); ``` Which brings me to my question - is there any way to target existing instances of a browser wi...
[ 0.37673425674438477, 0.22664979100227356, 0.46020588278770447, -0.17903155088424683, -0.2952035963535309, -0.14709654450416565, 0.21739155054092407, 0.17743943631649017, 0.06972384452819824, -0.9748296737670898, -0.15609991550445557, 0.7869423627853394, -0.18795767426490784, 0.262305021286...
NAT traversal problems. Additionally, you're going to deal with standard embedded systems problems, i.e. you can't tax the CPU and expect network performance to stay high. The solutions are the same as those on the desktop, e.g. having a central "game server" that mitigates the NAT traversal issues and moves "hit" dete...
[ 0.0153880650177598, -0.24609710276126862, 0.07195983082056046, 0.5915164351463318, -0.09080363810062408, -0.2619878351688385, 0.24159233272075653, -0.1473320871591568, -0.26919063925743103, -0.8006538152694702, -0.07443180680274963, 0.94961017370224, -0.14743052423000336, -0.34493330121040...
Golf - implement a simple templating scheme. Expansions are: * %KEY% -> VALUE * %% -> % Command line arguments: * ARG1: dictionary file, formatted in the `key=value` style as in example * ARG2: template file Here my not quite golf attempt(python): 261 chars. ``` import sys dd = dict([ll.split("=",2) for ll in...
[ 0.17904174327850342, 0.23399950563907623, 0.6328179836273193, -0.21130730211734772, 0.031154032796621323, -0.03478497639298439, -0.0557858869433403, -0.5827209949493408, 0.13834993541240692, -0.0765519067645073, -0.05805704742670059, 0.8531970381736755, 0.049308400601148605, -0.39947125315...
this is a waste of time. ``` Yes, I realize this is a defective templating system, "snaps" for a shorter and better implementation. In Python, you could leverage the inbuilt string formatting to make it shorter. Just needs a little regex hacking to get the syntax to match. ``` import sys, re sys.stdout.write(re.sub(...
[ 0.1446838676929474, 0.13206085562705994, 0.3839982748031616, -0.2962474226951599, -0.002178129507228732, 0.15262959897518158, 0.11502781510353088, -0.3651726245880127, -0.2396090179681778, -0.28810980916023254, -0.12949378788471222, 0.6517144441604614, -0.3705461621284485, -0.0692017525434...
This morning, I read a very good question about what the person should expect from a Sharepoint position. I have a similar question about server side engineering. What can I expect from server side engineering positions, and how is it similar and different from desktop development? I have experience with WinForms, WP...
[ 0.3313930332660675, 0.09999384731054306, -0.08311229199171066, 0.17025278508663177, 0.1463181972503662, 0.031006496399641037, -0.2072213888168335, -0.06934499740600586, 0.02973719872534275, -0.9665644764900208, 0.2664943337440491, 0.6713641285896301, 0.26832324266433716, -0.003086259821429...
with the server side engineer title, so I really am not sure what those kinds of skills are like. They are very different worlds. I've worked both sides of the camp, but mostly server side. I work classic client-server rather than web though (yes, we are still around). * Client-side is all about user interaction, serv...
[ 0.2952452003955841, 0.07735414803028107, -0.000042359588405815884, 0.09929201006889343, -0.2500256896018982, -0.2154247909784317, -0.014713272452354431, 0.33692666888237, -0.28357717394828796, -0.6393764615058899, 0.175093874335289, 0.4740661382675171, 0.14026877284049988, 0.18128408491611...
persistent. Resource management is therefore paramount: leaks mean death. Memory leaks, handle leaks, heap fragmentation. You end up dreaming about this stuff. I got dragged to Spain on 24 hours notice because one system could blow the top off the Windows DDE memory allocator in an anomalous condition, which tells you ...
[ -0.2526647448539734, 0.05232018977403641, 0.5323935151100159, 0.10049904882907867, 0.06521662324666977, -0.1046057641506195, 0.37082886695861816, 0.4491375982761383, -0.8033655881881714, -0.560832142829895, -0.09911642968654633, 0.7723231315612793, -0.13047869503498077, 0.16749237477779388...
figures like I used to in my firmware days, but it's getting close. * Security becomes important, but less than you might think. Not every server application is internet-facing. Think in terms of levels of access, limiting access through views etc. * Once upon a time server-side always meant native, but that's changing...
[ 0.5215017199516296, -0.168104350566864, 0.36074143648147583, 0.24437688291072845, -0.12488802522420883, 0.21290265023708344, 0.2780568301677704, 0.18306906521320343, -0.7433910369873047, -0.853824257850647, 0.34221941232681274, 0.20555417239665985, -0.11367526650428772, 0.4262377917766571,...
pools and queuing. As far as "managers" are concerned, there are really two types of requirement here, one is reporting for SysAdms, and one is reporting for be-suited management types. SysAdms need help with fault-finding, which I take to be systemic faults that happen to impinge on your applications (network outages...
[ 0.3238937556743622, -0.011017836630344391, 0.23990097641944885, 0.28384846448898315, 0.05547730252146721, -0.13286080956459045, -0.09223119169473648, -0.2660965025424957, -0.458784282207489, -0.4937153458595276, 0.05682280659675598, 0.7757011651992798, -0.05780916288495064, -0.045566502958...
all the time, because you don't know when you'll *really* need it. But no matter how much information you give them, only the very best SysAdms won't pick up the phone and ring you when the ordure hits the air movement device. Managers need medium to long term performance reporting, how many queries per day/week/month...
[ 0.49889281392097473, 0.12405136972665787, 0.45334985852241516, 0.047354575246572495, -0.09252579510211945, -0.1513245552778244, 0.26513418555259705, -0.035909347236156464, -0.3280840814113617, -0.5410643219947815, -0.046691056340932846, 0.5706780552864075, 0.3127916157245636, -0.2254567146...
even those aren't necessarily real-time. You can suck this kind of stuff out of a database on a poll. As a server-side guy, you might have to design some views to facilitate this reporting, but most of your work aims at the anomalous conditions that interest SysAdms. At least, in my experience that's the case. But bear...
[ 0.26560595631599426, 0.2515040934085846, -0.15286360681056976, 0.16120882332324982, -0.07244129478931427, -0.027371469885110855, 0.1278442144393921, 0.4548920691013336, -0.4182267487049103, -0.11388646811246872, -0.07659728825092316, 0.7495377659797668, 0.10454828292131424, -0.238002344965...
coping mechanism.
[ -0.2974504828453064, 0.263908326625824, 0.16175666451454163, 0.06795414537191391, 0.12990684807300568, 0.3476666212081909, 0.5087122917175293, -0.5222516655921936, -0.1957293599843979, -0.6709824204444885, 0.052487704902887344, 0.4208415150642395, -0.06634438037872314, 0.008052688091993332...
Do you know an API that lets you trade with real life stock or currency? If so, please describe your experience: * ease of development * commissions * sandbox environment? * etc. AFAIK, [TradeStation](http://www.tradestation.com/automated_trading/auto_trading.shtm) is the most famous of the lot. Most other trading so...
[ 0.6053429245948792, 0.0017352234572172165, 0.1698288470506668, 0.24986058473587036, 0.17124046385288239, -0.23051613569259644, -0.34505459666252136, 0.3028223514556885, -0.3940789997577667, -0.11751965433359146, 0.2529197335243225, 0.2727355360984802, -0.024958377704024315, 0.2646706998348...
When you write an app that will have vast number of classes, do you use prefixes/suffixes for your class names? Or should I just rely on the namespaces I already define? In my case, I have classes like: ``` Blur Contrast Sharpen Invert ... ``` I just don't know what I might have tomorrow, and want to be collision f...
[ 0.19973860681056976, 0.18286584317684174, -0.050743468105793, 0.28504085540771484, -0.15522529184818268, 0.024477403610944748, 0.02654453180730343, 0.4253828227519989, -0.16042686998844147, -1.0051082372665405, 0.008759872987866402, 0.5617178082466125, -0.29767733812332153, -0.133559480309...
I got the question in the interview. I had a difficulty in answering it. I was not sure where I should start. Finally, I discussed how the question is related to compilers and to their construction. I was not sure what "compilers' integers" mean exactly. It seems to me now that the word compiler was to confuse candid...
[ 0.5832038521766663, 0.1477503627538681, 0.20786839723587036, 0.3193468451499939, 0.03446472808718681, 0.38575753569602966, -0.09457390010356903, -0.21049857139587402, -0.4006991684436798, -0.46946799755096436, 0.015487097203731537, 0.3204282820224762, 0.26409587264060974, -0.01535811275243...
instructions eventually make their way back down the memory hierarchy to the [RAM](http://en.wikipedia.org/wiki/RAM) where they can be accessed by [memory pointers](http://en.wikipedia.org/wiki/Pointer_(computing)). The [compiler](http://en.wikipedia.org/wiki/Compiler) is in charge of creating the assembly language wh...
[ 0.20796211063861847, 0.25390225648880005, -0.009835664182901382, 0.21310585737228394, 0.13255463540554047, 0.3388517200946808, 0.10981445759534836, -0.08302521705627441, -0.1420832872390747, -0.42003199458122253, -0.3723846971988678, 0.363398939371109, 0.002811730606481433, -0.047347288578...
What is an easy way to save/load settings? I'd prefer it if each user has their own set of settings. If this is a desktop application, the best way to store application and/or user specific settings is to use the builtin methods. [Using Settings in C#](http://msdn.microsoft.com/en-us/library/aa730869.aspx) **EDIT** [...
[ -0.02426379919052124, 0.032910626381635666, 0.1891421675682068, 0.3128126561641693, 0.30908313393592834, 0.14068159461021423, -0.115268275141716, 0.0070679341442883015, -0.26583656668663025, -0.7555604577064514, -0.1314205378293991, 0.7710666656494141, -0.11978045850992203, -0.164717912673...
Microsoft provides the source code of vshadow to manipulate VSS (Volume Shadow Service [shadow copy]), and I've modified it a bit but I want to make it into a dll so I can use it in my C# projects. I don't know exactly how to go about doing that, the source code is fairly simple, and it shouldn't be too hard, but I don...
[ 0.6437429785728455, 0.0022972426377236843, 0.6024079322814941, -0.022663671523332596, -0.16775347292423248, -0.10498997569084167, 0.08279255032539368, 0.06557843089103699, 0.03937312588095665, -0.5571420788764954, 0.14174218475818634, 0.41082581877708435, -0.29749056696891785, 0.0321796946...
in Visual Studio to create a DLL. In addition you will need to define dll entry points. However, the VSS is a set of COM API's, so you can call them directly from C# with pinvoke, instead of using this wrapper C++ executable. Since the SDK only contains libs, not DLL's you'll have to create a dll project to use it. ...
[ 0.6014336347579956, -0.16567079722881317, 0.2915705740451813, 0.025125961750745773, -0.3482844829559326, -0.4884468615055084, 0.19770336151123047, 0.20407725870609283, -0.26830676198005676, -0.6094649434089661, -0.34025469422340393, 0.6491804122924805, -0.10654760152101517, -0.016182594001...
G'day, I have been involved in a project that has required my becoming familiar with several new technologies because several tasks were left off the project plan. I just figured that I'd dive and and learn what was needed to get the various jobs done. Generally, this learning was done on my own time. So far the list...
[ 0.2250690907239914, -0.03333396837115288, 0.41071027517318726, 0.10326910763978958, 0.08435507863759995, 0.04102129116654396, -0.3731937110424042, 0.296762615442276, -0.4856041371822357, -0.858770489692688, -0.269459068775177, 0.7777459621429443, 0.00206145946867764, 0.18665596842765808, ...
people who insisted that they had to go on the Solaris Cluster course before they could do anything are too busy to help. At what point do people insist on being sent on training courses? What approach do you use to get such training and how do you justify it? BTW I'm extremely lucky that the project manager knows th...
[ 0.7196549773216248, 0.048870425671339035, -0.009277748875319958, -0.10061164945363998, -0.11809661239385605, -0.24195322394371033, 0.11243483424186707, 0.4215399920940399, -0.2187168449163437, -0.1902524083852768, -0.23321391642093658, 0.33618056774139404, 0.36217552423477173, 0.3163450956...
requires you to do some work in a technology that you are not versed in, and you went into the job with all parties knowing that you didn't know that technology, then it is the responsibility of the employer (IMO) to: * Provide time for you to learn the material on your own * Send you on a course to learn the material...
[ 0.7148469090461731, 0.2544113099575043, -0.1762811839580536, 0.101899154484272, 0.37610551714897156, -0.08317085355520248, -0.032756686210632324, -0.27646884322166443, -0.2782166302204132, -0.5744277834892273, -0.42260241508483887, 0.55080646276474, 0.5772113800048828, -0.18278904259204865...
PHP seems to use a rather annoying method for setting the evnironment timezone, using region names rather than the GMT offset. This makes having a timezone dropdown a huge pain, because it either has to be huge to accommodate all possible PHP timezone values, or I have to find a way to convert a GMT offset to a valid v...
[ 0.03224636986851692, -0.052746303379535675, 0.47716861963272095, 0.2143452912569046, -0.13351532816886902, -0.2114211469888687, 0.14674468338489532, 0.019499219954013824, -0.23947516083717346, -0.314491331577301, 0.17823302745819092, 0.3750307261943817, -0.04015611112117767, 0.027962863445...
is the *right* way to describe a time zone. Using a GMT offset on its own is hugely ambiguous. This is reflected in your question - how should you convert a GMT offset of -8 into a time zone? Well, that depends on what "GMT -8" really means. Does it mean "UTC -8 at every point in time" or does it mean "UTC -8 during w...
[ 0.2107342928647995, -0.2598227858543396, 0.5354730486869812, 0.3569808900356293, -0.07945039868354797, -0.003782430663704872, 0.07915020734071732, 0.25680652260780334, -0.4089505970478058, -0.3005642294883728, -0.09403066337108612, 0.1738528311252594, 0.11266393959522247, 0.136098846793174...
"Etc/GMT+3" etc. But unless you really, really mean a fixed time zone, you're better off finding out which region you're actually talking about, because otherwise your calculations are almost guaranteed to be wrong at some point. I've been wrestling with time zones for most of the last year. They're a pain - *particul...
[ 0.5586406588554382, -0.08873774111270905, 0.6278988122940063, 0.004052917007356882, -0.012869386002421379, -0.2848946452140808, 0.3187215030193329, 0.5089099407196045, -0.4427439570426941, -0.4904113709926605, -0.04650409147143364, -0.0017429215367883444, -0.12301807850599289, 0.3973292708...
instant in time, it might be okay - but at that point you might as well just store the UTC value in the first place. Otherwise, a name is the best approach. (It's not necessarily plain sailing at that point, mind you. Even the names change over time...)
[ 0.020079968497157097, -0.4515756070613861, 0.14705246686935425, 0.45687469840049744, 0.2320529669523239, 0.08524268865585327, -0.10428247600793839, 0.381327748298645, -0.3041468560695648, -0.5577613115310669, 0.1094813346862793, 0.20624619722366333, 0.08116243779659271, -0.0716159492731094...
I want to pull certain comments from my py files that give context to translations, rather than manually editing the .pot file basically i want to go from this python file: ``` # For Translators: some useful info about the sentence below _("Some string blah blah") ``` to this pot file: ``` # For Translators: some u...
[ 0.3807463049888611, 0.47084689140319824, 0.4066009819507599, -0.1420634537935257, -0.5284713506698608, 0.12552008032798767, 0.4311191141605377, -0.015390651300549507, -0.06263437122106552, -0.8340139389038086, -0.11976552754640579, 0.530128002166748, -0.3511500358581543, -0.093954563140869...
What is the best way to have many children records pointing to one parent record in the same model/table in Django? Is this implementation correct?: ``` class TABLE(models.Model): id = models.AutoField(primary_key=True) parent = models.ForeignKey("TABLE", unique=False) ``` Django has a special syntax for For...
[ -0.04873303696513176, 0.46725526452064514, 0.14732961356639862, -0.11826702207326889, -0.05051153898239136, -0.12309930473566055, 0.05243264511227608, 0.03480091691017151, -0.2867854833602905, -0.2738404870033264, 0.09580183774232864, 0.5041053891181946, -0.19006305932998657, 0.06586909294...
I used to develop Java on the mac and it worked out well, combo of just using the terminal and IntelliJ. What are good tools that run on the mac for doing Ruby development Most of the Rails people develop on Macs and use [TextMate](http://macromates.com/). As a result, TextMate has great support for Ruby *and* Rails, a...
[ -0.05004262179136276, 0.21323560178279877, 0.005951268598437309, -0.3050521910190582, -0.059956617653369904, 0.0295407734811306, 0.39249932765960693, 0.293040007352829, -0.04876029118895531, -0.8144702315330505, 0.23857128620147705, 0.7561964392662048, -0.2700868546962738, -0.1790316998958...
I am using the jquery slider and using append() to update the value, but it will keep adding it unless I empty it on the start event. Is there a way where I can just updated the value instead of printing it out every time the action takes place. i tried replaceWith but no luck there. ``` start: function(event, ui){ ...
[ 0.01671873964369297, -0.19214090704917908, 0.7861790657043457, -0.19348153471946716, 0.005844481289386749, -0.12685896456241608, 0.1074909046292305, -0.1700146645307541, -0.16539157927036285, -0.5239580869674683, -0.2959224283695221, 0.7855909466743469, -0.2210519164800644, 0.1893842965364...
Is it faster to use 1 type of provider over the other? We are using SSIS (SQL Server 2005) to pull some data from Oracle and import it into SQL Server. It was my understanding that OLEDB is faster, because the connection is native, and the data isn't being run through any .NET code? Is this correct? OLEBD will work f...
[ -0.0688985213637352, 0.09602133929729462, 0.14411401748657227, 0.1662762314081192, -0.14053328335285187, -0.0820465013384819, -0.2011682093143463, 0.05928583815693855, -0.3004376292228699, -0.5448232293128967, 0.18082132935523987, 0.6918854713439941, -0.3199627995491028, 0.0931954607367515...
a lot on ssis 2008 (writing performance was horrible).
[ -0.1696198433637619, 0.2218538075685501, -0.019104786217212677, 0.07194767147302628, -0.5065633058547974, -0.07589004188776016, 0.6495978236198425, 0.2156664878129959, -0.028744740411639214, -0.31596580147743225, 0.5350350737571716, 0.5071591138839722, 0.26185277104377747, 0.02908910065889...
I am using the getResponseBody() method of the org.apache.commons.httpclient.methods.PostMethod class. However, I am always getting a message written to the console at runtime: *WARNING: Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.* In the code I have t...
[ 0.09272051602602005, 0.10819998383522034, 0.5243120789527893, -0.2707482576370239, -0.182756707072258, -0.20917294919490814, 0.5362163186073303, -0.0503418892621994, -0.18078415095806122, -0.7311496138572693, -0.20813822746276855, 0.6527303457260132, -0.16458170115947723, -0.03497098758816...
compile-time issue; it happens at runtime. Also, I could use getResponseBodyAsStream to write to a ByteArrayOutputStream, but this seems like a hacky way to get around the warning (extra lines of code to do what getResponseBody() is already doing for me). My guess is that the answer involves System.out or System.err m...
[ 0.08661390095949173, -0.12522539496421814, 0.27332624793052673, 0.14843633770942688, 0.0413665696978569, 0.0680076852440834, 0.21029235422611237, 0.037956610321998596, -0.38064661622047424, -0.5272122025489807, 0.036058470606803894, 0.4759928584098816, -0.1603473275899887, 0.09676910936832...
and that'd be a very bad thing. You're really better off using streams. That said, you might hack around it by replacing System.err or System.out temporarily. They're just `PrintStream` objects, and they're settable with the setOut and setErr methods. ``` PrintStream oldErr = System.err; PrintStream newErr = new Pr...
[ 0.24926652014255524, 0.021722523495554924, 0.5166996121406555, -0.0013021599734202027, -0.05721404775977135, -0.0357726588845253, 0.0573149211704731, -0.3574329912662506, -0.3522275388240814, -0.8777977228164673, 0.014357552863657475, 0.5880083441734314, -0.4304831624031067, 0.080060116946...
stream; that would be better. The > warning is definitely there for a > reason.* If you can modify the API, do so. Stream processing is the best way to go in this case. If you can't due to internal pressures or whatever, go [@John M](https://stackoverflow.com/questions/745022/whats-the-best-way-to-suppress-a-runtime...
[ 0.19483442604541779, -0.20923195779323578, 0.25888147950172424, 0.10483676940202713, 0.04124867916107178, -0.37319305539131165, 0.5091257095336914, 0.27716657519340515, -0.0842089131474495, -0.7513969540596008, -0.20804338157176971, 0.7426457405090332, -0.28409674763679504, -0.080480299890...
I am using offset() with the jquery slider and I am so close to achieving my goal, but it is off slighty. I have it animating using animate to the top CSS coordinates but if you check out: <http://www.ryancoughlin.com/demos/interactive-slider/index.html> - you will see what it is doing. My goal is to have it fadeIn() a...
[ 0.03867815062403679, -0.08506246656179428, 0.7124961018562317, -0.1893049031496048, -0.11064079403877258, 0.1049669161438942, -0.04216644912958145, -0.21127071976661682, 0.17307032644748688, -0.727590799331665, 0.22063791751861572, 0.564681351184845, -0.20991040766239166, 0.052042201161384...
() { $("div#info").toggle("slow"); }); $('#slider').slider({ animate: true, step: 1, min: 1, orientation: 'vertical', max: 10, start: function(event, ui){ $('#current_value').empty(); slide_int = setInterval(update_slider, 10);
[ -0.021764934062957764, -0.4300331771373749, 1.1400609016418457, -0.250711590051651, 0.2921006381511688, 0.2896868586540222, 0.11687766760587692, -0.32404187321662903, -0.15100876986980438, -0.4040296673774719, -0.4214407503604889, 0.5997738242149353, -0.39114710688591003, 0.173371106386184...
}, slide: function(event, ui){ setTimeout(update_slider, 10); }, stop: function(event, ui){ clearInterval(slide_int); slide_int = null; } }); }); function update_slider(){ var offset = $('.ui-slider-handle').offset();
[ -0.057922907173633575, -0.41496148705482483, 0.8838713765144348, -0.4161550998687744, 0.10623792558908463, 0.32542893290519714, -0.12931446731090546, -0.37039706110954285, -0.05400112643837929, -0.33813756704330444, -0.5086431503295898, 0.7037134170532227, -0.3300314247608185, -0.027580991...
var value = $('#slider').slider('option', 'value'); $('#current_value').text('Value is '+value).css({top:offset.top }); $('#current_value').fadeIn(); } ``` I know I could use margin to offset it to match, but is there a better way? There are two problems. The first, like Prestaul said, the slider event fire...
[ -0.03979099169373512, -0.11381513625383377, 0.7308414578437805, -0.3023826777935028, 0.00677916593849659, 0.07936298102140427, 0.016709953546524048, -0.5073672533035278, 0.08312184363603592, -0.38148367404937744, -0.03408389538526535, 0.8058016300201416, -0.2272326946258545, 0.125442802906...
var value = $('#slider').slider('option', 'value'); $('#current_value').text('Value is '+value).animate({top:offset.top }, 1000 ) $('#current_value').fadeIn(); } ``` The second problem is that the move is instantaneous, while the animation is not, meaning that the label will lag behind the slider. The best I'...
[ -0.0470287948846817, -0.2521975338459015, 1.071965217590332, -0.3811098337173462, 0.1004466712474823, 0.169418603181839, 0.2473970502614975, -0.29634732007980347, -0.07771686464548111, -0.5491319894790649, -0.2750629484653473, 0.6884227395057678, -0.23297691345214844, 0.16272860765457153, ...
stop: function(event, ui){ // remove the interval clearInterval(slide_int); slide_int = null; }, ... }); function update_slider() { var offset = $('.ui-slider-handle').offset(); var value = $('#slider').slider('option', 'value'); $('#current_value').text('Value is '+value)....
[ -0.03813072293996811, -0.3264768123626709, 0.6785224080085754, -0.20567308366298676, 0.18618305027484894, 0.0704651027917862, 0.12267032265663147, 0.06855893135070801, -0.2814229726791382, -0.2692062556743622, -0.5984755158424377, 0.41790202260017395, -0.3551914691925049, -0.01165575999766...
I know I can start a new worker thread from with .NET. But how do I start a new UI thread (like in MFC)? I don't mind if the solution is restricted to Windows boxes only; I also would like the solution to be purely .NET - no p/invokes to CreateThread, etc. Any input appreciated. Use [`Application.Run`](http://msdn.mi...
[ 0.5690221190452576, -0.010629776865243912, 0.3395578861236572, -0.028875071555376053, -0.09681599587202072, -0.1999564915895462, 0.35255375504493713, 0.08673892915248871, -0.2959553599357605, -0.8468042612075806, -0.0200270377099514, 0.2607475221157074, -0.29520487785339355, 0.304564237594...
the normal way, and make it call `Application.Run`.)
[ 0.37247613072395325, 0.03237854316830635, 0.3262966275215149, -0.016205141320824623, 0.27836382389068604, -0.15094564855098724, 0.41350460052490234, -0.011961368843913078, 0.07406652718782425, -0.3060793876647949, -0.4232605993747711, 0.7994979023933411, -0.41818392276763916, 0.08760316669...
I'm looking for a server app to be routinely generating certificates for client applications using self-signed root. Is there any streamlined process in .NET to programmatically generate those certificates? I can, of course, keep spawning makecert or openssl, but I was looking for more programmatic, in-memory method, ...
[ 0.4527823030948639, 0.1085260808467865, -0.016086241230368614, 0.035779405385255814, -0.2264425903558731, -0.33140039443969727, 0.2621408998966217, 0.323903888463974, -0.4098035991191864, -0.6619287729263306, 0.15361949801445007, 0.1765197217464447, -0.20912806689739227, 0.3259738981723785...
every one know the famous hanoi prolog and you can find it [HERE](http://www.csupomona.edu/~jrfisher/www/prolog_tutorial/2_3.html) and its great but when i write this query move(3,left,right,center). its not showing these results ``` Move top disk from left to right Move top disk from left to center Move top disk ...
[ -0.27912601828575134, 0.3680008053779602, 0.3852951228618622, -0.051287028938531876, 0.07474803179502487, 0.05889827013015747, -0.007539607584476471, -0.1702588051557541, -0.5264866948127747, -0.3660729229450226, -0.18664684891700745, 0.33423271775245667, -0.21318235993385315, -0.120152987...