text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
is by giving it *attention* like I just did with WatiN through that link. I am willing to be $100 on that someone reading this answer will check out the link to WatiN, read about the project and download it and start using it in their own test suites. And they should since WatiN is a *great* Open Source project and J...
[ 0.7529205679893494, 0.11425849050283432, -0.21428368985652924, 0.5798316597938538, -0.3300991356372833, -0.18687289953231812, 0.37910690903663635, 0.2693615257740021, -0.10017257928848267, -0.46963897347450256, -0.0052067311480641365, 0.5461369752883911, 0.3393063247203827, -0.270626902580...
As anyone with an iPhone knows, some applications launch quickly, while others take several seconds. What are the best techniques for ensuring an iPhone app launches and becomes usable in a snappy manner? Apple recommends you "lazy load" every view. I.e. only load the first page on start up, and other pages only when ...
[ 0.3213852345943451, -0.14702889323234558, 0.41425856947898865, 0.18229173123836517, 0.10998475551605225, -0.10499941557645798, 0.10806222259998322, 0.1730393022298813, -0.3890429735183716, -0.26112884283065796, -0.2642004191875458, 0.9100194573402405, -0.005344803910702467, -0.640923678874...
Does anybody know why ``` vector<int> test(10); int a=0; for_each(test.begin(),test.end(),(_1+=var(a),++var(a))); for_each(test.begin(),test.end(),(cout << _1 << " ")); cout << "\n" ``` Gives : "0 1 2 3 4 5 6 7 8 9" but ``` transform(test.begin(),test.end(),test.begin(), (_1+=var(a),++var(a))); .....
[ 0.14028964936733246, -0.12337526679039001, 0.2989794909954071, -0.2960077226161957, 0.319120317697525, 0.18954437971115112, 0.43967404961586, -0.4139678478240967, -0.040437277406454086, -0.3148197531700134, -0.11738015711307526, 0.651742696762085, -0.30577486753463745, -0.11152898520231247...
sequence (just like before), then ++var(a) is evaluated, this also gives the result of the whole expression, then that is used to update your sequence again (via the transform)
[ 0.0643070638179779, -0.4339442253112793, 0.39212703704833984, -0.4392538070678711, 0.05459088087081909, 0.21888451278209686, 0.17931608855724335, -0.471112459897995, 0.2622380554676056, -0.3848203122615814, -0.08996818959712982, 0.6115451455116272, -0.3892023265361786, -0.04209883883595466...
In my application I have several DataContexts that connects to different databases with different schemas. In a custom user control I display the results of the query and let the user edit them, and when the user edits the data I want to persist the changes to the database. To do that I need a reference to the source D...
[ 0.08523403853178024, 0.22549715638160706, 0.6382339000701904, 0.10375997424125671, -0.008259349502623081, 0.06729798018932343, 0.07544530183076859, -0.07437881827354431, -0.08738008141517639, -0.8045775294303894, -0.05493497848510742, 0.5463463664054871, -0.1974986046552658, 0.330099642276...
resorting to ugly reflection hacks, so I'm looking for a cleaner approach. There are (several) ways around this problem, passing along a reference to the source DataContext for instance, but I imagine there must be a simpler way to do this. Edit: The following code works, but it's ugly: ``` FieldInfo contextField ...
[ 0.19661355018615723, 0.3551606833934784, 0.512546181678772, -0.312875896692276, -0.2695123553276062, -0.11412809044122696, 0.703502357006073, -0.16013401746749878, -0.012138010002672672, -0.6859244704246521, 0.04521702602505684, 0.7818700075149536, -0.41705259680747986, 0.1573440581560135,...
Does the opening Window enhance an application's attractiveness? Should it be a picture or bland Blue and White? Use the default OS theme colors. Anything else will be attractive to certain groups of people, and ugly to others (who will complain *very loudly* about how ugly they find it). If you stick with the OS theme...
[ 0.13025632500648499, 0.2072528600692749, 0.4462076723575592, -0.05272955447435379, -0.16996417939662933, -0.03674820810556412, 0.24526460468769073, 0.3087993562221527, 0.11200342327356339, -0.7898123264312744, -0.3304048180580139, 0.5977984666824341, -0.22659553587436676, 0.074822671711444...
I need to get the image dimensions of a JPEG in C++. I'm looking for either a fairly simple way to do it or a smallish library that provides that functionality. I'm working in C++ on OpenVMS, so any external libraries may have to be adapted to compile on our systems - so please don't post me links to big, closed source...
[ 0.5773875117301941, 0.19784417748451233, 0.09900587052106857, 0.4226977527141571, -0.242671400308609, -0.1302461177110672, -0.19199970364570618, 0.2499784231185913, -0.3117624819278717, -0.5451681017875671, 0.04383697360754013, 0.3827376961708069, -0.1630229651927948, 0.031158575788140297,...
have this [C function](http://carnage-melon.tom7.org/stuff/jpegsize.html) which may extract the relevant data for you. > This is a C routine but should compile fine with C++. > > Pass it a normal FILE pointer (from fopen) to the beginning of a jpeg file and two int pointers to be set with the image height and widt...
[ 0.315803200006485, 0.08822847157716751, 0.5763441324234009, 0.05930109694600105, -0.4442743957042694, 0.06618068367242813, -0.03964092954993248, -0.7053970098495483, -0.16287928819656372, -0.4157513380050659, -0.2273918092250824, 0.3602556586265564, -0.024071775376796722, 0.003091995604336...
to a valid JPEG file.
[ 0.0842256024479866, -0.16293880343437195, 0.2714431583881378, 0.21076592803001404, -0.009104080498218536, -0.2766689658164978, -0.28410759568214417, 0.07986762374639511, -0.268170028924942, -0.24743138253688812, -0.7598425149917603, 0.231276273727417, -0.06571997702121735, 0.10969826579093...
I'd like to know when i should and shouldn't be wrapping things in a USING block. From what I understand, the compiler translates it into a try/finally, where the finally calls Dispose() on the object. I always use a USING around database connections and file access, but its more out of habit rather than a 100% under...
[ 0.4490225315093994, 0.03131642937660217, 0.1637025773525238, 0.19909122586250305, 0.09740287810564041, -0.292674720287323, 0.08399428427219391, -0.21019752323627472, -0.21169595420360565, -0.4833254814147949, -0.2742372155189514, 0.3724803924560547, -0.2664746344089508, 0.08353567123413086...
I only need to use a USING when my object makes use of Dispose to tidy itself up? Thanks Edit: I know there are a couple of other posts on the USING keyword, but I'm more interested in answers relating the the CLR and exactly whats going on internally Andrew No, `IDisposable` items are not disposed when they go out ...
[ 0.6039309501647949, 0.09697039425373077, 0.22577258944511414, 0.09506760537624359, -0.1438578963279724, -0.25158101320266724, 0.4466959536075592, -0.09151053428649902, -0.44829046726226807, -0.569595992565155, -0.07723812013864517, 0.42382869124412537, -0.16505201160907745, 0.0961623489856...
good for connection pools etc). Garbage collection is dependent on memory pressure - if nothing wants extra memory, there is no need to run a GC cycle. Interestingly (perhaps) there are some cases where "using" is a pain - when the offending class throws an exception on `Dispose()` sometimes. WCF is an offender of thi...
[ 0.5517722368240356, 0.000978314084932208, -0.21394526958465576, 0.027437865734100342, -0.15632575750350952, -0.418072372674942, 0.23916679620742798, -0.08744026720523834, -0.38752979040145874, -0.6995528340339661, -0.008566614240407944, 0.48010754585266113, -0.29890310764312744, 0.44101196...
passing it to another piece of code that assumes responsibility. I've actually seen debug code of the type: ``` #if DEBUG ~Foo() { // complain loudly that smoebody forgot to dispose... } #endif ``` (where the `Dispose` calls `GC.SuppressFinalize`)
[ 0.4768868684768677, 0.04976561293005943, 0.31754201650619507, -0.19240283966064453, 0.08456028997898102, -0.3326811194419861, 0.2524206340312958, -0.12215220183134079, -0.10153891146183014, -0.2092043161392212, -0.20751044154167175, 0.4288480281829834, -0.45484450459480286, 0.2759516835212...
Is there any setting using which the iPhone keyboard won't appear for a particular textbox in web page? May be some css kind of setting? you just make the input field as **readonly="true"**/ readonly mode so that keyboard wont appear!!
[ 0.09053081274032593, 0.09855194389820099, 0.5493398904800415, -0.12052969634532928, 0.3064826428890228, 0.007753146346658468, 0.5251144766807556, 0.12731686234474182, -0.06631141901016235, -0.45930787920951843, -0.15138976275920868, 0.7992761135101318, -0.19697889685630798, -0.384665966033...
I am a bit new to Perl, but here is what I want to do: ``` my @array2d; while(<FILE>){ push(@array2d[$i], $_); } ``` It doesn't compile since `@array2d[$i]` is not an array but a scalar value. How should I declare @array2d as an array of array? Of course, I have no idea of how many rows I have. To make an array...
[ 0.1826631724834442, 0.10764555633068085, 0.7242653369903564, -0.45777133107185364, -0.25564703345298767, -0.165304034948349, 0.20588792860507965, -0.32331767678260803, -0.0912141352891922, -0.4627034366130829, 0.18888019025325775, 0.48352161049842834, -0.30472028255462646, 0.20491348206996...
pushes the value onto a dereferenced arrayref for you. You should be able to access an entry like this: ``` print $array[3][2]; ```
[ 0.15712077915668488, 0.11768336594104767, 0.29729077219963074, -0.369446724653244, 0.027118580415844917, -0.09362773597240448, 0.14776748418807983, -0.010237662121653557, -0.17056824266910553, -0.5209742784500122, -0.2213488519191742, 0.47762325406074524, -0.4222024083137512, 0.11805757880...
I am trying to import a .csv file into WorldShip containing names, addresses, and zip codes. I have two profiles set up defining package weight, UPS service, bill transportation, package type, and reference numbers. Can I import just name, addresses and zip codes under a specific profile to keep the other variables co...
[ 0.47896701097488403, 0.31710585951805115, 0.6258537173271179, 0.17772257328033447, -0.008106608875095844, 0.28271129727363586, -0.20140281319618225, 0.10394313186407089, -0.32724177837371826, -0.7216489911079407, -0.002391515765339136, 0.13821867108345032, -0.10646899044513702, 0.238835737...
report? The return shipping address will stay constant. I have basic programming abilities and fairly good computer skills, but I want to know if I am getting in over my head. Your help is greatly appreciated. The `%%` becomes a single `%`. This code is essentially doing two levels of string formatting. First the `%...
[ 0.466126948595047, 0.1985660344362259, 0.5670694708824158, 0.08404821157455444, -0.10661300271749496, -0.013858824037015438, 0.21464689075946808, -0.25651460886001587, 0.18519535660743713, -0.5087711811065674, -0.1076430007815361, 0.7685352563858032, -0.16167522966861725, 0.186740115284919...
I'm creating a stored procedure to return search results where some of the parameters are optional. I want an "if statement" in my *where* clause but can't get it working. The *where* clause should filter by only the non-null parameters. Here's the sp ``` ALTER PROCEDURE spVillaGet -- Add the parameters for the sto...
[ 0.2163570374250412, -0.5169317126274109, 0.8883153200149536, -0.044415730983018875, 0.10155053436756134, 0.2890760600566864, -0.1800392121076584, -0.4957438111305237, -0.32455939054489136, -0.5558654069900513, 0.24822241067886353, 0.41403067111968994, -0.11895979940891266, 0.38456457853317...
If @accomodationFK <> null then accomodationTypeFK = @accomodationFK @regionFK <> null Then And regionFK = @regionFK IF @sleeps <> null Then And sleeps = @sleeps IF @priceFloor <> null Then And price >= @priceFloor And price <= @priceCeil END ``` Any ideas how to do th...
[ 0.0751875787973404, -0.4392303228378296, 0.8275129795074463, -0.10362077504396439, 0.3080904185771942, 0.1577286273241043, -0.2270069122314453, -0.5478163361549377, -0.3573504686355591, -0.7857062816619873, -0.17550188302993774, 0.4801335632801056, -0.1532273292541504, 0.5148715972900391, ...
null OR accomodationTypeFK = @accomodationFK) AND (@regionFK IS null or regionFK = @regionFK) AND (@sleeps IS null OR sleeps = @sleeps) AND (@priceFloor IS null OR (price BETWEEN @priceFloor And @priceCeil)) ```
[ -0.13655665516853333, -0.3689683973789215, 0.3441830575466156, -0.16531790792942047, 0.12307572364807129, 0.2138201743364334, -0.2551320195198059, -0.11771707236766815, -0.14451448619365692, -0.5766406059265137, -0.5826466679573059, 0.4517648220062256, -0.011651339009404182, 0.554330945014...
I am creating a GUI frontend for the Eve Online API in Python. I have successfully pulled the XML data from their server. I am trying to grab the value from a node called "name": ``` from xml.dom.minidom import parse dom = parse("C:\\eve.xml") name = dom.getElementsByTagName('name') print name ``` This seems to fi...
[ -0.09999354928731918, 0.11872782558202744, 0.24894531071186066, -0.19193921983242035, -0.050716664642095566, -0.11342857033014297, 0.30116745829582214, -0.2707500457763672, 0.07118692994117737, -0.6758507490158081, -0.04415598511695862, 0.5624437928199768, -0.21794234216213226, 0.164826348...
I am running a query from ASP using a MySQL database, I want to create a variable (ssResult) based on the result with a person's name (fullname), if the record does not exist I want to assign the text 'N/A' to the variable, code below, I currently use a function getOther for my database connections which passes the col...
[ -0.17304985225200653, -0.29741373658180237, 0.4835360646247864, -0.07814553380012512, -0.21057868003845215, 0.19994424283504486, 0.23173585534095764, -0.10262680798768997, -0.38071104884147644, -0.3986547887325287, -0.016542332246899605, 0.3662591576576233, -0.34407997131347656, 0.11599577...
conn, rstemp Set conn = Server.CreateObject("ADODB.Connection") conn.open myDSN Set Session("lp_conn") = conn Set rstemp = Server.CreateObject("ADODB.Recordset") rstemp.Open inSQL, conn if not rstemp.eof then rstemp.movefirst getOtherElse=rstemp.fields(getColumn) else ...
[ 0.06359972059726715, -0.1292634755373001, 0.9679522514343262, -0.2852327227592468, 0.08119981735944748, -0.0656532496213913, 0.10427331179380417, -0.1842455267906189, -0.49520042538642883, -0.46112579107284546, -0.4952378571033478, 0.5113261938095093, -0.4921741485595703, 0.175204873085021...
rstemp.eof then ``` with ``` if rstemp.RecordCount > 0 then ```
[ -0.027354000136256218, 0.1772814840078354, 0.691502571105957, -0.02887643314898014, 0.17539390921592712, -0.38597041368484497, -0.13357532024383545, -0.37695562839508057, -0.5955997705459595, -0.5297781825065613, -0.20049113035202026, 0.46304214000701904, -0.44969117641448975, -0.054217275...
In the [Boost Signals](http://www.boost.org/doc/html/signals.html "Boost Signals documentation") library, they are overloading the () operator. Is this a convention in C++? For callbacks, etc.? I have seen this in code of a co-worker (who happens to be a big Boost fan). Of all the Boost goodness out there, this has o...
[ 0.036046139895915985, 0.17423389852046967, 0.2193514108657837, 0.08237441629171371, -0.34624969959259033, -0.28119975328445435, 0.17974498867988586, -0.13225652277469635, 0.09230726212263107, -0.23655976355075836, -0.179869145154953, 0.8113251328468323, -0.5710867643356323, -0.198298782110...
a simple functor example : ``` struct Accumulator { int counter = 0; int operator()(int i) { return counter += i; } } ... Accumulator acc; cout << acc(10) << endl; //prints "10" cout << acc(20) << endl; //prints "30" ``` Functors are heavily used with generic programming. Many STL algorithms are written in a...
[ -0.2680324614048004, -0.23638661205768585, 0.42229989171028137, -0.050869740545749664, -0.3037376403808594, 0.041299447417259216, -0.1547001451253891, -0.5707405209541321, -0.20123842358589172, -0.36625462770462036, -0.19842152297496796, 0.6264002919197083, -0.7329685688018799, -0.30104970...
while (first != last) f(*first++); } ``` You see that this algorithm is very generic since it is parametrized by a function. By using the operator(), this function lets you use either a functor or a function pointer. Here's an example showing both possibilities : ``` void print(int i) { std::cout << i << std::endl; ...
[ -0.22052234411239624, -0.2931835949420929, 0.7476578950881958, -0.1034596860408783, -0.01942336931824684, 0.2841009497642517, -0.1694110780954361, -0.5883705615997314, -0.47778019309043884, -0.5587379336357117, -0.041666172444820404, 0.570698082447052, -0.6208329200744629, -0.1433379501104...
write a functor that has several parentheses operator, as long as you respect the basic rules of method overloading (e.g. overloading only on the return type is not possible).
[ 0.035347968339920044, -0.12367305159568787, -0.04561449587345123, 0.11419109255075455, -0.01775774545967579, -0.35093003511428833, 0.04901481047272682, -0.32426440715789795, -0.009909718297421932, -0.015917906537652016, -0.1406739503145218, 0.8700999021530151, -0.44541117548942566, -0.5288...
Is there C# look-alike for Linux? What about a compiler? There is another language called [Vala](http://live.gnome.org/Vala). It's not well known, but as you can see from the page, an interesting amount of projects have been produced already.
[ 0.5883141756057739, -0.04632466286420822, -0.281238317489624, -0.10356933623552322, -0.25051096081733704, -0.08430057764053345, 0.08576246351003647, 0.4776354730129242, -0.15017174184322357, -0.2877155840396881, -0.06265149265527725, 0.6997331976890564, -0.3107530474662781, -0.149695083498...
In my everlasting quest to suck less I'm trying to understand the "yield" statement, but I keep encountering the same error. > The body of [someMethod] cannot be an iterator block because > 'System.Collections.Generic.List< AClass>' is not an iterator interface type. This is the code where I got stuck: ``` foreach ...
[ 0.4184000790119171, 0.05439251661300659, 0.3844711482524872, -0.11815860867500305, -0.17567956447601318, -0.03971453756093979, 0.27171099185943604, 0.02704991213977337, 0.1744023859500885, -0.4747380316257477, 0.23248420655727386, 0.44007039070129395, -0.17117537558078766, 0.45922625064849...
is a custom class, but I imagine `List` is an iterator interface type, no? **--Edit--** Thanks for all the quick answers. I know this question isn't all that new and the same resources keep popping up. It turned out I was thinking I could return `List<AClass>` as a return type, but since `List<T>` isn't lazy,...
[ 0.2530894875526428, -0.2873266935348511, 0.16657842695713043, -0.008076375350356102, -0.057856421917676926, 0.06766922771930695, 0.3026827275753021, 0.12926490604877472, -0.32746565341949463, -0.6786808967590332, 0.20518521964550018, 0.6213943362236023, -0.32377442717552185, 0.156115174293...
anyway? What will the performance implications be? A method using *yield return* must be declared as returning one of the following two interfaces: ``` IEnumerable<SomethingAppropriate> IEnumerator<SomethingApropriate> ``` (thanks [Jon](https://stackoverflow.com/users/22656/jon-skeet) and [Marc](https://stackoverflo...
[ 0.35799574851989746, -0.016823692247271538, 0.3795907199382782, -0.11881018429994583, -0.029637841507792473, -0.129003643989563, 0.30171534419059753, -0.1586141586303711, -0.1740792840719223, -0.34291133284568787, -0.2893744707107544, 0.6078178286552429, 0.03890927508473396, -0.01092800684...
is a difference, and you need to declare the method correctly. For more information, read [Jon's answer here](https://stackoverflow.com/questions/317462/some-help-understanding-yield#317502), which contains some very useful links.
[ -0.15516114234924316, 0.15215671062469482, 0.380296528339386, -0.11064466089010239, -0.04680345952510834, -0.032870814204216, 0.2751268446445465, -0.5990710258483887, -0.009411424398422241, -0.13493283092975616, -0.18472826480865479, 0.43996524810791016, -0.15705151855945587, -0.2549695372...
I have a container element which I need to resize as its contents change. It contains 2 absolutely positioned divs which can both change height. If I don't specify the height of the container then anything after the container disappears under the contents. At the moment I am doing the following but I'd be pleased to ...
[ -0.2207915186882019, -0.13641074299812317, 0.6207244396209717, 0.01973765343427658, 0.2670055329799652, 0.18395468592643738, 0.01845507323741913, -0.006278965622186661, -0.038365840911865234, -0.7904661297798157, -0.2506159842014313, 0.2782430350780487, 0.10416396707296371, 0.2522372603416...
height: 405px;} ``` html: ``` <div id="container"> <div id="main">variable height content here</div> <div id="sidebar"> <div id="foo">...</div> <div id="bar">....</div> ... </div> <div> ``` js: ``` fixHeights = function() { var children_height = 0; $('#sidebar'). chil...
[ -0.057759836316108704, 0.10264895856380463, 0.7655963897705078, 0.10045456886291504, 0.26959511637687683, 0.4966171979904175, -0.248198464512825, -0.31512054800987244, -0.2758820950984955, -0.5437285304069519, -0.17638754844665527, 0.3359091281890869, 0.17003722488880157, 0.418510019779205...
div doesn't act the same anymore. If you're floating content that extends past the bottom of the container div, add the following div to the very bottom of the children of the container div: ``` <div style="clear:both;"></div> ``` That will not allow children to float over it, thus forcing the containing div to be ...
[ 0.00003631172512541525, -0.196048766374588, 0.6853922605514526, 0.13882911205291748, -0.12676435708999634, -0.06948016583919525, -0.40264227986335754, -0.056015677750110626, -0.3078775405883789, -0.5556305646896362, 0.061070382595062256, 0.07709439843893051, -0.17583581805229187, 0.2602878...
desktop application. I don't believe there is any way to do this other than with javascript. Html documents are designed to flow, not be rigid. If you want to bail on the javascript, you'll have to let go of the positioning styles and use your floating and clearing divs. Its not *that* horrible...
[ 0.29324984550476074, 0.17479264736175537, 0.3689329922199249, 0.14284873008728027, -0.013647939078509808, -0.10928928852081299, 0.330833375453949, 0.3121285140514374, -0.3627554774284363, -0.7549300193786621, 0.0969509482383728, 0.5283832550048828, -0.37645190954208374, -0.2190850675106048...
I know a lot about C# but this one is stumping me and Google isn't helping. I have an IEnumerable range of objects. I want to set a property on the first one. I do so, but when I enumerate over the range of objects after the modification, I don't see my change. Here's a good example of the problem: ``` public st...
[ 0.32863306999206543, -0.15242703258991241, 0.5213600993156433, -0.32004955410957336, 0.027543792501091957, -0.05538828298449516, 0.3520439863204956, -0.3681613504886627, -0.011758243665099144, -0.4988025426864624, -0.19018082320690155, 0.7557991147041321, -0.3668002188205719, 0.25565636157...
// Convert range into SubItem classes var items = range.Select(i => new SubItem() {Name = "foo", MagicNumber = i}); Write(items); // Expect to output 1,2,3,4,5,6,7,8,9,10 // Make a change items.First().MagicNumber = 42; Write(items); // Expect to output 42,2,3,4,5,6,7,8,9,10...
[ 0.041771046817302704, -0.2994692921638489, 0.7153953313827515, -0.44339102506637573, 0.01707489788532257, 0.5995987057685852, 0.49711933732032776, -0.5854815244674683, 0.002786029130220413, -0.5110092759132385, -0.2945084571838379, 0.5891152620315552, -0.2985672354698181, -0.07712521404027...
{ Console.WriteLine(string.Join(", ", items.Select(item => item.MagicNumber.ToString()).ToArray())); } public class SubItem { public string Name; public int MagicNumber; } ``` What aspect of C# stops my "MagicNumber = 42" change from being output? Is there a way I can get my cha...
[ 0.2436283677816391, -0.12802651524543762, 0.965772271156311, -0.28712016344070435, 0.14047934114933014, 0.06744308024644852, 0.30356302857398987, -0.4328637719154358, -0.29869136214256287, -0.6031057238578796, -0.3869573473930359, 0.6869439482688904, -0.053267702460289, 0.26312056183815, ...
= "foo", MagicNumber = i}); ``` Note that the Select is a lazy enumerator, meaning that it only does the select when you ask for an item from it (and does it *every* time you ask it). The results are not stored anywhere, so when you call items.First() you get a new `SubItem` instance. When you then pass items to Writ...
[ -0.05721915513277054, -0.369874507188797, 0.3856421411037445, -0.21611237525939941, -0.06386688351631165, 0.04375377669930458, 0.24818764626979828, -0.4935571849346161, -0.2245723456144333, -0.6077311635017395, -0.2699611186981201, 0.3942164480686188, -0.30038517713546753, 0.33907994627952...
= "foo", MagicNumber = i}).ToList(); ```
[ 0.321964293718338, 0.023191822692751884, 0.5368138551712036, -0.6513954401016235, 0.48633521795272827, -0.10939070582389832, 0.5816928744316101, -0.3798287808895111, -0.04279574379324913, -0.08213340491056442, -0.37250280380249023, 0.8323152661323547, -0.5429934859275818, 0.075905330479145...
I'm wondering if there are any applications, preferably freeware, that can take a database configuration, and, with as little hassle as possible, create web forms for inserting data easily. I'm finding it hard to express exactly what it is I'm after. Maybe I can talk a bit about what I need. I have a configuration d...
[ 0.8591999411582947, 0.19991104304790497, 0.017573736608028412, 0.2878360450267792, 0.48650315403938293, -0.16887496411800385, -0.0906863585114479, 0.2884511649608612, -0.3115561902523041, -0.3603152632713318, 0.1096387654542923, 0.500968337059021, 0.0934465155005455, 0.24719947576522827, ...
IDs ourselves. The crux is, they don't want us to develop a simple web form thingy to handle this, instead they want a tool that can generate the web form thingy. Did that make sense? I'm not sure if anything like this exists or is reliable, but, I thought that if anyone knew, it's this community. Thanks! "with as lit...
[ 0.7388145923614502, 0.000010856304470507894, 0.31182193756103516, 0.4856911897659302, 0.014892232604324818, -0.29683515429496765, -0.07428624480962753, -0.31475862860679626, -0.12597833573818207, -0.42736297845840454, 0.2320777028799057, 0.6494200825691223, 0.0089590884745121, -0.289459586...
free, but looking at the screenshots, it seems to fit your requirements.
[ 0.5049129128456116, -0.13132119178771973, 0.1772780567407608, 0.5076069235801697, 0.33992189168930054, -0.38194599747657776, -0.0546240359544754, 0.10185585170984268, -0.18559502065181732, -0.22333578765392303, 0.003996152896434069, 0.4189203977584839, 0.20525316894054413, -0.3352588117122...
I'm looking for the best way to interpret the standard (well, standardish) Ethernet PHY registers, to determine the speed that an Ethernet link is actually running at. (e.g. 10/100/1000 and full/half-duplex) I daresay that this is to be found in the source of things like Linux, and I'm just off to look there now, but ...
[ 0.5021281242370605, 0.018733669072389603, 0.36136242747306824, 0.29466503858566284, 0.004582768771797419, -0.18473312258720398, -0.3397277295589447, 0.15622931718826294, -0.266621470451355, -0.7485625147819519, 0.43481922149658203, 0.6301560997962952, -0.1887631118297577, 0.019339282065629...
upper(first) or last != upper(last); ```
[ -0.44443854689598083, -0.00996570847928524, 0.2628682553768158, -0.2076566070318222, -0.13581401109695435, 0.1490315943956375, 0.05939831584692001, -0.2463664412498474, -0.15647104382514954, -0.7465416193008423, -0.31035861372947693, 0.6475530862808228, -0.19746257364749908, -0.00577907869...
The navigation on the left menu in the below site uses CSS for mouseover links. [PVH](http://www.pvh.com/) When I take the code of the navigation and make it separate page. Then the mouseover links are not working. What could be the reason? [Test](http://shivanand.in/tmp/navigation.html) Probably... ``` <script ...
[ 0.1347067505121231, 0.248952254652977, 0.2890686094760895, -0.07748065888881683, -0.06088322028517723, -0.2349701225757599, 0.2472533881664276, -0.017227325588464737, -0.053262148052453995, -0.5708293914794922, 0.062798410654068, 0.4673362374305725, 0.0027002228889614344, 0.296699583530426...
Up to now in my application, I've been supporting all flavors of Windows from Windows 98 to Windows NT/2000 to XP to Vista. But because of adding Unicode in my next version, support of Windows 98 would still be possible, but very difficult. I know there are still some of my users running Windows 98. What are the pr...
[ 0.18755806982517242, 0.31299588084220886, 0.33328181505203247, -0.1272071897983551, -0.07880311459302902, 0.15922372043132782, 0.3178415298461914, 0.21035146713256836, -0.28123918175697327, -0.6330029368400574, -0.11820747703313828, 0.41780003905296326, -0.18887396156787872, 0.158012673258...
on newer OS's. Continue to provide the current version of your software for Win98 users, but make it clear that Win98 will not be supported in future versions of your software. I think most Win98 users are starting to get the message and will be upgrading soon. Also, if they are unwilling to pay for upgrades to their...
[ 0.22312794625759125, 0.14289480447769165, 0.44323188066482544, 0.33988744020462036, 0.41409778594970703, -0.12628307938575745, 0.4152129888534546, 0.5600988864898682, -0.1284683346748352, -0.671562671661377, -0.2805568277835846, 0.8383971452713013, -0.1431649923324585, 0.058488134294748306...
When ever I think I can use the yield keyword, I take a step back and look at how it will impact my project. I always end up returning a collection instead of yeilding because I feel the overhead of maintaining the state of the yeilding method doesn't buy me much. In almost all cases where I am returning a collection I...
[ 0.2506271004676819, -0.11357825249433517, 0.4004736840724945, -0.10458862036466599, -0.4998219609260559, -0.2676789462566376, 0.1251019537448883, -0.17931880056858063, 0.11678880453109741, -0.5343378186225891, -0.11637716740369797, 0.36249247193336487, 0.3355644941329956, 0.402244210243225...
I feel that only the linq team is writing such complex queriable objects that yield is useful. Has anyone written anything like or not like linq where yield was useful? I recently had to make a representation of mathematical expressions in the form of an Expression class. When evaluating the expression I have to trave...
[ 0.0030336910858750343, 0.10557795315980911, 0.28666436672210693, -0.07196023315191269, -0.20988433063030243, -0.15953508019447327, 0.28665900230407715, -0.44657641649246216, 0.09110376238822937, -0.3548833727836609, 0.04150770977139473, 0.6685254573822021, -0.14547975361347198, -0.19480496...
{ foreach (Expression<T> expr in LeftExpression) { yield return expr; } foreach (Expression<T> expr in RightExpression) { yield return expr; } yield return this; } } ``` Then I
[ -0.42363834381103516, 0.20500238239765167, 0.5023993849754333, -0.4694289565086365, 0.19994154572486877, -0.017380498349666595, 0.3092368543148041, -0.46053802967071533, 0.4844591021537781, -0.4426823556423187, -0.7739072442054749, 0.8116313219070435, -0.2955892086029053, 0.040428429841995...
can simply use a foreach to traverse the expression. You can also add a Property to change the traversal algorithm as needed.
[ -0.014472667127847672, 0.005152554251253605, 0.1489831507205963, 0.1552126407623291, 0.23690035939216614, -0.09131991118192673, 0.29474878311157227, -0.27649185061454773, 0.06776294857263565, -0.7118497490882874, -0.4028775990009308, 0.6826751232147217, -0.12817446887493134, -0.13860234618...
I have a ComboBox inside of a cell of a DataGridView Row on a Windows form. I need the following to happen: 1. click on the ComboBox 2. pick a value 3. recalculate a total & display inside of a lable that is sitting outside of the DataGridView. Currently, the following is happening: 1. Click on the ComboBox 2. Cl...
[ 0.557244062423706, 0.24649854004383087, 0.5709640979766846, -0.13166509568691254, -0.001920125330798328, 0.014402593486011028, 0.04879562929272652, -0.4567730724811554, -0.19661781191825867, -0.4781075119972229, 0.3035252094268799, 0.6454297304153442, -0.27793020009994507, 0.30367198586463...
Second, I'd like for a live recalculation to happen after selecting a value. Does anyone have a trick or two to solve any of these? I've tried most of the events on the DGV without much luck. Add a handler to the CellClick event of the DataGridView that looks a bit like: ``` private void vehicleTypeGridView_CellClic...
[ -0.025108888745307922, -0.1291951984167099, 0.3991186022758484, -0.0022645469289273024, 0.06898260861635208, 0.0999506488442421, 0.38088124990463257, -0.26728111505508423, -0.01178134884685278, -0.36271265149116516, 0.0491681843996048, 0.7855420112609863, -0.2420005351305008, 0.01831112429...
I'd like to allow a user to open files in their own client applications via Silverlight. I'd like this to work similarly to WebDAV, in the sense that they could read/write the file back into Silverlight's isolated storage... Is it possible to construct a file:// link to an isolated storage file? Is there a uri scheme ...
[ 0.8162364959716797, 0.1377585381269455, 0.027251843363046646, 0.12171262502670288, -0.17303624749183655, -0.29897695779800415, 0.060818467289209366, 0.054499126970767975, -0.4119323492050171, -0.5595736503601074, 0.10439467430114746, 0.3482125401496887, -0.43509435653686523, 0.497589141130...
public MDB renders them irelevant. Same as they don't exist.
[ 0.14555291831493378, 0.21772532165050507, 0.3631269931793213, 0.043973151594400406, -0.3951062262058258, -0.19824513792991638, 0.35556960105895996, 0.348520964384079, 0.005001082085072994, -0.5026072263717651, -0.14312221109867096, 0.46769997477531433, -0.27824944257736206, 0.1585387587547...
I've attempted to use the EstimatedSize value during creation of an uninstaller registry key for an app I've developed, unfortunately the value I specify does not appear in the Add/Remove Program list next to my program's entry. I've tried to find the proper procedure for using this value but to no avail. Anyone have a...
[ 0.6213642954826355, -0.008864149451255798, 0.0830899029970169, 0.0737968385219574, 0.15108172595500946, 0.1741512566804886, 0.07229581475257874, -0.0420881062746048, 0.20468783378601074, -0.8401809930801392, 0.2810439467430115, 0.5981059670448303, 0.04560867324471474, -0.17473269999027252,...
in the ARPCache key in the registry 2. Find the registry key inside the ARPCache folder, delete the SlowInfoCache binary value, and set the Changed value to 1. 3. Next time the Add/Remove Programs list is opened you will see the value you specified in the EstimatedSize entry, not the arbitrary Windows generated one. I ...
[ -0.22068755328655243, -0.10136515647172928, 0.7987323999404907, 0.09437461197376251, 0.15649917721748352, 0.3218786120414734, 0.09080418199300766, 0.022162381559610367, -0.17776356637477875, -0.7313385605812073, -0.25739651918411255, 0.6893395185470581, -0.4584170877933502, 0.0408414267003...
In the small application that I'm currently developing for a customer I need to ask the user for his windows login username, password and domain and then use those with **System.Diagnostics.Process.Start** to start an application. I have a textbox with UseSystemPasswordChar to mask the entered password. I need a **S...
[ -0.03317410498857498, 0.09911461919546127, 0.4577253758907318, 0.07318881899118423, -0.015070958994328976, 0.0315297394990921, 0.24856635928153992, -0.22016946971416473, -0.30183959007263184, -0.7830783128738403, -0.1536845713853836, 0.6625518202781677, -0.11894062161445618, 0.017287487164...
you trying to do something similar to a "Run As" type command where you are trying to run the process as a different user than the one currently logged on? If not, you should be able to just call Process.Start and let it pick up the current users credentials. Also, take a look at the following resources as well: * [C...
[ 0.18088342249393463, -0.05705679953098297, 0.4964391589164734, 0.13715451955795288, 0.1470097005367279, 0.09525894373655319, 0.475294291973114, -0.2824825346469879, -0.49099019169807434, -0.5971049070358276, -0.1778532862663269, 0.49359044432640076, -0.20484554767608643, 0.1532539427280426...
to either call Process.Start, or, more likely, call the CreateProcessAsUser function.
[ 0.20426084101200104, -0.051063548773527145, 0.18776017427444458, -0.003993714228272438, 0.20782512426376343, -0.1114894449710846, 0.08465930819511414, 0.0933566465973854, 0.11546896398067474, -0.3940029442310333, -0.5304383635520935, 0.6548337936401367, -0.14918570220470428, 0.337698400020...
I am developing a product with heavy 3D graphics computations, **to a large extent closest point and range searches**. Some hardware optimization would be useful. While I know little about this, my boss (who has no software experience) advocates FPGA (because it can be tailored), while our junior developer advocates GP...
[ 0.29649993777275085, 0.32051169872283936, 0.26841360330581665, -0.13168784976005554, -0.10178025811910629, 0.019291114062070847, -0.4718678593635559, 0.12213675677776337, -0.21141311526298523, -0.8099122047424316, -0.011422594077885151, 0.6859464645385742, 0.14660805463790894, -0.076141186...
FPGA at all? Or is there a third option? I investigated the same question a while back. After chatting to people who have worked on FPGAs, this is what I get: * FPGAs are great for realtime systems, where even 1ms of delay might be too long. This does not apply in your case; * FPGAs can be very fast, espeically for we...
[ 0.07076945900917053, -0.016412580385804176, 0.21394503116607666, 0.14497078955173492, -0.26125940680503845, -0.11065051704645157, 0.14151528477668762, 0.04202663525938988, -0.45974093675613403, -0.5116313099861145, -0.12934547662734985, 0.637827455997467, -0.30298054218292236, -0.466275840...
It seems to be more suited to electronic engineers (who are generally the ones who work on FPGAs) than software developers. If you can make CUDA work for you, it's probably the best option at the moment. It will certainly be more flexible than a FPGA. Other options include Brook from ATI, but until something big hap...
[ 0.10144980996847153, -0.0037927795201539993, 0.38468435406684875, 0.3184153139591217, -0.09312252700328827, -0.20143070816993713, -0.312368780374527, 0.2229095995426178, -0.1528715044260025, -0.46070873737335205, -0.014599364250898361, 0.5455701351165771, 0.1032010093331337, 0.128649935126...
I'm trying to redirect the java compiler output to a file. I thought it's supposed to be: ``` javac file.java > log.txt ``` or something. Instead, I see all the output on the terminal and nothing in log.txt! Also, if I want to log errors too, do I do ``` javac file.java 2>&1 > log.txt ``` ? ``` javac file.java ...
[ 0.1445317417383194, 0.07540060579776764, 0.08383359014987946, -0.20419465005397797, -0.6025375127792358, 0.1876668781042099, 0.3174908757209778, -0.007624687161296606, -0.13706374168395996, -0.8537706136703491, -0.003810781752690673, 0.3374697268009186, -0.6481999754905701, 0.2445648908615...
one is redirected with 2>. Your second line, using 2>&1, redirects stderr to stdout and finally stdout into log.txt.
[ -0.02541743591427803, -0.12054859846830368, 0.6022886633872986, -0.16068285703659058, -0.1357268989086151, 0.2861660420894623, 0.38227733969688416, -0.0014763848157599568, -0.11996081471443176, -0.7897024750709534, -0.3766186833381653, 0.30476057529449463, -0.22227610647678375, 0.115011699...
I have a .NET assembly which I am accessing from VBScript (classic ASP) via COM interop. One class has an indexer (a.k.a. default property) which I got working from VBScript by adding the following attribute to the indexer: `[DispId(0)]`. It works in most cases, but not when accessing the class as a member of another o...
[ -0.04023602604866028, -0.0089290551841259, 0.1040293350815773, 0.004045592155307531, -0.27507421374320984, -0.2078552097082138, 0.31823310256004333, -0.1572531759738922, 0.009578744880855083, -0.7153720855712891, 0.006336599122732878, 0.4538997411727905, -0.3026069700717926, 0.228695496916...
has the default indexer. VBScript example: ``` Dim testRequest, testQueryString Set testRequest = Server.CreateObject("AspObjects.TestRequest") Set testQueryString = testRequest.QueryString testQueryString("key") = "value" ``` The following line causes an error instead of printing "value". This is the syntax I woul...
[ -0.20592659711837769, 0.0775441825389862, 0.7122294306755066, -0.18767890334129333, -0.2707042098045349, -0.15950550138950348, 0.13439185917377472, -0.36764100193977356, 0.14188697934150696, -0.8268576860427856, -0.01725992187857628, 0.5696202516555786, -0.31318557262420654, 0.014171908609...
IRequestDictionary QueryString { get; } } [ClassInterface(ClassInterfaceType.None)] public class TestRequest : IRequest { private IRequestDictionary _queryString = new RequestDictionary(); public IRequestDictionary QueryString { get { return _queryString; } } } [InterfaceType(ComInterfaceType.Int...
[ -0.3289449214935303, 0.016552554443478584, 0.64436274766922, -0.1058933436870575, -0.23951588571071625, -0.006472655106335878, 0.5650312304496765, -0.5541121959686279, 0.19322988390922546, -0.7877510786056519, -0.08822152018547058, 0.69285649061203, -0.4116367995738983, 0.03801306337118149...
key] { get { return _dictionary[key]; } set { _dictionary[key] = value; } } } ``` I've tried researching and experimenting with various options but have not yet found a solution. Any help would be appreciated to figure out why the `testRequest.QueryString("key")` syntax is not working and how to g...
[ -0.31998804211616516, 0.13217800855636597, 0.4721813201904297, 0.10979221761226654, -0.005457155406475067, -0.19114762544631958, 0.36857661604881287, -0.4709414541721344, -0.13135755062103271, -0.6967787146568298, -0.20085978507995605, 0.5201874375343323, -0.28947314620018005, 0.2087057083...
{ properties: methods: [id(0x60020000), propget] IRequestDictionary* QueryString(); }; [ uuid(8A494CF3-1D9E-35AE-AFA7-E7B200465426), version(1.0), custom(0F21F359-AB84-41E8-9A78-36D110E6D2F9, AspObjects.IRequestDictionary) ] dispinterface IRequestDictionary { properties: methods:...
[ -0.6221811771392822, -0.20485538244247437, 0.48949378728866577, 0.02432517521083355, -0.005390224978327751, 0.37434327602386475, 0.4303048849105835, -0.5882598161697388, -0.179829940199852, -0.6680411100387573, -0.30600079894065857, 0.6263295412063599, -0.3687705993652344, 0.19042442739009...
[in] VARIANT key, [in] VARIANT rhs); }; ``` I stumbled upon this exact problem a few days ago. I couldn't find a reasonable explanation as to why it doesn't work. After spending long hours trying different workarounds, I think I finally found something that seems to work, and is not so dirty....
[ 0.13106007874011993, 0.05604863539338112, 0.12363602966070175, 0.04203888401389122, 0.2417546957731247, -0.06759791076183319, 0.27493390440940857, -0.0406845323741436, -0.25126415491104126, -0.4375488758087158, -0.03365703672170639, 0.43632251024246216, -0.37370651960372925, 0.452400356531...
receives one argument, the key. If the key is "missing" or null, then the method returns the collection (this handles expressions like "testRequest.QueryString.Count" in VbScript). Otherwise, the method returns the specific item from the collection. The dirty part with this approach is that this method returns an obje...
[ -0.04152031987905502, -0.03725883364677429, 0.010926307179033756, 0.14794686436653137, -0.2702800929546356, 0.07958269864320755, 0.20021094381809235, -0.3932074010372162, -0.03799528256058693, -0.3992544114589691, -0.10929792374372482, 0.45293423533439636, -0.30334314703941345, 0.267778903...
I use this property, and from COM/VbScript/unmanaged code I use the method. Here is an implementation of the above workaround using the example of this thread: ``` [ComVisible(true)] [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] public interface IRequest { IRequestDictionary ManagedQueryString { ...
[ 0.10662911087274551, -0.03476414456963539, 0.5052288174629211, -0.06467478722333908, -0.10911444574594498, -0.05709034577012062, 0.39812833070755005, -0.6326573491096497, 0.09704431891441345, -0.8677565455436707, 0.0312238447368145, 0.7558486461639404, -0.22287648916244507, 0.2217645645141...
get { return _queryString; } } public object QueryString(object key) { if (key is System.Reflection.Missing || key == null) return _queryString; else return _queryString[key]; } } [ComVisible(true)] [InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] public inter...
[ -0.2485126256942749, -0.17039966583251953, 0.8423485159873962, 0.05780570209026337, -0.12650901079177856, 0.07838786393404007, 0.42907270789146423, -0.2906359136104584, 0.034813541918992996, -0.9370619058609009, -0.2545325756072998, 0.7482339143753052, -0.3672676384449005, 0.05787453055381...
get; [DispId(0)] set; } int Count { get; } } [ComVisible(true)] [ClassInterface(ClassInterfaceType.None)] public class RequestDictionary : IRequestDictionary { private Hashtable _dictionary = new Hashtable(); public object this[object key] { get { return _dictionary[ke...
[ -0.3034922778606415, -0.21883805096149445, 0.4926918148994446, -0.2380763441324234, -0.16996797919273376, 0.016780374571681023, 0.4363572597503662, -0.41201600432395935, 0.023767458274960518, -0.49400320649147034, -0.390476793050766, 0.7148058414459229, -0.4437731206417084, 0.0241335500031...
#region IEnumerable Members public IEnumerator GetEnumerator() { throw new NotImplementedException(); } #endregion } ```
[ -0.10029483586549759, -0.4604416787624359, 0.5353403091430664, -0.030233394354581833, 0.1300783008337021, -0.41505077481269836, 0.2992843985557556, -0.048936035484075546, -0.07614586502313614, -0.8649604916572571, -0.6059606075286865, 0.12206126749515533, -0.2632630467414856, 0.39735674858...
I know on client side (javascript) you can use windows.location.hash but could not find anyway to access from the server side. I'm using asp.net. We had a situation where we needed to persist the URL hash across ASP.Net post backs. As the browser does not send the hash to the server by default, the only way to do it is...
[ 0.46551045775413513, 0.13526567816734314, 0.39200127124786377, -0.1417921483516693, -0.13229085505008698, -0.310944139957428, 0.20177310705184937, 0.1518050730228424, -0.05363532528281212, -1.018196940422058, 0.06230020895600319, 0.260986328125, -0.01814466156065464, 0.4097692370414734, ...
you can use this value if you need to do something with it. You can even change it if you need to. 3. On page load **on the client**, check the value of this this hidden field. You will want to find it by the DIV it is contained in as the auto-generated ID won't be known. *Yes, you could do some trickery here with .Cli...
[ 0.3678615689277649, -0.1061452329158783, 0.3994342088699341, 0.005266936030238867, -0.3451700508594513, -0.43564996123313904, 0.37060290575027466, 0.07691394537687302, -0.11161461472511292, -0.8867892026901245, -0.11100070923566818, 0.7158058285713196, -0.32409656047821045, -0.039030551910...
has a valid value, set that as the URL hash (`window.location.hash again`) and/or perform other actions. We used jQuery to simplify the selecting of the field, etc ... all in all it ends up being a few jQuery calls, one to save the value, and another to restore it. **Before submit:** ``` $("form").submit(function() ...
[ -0.033034373074769974, 0.026950808241963387, 0.7822620868682861, 0.05686343461275101, 0.006637207698076963, -0.3117322027683258, 0.241758331656456, -0.4486364424228668, -0.13452360033988953, -0.8884518146514893, -0.5509307980537415, 0.6168266534805298, -0.031458232551813126, 0.096880659461...
I have a MySQL table consisting of: ``` CREATE TABLE `url_list` ( `id` int(10) unsigned NOT NULL auto_increment, `crc32` int(10) unsigned NOT NULL, `url` varchar(512) NOT NULL, PRIMARY KEY (`id`), KEY `crc32` (`crc32`) ); ``` When inserting data into a related table I need to lookup the primary key from t...
[ -0.16577878594398499, 0.5638102889060974, 0.39582157135009766, 0.04843650758266449, 0.09139178693294525, 0.06966622918844223, -0.1590048372745514, -0.21369342505931854, -0.053629208356142044, -0.7007889151573181, -0.0671532154083252, 0.37188297510147095, -0.15151387453079224, 0.13345813751...
or ON `DUPLICATE KEY` either requires me to put a unique on the huge varchar, or don't take advantage of my index. How can I "SELECT id else INSERT", whilst preserving the lookup speed for the 80-90% of hits that are already in the table? I would recommend ditching the `id` column and the `crc32` because they're not n...
[ 0.08176494389772415, 0.33288151025772095, 0.19683974981307983, 0.13667921721935272, -0.05845460295677185, -0.08709972351789474, -0.03748667612671852, -0.24724583327770233, -0.41867876052856445, -0.33418989181518555, -0.22035640478134155, 0.6633532643318176, -0.25556451082229614, 0.46753326...
VARCHAR(512) NOT NULL ); DELIM !! CREATE TRIGGER `url_ins` BEFORE INSERT ON `url_list` FOR EACH ROW BEGIN SET NEW.`url_hash` = UNHEX( MD5( NEW.`url` ) ); END!! ``` Then you can use `INSERT..ON DUPLICATE KEY UPDATE` because unlike `crc32`, the hash should have a very low chance of collision. **edit:** See <http://...
[ 0.08209414780139923, 0.08029094338417053, 0.37070944905281067, -0.16071602702140808, -0.15918084979057312, -0.19111914932727814, 0.46784278750419617, -0.1579134315252304, -0.42556771636009216, -0.464516282081604, -0.4341540038585663, 0.6035316586494446, 0.0371612124145031, 0.51005297899246...
I'm wondering if I should add an SSL layer between my server and client. I'm not handling any confidential data, but there is a very small chance someone might want to hack transmissions in order to gain intelligence (this is a game by the way). Now the amounts of data to be processed are considerable when compared to ...
[ 0.4661903381347656, 0.08791533857584, 0.2000884860754013, 0.1507841795682907, -0.030298667028546333, -0.3760579228401184, 0.2050778716802597, 0.37492483854293823, -0.3078864514827728, -0.6765539050102234, 0.19247914850711823, 0.5056856274604797, -0.023266907781362534, 0.07522299885749817, ...
If you have information that you feel is valuable, start with SSL (a relatively easy security solution to try out). Once you have things working, benchmark the system with and without. If you feel that the performance hit is worth spending time on to try and optimize away, do that. If not, you're done!
[ 0.4085448682308197, -0.10798143595457077, -0.23525740206241608, 0.39491337537765503, 0.17489512264728546, -0.6928160786628723, 0.33995118737220764, -0.06148197129368782, -0.12119296193122864, -0.6953632235527039, -0.2335090935230255, 0.8792882561683655, 0.24095606803894043, -0.144146040081...
I am trying to see if Reg-Free COM is something we can use in our web application to ease deployment of legacy COM components. However, before I get onto looking into things like using it for Interop situations, I can't get a simple test to work. Here's what I have done :- 1) Create a new VB ActiveX DLL project. Left ...
[ 0.2927626073360443, -0.17052556574344635, 0.589829683303833, 0.03462650626897812, 0.017274996265769005, -0.12316275388002396, -0.046224549412727356, 0.15861807763576508, -0.10768232494592667, -0.7422546744346619, 0.03859318047761917, 0.8163146376609802, -0.34953123331069946, 0.237680748105...
to my COM DLL. 3) Turned on "Isolated" for the reference 4) Call my SayHello method from the c# console app - all works. 5) Manually un-register the COM dll with regsvr32 /u 6) Try running the console app again. The app fails with a COM error because it can't find the COM registration information. I can con...
[ 0.1246509701013565, 0.13975875079631805, 0.7077658176422119, -0.11495648324489594, 0.11706419289112091, 0.2566200792789459, 0.1498621255159378, -0.10593292117118835, -0.05601285770535469, -0.7602719664573669, -0.08107808977365494, 0.8328323364257812, -0.29985472559928894, 0.025673210620880...
type="win32" /> <file name="TestProject.dll" asmv2:size="20480"> <hash xmlns="urn:schemas-microsoft-com:asm.v2"> <dsig:Transforms> <dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" /> </dsig:Transforms> <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/x...
[ 0.15393133461475372, 0.059555284678936005, -0.06920962780714035, 0.20902356505393982, -0.10223548114299774, 0.05534208565950394, 0.428860604763031, -0.6811127662658691, 0.146657332777977, -0.49998724460601807, -0.24263733625411987, 0.5014445781707764, -0.15294697880744934, -0.0297077167779...
.dll in your project and your application will use the copy of the .dll included in your project. To see a working Example of this look here: <http://archive.msdn.microsoft.com/SEHE> The .dll in question will need to be registered on the system where you build your application for this to work properly.
[ 0.559438943862915, -0.06753025203943253, 0.1507328897714615, 0.21109865605831146, 0.0030260495841503143, -0.5376784801483154, 0.13306336104869843, 0.11382533609867096, -0.23793670535087585, -0.8286681771278381, -0.321731299161911, 0.07881708443164825, -0.09311426430940628, 0.20275449752807...
I can create a literal long by appending an L to the value; why can't I create a literal short or byte in some similar way? Why do I need to use an int literal with a cast? And if the answer is "Because there was no short literal in C", then why are there no short literals in C? This doesn't actually affect my life i...
[ 0.5520782470703125, 0.08893247693777084, 0.08208150416612625, -0.057558998465538025, -0.17380663752555847, -0.0826936587691307, 0.4454152286052704, 0.15950188040733337, -0.1647016704082489, -0.39720460772514343, 0.1394873857498169, 0.1504637748003006, 0.03954556956887245, 0.218736112117767...
Someone at some point made a design decision to make it possible to enter literals for some of the primitive types, but not for all of them. Why? In C, `int` at least was meant to have the "natural" word size of the CPU and `long` was probably meant to be the "larger natural" word size (not sure in that last part, but ...
[ 0.10512281954288483, 0.23233826458454132, -0.061979733407497406, 0.028950918465852737, -0.12396667897701263, 0.03077908419072628, 0.35186687111854553, 0.20935490727424622, -0.046241723001003265, -0.5265236496925354, 0.1437464952468872, 0.5465037226676941, -0.35073569416999817, -0.190679997...
types `byte` and `short` would have to be padded to an `int` anyway before being used. If that's the case, you can as well have a cast.
[ 0.35158732533454895, -0.07129079848527908, -0.017083052545785904, 0.024278266355395317, 0.03244822844862938, 0.01761377789080143, -0.10258650034666061, -0.08975931257009506, -0.1332373321056366, -0.13932226598262787, -0.17031998932361603, 0.37524524331092834, -0.22453463077545166, -0.10751...
How can we write an update sql statement that would update records and the 'set' value changes every time? For example: If we have records like this ``` SomeNumber SomeV CurCode WhatCodeShouldBe 200802754 432 B08 B09 200802754 432 B08 B09 200802754 432 B08 B09 200808388 714 64B C00 200804119 270 64B C00 ``` I wish ...
[ 0.15993818640708923, 0.14182056486606598, 0.6404631733894348, 0.012029845267534256, -0.07646925747394562, -0.2725645899772644, 0.226287841796875, -0.1280907392501831, -0.24174612760543823, -0.5643002986907959, 0.13980981707572937, 0.4879816174507141, -0.17089778184890747, 0.168535247445106...
Is there some equivalent of "friend" or "internal" in php? If not, is there any pattern to follow to achieve this behavior? **Edit:** Sorry, but standard Php isn't what I'm looking for. I'm looking for something along the lines of what ringmaster did. I have classes which are doing C-style system calls on the back e...
[ 0.34685301780700684, 0.16510294377803802, 0.05638299882411957, -0.05622116103768349, -0.30685290694236755, -0.1892467737197876, 0.4319920241832733, 0.08202110975980759, -0.26267746090888977, -0.3283478319644928, 0.22903622686862946, 0.47797513008117676, -0.3308384418487549, 0.1667485982179...
and the system would fall apart. PHP doesn't support any friend-like declarations. It's possible to simulate this using the PHP5 \_\_get and \_\_set methods and inspecting a backtrace for only the allowed friend classes, although the code to do it is kind of clumsy. There's some [sample code](http://bugs.php.net/bug.p...
[ -0.08833332359790802, 0.08724218606948853, 0.29167383909225464, -0.08605530858039856, 0.23722510039806366, -0.15006431937217712, 0.4426262080669403, -0.1696702539920807, -0.2752210795879364, -0.5053519010543823, -0.004594509955495596, 0.35977989435195923, -0.3482557535171509, 0.19407381117...
return $this->$key; } // normal __get() code here trigger_error('Cannot access private property ' . __CLASS__ . '::$' . $key, E_USER_ERROR); } public function __set($key, $value) { $trace = debug_backtrace(); if(isset($trace[1]['class']) && in_array($trace[1]['clas...
[ -0.16171884536743164, -0.3044321537017822, 0.07593198865652084, -0.22088420391082764, 0.6464763879776001, -0.25832414627075195, 0.5389770269393921, -0.18832992017269135, -0.014985404908657074, -0.421863317489624, -0.522375762462616, 0.6172711849212646, -0.454379677772522, -0.05184911936521...