text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
with a bunch of ";"s included inside other code, and then try it without the ";"s and see if there's a difference. (Without doing either of these I'd bet quite a lot that it's optimized away and produces no IL (or some kind of no-op instruction -- pardon my IL ignorance.))
[ 0.4582059383392334, -0.004326760768890381, 0.0021292136516422033, 0.1788426637649536, 0.14574860036373138, -0.0011387496488168836, 0.27124181389808655, -0.09857939183712006, 0.15564857423305511, -0.57823646068573, -0.38944336771965027, 0.6749216914176941, -0.2680424749851227, -0.3451445400...
I'm new to Regular Expressions and things like that. I have only few knowledge and I think my current problem is about them. I have a webpage, that contains text. I want to get links from the webpage that are only in `SPAN`s that have `class="img"`. I go through those steps. 1. grab all the `SPAN`s tagged with the "...
[ 0.5613911747932434, 0.27198296785354614, 0.5048403143882751, -0.16824449598789215, -0.35977262258529663, -0.17057587206363678, 0.485094279050827, -0.08438397198915482, -0.1271643042564392, -0.7015751004219055, 0.09443597495555878, 0.6809341311454773, -0.2570161819458008, -0.079634219408035...
language doesn't matter, I'm looking how to deal with the first step. Any one have a suggestion? Thanks :D Use PHPs [DOMDocument](http://php.net/manual/en/class.domdocument.php)-class in combination with the [DOMXPath](http://php.net/manual/en/class.domxpath.php)-class to navigate to the elements you need, like this: ...
[ 0.0423470214009285, 0.09094186872243881, 0.5912134051322937, -0.17543211579322815, -0.15033213794231415, 0.13424208760261536, 0.3410000205039978, -0.3380967676639557, -0.2441934049129486, -0.4823532998561859, -0.2635688781738281, 0.718633770942688, -0.39288777112960815, -0.1896937191486358...
I have the following code to do a postback to a remote URL: ``` request = urllib2.Request('http://www.example.com', postBackData, { 'User-Agent' : 'My User Agent' }) try: response = urllib2.urlopen(request) except urllib2.HTTPError, e: checksLogger.error('HTTPError = ' + str(e.code)) except urllib2.URLError,...
[ 0.04163714870810509, 0.2671840488910675, 0.41147834062576294, -0.1297958791255951, -0.058122847229242325, 0.08717186748981476, 0.348850280046463, -0.18012870848178864, -0.06708253175020218, -0.6219019889831543, -0.17188946902751923, 0.23113974928855896, -0.2629985511302948, 0.4408774077892...
exit stack dump / error is at this time). I'm assuming this is because there is an exception and/or error that is not being handled. So are there any other exceptions that might be triggered that I'm not handling above? Add generic exception handler: ``` request = urllib2.Request('http://www.example.com', postBackData...
[ -0.3134390413761139, 0.04939160868525505, 0.5445965528488159, -0.0934390053153038, 0.012531032785773277, -0.12672537565231323, 0.4768785238265991, -0.4407031536102295, -0.2866668105125427, -0.5679563283920288, -0.32508584856987, 0.39427924156188965, -0.3235186040401459, 0.1024094894528389,...
Silverlight 3.0 beta has just been announced at Microsofts Mix Conference in Las Vegas. Two features of the new beta are 3D-graphics and the ability to run applications outside of the browser, which to me seemed to be two of the major features that WPF (Windows Presentation Foundation) previously offered over silverli...
[ 0.4597310721874237, 0.01054706983268261, 0.37664344906806946, 0.006695873104035854, -0.3500143885612488, -0.41880011558532715, 0.24095816910266876, -0.2387957125902176, 0.14802971482276917, -0.6571270227432251, 0.01194007694721222, 0.18407252430915833, -0.2891496419906616, -0.0941693931818...
and if so, what drove you to that decision? Given the announced changes to silverlight, Would your decision have changed had you made it now, and if not, why? Any advice would be appreciated. The biggest difference I find is the asynchronous model you have to adopt in your Silverlight application. It does seems like...
[ 0.6142081022262573, 0.046945083886384964, 0.08567243814468384, 0.14396819472312927, -0.18075460195541382, -0.3532367944717407, -0.16162815690040588, -0.23992572724819183, -0.3277513086795807, -0.6158382296562195, 0.19470134377479553, 0.5121070742607117, -0.0803910568356514, 0.2048238366842...
the absence of print support (it will come, we just don't know when) - Camera/Microphone support is not needed - Can tolerate the assync app/development model - Can tolerate limitations on WCF (no support for WS-Security at this point) - There is no need to store huge amount of data on the client. - There is no need to...
[ 0.04265839606523514, 0.10284481942653656, 0.613042950630188, 0.21230429410934448, 0.13006162643432617, -0.3848898410797119, 0.283660352230072, -0.13708017766475677, -0.1870863139629364, -0.5862265229225159, -0.33602437376976013, 0.48813673853874207, -0.1265655755996704, -0.0623733252286911...
I would like to be able to see and monitor my internet data (http/emule/email) on my own PC using Windows XP. I am thinking of something like WireShark but I would like to control it programmatically. I would be using C or C++. How can I do this? WireShark uses [winpcap](http://www.winpcap.org/) to do it's thing. Wi...
[ 0.7270896434783936, -0.06844113022089005, 0.5263423919677734, 0.26778289675712585, -0.1351350098848343, -0.619009792804718, -0.23933221399784088, 0.010190839879214764, 0.01565803401172161, -0.5495607852935791, 0.2044050395488739, 0.7098802924156189, -0.21205130219459534, -0.112174525856971...
I have POC test to clearify is LoadRunner support WPF or not? Now it can run POC thought business but it have error with some type that locate in mscorlib.dll. I want to know how can I add reference of mscorlib.dll to LoadRunner? After POC with HP, LoadRunner 9.1 not support WPF and some aspect of .NET 3.5 feature.
[ 0.016430562362074852, -0.12980696558952332, 0.48790451884269714, 0.03579480201005936, -0.21230892837047577, -0.4488673806190491, 0.2400575429201126, 0.11883757263422012, -0.011364535428583622, -0.4456062316894531, 0.10599249601364136, 0.7120147347450256, -0.3132985532283783, 0.028780989348...
What is the difference between a stackpanel and a virtualizingstackpanel in WPF? A VirtualizingStackPanel **can** offer performance benefits when working with very large collections. It does so by only rendering and processing a subset of the data which is visible to the user vs. processing the entire list of data. By ...
[ 0.06692250072956085, -0.37038224935531616, 0.4851171672344208, 0.3221507966518402, -0.20082396268844604, -0.4091445803642273, -0.004857390653342009, -0.13540437817573547, -0.45164287090301514, -0.8024923205375671, -0.010041812434792519, 0.41124227643013, -0.13849975168704987, -0.1763705015...
a lot of data A StackPanel on the other hand, will up front create the controls for all elements contained within the StackPanel. The VirtualizingStackPanel MSDN page has a decent discussion: <http://msdn.microsoft.com/en-us/library/system.windows.controls.virtualizingstackpanel.aspx>
[ -0.2994702458381653, -0.1418033391237259, 0.49799925088882446, 0.34664997458457947, 0.2593463957309723, -0.13826467096805573, 0.05333082377910614, -0.08288907259702682, -0.4663538932800293, -0.5121768116950989, -0.06028847396373749, 0.21169458329677582, -0.1860773116350174, -0.246302321553...
Can continuations be said to be monads? Are they a subset of monads or are they simply a way of implementing monads? *Edit:* Or maybe I got it wrong and *monads* is a more abstract concept than *continuations*? (So I'm really comparing apples to oranges here) Briefly, since the 'bind' of a monad takes an effective con...
[ 0.17616643011569977, -0.41981059312820435, -0.01696489192545414, 0.059719815850257874, -0.18956606090068817, 0.016106577590107918, 0.23759396374225616, 0.1171853095293045, -0.2734389305114746, 0.01486594695597887, 0.0038914005272090435, 0.5087178349494934, -0.33959418535232544, -0.00524651...
'all about monads' tutorial in Haskell: <https://www.haskell.org/haskellwiki/All_About_Monads#The_Continuation_monad> An F# continuation monad, used to implement 'break' and 'continue' for for-style-loops <http://cs.hubfs.net/forums/thread/9311.aspx> And example of applying a continuation monad to a problem in F#: ...
[ 0.14617112278938293, -0.1466800570487976, 0.3015817701816559, 0.14789606630802155, 0.17482954263687134, -0.05735725164413452, 0.25759032368659973, 0.05009053274989128, -0.29093873500823975, -0.13955625891685486, -0.4491881728172302, 0.4572390913963318, -0.5719001293182373, -0.1243188753724...
I am using this class in php for autoloading. <http://pastebin.com/m75f95c3b> But when I have somewhere ``` class Bar extends Foo ``` And I have a file called foo.class.php it won't find the class. But when i chagne the filename to Foo.class.php it will find the class. I am trying to add some functionallity to my...
[ 0.40419358015060425, 0.40602076053619385, 0.30898329615592957, -0.261713445186615, -0.29529106616973877, -0.02187039516866207, 0.4368914067745209, 0.3868962824344635, -0.32536888122558594, -0.4623671770095825, 0.3814588487148285, 0.7797271609306335, -0.24378177523612976, 0.1970093846321106...
check whether a file with the class name capitalized exists or not, and if not then check whether lowercased version exists or not. That's definitely not better than Gumbo's solution. After all "your" programmers have to follow some conventions/rules.
[ 0.3296125829219818, 0.23123657703399658, -0.36641785502433777, 0.3192996382713318, -0.05496539920568466, -0.3571114242076874, 0.3224875330924988, 0.1959260106086731, -0.13510042428970337, -0.41341668367385864, 0.000021356896468205377, 0.708555281162262, -0.008778798393905163, -0.1896079927...
By default, a Cocoa-Python application uses the default Python runtime which is version 2.5. How can I configure my Xcode project so that it would use the newer Python 3.0 runtime? I tried replacing the Python.framework included in the project with the newer version but it did not work. And another thing, are PyObjc m...
[ 0.21768949925899506, 0.4686490297317505, 0.15120261907577515, -0.061854030936956406, -0.018484892323613167, -0.23389367759227753, 0.4077790677547455, 0.0037295788060873747, -0.3686709403991699, -0.37266913056373596, -0.15843592584133148, 0.42523691058158875, -0.5480023622512817, -0.2248356...
PyObjC contains a large amount of > pretty low-level C code, getting the > details w.r.t. to the changes in 3.0 > right is not easy. I have looked into > a Python 3.x port and this should be > fairly easy, but it's still a couple > of days work. I'm not planning to work > on that before the next release of > Py...
[ 0.2631184756755829, 0.19926241040229797, 0.2831951677799225, -0.16587522625923157, -0.05977281555533409, -0.25603199005126953, 0.2982304096221924, 0.19337424635887146, -0.0378609299659729, -0.5223357081413269, -0.01260492205619812, 0.4256459176540375, -0.4616352915763855, -0.08584770560264...
I am not using a pre-made shopping cart, I programming it myself. It works perfectly fine 99% of the time, but about once every couple months an order goes through for $0. I cannot figure out why. I make a test purchase with the same product and all the same info and I cannot get it to be $0 for me. I am not sure how t...
[ 0.6635912656784058, 0.1237107366323471, 0.21017807722091675, 0.23387035727500916, 0.09871981292963028, 0.21811360120773315, 0.10540010035037994, 0.3781421482563019, -0.149247407913208, -0.2971525192260742, 0.42715582251548767, 0.4303776025772095, -0.043409574776887894, 0.22596371173858643,...
of this. Since I cannot seem to duplicate the occurnace myself I am finding it hard to get to the bottom of the issue. Can anyone offer some advice on how to troubleshoot this? Thanks!! Ultimately, you'll want to figure out why this is happening. Without seeing your code, I can't really help you out much with that. In...
[ 0.3698071539402008, 0.02430805377662182, 0.3146889805793762, 0.2671237289905548, 0.3616205155849457, -0.08478289842605591, 0.2370554655790329, 0.28224480152130127, -0.25928574800491333, -0.5579833388328552, -0.12586316466331482, 0.5530179142951965, -0.1583721786737442, 0.20569343864917755,...
Suppose you have a nested element structure, for example a ContextMenu with MenuItems: ``` <ContextMenu Style="{StaticResource FooMenuStyle}"> <MenuItem Style="{StaticResource FooMenuItemStyle}"/> ... </ContextMenu> ``` You can easily apply styles or templates to the ContextMenu or MenuItem elements. But if ...
[ 0.10673699527978897, 0.03924095258116722, -0.039898090064525604, -0.06142056733369827, 0.20080231130123138, 0.040839966386556625, 0.17512211203575134, -0.36608317494392395, -0.02880529686808586, -0.7997569441795349, -0.07983583211898804, 0.39952269196510315, -0.2926754355430603, -0.0191831...
not seem to be possible. Edit: The Menu example is probably misleading since I was unaware of ItemContainerStyle and the intent was for a general solution. Based on the two answers I have come up with two solutions: one general variant and one for ItemContainerStyle and the like: ``` <Style x:Key="FooMenuItem" Target...
[ -0.1829087883234024, -0.17749802768230438, 0.5095537304878235, -0.11232954263687134, -0.07853124290704727, 0.3233644366264343, 0.19181303679943085, -0.19054710865020752, -0.14177310466766357, -0.509362518787384, -0.16112323105335236, 0.7944789528846741, -0.262332558631897, -0.0638327077031...
<Style TargetType="{x:Type MenuItem}" BasedOn="{StaticResource FooMenuItem}"/> </Style.Resources> </Style> <ContextMenu Style="{StaticResource FooMenu}"> <MenuItem/> </ContextMenu> ``` ``` <ContextMenu> <ContextMenu.Resources> <Style TargetType="{x:Type MenuItem}"> <!--Setters...
[ -0.07989652454853058, 0.07606077939271927, 0.5571227073669434, -0.3334427773952484, -0.06835538893938065, 0.15845291316509247, 0.1012275218963623, -0.18302911520004272, -0.1216793954372406, -0.6911578178405762, -0.3588360548019409, 0.5822670459747314, -0.20597174763679504, -0.2420924752950...
I have a function A(), that returns a pointer to an object. In function B() I try to change a member of that object in the following way: ``` void B() { ObjType o = *getObj(); o.set("abc"); } ``` Object o is stored in an array, and when I print the value of the member, it seems nothing happened, and the memb...
[ -0.02455400489270687, 0.26574963331222534, 0.20065242052078247, -0.34722259640693665, 0.0718555748462677, 0.22724519670009613, 0.26529765129089355, -0.19428035616874695, -0.17950066924095154, -0.6623415946960449, -0.14091141521930695, 0.31835511326789856, -0.6017960906028748, 0.35255047678...
explain this? The following line is most likely copying the object: ``` ObjType o = *getObj(); ``` That's why nothing happens. If you don't want to use a pointer as shown in your second snippet, you can use a reference like this: ``` ObjType& o = *getObj(); o.set("abc"); ```
[ 0.4788636863231659, 0.33810731768608093, 0.25139275193214417, 0.00167979602701962, 0.14897119998931885, -0.2752756178379059, 0.2732459008693695, 0.09652695059776306, 0.009577682241797447, -0.6704403162002563, -0.15948107838630676, 0.3534647822380066, -0.7515130043029785, 0.3161487877368927...
I've made a quite big domain model with entity framework. I wanted to know if it is possible to map it so i create automaticly the tables in the database wanted? I've looked up edmgen.exe but still couldn't find the right command. thank's for helping! Edit1: I know the tool LightSpeed from Mindscape ofer this featur...
[ 0.21548166871070862, -0.17496614158153534, 0.47605738043785095, 0.40261033177375793, -0.18989326059818268, -0.15162979066371918, 0.25875020027160645, 0.10872112959623337, -0.30688539147377014, -0.8503586649894714, 0.40571480989456177, 0.7032566070556641, 0.030136121436953545, 0.01896552555...
I have this value in a mysql database: "A+" it's the name of a magazine. I can see it sitting in the database, however i cannot manage to have it display via php. When i fetch the sql data, it outputs "A " I tried utfencode() utfdecode() htmlentities() ... to no avail. I fail to diagnose the problem. In case it matt...
[ 0.28801241517066956, 0.26745128631591797, 0.5194870829582214, -0.11790070682764053, -0.459105521440506, 0.13256262242794037, 0.4837559461593628, -0.14613427221775055, -0.10978438705205917, -0.3280159831047058, 0.09944023191928864, 0.4707460403442383, -0.19146573543548584, 0.038293622434139...
is interpreting it as the url encoded '+' sign, which can be interpreted as a space. Post some code and I'm sure somebody can give you a full answer.
[ 0.4963435232639313, 0.32413023710250854, 0.30725646018981934, 0.16691383719444275, -0.055619269609451294, -0.19615879654884338, 0.2846294641494751, 0.2989288866519928, 0.02332659810781479, -0.2891235649585724, -0.2612813413143158, -0.11463063210248947, 0.056939028203487396, 0.1842062175273...
We are about to setup a cruise control.net with and NAnt and TFS, do I need visual studio 2005/2008 with team explorer installed or can I make this work with just the [free Team explorer client](http://www.microsoft.com/download/en/details.aspx?id=329) Team Explorer will install the VS shell, which gives it enough of V...
[ 0.17126893997192383, -0.3901376724243164, 0.6276534795761108, 0.24774381518363953, 0.11830417066812515, -0.5053725838661194, 0.2176404446363449, -0.15197695791721344, 0.0026013676542788744, -0.699819028377533, 0.02316700480878353, 0.8884551525115967, -0.04797325283288956, -0.43770599365234...
the tftp.exe command line tool and the PowerShell Snapin for more command line operation.
[ 0.1417154222726822, -0.5979436635971069, -0.03927472233772278, 0.18337520956993103, -0.07052397727966309, -0.25777775049209595, -0.24543410539627075, 0.27667057514190674, -0.2290220856666565, -0.37020429968833923, -0.6612557172775269, 0.5337830185890198, -0.46242496371269226, -0.0439774692...
This is a follow up to my question "Efficiently storing 7.300.000.000 rows" ([Efficiently storing 7.300.000.000 rows](https://stackoverflow.com/questions/665614/efficiently-storing-7-300-000-000-rows)). I've decided to use MySQL with partitioning and the preliminary schema looks like this: ``` CREATE TABLE entity_val...
[ -0.4408138394355774, 0.12712296843528748, 0.7389386892318726, -0.017988193780183792, 0.05930734798312187, 0.023404745385050774, 0.020171407610177994, -0.3325752913951874, -0.25491178035736084, -0.646651566028595, -0.06995812058448792, 0.3622373044490814, -0.0955081656575203, 0.119986049830...
PARTITION BY HASH(entity_id) PARTITIONS 25; ``` This gives: * Rows = 7.300.000.000 rows (as per the requirements stated in the previous post) * Size/row = 11 bytes (3+2+3+3) * Total size = 7.300.000.000 rows \* 11 bytes = 80.300.000.000 bytes = 80.3 GB * Partitions = 25 (3.2 GB / partition, the partion size is somew...
[ -0.03456922248005867, 0.3780669569969177, 0.37774646282196045, -0.08794686198234558, 0.11006048321723938, 0.149287149310112, 0.004700723569840193, -0.25233665108680725, -0.4190276563167572, -0.8249579071998596, -0.06368353217840195, 0.29549235105514526, -0.06719890981912613, 0.427062302827...
above schema "optimal" given that I've decided to use MySQL? **Update:** I tried loading the current data set into the schema above and the 8.570.532 rows took 212.000.000 bytes worth of disk space, which gives roughly 24.7 bytes per row. **Update:** Please note that the index covering entity\_id+date\_id will be use...
[ 0.10383567959070206, 0.18373173475265503, 0.8526148200035095, -0.016096368432044983, 0.13051287829875946, 0.08724634349346161, 0.13085471093654633, -0.00030883707222528756, -0.3004145920276642, -0.9593127369880676, 0.07739214599132538, 0.4364435076713562, 0.11364449560642242, 0.35042881965...
point, you'll want to do it by dropping partitions, NOT by executing a delete which locks up every single partition for an incredibly long time (as it has to do a full table scan to find the rows to delete), then leaves your table no smaller as the partitions are full of holes. Partitioning by hash of entity\_id might...
[ -0.3144308030605316, -0.13896794617176056, 0.18612638115882874, 0.21507534384727478, 0.05613270029425621, -0.058235011994838715, -0.07072165608406067, 0.018963715061545372, -0.38089609146118164, -0.5278670787811279, 0.020233364775776863, 0.16333891451358795, -0.0061830561608076096, 0.21852...
in order to achieve concurrency and performance; this mandates a "no deletes" rule, meaning that you can only do deletes by dropping partitions. But dropping partitions is also good because you can get the disc space back. Having said all of this, 80G isn't that big and I might have been tempted to store it all in a ...
[ -0.17761091887950897, -0.008727247826755047, 0.2151172012090683, 0.10774147510528564, 0.06836912781000137, -0.11674477905035019, 0.05405227094888687, -0.01453249529004097, -0.6074703335762024, -0.5495705008506775, -0.09989713877439499, 0.41686248779296875, -0.3173125684261322, 0.5269156098...
enable efficient pruning. Please test this with your production data sizes and let us know what you find!
[ 0.5043203234672546, -0.22996987402439117, -0.0054977028630673885, 0.1851596236228943, 0.21403847634792328, 0.025108641013503075, 0.0689140260219574, 0.002366703702136874, -0.22304730117321014, -0.48992085456848145, 0.028956737369298935, 0.3014720678329468, 0.1511859893798828, -0.1752958446...
I need to write an application that accepts very simple doodles by users, kind of like in [tenthousandcents](http://www.tenthousandcents.com/) and [thesheepmarket](http://www.thesheepmarket.com/). For example, I might want users to write their name using their mouse. Any suggestions? I don't even need to host it mys...
[ 0.48006871342658997, 0.10013330727815628, 0.23809775710105896, 0.08843136578798294, -0.18948881328105927, 0.05620096996426582, 0.1002320721745491, 0.23803827166557312, -0.22473257780075073, -0.5773060917854309, 0.20302070677280426, 0.29053521156311035, 0.058164387941360474, -0.349139243364...
to get cross browser drawing functionality. ``` <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>TestPage</title> <script language="javascript" src="raphael-src.js"></script> <script type="text/javascript" src="extjs/adapter/ext/ext-base.js">...
[ 0.2881900668144226, -0.1036740243434906, 0.4620266556739807, -0.26068294048309326, -0.15657839179039001, 0.06334450840950012, 0.21303988993167877, -0.8795749545097351, 0.08747866749763489, -0.5859512686729431, -0.17582307755947113, 0.3103310167789459, -0.26442068815231323, -0.1886240243911...
this.currentdraw = this.canvas.path({ stroke: "black", fill: "none", "stroke-width":4 }); this.currentdraw.moveTo(e.getPageX() - el.getLeft(), e.getPageY() - el.getTop()); }, this); Ext.get(container).on('mousemove', function(e) { var el = Ext.get(container); if (t...
[ -0.36103561520576477, -0.4139591455459595, 0.8334655165672302, -0.375103622674942, 0.5524563193321228, 0.22776362299919128, 0.08786056935787201, -0.407490998506546, -0.26405394077301025, -0.7273662090301514, -0.35550588369369507, 0.6182358860969543, -0.432199090719223, 0.09789643436670303,...
this.currentdraw.lineTo(e.getPageX() - el.getLeft(), e.getPageY() - el.getTop()); } }, this); Ext.get(container).on('mouseup', function(e) { this.currentdraw = null; }, this); } var scribble; Ext.onReady( function() {
[ -0.4433751702308655, -0.38505274057388306, 0.7570840716362, -0.3724944293498993, 0.6728886365890503, 0.10717248916625977, 0.10100552439689636, -0.12340665608644485, -0.2081655114889145, -0.3312324583530426, -0.39699622988700867, 0.3588137924671173, -0.5250166654586792, 0.2656500041484833, ...
scribble = new scribbler("container", 800,600); } ); </script> </head> <body> <div id="container" style="position:relative;border:1px solid black;width:640px;height:400px"> </div> </body> </html> ``` You'll have to record and store the various scribble lines in a form for submission. ...
[ 0.006603287998586893, -0.07562582194805145, 0.7474756240844727, 0.04001152142882347, -0.06363890320062637, 0.05324429273605347, -0.04323530197143555, -0.260357528924942, -0.46024391055107117, -0.6757214069366455, -0.00212576100602746, -0.10504809767007828, -0.21194177865982056, -0.33599114...
a basic (but pretty much a complete) control. See [inquisitiveturtle](http://inquisitiveturtle.co.uk/scribbler/).
[ -0.4543130397796631, -0.15365800261497498, 0.23513029515743256, 0.0825938880443573, 0.027117852121591568, -0.4323158860206604, 0.23268309235572815, -0.09740188717842102, 0.001832734327763319, 0.020469920709729195, -0.5162729620933533, 0.3270591199398041, -0.3165126144886017, -0.47281780838...
For example: "½" or ASCII DEC 189. When I read the bytes from a text file the byte[] contains the valid value, in this case 189. Converting to Unicode results in the Unicode replacement character 65533. > UnicodeEncoding.Unicode.GetString(b); Converting to ASCII results in 63 or "?" > ASCIIEncoding.ASCII.GetStrin...
[ 0.517504096031189, 0.0649440661072731, 0.2780124843120575, -0.07166099548339844, 0.03528115898370743, -0.012011152692139149, 0.0755176767706871, -0.3845553398132324, -0.16516616940498352, -0.542782723903656, -0.17310456931591034, 0.3157341182231903, -0.24731674790382385, 0.1019901633262634...
are UTF-16 encoded, so you need to use an encoder/decoder to convert anything else, sometimes this is defaulted (e.g. UTF-8 for FileStream instances) but good practice is to always specify. You will need some form of implicit or (better) explicit metadata to supply you with the information about which encoding.
[ 0.23750926554203033, 0.2819715738296509, 0.19548816978931427, 0.03661525622010231, 0.10178535431623459, -0.17579302191734314, 0.19417129456996918, -0.0029209451749920845, -0.22046315670013428, -0.6563292145729065, -0.40776902437210083, 0.43159055709838867, -0.4030086100101471, -0.180923715...
I am trying to compile the latest Groovy distribution from source, using ant 1.7.1. The process runs along smoothly until "-createEmbeddableJar:", under which it fails saying > BUILD FAILED > myHomeDir/groovy-src-1.6.0/groovy-1.6.0/build.xml:582: The <unwar> type doesn't support the > nested "globmapper" element. B...
[ 0.3313036859035492, 0.0846557691693306, 0.5482677817344666, -0.25907814502716064, -0.022089935839176178, -0.03339638188481331, 0.2079119086265564, -0.1418006718158722, 0.12479695677757263, -0.9342712163925171, 0.34210893511772156, 0.4055440127849579, -0.2108534425497055, 0.1922681331634521...
</patternset> <globmapper from="META-INF/LICENSE.txt" to="META-INF/CLI-LICENSE.txt"/> <fileset dir="${runtimeLibDirectory}"> <include name="commons-cli-*.jar"/> </fileset> </unzip> ``` Any ideas as to what is wrong here? Byte 189 represents a "½" in iso-8859-1 (aka "Latin-1"), ...
[ 0.39123114943504333, -0.005548655055463314, 0.09390253573656082, -0.004008954390883446, 0.02741250768303871, -0.18435755372047424, 0.3559550642967224, -0.42761945724487305, -0.17614103853702545, -0.7497652173042297, -0.07193323224782944, 0.20210880041122437, -0.5149016976356506, 0.05101599...
this is defaulted (e.g. UTF-8 for FileStream instances) but good practice is to always specify. You will need some form of implicit or (better) explicit metadata to supply you with the information about which encoding.
[ 0.2881615459918976, 0.0971800684928894, 0.14392320811748505, 0.1725187599658966, 0.1625245213508606, -0.19816841185092926, 0.08476473391056061, 0.10185331106185913, -0.10639671236276627, -0.6012575030326843, -0.531166672706604, 0.5201175212860107, -0.2657581865787506, 0.0940273255109787, ...
I need another (dozen) pair of eyes on this. The following code: ``` Interface iRuleEntity Function GetRuleViolations() As List(Of RuleViolation) End Interface Partial Public Class Feedback Implements iRuleEntity Public Function GetRuleViolations() As List(Of RuleViolation) Return Nothing End...
[ -0.0706297978758812, -0.20450210571289062, 0.5533284544944763, -0.12826532125473022, -0.2568496763706207, 0.10288646072149277, 0.24752464890480042, -0.21937620639801025, -0.13124951720237732, -0.4473378658294678, -0.004791272338479757, 0.7665902972221375, -0.3022739291191101, 0.22771959006...
or structure > implements one or more interfaces, and > then for each member you use the > Implements keyword to specify which > interface and which member it > implements. So: ``` Partial Public Class Feedback Implements iRuleEntity Public Function GetRuleViolations() As List(Of RuleViolation) _ Im...
[ -0.016658704727888107, -0.4607918858528137, 0.3814425766468048, 0.005341074429452419, -0.10826072096824646, 0.023495830595493317, 0.18861094117164612, -0.12423395365476608, 0.036935802549123764, -0.3583483099937439, -0.21478836238384247, 0.5713987350463867, -0.490651935338974, 0.2246937304...
I use gVim in windows to edit my code (mostly C++). I use :make in gVim to compile the project, but this is a blocking operation, that prevents me from using gVim until the compilation is complete. How can I do :make asynchronously and still get the benefits of reading the errors back into Vim and jump to the errors in...
[ 0.617951512336731, 0.11119658499956131, 0.3273802399635315, -0.10893165320158005, 0.053439948707818985, -0.15285354852676392, 0.37677615880966187, -0.23910288512706757, -0.158580020070076, -0.6179937124252319, -0.017765818163752556, 0.6650249361991882, -0.27469703555107117, 0.2802844643592...
'MyMake' ``` ( where MyMake is the custom command which can switch to appropriate dir, make, and copen 20. ) and I am doing my job while build goes in the other window. **Other option:** You can redirect make progress to some file from the shell or within vim (:!make&). And then by using ``` :cfile make_result...
[ 0.5542640089988708, -0.07927270978689194, 0.4299253225326538, -0.1443963497877121, 0.1219787523150444, 0.0036891463678330183, 0.5585828423500061, -0.1804688572883606, 0.08750562369823456, -0.8935626149177551, -0.00423726812005043, 1.0480998754501343, 0.14184753596782684, 0.0220625065267086...
Is the only difference between the `RegisterStartupScript` and the `RegisterClientScriptBlock` is that RegisterStartupScript puts the javascript before the closing `</form>` tag of the page and RegisterClientScriptBlock puts it right after the starting `<form>` tag of the page? Also, when would you choose one over th...
[ -0.12487242370843887, 0.2476452738046646, 0.6791764497756958, -0.1380961537361145, -0.4131021797657013, -0.30878356099128723, -0.0681942030787468, -0.4088747799396515, -0.01828513853251934, -0.5047776699066162, -0.2980007827281952, -0.027924228459596634, -0.3049124479293823, -0.09155666083...
<form id="form1" runat="server"> <div> <asp:Label ID="lblDisplayDate" runat="server" Text="Label" /><br /> <asp:Button ID="btnPostback" runat="server"
[ 0.1229851245880127, -0.30371594429016113, 0.46422094106674194, -0.4765647053718567, -0.10382939130067825, 0.22986875474452972, 0.10305479913949966, -0.1608760803937912, -0.408883273601532, -0.3606211543083191, -0.38393378257751465, 0.15166206657886505, -0.2413979172706604, -0.2517345547676...
Text="Register Startup Script" onclick="btnPostback_Click" /><br /> <asp:Button ID="btnPostBack2" runat="server" Text="Register"
[ -0.2235727161169052, -0.009436589665710926, 0.15445013344287872, -0.46023687720298767, 0.1662614643573761, 0.28695935010910034, 0.28387463092803955, -0.021175339818000793, -0.34447699785232544, -0.36784613132476807, -0.4742225706577301, 0.32083600759506226, -0.26891812682151794, -0.2667873...
onclick="btnPostBack2_Click" /> </div> </form> </body> </html> ``` ### Here is the Code Behind: ``` protected void Page_Load(object sender, EventArgs e) { lblDisplayDate.Text = DateTime.Now.ToString("T"); } protected void btnPostback_Click(object sender, EventArgs e) { System.Text.St...
[ 0.13723699748516083, -0.19446507096290588, 0.8540118336677551, -0.2168024182319641, 0.31195783615112305, 0.2508033812046051, 0.4147116243839264, -0.534986674785614, -0.30166250467300415, -0.5030391216278076, -0.5243852734565735, 0.4743030071258545, -0.5671994090080261, -0.03755005076527595...
{ ClientScript.RegisterStartupScript(this.GetType(),"JSScript", sb.ToString()); } } protected void btnPostBack2_Click(object sender, EventArgs e) { System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append(@"<script language='javascript'>"); sb.Append(@"var lbl = documen...
[ -0.12809361517429352, 0.09248774498701096, 0.819173276424408, -0.4349389970302582, 0.06706299632787704, 0.1141839399933815, 0.6647364497184753, -0.5481451749801636, -0.44263318181037903, -0.7004188299179077, -0.24562937021255493, 0.5238952040672302, -0.585352897644043, 0.0595250241458416, ...
does a postback and changes the label to red, but when I click the `btnPostBack2`, it does a postback, but the label color does not change to red. Why is this? Is it because the label is not initialized? I also read that if you are using an `UpdatePanel`, you need to use `ScriptManager.RegisterStartupScript`, but if I...
[ 0.004082979168742895, -0.0813111960887909, 0.437824547290802, -0.04839177429676056, -0.07662852108478546, -0.08758974075317383, 0.18276892602443695, -0.07986068725585938, -0.313605397939682, -0.754813015460968, -0.09502595663070679, 0.3008621335029602, -0.3169516921043396, 0.13372974097728...
as relevant to your posted example: a. When you use `RegisterStartupScript`, it will render your script *after* all the elements in the page (right before the form's end tag). This enables the script to call or reference page elements without the possibility of it not finding them in the Page's DOM. Here is the rende...
[ 0.03868481144309044, 0.03889249265193939, 0.7552746534347534, -0.1370789110660553, -0.13918429613113403, -0.011454077437520027, 0.1386071890592575, -0.17700932919979095, -0.008459869772195816, -0.6620067358016968, -0.4112948775291443, -0.012057007290422916, -0.25103721022605896, -0.1754917...
</div> <div> <span id="lblDisplayDate">Label</span> <br /> <input type="submit" name="btnPostback" value="Register Startup Script" id="btnPostback" /> <br /> <input type="submit" name="btnPostBack2" value="Register" id="btnPostBack2" /> </div> <div...
[ 0.12070507556200027, -0.17515267431735992, 0.17122593522071838, -0.3760097622871399, -0.22776444256305695, 0.12259013950824738, 0.014010741375386715, -0.5758067965507507, -0.35157302021980286, -0.38915127515792847, -0.4078196883201599, 0.47150856256484985, -0.09742460399866104, -0.32951748...
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="someViewstategibberish" /> </div> <!-- Note this part --> <script language='javascript'> var lbl = document.getElementById('lblDisplayDate'); lbl.style.color = 'red'; </script> </form>...
[ 0.10008888691663742, -0.06851740926504135, 0.48113951086997986, -0.3189695179462433, 0.03016108274459839, 0.030612871050834656, 0.33787772059440613, -0.3460772633552551, -0.057350460439920425, -0.6382220983505249, -0.5765596628189087, 0.505906343460083, -0.21926969289779663, -0.24549171328...
Viewstate tag, but before any of the page elements. Since this is a direct script (not a function that can be *called*, it will immediately be executed by the browser. But the browser does not find the label in the Page's DOM at this stage and hence you should receive an "Object not found" error. Here is the rendered ...
[ 0.05204739049077034, -0.23477187752723694, 0.7666389346122742, -0.10855178534984589, -0.22884461283683777, -0.11631448566913605, -0.02888709492981434, -0.14308181405067444, 0.0013166065327823162, -0.6432422399520874, -0.3485104739665985, 0.3548402488231659, -0.2749406099319458, -0.04447117...
id="__VIEWSTATE" value="someViewstategibberish" /> </div> <script language='javascript'> var lbl = document.getElementById('lblDisplayDate'); // Error is thrown in the next line because lbl is null. lbl.style.color = 'green'; ``` Therefore, to summarize, you should ...
[ 0.1537361741065979, -0.10136308521032333, 0.33226609230041504, -0.2836812138557434, 0.22734926640987396, -0.034692488610744476, 0.2206626683473587, -0.3266560733318329, -0.235594242811203, -0.5989270806312561, -0.3054908812046051, 0.6647118926048279, -0.4335815906524658, -0.039067730307579...
method (or add a client side attribute). Edit after comments: --- For instance, the following function would work: ``` protected void btnPostBack2_Click(object sender, EventArgs e) { System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append("<script language='javascript'>function ChangeColor...
[ 0.01238599605858326, 0.005138648673892021, 0.7158406972885132, -0.2577923834323883, 0.04366501793265343, 0.2669377624988556, 0.3740822374820709, -0.9989137053489685, -0.03683017939329147, -0.2976665198802948, -0.1675160527229309, 0.3094080686569214, -0.7420697808265686, 0.20361624658107758...
I have a large list of integers (thousands), and I want to extract the first N (in the order of 10-20) unique elements from it. Each integer in the list occurs roughly three times. Writing an algorithm to do this is trivial, but I wonder what's the most speed and memory efficient way to do it. There are some addition...
[ 0.22202764451503754, 0.40307003259658813, -0.023121865466237068, -0.00877320021390915, -0.024398870766162872, 0.3669254183769226, 0.1787516325712204, -0.3684963285923004, -0.4521753191947937, -0.5126526355743408, 0.2628469467163086, 0.03716569393873215, -0.07222688943147659, 0.332999199628...
a upper bound. Therefore sorting is not speed efficient (I have to preserve the order of the array). * The integers are all over the place, so a bit-array as a lookup solution is not feasible. * I want to avoid temporary allocations during the search at all costs. My current solution looks roughly like this: ``` in...
[ -0.30543628334999084, 0.15377435088157654, 0.17595955729484558, -0.3385024964809418, 0.17582109570503235, 0.18223321437835693, -0.024852700531482697, -0.4350928068161011, -0.3440042734146118, -0.5902445316314697, -0.09708499908447266, 0.17643779516220093, -0.217788428068161, 0.216007351875...
int element = array[startpos++]; // check if the element exist. If the element is not found // return the position where it could be inserted while keeping // the array sorted. if (!binary_search (uniques, element, num_uniques, &insert_position)) { // insert the new unique element while pre...
[ -0.26226866245269775, -0.023124804720282555, -0.03686927631497383, -0.32660895586013794, 0.2653929889202118, -0.035544123500585556, 0.10146473348140717, -0.38968828320503235, -0.0518244206905365, -0.34500184655189514, -0.35644951462745667, 0.4492436945438385, -0.44768643379211426, -0.08753...
/ insert into array algorithm gets the job done, but the performance is not great. The insert\_into\_array call moves elements around a lot, and this slows everythign down. Any ideas? --- **EDIT** Great answers, guys! Everyone deserves an accepted answer, but I can give only one. I'll implement a bunch of your idea...
[ 0.5173034071922302, 0.06944712996482849, 0.043907180428504944, 0.1948346197605133, -0.08019912242889404, 0.2552601397037506, 0.2952241003513336, -0.28587260842323303, -0.05543550103902817, -0.5738285183906555, -0.15224844217300415, 0.9110910892486572, -0.06422609090805054, -0.6532948017120...
on a Core-Duo, 100 iterations over a 160kb test-dataset. ``` Bruteforce (Pete): 203 ticks Hash and Bruteforce (Antti): 219 ticks Inplace Binary Tree (Steven): 390 ticks Binary-Search (Nils): 438 ticks ``` <http://torus.untergrund.net/code/unique_search_shootout.zip> (C-source and testdata) Addit...
[ -0.10391320288181305, 0.04846014082431793, 0.026389434933662415, 0.20876923203468323, 0.04214107617735863, 0.30243241786956787, 0.3761292099952698, -0.46560704708099365, -0.19563047587871552, -0.4642777740955353, -0.044159404933452606, 0.1712028682231903, -0.11760476231575012, 0.0704878643...
10 to check equality with), a linear scan often out performs a binary search, even if you aren't having to insert elements.
[ -0.09371885657310486, -0.06815432012081146, 0.05859668180346489, 0.0439511314034462, 0.10353874415159225, 0.0349096842110157, -0.04416505619883537, -0.3052365779876709, -0.09386646002531052, -0.41734611988067627, -0.3671805262565613, 0.10985211282968521, -0.42693090438842773, -0.2025041133...
I'm developing a Cocoa/Objective C application that reads the active document from any application using AppScript. I've done this part successfully, but it would be really good to be able to tell for sure whether the application is document-based or not. The obvious approach is to look at the AXDocument attribute of ...
[ 0.0834895595908165, 0.26545843482017517, 0.4596157371997833, 0.21626253426074982, 0.005913977976888418, -0.21020165085792542, 0.2790720760822296, -0.06549783796072006, -0.10970684140920639, -0.6148459315299988, -0.1801464706659317, 0.6561275124549866, -0.3350123167037964, -0.25453308224678...
used to provide the information I seek. I've tried looking at the other properties and attributes exposed through AppleScript of both an application process and a single window. None of these items seem to tell me for sure whether the app is document-based or not. I've also tried looking through a few Info.plist fil...
[ 0.2560936212539673, 0.23710274696350098, 0.27027660608291626, 0.1757601648569107, 0.1402023285627365, 0.060035500675439835, 0.0046046217903494835, -0.020654728636145592, -0.4366720914840698, -0.45244354009628296, -0.1105235293507576, 0.5038161873817444, -0.12028153985738754, 0.052720632404...
sure if/how it is possible to access different applications on Mac OS, but with reflection (in Objective-C) you could test for the presence of a NSDocument subclass. Another idea would be to just look at the menu entries... are there File -> New, File -> Open menu entries?
[ 0.0623786486685276, -0.09987151622772217, -0.05221853405237198, 0.36884233355522156, 0.06543371081352234, -0.14810724556446075, 0.1273466944694519, 0.2924959659576416, -0.4762345552444458, -0.7055442333221436, -0.03293789178133011, 0.4754997789859772, -0.1536266952753067, -0.08264110982418...
We use DIGEST authentication for our WebDAV Access. We observe that Windows clients send each request twice. First request doesn't have `Authorization` header (and gets 401 response), second request has `Authorization` header (and usually gets correct response). While user probably cannot see this, it makes whole Webd...
[ 0.31114739179611206, -0.12883587181568146, 0.00025684561114758253, 0.4099026024341583, -0.1553143858909607, -0.14364509284496307, 0.18738572299480438, -0.23646074533462524, -0.23186984658241272, -0.7479598522186279, 0.12019409239292145, 0.6461266279220581, -0.12769325077533722, -0.07099676...
response" method, is the *intended* behavior for WebDAV. At least it is according to [the specs](http://www.webdav.org/specs/rfc2617.html#rfc.section.3). That first request without auth headers is necessary; the response from WebDAV contains a [nonce](http://en.wikipedia.org/wiki/Cryptographic_nonce) to validate the ne...
[ -0.012444304302334785, -0.43599963188171387, 0.5115661025047302, 0.032578472048044205, -0.26080042123794556, 0.054881297051906586, 0.2714475095272064, -0.20617228746414185, -0.3577672243118286, -0.3068254888057709, -0.2949312627315521, 0.5149331092834473, -0.20198893547058105, 0.0541159994...
single-use item, the specs allow WebDAV servers to make the nonce short-lived across multiple requests. It's possible that your non-Windows clients are able to recognize your WebDAV server and act accordingly but the Windows clients are not. In that case, I don't know of a work around other than to ask users to find a...
[ 0.40061599016189575, 0.04218747839331627, 0.12075330317020416, 0.402441143989563, 0.008097684010863304, -0.012923233211040497, 0.09198277443647385, 0.19217143952846527, -0.25662967562675476, -0.4216315448284149, 0.21939510107040405, 0.5561191439628601, -0.13395296037197113, 0.3488382101058...
**Update:** *I got the first part working, but the corners are not. See part 2 below.* How do you apply a style to a tabBar (in GWT) so that you can a single tabBar at a time? I have a few different tabPanels that need to have different styles but I can't figure out how to correctly apply the style to the bar and then...
[ 0.6689804196357727, -0.008184827864170074, 0.6298955082893372, -0.031089970842003822, -0.10159485787153244, 0.016926143318414688, 0.12009056657552719, -0.1287442296743393, -0.26369208097457886, -0.7571309804916382, -0.12589845061302185, 0.45604756474494934, -0.0711447224020958, -0.13954293...
tabs. I am using a DecoratedTabPanel and I have my own set of images for rounded corners and such that I would like to use. Also, once the style is correctly applied, how do I call it in the CSS? My current attempt is like so: ``` .topTabs .gwt-DecoratedTabBar .tabMiddleCenter { ``` **Part 2** All the other CSS sty...
[ 0.06279870867729187, 0.09784001111984253, 0.9435532093048096, -0.045721374452114105, -0.2191055864095688, 0.13929112255573273, -0.05073282867670059, 0.06888625770807266, -0.30433204770088196, -0.6829717755317688, -0.19749778509140015, 0.5243436098098755, -0.26121845841407776, 0.07235193252...
like this: ``` html > body .gwt-DecoratedTabBar .tabTopRight { ``` when inspecting it in Firebug (yah Firefox). Can anyone tell me how to override this? You should load your own CSS styles *after* loading the standard GWT CSS, or other library support CSS. Then, you are free to re-define any "base" CSS... last CSS...
[ 0.36967673897743225, 0.338370680809021, 0.20051424205303192, -0.04318832978606224, -0.20804670453071594, -0.3408605456352234, 0.2851560413837433, -0.14804594218730927, -0.19567522406578064, -0.7225373387336731, -0.11271689832210541, 0.6206453442573547, -0.34013673663139343, 0.0624296590685...
in the Javadoc. The "GWT incubator" had info on new CSS machinery similar to ImageBundle... ResourceBundle. And new methods for defining style rules dynamically.
[ 0.21464803814888, -0.43252983689308167, 0.035419296473264694, 0.17989103496074677, -0.6698259711265564, -0.05548231303691864, -0.17728278040885925, 0.21250806748867035, -0.4494122266769409, -0.4908275902271271, -0.23768699169158936, 0.11117033660411835, -0.3200610876083374, -0.205195695161...
The company where I work has been trialling scrum on a project and is now looking to roll scum out to three or four different project teams. We are envisaging that these teams will work in separate feature branches (we are using SVN). We are not sure if the different teams’ sprints should end simultaneously or if we ...
[ 0.734108567237854, 0.11991428583860397, 0.05322881415486336, -0.11258421838283539, 0.08260674774646759, -0.12936830520629883, 0.1574573963880539, -0.0670204758644104, -0.1421692818403244, -0.42425644397735596, 0.019064173102378845, 0.27834829688072205, 0.11388586461544037, -0.0253787022083...
likely to lead to conflicts. But if the releases are staggered this load may just be moved to the teams which are mid sprint. Has anyone tried either approach and what have they found to work? We also have several teams, our sprints are aligned, and we integrate continuously: when a story is complete. This is sometime...
[ 0.29143717885017395, -0.3238697648048401, -0.24828895926475525, 0.4407234191894531, 0.23334312438964844, -0.1591060608625412, 0.2904634177684784, -0.05813568830490112, -0.32603931427001953, -0.5039024353027344, 0.03092549368739128, 0.46100953221321106, 0.16967324912548065, -0.3043691217899...
We're building a packaged product, so deployment is not an issue for us. The two questions are tied together: if you only integrate at the end of the sprints, which I'd not recommend, then you're better off staggering the sprints. Henrik Kniberg (author of Scrum and XP from the trenches) wrote an article on [Versio...
[ 0.30450958013534546, 0.0675416812300682, -0.1690395027399063, -0.08742278814315796, -0.09119406342506409, 0.10400237143039703, 0.3643341362476349, -0.6480481028556824, -0.16610582172870636, -0.25329986214637756, -0.1492571085691452, 0.544524610042572, -0.09961526840925217, -0.3222212791442...
I'm contemplating creating a web application using a Ruby on Rails/MySQL stack and I am wondering what capabilities are available around web services and SOAP. Is there a capability within the framework or does it require an extension and if so what? Rails has opted for REST over SOAP in the default framework. It's not...
[ 0.312298983335495, -0.11305129528045654, 0.28304678201675415, -0.36811551451683044, -0.46518394351005554, 0.004589681979268789, 0.2535734474658966, -0.16442550718784332, -0.2268049716949463, -0.6613777279853821, 0.08666384965181351, 0.7007508873939514, -0.14134563505649567, 0.0356073155999...
I have a table in my database and I want for each row in my table to have an unique id and to have the rows named sequently. For example: I have 10 rows, each has an id - starting from 0, ending at 9. When I remove a row from a table, lets say - row number 5, there occurs a "hole". And afterwards I add more data, but ...
[ 0.013959077186882496, 0.5180125832557678, 0.3199141323566437, 0.034418608993291855, 0.16564513742923737, 0.3440767228603363, -0.11572592705488205, -0.20542678236961365, -0.46353575587272644, -0.7220118641853333, 0.07332322746515274, -0.02360580489039421, -0.09883327037096024, 0.53741472959...
way in sqlite to do it? Or do I have to manually manage removing and adding of data? Thank you in advance, Ilya. I strongly suggest that you re-think your design. In my opinion your asking yourself for troubles in the future (e.g. if you create another table and want to have some relations between the tables). If you...
[ 0.31190231442451477, 0.2611313760280609, 0.21660998463630676, 0.03243382275104523, -0.06926620006561279, -0.18861006200313568, -0.04777101054787636, -0.36968401074409485, -0.10761312395334244, -0.3743416368961334, 0.004540620371699333, 0.5705596804618835, -0.3697921931743622, -0.1376423090...
DESC: ``` SELECT * FROM table_name ORDER BY id ASC; ``` Sqlite creates an index for the primary key field, so this query is fast. I think that you would be interested in reading about LIMIT and OFFSET clauses. The best source of information is the [SQLite documentation](http://www.sqlite.org/lang_select.html).
[ 0.10600893199443817, -0.07931847125291824, 0.3378354012966156, 0.16408242285251617, -0.0007586993742734194, -0.20664706826210022, -0.24310645461082458, -0.32233330607414246, -0.281686931848526, -0.4602339267730713, -0.32856592535972595, 0.5864186882972717, -0.06555933505296707, 0.043643571...
I want to distribute my EhCache via a JMS Topic. This is documented here [on EhCache's site](http://ehcache.sourceforge.net/documentation/distributed_caching_with_jms.html) I'm using: * ehcache-1.6.0-beta3 * ehcache-jmsreplication-0.3 * spring-2.5 * spring-modules-0.9 My Spring config looks like this: > ``` > <bean...
[ -0.12988290190696716, 0.200851172208786, 0.7042012810707092, -0.05189257860183716, -0.15606871247291565, 0.10304109752178192, -0.04200524836778641, -0.434104859828949, -0.271535724401474, -0.7976793646812439, -0.11827942728996277, 0.4010184407234192, 0.0919455960392952, 0.02499577403068542...
<cache name="pocCache" > maxElementsInMemory="10000" > maxElementsOnDisk="1000" > eternal="false" > overflowToDisk="true" > diskSpoolBufferSizeMB="20" > timeToIdleSeconds="300" > timeToLiveSeconds="600" > memoryStoreEvictionPolicy="LFU" > / > > > ...
[ -0.10580336302518845, 0.16640976071357727, 0.3126377761363983, 0.07072996348142624, 0.43013104796409607, 0.3099513351917267, 0.09834177047014236, -0.09932560473680496, -0.2101539820432663, -0.624067485332489, -0.06836608797311783, 0.4343411922454834, 0.3029704689979553, 0.09226184338331223...
class="net.sf.ehcache.distribution.jms.JMSCacheManagerPeerProviderFactory" > properties="initialContextFactoryName=JmsInitialContextFactory, > userName=myuser,password=mypass, > providerURL=tcp://jmsdev1-jndi,tcp://jmsdev2-jndi > topicConnectionFactoryBindingName=TCF...
[ -0.43286946415901184, -0.3219362199306488, 0.27554577589035034, 0.23769035935401917, -0.05234961584210396, 0.110519640147686, 0.3342292308807373, -0.04578258842229843, -0.059861984103918076, -1.0239832401275635, -0.18631862103939056, 0.2958492338657379, -0.04745560884475708, 0.419533401727...
propertySeparator="," > /> > > ``` And I get a NullPointer when I get an application context. Here is the stack trace: > ``` > org.springframework.beans.factory.BeanCreationException: > org.springframework.beans.factory.BeanCreationException: Error creating bean > with name 'cacheManager' defined ...
[ -0.2647063136100769, 0.015974028035998344, 0.10946287214756012, -0.06791365146636963, 0.13147008419036865, 0.12300779670476913, 0.3064108192920685, -0.7566862106323242, -0.29180920124053955, -0.5119872093200684, 0.03474089130759239, 0.6165696382522583, -0.24509313702583313, 0.3307239115238...
org.springframework.beans.factory.support.AbstractAutowireCapableBean > Factory$1.run(AbstractAutowireCapableBeanFactory.java:409) > at java.security.AccessController.doPrivileged(Native Method) > at org.springframework.beans.factory.support.AbstractAutowireCapableBean > Factory.createBean(AbstractA...
[ -0.029845478013157845, 0.2602103650569916, 0.29876962304115295, -0.19385451078414917, 0.060568757355213165, 0.05870406702160835, 0.226035013794899, -0.24708105623722076, -0.3535090386867523, -0.5099561214447021, -0.23531131446361542, 0.49174052476882935, -0.2759677767753601, -0.00465682754...
class="net.sf.ehcache.distribution.jms.JMSCacheManagerPeerProviderFactory" properties="initialContextFactoryName=com.InitialContextFactory; userName=uname;password=passwd; replicationTopicConnectionFactoryBindingName=TCF; replicationTopicBindingName=CACHE; providerURL=tcp://serv...
[ -0.12288889288902283, -0.16669471561908722, 0.09927765280008316, 0.09787595272064209, -0.14785486459732056, 0.008090931922197342, 0.42155563831329346, -0.2720402181148529, -0.35866543650627136, -0.5904443264007568, 0.12723837792873383, 0.34065011143684387, -0.19814059138298035, 0.527206242...
each JVM. That makes perfect sense, when you think about it. Yes, you have to put in the loader queue information into the cacheManagerPeerProviderFactory. That is because, if you start up a process after one has been running, the new process can pre-load the cache from the existing process. You configure the loader ...
[ -0.07343710213899612, -0.07128576189279556, 0.2650090157985687, -0.05700146034359932, -0.09642361849546432, -0.09324304759502411, 0.3506737947463989, -0.25931233167648315, -0.17747262120246887, -0.9834030270576477, -0.11864957213401794, 0.1090746596455574, -0.15190353989601135, 0.488082408...
providerURL=tcp://server1:7222,tcp://server2:7222; getQueueConnectionFactoryBindingName=QCF; getQueueBindingName=CACHE_LOAD " propertySeparator=";" /> ```
[ -0.023716846480965614, 0.010752305388450623, 0.5436598062515259, -0.25414618849754333, -0.20092396438121796, 0.32525837421417236, 0.2628363370895386, 0.010006538592278957, 0.09359221160411835, -0.7004486918449402, -0.19036486744880676, 0.2630867063999176, -0.18723544478416443, 0.3657781183...
I'm running ReSharper 4.1 and was wondering if anyone is using 4.5 beta? how stable is it, etc. Also how do people feel about using beta VS plug-ins in general on work systems. I switched to the 4.5 beta two days ago, and for me at least, their claims of less memory usage are valid. I actually had to request a new co...
[ 0.5946030020713806, -0.01405904907733202, 0.5120889544487, -0.26999256014823914, -0.1219957172870636, 0.10875170677900314, 0.19190819561481476, 0.031181998550891876, -0.32922855019569397, -0.7294369339942932, -0.008104204200208187, 0.6834158897399902, -0.2567203640937805, 0.327193737030029...
it's not entirely their fault, but the point is, the beta seems very stable to me, but YMMV.
[ 0.42852941155433655, 0.5226117968559265, 0.25543636083602905, 0.00040944002103060484, -0.0003192721924278885, -0.47928106784820557, 0.15252360701560974, 0.10154897719621658, 0.1966252326965332, -0.11464516073465347, 0.27900537848472595, 0.3578881323337555, 0.08415165543556213, 0.4346953928...
I've dealt with instances where I would throw/rethrow an exception knowing that the code surrounding it would catch the specific exception. But is there any time you would want to throw an exception, knowing that it wouldn't be caught? Or at least, NOT catch an exception? Exceptions immediately halt the application u...
[ 0.8275665640830994, 0.23050014674663544, -0.19018302857875824, 0.01581428200006485, 0.11634611338376999, -0.4678616523742676, 0.31618648767471313, -0.1004306972026825, -0.436900794506073, -0.32572096586227417, -0.007888153195381165, 0.20609785616397858, -0.1544884443283081, 0.0898828133940...
to (or don't want to) handle, and there's no sensible way for you to recover from it. Clients should be able to decide how they want to handle any exceptions that you might throw. On the other hand, if your application *is* the endpoint, throwing an exception essentially becomes a notification mechanism to alert peopl...
[ 0.29773208498954773, 0.11630585044622421, 0.11232970654964447, 0.03230724483728409, 0.12326382845640182, -0.27393537759780884, 0.6230804324150085, -0.008990571834146976, -0.4324662983417511, -0.39897066354751587, -0.4192420542240143, 0.3605308532714844, -0.2090757042169571, 0.1761823445558...
the space shuttle. * **Are you using exceptions as a proxy for real logging?** There's almost never a reason to do this; consider a real logging mechanism instead. Catch the exception and have the logger work out what happened. * **What are you trying to convey by throwing the exception yourself?** Ask yourself what th...
[ 0.3639453947544098, 0.04958328232169151, 0.008370209485292435, 0.5123901963233948, -0.03187248110771179, -0.2072351574897766, 0.01564277708530426, 0.033528245985507965, -0.7160640358924866, -0.4545370936393738, -0.1787193864583969, 0.18455801904201508, -0.24950547516345978, -0.232299312949...
you understand what you're doing if you need to do this -- and if you're not going to catch it, at least consider a `try-finally` block so you can do some tidying up.
[ 0.382614403963089, -0.028425948694348335, -0.14571942389011383, 0.1666463017463684, 0.18531174957752228, -0.3142412602901459, 0.5925578474998474, 0.11337722092866898, -0.4889361560344696, -0.528010368347168, 0.14638735353946686, 0.20770834386348724, 0.06130096688866615, -0.4420192837715149...