text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
2003, my box which creates the connection is Windows XP. I appreciate this is fairly weird, however I cannot see any problem with the application deployment I have created. Does anyone know what could be cause this issue? EDIT: I bit the bullet and created the application as a windows service, obviously this doesn't...
[ 0.16003291308879852, 0.4337809383869171, 0.48697254061698914, 0.12152335792779922, -0.35038772225379944, -0.272859662771225, 0.2357814610004425, 0.32745954394340515, -0.31168973445892334, -0.6059294939041138, 0.29877787828445435, 0.648549497127533, -0.4546301066875458, 0.2963397800922394, ...
the situation either! EDIT: The two errors I get are: > System.Runtime.InteropServices.COMException > (0x80000201): Invalid printer > specified. at > CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrinterName(String > newVal) at > CrystalDecisions.CrystalReports.Engine.PrintOptions...
[ -0.0185652207583189, 0.07159486413002014, 0.6846398115158081, 0.1626817137002945, 0.04195157438516617, 0.12998579442501068, 0.43221813440322876, -0.5894216299057007, -0.34170523285865784, -0.6558288335800171, -0.13538184762001038, 0.5856691598892212, -0.04771503061056137, 0.251601725816726...
endPageN) at > CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 > nCopies, Boolean collated, Int32 > startPageN, Int32 endPageN) at > Dsa.PrintServer.Service.Service.PrintCrystalReport(Report > report) EDIT: I ran filemon to check if there were any access issue. At the point when the er...
[ -0.08017903566360474, 0.07231666147708893, 0.6188099980354309, 0.114874467253685, -0.11440589278936386, -0.01891477219760418, 0.25629276037216187, -0.12352972477674484, -0.360882431268692, -0.6202136874198914, 0.06619548052549362, 0.5603264570236206, -0.3577856719493866, 0.2450412511825561...
and remove any association with printers in the report.
[ 0.1692499816417694, 0.4869880974292755, -0.08721289038658142, -0.0703597366809845, 0.28245529532432556, -0.294716477394104, -0.09540421515703201, 0.2818496525287628, 0.03740302100777626, 0.2896382212638855, -0.2762536406517029, 0.23802544176578522, 0.03156557306647301, 0.18991699814796448,...
I have a game that's based on a 25x20 HTML table (the game board). Every 3 seconds the user can "move," which sends an AJAX request to the server, at which time the server rerenders the entire HTML table and sends it to the user. This was easy to write, but it wastes a lot of bandwidth. Are there any libraries, client...
[ 0.3872043788433075, -0.15334540605545044, 0.38314294815063477, 0.05389877036213875, -0.2130649834871292, 0.011700417846441269, -0.030654557049274445, -0.06023815646767616, -0.31341099739074707, -0.7677059769630432, 0.08230464905500412, 0.23525892198085785, -0.035552095621824265, 0.07543896...
sending just those tiles instead of all 500 every 3 seconds. I'm also open to "you idiot, why are you using HTML tables"-type comments if you can suggest a better alternative. For example are there any CSS/DOM manipulation techniques I should be considering instead of using an HTML table? Should I use a table but give...
[ 0.4478023648262024, -0.22389918565750122, 0.26697835326194763, 0.26299309730529785, -0.3044804036617279, -0.028697829693555832, 0.14202888309955597, -0.21352599561214447, -0.41296374797821045, -0.8226074576377869, 0.07447810471057892, 0.3252891004085541, -0.289508193731308, -0.073522515594...
row. Each cell holds the numerical value of the game piece/square. This model can be the "contract" you send to the server via ajax as JSON. The server calculates the same array and sends it back to the UI. You can render that array into a table, divs or whatever you like. Prototype.js and jQuery make creating dhtml s...
[ 0.25572261214256287, -0.2059008628129959, 0.4647907614707947, -0.09156817197799683, -0.39144203066825867, 0.15840786695480347, -0.23321601748466492, -0.44719943404197693, -0.3985825479030609, -0.7840737700462341, 0.09554249793291092, 0.2653312683105469, -0.28946763277053833, -0.01256192475...
the coordinates of tiles changed by the user and send those to the server: ``` [(x1, y2),.....(xn, yn)] ``` Or you can do it the other way around: send the full model array to the server, and have the server calculate the deltas. Check out Sponty, and watch the ajax traffic every few minutes or so, we do something ...
[ 0.15720105171203613, -0.32554420828819275, 0.7207035422325134, 0.08209621906280518, -0.10070483386516571, 0.2038692831993103, -0.19428640604019165, -0.26765263080596924, -0.38012781739234924, -0.6973512768745422, -0.09474668651819229, 0.44775423407554626, -0.3029715120792389, -0.1597609370...
I am getting the following error when I try to instantiate an instance of a third party web service client... ``` Cannot find the X.509 certificate using the following search criteria: StoreName 'My', StoreLocation 'LocalMachine', FindType 'FindByThumbprint', FindValue '[value in here]'. ``` The strange thing is tha...
[ 0.35030266642570496, 0.6121085286140442, 0.11497651785612106, 0.102229543030262, 0.034565508365631104, -0.25067925453186035, 0.40126779675483704, 0.23193040490150452, -0.06593067944049835, -0.7748449444770813, 0.03075709007680416, 0.520362377166748, -0.19009123742580414, 0.4601265788078308...
Take a look on Internet Explorer (Tools | Internet Options | Content tab | Certificates) installed client certificates. Under "Personal" tab you can see the installed certificates for you user account (as you are using the "My" store name). Double-clicking on an installed certificate under Details tab you have all inf...
[ 0.12765845656394958, 0.3996289074420929, 0.4448155462741852, 0.14732582867145538, 0.1473490595817566, -0.2299979031085968, 0.2526994049549103, 0.02478538453578949, -0.22767478227615356, -0.6918742060661316, -0.12993519008159637, 0.5583695769309998, 0.08868807554244995, 0.28917455673217773,...
I have a list of all email ids which I have copied from the 'To' field, from an email I received in MS Outlook. These values (email ids) are separated by a semicolon. I have copied this big list of email ids into Excel. Now I want to find the number of email ids in this list; basically by counting the number of semi co...
[ 0.2862732708454132, 0.21394996345043182, 0.2281368523836136, -0.06036438047885895, 0.047011587768793106, 0.2148510217666626, 0.07229853421449661, 0.07704006135463715, -0.10552860796451569, -0.6460813283920288, 0.18371643126010895, 0.38615334033966064, -0.05011654272675514, 0.17523567378520...
it quickly. Is there any quick way to find that out using either: 1.) Regular expression (I use powergrep for processing the regexps) 2.) In excel itself (any excel macro/plugin for that?) 3.) DOS script method 4.) Any other quick way of getting it done? I believe the following should work in Excel: ``` = Len(A1)...
[ -0.02941843681037426, 0.03072422184050083, 0.38387781381607056, -0.11164270341396332, 0.13112415373325348, 0.07810761779546738, 0.18574900925159454, -0.26349011063575745, -0.16342420876026154, -0.7037701606750488, -0.1945909708738327, 0.5640605092048645, -0.11692889779806137, -0.4048130810...
cursor.
[ -0.902955949306488, -0.051883116364479065, 0.31271281838417053, -0.07927210628986359, -0.26295536756515503, 0.01828891411423683, -0.4288508892059326, 0.18106509745121002, -0.24602991342544556, -1.0933984518051147, -0.16683056950569153, -0.1320601999759674, -0.3105934262275696, -0.031972963...
I have a class at server-side like this: ``` public class Address { public Address(string countryCode) { this._CountryCode = countryCode; } private string _CountryCode = string.Empty; public string CountryCode { get { return _CountryCode; } set { _CountryCode = value; ...
[ -0.24310697615146637, 0.06077025458216667, 0.17478743195533752, 0.08685653656721115, -0.01359916478395462, -0.23780645430088043, 0.23699147999286652, 0.01639501005411148, 0.018534738570451736, -0.7975365519523621, -0.012619351036846638, 0.5336869359016418, -0.024066951125860214, 0.13782393...
Some logic here... return address; } ``` And I want to call this method in client side, but how can I instantiate the Address class in client side? I do not want to define a class named `Address` in JavaScript file. ``` <script> function valaddress(){ var address = new Address(); // I'm asking here ?? addr...
[ -0.07500378787517548, 0.10047969967126846, 0.6092545390129089, -0.14459431171417236, 0.09573008865118027, -0.03638171777129173, 0.375302255153656, -0.4177730977535248, -0.23569267988204956, -0.6592764258384705, -0.12052586674690247, 0.6299683451652527, 0.05199725180864334, 0.14500457048416...
"1" } ``` That should do the trick ``` <script> function valaddress(){ var address = { CountryCode: "90" }; // This part is ok, no problem in here : var validatedAddress = AddressControlDataHelper.ValidateAddress(address).value; } </script> ```
[ -0.006137109827250242, -0.014079220592975616, 0.5930004715919495, -0.35711997747421265, 0.4077683687210083, -0.20209191739559174, 0.2086203694343567, -0.2387697845697403, -0.16765636205673218, -0.48920518159866333, -0.452410489320755, 0.41037270426750183, -0.1278611421585083, -0.0407918617...
For example I want to remove or change below property attributes or add a new one. Is it possible? ``` [XmlElement("bill_info")] [XmlIgnore] public BillInfo BillInfo { get { return billInfo; } set { billInfo = value; } } ``` (edit - I misread the original question) You cannot add actual attributes (they are burn...
[ 0.5694990158081055, -0.006049801129847765, 0.5287381410598755, 0.12862098217010498, 0.0638543888926506, -0.07056746631860733, -0.23735913634300232, -0.5121492743492126, -0.21841445565223694, -0.7069796323776245, -0.03449607640504837, 0.820418119430542, -0.3510412573814392, -0.1024866923689...
bit leaky. (it doesn't do this if you use the simple constructor that just takes a `Type`). Look at [`XmlAttributeOverrides`](http://msdn.microsoft.com/en-us/library/system.xml.serialization.xmlattributeoverrides.aspx). For an example: ``` using System; using System.Xml.Serialization; public class Person { stati...
[ 0.2575635015964508, -0.499308317899704, 0.33489319682121277, 0.03982386738061905, -0.1875513792037964, -0.06761974841356277, 0.6183810234069824, -0.4158588647842407, -0.0059253135696053505, -0.2438170462846756, -0.3396379053592682, 0.622749388217926, -0.48161929845809937, 0.485858947038650...
new XmlSerializer(typeof(Person), overrides); Person person = new Person(); person.Name = "Marc"; ser.Serialize(Console.Out, person); } private string name; [XmlElement("name")] [XmlIgnore] public string Name { get { return name; } set { name = value; } } } ``` Note also; i...
[ -0.17273184657096863, -0.3130580186843872, 0.4125577211380005, 0.08939754217863083, -0.2100682556629181, -0.07082603871822357, 0.01653757505118847, -0.38996660709381104, -0.1671108901500702, -0.8084649443626404, -0.3233695924282074, 0.3618258833885193, -0.23451243340969086, 0.2170744538307...
`TypeDescriptionProvider`. Much more complex than the xml case, I'm afraid - and doesn't work for all code - just code that uses the component-model.
[ -0.10153422504663467, 0.12848234176635742, 0.23664888739585876, 0.1598758101463318, -0.4497782289981842, -0.28845903277397156, 0.16530804336071014, 0.05118602141737938, 0.20377576351165771, -0.42249950766563416, 0.13740618526935577, 0.3361997604370117, -0.3589296042919159, 0.05606328323483...
Is there a way to externalize HQL named queries to an external file. I have too many named queries and using `@NamedQueries` and `@NamedQuery` at the head of my entities classes is hurting. Is there a way to externalize to several files? You can put the queries into `package-info.java` class, in, say, root package of...
[ 0.07626843452453613, 0.06986657530069351, 0.25811347365379333, -0.2214508205652237, -0.17575007677078247, -0.271023154258728, 0.2529577314853668, -0.39120131731033325, -0.04631214216351509, -0.4012906849384308, 0.06111710146069527, 0.6518188714981079, -0.49860474467277527, 0.02204843796789...
com.foo.domain; ``` Then, you have to add the package to your `AnnotationConfiguration`. I use Spring, so there it's a matter of setting `annonatedPackages` property: ```xml <bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> <property name="annotatedClasses...
[ 0.10164926201105118, 0.12295997142791748, 0.30466198921203613, -0.37752413749694824, -0.18356946110725403, -0.09747402369976044, 0.18051110208034515, -0.32867610454559326, -0.24210341274738312, -0.7889394164085388, -0.051206186413764954, 0.582777738571167, -0.27955806255340576, 0.064523003...
With a COM interface method declared as this: ``` [ object, uuid(....), ] interface IFoo : IUnknown { HRESULT Foo([in, out] CACLSID * items); } ``` With regards to marshalling, is the server allowed to reallocate the counted array? (I *think* it is, but I am not sure anymore) Its current implementation only re...
[ 0.13424436748027802, -0.03104342520236969, 0.5883442759513855, 0.01711267977952957, -0.028185566887259483, 0.14874504506587982, 0.01792454719543457, -0.20052552223205566, -0.39600297808647156, -0.6444621086120605, 0.09652312844991684, 0.4197307825088501, -0.22905154526233673, 0.22943739593...
possible to allocate a new array? In that case should it not be `CACLSID ** items` ?
[ 0.13158994913101196, -0.28183189034461975, -0.013658344745635986, 0.23914092779159546, 0.04848147928714752, -0.015772799029946327, -0.04331444203853607, -0.13567960262298584, -0.49833956360816956, -0.25484994053840637, -0.19476351141929626, 0.2620741128921509, -0.2575734555721283, -0.00262...
Using StackOverflow itself as an example, if you had any such system where entries were voted and viewed in order of rank based on this, how do you compensate to sort newer entries fairly? That is, if ten bad answers are given and upvoted, how do you make sure people see the new entry that might be better, but hasn't h...
[ 0.20669056475162506, -0.08412829041481018, 0.3263222277164459, 0.27052000164985657, -0.1507718563079834, -0.2409655749797821, 0.0982329398393631, -0.1612970530986786, -0.4296383261680603, -0.2352878898382187, 0.06482301652431488, 0.3215041160583496, 0.27002575993537903, 0.06683360785245895...
Java's [priority queue](http://java.sun.com/j2se/1.5.0/docs/api/java/util/PriorityQueue.html) is a data structure with `O(log n)` complexity for put (insertion) and `O(log n)` for poll (retrieval and removal of the min element). C++ STL's [multimap](http://en.cppreference.com/w/cpp/container/multimap) has the same fun...
[ -0.49621573090553284, -0.32922863960266113, -0.008907772600650787, 0.056897543370723724, -0.15903936326503754, 0.3032386302947998, -0.32891973853111267, -0.233473539352417, -0.5176376700401306, -0.3772567808628082, -0.29625898599624634, -0.06731659919023514, -0.29785940051078796, -0.012285...
I have a div which collapses clicking on a text header. I want to change the header from "+ filters" to "- filters" accordingly (when the div is collapsed or expanded) How can I perform this with jQuery? ``` if (headerDiv.text() starts with "+") replace "+" with "-" else replace "-" with "+" ``` Never min...
[ 0.16057047247886658, 0.009344760328531265, 0.3657553791999817, -0.309706449508667, 0.16961896419525146, -0.28015413880348206, 0.4795541763305664, -0.42828693985939026, 0.04718812182545662, -0.7226670384407043, -0.16794894635677338, 0.7274174094200134, -0.42562809586524963, -0.0556843690574...
So, we have had this: [The 1000% Speedup, or, the stdlib sucks](http://lucumr.pocoo.org/2009/3/1/the-1000-speedup-or-the-stdlib-sucks). It demonstrates a rather bad bug that is probably costing the universe a load of cycles even as we speak. It's fixed now, which is great. So what parts of the standard library have yo...
[ 0.273210734128952, 0.1109311506152153, 0.3463086783885956, 0.3189241886138916, -0.07665003091096878, -0.1790141612291336, 0.3470633327960968, 0.4786473512649536, -0.5344544649124146, -0.5231528282165527, -0.04205998033285141, 0.4982917904853821, -0.6533732414245605, 0.1571298986673355, -...
I've come across the following line of code. It has issues: * it is intended to do the same as push * it ought to have used push * it's hard to read, understand * I've since changed it to use push * it does something I thought was illegal, but clearly isn't here it is: ``` $array [++$#array] = 'data'; ``` My quest...
[ 0.3342483639717102, -0.28255119919776917, 0.47877880930900574, -0.2692160904407501, -0.2618606686592102, -0.12967558205127716, 0.039372362196445465, -0.34843865036964417, -0.5049958825111389, -0.171106219291687, 0.14100420475006104, 0.288108229637146, -0.2702975869178772, 0.471582174301147...
However, this isn't the length of the array; it's the subscript of the last element, which is a different value since there is ordinarily a 0th element. Assigning to $#days actually changes the length of the array. Shortening an array this way destroys intervening values. Lengthening an array that was previously shorte...
[ 0.33364337682724, -0.2862163782119751, 0.35290956497192383, -0.17177808284759521, 0.021347809582948685, -0.059860505163669586, 0.5212292075157166, -0.270943284034729, -0.27651697397232056, -0.42809319496154785, -0.32253801822662354, 0.35238707065582275, -0.13081099092960358, 0.121591567993...
Talking .NET WinForms here: If you have an application where someone can change items using some properties dialog for example, how do you determine if a user has changed something when he clicks on cancel (to decide whether to display a cancel confirmation message box, or not). I can think of 2 methods: 1. Defining...
[ 0.5141270160675049, -0.1237872838973999, 0.2188892811536789, 0.35607782006263733, -0.041497956961393356, -0.10742011666297913, 0.24874986708164215, -0.12619289755821228, 0.07287106662988663, -0.6153236031532288, 0.22719183564186096, 0.8822261095046997, -0.26028892397880554, -0.028591223061...
wish to know if anything changed (uspecific to what exactly changed) then on loading of the form, `GetHashCode` on your object(s) then on close, call `GetHashCode` again, and see if the results are different. you will need to override the GetHashcode function in your objects however: ``` Public Class Person Priv...
[ -0.25180795788764954, -0.04359899088740349, 0.49790820479393005, -0.2292470932006836, 0.22703315317630768, 0.11580020934343338, 0.46725690364837646, -0.1549849808216095, -0.1883314698934555, -0.6244027614593506, -0.3156176209449768, 0.3093436658382416, -0.2937144339084625, 0.32858112454414...
Dim sb as new System.Text.StringBuilder sb.append(_firstName) sb.append(_lastName) sb.append(_dob) ... sb.append(_weight) Return sb.ToString.GetHashCode End Function End Class ``` this works well for our objects and DAL :) HTH
[ 0.1996167004108429, -0.14027716219425201, 0.8522183895111084, -0.19636976718902588, -0.18890857696533203, -0.11728344857692719, 0.5437368154525757, -0.7275211215019226, 0.0982898399233818, -0.36612990498542786, -0.2180987298488617, 0.4321853816509247, -0.3140685558319092, 0.025370266288518...
When aborting the execution of a thread I'm always doubting between a graceful exit with an event handler like this: ``` int result = WaitHandle.WaitAny(handles); if (result = WAIT_FINALIZE) FinalizeAndExit(); ``` and using the event to signal the thread it must terminate or just handling the ThreadAbortException...
[ 0.22876638174057007, -0.3083048462867737, 0.10820573568344116, -0.3562919497489929, 0.3482546806335449, -0.1694134920835495, 0.3739897608757019, -0.08235801756381989, -0.2703849673271179, -0.2989850342273712, -0.05282380059361458, 0.38764283061027527, -0.41903582215309143, 0.09105049818754...
situation where it's best to use one over another, or is it best to use always approach x? Generally, the first method it preferrable. It's hard (if not impossible) to write code that will always handle a ThreadAbortException gracefully. The exception can occur in the middle of whatever the thread happens to be doing,...
[ -0.13288740813732147, -0.21068374812602997, 0.2503710687160492, 0.02285159006714821, 0.08332556486129761, -0.18759502470493317, 0.10562290996313095, 0.06989537924528122, -0.2996307611465454, -0.690753161907196, -0.18563590943813324, 0.22866888344287872, -0.3757523000240326, 0.2451592832803...
on the stack somewhere...
[ 0.37962764501571655, 0.4911813735961914, -0.2598594129085541, 0.21259453892707825, 0.14420086145401, -0.25598061084747314, -0.25509533286094666, 0.3072703778743744, -0.26014626026153564, -0.30631551146507263, 0.11189170181751251, 0.27045539021492004, 0.20599400997161865, 0.2411239296197891...
I'm trying to use a custom maven wagon extension to deploy a jar to my own repository. Can I somehow configure in settings.xml that it recognizes the custom url scheme to be used with the specific wagon or do I have to always modify pom files to contain the wagon extension? --- There doesn't need to be a base pom or ...
[ 0.47992435097694397, 0.3958373963832855, 0.4790540337562561, -0.04062537103891373, -0.0034108422696590424, 0.009073803201317787, 0.2581213116645813, -0.1443256437778473, -0.31819912791252136, -0.5946851372718811, 0.14410196244716644, 0.5689396858215332, 0.09762050956487656, 0.1691802591085...
`<profile>` defined in `settings.xml`. You could activate the profile in `settings.xml`, but define it in your `base-pom`. Sorry, the only other way I could think of (probably what are you looking for), is to copy the extension jar directly under `$M2_HOME/lib`. All `$M2_HOME/lib/*.jar` are put in the classpath, so t...
[ 0.4496976137161255, -0.03963204100728035, 0.3659396767616272, -0.18989123404026031, -0.08562891185283661, -0.07282140105962753, 0.07308721542358398, 0.08804887533187866, -0.052418794482946396, -0.9545993208885193, -0.0648977980017662, 0.840865433216095, -0.16584903001785278, -0.00627281051...
> **NOTE** I have asked the related question: [How to combine DataTrigger and EventTrigger?](https://stackoverflow.com/questions/1679391/wpf-how-to-combine-datatrigger-and-eventtrigger) I have a list box containing several items. The item's class implements `INotifyPropertyChanged` and has a property `IsAvailable`. I ...
[ 0.03712793439626694, -0.19957001507282257, 0.4163900911808014, -0.10884296894073486, 0.07843013107776642, 0.19695177674293518, 0.183918759226799, -0.7052388787269592, -0.1840183585882187, -0.5372417569160461, -0.21304576098918915, 0.3021096885204315, -0.46924880146980286, -0.09456975758075...
<Setter TargetName="Name" Property="Foreground" Value="#888"/> </DataTrigger> </DataTemplate.Triggers> </DataTemplate> </ListBox.Resources> </ListBox> ``` I use the above data trigger to grey out unavailable items. The problem I'm facing is that the fact that the item is selected has nothing to d...
[ 0.19141177833080292, -0.08068720996379852, 0.20813608169555664, 0.03380090743303299, -0.16739940643310547, -0.10309375822544098, 0.1880958080291748, -0.5856306552886963, -0.24365374445915222, -0.6103676557540894, -0.19538863003253937, 0.38848692178726196, -0.5517510175704956, 0.24488255381...
selection into my view model? *For anyone wondering why I do not disable unavailable items, understand that it is a requirement of the application that unavailable options may be selected. There are actually a few list boxes, and selection in one effects what's available in the others. I cannot disable the items as th...
[ 0.46091896295547485, -0.23492775857448578, 0.15381473302841187, 0.1403454691171646, -0.17250390350818634, 0.25717127323150635, 0.0888238176703453, -0.05099843814969063, -0.29066088795661926, -0.7356429100036621, 0.16662734746932983, 0.651499330997467, -0.2506497800350189, 0.194942802190780...
I did: ``` <MultiDataTrigger> <MultiDataTrigger.Conditions> <Condition Binding="{Binding RelativeSource={ RelativeSource Mode=FindAncestor, AncestorType={x:Type ListBoxItem}}, Path=IsSelected}" Value="True"/> <Condition Binding="{Binding IsAvailable}" Value="False"/> </MultiDataTrigge...
[ -0.06181573122739792, -0.16130118072032928, 0.6628140807151794, -0.02902459166944027, -0.11123358458280563, 0.017994491383433342, 0.29738593101501465, -0.7372916340827942, -0.35632389783859253, -0.42323312163352966, 0.1235756054520607, 0.4074877202510834, -0.4209654927253723, 0.28163522481...
Is there a way that I can create query against a data source (could be sql, oracle or access) that has a where clause that points to an ArrayList or List? example: ``` Select * from Table where RecordID in (RecordIDList) ``` I've seen some ways to do it with Linq, but I'd rather not resort to it if it's avoidable....
[ 0.22569410502910614, -0.10232815146446228, 0.14828455448150635, 0.08359897881746292, -0.0465940497815609, -0.2825539708137512, 0.038288649171590805, -0.21444931626319885, -0.268697053194046, -0.3252710998058319, 0.06537088751792908, 0.7140336632728577, -0.3332202434539795, -0.0667859613895...
direction.
[ 0.010638829320669174, 0.022141074761748314, 0.6301718354225159, 0.09870146214962006, 0.16699431836605072, 0.1451231837272644, 0.1024283692240715, -0.03748319298028946, -0.2349151372909546, -0.6371130347251892, -0.20272435247898102, 0.22765043377876282, 0.08003800362348557, 0.11987041682004...
This is only a half-way programming question. First of all I have a PCI-Express card and 32/64 bit drivers. The target operating system has to be a Windows 64 bit system. I read that under Vista64 all drivers have to be certified 64 bit drivers. Is this a general restriction under 64 bit operating systems and does this...
[ 0.29436078667640686, 0.4276990592479706, 0.34466230869293213, 0.25303149223327637, -0.15272893011569977, -0.2384590357542038, -0.20449787378311157, 0.07876906543970108, 0.12186025828123093, -0.5030662417411804, 0.10020098835229874, 0.826666533946991, -0.14462020993232727, 0.093127392232418...
there's a large, legacy 32 bit exe program which needs to use the PCIe device. Converting the program to 64 bit would be a really huge effort. So what can be done to bring that 32 bit program and the 64 bit driver together? I read that mixing 32/64 bit binaries and DLLs is not possible at all but this is hard to beli...
[ 0.37780457735061646, 0.2566741406917572, 0.16958358883857727, 0.40296968817710876, 0.27659374475479126, -0.3298538625240326, 0.19122546911239624, -0.130727618932724, -0.10360202938318253, -0.690151035785675, -0.07757358253002167, 0.8559003472328186, -0.11991634964942932, 0.1911955624818802...
Vista; there is no certifying authority for non-Windows platforms, and I don't believe that XP or Windows Server checks for certification (not sure though, and it may depend on which service pack you're on). If you're using the driver via the Windows API, then there shouldn't be any problem; Windows will do the 32<->6...
[ 0.33110445737838745, 0.08359379321336746, 0.5076844692230225, 0.26466378569602966, -0.044422511011362076, -0.16582028567790985, 0.31677958369255066, -0.009623651392757893, -0.04654693230986595, -0.6171605587005615, -0.1033860445022583, 0.9100829362869263, -0.11064203083515167, 0.1313617676...
through if you have to run your driver in a higher-privilege execution level and want to make calls to it from user mode. Hopefully your 64-bit DLLs offer a 32-bit API, or Windows offers a standard driver interface (if it's a common I/O device like a display or network card).
[ 0.215912863612175, 0.10629194229841232, 0.3197813630104065, 0.15132445096969604, -0.20255206525325775, 0.07334991544485092, 0.26327452063560486, 0.2401358038187027, -0.24935853481292725, -0.7499731183052063, -0.43136802315711975, 0.27924954891204834, 0.08308582007884979, 0.26084104180336, ...
Is it possible to do this from within a class? ``` $("#" + field).click(this.validate); ``` So basically I want to pass a function of the object that should be executed whenever something is clicked. Also, if there are more than 1 instances of this object, then the correct instance (i.e the one which runs this co...
[ 0.055566392838954926, -0.0851145088672638, 0.5623388290405273, -0.10810288786888123, 0.03332507610321045, -0.0353659950196743, 0.3629857003688812, -0.09176520258188248, -0.16331847012043, -0.6511745452880859, -0.10579375922679901, 0.4893125295639038, -0.5001450181007385, 0.2102542668581009...
I would like to have the output of the python pdb 'l' command printed to the screen after every command I enter in an interactive debugging session. Is there a way to setup python pdb to do this? One way to do this is to alias your favourite commands to run the command and then l. e.g. ``` (Pdb) alias s step ;; l (P...
[ 0.5464088320732117, -0.01270586159080267, 0.4557296633720398, -0.30371108651161194, 0.06625814735889435, -0.17361532151699066, 0.24011002480983734, 0.059557922184467316, 0.02130586840212345, -0.5515783429145813, 0.22734948992729187, 0.6868219971656799, -0.31698474287986755, -0.145580932497...
$" 12 13 import sys, os 14 -> from types import * 15 16 from distutils.debug import DEBUG 17 from distutils.errors import * 18 from distutils.util import grok_environment_error 19 ``` In your ~/.pdbrc you can add the aliases so you have them every time: ``` alias s step ;; l ...
[ 0.29603081941604614, 0.08538954704999924, 0.2029208242893219, -0.1212671622633934, 0.34515687823295593, 0.03336707875132561, 0.48787039518356323, -0.19376645982265472, 0.1088142916560173, -0.48729047179222107, -0.14513549208641052, 0.8368330597877502, -0.4689406156539917, -0.04424101859331...
I'm using C# with SMO and attempting to detect what edition of SQL Server (e.g., enterprise, standard) I'm connecting to. I know how to get the version information, but that only tells me what version of SQL Server (e.g., SQL Server 2008 vs SQL Server 2005). Does anyone know how to get the actual product edition (e.g....
[ 0.2950620651245117, 0.28667935729026794, 0.377115935087204, -0.03412587195634842, -0.049826815724372864, -0.27106210589408875, 0.2969047427177429, 0.2058877944946289, -0.38839083909988403, -0.4124891459941864, 0.058141209185123444, 0.6669546365737915, -0.12905943393707275, 0.08531159907579...
the Server object. There are properties like Information.Edition which looks like it should do what you want.
[ -0.20318447053432465, -0.1371867060661316, 0.6389161944389343, 0.34050697088241577, -0.4846671521663666, 0.1361752599477768, -0.27608203887939453, 0.19985966384410858, -0.20176123082637787, -0.6454742550849915, 0.0030769403092563152, 0.29217076301574707, -0.3204261362552643, 0.255136907100...
If I have a method that returns something, like ``` public DataTable ReturnSomething() { try { //logic here return ds.Tables[0]; } catch (Exception e) { ErrorString=e.Message; } } ``` This produces compiler error, obviously because `catch{}` block does not return anything. So wh...
[ -0.03896307200193405, -0.028598658740520477, -0.045504529029130936, -0.013892105780541897, -0.17690721154212952, -0.2703971862792969, 0.5112711191177368, -0.36829474568367004, -0.09212464839220047, -0.5455438494682312, -0.16984552145004272, 0.34430432319641113, -0.4160881042480469, 0.15641...
return value as well. Advice? Store your return value in a temporary variable like this: ``` public DataTable ReturnSomething() { DataTable returnValue = null; try { //logic here returnValue = ds.Tables[0]; } catch (Exception e) { ErrorString=e.Message; } retu...
[ 0.010290203616023064, -0.14359039068222046, 0.3630763590335846, -0.20296567678451538, 0.15497462451457977, 0.03694415092468262, 0.3805191218852997, -0.22208498418331146, -0.08443877100944519, -0.30740222334861755, -0.295228511095047, 0.6204631328582764, -0.38258251547813416, 0.084847725927...
I'm fuzzy on the relationship between Windows Imaging Component (WIC) and GDI+. I've done some work in the past that showed that, for example, WIC produces visually superior GIF encodings, but I'm surprised I don't see more people using it for image processing vs. GDI+. I know it doesn't have GDI+'s draw operations, bu...
[ 0.4792591631412506, 0.08487613499164581, 0.33464306592941284, 0.013740068301558495, -0.3847717344760895, -0.30559369921684265, -0.2900104820728302, -0.05198785290122032, 0.02753460593521595, -0.8366873860359192, -0.2325214147567749, 0.6168779134750366, -0.37915143370628357, 0.1338428407907...
GDI+ is a core component of Windows which supports draw operations such as lines, fonts, gradients, etc. While GDI+ has native support for several common image formats, WIC codecs can be provided for any image format.
[ 0.04846920445561409, -0.3523871600627899, 0.5276291370391846, 0.12449602782726288, -0.5470910668373108, 0.03033536486327648, -0.2618880271911621, -0.1187514066696167, 0.18944714963436127, -0.887383222579956, -0.28623849153518677, 0.30775853991508484, -0.6133795976638794, -0.204831495881080...
I'm trying to do an Entity Framework walkthrough so I: * downloaded SQL script here: <http://www.learnentityframework.com> * in SQL Server Management Studio, I right-clicked Database, Create Database, named it * right-clicked on the new database, New Query * clicked on "Open File" and opened the script file: Create\_P...
[ 0.2960609197616577, 0.08678581565618515, 0.18662051856517792, 0.01254239957779646, -0.14351622760295868, -0.05486142635345459, 0.5594415664672852, 0.05575139820575714, -0.02688855119049549, -0.749466061592102, 0.3523860275745392, 0.5664568543434143, 0.18451520800590515, 0.07303120195865631...
seconds, so I assume I'm not doing something right. Here is the beginning of the script, I changed the file paths so they point to the right .mdf and .ldf files: ``` ****/ --PART ONE CREATE THE DATABASE. Note the file paths in the first few commands. --Change them for your own computer.-- USE [master] GO /***...
[ -0.20317839086055756, 0.029372060671448708, 0.4171692728996277, 0.16847893595695496, -0.11767049133777618, -0.12836724519729614, 0.42304250597953796, -0.02896823175251484, -0.1335965394973755, -0.7872052192687988, 0.0050643919967114925, 0.47852280735969543, -0.24060718715190887, 0.33938300...
LOG ON ( NAME = N'ProgrammingEFDB1_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA\ProgrammingEFDB1_log.LDF' , MAXSIZE = UNLIMITED, FILEGROWTH = 10%) GO ALTER DATABASE [ProgrammingEFDB1] SET COMPATIBILITY_LEVEL = 90 GO IF (1 = FULLTEXTSERVICEPROPERTY('IsFull...
[ 0.1791740506887436, 0.019940050318837166, 0.7953267097473145, 0.06034545600414276, 0.429065078496933, -0.16496960818767548, 0.515136182308197, -0.29934221506118774, -0.15180091559886932, -0.49424219131469727, -0.4655238389968872, 0.8661856055259705, -0.6560501456260681, 0.08726105093955994...
that database, reran the script and it completed successfully in 3 seconds. > But the script (756K) Must be a lot more than just a `CREATE DATABASE` in the script, so very hard to say when the script is doing. You can write progress reports from the script back to the client, or use SQL Profiler to see what commands ...
[ 0.09216684848070145, -0.06040605902671814, 0.11672919988632202, 0.3388965129852295, -0.07551904767751694, -0.14024411141872406, 0.49646440148353577, -0.2205997258424759, -0.03975619003176689, -0.690900981426239, 0.22404351830482483, 0.5208046436309814, 0.39036649465560913, -0.1263641715049...
We have a Linux server running Red Hat Enterprise 3 and MySQL 3.23. This server has a number of websites on it. We have a new website that we want to put on this server that uses MySQL 4/5. Is it possible to run the two versions of MySQL in parallel? If so, how? You can also look at filever.exe, which can be download...
[ 0.36760130524635315, 0.07482004910707474, 0.19854994118213654, 0.3655169606208801, 0.05305185168981552, 0.04212065041065216, 0.17710340023040771, 0.16305047273635864, -0.18395906686782837, -0.46382254362106323, 0.08233020454645157, 0.5897991061210632, -0.19055593013763428, 0.03762750700116...
I am working on a VB6 application that uses an ADODB.Recordset object to dump data to an .xml file with the 'save' method, like the following: ``` adoRecordset.Save strDst, adPersistXML ``` where strDst is a string describing the destination. Now, there are some rows in the database that are floats/doubles, for som...
[ 0.3686218857765198, 0.23276592791080475, 0.3287360966205597, -0.03249036893248558, -0.10705593973398209, 0.005023797042667866, -0.24307845532894135, -0.24564588069915771, -0.06483348459005356, -0.6343432664871216, 0.19712400436401367, 0.11496224254369736, -0.19990597665309906, 0.2573080062...
for each record of the database. The property 'Precision' for the fields exists but is 'mostly' read-only. It is pretty unclear when it can be written by looking at the help from MSDN. Can it be used somehow? **Restriction:** I do want to use the 'Save' method. I want to know if it is possible with it in order to avoi...
[ 0.4719882607460022, 0.08053828775882721, 0.07118332386016846, 0.2599197030067444, 0.2180359959602356, -0.1294335275888443, 0.008612827397882938, 0.07516907900571823, -0.23648333549499512, -0.4783620238304138, 0.10737671703100204, 0.33660000562667847, -0.2115246206521988, 0.2252034544944763...
the channel and the existing application for data extraction which selects the tables to be transfers via some algorithm. The .xml files are zipped with a high compression rate but the amount is still too much so that we decided to *drop* some not so important data. **Side problems (referring to onedaywhen's solution)...
[ 0.07234414666891098, -0.10436674952507019, 0.6551538705825806, 0.3666694164276123, 0.012261787429451942, -0.11780216544866562, 0.10754360258579254, 0.05867387354373932, -0.26382967829704285, -0.6145199537277222, 0.1770530641078949, 0.464246541261673, -0.296711266040802, 0.14348416030406952...
binary to decimal conversion error. e.g. 3.123 becomes "3.1230000000000002". The 'Save' method is not quite flexible. Its purpose is to save data persistently, that's all. Changing the format of values or influencing the way the data is stored is not possible (only the *PersistFormat* can be set). The solution I have...
[ 0.12372103333473206, 0.038351479917764664, 0.30636078119277954, 0.001299648080021143, 0.11222736537456512, 0.18999060988426208, -0.08205129206180573, 0.042461179196834564, -0.22654180228710175, -0.356168270111084, 0.16337740421295166, 0.4087314307689667, -0.09099507331848145, 0.21507240831...
I would like to be able to dynamically retrieve the current executing module or class name from within an imported module. Here is some code: **foo.py:** ``` def f(): print __name__ ``` **bar.py:** ``` from foo import f def b(): f() ``` This obviously does not work as `__name__` is the name of the module th...
[ -0.043790798634290695, -0.027050787582993507, 0.20665164291858673, -0.2382749617099762, 0.1910320222377777, -0.02137073501944542, 0.047207172960042953, 0.11103769391775131, -0.1967190057039261, -0.4142211973667145, -0.042534925043582916, 0.7315365076065063, -0.4450392723083496, 0.227812215...
the name of that module. **Edit:** The `inspect` module looks quite promising but it is not exactly what I was looking for. What I was hoping for was some sort of global or environment-level variable that I could access that would contain the name of the current executing module. Not that I am unwilling to traverse th...
[ 0.4011935293674469, 0.08775883913040161, -0.11530568450689316, -0.08761779218912125, -0.1497941017150879, -0.4511042535305023, 0.1138012707233429, 0.2660425007343292, -0.41002047061920166, -0.3943018615245819, 0.22215506434440613, 0.5412233471870422, -0.44202861189842224, -0.05337567254900...
are called "AppOne" and "AppTwo". I also have a place to which I would like to log these files: "`/home/hare/app_logs`". In each application at any given point I would like to be able to import my logger module and call the log function which writes the log string to file. However what I would like to do is create a di...
[ 0.42815566062927246, 0.27505216002464294, 0.49574336409568787, -0.29154878854751587, 0.3183780908584595, 0.3152181804180145, 0.25613516569137573, -0.0038104522973299026, -0.6473873853683472, -0.6602146625518799, -0.4729204475879669, 0.5784962773323059, -0.48869869112968445, -0.075505942106...
the logger module to have access to some sort of global variable that denotes the current application's name as it is responsible for knowing the location of the parent logging directory and creating the application's logging directory if it does not yet exist. From the comment -- not the question. > I am simply curio...
[ 0.3349917232990265, 0.19216004014015198, 0.4223633110523224, 0.39363887906074524, 0.4428494870662689, -0.11454171687364578, 0.38031893968582153, 0.17829596996307373, -0.2825513184070587, -0.3334507942199707, -0.2646617889404297, 0.30623263120651245, -0.02934233471751213, -0.012007214128971...
to have my logging module know the name of the client?" or something like that. The answer is "Accept it as a parameter." Don't mess around with inspecting or looking for mysterious globals or other tricks. Just follow the design pattern of `logging.getLogger()` and use explicitly-named loggers. A common idiom is the...
[ 0.4539676904678345, 0.09062322974205017, 0.07838505506515503, 0.08953886479139328, -0.1316622495651245, -0.5139403939247131, 0.11193636059761047, 0.14285850524902344, -0.39111509919166565, -0.2522108852863312, -0.1361561268568039, 0.6247358322143555, -0.35559266805648804, 0.079650394618511...
I often find myself fighting overengineering -- the person in charge of designing the software comes up with an architecture that's, way, way overcomplicated. It's all fine and dandy to have all the esoteric features that users will never know about and get that sense of achievement when you're doing something that al...
[ 0.9094424843788147, 0.7118709683418274, -0.09788506478071213, 0.6554468274116516, 0.49319639801979065, -0.10232455283403397, 0.4189785122871399, 0.14538809657096863, 0.15776944160461426, -0.1825704276561737, 0.03228164091706276, 0.3845404088497162, 0.19534681737422943, 0.2441888451576233, ...
reasonable or at least a bounded time frame. And you'll probably just have to revert back to the simpler solution anyway when you start running out of time, that is, if you get that chance. We've all heard the refrain: Keep It Simple, Stupid™. How do you fight with overcomplexity in your team? --- One example I've...
[ 0.4937797784805298, -0.03147335350513458, -0.21616297960281372, 0.6291330456733704, -0.12016597390174866, -0.5424748659133911, 0.5403585433959961, -0.040899958461523056, -0.02557060495018959, -0.4041576683521271, 0.10952471941709518, 0.7816847562789917, -0.19295556843280792, -0.32743042707...
or ebay, and which can be extremely expensive in terms of developer time relative to the rest of your development. Tooth and nail, and sometimes you lose. The problem is that it's always easy to be tempted to build something *cool*. > *Why build something simple and efficient when it can be complicated and wonderful?*...
[ 0.8031930327415466, 0.34571999311447144, -0.13728123903274536, 0.48237597942352295, 0.14001457393169403, -0.21415209770202637, 0.2768338620662689, 0.16373351216316223, -0.27517640590667725, -0.6867439150810242, 0.12923145294189453, 0.8501233458518982, 0.30506616830825806, 0.013878480531275...
I run an online photography community and it seems that the site draws to a crawl on database access, sometimes hitting timeouts. I consider myself to be fairly compentent writing SQL queries and designing tables, but am by no means a DBA... hence the problem. Some background: 1. My site and SQL server are running o...
[ 0.5303764939308167, 0.5413656830787659, 0.27827295660972595, -0.10590767860412598, 0.1410863846540451, -0.21423789858818054, 0.0986209511756897, 0.016145911067724228, -0.19023697078227997, -0.30212676525115967, 0.11102891713380814, 0.25937870144844055, -0.2515079081058502, -0.1238645389676...
only 9400 records at this time. I add 12 new records to this table nightly. 4. There is a view on this main table that brings together data from several other tables into a single view. 5. secondary tables are smaller records, but more of them. 70,000 in one, 115,000 in another. These are comments and ratings records f...
[ 0.38996562361717224, 0.20837226510047913, 0.6202154159545898, 0.32820188999176025, -0.11409438401460648, 0.28347745537757874, 0.07816493511199951, -0.13936783373355865, -0.737604022026062, -0.5683889389038086, 0.2824546992778778, 0.33302024006843567, 0.15233565866947174, 0.1886304318904876...
view, as well as rebuild the stored procedure to get the comments, the speed returns. I have to do this manually however. Sadly, my users get frustrated at these issues and their participation dwindles. So my question is... in a remote environment, what is the best way to setup and schedule a maintenance plan to keep...
[ 0.3995386064052582, 0.23068387806415558, 0.2761390209197998, 0.14543408155441284, -0.1161787137389183, -0.18126021325588226, 0.41080570220947266, 0.03741344064474106, -0.11130452156066895, -0.5869781374931335, 0.2399798035621643, 0.565977931022644, -0.14333860576152802, 0.1323990374803543,...
procedure/s. The job can be configured to run on your desired schedule. To create a job, use the procedure sp\_add\_job. To create a schedule use the procedure sp\_add\_schedule. I hope what I have detailed is clear and understandable but feel free to drop me a line if you need further assistance. Cheers, John
[ 0.47046563029289246, 0.14982165396213531, 0.3570469319820404, -0.11397004127502441, 0.2699941098690033, 0.146961510181427, 0.26167070865631104, 0.12435474991798401, -0.4074321687221527, -0.6905856728553772, -0.06940558552742004, 0.6588054895401001, -0.3175719082355499, -0.21320855617523193...
I have a (somewhat) large truth table / state machine that I need to implement in my code (embedded C). I anticipate the behavior specification of this state machine to change in the future, and so I'd like to keep this easily modifiable in the future. My truth table has 4 inputs and 4 outputs. I have it all in an Exc...
[ 0.3023448884487152, 0.4027871787548065, 0.20782628655433655, 0.14161410927772522, -0.021750394254922867, 0.23845015466213226, 0.21914811432361603, -0.22192628681659698, -0.07838596403598785, -0.6589025259017944, -0.17757387459278107, 0.7514556646347046, -0.1305297613143921, 0.0886826142668...
output values with: ``` setOutputPin( LINE_0, newState[0] ); setOutputPin( LINE_1, newState[1] ); setOutputPin( LINE_2, newState[2] ); setOutputPin( LINE_3, newState[3] ); ``` But in order to get that, it looks like I would have to do a fairly confusing table like so: ``` static u8 decisionTable[][][][][] = {{{{ ...
[ -0.4587615430355072, -0.33593037724494934, 0.6072483062744141, -0.10017374157905579, 0.04873533546924591, 0.5667621493339539, 0.11629688739776611, -0.15797904133796692, -0.17208340764045715, -0.579647958278656, -0.13511964678764343, 0.24861326813697815, -0.41792044043540955, 0.246846154332...
1, 1 }}}}, {{{{ 0, 1, 0, 1 }, { 1, 1, 1, 1 }}, {{ 0, 1, 0, 1 }, { 1, 1, 1, 1 }}}, {{{ 0, 1, 1, 1 }, { 0, 1, 1, 1 }}, {{ 0, 1, 0, 1 }, { 1, 1, 1, 1 }}}}; ``` Those nested brackets can be somewhat confusing -- does anyone have a better idea for how I can keep a pretty looking table in my code? ...
[ 0.23189526796340942, 0.47812578082084656, 0.30609986186027527, 0.2962839901447296, -0.23067134618759155, 0.5248585343360901, 0.03853051736950874, -0.3440258204936981, -0.10256019979715347, -0.5390514731407166, 0.18494999408721924, 0.38301515579223633, -0.23664800822734833, 0.08762868493795...
everyone's input (thanks -- I wish I could "accept" 3 or 4 of these answers), I think I'm going to try it as a two dimensional array. I'll index into my array using a small bit-shifting macro: ``` #define SM_INPUTS( in0, in1, in2, in3 ) ((in0 << 0) | (in1 << 1) | (in2 << 2) | (in3 << 3)) ``` And that will let my tru...
[ -0.17411528527736664, -0.11210130900144577, 0.6319733262062073, 0.06544992327690125, -0.06846652179956436, 0.3743097186088562, 0.14290034770965576, -0.024514121934771538, -0.26345279812812805, -0.7195230722427368, -0.13233624398708344, 0.4694446325302124, -0.12400829792022705, 0.1286251097...
1 }, { 0, 1, 0, 1 }, { 1, 1, 1, 1 }, { 0, 1, 0, 1 }, { 1, 1, 1, 1 }, { 0, 1, 0, 1 }, { 1, 1, 1, 1 }, { 0, 1, 1, 1 }, { 0, 1, 1, 1 }, { 0, 1, 0, 1 }, { 1, 1, 1, 1 }}; ``` And I can then access my truth table like so: ``` decisionTable[ SM_INPUTS( line1, line2, line3, line4 ) ] ``` I'll give that a shot and see how ...
[ 0.02698204293847084, 0.0054913973435759544, 0.5097461938858032, 0.17336910963058472, 0.31974148750305176, 0.4247780442237854, 0.16957084834575653, -0.27077776193618774, -0.04880697280168533, -0.6339173913002014, -0.2590901851654053, 0.31929272413253784, -0.1495591253042221, 0.2285215109586...
that explain the inputs for each line of outputs. Thanks for the help, everyone! No need for a multidimensional table. With a 4 bit => 4 bit mapping, you can have a single u8[16] array mapping inputs to outputs. State lookups will be much cheaper, and you can extract individual bits with some shift-and-mask ops. If th...
[ 0.14440442621707916, 0.02214669995009899, 0.13945187628269196, 0.4220888912677765, 0.026638325303792953, -0.019805464893579483, 0.02229764685034752, 0.016515905037522316, -0.5737053751945496, -0.8197087645530701, -0.08309683203697205, 0.4510582387447357, -0.308556467294693, -0.073238857090...
I have made a chat script using php, mysql and jquery. It uses json to get data from the server. It makes fixed interval requests to the server with the lastly fetched message id to get new messages from the server. But when multiple users will be chatting then thousands and crores of requests will be made to the serve...
[ 0.42833957076072693, 0.2113896757364273, 0.27899616956710815, 0.15667922794818878, -0.41083788871765137, -0.09137948602437973, 0.21318013966083527, 0.19180870056152344, 0.031024618074297905, -0.6360527276992798, 0.35082364082336426, 0.6098785400390625, -0.06625735014677048, 0.2413892894983...
some direction to solve this issue. Please I need help desperately. Many thanks in advance. My respect and regards for all. If the host you are using would "block it for sure" if it's making that many requests, then you may want to consider getting a different host or upgrading your hosting package before worrying ab...
[ 0.18901824951171875, -0.002570218173786998, 0.5684506893157959, 0.42056745290756226, -0.09663804620504379, -0.037607591599226, 0.6166801452636719, 0.16672684252262115, -0.002295020967721939, -0.7111822962760925, -0.05299662798643112, 0.27413684129714966, -0.15410415828227997, 0.01204925123...
connection that doesn't return until > the server has data for the client. > The request gets reestablished if it's > interrupted or times out. This isn't > by any means a new technique: it's a > variation of Comet, specifically XHR > long polling, and/or BOSH.
[ -0.36853426694869995, -0.38512933254241943, 0.4646441638469696, 0.44698527455329895, -0.20127250254154205, -0.408291220664978, 0.2967265546321869, 0.09984676539897919, -0.25248846411705017, -0.6338355541229248, -0.2580774426460266, 0.2466263324022293, -0.36988431215286255, 0.29834967851638...
When viewing iGoogle, each section is able to be drag-and-dropped to anywhere else on the page and then the state of the page is saved. I am curious on how this is done as I would like to provide this functionality as part of a proof of concept? **UPDATE** How do you make it so that the layout you changed to is saved...
[ 0.34557828307151794, -0.11822167038917542, 0.16394829750061035, 0.05853581428527832, -0.27401745319366455, -0.19718119502067566, -0.05170033127069473, 0.32252737879753113, -0.2938668131828308, -0.9207351803779602, 0.01622561737895012, 0.22194334864616394, -0.06544817239046097, 0.2582422792...
of the data, this depends on the back-end of your site, but this is usually done via an asynchronous call to the server which saves the state to a DB (usually).
[ 0.5609828233718872, 0.057230643928050995, 0.22349177300930023, 0.3380267918109894, 0.12170121818780899, -0.15336818993091583, 0.2870185971260071, -0.08238355815410614, -0.09974963963031769, -0.46744242310523987, -0.2546267509460449, 0.26373961567878723, 0.19912531971931458, 0.5279088616371...
I need to pass values between asp.net pages. How do i encrypt those values in the URL? Example : Response.Redirect("customerAdd.aspx?customerId=" + custId); Check out [Mads Kristensen's](http://madskristensen.net/) article for an HttpModule that will encrypt/decrypt all of your querystrings. <http://madskristensen.net/...
[ 0.007269577588886023, -0.03853026404976845, 0.3962297737598419, 0.13461008667945862, -0.31463634967803955, 0.13929924368858337, 0.5374114513397217, -0.48092010617256165, -0.27795618772506714, -0.3787457346916199, 0.0002465060679242015, 0.25420883297920227, -0.30686166882514954, 0.081869199...
do. We've been using it for over five years now and it works great.
[ 0.9332333207130432, 0.30138087272644043, 0.36606070399284363, 0.18304990231990814, 0.6315008997917175, -0.35231664776802063, 0.16775280237197876, 0.14144062995910645, 0.4006371796131134, -0.3727722764015198, 0.46654441952705383, 0.4937152564525604, 0.4843703806400299, 0.24541741609573364, ...
I've got an issue with a WPF application that I'm writing. The app needs to be able to keep focus at all times. The computer it's running on is a highly specialized machine with the only purpose of running this application. There is no keyboard connected to the machine (it has a touch screen), so the only thing that c...
[ 0.5743100643157959, 0.009522396139800549, 0.43295466899871826, 0.33276647329330444, 0.08829537779092789, -0.032085251063108444, 0.3973058760166168, 0.14737127721309662, -0.33806341886520386, -0.44275668263435364, 0.06595172733068466, 0.7072344422340393, -0.21720047295093536, -0.00452203489...
I'll end up using Topsmost for now, but I'll definitely check out the source of babysmash as that application works exactly the way I want mine to, in regards to the way it handles focus. Look at the source of [BabySmash](http://www.codeplex.com/babysmash). It is specifically designed to keep focus even under quite biz...
[ 0.43173667788505554, -0.2939561903476715, -0.021374134346842766, 0.4451538324356079, 0.0462135374546051, -0.07657657563686371, 0.14954951405525208, 0.6180217266082764, -0.025080597028136253, -0.5218981504440308, -0.08262690901756287, 0.3921578824520111, -0.04133427143096924, 0.104681320488...
I'm (manually) testing a RESTful API that makes full use of GET/POST/PUT/DELETE methods. Rather than using cURL on the command line to quickly test different input options, it would be handy if there were a windows GUI application to make this easier. Does anything like that exist? Use [Poster](https://addons.mozilla.o...
[ 0.4517313241958618, 0.023390235379338264, 0.10173958539962769, -0.12293899059295654, 0.04735840857028961, -0.3210582137107849, 0.0163359846919775, -0.21833470463752747, -0.1335829496383667, -0.575299859046936, -0.11487440764904022, 0.4589214324951172, -0.3491940200328827, -0.25243395566940...
A shell script installs and configures some services and applications in a Solaris instance. One of these services is NTP - but NTP cannot run in a non-global zone (well it can, but xntpd fails when it tries to adjust the clock; instead the zone inherits the time from the global zone). How can a shell script tell tha...
[ 0.030631355941295624, -0.03407691419124603, 0.09459394961595535, -0.04547662287950516, 0.26325133442878723, -0.278735488653183, 0.14422190189361572, 0.17942094802856445, 0.033144183456897736, -0.7828359007835388, -0.34471452236175537, 0.640197217464447, -0.3253920376300812, -0.084478765726...
zonename - print name of current zone SYNOPSIS zonename DESCRIPTION The zonename utility prints the name of the current zone. ... ```
[ -0.09511765092611313, 0.1732722520828247, 0.659159779548645, 0.06808765977621078, 0.2798943817615509, -0.23587630689144135, -0.20648711919784546, 0.14755956828594208, -0.11631038784980774, -0.6028057932853699, -0.4885358214378357, -0.0174554530531168, -0.15185345709323883, 0.46127685904502...
When you start to use a third party library in Java, you add their jars to your project. Do you also add the jars to the repository or do you just keep a local installation. And if the latter, how do you sync between team members to be able to work? Thanks. No, if you use Maven. Put them into Maven repository (if they...
[ 0.33996036648750305, 0.07358567416667938, -0.2883279025554657, 0.17509323358535767, -0.050383877009153366, 0.1287497580051422, 0.338683158159256, 0.03226800635457039, -0.36810994148254395, -0.873431384563446, 0.1885768324136734, 0.3326733708381653, 0.013450324535369873, -0.1773450374603271...
I have a C# web application on .net 2.0 being hosted on server A. The web application allows users to upload files using `<input id="File1" name="filMyFile" type="file" runat="server" />` to server A. This all works just fine. I am now being asked to modify the web application to allow pages being served by A to allow...
[ 0.8266369104385376, 0.3118535280227661, 0.5582736730575562, -0.09639554470777512, 0.04065060615539551, -0.35641080141067505, -0.08419037610292435, -0.0039047759491950274, -0.3306467533111572, -0.5597147941589355, -0.0033224383369088173, 0.32955479621887207, -0.2914651334285736, 0.358146786...
SSL. I am not entirely sure of the security implications of doing this, however I have seen a few websites in which for their login controls they SSL only an iframe which contains the login portion and the rest of their site was unsecure. Is this an OK thing to do? Can someone recommend a better way? Perhaps suggest ...
[ 0.3377959430217743, 0.0027816982474178076, 0.08919665217399597, -0.012262605130672455, -0.3891424834728241, -0.5041429400444031, 0.10614003241062164, 0.1386806070804596, -0.206239715218544, -0.6105092167854309, -0.018906669691205025, 0.24064816534519196, -0.3774576485157013, 0.084067136049...
I am brand new to python, and I need some help with the syntax for finding and iterating through html tags using lxml. Here are the use-cases I am dealing with: HTML file is fairly well formed (but not perfect). Has multiple tables on screen, one containing a set of search results, and one each for a header and footer...
[ 0.07583910971879959, 0.32797402143478394, 0.5876249074935913, -0.27242863178253174, -0.09067466109991074, -0.0947970300912857, 0.10523299127817154, -0.11460208147764206, -0.19160719215869904, -0.7615916132926941, 0.10488919913768768, 0.36367541551589966, -0.08555145561695099, -0.1268662810...