text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
class. Based on the user in the session, the correct country/language implementation is used when doing a call. Transaction management is nearly transparent, rollback on runtime exceptions. We use unchecked exceptions as much as possible. We used to do checked exceptions, but with the introduction of Spring I see the ...
[ 0.03910400718450546, -0.3169613480567932, -0.04268220439553261, 0.4211323857307434, -0.007109103724360466, -0.4113534688949585, 0.1859893649816513, 0.261758416891098, -0.20294378697872162, -0.44412508606910706, -0.2098778933286667, 0.2728627622127533, -0.09535741060972214, 0.13627965748310...
I started with [jetlang](http://code.google.com/p/jetlang/) and the basic samples are pretty clear. What I didn't found is a good sample for using the PoolFiber. Anybody played around with that already? I read also the retlang samples but it seems little bit different there. Thanks for sharing your thoughts! Okami Us...
[ 0.1988467425107956, -0.021815616637468338, 0.4646414518356323, -0.04256219416856766, -0.26564881205558777, -0.14448417723178864, -0.09862007200717926, -0.3741225302219391, -0.22140707075595856, -0.8755335807800293, 0.20951507985591888, 0.5921936631202698, -0.4025079905986786, -0.1266538798...
I have an SSIS package that needs to lookup two different types of excel files, type A and type B and load the data within to two different staging tables, tableA and tableB. The formats of these excel sheets are different and they match their respective tables. I have thought of putting typeA.xls and typeB.xls in two...
[ 0.33687862753868103, -0.04058029130101204, 0.3240091800689697, 0.03915855288505554, -0.12511292099952698, -0.03965632617473602, 0.03604654222726822, -0.17928145825862885, -0.10543330758810043, -1.0574703216552734, 0.014625522308051586, 0.2710827589035034, -0.32547107338905334, -0.021390680...
file and load it ignoring others and then postfix the file name with '-loaded' (typeAxxxxxx-loaded.xls). The "-loaded" in the filename is how I plan to differentiate between the already loaded files and the ones yet to be loaded. I need advice on: a) How to check that configured folder for the latest file ie. without...
[ 0.5788898468017578, 0.09797386825084686, 0.3620688021183014, 0.07603577524423599, -0.09835447371006012, -0.2350488156080246, -0.06028631329536438, 0.08655820041894913, -0.11071023344993591, -0.6217637062072754, -0.03195147588849068, 0.6112207174301147, -0.3449419140815735, -0.0535030551254...
it might require several complex string expressions. E.g. create a ForEach loop over .xls files, inside the loop add an empty script task, then a data flow to load this file. Connect them with a precedence constraint and make it conditional: precedence constraint expression will the check if file name does not end wi...
[ -0.04838826507329941, -0.325547456741333, 0.1994413435459137, 0.0426526740193367, -0.23868504166603088, 0.13792738318443298, 0.017343368381261826, -0.20775021612644196, -0.23796628415584564, -0.6874831914901733, -0.11268354952335358, 0.26225942373275757, -0.24786952137947083, -0.0258953887...
new unprocessed files, and Loaded for the files you've processed, and just move the .xls to this folder after processing without renaming. This will avoid the first conditional expression (and dummy script task), and simplify the configuration of File System task.
[ 0.12227284908294678, -0.12154296040534973, 0.27651911973953247, -0.009504349902272224, 0.13832680881023407, -0.13018183410167694, 0.014481709338724613, 0.01957940310239792, -0.22721438109874725, -0.8661485910415649, -0.4097173810005188, 0.5079895257949829, -0.287845253944397, -0.0239480007...
Is there any reasonable method to allow users of a webapp to download large files? I'm looking for something other than the browser's built-in download dialog - the requirements are that the user initiates the download from the browser and then some other application takes over, downloads the file in background and doe...
[ 0.3414795398712158, -0.2109375298023224, 0.4074609875679016, 0.3667046129703522, 0.06928087025880814, -0.2793779671192169, -0.08912084251642227, 0.1714201122522354, -0.46493396162986755, -0.45623791217803955, -0.09960358589887619, 0.7376877069473267, -0.04606359452009201, 0.223575890064239...
and will still run after the browser is closed. Not a perfect match, but meets most of your demands.
[ 0.3972179889678955, -0.09612373262643814, 0.5025926828384399, 0.275232195854187, 0.2480318695306778, -0.06949251890182495, 0.12204398214817047, 0.1842021644115448, 0.14417599141597748, -0.46261754631996155, -0.052060190588235855, 0.25593042373657227, 0.11272113770246506, 0.1212558895349502...
I need to get authentication credentials from the users within a Windows script but the classic "first Google result" approach: ``` SET /P USR=Username: SET /P PWD=Password: ``` is less than satisfying, so I was wondering if there's let's say an "equivalent" to **HTML's input type="password"**? Any comment would ...
[ 0.18185187876224518, 0.22949928045272827, 0.44354143738746643, 0.037852104753255844, -0.3507549464702606, -0.07899726182222366, 0.5799349546432495, -0.501350998878479, 0.06021906062960625, -0.6688005328178406, -0.054717764258384705, 0.45854082703590393, -0.11944235861301422, -0.38940787315...
Item #15 echo.|set /p="Password: " :: Run the script with Microsoft Windows Script Host Version 5.6 for /f "tokens=* delims=" %%a in ('cscript //nologo "%vbs_%"') do set MyPass1=%%a :: ::echo. echo.|set /p="Retype : " for /f "tokens=* delims=" %%a in ('cscript //nologo "%vbs_%"') do set ...
[ -0.04429170489311218, 0.062441304326057434, 0.6500017046928406, -0.3021714985370636, -0.35683998465538025, 0.404607355594635, 0.738783597946167, -0.4746965765953064, -0.149705708026886, -0.5801340937614441, -0.25103163719177246, 0.3983892798423767, -0.16368193924427032, -0.2248991429805755...
the result echo. if "%MyPass1%"=="%MyPass2%" ( echo The entered password was %MyPass1% ) else ( echo No match) endlocal & goto :EOF ' 'The Visual Basic Script Set WshPass = WScript.CreateObject("ScriptPW.Password") 'VBS Password=WshPass.GetPassWord() 'VBS WScript.Echo P...
[ -0.1300395429134369, -0.0022715236991643906, 0.5380903482437134, -0.41486668586730957, -0.15239928662776947, 0.1087520569562912, 0.7815629839897156, -0.8340847492218018, 0.1500527560710907, -0.48008430004119873, -0.20819133520126343, 0.5197513103485107, -0.21986229717731476, -0.20326077938...
I dont know if I'm right, but allmost everytime I read about obfuscation and tools that handle it, then its about C#, Java, Javascript and all other languages than VB. As I can see its equal important for me as a VB-developer to *protect* my code as an C#-developer. Have I missed something? Please dont flame me if it...
[ 0.7288520932197571, 0.245574951171875, -0.04237569496035576, -0.012582754716277122, -0.48802053928375244, -0.4387301504611969, 0.11358556896448135, 0.03634214028716087, -0.08192633837461472, -0.5826093554496765, 0.16771382093429565, 0.5712612867355347, -0.25620123744010925, -0.109505757689...
it will work with both of them.
[ 0.42650678753852844, 0.14920519292354584, 0.34766721725463867, 0.21780315041542053, 0.30718761682510376, 0.16306978464126587, 0.14792779088020325, -0.2651357054710388, 0.22542846202850342, -0.7363172769546509, 0.1835949420928955, 0.5492944717407227, 0.30127501487731934, -0.0539707355201244...
I did some googling to try to answer this question but even after that I'm not quite clear about something. Is it possible to create a console app from VB6? I've got a VB6 app that doesn't put up a window. I always assumed that it was a console app. However, I want to be able to use the Windows API SetConsoleCtrlHand...
[ 0.4567504823207855, 0.29823145270347595, 0.3811758756637573, 0.12838327884674072, -0.032220397144556046, -0.09976089745759964, 0.24925905466079712, 0.04723786935210228, -0.2700929641723633, -0.5492342114448547, -0.056734848767519, 0.5823023319244385, -0.34562093019485474, 0.387949347496032...
and therefore this would not work. So is it possible to create a console app that Windows will recognize as a console app from VB6? Platform: Windows XP SP2 Development Platform: VB6 Yes. It's also possible to create totally headless applications (which I've done a few times in the past). [This link](http://www.tek-t...
[ 0.363700807094574, -0.023569874465465546, 0.5770242810249329, 0.3232100009918213, 0.27772393822669983, -0.1265372484922409, 0.027172435075044632, -0.08181347697973251, -0.1768295019865036, -0.09211516380310059, -0.11863522231578827, 0.5855662822723389, -0.25082018971443176, -0.165121302008...
I am trying to use some AOP in my Python programming, but I do not have any experience of the various libraries that exist. So my question are: > What AOP support exists for Python? And what are the advantages of the differents libraries between them? --- ### Edit I've found some, but I don't know how they compar...
[ 0.2783849537372589, 0.13797631859779358, 0.12280286103487015, 0.12586309015750885, -0.28978025913238525, 0.22509492933750153, -0.016746222972869873, -0.09670139104127884, -0.4045470952987671, -0.6785783767700195, 0.10917861759662628, 0.6131207942962646, -0.07723957300186157, -0.27860814332...
it at runtime, for example changing the way local taxes are applied (by country, or state, or city, etc.) without having to overload the full stack. Edit: I no longer maintain pytilities and it has been unmaintained for years. You may want to consider one of the other answers instead or this [list on Wikipedia](https:/...
[ -0.027818739414215088, -0.48592105507850647, 0.6597669720649719, 0.14666973054409027, -0.29689455032348633, 0.16765835881233215, -0.058110855519771576, -0.19469726085662842, -0.5282573699951172, -0.5964069366455078, -0.12693125009536743, 0.5364511013031006, 0.05030464008450508, -0.14659513...
by using an aspect * apply advice to all attributes of an instance/class * ... It also has other goodies such as some special descriptors (see the documentation)
[ 0.3029678165912628, 0.15814490616321564, -0.08609580993652344, 0.08906161040067673, 0.043340813368558884, 0.0004473188309930265, 0.4840206503868103, 0.07873803377151489, -0.11504478752613068, -0.5114269852638245, -0.33467525243759155, 0.7548425197601318, -0.05251270532608032, -0.3086068928...
I need to cut out and save/use part of a string in C#. I figure the best way to do this is by using Regex. My string looks like this: `"changed from 1 to 10"`. I need a way to cut out the two numbers and use them elsewhere. What's a good way to do this? Error checking left as an exercise... ``` Regex regex ...
[ 0.1091083213686943, -0.02728358469903469, 0.3072487413883209, -0.24757513403892517, 0.19948261976242065, 0.13964924216270447, 0.12229959666728973, -0.08466087281703949, -0.06707847118377686, -0.6410216093063354, -0.05019071325659752, 0.5710524916648865, -0.40908315777778625, 0.177801281213...
= int.Parse( matches[0].Value ); int num2 = int.Parse( matches[1].Value ); ```
[ -0.29953786730766296, 0.1845192164182663, -0.12013064324855804, -0.43500375747680664, 0.08218980580568314, -0.005272245965898037, 0.23681139945983887, -0.2688155174255371, 0.0007697393884882331, -0.35796552896499634, -0.31290170550346375, 0.3820056617259979, -0.3251482844352722, 0.14320203...
I am trying to get intellisense in VS2008 in a js file, foo.js, from another js library/file I've written but cannot figure out the reference path ?syntax?/?string? The library is in a file called common.js which is in the same folder as foo.js I'm working on. Here's the paths I've tried... ``` /// <reference path="...
[ -0.017459126189351082, 0.050376322120428085, 0.40623658895492554, 0.0152349304407835, 0.2957272529602051, -0.23540544509887695, 0.47273948788642883, -0.07104327529668808, 0.11272283643484116, -0.8980815410614014, -0.1593046486377716, 0.5111196041107178, -0.15918152034282684, -0.18350552022...
web project. Then drag "common.js" from the solution explorer into the editor window for the file you want to reference it from.
[ 0.2864355742931366, -0.03751054033637047, 0.1439596563577652, 0.11625856161117554, 0.11010522395372391, -0.38601967692375183, 0.2706614136695862, 0.035101234912872314, -0.015250708907842636, -0.9375782608985901, -0.2560137212276459, 0.102177195250988, -0.2450968623161316, 0.314397841691970...
I have an ASP.net page. When I am closing the webpage I need to clear the session variables. How to to handle this I need to maintain the timeout to 20 minutes. If he closes and login for any number of times in the 20 minutes timed out time Is there any possiblity for clearing the ASP.net session id [EDIT] As others ...
[ 0.32353565096855164, 0.024851493537425995, 0.49726346135139465, -0.0324956476688385, -0.10732201486825943, -0.32063737511634827, 0.5796692967414856, -0.00944164115935564, -0.3097887933254242, -0.9194196462631226, -0.13223066926002502, 0.35351380705833435, -0.0479731522500515, 0.05084145441...
back to a sign out page. ``` function CloseSession( ) { location.href = 'SignOut.aspx'; } window.onbeforeunload = CloseSession; ``` You could also do it via AJAX. The SignOut.aspx page (or whatever platform you are using) should abandon the user's session.
[ 0.1216045394539833, 0.25548768043518066, 0.48473960161209106, -0.357776015996933, 0.20401903986930847, -0.14983214437961578, 0.433010995388031, 0.15691062808036804, -0.12270785123109818, -0.7321609854698181, -0.6159829497337341, 0.331819087266922, -0.27373164892196655, -0.01377652864903211...
What number would you give someone who wants a concrete target number for API code coverage? UPDATE: To clarify, statement/line code coverage. I realize concrete numbers don't make much sense, but this is for the situation where you tell people that concrete numbers don't make much sense and they still insist on getti...
[ 0.47477734088897705, -0.05935606732964516, -0.03633272647857666, 0.13723045587539673, -0.0979972779750824, 0.00466216541826725, 0.16113564372062683, -0.1684010773897171, -0.2118513435125351, -0.4073634147644043, -0.10149986296892166, 0.510478675365448, -0.29313939809799194, -0.150345832109...
that function to accept an arbitrary number of arguments and/or keyword arguments. For example, if you wanted to write a function that returned the sum of all its arguments, no matter how many you supply, you could write it like this: ``` def my_sum(*args): return sum(args) ``` It’s probably more commonly used ...
[ 0.11899019032716751, 0.008866192772984505, 0.1970852017402649, -0.3602053225040436, -0.5538202524185181, 0.18326081335544586, 0.15404045581817627, -0.0766521543264389, -0.24151068925857544, 0.007039153482764959, -0.1562184989452362, 0.5974847078323364, -0.4412330985069275, 0.08153983950614...
in-depth look](http://docs.python.org/2/tutorial/controlflow.html#more-on-defining-functions).
[ -0.15368489921092987, -0.3773798942565918, -0.010301724076271057, -0.04848191514611244, 0.013664170168340206, -0.09414882212877274, 0.161957249045372, -0.18063020706176758, -0.13518363237380981, -0.27603429555892944, -0.23342365026474, 0.48306041955947876, -0.2373867779970169, -0.474748671...
This is a question not really about "programming" (is not specific to any language or database), but more of design and architecture. It's also a question of the type "What the best way to do X". I hope does no cause to much "religious" controversy. In the past I have developed systems that in one way or another, keep...
[ 0.5131343007087708, 0.4192054271697998, -0.08495673537254333, 0.24766409397125244, -0.11779971420764923, -0.021735159680247307, 0.23107552528381348, 0.039415955543518066, -0.1266804337501526, -0.39834219217300415, 0.03583576902747154, 0.2109108567237854, -0.1794523298740387, 0.189611509442...
is calculated totaling inventory received - total of inventory sold. This has resulted in almost no discrepancies in inventory because of software. The tables are properly indexed and the performance is good. There is a archiving process in case the amount of record start to affect performance. Now, few years ago I st...
[ 0.34861570596694946, 0.11574248969554901, 0.22854170203208923, 0.29911890625953674, 0.24586820602416992, 0.16643260419368744, -0.28922802209854126, -0.3305739760398865, -0.45485633611679077, -0.32422274351119995, 0.45490336418151855, 0.5776838660240173, 0.4123634397983551, 0.24384582042694...
resulted in discrepancies. In my opinion this is not the right approach, but the previous programmers here swear by it. I would like to know if there is a consensus on what's the right way is to design such system. Also what resources are available, printed or online, to seek guidance on this. Thanks I have seen both...
[ 0.44824928045272827, 0.1444852501153946, -0.07439564168453217, 0.20263142883777618, 0.061471857130527496, 0.16807198524475098, -0.4583302140235901, 0.11059845238924026, -0.671776294708252, -0.31155502796173096, 0.35961854457855225, 0.3573278486728668, 0.1223481297492981, 0.3243801593780517...
you can end up with problems. The last system I wrote tracks stock by storing each transaction as a record with a positive or negative quantity. I have found it works very well.
[ 0.37841513752937317, 0.290529727935791, -0.07516301423311234, 0.15357531607151031, 0.37800076603889465, 0.07271742820739746, -0.37497666478157043, 0.035827115178108215, -0.2973644733428955, -0.21006755530834198, 0.46498462557792664, 0.7428548336029053, -0.10056460648775101, 0.0870589837431...
We have a system that is concurrently inserted a large amount of data from multiple stations while also exposing a data querying interface. The schema looks something like this (sorry about the poor formatting): ``` [SyncTable] SyncID StationID MeasuringTime [DataTypeTable] TypeID TypeName [DataTable] Sy...
[ 0.241117462515831, 0.010707986541092396, 0.36736515164375305, 0.2083902806043625, 0.31970682740211487, 0.04783523455262184, -0.1633467972278595, -0.32162195444107056, 0.10254240036010742, -0.5918974876403809, 0.17603813111782074, 0.21289199590682983, -0.5045030117034912, 0.3410466313362121...
( for a given station, measuringtime and datatype) ``` SELECT SyncID FROM SyncTable WHERE StationID = @StationID AND MeasuringTime = @MeasuringTime SELECT DataColumns FROM DataTable WHERE SyncID = @SyncIDJustSelected AND DataTypeID = @TypeID ``` My q...
[ 0.12252060323953629, -0.09148145467042923, 0.3204737901687622, 0.3732578754425049, 0.24803410470485687, -0.03197677060961723, -0.07666181772947311, -0.44287317991256714, 0.34326398372650146, -0.693506121635437, 0.06720776110887527, 0.022847319021821022, -0.32304975390434265, 0.307907581329...
combine the transaction level on the inserts and NOLOCK/READPAST hints on the queries so that: 1. We maximize the concurrency in our system while favoring the inserts (we need to store a lot of data, something as high as 2000+ records a second) 2. Queries only return data from "commited" synchronization (we don't want...
[ 0.07797175645828247, 0.1978890299797058, 0.19583119451999664, 0.4479866623878479, 0.018132010474801064, -0.178934708237648, 0.14117431640625, -0.5039418339729309, -0.16075406968593597, -0.5871737599372864, 0.10045389086008072, 0.5009632706642151, -0.2557031810283661, -0.0705205425620079, ...
and may require a high transaction isolation level but I am interested in all tricks and optimizations to achieve high responsiveness on both inserts and selects. I'll be happy to elaborate if more details are needed to flush out more tweaks and tricks. UPDATE: Just adding a bit more information for future replies. We...
[ 0.07277476042509079, -0.0742129236459732, 0.31907421350479126, 0.07956527173519135, -0.2173609882593155, -0.2121894657611847, 0.2817680239677429, -0.04595693200826645, -0.1706722527742386, -0.39797458052635193, 0.2745380103588104, 0.5276533961296082, 0.08885258436203003, -0.091228745877742...
you be using? If you have a large striped RAID array, writes should perform well. If you can estimate your required reads and writes per second, you can plug those numbers into a formula and see if your disk subsystem will keep up. Maybe you have no control over hardware... 2. Wouldn't you wrap the inserts in a transac...
[ 0.5764392614364624, -0.09808501601219177, -0.03033914417028427, 0.18700508773326874, 0.09412042796611786, -0.30636441707611084, 0.09686922281980515, -0.13391542434692383, -0.18219728767871857, -0.81238853931427, 0.046186622232198715, 0.7593870162963867, -0.288899302482605, -0.2727493345737...
simulates various patterns of SQL Server 2000 I/O behavior to ensure rudimentary I/O safety. The SQLIOStress utility can be downloaded from the Microsoft Web site. See the following article. • How to Use the SQLIOStress Utility to Stress a Disk Subsystem such as SQL Server <http://support.microsoft.com/default.aspx?s...
[ 0.059569522738456726, 0.0905294418334961, -0.11487795412540436, 0.26672232151031494, 0.07530283182859421, 0.027950366958975792, 0.23708395659923553, 0.050609782338142395, -0.014977749437093735, -0.5077432990074158, 0.2888152301311493, 0.5483766198158264, -0.20258115231990814, -0.0945951491...
The example below throws an InvalidOperationException, "Collection was modified; enumeration operation may not execute." when executing the code. ``` var urls = new List<string>(); urls.Add("http://www.google.com"); foreach (string url in urls) { // Get all links from the url List<string> newUrls = GetLinks(...
[ 0.29099562764167786, 0.03551901504397392, 0.5257006287574768, -0.15447799861431122, 0.11642947793006897, -0.11343349516391754, 0.5466684699058533, -0.17883841693401337, -0.2602566182613373, -0.6124517917633057, -0.45156601071357727, 0.40527549386024475, -0.618388831615448, 0.37822639942169...
// Get all links from the url List<string> newUrls = GetLinks(url); foreach (string newUrl in newUrls) { queue.Enqueue(newUrl); } } ``` It's slightly ugly due to there not being an `AddRange` method in `Queue<T>` but I think it's basically what you want.
[ 0.180074542760849, 0.03792688250541687, 0.45508015155792236, -0.3948442339897156, 0.12094304710626602, -0.14839549362659454, 0.4794439375400543, 0.04792199656367302, -0.16854511201381683, -0.744797945022583, 0.020674079656600952, 0.2564602494239807, -0.4848439693450928, 0.4763656258583069,...
Modern browsers have multi-tab interface, but JavaScript function `window.showModalDialog()` creates a modal dialog that blocks *all* of the tabs. I'd like to know if there is a way to create a modal dialog that blocks only the tab it's been created in? You could use one of the more 'Ajax-like' modal dialogs, which a...
[ 0.15545207262039185, -0.020368000492453575, 0.4653213322162628, -0.07029905170202255, -0.46457523107528687, -0.3887033760547638, 0.28959256410598755, 0.2551738917827606, -0.24417772889137268, -0.9561868906021118, -0.30533137917518616, 0.3909359872341156, -0.45595788955688477, -0.0495406799...
What are the steps to get Team Foundation Server running unit tests when a given build runs? What are the caveats / pitfalls / workarounds a dev or sysadmin should be aware of when setting up a TFS server to do this for the first time? What are common troubleshooting steps for unit test problems during builds? it d...
[ 0.31141340732574463, -0.04455041512846947, 0.13848835229873657, -0.018968865275382996, -0.09800294786691666, -0.31823110580444336, 0.3230213522911072, -0.48677679896354675, -0.138998880982399, -0.7082634568214417, 0.21629679203033447, 0.3500511050224304, 0.10989142954349518, -0.14603374898...
are a couple of ways to tell Team Build to run tests for your build. 1. Unit tests can be run from a defined Test List within the Solution being built. This list is referenced by the build definition and all tests within the chosen list(s) are executed. More info [here](http://msdn.microsoft.com/en-us/library/ms182461...
[ 0.7211034297943115, -0.2412077635526657, -0.1768651306629181, 0.1981928050518036, -0.02150293067097664, -0.3385717272758484, 0.5492894649505615, -0.3753893971443176, 0.13560518622398376, -0.6630855202674866, -0.17755453288555145, 0.7051878571510315, 0.012109572067856789, -0.173798039555549...
enable code coverage for your test configuration, you must add the following to your build definition file to enable it. ``` <RunConfigFile>$(SolutionRoot)\TestRunConfig.testrunconfig</RunConfigFile> ``` See my previous question on this for more info [here](https://stackoverflow.com/questions/80486/how-do-you-turn-o...
[ 0.5178236961364746, 0.05206475406885147, 0.2744594216346741, -0.1766299605369568, 0.23573139309883118, -0.28896063566207886, 0.37764298915863037, -0.46209490299224854, -0.13206399977207184, -0.980768084526062, -0.38925665616989136, 0.6334832906723022, -0.2229064702987671, -0.15213236212730...
Vista has introduced a new API to display a text in the list view control when it doesn't have any items. As the MSDN library states, I should process the `LVN_GETEMPTYMARKUP` notification. In the inherited `ListView` control the `WndProc` method is overriden: ``` protected override void WndProc(ref Message m) { tr...
[ 0.04384470358490944, -0.12775182723999023, 0.8897607326507568, -0.2847816050052643, 0.31000712513923645, -0.16064870357513428, 0.5793464779853821, -0.5538623332977295, -0.4087657928466797, -0.7439388036727905, -0.34508365392684937, 0.8652328252792358, -0.3730655312538147, 0.041513394564390...
(NMLVEMPTYMARKUP)Marshal.PtrToStructure(m.LParam, typeof(NMLVEMPTYMARKUP)); nmlvemptymarkup.szMarkup = "The ListView is empty."; m.Result = (IntPtr)1; } } } finally { base.WndProc(ref m); } } ``` However, it doesn't work (although it doesn't throw any exception). Actually I never get...
[ -0.06709068268537521, 0.11831814050674438, 0.7447817921638489, -0.19384175539016724, -0.0015537275467067957, -0.16078290343284607, 0.45743489265441895, -0.5463687181472778, -0.3502383828163147, -0.4043854773044586, -0.10937885195016861, 0.5336095094680786, -0.20719626545906067, 0.013805425...
markup-values, call Marshal.StructureToPtr(nmlvemptymarkup, m.LParam, false) to copy the data back to the buffer pointed to by LParam.
[ -0.09201414883136749, 0.31364384293556213, 0.25201722979545593, -0.005185547284781933, 0.021287964656949043, 0.18716731667518616, -0.008510511368513107, -0.5266464352607727, -0.24520722031593323, -0.3989352285861969, -0.3529108762741089, 0.006470784079283476, -0.4725857079029083, 0.2838798...
I'm trying to switch on and off the Rotate 180 degree setting for an HP Laserjet printer (4200/ 4350) using a duplexer unit. The Business has a requirement to "print on both sides", for maximum control I'd like to be able to manipulate at print time (through print macros) whether or not duplex printing is enabled for ...
[ 0.5848305821418762, 0.07047530263662338, 0.6147497892379761, -0.17665068805217743, -0.02670041285455227, 0.18015937507152557, -0.3317725360393524, -0.29110145568847656, -0.28557589650154114, -0.4510424733161926, 0.41543465852737427, 0.7185015678405762, -0.24058762192726135, 0.2273180186748...
a blanket - enable this option on the print server for all documents/ users? Here you go: ``` declare @string varchar(100) select @string = 'sfdasadhfasjfdlsajflsadsadsdadsa' SELECT LEN(@string) - LEN(REPLACE(@string, 'd', '')) AS D_Count ```
[ 0.2807675004005432, -0.010993847623467445, 0.5450395345687866, -0.2583697438240051, -0.07308568060398102, -0.1463335007429123, 0.14563030004501343, -0.5029502511024475, -0.06154768541455269, -0.35067179799079895, -0.1618691235780716, 0.45454004406929016, -0.25336551666259766, -0.1976273506...
The following code does not compile: ``` public class GenericsTest { public static void main(String[] args) { MyList<?> list = new MyList<Object>(); Class<?> clazz = list.get(0); // Does not compile with reason // "Type mismatch: cannot convert from Object to Class" My...
[ 0.07320363074541092, -0.12370294332504272, 0.6562432646751404, -0.3072493076324463, 0.057242557406425476, -0.05588628724217415, 0.3934696614742279, -0.1722813844680786, -0.38819655776023865, -0.19026923179626465, -0.3665880262851715, 0.5463314056396484, -0.609198272228241, 0.48070079088211...
} static class MyList<T> extends ArrayList<Class<T>> { } } ``` I wanted to do this to introduce generics to old code without breaking the build. Is this a bug in both the compiler (both eclipse and javac) or am I missing something here? What other possibility exists to introduce generics to MyList? **EDIT**...
[ 0.1165916919708252, -0.04601683095097542, 0.3342289328575134, -0.08653315901756287, -0.3365890383720398, -0.1261679232120514, 0.12171941250562668, -0.16993431746959686, -0.34818965196609497, -0.5915412306785583, 0.0857725739479065, 0.4637812077999115, -0.6471934914588928, 0.351520478725433...
generic thingy in MyList as well ``` public class MyList<T> extends ArrayList<MyObject<T>> {} ``` But that does break my build. Interestingly ``` public class MyList<T> extends ArrayList<MyObject<T>> { public MyObject<T> get(int i) { return super.get(i); } } ``` will allow old code ``` MyList li...
[ 0.14084425568580627, -0.11809393763542175, 0.47201985120773315, -0.0781901553273201, -0.23608043789863586, -0.22777564823627472, 0.3668253421783447, -0.12083345651626587, -0.2658671438694, -0.5202943086624146, -0.14729812741279602, 0.40501484274864197, -0.6929766535758972, 0.51884877681732...
how generics work. ``` MyList<?> list = new MyList<Object>(); Class<String> clazz= list.get(0); ``` This code snippet does not compile because you are telling the compiler that `list` is going to hold `Class<Object>` types - and then in the next line you are expecting it to return you a `Class<String>`. The generic ...
[ 0.41948312520980835, -0.12091115862131119, 0.16385529935359955, -0.014177312143146992, -0.3488010764122009, -0.32423844933509827, 0.4572712481021881, -0.131625697016716, -0.3416304290294647, -0.487903892993927, 0.0013909380650147796, 0.3883076310157776, -0.8225312829017639, 0.2838449776172...
line without a cast. ``` MyList<String> list = new MyList<String>(); Class<String> clazz = list.get(0); ``` or ``` MyList<?> list = new MyList<Object>(); //generates a warning about an unchecked cast Class<String> clazz = (Class<String>) list.get(0); ``` --- The second code snippet does not work because when yo...
[ 0.20317403972148895, -0.4111569821834564, 0.6102282404899597, -0.2600431740283966, -0.13102667033672333, 0.17682816088199615, 0.4554142653942108, -0.156443789601326, -0.061013802886009216, -0.4008277356624603, -0.4411613643169403, 0.3716859817504883, -0.5840798020362854, 0.1346910446882248...
Lucky me, I have to work with Oracle. And packages. I have a package that a lot of different developers are touching and it's scaring me. Is it possible to put a package inside of Version Control? Is there some kind of software out there that already does this? If not, is there some kind of export procedure? Can I ju...
[ 0.6785678863525391, 0.3922615945339203, -0.10459896177053452, 0.11245188862085342, 0.11115802079439163, -0.33648157119750977, 0.19727930426597595, 0.2571181058883667, -0.24651029706001282, -0.5210573673248291, 0.31351083517074585, 0.6285691261291504, -0.11057887226343155, 0.227972999215126...
under version control. The source must be between "`CREATE OR REPLACE PACKAGE MYPACKAGE AS`" and "`END;`" followed by a single slash on a line of its own ("/"); and ditto for "PACKAGE BODY" instead of "PACKAGE". And yes, there's a way to pull the source out of Oracle. It's in a table, line by line, look up [ALL\_SOU...
[ 0.22907213866710663, 0.4004765450954437, 0.5699607133865356, -0.229782372713089, 0.14102287590503693, -0.23511958122253418, 0.1840234249830246, 0.12279675155878067, -0.13121381402015686, -0.8218048810958862, -0.36924654245376587, 0.7142056226730347, -0.20870156586170197, 0.3149110972881317...
it again into Oracle using SQL\*Plus; make sure to set "SCAN OFF".
[ 0.11840616911649704, -0.21295516192913055, 0.2790026068687439, 0.09442809224128723, 0.028585856780409813, -0.1399964839220047, 0.2080642729997635, -0.022900735959410667, -0.050999294966459274, -0.4992961287498474, -0.07718688249588013, 0.44960907101631165, -0.35398319363594055, -0.01033048...
Let's assume I have a model called "product." Let's assume that product has three fields. These fields are 'name' (type string), 'cost' (type integer), and 'is\_visible' (type bool). 1) How can I do a search query using the Rails "find" method (if there is another method, that's fine) so that I can search for all prod...
[ 0.33877032995224, -0.09034756571054459, 0.09483212232589722, 0.03829706087708473, 0.01199959684163332, 0.21508358418941498, -0.09506212919950485, -0.319674015045166, 0.3082183301448822, -0.6620860695838928, 0.22564677894115448, 0.5791347026824951, -0.28382518887519836, 0.1898168921470642, ...
way to do AND/OR queries to the database without using SQL. Thanks! You would need to use the conditions option on the find method. The conditions option can be either a Hash, Array, or String. There are lots of options for conditions, so I recommend reading the [API help](http://api.rubyonrails.org/classes/ActiveReco...
[ 0.4424896836280823, 0.02690167725086212, -0.025169122964143753, 0.1524261087179184, 0.26654690504074097, 0.13809368014335632, 0.26651859283447266, -0.13981974124908447, -0.041647981852293015, -0.9013254642486572, 0.03341164067387581, 0.6347280144691467, -0.1312301605939865, -0.123057067394...
I can understand wanting to avoid having to use a cursor due to the overhead and inconvenience, but it looks like there's some serious cursor-phobia-mania going on where people are going to great lengths to avoid having to use one. For example, one question asked how to do something obviously trivial with a cursor and...
[ -0.23504413664340973, 0.05972171947360039, 0.10711934417486191, 0.3572578430175781, -0.09460167586803436, -0.2192765772342682, -0.0014785312814638019, -0.07420840114355087, -0.43218350410461426, -0.38178059458732605, 0.06789673119783401, 0.4757510721683502, -0.37897852063179016, 0.03147517...
solution for system longevity, not to mention a tremendous effort just to avoid using a simple cursor. What is the reason for this level of insane hatred? Has some 'noted authority' issued a fatwa against cursors? Does some unspeakable evil lurk in the heart of cursors that corrupts the morals of children or something...
[ 0.10549267381429672, 0.19545352458953857, 0.18790702521800995, 0.347981721162796, 0.018140723928809166, -0.23769089579582214, 0.37057262659072876, 0.18551993370056152, -0.3670702576637268, -0.11766213178634644, -0.14326788485050201, 0.5183713436126709, -0.28952330350875854, 0.2862574160099...
way to avoid cursors like they have cooties or something, even when a cursor is a simpler and/or more efficient solution. It's the irrational hatred that baffles me, not the obvious technical efficiencies. The "overhead" with cursors is merely part of the API. Cursors are how parts of the RDBMS work under the hood. Oft...
[ 0.02521596848964691, 0.25043219327926636, 0.10682736337184906, 0.2463492900133133, -0.21847449243068695, -0.27345865964889526, 0.12013351172208786, -0.15651342272758484, -0.2336733490228653, -0.4051719605922699, -0.17763878405094147, 0.4675554931163788, -0.6027299165725708, -0.353323996067...
to process rows one at a time because there was no notion of "collection" that could be used widely. Java, C#, Python, etc., have first-class list structures to contain result sets. **The Slow Issue** In some circles, the relational joins are a mystery, and folks will write nested cursors rather than a simple join. I...
[ -0.10156414657831192, 0.05850446596741676, 0.08473589271306992, 0.1734560877084732, -0.0955820083618164, -0.004158210474997759, 0.3297652006149292, 0.13623148202896118, -0.47774964570999146, -0.640011191368103, 0.1647784262895584, 0.24136346578598022, -0.36442193388938904, -0.0287463348358...
I was the god of optimization. All I did was replace nested loops with joins. Still used cursors.] This confusion often leads to an indictment of cursors. However, it isn't the cursor, it's the misuse of the cursor that's the problem. **The Size Issue** For really epic result sets (i.e., dumping a table to a file),...
[ -0.16749469935894012, 0.35989153385162354, 0.0680764839053154, 0.31166547536849976, -0.21922990679740906, 0.07777570188045502, 0.09901858121156693, -0.0535600446164608, -0.3715774714946747, -0.5093053579330444, -0.0014537898823618889, 0.4521057903766632, -0.557990312576294, -0.144650891423...
separated from the application into a configuration file. It's not that the cursors are bad. It's that coding all those opens, closes and fetches is not value-add programming.
[ 0.18866224586963654, -0.09403393417596817, 0.012875989079475403, 0.42241910099983215, 0.2831065058708191, -0.19285006821155548, -0.0009515092824585736, 0.04445701465010643, -0.26048946380615234, -0.44278183579444885, -0.28505051136016846, 0.2202671766281128, -0.3809990882873535, -0.0121233...
I know that when you add/change/remove methods in a COM interface you're supposed to change the interface/coclass GUID but what about type libraries. When should you change the type library's GUID? Do you change it if a GUID inside the type library has changed? Or should you only change it when something that doesn't h...
[ 0.2793704569339752, 0.14358767867088318, 0.2542147934436798, 0.17915166914463043, -0.036506347358226776, -0.13548238575458527, -0.04286555200815201, -0.09332425147294998, -0.29268330335617065, -0.7988815307617188, 0.1685047447681427, 0.6612871289253235, -0.5232834815979004, 0.3469639122486...
entity from the previous version. The only way to do this is to change the GUID for every interface in the library and the GUID for the type library itself. It's also a good idea (for your own personal sanity) to change the name of the type library. Ideally you shouldn't ever change a COM interface. Instead create a n...
[ 0.06062915176153183, -0.01335931196808815, 0.5222947597503662, 0.3012956976890564, 0.0595889538526535, -0.25525203347206116, 0.173018217086792, -0.06470557302236557, -0.13761171698570251, -0.5970779061317444, 0.07131349295377731, 0.7070574164390564, -0.3931320607662201, 0.3264445960521698,...
What is a proxy object in the Inversion of Control / Aspect-Oriented sense? Any good articles on what a proxy object is ? Why you would want to use one ? And how to write one in C# ? In general, a Proxy object is an object (instance of a class) that exposes the exact same public interface as a "real class" but s...
[ 0.06816203892230988, -0.06449274718761444, -0.0034213359467685223, 0.3015257716178894, -0.23429708182811737, -0.07299817353487015, 0.25390902161598206, 0.5581186413764954, -0.13628695905208588, -0.4543497860431671, -0.24696090817451477, 0.3159884810447693, -0.38904666900634766, 0.220096141...
object) can "believe" it's talking to the "real" object, but inside the proxy, other stuff, (like logging, transactional support, etc.) is being done at the same time... Secondly, a proxy can be very cheap in comparson to the real object,. and often is used so that the real objects can be conserved (turned off or relea...
[ 0.0185494776815176, -0.10181012004613876, 0.3610023558139801, 0.5244712233543396, -0.0563119500875473, -0.0006887990166433156, 0.11865018308162689, 0.05154658108949661, -0.2978368103504181, -0.44972383975982666, -0.22704049944877625, 0.6116105318069458, -0.19948147237300873, 0.181639909744...
proxy, which goes and gets another real object just to handle the call, and then releases the real object when the call is done. As to **Inversion of Control** (IOC).. That refers to a common pattern (also referred to as Dependency Injection), where dependant objects inside of a class are "injected" into an instance ...
[ 0.012144019827246666, -0.2901717722415924, -0.32578229904174805, 0.09526172280311584, -0.09594632685184479, -0.06491179019212723, -0.05347948521375656, -0.02436189167201519, -0.10088761150836945, -0.385272741317749, -0.29821592569351196, 0.31964048743247986, -0.4886839985847473, 0.06318249...
the fact that when using this pattern, the decision as to which actual implementation is called is no longer under the control of the class making the call, but to the client of that class, when it *injects* an instance of a dependant object into the class to be used for this call. Generally the term IOC is used with ...
[ 0.2616378366947174, -0.1394713968038559, -0.3472653925418854, 0.20987284183502197, 0.028938768431544304, -0.26532241702079773, -0.11851117014884949, -0.058499775826931, -0.08073307573795319, -0.3343828320503235, -0.40402930974960327, 0.3538655638694763, -0.25300073623657227, -0.07932146638...
often, from some kind of configuration file). Generally, when you use an IOC container, you create an instance of it when the application starts, and then (by reading config data or whatever), you "register" each of the classes (types) that the IOC container will be responsible for, with a key value. The key is often t...
[ 0.3948031961917877, -0.03810170292854309, 0.002581649925559759, 0.32733842730522156, 0.2941356599330902, -0.2631295323371887, -0.04842698201537132, -0.16284403204917908, -0.1371823251247406, -0.7064055800437927, -0.5516499280929565, 0.1498679667711258, -0.16316309571266174, 0.2030621916055...
instance instead, using the abstract type/Interface as the key. The IOC container then uses reflection or dynamic loading, (or whatever), to create an instance of whatever type has been "registered" with that key. In this way, simply by changing configuration data, you can control the actual types used by the applicati...
[ 0.20056597888469696, -0.10701357573270798, -0.03617219626903534, 0.3289928734302521, -0.017546474933624268, -0.36006924510002136, -0.010798578150570393, 0.0045311967842280865, -0.13368536531925201, -0.621060311794281, -0.22343331575393677, 0.2730337381362915, -0.4251234829425812, 0.1396983...
I have a CSS class called grid which I place on my tables. I want to Zebra strip my even rows so I use the following jQuery code ``` $(".grid tr:nth-child(even)").addClass("even"); ``` This basically says "Apply the css class even to any tr tag which has a parent (at any level) with a class of grid." The problem wit...
[ -0.12122202664613724, 0.004392258822917938, 0.2534838914871216, -0.0016246963059529662, -0.13396276533603668, 0.30567532777786255, -0.22173990309238434, 0.2542419135570526, -0.16936136782169342, -0.8938446044921875, 0.21156081557273865, 0.22510820627212524, -0.13544905185699463, 0.33909469...
to only apply the even class on tr tags which are a direct descendant of the tag which has the grid class? You want to use a different selector, like the child selector: ``` $(".grid > tr:nth-child(even)").addClass("even"); ``` This limits the selection to direct children your `.grid` only.
[ -0.28121864795684814, -0.3685363829135895, 0.2086273431777954, 0.03992891311645508, -0.049790699034929276, 0.24787043035030365, -0.013393104076385498, -0.094336599111557, 0.00668815104290843, -0.5255916118621826, -0.16222523152828217, 0.4961477220058441, -0.2533596158027649, 0.048940859735...
I'm build an UserControl and I'm not sure how to handle exceptions, the Control itself is not very complicated, the User chose an image from disk so they can authorize it, I don't know exactly how the control will be used so if I use a MessageBox I might block the application, and if I just re-throw it I might crash it...
[ 0.37000876665115356, 0.3307490944862366, -0.10210222750902176, 0.7467538714408875, -0.300473690032959, -0.216183140873909, 0.36185237765312195, 0.31192299723625183, -0.14413732290267944, -0.5629968643188477, 0.08778160065412521, 0.5451886653900146, 0.11755028367042542, -0.21928736567497253...
gracefully handle the error) or an unexpected exceptional condition (your control must throw an exception as soon as possible). You might also have a look at [Design By Contract](http://www.google.com/search?q=Design+By+Contract), a methodology to declare required preconditions and guaranteed postconditions. This may ...
[ 0.23467831313610077, 0.2273528277873993, -0.14625902473926544, 0.17411395907402039, 0.24137048423290253, -0.22252842783927917, 0.3288237750530243, -0.5066846013069153, -0.23333740234375, -0.6869757175445557, -0.19590280950069427, 0.44241413474082947, 0.2800776958465576, -0.0223686359822750...
I have an object created in a host application and can access it remotely using remoting, is there any way I can test the connection to ensure it is still "alive"? Maybe an event I can use that fires if the remoting connection gets disconnected, or some property that can tell me the state of the remoting connection. Is...
[ 0.3868606686592102, 0.05393766611814499, 0.3093542754650116, 0.13330788910388947, 0.047833267599344254, -0.2385309338569641, 0.2837466895580292, -0.09564442932605743, -0.2755381464958191, -0.6529237031936646, -0.009792650118470192, 0.4038974940776825, -0.15462413430213928, 0.34221735596656...
method... If it throws a System.Net.Sockets.Exception, I have lost the connection....
[ 0.020519958809018135, -0.03742388263344765, 0.20532627403736115, 0.11160790175199509, 0.21292725205421448, -0.11312044411897659, 0.4215846359729767, -0.17853860557079315, -0.048927053809165955, -0.37882718443870544, 0.01870371215045452, 0.043841347098350525, -0.19770704209804535, 0.5949307...
What I'd like to do is produce an HTML/CSS/JS version of the following. The gridlines and other aspects are not important. It's more of a question how to do the background databars. [![alt text](https://i.stack.imgur.com/tPLAD.png)](https://i.stack.imgur.com/tPLAD.png) (source: [tech-recipes.com](http://blogs.tech-...
[ 0.4132530689239502, 0.347625195980072, 0.6068083047866821, -0.05972228944301605, -0.2344399094581604, 0.15274369716644287, 0.4192483723163605, -0.36581695079803467, -0.17631609737873077, -0.6181098818778992, 0.1239967867732048, 0.14787274599075317, -0.2664816975593567, -0.20626923441886902...
.cell .back { position: absolute; z-index: 1; background: url(bg.gif); } .cell .value { position: relative; z-index: 2; } </style> <div class="cell"> <div class="back" style="width: 50%;">&nbsp;</div> <div class="value">5</div> </div> <div class="cell"> <div class="back" style="width: 80%;">&nbsp;</div...
[ -0.08956491947174072, -0.13846483826637268, 0.536190927028656, -0.38614556193351746, -0.06347806751728058, 0.2893170714378357, 0.1399819254875183, -0.45501798391342163, -0.07548010349273682, -0.673927903175354, -0.3985224664211273, 0.4031400680541992, 0.06886202096939087, 0.256538122892379...
I can't seem to find in the SDK how to programatically sense the mute button/switch on the iPhone. When my app plays background music, it responds properly to the volume button without me having any code to follow that but, when I use the mute switch, it just keeps playing away. How do I test the position of mute? (N...
[ 0.235738605260849, 0.1468256264925003, 0.3114537000656128, 0.35495179891586304, -0.13576994836330414, -0.10737444460391998, 0.3502757251262665, -0.07798020541667938, -0.23238439857959747, -0.6182589530944824, -0.1144259050488472, 0.833598792552948, 0.14635592699050903, -0.07058418542146683...
makes it respect the mute switch // Must call this once to init session if (!gAudioSessionInited) { AudioSessionInterruptionListener inInterruptionListener = NULL; OSStatus error; if ((error = AudioSessionInitialize (NULL, NULL, inInterruptionListener, NULL))) { NSLog(@"*** Error *** error...
[ -0.16483436524868011, -0.1796882301568985, 1.1273901462554932, -0.1133006364107132, 0.4026102125644684, 0.035201720893383026, 0.5612974166870117, -0.619232714176178, 0.19927085936069489, -0.6408953070640564, -0.04675885662436485, 1.0804476737976074, -0.2316141575574875, 0.3307580053806305,...
NSLog(@"*** Error *** could not set Session property to ambient."); } ```
[ -0.19814307987689972, -0.10947929322719574, 0.03135401010513306, 0.07801873236894608, 0.12260884791612625, -0.4432547092437744, 0.3606965243816376, 0.1642649620771408, -0.22822143137454987, -0.7498018145561218, -0.10959247499704361, 0.6802523732185364, -0.27371975779533386, 0.1697637885808...
I'm trying to pass a null value for the first parameter in the code below, but MySQL complains that ``` Incorrect number of arguments for PROCEDURE myProc; expected 2, got 1 ``` When I manually call the procedure with the first argument as null, it works, but when `EmptyAsNullStartsWith(employeeNumberText.Text)` r...
[ -0.024449123069643974, 0.13947764039039612, 0.42704761028289795, -0.2080010026693344, -0.012621056288480759, 0.10315383225679398, 0.5287307500839233, -0.09667782485485077, -0.1330265998840332, -0.6398066282272339, -0.1404426544904709, 0.538862407207489, -0.3415251076221466, 0.2382867187261...
Is it safe to use MS SQL's WITH (NOLOCK) option for select statements and insert statements if you never modify a row, but only insert or delete rows? I..e you never do an UPDATE to any of the rows. If you're asking whether or not you'll get data that may no longer be accurate, then it depends on your queries. For exa...
[ 0.0881381630897522, 0.09963513910770416, 0.18239499628543854, 0.11834164708852768, 0.43180394172668457, -0.22593475878238678, 0.12196234613656998, 0.22656789422035217, -0.22076848149299622, -0.24204514920711517, -0.10861177742481232, 0.5545002222061157, -0.1702427864074707, 0.3339102566242...
or after 2008-01-01 then you may not get that new row. This can also affect queries which generate aggregates. If you are just mimicking updates through a delete/insert then you also may get an "old" version of the data.
[ -0.04365735128521919, 0.046268850564956665, 0.585754930973053, 0.35964688658714294, 0.03871999680995941, -0.07482988387346268, 0.14286302030086517, 0.14023539423942566, -0.49109968543052673, -0.5234944224357605, 0.05277300998568535, 0.3363163471221924, -0.2671506404876709, 0.38910478353500...
I have a webpage where I want the user to see a new image when they put thier mouse over a certain part of the image. I used an image map. ``` <img src="pic.jpg" usemap="#picmap" /> <map id="picmap" name="picmap"><area shape="rect" coords ="10,20,30,40" onMouseOver="mouse_on_write('mouse is on spot')" onMouseOut="mous...
[ -0.0034333530347794294, 0.05006611347198486, 0.7224254012107849, -0.19907903671264648, 0.023110728710889816, 0.12260839343070984, 0.14112970232963562, -0.5163144469261169, -0.22802001237869263, -0.9178100228309631, 0.0981554314494133, 0.7631452083587646, -0.14658339321613312, 0.00156143482...
put over the second image it takes some few seconds to appear; my temporary solution was to drastically reduce the size of the images because they were huge (at 2.5mb they switch fast now, but still not seamless). **How can I make the image switching more seamless without reduction in picture quality?** On second thou...
[ 0.32579001784324646, -0.3673843741416931, 0.5161013603210449, 0.04735273867845535, -0.23529347777366638, 0.11434274166822433, 0.05553919076919556, -0.09509922564029694, -0.4683024287223816, -1.1374826431274414, 0.19920361042022705, 0.37747499346733093, -0.18595004081726074, 0.0923151597380...
be preloaded using JavaScript: ``` tempImg = new Image() tempImg.src="pic2.jpg" ``` EDIT: If you have a lot of images, you can use the poor-man's multi-preloader: ``` preloads = "red.gif,green.gif,blue.gif".split(",") var tempImg = [] for(var x=0;x<preloads.length;x++) { tempImg[x] = new Image() tempImg[x...
[ 0.42921945452690125, -0.04644963517785072, 0.40312841534614563, 0.05482354015111923, -0.18537646532058716, 0.00887711625546217, 0.23115108907222748, -0.4938551187515259, -0.2493778020143509, -0.785760223865509, -0.3457060158252716, 0.8907981514930725, -0.5219457745552063, -0.12970058619976...
I read the part of [the docs](http://docs.python.org/library/configparser.html) and saw that the `ConfigParser` returns a list of key/value pairs for the options within a section. I figured that keys did not need to be unique within a section, otherwise the parser would just return a mapping. I designed my config file ...
[ -0.1315009891986847, 0.2178850919008255, 0.30133339762687683, -0.3750649094581604, 0.07840414345264435, 0.04510346055030823, 0.11032361537218094, -0.36250579357147217, -0.1704072654247284, -0.4085686206817627, -0.39591068029403687, 0.4400234520435333, -0.5847039818763733, -0.15261106193065...
I *should* have read: > Sections are normally stored in a > builtin dictionary. An alternative > dictionary type can be passed to the > ConfigParser constructor. For example, > if a dictionary type is passed that > sorts its keys, the sections will be > sorted on write-back, as will be the > keys within each se...
[ 0.1685180813074112, -0.03385124355554581, 0.20877093076705933, -0.10753222554922104, 0.0011524272849783301, -0.1890449970960617, 0.2826009690761566, -0.20288455486297607, -0.14763066172599792, -0.8143612146377563, 0.08413121104240417, 0.28331416845321655, -0.16767467558383942, 0.1677201688...
making a crazy adapter (that could break if `ConfigParser`'s implementation changes) should I just write a variant of the `ConfigParser` itself? I feel like this may be one of those 'duh' moments where I'm only seeing the difficult solutions. **[Edit:]** Here's a more precise example of how I'd like to use the same k...
[ 0.23609520494937897, -0.18035820126533508, 0.49838054180145264, 0.1437821239233017, 0.23125268518924713, -0.3429255485534668, 0.4565446972846985, -0.27309122681617737, -0.41963592171669006, -0.2287820279598236, -0.19739946722984314, 0.546594500541687, -0.7252073884010315, 0.066522397100925...
make sense to me. ConfigParser gives you a dict-like structure for each section, so when you call parser.items(section), I'm expecting similar output to dict.items(), which is just a list of key/value tuples. I would never expect to see something like: ``` [('spam', 'eggs'), ('spam', 'ham')] ``` Not to mention, how...
[ 0.12614387273788452, 0.2684146761894226, 0.13423402607440948, -0.1611940711736679, -0.22031360864639282, -0.04434846714138985, 0.19188304245471954, -0.20597819983959198, -0.29531002044677734, -0.3001420199871063, -0.33378905057907104, 0.4153847098350525, -0.4077875316143036, 0.031740635633...
work for values that don't contain commas themselves or handle quoting. For that, you should employ a more advanced technique (see [this](https://stackoverflow.com/questions/118096/how-can-i-parse-a-comma-delimited-string-into-a-list-caveat) and [this](https://stackoverflow.com/questions/118458/how-can-i-join-a-list-in...
[ 0.23983342945575714, 0.07766993343830109, 0.21128804981708527, -0.1704162061214447, -0.1328149288892746, -0.1688338965177536, 0.30219200253486633, -0.4228828251361847, -0.4220847487449646, -0.2943149507045746, -0.4315885901451111, 0.5555698275566101, -0.5465738773345947, -0.339976370334625...
I am using an ancient version of Oracle (8.something) and my ADO.NET application needs to do some fairly large transactions. Large enough to not fin in our small rollback segments. Now we have a large rollback segment as well but it is not used by default. Oracle has a command to select the rollback segment to be used...
[ 0.3043140769004822, 0.12382570654153824, 0.12642483413219452, -0.03166969493031502, -0.10376019775867462, -0.1718502938747406, -0.24580062925815582, -0.10223715752363205, -0.06179414689540863, -0.32961565256118774, 0.13619977235794067, 0.6517414450645447, -0.37312355637550354, 0.3741208016...
about SET TRANSACTION not being the first command. I am sure I am not the only one who faced this issue. How do you solve it or how would you get around it? Thanks If this is a 'one-off' requirement then one solution is to put the other rollback segments offline while you run your transactions then put them online wh...
[ 0.8747950792312622, -0.14798322319984436, 0.23994144797325134, 0.2677950859069824, -0.05240147188305855, -0.28171008825302124, -0.18447493016719818, 0.14802223443984985, -0.2953103482723236, -0.46589604020118713, 0.08367929607629776, 0.8727061748504639, -0.48240014910697937, 0.148074775934...
I am creating a form in HTML that will be printed, with fields that need to be written in by the recipient. Basically what I want is a single line that stretches from the end of the field label to the side of the page. Here's how I'm doing it right now: ``` <table width="100%"> <tr> <td width="1%"> ...
[ 0.5661486983299255, 0.09666022658348083, 0.894797146320343, -0.23402586579322815, -0.190857395529747, -0.07484254986047745, 0.017914239317178726, -0.3112114369869232, 0.06271476298570633, -0.865291178226471, 0.0379294715821743, 0.18392857909202576, -0.10757351666688919, 0.03586076945066452...
&nbsp; </td> </tr> </table> ``` This works, but there must be an easier way to do this without needing a whole table element. Any ideas? I think your solution is better than the responses thus far. The only thing I'd change about your solution is that I'd use a css class instead of inline. Your solution ...
[ 0.27235549688339233, 0.2830333113670349, 0.19764572381973267, -0.013838598504662514, -0.0557219572365284, 0.10712253302335739, 0.1273311972618103, -0.11887338012456894, -0.3916149139404297, -0.9089040756225586, 0.24089950323104858, 0.5547236204147339, -0.5449218153953552, -0.18961642682552...
so that your users can input the information directly on the page before printing out.
[ 0.5563943386077881, 0.291983038187027, 0.44927847385406494, 0.23600301146507263, 0.35609671473503113, -0.07709784805774689, -0.14322435855865479, 0.041810933500528336, -0.10179785639047623, -0.6508861184120178, -0.18937239050865173, 0.181894451379776, 0.08563393354415894, -0.11487478017807...
I have a fair number of Python scripts that contain reusable code that are used and referenced by other Python scripts. However, these scripts tend to be scattered across different directories and I find it to be somewhat tedious to have to include (most often multiple) calls to sys.path.append on my top-level scripts....
[ 0.31043538451194763, 0.6246351003646851, 0.1362522691488266, -0.4629608690738678, -0.17903593182563782, 0.17465275526046753, 0.25092434883117676, -0.2788636088371277, -0.09983237087726593, -0.4551974833011627, -0.06609848141670227, 0.9250688552856445, -0.6030658483505249, 0.000953311333432...