text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
automatically which ones are common and should be re-used. The type that you want to be shared should also have a shared namespace, and that namespace should be called out on each of the webservices that want to share that type.
[ 0.38421595096588135, -0.16521376371383667, 0.3464084267616272, 0.12634752690792084, 0.19676679372787476, -0.42914173007011414, 0.029749222099781036, 0.04536764323711395, -0.21091611683368683, -0.6931197643280029, -0.18845471739768982, 0.49220651388168335, -0.2695389688014984, -0.0765026807...
I am aware that you can lock an object in c# using lock but can you give up the lock and wait for something else to notify you that it's changed like you can in java with wait and notify? It seems to me that synchronised and lock in java and c# respectively are synonomous. The equivalent functionality (including the n...
[ 0.3575507402420044, -0.007151832338422537, 0.4048038721084595, -0.1974874883890152, 0.10962681472301483, -0.2126370519399643, 0.16751733422279358, -0.40405040979385376, -0.3143974542617798, -0.5755696296691895, -0.04751107841730118, 0.4688163101673126, -0.5572549700737, 0.18700990080833435...
I have an activex object I loaded into an html page. I then use that activex object to create another object, but I need to register an event with the new object created. The object is expecting an event listener of a certain type. I can load this same dll in c# and it will work fine. Code looks like this for c#. ```...
[ 0.05054955929517746, 0.1574764996767044, 0.6775217652320862, -0.358237087726593, -0.20873796939849854, 0.10229631513357162, 0.39507874846458435, -0.46618741750717163, -0.17044208943843842, -0.8078413605690002, -0.07621223479509354, 0.5631589889526367, -0.562624454498291, -0.082828879356384...
properties of the uploadAction object in javascript to ensure that it is actually created. When I try and register the event with uploadAction it throws an error saying "Object doesn't support this property or method." To me it seems like its expecting a strongly typed event. Is there anyway to register the event simi...
[ 0.13271339237689972, 0.03360860049724579, 0.512029767036438, 0.0603516660630703, -0.12229953706264496, -0.29990464448928833, 0.09168356657028198, -0.11849965900182724, -0.313932329416275, -0.4224657118320465, 0.09579870104789734, 0.49408581852912903, -0.4165157377719879, -0.024346370249986...
I am working on C++ and COM/ATL in Windows from last few years. Now I want to shift to Linux Programming. I know basic architecture of Linux. I did some of the projects which are using ncurses, sockets and audio libraries(Terminal Applications). On which tool I should be familiar to start with projects. In windows I ha...
[ 0.15338116884231567, 0.24590405821800232, 0.11671636998653412, -0.3407919704914093, -0.07763642072677612, 0.14418171346187592, 0.26037704944610596, 0.08022477477788925, 0.031686849892139435, -0.8127765655517578, 0.16012653708457947, 0.895754337310791, -0.20580632984638214, 0.08353911340236...
fear the *advanced* keyword. From the details of your post (ncurses, sockets) you are already "advanced". You can also look later at the [glib](http://www.gtk.org/overview.html) library (Standard component of GTK+/GNOME but also used in command line applications.) If you absolutely have to program in C++, read the wh...
[ 0.23140637576580048, 0.038444384932518005, 0.3087024390697479, -0.13519911468029022, 0.03118043579161167, -0.4166794419288635, 0.5338137745857239, -0.07928865402936935, -0.09453967213630676, -0.4970287084579468, -0.09374877065420151, 0.5526486039161682, -0.25052371621131897, 0.026772148907...
I am currently developing an approval routing WCF service that will allow an user to create "rules" which determine how an request is routed. The route is determined by comparing the "ObjectToEvaluate" property of the Request class against the "ObjectToEvaluate" property of the "Rule" class. The "UnitOfMeasurement" enu...
[ 0.42378509044647217, -0.08405707031488419, 0.8328998684883118, -0.05120038613677025, 0.1750856637954712, -0.26931819319725037, 0.08564623445272446, -0.5702890157699585, 0.08519904315471649, -0.5098143815994263, -0.09856322407722473, 0.3019438683986664, -0.1151311993598938, 0.19679582118988...
public object ObjectToEvaluate { get; set; } public virtual void ExecuteRule() { //logic to see if it passes the rule condition } } ``` What would be the best way to implement the method to cast the "ObjectToEvaluate" property using the "UnitOfMeasurement" enum? Use an implicit type operator that...
[ 0.22997452318668365, -0.14388124644756317, 0.07147355377674103, 0.13443759083747864, 0.14294545352458954, -0.014968701638281345, 0.3375777304172516, -0.2892768085002899, 0.16903728246688843, -0.4288055896759033, -0.11998595297336578, 0.5672365427017212, -0.3311983048915863, 0.0257787313312...
public static implicit operator int(CastableObject obj) { if (obj.eUnit != UnitOfMeasurement.Numeric) { throw new InvalidCastException("Mismatched unit of measurement"); } // return the numeric value } // Create other cast operators for the other unit types } `...
[ 0.02447982132434845, -0.04451136663556099, -0.0018868851475417614, 0.02646518498659134, 0.016128525137901306, 0.35047855973243713, 0.40253227949142456, -0.23401719331741333, 0.1935182809829712, -0.38773441314697266, -0.07000599056482315, 0.45480525493621826, -0.44309619069099426, 0.2129027...
I have stfw but I cannot find a simple / standalone way to create a webservice client in java. Does anyone have a link/sample into this? How about using [Axis2](http://ws.apache.org/axis2/)? Just follow the [quickstart guide](http://ws.apache.org/axis2/1_4_1/quickstartguide.html) and you should be on your way. Here ...
[ 0.4833140969276428, -0.001107111806049943, 0.6342304944992065, 0.008963054977357388, -0.28275609016418457, -0.25576159358024597, 0.41112494468688965, 0.0972830131649971, -0.19860318303108215, -0.7565305829048157, 0.15289370715618134, 0.5214318037033081, -0.008693617768585682, -0.0640072003...
If I have a string (010) and i want to add 1 to it (011) what value type should i use to convert this string into a number for adding and at the same time preserve the whole number and not 10 + 1 = 11. You could use something like this: ``` string initialValue = "010"; int tempValue = Int.Parse(initialValue) + 1; stri...
[ -0.027700407430529594, -0.0014450493035838008, 0.2981736361980438, -0.13149933516979218, 0.13092289865016937, 0.1804661899805069, 0.24559110403060913, -0.2703612744808197, -0.0881468877196312, -0.6068764328956604, 0.1167750209569931, 0.5637969374656677, -0.13840363919734955, -0.19334453344...
I am developing a specialty application where the end-user needs to operate multiple controls simultaneously. The application is used to "tune" the control parameters of an electronic device to calibrate the unit to its best performance. Currently, there is a UI with multiple graphical sliders which the operator click...
[ 0.39561185240745544, 0.05578498914837837, 0.8376477956771851, 0.25908634066581726, 0.30201640725135803, 0.12803228199481964, -0.3082667291164398, -0.42943790555000305, -0.19474203884601593, -0.47993868589401245, 0.31492024660110474, 0.6716535091400146, -0.02880764752626419, 0.1655856817960...
parameters into a single adjustment. And, if the operator can keep his eye on the device being adjusted, rather than the UI of the control application, it would speed up and simplify his work. One idea that I had was that I might buy a whole bunch of the USB jog-dial products, and bind each dial to a specific control....
[ 0.33100929856300354, -0.08447802811861038, 0.4402334690093994, 0.20529381930828094, 0.27921411395072937, 0.2286049723625183, 0.02966274507343769, -0.19112102687358856, -0.5050649046897888, -0.3802163600921631, 0.22303244471549988, 0.9793901443481445, -0.4955424964427948, -0.191138610243797...
some cases, the parameters are adjusted in different directions, and may be significantly different in the adjustment steps. It's not a simple "track two channels together, and then fine tune the last bit of difference". Maybe capture key presses and define a row of pairs as your up/down controllers. Something like......
[ 0.2412632405757904, -0.2478039711713791, 0.7292089462280273, 0.32515889406204224, 0.031815655529499054, 0.08146671950817108, -0.14903727173805237, -0.6000252962112427, -0.2625318467617035, -0.49745962023735046, 0.12657733261585236, 0.6701038479804993, -0.3518184423446655, -0.06303717195987...
activate (i.e. give focus to) each of the slider controls so you can quickly switch what you're adjusting with two hands.
[ 0.34821122884750366, -0.27695006132125854, 0.44563087821006775, 0.16951094567775726, -0.039981067180633545, -0.10228315740823746, -0.11750654876232147, -0.3311416804790497, -0.34764066338539124, -0.6457467675209045, -0.2160191535949707, 0.7271205186843872, -0.2170664370059967, -0.461581885...
Hopefully I haven't misunderstood the meaning of "duck typing", but from what I've read, it means that I should write code based on how an object responds to methods rather than what type/class it is. Here's the code: ``` def convert_hash(hash) if hash.keys.all? { |k| k.is_a?(Integer) } return hash elsif hash...
[ -0.020117685198783875, 0.1805850863456726, 0.5147691369056702, -0.261201411485672, 0.10722561925649643, -0.0642949566245079, 0.1211761012673378, -0.4979132115840912, -0.34334591031074524, -0.5864101052284241, -0.06907963752746582, 0.742874264717102, -0.241042822599411, 0.08521892875432968,...
I end up with a hash where the keys are an integer representing the ID of an ActiveRecord object. I don't particularly enjoy having to iterate through the hash keys twice with `all?` to determine if I need to grab the ID's out. Of course, I'll accept any other suggestions to improve this code as well :) How you write ...
[ 0.18668583035469055, 0.27049383521080017, -0.0546274371445179, -0.08535314351320267, -0.1618039458990097, 0.054761648178100586, 0.33370766043663025, -0.05878382921218872, -0.27504679560661316, -0.5363807082176208, -0.012184607796370983, 0.5071777105331421, -0.2983732223510742, 0.1027506291...
do something like this: ``` def convert(hash) new_hash = {} hash.each_pair { |k,v| new_hash[ k.is_a?(Integer) ? k : k.id ] = v } return new_hash end ``` This will accomplish exactly the same thing, and you'll still get an exception if an array key doesn't have an id field. Even better, this uses a little...
[ 0.26609718799591064, 0.038804005831480026, 0.09330915659666061, 0.021089009940624237, 0.11162450909614563, -0.37376177310943604, 0.3193660378456116, -0.688093364238739, -0.2253594845533371, -0.5737130641937256, -0.15761566162109375, 0.7043914198875427, -0.22765544056892395, 0.0872704535722...
integer objects, but this kind of occasional special case is usually acceptable, especially when checking for built-in data types.
[ -0.27513137459754944, 0.07893460243940353, -0.12839025259017944, 0.11977190524339676, -0.1572055071592331, -0.033684078603982925, 0.003141778288409114, 0.11827316135168076, -0.27088162302970886, -0.20044296979904175, -0.29856348037719727, 0.07496507465839386, -0.3646091818809509, -0.100958...
I inherited this gigantic legacy Java web app using Struts 1.2.4. I have a specific question regarding ActionForms. Some of them have only String properties (even for numbers), some of them use the seemingly appropriate types (Integer, Date, String, etc). What's the best practice here? Also, it seems that if a propert...
[ 0.16012611985206604, 0.11948557943105698, 0.14830587804317474, 0.09799165278673172, -0.1734798699617386, -0.005778240971267223, 0.38174232840538025, -0.23502659797668457, -0.3955188989639282, -0.6163562536239624, 0.11444534361362457, 0.28731369972229004, -0.36821800470352173, 0.00076265167...
ActionForm instance automatically by the Struts HTML tags must be Strings or booleans. However, there's no reason why your ActionForm can't have getter methods that return the properties as more meaningful types for your application e.g. Date.
[ 0.03842795267701149, -0.3025255501270294, 0.4432763457298279, 0.15433208644390106, -0.2995426654815674, -0.1517995148897171, 0.31797677278518677, -0.19768162071704865, -0.17164796590805054, -0.6451619267463684, -0.16994014382362366, 0.2512930929660797, -0.1290893852710724, 0.09323602914810...
I am looking for a concise way to check a value to see if it is nil or zero. Currently I am doing something like: ``` if (!val || val == 0) # Is nil or zero end ``` But this seems very clumsy. Objects have a [*nil?* method](http://ruby-doc.org/core/Object.html#method-i-nil-3F). ``` if val.nil? || val == 0 [do s...
[ 0.18625757098197937, 0.16670344769954681, -0.11282233148813248, 0.040588848292827606, -0.1306048184633255, -0.1457316130399704, 0.4624163508415222, -0.16391785442829132, -0.13646534085273743, -0.43037742376327515, 0.06641101837158203, 0.4746702015399933, -0.21431495249271393, 0.14884763956...
How would I drag and drop something into a static control? It looks like I need to create a sub class of COleDropTarget and include that as a member variable in a custom CStatic. That doesn't appear to be working though. When I try and drag something onto the Static control I get the drop denied cursor. The static cont...
[ 0.29782989621162415, -0.17285530269145966, 0.2582014203071594, 0.3642064034938812, 0.22520579397678375, -0.15897129476070404, 0.12726816534996033, -0.00009814790973905474, -0.1517215222120285, -0.4421902000904083, -0.016038067638874054, 0.3636791706085205, -0.36628639698028564, 0.140660807...
virtual void PreSubclassWindow(); }; void CMyStatic::PreSubclassWindow() { CStatic::PreSubclassWindow(); m_MyDropTarget.Register(this); } ``` There's a really good article [here](http://www.codeproject.com/KB/dialog/presubclasswindow.aspx) on CodeProject that you may find helpful.
[ 0.3203040063381195, 0.012383013032376766, 0.5710620880126953, 0.32822662591934204, 0.311245858669281, -0.1378227174282074, 0.1822080761194229, 0.3947422504425049, -0.5083286166191101, -0.6477240920066833, -0.35331854224205017, 0.5235040783882141, -0.004514725878834724, 0.23105546832084656,...
I'm attempting to put together some basic report screens. I've got some fairly complicated SQL queries that I'm feeding into ActiveRecord's find\_by\_sql method. The problem I am having here is that I am losing the order of the columns as given in the original query. I'm assuming that this is because the Hash class doe...
[ 0.22846324741840363, 0.31313714385032654, 0.252586305141449, -0.020372403785586357, 0.019005173817276955, -0.017245197668671608, 0.36919140815734863, -0.04631945863366127, -0.20641785860061646, -0.7235983610153198, 0.22422794997692108, 0.5611317753791809, -0.3377321660518646, 0.33608609437...
it using the key. I assume your query is written to deliver the columns in the order that you want to output them and you were hoping to output the values via a loop? Seems like a decent enough idea, but I can't think of a way to achieve it without at least some extra work. What I'd recommend is to explicitly access ...
[ 0.45751264691352844, 0.1016562432050705, 0.16903367638587952, 0.11825910210609436, -0.12726254761219025, 0.17171381413936615, 0.14409412443637848, -0.20751944184303284, -0.22119326889514923, -0.43820643424987793, 0.13568401336669922, 0.549602210521698, -0.4662322700023651, -0.0203057751059...
array of symbols in the order required and pull the values out of the hash in a loop. Something like this? (please excuse the potentially dodgy erb: I'm a [haml](http://haml.hamptoncatlin.com/) user!) ``` <% for row in @report.rows %> <tr> <% for col in [:a, :b, :c] %> <td><%= row[col] %></td> <% e...
[ -0.1276227980852127, 0.2999034821987152, 0.3505667448043823, 0.016934819519519806, 0.023468412458896637, 0.14999642968177795, 0.2688128650188446, -0.3444327116012573, -0.4397353529930115, -0.6453134417533875, -0.08880040794610977, 0.2561851143836975, -0.0682016983628273, 0.121721550822258,...
Currently we have a table that we use to track inivitations. We have an email field that is indexed but we also have three optional keys that the user can specify when adding new record emails. We don't allow duplicates so we have to query if the email plus the optional keys already exists. Currently the keys are only ...
[ 0.22839055955410004, 0.06911560893058777, 0.5291897058486938, 0.3773650527000427, 0.18487723171710968, -0.08368299901485443, 0.04762725159525871, -0.16630247235298157, -0.42210400104522705, -0.5554354786872864, 0.1962171196937561, 0.6352859139442444, -0.13962619006633759, 0.212571859359741...
are probably used infrequently that we wouldn't want to impact performance for this case. * email, key1 * email, key1, key2 * email, key1, key2, key3 The other idea is we add 1 key. * email, key1, key2, key3 Then always use all 3 keys in the lookup (eg. key1 = mykey AND key2 is NULL AND key3 is NULL) **See Also** ...
[ -0.06571036577224731, 0.04126925766468048, 0.5825101137161255, 0.21466270089149475, 0.1435607373714447, 0.020565537735819817, 0.16529032588005066, -0.2510600686073303, -0.3628806471824646, -0.7106192708015442, 0.050713129341602325, 0.5706369876861572, -0.38483521342277527, 0.03272191807627...
Index Advisor. Then try the other route and repeat. It really depends on your data. I typically have been able to get by with 1 covering index, starting with the most frequently used key first.
[ 0.17904460430145264, -0.03511364758014679, 0.5445179343223572, 0.25124505162239075, -0.06588725745677948, -0.12658892571926117, -0.16676492989063263, -0.06834683567285538, -0.05887611582875252, -0.5021646618843079, 0.131857231259346, 0.6036048531532288, -0.10245475172996521, -0.15926632285...
I'm asking in generalities - why would any server not set and return headers and/or status codes? I can't think of a good reason for this. Perhaps I'm overlooking something. The Status-Code is a required part of a HTTP Response. By definition, the only reason for a server not to provide a Status-Line is that it is not...
[ 0.2609776556491852, -0.03244778886437416, 0.24658262729644775, 0.15888193249702454, -0.19363737106323242, -0.0821540504693985, 0.3675481677055359, 0.1331263780593872, -0.2477637380361557, -0.3436347246170044, -0.20784270763397217, 0.2894328236579895, -0.2153056412935257, 0.1367552876472473...
We have an auto-complete list that's populated when an you send an email to someone, which is all well and good until the list gets really big you need to type more and more of an address to get to the one you want, which goes against the purpose of auto-complete I was thinking that some logic should be added so that ...
[ 0.2966651916503906, -0.02146449126303196, 0.34606876969337463, 0.29938453435897827, 0.21844302117824554, -0.02230631187558174, 0.15729597210884094, 0.17306144535541534, -0.285349041223526, -0.5935309529304504, 0.09863273054361343, 0.4010713994503021, -0.32011324167251587, -0.10251968353986...
if anyone has any suggestions. I was thinking just a point system thing, with something like same day is 5 points, last three days is 4 points, last week is 3 points, last month is 2 points and last 6 months is 1 point. Then for most often, 25+ is 5 points, 15+ is 4, 10+ is 3, 5+ is 2, 2+ is 1. No real logic other th...
[ 0.2949064373970032, 0.15198679268360138, 0.3279804289340973, 0.3341999351978302, -0.258506178855896, 0.23422393202781677, 0.07092465460300446, 0.26303887367248535, -0.5489014983177185, -0.3479406535625458, 0.09727556258440018, 0.146834135055542, 0.3810644745826721, 0.34406930208206177, 0...
mine Edit: This would be primarily in a business environment where recentness (yay for making up words) is often just as important as frequency. Also, past a certain point there really isn't much difference between say someone you talked to 80 times vs say 30 times. This kind of thing seems similar to what is done by ...
[ 0.40881505608558655, 0.17528404295444489, 0.5210962295532227, -0.10472001135349274, -0.33398744463920593, -0.1608055680990219, 0.2303330898284912, 0.017115524038672447, 0.0915716364979744, -0.3909509479999542, 0.18568632006645203, 0.34043365716934204, 0.08351492136716843, 0.108527064323425...
today) + 1/2 \* (NoM sent to X during the last week)/7 + 1/3 \* (NoM sent to X during the last month)/30 Contacts you did not write during the last month (it could be changed) will have 0 points. You could start sorting them for NoM sent in total (since it is on the contact list :). These will be showed *after* contac...
[ 0.13667477667331696, -0.05094252899289131, 0.8978967666625977, 0.06573431938886642, 0.09181950986385345, -0.06781986355781555, 0.2076691836118698, -0.0015605718363076448, -0.2767859101295471, -0.648945689201355, -0.2183838188648224, 0.3834701180458069, -0.07077591121196747, 0.2048732787370...
We are designing a Payroll Generation System for a client. The organization we are targeting has a hierarchy as follows: Company -> Cluster -> Business Unit (BU) -> Department -> Employee The salary for an employee is made up of various salary components. Each salary component has 3 rules associated with it, a Calcul...
[ 0.5262793898582458, -0.060459185391664505, 0.3130660653114319, 0.23458704352378845, -0.0020316727459430695, 0.6490429639816284, -0.15410232543945312, -0.3503013551235199, -0.19503451883792877, -0.4713297486305237, 0.09275142103433609, 0.3557013273239136, 0.047315098345279694, 0.14420849084...
a user end user\*\*. Also these rules are inherited top-down, but if defined at a lower level, the lower level rule takes precedence.\*\* **We have a database which has Attendance, Leaves, Bonuses tables and these rules are also supposed to interact with these tables.** The client will be generating payroll for multi...
[ 0.2315617799758911, 0.05024584010243416, 0.4254686236381531, 0.2417493313550949, 0.12135536223649979, -0.09447532892227173, -0.02850031666457653, -0.16148653626441956, -0.02254798822104931, -0.5613617300987244, 0.020749183371663094, 0.533997654914856, -0.10015001147985458, 0.07345046848058...
generate the individual tax components (which will include Tax Deductions, Tax Write-offs, Allowances, etc).** Some people are advocating magic SPs which will take an employee Id and generate a payroll for that month. Others want the logic to be split into separate components which will get the dependent data for an e...
[ 0.6046746373176575, -0.016195546835660934, 0.5051802396774292, 0.5942182540893555, -0.012540634721517563, -0.06442438811063766, 0.1271316111087799, -0.4443735182285309, -0.20161260664463043, -0.378930002450943, 0.054267674684524536, 0.6300778388977051, 0.1526399403810501, -0.19087535142898...
will be deploying the application for different clients. Client A may have a Salary Component Rule as ((0.3 \* Basic) + 800) and Client B as (0.2 \* Basic) + (0.1 \* Atendance Bonus) **Will SPs cause a mess here, as the rules suggested above will be specified by the end user and will need to be customizable through a ...
[ 0.17882870137691498, -0.0386803112924099, 0.4731019139289856, 0.11896845698356628, -0.0557221844792366, -0.036517806351184845, -0.028716551139950752, -0.3338685929775238, -0.45402076840400696, -0.4032912254333496, 0.09227190166711807, 0.43226227164268494, -0.03090919554233551, -0.222819745...
properly answered. Suggestions and pointers to existing systems' architecture will be very helpful. ...and yes, we are using LINQ to SQL elsewhere in the system. Kind regards, Ashish Sharma I always try to shy away from putting business logic in the DB layer. It is more difficult to write, debug and maintain. In addi...
[ 0.5355299711227417, 0.338497132062912, -0.0003988689568359405, 0.23260052502155304, -0.22359614074230194, -0.18183980882167816, 0.16142146289348602, -0.32447293400764465, 0.04648826643824577, -0.20210745930671692, -0.009751011617481709, 0.5592212677001953, -0.13142484426498413, 0.078458353...
support.
[ 0.01091784331947565, 0.092380590736866, 0.4476451277732849, 0.2008787840604782, 0.055552851408720016, 0.31626343727111816, -0.23180560767650604, -0.17453868687152863, -0.1953701376914978, -0.6263163685798645, -0.612917423248291, 0.36110466718673706, 0.043371543288230896, -0.254020422697067...
I found this [PECL package called threads](http://pecl.php.net/package/threads), but there is not a release yet. And nothing is coming up on the PHP website. There is nothing available that I'm aware of. The next best thing would be to simply have one script execute another via CLI, but that's a bit rudimentary. Depend...
[ 0.4640236496925354, -0.024565787985920906, 0.1493520736694336, 0.109422467648983, 0.2004181146621704, -0.16326847672462463, 0.14356759190559387, 0.45246878266334534, -0.13183097541332245, -0.5558577179908752, 0.3036729097366333, 0.2274443656206131, -0.1270485371351242, 0.1026967465877533, ...
Are there any existing solutions for remote execution of commands on a windows server from Java natively? psexec.exe is not an option since the java application has to be cross platform. Even a preexisting solution using Java RM would be sufficient. Currently, I'm using an SSH client library to ssh through java into ...
[ 0.17626290023326874, -0.01752113550901413, -0.020073015242815018, 0.2057444304227829, -0.16985267400741577, -0.03843913972377777, 0.319025456905365, -0.01087663322687149, -0.3222358226776123, -0.6389803886413574, 0.04150015860795975, 0.5465704798698425, -0.20290561020374298, 0.220873072743...
be able to trim it down to what you need. Since it uses getopt, I would assume it's GPL'd.
[ 0.41602960228919983, 0.17277732491493225, 0.38280001282691956, 0.14159318804740906, 0.2978057861328125, -0.3231731057167053, -0.15003561973571777, 0.04960298165678978, 0.07571959495544434, -0.7578134536743164, 0.20719248056411743, 0.7709540128707886, 0.31106093525886536, -0.266514271497726...
Long winded title, short question: If one wants to develop for Windows but not have to rely on any external dependency (no runtime, thus ruling out .net), what supported, alive and fully functioning\* alternatives are there? Visual Basic 6 is dead, Visual C++ is obvious and Delphi seems to be the prime choice for tha...
[ 0.02824726700782776, 0.054053954780101776, 0.2033780962228775, 0.12000146508216858, -0.0048752776347100735, -0.2922951281070709, -0.029917486011981964, 0.06892930716276169, -0.03960360214114189, -0.30573180317878723, -0.32472527027130127, 0.5561309456825256, 0.08764363825321198, 0.39559504...
In the following one to many ``` CREATE TABLE source(id int, name varchar(10), PRIMARY KEY(id)); CREATE TABLE params(id int, source int, value int); ``` where params.source is a foreign key to source.id ``` INSERT INTO source values(1, 'yes'); INSERT INTO source values(2, 'no'); INSERT INTO params VALUES(1,1,1); I...
[ -0.11784510314464569, 0.31561997532844543, 0.5064641833305359, 0.08937546610832214, -0.03636978566646576, 0.40210700035095215, 0.19737377762794495, -0.7822292447090149, -0.2676537036895752, -0.3471207916736603, -0.15923471748828888, 0.1648695468902588, -0.33363649249076843, 0.1799502521753...
this: ``` SELECT * FROM source WHERE ( SELECT COUNT(DISTINCT value) FROM params WHERE params.source = source.id AND params.value IN (1, 2, 3) ) = 3 ``` You can rewrite it to a GROUP BY as well: ``` SELECT source.* FROM source INNER JOIN params ON params....
[ -0.1616203635931015, 0.3452218472957611, 0.44482868909835815, -0.1623973250389099, -0.23636168241500854, 0.3247617483139038, 0.20882950723171234, -1.0040302276611328, -0.38928407430648804, -0.4140975773334503, -0.21666200459003448, -0.08910542726516724, -0.4161824882030487, 0.0839546993374...
source.id, source.name HAVING COUNT(DISTINCT params.value) = 3 ```
[ 0.10415162146091461, 0.2700575292110443, 0.45890963077545166, -0.07123132795095444, 0.012813746929168701, 0.00915638916194439, 0.0895611122250557, -0.5686920881271362, -0.12621639668941498, -0.2948897182941437, -0.04204460233449936, 0.3168874680995941, -0.2212509959936142, 0.46323242783546...
Is there a way to start an instance of eclipse, passing it some sort of parameter telling it to use a specific workspace? The problem I'm trying to solve is that I have a workspace for work projects and one for personal projects. I'd like to be able to tie these to workspaces to separate shortcuts that I could launch ...
[ 0.4229002296924591, 0.08554863184690475, 0.08945117890834808, 0.07908187061548233, -0.19487933814525604, -0.17447592318058014, 0.03517609462141991, 0.030972106382250786, -0.2523171603679657, -0.61240154504776, -0.07555435597896576, 0.3624374568462372, -0.18626661598682404, -0.1332267522811...
Some of my data are 64-bit integers. I would like to send these to a JavaScript program running on a page. However, as far as I can tell, integers in most JavaScript implementations are 32-bit signed quantities. My two options seem to be: 1. Send the values as strings 2. Send the values as 64-bit floating point numb...
[ 0.2967061400413513, 0.0605902373790741, 0.1810242235660553, 0.1487886756658554, -0.060512375086545944, 0.05204268544912338, -0.020787427201867104, -0.2910720109939575, -0.5297139286994934, -0.33982789516448975, 0.20567648112773895, 0.3919062614440918, -0.18737080693244934, -0.0871669873595...
magic token that you need to pass back to the website later on, by all means simply use a string containing the value. If you actually have to do arithmetic on the value, you could possibly write your own Javascript routines for 64-bit arithmetic. One way that you could represent values in Javascript (and hence JSON)...
[ 0.17095421254634857, -0.21837908029556274, 0.10001800954341888, 0.1391299068927765, -0.2642371654510498, -0.01970597542822361, 0.3179420530796051, -0.3203005790710449, -0.16341625154018402, -0.40851926803588867, 0.32165974378585815, 0.40374183654785156, -0.17537587881088257, -0.08227498084...
two 32-bit values to a 64-bit value: ``` input_value = ((int64_t) output_values[0]) << 32) | output_values[1]; ```
[ -0.3005395531654358, 0.03841491416096687, -0.16337460279464722, -0.3436637222766876, 0.09482160955667496, 0.34506934881210327, 0.058068059384822845, -0.2684365212917328, -0.008659226819872856, -0.28912514448165894, -0.18139928579330444, 0.7844069600105286, -0.6110645532608032, -0.074493773...
Python 3.0 is in beta with a final release coming shortly. Obviously it will take some significant time for general adoption and for it to eventually replace 2.x. I am writing a tutorial about certain aspects of programming Python. I'm wondering if I should do it in Python 2.x or 3.0? (not that the difference is huge)...
[ 0.5761370062828064, 0.056895021349191666, 0.04986970126628876, -0.24681641161441803, -0.46626219153404236, -0.37494030594825745, 0.5457848906517029, 0.026335034519433975, -0.12697918713092804, -0.533134400844574, 0.040593720972537994, 0.8002514243125916, -0.48332443833351135, -0.3113616704...
a long time. Last year, [Guido himself said that it would be "two years"](http://www.artima.com/weblogs/viewpost.jsp?thread=211200) until you needed to learn 3.0; there's still another year left. Personally, I think it will be longer. People writing code on 2.x can learn how to use the `2to3` tool and have code that wo...
[ 0.589486300945282, 0.004742100834846497, 0.17701785266399384, -0.15560555458068848, -0.2171112298965454, -0.2766164541244507, 0.6315100193023682, -0.06455159932374954, -0.3938091993331909, -0.4250284433364868, 0.15043586492538452, 0.525580883026123, 0.28929322957992554, 0.00123212311882525...
at least), that there is no django for python 3, no wxwindows for python 3, no GTK for python 3, no Twisted for python 3, no PIL for python 3... the real strength of Python has always been in its extensive collection of libraries, and there are very few libraries for python 3 right now. If your tutorial is well writte...
[ 0.1443929821252823, 0.2590802013874054, -0.007891706191003323, 0.037763845175504684, -0.46804988384246826, -0.188570037484169, 0.438618004322052, 0.24774831533432007, -0.286749929189682, -0.4194902777671814, -0.31737956404685974, 0.6271979212760925, -0.25164106488227844, -0.114246971905231...
I have tried ``` <ul id="contact_list"> <li id="phone">Local 604-555-5555</li> <li id="i18l_phone">Toll-Free 1-800-555-5555</li> </ul> ``` with ``` #contact_list { list-style: disc none inside; } #contact_list #phone { list-style-image: url(images/small_wood_phone.png); } #contact_list #i18l_phone...
[ 0.07800260931253433, 0.38478606939315796, 0.44066062569618225, -0.09463205933570862, -0.1253872513771057, -0.06745422631502151, 0.5359132289886475, -0.42195433378219604, -0.2716332674026489, -0.5133315324783325, -0.03584235534071922, 0.7666006088256836, -0.1297834813594818, 0.0062322891317...
I have no other rules in the test case I'm running that contains ul or li in the selector, I'm not sure why inlining gives a different result. First determine whether you are in "quirks" mode or not, because for many CSS properties it makes a difference. Secondly, the W3c [specifies](http://www.w3.org/TR/CSS21/generat...
[ 0.7147395014762878, -0.04869765415787697, 0.24241380393505096, 0.07120674103498459, -0.266822874546051, -0.26142749190330505, 0.1677270531654358, -0.12578848004341125, -0.07773321866989136, -0.2955608367919922, -0.06475973129272461, 0.7486026287078857, -0.22383947670459747, -0.124956227838...
My 11 year old son is very interested in programming. He has been working with [Scratch](http://scratch.mit.edu) for a couple years but has now outgrown it. I recently helped him install Visual C# Express Edition and he is very excited to work with it, but we're having a hard time finding good resources for him online....
[ 0.6021603345870972, 0.6641120314598083, -0.4763380289077759, 0.11927575618028641, 0.1902013123035431, -0.0374995656311512, 0.08952024579048157, 0.48012489080429077, -0.0801587924361229, -0.8785234689712524, 0.20643435418605804, 0.14533719420433044, 0.1856912076473236, -0.005367156583815813...
for a kid learning C#, or any other resources you think might be good for him? BTW I'm a programmer myself but I've been almost exclusively working with Linux for a long time, so when it comes to Microsoft I'm pretty lost! I would recommend [Coding4Fun](http://blogs.msdn.com/coding4fun/). There are some very nice proj...
[ 0.9297309517860413, 0.25528761744499207, -0.09221892803907394, 0.17418453097343445, -0.057369571179151535, -0.09517823904752731, 0.12543147802352905, 0.724544882774353, -0.18906770646572113, -0.7087709307670593, 0.2300790548324585, 0.5972893834114075, 0.25090762972831726, -0.16250340640544...
I have some C++ source code with templates maybe like this - doxygen runs without errors but none of the documentation is added to the output, what is going on? ``` /// /// A class /// class A { /// /// A typedef /// typedef B<C<D>> SomeTypedefOfTemplates; }; ``` Yeah, so what is going on is the template inst...
[ 0.4802153706550598, 0.198228120803833, -0.029210694134235382, 0.09269601851701736, 0.12842069566249847, -0.4305039346218109, 0.20929698646068573, -0.08808796852827072, -0.13923978805541992, -0.6130703091621399, -0.0387926921248436, 0.5372865200042725, -0.6254081726074219, 0.093682385981082...
/// /// A typedef /// typedef B<C<D> > SomeTypedefOfTemplates; }; ```
[ -0.12966154515743256, 0.23861832916736603, 0.12261756509542465, -0.29062727093696594, 0.1586940884590149, -0.07860465347766876, 0.054486654698848724, -0.13018780946731567, 0.015065718442201614, -0.5538437366485596, -0.5889626145362854, 0.3589502274990082, -0.4167097806930542, 0.10952166467...
What's the shortest Perl one-liner that print out the first 9 powers of a hard-coded 2 digit decimal (say, for example, .37), each on its own line? The output would look something like: ``` 1 0.37 0.1369 [etc.] ``` Official Perl golf rules: 1. Smallest number of (key)strokes wins 2. Your stroke count includes the...
[ -0.2699434161186218, 0.18199729919433594, 0.9155035018920898, -0.3956761658191681, -0.1458532065153122, 0.38092634081840515, -0.21323609352111816, -0.4663470387458801, -0.2552092373371124, -0.23454266786575317, 0.2405349761247635, 0.5714713335037231, -0.25567442178726196, -0.22140569984912...
-E'say.37**$_ for 0..8' ```
[ 0.2965853810310364, 0.662187397480011, 0.34332212805747986, -0.04241405799984932, 0.20817331969738007, 0.17887939512729645, 0.18559391796588898, 0.2921661138534546, 0.1109142079949379, -0.5371483564376831, -0.1483994424343109, 0.4538138210773468, -0.4444139003753662, 0.4756920039653778, ...
In ASP.NET what's the best way to do the following: 1. Show certain controls based on your rights? 2. For a gridview control, how do you show certain columns based on your role? I'm thinking for number 2, have the data come from a role specific view on the database. Instead of actually using roles to hide/show certai...
[ 0.25834089517593384, -0.5230883359909058, 0.42694541811943054, 0.1953391432762146, -0.14276140928268433, -0.1307716816663742, -0.07607357203960419, -0.29591232538223267, -0.2810554504394531, -0.7071848511695862, 0.1580284833908081, 0.4117433726787567, -0.33207619190216064, -0.2812719047069...
assign a set of permissions to the role. As for controls, yes... I would just set the Visible property on the control based on the user.IsInRole("permissionname") value. For grids I would do the same... set the Visibility of the columns to the IsInRole boolean value. ``` //Delete Icon Column gridViewContacts.Columns...
[ -0.33496391773223877, -0.29146936535835266, 0.4236423969268799, -0.0033448575995862484, -0.07442948967218399, 0.23043808341026306, 0.1193172037601471, -0.38465404510498047, 0.1345110833644867, -0.8080350160598755, 0.04205361381173134, 0.6978417038917542, -0.35675549507141113, -0.0302716270...
I have a 10 second sound effect wave file. What I would like to do is take that file and repeat it n number of times and then save the longer WAV file to disk. This way I can create a much longer background effect rather than auto-repeat on the media player which is a bit stuttered between repeats. I am trying to do th...
[ 0.8887389302253723, 0.1972925215959549, 0.24055947363376617, -0.12300581485033035, 0.012232095934450626, -0.09499163180589676, 0.21917201578617096, 0.13728126883506775, -0.025827882811427116, -0.7810066342353821, 0.3525908887386322, 0.6858840584754944, 0.08897121995687485, 0.18664294481277...
I have a table that has an insert trigger on it. If I insert in 6000 records into this table in one insert statement from a stored procedure, will the stored procedure return before the insert trigger completes? Just to make sure that I'm thinking correctly, the trigger should only be called (i know 'called' isn't the...
[ 0.48996487259864807, 0.2973913550376892, 0.3674498498439789, -0.04172491654753685, 0.2417687028646469, -0.04558202996850014, 0.005681896116584539, -0.44176921248435974, -0.6204922795295715, -0.13051262497901917, 0.15768645703792572, 0.7181171178817749, -0.04429640620946884, 0.1910302639007...
temporary table to see what has actually been inserted, and not just select the most recent single record, or something like that. I just tested an insert and update trigger and indeed, they are considered part of the insert by sql server. the process will not finish until the trigger finishes.
[ 0.15043537318706512, 0.3331126272678375, 0.7595619559288025, 0.026905961334705353, 0.45944729447364807, -0.23930084705352783, -0.5188028216362, -0.03934416174888611, -0.3452441096305847, -0.4917375147342682, 0.03461271896958351, 0.3091241419315338, -0.006054773461073637, 0.1708723604679107...
I have a symlink to an important directory. I want to get rid of that symlink, while keeping the directory behind it. I tried `rm` and get back `rm: cannot remove 'foo'`. I tried `rmdir` and got back `rmdir: failed to remove 'foo': Directory not empty` I then progressed through `rm -f`, `rm -rf` and `sudo rm -r...
[ 0.33760932087898254, 0.16002224385738373, 0.26870831847190857, -0.06791926920413971, -0.05413235351443291, 0.2580726742744446, 0.11205806583166122, -0.4413378834724426, -0.1434544324874878, -0.24585816264152527, 0.08299381285905838, 0.8180344700813293, -0.2961312532424927, 0.41843196749687...
*file*, not delete a *directory*. I believe the difference between `rm` and `rmdir` exists because of differences in the way the C library treats each. At any rate, the first should work, while the second should complain about foo being a directory. If it doesn't work as above, then check your permissions. You need w...
[ 0.45894092321395874, 0.27599480748176575, 0.10579246282577515, -0.34758538007736206, 0.04298808053135872, -0.20841847360134125, 0.26337411999702454, -0.20782960951328278, -0.023517508059740067, -0.06836660951375961, -0.2402700036764145, 0.9219678044319153, -0.3688274621963501, 0.1966961324...
What would be the best way to port an existing Drupal site to a Django application? I have around 500 pages (mostly books module) and around 50 blog posts. I'm not using any 3rd party modules. I would like to keep the current URLS (for SEO purposes) and migrate database to Django. I will create a simple blog applicatio...
[ 0.411125123500824, 0.28871670365333557, 0.3848009407520294, 0.07205130159854889, -0.5157630443572998, -0.282537579536438, 0.023031314834952354, -0.10772620886564255, -0.10598360747098923, -0.600986123085022, 0.31228524446487427, 0.5483765006065369, -0.1790282428264618, -0.12848718464374542...
for your books and blog posts. 2. Unit test that model using Django's built-in testing capabilities. 3. Write some small utilities to load your legacy data into Django. At this point, you'll realize that your Django model isn't perfect. Good. Fix it. Fix the tests. Redo the loads. 4. Configure the default admin interfa...
[ 0.514070451259613, 0.16262711584568024, 0.262403666973114, 0.3165571689605713, -0.022127294912934303, -0.18822333216667175, 0.26214534044265747, -0.2964702248573303, -0.08299310505390167, -0.6553483009338379, 0.03162752091884613, 0.7032978534698486, -0.17955774068832397, -0.108208015561103...
URL mappings and view functions to populate the templates from the data model. Take the time to get the data model right. It really matters, because everything else is very simple if your data model is solid.
[ 0.39299893379211426, -0.11251086741685867, 0.1966966986656189, 0.5172642469406128, -0.24855658411979675, -0.30265024304389954, 0.09772855043411255, 0.13422004878520966, -0.04294367879629135, -0.7589662075042725, -0.03345577046275139, 0.669341504573822, 0.13767744600772858, -0.0382598787546...
I guess the real question is: If I don't care about dirty reads, will adding the **with (NOLOCK)** hint to a SELECT statement affect the performance of: 1. the current SELECT statement 2. other transactions against the given table Example: ``` Select * from aTable with (NOLOCK) ``` 1) **Yes**, a select with `NOL...
[ 0.24717092514038086, -0.10408379882574081, 0.2770664691925049, 0.19267703592777252, 0.03447290137410164, -0.060611989349126816, 0.11625900864601135, -0.3851771652698517, 0.03350948542356491, -0.3996020555496216, 0.02847079560160637, 0.6409663558006287, -0.13781076669692993, 0.1795520931482...
bother holding it still while you read from it. It is all at once faster, less resource-intensive, and very very dangerous. You should be warned to never do an update from or perform anything system critical, or where absolute correctness is required using data that originated from a `NOLOCK` read. It is absolutely p...
[ 0.0929814875125885, 0.05259299278259277, 0.31540927290916443, 0.21935781836509705, 0.37188246846199036, -0.2836414575576782, 0.22809360921382904, 0.23676516115665436, -0.5381242632865906, -0.2790199816226959, 0.06666228920221329, 0.6303647756576538, -0.2157488316297531, 0.20597101747989655...
records that violate foreign key constraints. It is possible that this data excludes rows that have been added to the table but have yet to be committed. *You really have no way to know what the state of the data is.* If you're trying to get things like a Row Count or other summary data where some margin of error is...
[ 0.421289324760437, 0.27824580669403076, 0.1329440176486969, 0.3787747323513031, 0.4867604374885559, -0.20584644377231598, 0.26848024129867554, 0.48346012830734253, -0.5747776627540588, -0.6211583614349365, 0.019773080945014954, 0.4277632236480713, -0.11793096363544464, 0.15024717152118683,...
Can somebody remember what was the command to create an empty file in MSDOS using BAT file? ``` echo. 2>EmptyFile.txt ```
[ 0.279757559299469, 0.21603867411613464, -0.01466398499906063, 0.005696713924407959, 0.3479677736759186, -0.1338520050048828, 0.16202542185783386, 0.13988077640533447, -0.3768342137336731, -0.5021804571151733, 0.03585592657327652, 0.5723981857299805, -0.22074149549007416, 0.1030202880501747...
I have this regex I built and tested in regex buddy. ``` "_ [ 0-9]{10}+ {1}+[ 0-9]{10}+ {2}+[ 0-9]{6}+ {2}[ 0-9]{2}" ``` When I use this in .Net C# I receive the exception ``` "parsing \"_ [ 0-9]{10}+ +[ 0-9]{10}+ +[ 0-9]{6}+ [ 0-9]{2}\" - Nested quantifier +." ``` What does this error mean? Apparently .net d...
[ 0.062193479388952255, 0.12611107528209686, 0.4186127781867981, -0.06664688885211945, -0.057595204561948776, -0.29148435592651367, 0.42414116859436035, -0.24167780578136444, 0.031149689108133316, -0.3562625050544739, -0.09721595048904419, 0.7437566518783569, -0.5617422461509705, -0.05126708...
The character " " « » A character in the range between "0" and "9" «0-9» Match the character " " literally « {1}+» Exactly 1 times «{1}+» Match a single character present in the list below «[ 0-9]{10}+» Exactly 10 times «{10}+» The character " " « » A character in the range between "0" and "9" «0-9» Matc...
[ -0.5188251733779907, 0.25800028443336487, 0.1906476467847824, -0.07177822291851044, -0.027459992095828056, 0.7032179236412048, 0.22132761776447296, -0.4768722951412201, 0.18000514805316925, -0.39328140020370483, -0.5272670984268188, 0.6065082550048828, 0.038849808275699615, -0.193667680025...
" " « » A character in the range between "0" and "9" «0-9» Match the character " " literally « {2}» Exactly 2 times «{2}» Match a single character present in the list below «[ 0-9]{2}» Exactly 2 times «{2}» The character " " « » A character in the range between "0" and "9" «0-9» ``` In short... What i...
[ 0.08224380761384964, 0.01332988403737545, 0.10981657356023788, 0.04671182855963707, -0.15283331274986267, -0.018012480810284615, 0.24269214272499084, -0.4019562005996704, -0.12163230031728745, -0.41090747714042664, -0.19599595665931702, 0.4275974929332733, -0.2825483977794647, -0.014408471...
more of a given group. Remove the `+`'s and it'll compile fine. ``` "_ [ 0-9]{10} {1}[ 0-9]{10} {2}[ 0-9]{6} {2}[ 0-9]{2}" ```
[ 0.005313517525792122, 0.04249926656484604, 0.16874471306800842, 0.029691556468605995, -0.01734459586441517, -0.03440137952566147, 0.444631427526474, -0.7059155702590942, -0.4038177728652954, -0.48762819170951843, -0.297228068113327, 0.5126368999481201, -0.569608211517334, -0.11138237267732...
I am using a library that has headers without the .h This defeats visual studio's intellisense (declaration/definition lookup) Anyone know how to tell VS2008 that a file is a header? Go to Tools::Options::Text Editor::File Extension tab in Visual Studio. Check the "Map extensionless headers" checkbox, and select th...
[ 0.5282720327377319, -0.1979890763759613, -0.02023092843592167, 0.15959301590919495, -0.21832938492298126, -0.5947227478027344, 0.490534245967865, 0.2628745436668396, -0.21903261542320251, -0.7879809141159058, -0.12548595666885376, 0.5085306167602539, -0.16162921488285065, -0.18427608907222...
I've been using various source control systems for a while, but when it comes to reverting changes I'm not yet an expert. Can someone help given this scenario: Scenario -------- * Given a bug was introduced in revision #5 * And 3 files were changed in revision #5 * And changes in 2 files were responsible for the bug ...
[ 0.21733053028583527, 0.1284811645746231, 0.536969780921936, 0.07106808573007584, 0.1284928023815155, 0.08733291923999786, 0.32714012265205383, -0.1152421236038208, -0.34746304154396057, -0.6826416254043579, -0.02845366857945919, 0.9194140434265137, -0.03710231930017471, 0.30859994888305664...
must be a way to compare revisions #4 and #5 of the two files and generate a patch that undoes the changes in revision #5, which can then be applied to the HEAD revision to roll-back the defect. Here is a [link to svn](http://svnbook.red-bean.com/en/1.8/svn.tour.history.html) book explaining all about reverts and histo...
[ 0.4165838062763214, -0.04662992060184479, 0.5311185717582703, 0.18193738162517548, 0.022071655839681625, -0.1869044154882431, 0.33315786719322205, -0.2779361307621002, -0.27347415685653687, -0.4060128927230835, -0.07783965766429901, 0.75227290391922, -0.04870406910777092, 0.363639116287231...
I have a `textbox` whose input is being handled by jQuery. ``` $('input.Search').bind("keyup", updateSearchTextbox); ``` When I press `Enter` in the textbox, I get a postback, which messes everything up. How can I trap that Enter and ignore it? (Just to preempt one possible suggestion: The textbox has to be an `<as...
[ 0.14204396307468414, 0.17381395399570465, 0.629379153251648, -0.3215917646884918, -0.03234726935625076, -0.25983715057373047, 0.6257988810539246, -0.2648570239543915, 0.13899073004722595, -0.7988982796669006, -0.26869672536849976, 0.5754193067550659, -0.3750326931476593, 0.1498016864061355...
if(window.event) key = window.event.keyCode; //IE else key = e.which; //firefox return (key != 13); } </script> ``` And in your codebehind: ``` textbox.Attributes.Add("OnKeyPress","return disableEnterKey(event)"); ```
[ 0.10124662518501282, 0.003067107405513525, 0.3754289746284485, -0.30975452065467834, 0.6389262676239014, -0.2054503709077835, 0.3461534380912781, -0.42358243465423584, 0.00891468208283186, -0.7281348705291748, -0.5267703533172607, 0.9581068754196167, -0.34908002614974976, -0.38218179345130...
I have been attempting to write some routines to read RSS and ATOM feeds using the new routines available in System.ServiceModel.Syndication, but unfortunately the Rss20FeedFormatter bombs out on about half the feeds I try with the following exception: > ``` > An error was encountered when parsing a DateTime value in ...
[ 0.46930649876594543, 0.10796595364809036, 0.9458909034729004, -0.12873032689094543, -0.09674838185310364, -0.449767142534256, 0.3954887390136719, 0.006959486752748489, -0.3894091546535492, -0.658477246761322, -0.13232538104057312, 0.4152945280075073, -0.34984803199768066, 0.150241002440452...
I have not found it. Can anyone assist? RSS 2.0 formatted syndication feeds utilize the [RFC 822 date-time specification](http://www.w3.org/Protocols/rfc822/#z28) when serializing elements like *pubDate* and *lastBuildDate*. The RFC 822 date-time specification is unfortunately a very 'flexible' syntax for expressing th...
[ 0.4614909887313843, -0.15845398604869843, 0.6432831287384033, -0.040206730365753174, 0.36328667402267456, 0.05399402603507042, 0.11185716092586517, 0.35036343336105347, 0.01650800183415413, -0.42429476976394653, -0.48920977115631104, 0.19348742067813873, 0.15421776473522186, 0.538065969944...
"Y" is 12 hours later. The letter "J" is not used. The other remaining two forms are taken from ANSI standard X3.51-1975. One allows explicit indication of the amount of offset from UT; the other uses common 3-character strings for indicating time zones in North America.* I believe the issue involves how the **zone** ...
[ 0.40581199526786804, -0.33231768012046814, 0.8665406107902527, 0.03573307767510414, 0.014537976123392582, -0.004843378439545631, 0.23414142429828644, -0.13536907732486725, -0.04446239769458771, -0.4141022562980652, -0.1487109363079071, 0.21993626654148102, 0.02845061756670475, 0.1480945348...
date-times, or write your own parsing code for RFC 822 formatted dates. Another option would be to use a third party framework instead of the System.ServiceModel.Syndication namespace classes. It appears there are some [known issues](http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=32542...
[ 0.5101014971733093, -0.13424183428287506, 0.45294079184532166, 0.3108379542827606, -0.12679113447666168, -0.01257600449025631, -0.02296552248299122, -0.00023490699823014438, -0.5725116729736328, -0.6945627927780151, -0.10328496992588043, 0.13145886361598969, -0.34463927149772644, 0.2218721...
What's the best way to get an array of all elements in an html document with a specific CSS class using javascript? No javascript frameworks like jQuery allowed here right now, and I could loop all the elements and check them manually myself. I'm hoping for something a little more elegant. The below answer is now push...
[ 0.3200366497039795, -0.02456248365342617, 0.43365007638931274, -0.09492290765047073, 0.019679458811879158, -0.1962355673313141, 0.3393447995185852, -0.3231169283390045, -0.5233373641967773, -0.6857761740684509, 0.18466560542583466, 0.13964961469173431, -0.04431092366576195, 0.0221510883420...
aren't using one of them then i can recommend Robert Nyman's excellent implementation: <http://code.google.com/p/getelementsbyclassname/> <http://www.robertnyman.com/2008/05/27/the-ultimate-getelementsbyclassname-anno-2008/> There are just too many ways to make this (conceptually-simple) routine *slow and buggy* t...
[ -0.10103414952754974, 0.22255684435367584, -0.08562202751636505, 0.027585867792367935, -0.041374556720256805, 0.007988794706761837, 0.5507969260215759, -0.3097189962863922, -0.1884712129831314, -0.4831497073173523, 0.006317595019936562, 0.47878631949424744, -0.3985763192176819, -0.26843121...
Is it possible to somehow mark a `System.Array` as immutable. When put behind a public-get/private-set they can't be added to, since it requires re-allocation and re-assignment, but a consumer can still set any subscript they wish: ``` public class Immy { public string[] { get; private set; } } ``` I thought the...
[ 0.06366518884897232, -0.06306564062833786, -0.004485899582505226, 0.04729526862502098, 0.13331075012683868, -0.22077450156211853, 0.1423477679491043, 0.011476889252662659, -0.3449990749359131, -0.46054181456565857, -0.13379135727882385, 0.23530294001102448, -0.3403629958629608, 0.194155916...
How can polymorphism be described in an easy-to-understand way? We can find a lot of information about the subject on the Internet and books, like in *[Type polymorphism](http://en.wikipedia.org/wiki/Type_polymorphism)*. But let's try to make it as simple as we can. This is from my [answer](https://stackoverflow.com/q...
[ 0.36797741055488586, -0.10888741165399551, -0.5015482306480408, -0.06087733805179596, -0.07678265124559402, -0.10380914062261581, 0.31247079372406006, -0.35548126697540283, -0.20488524436950684, -0.4602937400341034, -0.09193190932273865, 0.3724163770675659, -0.8630815148353577, -0.03917453...
return "Bark"; } } Main () { Animal animal = Zoo.GetAnimal (); Console.WriteLine (animal.MakeNoise ()); } ``` The Main() method doesn't know the type of the animal and depends on a particular implementation's behavior of the MakeNoise() method.
[ 0.19865968823432922, -0.04837666451931, -0.14442738890647888, -0.3688265085220337, 0.2663101851940155, 0.004744969308376312, 0.7254120111465454, -0.260959267616272, -0.0006501674652099609, -0.24084573984146118, -0.2546369731426239, 0.4948795735836029, -0.7380994558334351, 0.191526919603347...
I'm writing a web application in Python, intended for use by teachers and pupils in a classroom. It'll run from a hosted website, but I also want people to be able to download a self-contained application they can install locally if they want more performance or they simply won't have an Internet connection available i...
[ 0.5235029458999634, 0.032663729041814804, -0.1575077921152115, -0.07831878960132599, 0.08608433604240417, -0.04344560205936432, 0.21339944005012512, 0.17372173070907593, -0.012359516695141792, -0.5762888193130493, -0.2029457688331604, 0.5941952466964722, -0.19753576815128326, -0.1633195728...
Python, dependencies (Python-LDAP), some Python code, and register a Python-based web server as a Windows Service. I've had a look through previous questions, but none quite seem relevant. I'm not concerned about the security of source code (my application will be open source, I'll sell content to go with it), I just ...
[ 0.27694636583328247, 0.023281697183847427, 0.3623667359352112, -0.17285439372062683, -0.04304514825344086, -0.23905736207962036, 0.19514361023902893, 0.11366384476423264, -0.22880250215530396, -0.7247618436813354, -0.1815081536769867, 0.7247625589370728, -0.4618297517299652, -0.05719830095...
in the start menu / on the desktop linking to <http://localhost>. Is this doable with NSIS - can NSIS check for currently installed copies of Python, for instance? Is there a better way of doing this - is there a handy framework available that lets me shove my code in a folder and bundle it up to make an installer? Usi...
[ 0.48860353231430054, -0.08411359041929245, 0.11283766478300095, 0.1562882661819458, -0.058054953813552856, -0.41043606400489807, 0.3003809452056885, 0.2762398421764374, -0.34540924429893494, -0.9985120296478271, -0.20721206068992615, 0.6518902778625488, -0.29303178191185, -0.14157705008983...
smaller as you're not bundling the whole Python Standard Lib and extra stuff your app wont need and you get an exe file to boot!
[ 0.24950449168682098, -0.1419435441493988, 0.0005954932421445847, 0.09556122869253159, -0.08576924353837967, -0.06519050896167755, 0.24654845893383026, 0.1649666130542755, -0.4624863862991333, -0.30980944633483887, -0.14283093810081482, 0.48572808504104614, -0.2305723875761032, -0.088986448...
Anyone know a QR decoder that works on mac or that might be online? I just need to decode one single image. Unfortunately, the most used library [libdecodeqr](http://trac.koka-in.org/libdecodeqr) is depends on OpenCV (gtk2) and it is too hard to compile it on OS X. (Tried to compile it because it is needed by `Image::D...
[ 0.24637725949287415, 0.01490848883986473, 0.4768335521221161, 0.027289271354675293, -0.16293738782405853, -0.21261604130268097, 0.26063746213912964, 0.05047249421477318, 0.30734044313430786, -0.7759531736373901, -0.147358700633049, 0.9315924644470215, -0.3563217520713806, 0.062637053430080...