text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
3 fields: FirstName, MiddleName, LastName Any field can be null, but I don't want extra spaces. Format should be "First Middle Last", "First Last", "Last", etc. use a UDF: ``` `Select udfConcatName(First, Middle, Last) from foo` ``` That way all your logic for concatenating names is in one place and once you've go...
[ -0.26353582739830017, 0.024887967854738235, 0.45209935307502747, -0.37713176012039185, -0.14184518158435822, -0.2338046133518219, -0.06421472877264023, -0.16029933094978333, 0.2018270492553711, -0.28381165862083435, -0.23403216898441315, 0.45090654492378235, -0.4993076026439667, 0.35786205...
I've got this small question - given a bitmask of weekdays (e.g., `Sunday = 0x01, Monday = 0x02, Tuesday = 0x04`, etc...) and today's day (in a form of `Sunday = 1, Monday = 2, Tuesday = 3`, etc...) - what's the most elegant way to find out the next day from today, that's set in the bitmask? By elegant I mean, is there...
[ 0.11619218438863754, -0.1503249853849411, 0.5939584970474243, 0.13805493712425232, 0.15537068247795105, 0.1149166077375412, -0.012266388162970543, -0.2064611166715622, -0.1884976029396057, -0.5101279020309448, 0.06498014181852341, 0.5556380748748779, -0.06183823570609093, -0.10219102352857...
for example (roughly): ``` uDay = Sunday | Monday; today = Tuesday; ``` I need to get "Sunday" ``` int getNextDay(int days_mask, int today) { if (!days_mask) return -1; // no days set days_mask |= days_mask << 7; // duplicate days into next week mask = 1 << (today % 7); // keep track of the day while (!(...
[ 0.17319603264331818, -0.3197130262851715, 0.5688154697418213, -0.1435597985982895, 0.17285490036010742, 0.09504164755344391, 0.5341961979866028, -0.11576656252145767, -0.5242137312889099, -0.5898973345756531, -0.46389955282211304, 0.9246671199798584, -0.30034512281417847, -0.00826131273061...
realized there was a degenerate case where if the use passes today>=14 (or greater than the highest bit set) the while loop becomes infinite. The (today % 7) on line 4 fixes this case. And if I may grouse (light-heartedly) about the other version getting the checkmark, my version only have 2 modulus calls, while the c...
[ 0.1443341225385666, -0.16554516553878784, 0.4091603457927704, 0.03829089179635048, 0.14778977632522583, 0.07959941774606705, 0.606837272644043, 0.06337087601423264, -0.28507912158966064, -0.5352543592453003, -0.23110966384410858, 0.5157345533370972, -0.22580218315124512, 0.2734887301921844...
would require that you pre-increment today on line 3 of my solution.
[ 0.18957476317882538, 0.06571647524833679, 0.3372412621974945, -0.0318869985640049, 0.4806748628616333, 0.012995227240025997, 0.29658278822898865, -0.1562696397304535, 0.28429123759269714, -0.4976567029953003, -0.17085793614387512, 0.24014495313167572, -0.22290650010108948, -0.1828073263168...
I have an asp page that uses jQuery ajax to load member counts into a bunch of `div`s after a page is loaded. It works perfectly well in FireFox, and with clients that have a small number of groups. For the small number of clients that have many groups (500+), I am getting an error in IE. The ajax calls seem to be ru...
[ 0.222682386636734, -0.006708615925163031, 0.41319769620895386, 0.016191352158784866, -0.40163618326187134, -0.10606511682271957, 0.2568018138408661, -0.3169258236885071, -0.27799516916275024, -0.6194894313812256, 0.12408745288848877, 0.2953362762928009, -0.14164933562278748, -0.13548685610...
number of groups. Now, I've seen the bug where `$("a").click` functions are not bound if links are added after the DOM is loaded. The links that aren't working are not being loaded by AJAX, they do not fall into this category. Here is the pseudocode: ``` ready() { // count the number of groups that this user has...
[ 0.33114469051361084, -0.22488048672676086, 0.21576090157032013, -0.06764842569828033, -0.011630981229245663, -0.12842534482479095, 0.15632599592208862, -0.5260064601898193, -0.3960711359977722, -0.34075868129730225, 0.14465296268463135, 0.5629422664642334, -0.38374200463294983, 0.018668407...
// this calls the ajax request on groups of 50 ids // it pauses briefly after each request by using setTimeout to call the next runAjaxRecursively(); } } ``` And here is the ajax request: ``` // run the HTTPRequest $.ajax({ async: true, type: "POST", url: "emailcatcount.asp?idList="+i...
[ -0.055849116295576096, 0.006840973626822233, 0.4361746609210968, -0.14599788188934326, -0.15102040767669678, -0.058157987892627716, 0.4488948881626129, -0.20414285361766815, 0.037735261023044586, -0.7332191467285156, -0.2839653789997101, 0.6760656833648682, -0.2683688700199127, -0.23160651...
The only problem is that, in IE, click events won't fire until every single ajax call has returned. Does anyone know why this would occur? Notice that I am setting `async` to true. Does it have anything to do with how jQuery's ready event is processed in IE? I am bewildered, and have spent a few days on this, so any...
[ 0.08462216705083847, -0.2167016714811325, 0.6006144881248474, -0.033108003437519073, 0.1957211196422577, -0.24895650148391724, 0.593920886516571, 0.18881165981292725, -0.23211969435214996, -0.8206462860107422, -0.4125714898109436, 0.7229651212692261, -0.33335036039352417, 0.044393647462129...
track of the day while (!(mask & days_mask)) { mask <<= 1; ++today; } return today % 7; } ``` So that's just one if at the beginning and while loop. How's that? **Edit:** I just realized there was a degenerate case where if the use passes today>=14 (or greater than the highest bit set) the while...
[ 0.16824862360954285, -0.5462705492973328, 0.5870522856712341, 0.09791669994592667, 0.2820487916469574, 0.1801454871892929, 0.34908920526504517, 0.2176852524280548, -0.3571408987045288, -0.41052335500717163, -0.024759575724601746, 0.9191191792488098, -0.21804077923297882, 0.0305832680314779...
calls, while the checked solution will have a minimum of 1 and a maximum of 6 modulus calls. Also, the comment about does the function return "today" if today is set is interesting. If the function should not return today unless today is the only day in the set would require that you pre-increment today on line 3 of m...
[ 0.08268482238054276, -0.10534348338842392, 0.7153317332267761, 0.13594503700733185, 0.23410560190677643, 0.006899349857121706, 0.3418880105018616, -0.20308837294578552, -0.09678460657596588, -0.3934658467769623, -0.361983060836792, 0.7737348675727844, -0.3413728177547455, 0.236278519034385...
We use MKS Integrity for our source control. I have no control over that -- I just have to use it. What are some "gotchas" that I should know about and avoid? And, are there any neat things about the software that will allow me to use it better? I've already hit cases where the tree structure in the source control d...
[ 0.4695991575717926, 0.343209445476532, 0.09477414190769196, 0.3035769462585449, 0.14731237292289734, -0.2711178958415985, 0.5419834852218628, -0.02805301919579506, 0.009640378877520561, -0.12263721227645874, 0.10377010703086853, 0.4923449754714966, -0.28501611948013306, 0.24672506749629974...
It's a challenge to find the older file, since, of course, the tree structure doesn't match. Just discovered this MKS gotcha: It only allows one revision of a member to have a specific label on it at a time. Came across it this way: Someone on our team renamed a pdf resource, adding \_Old to the file name (he did this...
[ 0.15427441895008087, 0.07070697098970413, 0.3151234984397888, 0.19384858012199402, 0.06188374385237694, -0.3006591200828552, 0.0967433974146843, 0.03437796235084534, -0.5190742611885071, -0.5808622241020203, -0.04292577877640724, 0.09508143365383148, -0.17194700241088867, 0.518782377243042...
at the revision history for that member, you'll find that there are two revisions of the same member being used by the same dev path. As part of our deployment process, we checkpoint the artifacts that are being deployed, applying labels to members to specify the release that they're a part of. Since MKS only applies...
[ 0.28925463557243347, -0.154021754860878, 0.3498038053512573, 0.3793262243270874, -0.04842879995703697, -0.4212128520011902, 0.3298163414001465, -0.3721768260002136, -0.277874231338501, -0.6084095239639282, -0.06718552857637405, 0.41137516498565674, -0.0376289077103138, 0.07788804173469543,...
with frequent visual studio crashes, and apparently its branching mechanisms depend on features that have no equivalent within the integrity command line or gui client. So if anyone on your team uses visual studio integration, unless the branches they work in were created through the integration, they will not work. So...
[ 0.46243807673454285, 0.23023226857185364, -0.23468759655952454, 0.18597649037837982, 0.09034223109483719, -0.41824111342430115, 0.4763908386230469, 0.23648278415203094, -0.3168892562389374, -0.3874623477458954, -0.07836143672466278, 0.39616453647613525, -0.2768091559410095, 0.1168026998639...
I would like to hear of the experiences of classic vb developers who migrated their applications to delphi rather than vb.net. How has it worked out? Are you glad or sorry that you didn't move to vb.net? I am not really a vb developer but rather a Delphi developer who was forced to maintain some vb apps for a while. I ...
[ 0.6537982225418091, 0.06672598421573639, -0.13560330867767334, -0.16154225170612335, -0.3207227885723114, -0.09503350406885147, 0.07744167000055313, 0.2618104815483093, -0.595923662185669, -0.6795633435249329, 0.1957351565361023, 0.33434051275253296, -0.21820439398288727, 0.372464865446090...
Delphi replacements for some of the OCXes that had been used (I will never again rely on a third party library for which I do not have the source code.), but it worked out OK. But as said above: I am an experienced Delphi developer, so I didn't have to learn Delphi at the same time as migrating a vb app. That certainl...
[ 0.11623308807611465, -0.1355751007795334, 0.20782260596752167, -0.0023094371426850557, -0.24618227779865265, -0.3420476019382477, 0.08235584199428558, 0.26450857520103455, -0.21914349496364594, -0.39416268467903137, 0.057525038719177246, 0.8505927920341492, -0.017550863325595856, -0.172787...
The only reliable method that I a have found for using a script to download text from wikipedia is with cURL. So far the only way I have for doing that is to call `os.system()`. Even though the output appears properly in the python shell I can't seem to the function it to return anything other than the exit code(`0`). ...
[ 0.17961949110031128, 0.13366663455963135, 0.3111568093299866, 0.0088129797950387, -0.19459448754787445, -0.22609244287014008, 0.3961260914802551, -0.0543440543115139, -0.0926801860332489, -0.7827816009521484, -0.027916328981518745, 0.5599897503852844, -0.24385222792625427, 0.12749072909355...
Python for more details. Example using urllib2 from the [Python Library Reference:](http://www.python.org/doc/2.5.2/lib/urllib2-examples.html) ``` import urllib2 f = urllib2.urlopen('http://www.python.org/') print f.read(100) ``` Edit: Also you might want to take a look at [wget.](http://en.wikipedia.org/wiki/Wget...
[ 0.21985460817813873, 0.06887985020875931, -0.06068076565861702, -0.14010407030582428, -0.3005235493183136, 0.11130472272634506, 0.17793327569961548, -0.015161911025643349, -0.540739119052887, -0.3886856138706207, -0.3112123906612396, 0.5559723377227783, -0.5974903106689453, -0.191311001777...
I'm in the process of extending and improving a website that has quite a few structural problems. It looks very much like the developers before me had heard of MVC but didn't understand the ideas of abstraction or modularity. So the MVC "framework" is a) bespoke b) broken c) patched and d) there are several in use all ...
[ 0.4723747670650482, 0.39123350381851196, 0.286711722612381, -0.2783430814743042, 0.0470365546643734, -0.018354184925556183, 0.3538401126861572, -0.031086044386029243, -0.4598577320575714, -0.6728151440620422, -0.1841939389705658, 0.5112388134002686, -0.32458171248435974, 0.1556757092475891...
knowledge here on SO. The first is how closely programmers seem to tie their SQL database with their models. This doesn't make sense to me: do programmers normally have the model looking after the data abstraction? (To me this is little better than putting SQL in raw PHP code.) Or is there a data access layer normall...
[ 0.5277498960494995, 0.17902769148349762, 0.30678126215934753, 0.4537047743797302, -0.0054555549286305904, -0.19483834505081177, -0.04692291468381882, -0.06197287142276764, -0.27369436621665955, -0.4286951422691345, 0.2879652976989746, 0.6138171553611755, -0.10412132740020752, 0.01492473110...
Are they intended to be re-usable amongst different pages? Should they care about just where the data is stored? Shouldn't they be more concerned with handling the logic between data-fetch and data-show (e.g. turning a contact's group ID into a displayable name)? And data-save and data-write (e.g. figuring out how to t...
[ 0.2891632318496704, 0.05888199061155319, 0.4966374635696411, 0.2618856430053711, -0.18630439043045044, -0.3915562033653259, 0.1631988286972046, -0.15329374372959137, -0.4588986039161682, -0.2518213391304016, -0.19568198919296265, 0.4067061245441437, -0.1138276532292366, 0.17477962374687195...
the data is stored?** No. They need not know it. All this kinda information is necessary for persistence layer or data layer. **Shouldn't they be more concerned with handling the logic between data-fetch and data-show (e.g. turning a contact's group ID into a displayable name)?** No. They are just concerned about ...
[ 0.08172290772199631, 0.00947797391563654, -0.001742267981171608, 0.2455170750617981, -0.08132882416248322, -0.24217408895492554, -0.06634064763784409, 0.1607784628868103, -0.34478306770324707, -0.3469667136669159, -0.18113231658935547, 0.34672117233276367, -0.2583230435848236, -0.051144424...
the accord of this, IMO, there should be some methods, business related, which are appropriate and qualify to be in there. Don't make it so dumb. The new Entity Beans (EJB3) are the good example of this. BTW, data show is the work of a presentation layer. In java JSP is the part of view technology. **And data-save an...
[ 0.32247844338417053, -0.1618647575378418, 0.015278548002243042, 0.18938609957695007, -0.10352084785699844, -0.4276812970638275, -0.020048143342137337, -0.08666427433490753, -0.3609265983104706, -0.690637469291687, -0.336740642786026, 0.3930438458919525, -0.16957677900791168, -0.09373509883...
Not sure if this is intended behavior or a bug or a wrong function that I'm using, but the problem is that PathCombine() returns a wrong path on a Vista box. The relative path is (as exported by the WMP to a playlist): `..\..\..\Public\Music\Sample Music\Amanda.wma` The path it's relative to is: `C:\Users\userX\Mus...
[ 0.01609339751303196, -0.10090026259422302, 0.5462880730628967, -0.13973185420036316, 0.09067192673683167, 0.0869607925415039, 0.11172362416982651, -0.16529472172260284, -0.34454914927482605, -0.6469895243644714, 0.1304415613412857, 0.6215594410896301, -0.17580129206180573, 0.36284282803535...
null-terminated string of maximum length MAX\_PATH that contains the directory path." You appear to be passing the fully qualified name of a file inside the directory, instead of the fully qualified name of the directory. So, it removes three components: playlist.wpl, Playlists, and Music, and then appends the remainde...
[ 0.12636788189411163, -0.19461703300476074, 0.3618769645690918, 0.04754449427127838, 0.3324575424194336, -0.21113835275173187, 0.39280036091804504, -0.0030063465237617493, -0.17644985020160675, -0.29162171483039856, -0.3790559768676758, 0.4180970788002014, -0.4219602048397064, 0.30833122134...
I have an application the will load usercontrols dynamically depending on the user. You will see in the example below that I am casting each user control via switch/case statements. Is there a better way to do this? Reflection? (I must be able to add an event handler Bind in each control.) ``` override protected void ...
[ 0.03312867134809494, -0.06710780411958694, 0.7338647842407227, 0.023198070004582405, 0.07786737382411957, -0.01775003783404827, 0.1590244621038437, -0.3914085030555725, -0.306148886680603, -0.6333070993423462, -0.08961772918701172, 0.2944552004337311, -0.2864145040512085, 0.344644576311111...
view = new View(); int viewNumber = Convert.ToInt32(page.DisplayIndex) -1; switch(page.PageName) { case "indStart.ascx": IndStart = (indStart) uc; IndStart.Bind += new EventHandler(test_handler); view.Controls.Add(IndStart);
[ -0.20081564784049988, -0.4350590109825134, 0.5544798970222473, -0.1848199963569641, -0.07302457839250565, 0.24090155959129333, 0.4293358623981476, -0.5430858135223389, -0.20098170638084412, -0.5842774510383606, -0.24799904227256775, 0.36258217692375183, -0.28959769010543823, 0.094312958419...
MultiView1.Views.AddAt(viewNumber, view); break; case "indDemographics.ascx": IndDemographics = (indDemographics)uc; IndDemographics.Bind += new EventHandler(test_handler); view.Controls.Add(IndDemographics);
[ 0.04263358935713768, -0.4671420454978943, 0.30457156896591187, 0.026483207941055298, -0.013564634136855602, 0.06841569393873215, 0.5202910900115967, -0.5069456696510315, -0.3491732180118561, -0.3969155550003052, -0.13848520815372467, 0.1825220286846161, -0.37033119797706604, 0.271130502223...
MultiView1.Views.AddAt(viewNumber, view); break; case "indAssetSurvey.ascx": IndAssetSurvey = (indAssetSurvey)uc; IndAssetSurvey.Bind += new EventHandler(test_handler); view.Controls.Add(IndAssetSurvey);
[ 0.07455211877822876, -0.4752677083015442, 0.32266098260879517, 0.02976018376648426, -0.0388580858707428, 0.07092420011758804, 0.6027160286903381, -0.5257528424263, -0.2775508761405945, -0.4256715178489685, -0.2770724594593048, 0.32068541646003723, -0.4741458594799042, 0.25062552094459534, ...
MultiView1.Views.AddAt(viewNumber, view); break; } } base.OnInit(e); } ``` Thanks in advance! I do not see anything control-class-specific in your code. You perform exactly the same operations, and looks like all user controls inherit from Control. If the only specific thing is the e...
[ 0.40341925621032715, -0.38822391629219055, 0.2770375907421112, 0.059250086545944214, -0.1395626813173294, -0.31775951385498047, 0.5601906180381775, -0.2448572963476181, -0.41759029030799866, -0.683240532875061, 0.047192346304655075, 0.6500231027603149, -0.5200202465057373, 0.12870664894580...
controls to inherit like this: Control -> MyBaseControl(put the event here) -> YouControl. If you can't control the source of the controls, then Jeroen suggestion should work.
[ 0.08640953153371811, -0.3259545862674713, -0.1587514877319336, 0.322604238986969, 0.1601356416940689, -0.5085291266441345, -0.2894047796726227, -0.20744316279888153, 0.16739937663078308, -0.41326767206192017, 0.09679381549358368, 0.47205275297164917, -0.06328832358121872, 0.078820824623107...
I'm trying to show in the screen a table... Basically I create a custom UITableViewController with the methods needed for the UITableView delegate and data source which is self since UITableViewController does it for you. When I put it in the `-initWithRootView:` controller, and add the nav's bar view to the window i...
[ 0.2519892156124115, 0.09296495467424393, 0.6472465991973877, -0.0013340829173102975, -0.26965999603271484, -0.045116543769836426, -0.08657105267047882, -0.11465289443731308, -0.3314245045185089, -0.8704851865768433, 0.16770243644714355, 0.4698966443538666, -0.3746073544025421, 0.1811049133...
a C datatype. But it isn't, so it fails to save/load. boost serialization does it correctly. Have a look at it. If you don't want to use it, you can do something like this: ``` typedef std::map<std::string, char> my_map; my_map ciMap; // saving std::ofstream stream("file.txt"); for(my_map::const_iterator it = ciMap.b...
[ -0.03365737572312355, -0.275550901889801, 0.4429303705692291, -0.1653704196214676, 0.023432385176420212, -0.11132854223251343, -0.06520716845989227, -0.34539106488227844, -0.11622188240289688, -0.7593052387237549, -0.14231526851654053, 0.6051831841468811, -0.473611444234848, -0.03732958063...
an int before writing out, and then reading as an int when loading. Actually, i recommend boost serialization, and boost iostreams (<http://www.boost.org/doc/libs/1_37_0/libs/iostreams/doc/index.html>), which includes a compression stream that transparently can compress your data too.
[ -0.09867588430643082, -0.03602446988224983, 0.5477790832519531, -0.046210117638111115, -0.09128156304359436, 0.09107723832130432, 0.02044658549129963, -0.09116986393928528, -0.20372849702835083, -0.459805965423584, -0.20947684347629547, 0.793441116809845, -0.22209738194942474, -0.662572443...
What is the origin of the term reflection? It seems more like introspection. Why isn't it called that? [Introspection](http://en.wiktionary.org/wiki/introspection): A looking inward; specifically, the act or process of self-examination. [Reflection](http://dictionary.reference.com/browse/reflection): 1. the act of r...
[ 0.29638734459877014, -0.013257764279842377, -0.1011752188205719, 0.17576013505458832, -0.561420738697052, 0.2654140293598175, 0.2464260309934616, 0.06490864604711533, -0.2674631178379059, -0.4648978114128113, 0.047135815024375916, 0.47896555066108704, 0.043417397886514664, 0.09445651620626...
[type introspection](http://en.wikipedia.org/wiki/Introspection_(computer_science)) for the ability to know types at runtime (and changing them is another action: conversion/casting). EDIT: actually I just realized the first answer was saying exactly that ^^. Time to unplug myself...
[ 0.3246120512485504, 0.10904839634895325, 0.13013619184494019, -0.004359960090368986, -0.14602822065353394, 0.07632678747177124, 0.2941209673881531, 0.1378970593214035, -0.24831488728523254, -0.30356499552726746, -0.05109073594212532, 0.2607850730419159, -0.3658944368362427, 0.1063806861639...
Is there anyone already implement memcached for production use in Windows environment? Because many blogs that I've read, it's not recommended to run memcached in Windows especially for production use, for example [running memcached on windows](http://latebound.blogspot.com/2008/10/running-memcached-on-windows.html). ...
[ 0.3889244794845581, 0.5856339931488037, 0.04548761993646622, -0.1230563074350357, -0.1791459172964096, -0.03865997493267059, 0.17769436538219452, 0.17519986629486084, -0.3600725829601288, -0.41613954305648804, 0.043459195643663406, 0.6185601353645325, -0.12372399866580963, 0.21519021689891...
to a \*nix based memcached machine. In a production environment running memcached on Server 2003 or 2008 would mean that you get licenses for all those boxes. Linux will offer you all the OSS benefits. TCO will rise linearly with memcached on Windows **Edit:** It’s been around 1.5 years since I wrote this answer ...
[ 0.3318968117237091, 0.261431485414505, 0.46151161193847656, 0.050137873739004135, -0.10880030691623688, -0.2854824960231781, 0.38494473695755005, 0.3363151252269745, -0.3207235634326935, -0.45310017466545105, 0.13288407027721405, 0.38193970918655396, -0.1780450940132141, 0.3400237858295440...
same production machine you’d want to start it in limited memory, i.e. define the maximum memory memcached is allowed to use. > c:\Program > Files\memcached>memcached.exe -m 128. *Here memcached runs with a maximum of 128 mb usage. You don’t want memcached to take up all the memory on your webserver.* The moment ...
[ -0.11218643188476562, 0.21900029480457306, 0.6310585141181946, -0.18645897507667542, -0.010868442244827747, 0.11878809332847595, 0.22289541363716125, -0.0973489060997963, -0.5421938300132751, -0.8322334289550781, -0.170408695936203, 0.4567703902721405, -0.06071372702717781, 0.3298661708831...
If you are too concerned about normal compression, try [LZO](http://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Oberhumer)
[ -0.20781996846199036, 0.020644724369049072, 0.28064218163490295, -0.582234263420105, 0.10608309507369995, 0.2670993208885193, 0.20795691013336182, -0.11029549688100815, -0.049719102680683136, -0.5651555061340332, -0.7086712718009949, 0.29681774973869324, -0.16953982412815094, -0.3733835220...
I'm using ADO.NET dataservices in a Silverlight application and since the silverlight libraries don't support the ToList() call on the IQueryable I thought it might be possible to create an extension method around this called SilverlightToList(). So in this method I'm calling the BeginExecute method on my context as sh...
[ 0.29695531725883484, -0.21820253133773804, 0.5736292600631714, -0.3439106047153473, 0.03378511965274811, -0.029337603598833084, 0.07905507832765579, -0.5891189575195312, 0.0026307569351047277, -0.46546465158462524, -0.07051970809698105, 0.46178683638572693, -0.556757926940918, 0.0961872786...
method this results in a deadlock. Is this a limitation of ADO.NET dataservices in Silverlight? Is there perhaps a workaround for this? I've since found [this post](http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=3981405&SiteID=1) on the MSDN forum which says that any managed->UnManaged->Managed marshalling happe...
[ 0.27293068170547485, -0.366665780544281, 0.18353357911109924, 0.23106025159358978, 0.14091229438781738, -0.32328668236732483, 0.26789888739585876, -0.09318525344133377, -0.2557526230812073, -0.2974511981010437, 0.0871371328830719, 0.1413968801498413, -0.34560874104499817, 0.357840001583099...
I'm curious to know if there is an easy way to mock an IMAP server (a la the `imaplib` module) in Python, *without* doing a lot of work. Is there a pre-existing solution? Ideally I could connect to the existing IMAP server, do a dump, and have the mock server run off the real mailbox/email structure. Some background ...
[ 0.6178966164588928, 0.407198429107666, -0.11363115906715393, 0.1801987737417221, -0.062238212674856186, 0.09025830030441284, 0.3974412679672241, 0.16259895265102386, -0.07140406221151352, -0.5559723377227783, 0.2814231216907501, 0.42631229758262634, -0.1333276480436325, 0.2239103764295578,...
get the mock server running. I found it quite easy to write an IMAP server in twisted last time I tried. It comes with support for writing IMAP servers and you have a huge amount of flexibility.
[ 0.23960429430007935, -0.0856008380651474, 0.28102561831474304, 0.42149072885513306, -0.1658320128917694, 0.00447096535935998, 0.2441011369228363, 0.12606903910636902, -0.24665567278862, -0.7123863101005554, 0.11562737077474594, 0.5377386808395386, -0.032348815351724625, -0.0048860716633498...
I'm looking for some useful books for a beginner who wants to better understand the Sun JVM Not specific to the Sun Java Virtual Machine implementation, but [The Java Virtual Machine Specifications](http://java.sun.com/docs/books/jvms/second_edition/html/VMSpecTOC.doc.html) from Sun may be an interesting read.
[ 0.48956921696662903, -0.01651941053569317, -0.13377316296100616, 0.3829807937145233, -0.05491970106959343, -0.4404067397117615, -0.15856942534446716, 0.2793445885181427, -0.1578911542892456, -0.4303097724914551, 0.14723892509937286, 0.2864641547203064, 0.1728058010339737, 0.097885616123676...
Is it possible Firebug may be incorrectly adding downloads to the Net tab when things may be loaded from the cache? I have some code in a Javascript gallery which is meant to lazily download an image when the thumbnail is clicked and then display it once downloaded. It is meant to determine if it's been downloaded alr...
[ 0.6128978729248047, -0.11287349462509155, 0.3500950336456299, 0.008847425691783428, -0.008797097951173782, -0.09522125869989395, 0.08404146879911423, -0.02438962832093239, -0.3377301096916199, -0.7018311023712158, 0.3634333610534668, 0.6115972995758057, -0.16949693858623505, -0.11978909373...
Firebug's Net tab and it seems to be downloading the large image every time (and the total file size gets bigger with every click). I'm not sure what I have done wrong as a bit of debugging has informed me the Boolean values are being updated correctly. So my question is, could Firebug be incorrect (I doubt it), or i...
[ 0.09191381186246872, 0.16785430908203125, 0.34088703989982605, -0.09134764224290848, -0.32078808546066284, -0.05602903664112091, 0.5099354386329651, -0.000917516415938735, -0.26038897037506104, -0.5750399827957153, 0.06369089335203171, 0.5955669283866882, -0.20449011027812958, 0.0992798283...
code so please be kind! The image appearing in the net tab in firebug does not mean it is downloaded from the server. Check the HTTP response code that firebug reports for the image - for me after one visit, it kept returning "304 - Not Modified" which means it is being loaded from the cache. You can avoid the extra H...
[ 0.5350610613822937, -0.052494846284389496, 0.23569758236408234, 0.2419995218515396, -0.20702913403511047, -0.13300234079360962, 0.6625005602836609, -0.07650770992040634, -0.012285366654396057, -0.7585221529006958, 0.18854665756225586, 0.7352468371391296, -0.13432443141937256, -0.2076096683...
have to change the filename.
[ 0.21146845817565918, 0.4841137230396271, 0.03768271207809448, 0.02347167395055294, 0.10757514834403992, -0.1525445431470871, 0.33796343207359314, -0.04045792669057846, 0.007812077179551125, -0.557803213596344, -0.12097969651222229, 0.1180996224284172, -0.013721608556807041, 0.3491629064083...
I am curious to know where the "Don't Fragment" [DF] Bit of the IP Flags is used. As fragmentation is invisible to higher layers and they don't care too. I am also looking for an example. Thanks a lot in advance. Fragmentation is not always invisible to all upper layers. Some early (and probably even current) micro-...
[ 0.2841711938381195, -0.08586736768484116, 0.09491841495037079, 0.22195762395858765, -0.26385805010795593, -0.7249085307121277, 0.06286176294088364, 0.028082268312573433, -0.3730370104312897, -0.8167693018913269, -0.09384375810623169, 0.2590574026107788, -0.17367979884147644, 0.365548044443...
it's not necessary for all the fragments to arrive at the destination so, preventing fragmentation means the message either arrives or doesn't arrive - there is no possibility that only a bit of the UDP datagram will reach the destination. I can't recall how long the TCP/IP stack held on to unassembled IP packets waiti...
[ 0.12040272355079651, -0.15275710821151733, 0.18887008726596832, 0.23925167322158813, -0.15788698196411133, -0.35180047154426575, 0.3086574077606201, -0.21934236586093903, -0.5221062898635864, -0.5802835822105408, -0.1516525000333786, 0.18040521442890167, -0.011505655944347382, 0.2390408962...
unit (DF will prevent that packet from being fragmented to 'squeeze through' the hole).
[ -0.006772678345441818, -0.17057789862155914, -0.05598684400320053, 0.13236980140209198, 0.3698963522911072, 0.013502251356840134, 0.1843826174736023, -0.6610537767410278, -0.08982056379318237, -0.8460419178009033, -0.5716179013252258, 0.04889256879687309, -0.03227962553501129, 0.3007099330...
I have a class A and another class that inherits from it, B. I am overriding a function that accepts an object of type A as a parameter, so I have to accept an A. However, I later call functions that only B has, so I want to return false and not proceed if the object passed is not of type B. What is the best way to fi...
[ 0.11507207900285721, -0.0437394417822361, 0.4131258428096771, -0.07368699461221695, -0.11653473228216171, -0.009015471674501896, 0.11761005222797394, -0.3240910768508911, -0.0164962075650692, -0.293709397315979, -0.17500583827495575, 0.30504918098449707, -0.4916703999042511, 0.370495975017...
a runtime check to ensure the validity of the cast. If you attempt to cast to pointer to a type that is not a type of actual object, the result of the cast will be NULL. If you attempt to cast to reference to a type that is not a type of actual object, the cast will throw a [`bad_cast`](http://en.cppreference.com/w/cp...
[ 0.3660111725330353, -0.14472194015979767, 0.223098486661911, -0.025913700461387634, -0.13646522164344788, -0.03991680592298508, 0.4907629191875458, -0.2742333710193634, -0.16166026890277863, -0.5467276573181152, -0.1245456114411354, 0.6244893670082092, -0.5658196210861206, -0.0325537882745...
is not a > limitation because base classes must have a virtual destructor to > allow objects of derived classes to perform proper cleanup if they are > deleted from a base pointer.
[ 0.03521523252129555, -0.316621869802475, 0.13302898406982422, 0.24266475439071655, 0.13604360818862915, -0.3689550757408142, 0.40442711114883423, -0.04071197658777237, -0.09772087633609772, -0.6036219596862793, -0.5035072565078735, 0.29687920212745667, -0.2305619865655899, 0.30750989913940...
Ok another WPF question, well I guess this is just general .NET. I have an xml document retreived from a URL. I want to get multiple values out of the document (weather data, location, some other strings). When I use the XmlTextReader I can call my method to pull the values out. The first time I pass the method to se...
[ 0.46971046924591064, 0.01901276223361492, 0.4460460841655731, 0.11384308338165283, -0.33917146921157837, -0.2448389083147049, 0.3576630651950836, -0.08578704297542572, -0.3395920693874359, -0.636921226978302, 0.3612220585346222, 0.45036569237709045, -0.2380857616662979, 0.17333774268627167...
FindTags... method. I want to just keep passing the xtr (XMLTextreader) back to my find method. Is this the nature of the reader? I don't want to have to hit the URL each time either... that seems wrong too. Help.. this just all feels wrong. Thanks. ``` GetWeatherFeed("97229", "//weather//loc//dnam", "//weat...
[ 0.1692720204591751, 0.07850608229637146, 1.0654618740081787, 0.08345290273427963, -0.0708010271191597, -0.43486979603767395, 0.5758327841758728, -0.20600305497646332, -0.16835197806358337, -0.5651364326477051, -0.3083920478820801, 0.31588074564933777, -0.5450767874717712, 0.076751425862312...
lblLocation.Content = ht["Location"].ToString(); lblWeatherCondition.Content = ht["Weather"].ToString(); public System.Collections.Hashtable FindTagsUsingXPthNaviatorAndXPathDocumentNew(System.Xml.XmlTextReader xtr, string nodeToLocate1, string nodeToLocate2, string nodeToLocate3) { System.Xml.XPath.XPathD...
[ -0.21454159915447235, -0.2588965594768524, 0.8180698752403259, -0.1572166085243225, 0.09641363471746445, 0.021233199164271355, 0.31986498832702637, -0.3632585108280182, -0.29321467876434326, -0.28117161989212036, -0.5280887484550476, 0.4690362513065338, -0.4925180673599243, 0.1342163383960...
while (xpIter.MoveNext()) { ht.Add("Weather", xpIter.Current.Value); } xpExpression = xpNav.Compile(nodeToLocate3); xpIter = xpNav.Select(xpExpression); while (xpIter.MoveNext()) { ht.Add("Icon", xpIter.Current.Value); } return ht; } ``` XmlTextReader cannot be reset ...
[ -0.10118670761585236, -0.24249306321144104, 0.884899377822876, -0.06898576021194458, 0.0046038031578063965, 0.039315447211265564, 0.3053322434425354, -0.16194471716880798, -0.11806997656822205, -0.7814328670501709, -0.6401121616363525, 0.5097146034240723, -0.31265121698379517, -0.057868845...
I want to port few C/C++ libraries to Android, how feasible it would be e.g. OpenSSL can it be ported or suppose an application which depends on OpenSSL, what is the best way to port it to Android when Android I think itself has libssl.so what are the tools available e.g. Scratchbox, any alternatives? Has anybody exp...
[ 0.032295145094394684, 0.37741878628730774, 0.06990007311105728, -0.17612706124782562, -0.18406687676906586, 0.08504750579595566, 0.11299995332956314, -0.18504144251346588, -0.2900320291519165, -0.6428442597389221, 0.0024550838861614466, 0.5837924480438232, -0.1399751603603363, -0.147119790...
to get a bearing on your OpenSSL project.
[ 0.42209291458129883, 0.08143893629312515, 0.06950461119413376, 0.33354419469833374, -0.06661662459373474, -0.4259319305419922, 0.1287175863981247, 0.27434229850769043, -0.0388096421957016, -0.09096524864435196, -0.04152888059616089, -0.016900260001420975, 0.041362740099430084, -0.158942446...
I just ran into an issue with Python's imaplib and Gmail's authentication mechanism: ``` >>> import imaplib >>> imap = imaplib.IMAP4_SSL('imap.gmail.com', 993) >>> imap.authenticate('bobdole@gmail.com', 'Bob Dole likes your style!') Traceback (most recent call last): ... imaplib.error: AUTHENTICATE command error: BA...
[ 0.44367164373397827, 0.18408054113388062, 0.3847024738788605, -0.0637894868850708, 0.04997653514146805, -0.24538633227348328, 0.6827427744865417, 0.1684470921754837, -0.16716089844703674, -0.533566951751709, -0.013648680411279202, 0.6147589683532715, -0.3633827269077301, -0.006925779394805...
I'm not sure why finding any frameworks or good example projects for developing windows application is so difficult. I'm sure that for web application framework, we have Castle Project or ASP.NET MVC that are very great stuffs and have many examples that follow the best practices like IoC, Caching, and etc. Is there ...
[ 0.10257051885128021, 0.0076627884991467, -0.09463357925415039, 0.2998567819595337, -0.14494328200817108, -0.10289690643548965, 0.1881169080734253, -0.088803730905056, -0.5250641703605652, -0.8150784969329834, 0.14563769102096558, 0.2244931161403656, -0.08504780381917953, 0.2035842686891555...
I think I understand unit testing. But I was wondering: is there a way to automate something visual, like making sure anti-aliasing works or that the rounded corners on a web site look how they are supposed to? I have a feeling that it just isn't practical, but I have little experience in the QA world. > "anti-aliasing...
[ 0.6362930536270142, 0.0008372159791179001, -0.06460418552160263, 0.4346502125263214, -0.08279866725206375, 0.2209479659795761, 0.18395286798477173, -0.07551772892475128, -0.053893014788627625, -0.4396836757659912, 0.10513662546873093, 0.6493223905563354, -0.11424779891967773, -0.2423820495...
to align the model answer with the rendered output and then do a colourwise diff on it, where the resulting output being a complete black image == perfect compliance. However, doing this is undoubtedly exhaustively complicated, and wont compensate for *perceptual* failures such as how it is seen to a colourblind pers...
[ 0.3190118968486786, 0.03179564327001572, 0.2035401463508606, 0.38104262948036194, 0.05109255760908127, 0.03013746067881584, 0.22728855907917023, -0.5701215863227844, 0.23718895018100739, -0.6578208208084106, -0.27950185537338257, 0.6889377236366272, -0.20664699375629425, -0.345987558364868...
go through and execute on a variety of platforms. > That will handle this week, but will > you repeat the manual tests evey time > you make a change to code? Or every > time you make a release? Manual tests > simply will not scale. They're cheap > in the short, but hopelessly costly in > the long run. – Tim Ott...
[ 0.4536855220794678, 0.3309985101222992, -0.12110218405723572, -0.0722820833325386, 0.02033214084804058, -0.2772599160671234, 0.526382327079773, -0.2714284062385559, -0.22669576108455658, -0.3915692865848541, -0.3619612753391266, 0.6767202019691467, -0.2649390995502472, -0.26474729180336, ...
thus, has not had a test-case written for it yet.
[ -0.035800281912088394, 0.20280425250530243, 0.07720515131950378, 0.10290420800447464, 0.43275192379951477, -0.21126875281333923, -0.04224676266312599, -0.08826876431703568, 0.0008829492726363242, -0.10946685075759888, -0.06128859147429466, 0.2020912617444992, 0.26826533675193787, 0.0493643...
so that you can make your program concurrent easily in the future. I focus on making items Immutable. Immutable objects allow you to reason about multi-threaded code a lot easier than "thread safe" objects. The object has one visible state that can be passed between threads without any synchronization. It takes the tho...
[ 0.23165397346019745, -0.023652201518416405, 0.08506043255329132, 0.20606668293476105, -0.4159347116947174, -0.1317940205335617, 0.15566310286521912, 0.0927472859621048, -0.4929814636707306, -0.5229670405387878, 0.14713053405284882, 0.06267204135656357, -0.07099008560180664, 0.3841002881526...
layer which (CollectionUtility) which will produce wrapper objects that implement BCL interfaces such as IList<T> and ICollection<T>. They can't fully implement the interfaces since they are immutable but all possible methods are implemented. The source code (C#) including the unit testing is also available on the si...
[ 0.3978923261165619, -0.14322979748249054, 0.46401676535606384, 0.4750364124774933, -0.009490560740232468, -0.3171897232532501, -0.20213036239147186, -0.30394434928894043, 0.035201381891965866, -0.36961132287979126, -0.2210005819797516, 0.3430060148239136, -0.12550568580627441, -0.016931090...
What is the best approach in stripping leading and trailing spaces in C? You can do this entirely in place. ``` void stripLeadingAndTrailingSpaces(char* string){ assert(string); /* First remove leading spaces */ const char* firstNonSpace = string; while(*firstNonSpace != '\0' && isspace(*firs...
[ -0.09874210506677628, -0.5642573237419128, 0.332692414522171, -0.23237860202789307, 0.046516094356775284, -0.022809471935033798, 0.003605472855269909, -0.4508502781391144, -0.1818733960390091, -0.4174567461013794, -0.4876718819141388, 0.5383133292198181, -0.08107096701860428, 0.02506366744...
/* Now remove trailing spaces */ char* endOfString = string + len; while(string < endOfString && isspace(*endOfString)) { --endOfString ; } *endOfString = '\0'; } ```
[ -0.3839563727378845, -0.06288331747055054, 0.5970863103866577, -0.34271693229675293, 0.20280969142913818, 0.24795004725456238, 0.25837385654449463, -0.14965064823627472, -0.12687191367149353, -0.11754875630140305, -0.31700238585472107, 0.3786173164844513, -0.20928733050823212, 0.1397154480...
The following SQL separates tables according to their relationship. The problem is with the tables that sort under the 3000 series. Tables that are part of foreign keys and that use foreign keys. Anyone got some clever recursive CTE preferably or a stored procedure to do the necessary sorting?? Programs connectiong to ...
[ -0.09323437511920929, 0.24570779502391815, 0.3281422257423401, 0.030324650928378105, -0.15365393459796906, -0.025428935885429382, 0.08828319609165192, -0.3337351083755493, -0.3330160081386566, -0.5084514021873474, 0.0496511273086071, 0.20199547708034515, -0.39868566393852234, 0.31973990797...
ac ON so.ID = ac.object_id WHERE so.type = 'U' AND ac.is_rowguidcol = 1 ), Relationships(ReferenceTableName, ReferenceColumnName, TableName, ColumnName) AS ( SELECT OBJECT_SCHEMA_NAME (fkey.referenced_object_id) + '.' + OBJECT_NAME (fkey.referenced_object_id) AS ReferenceTableName ,CO...
[ -0.4819650650024414, 0.06478224694728851, 0.5962889790534973, 0.3895995616912842, -0.014101151376962662, 0.15216855704784393, -0.3334869146347046, -0.332570344209671, -0.08832647651433945, -0.39097294211387634, -0.3227485120296478, 0.023246372118592262, -0.23718902468681335, 0.365393370389...
fkey INNER JOIN sys.foreign_key_columns AS fcol ON fkey.OBJECT_ID = fcol.constraint_object_id ), NotReferencedOrReferencing(TableName) AS ( SELECT TableName FROM AllTables EXCEPT SELECT TableName FROM Relationships EXCEPT SELECT ReferenceTableName FROM Relationships ), OnlyReferenced(...
[ -0.8414011001586914, 0.10711926966905594, 1.0702461004257202, -0.17297658324241638, -0.1078311875462532, 0.3188873827457428, 0.4061641991138458, -0.3232268989086151, -0.16286581754684448, -0.3784058094024658, -0.2372918277978897, 0.3048593997955322, -0.32841721177101135, 0.0183881595730781...
Tablename FROM Relationships EXCEPT SELECT ReferenceTablename FROM Relationships ) SELECT TableName, 1000 AS Sorting FROM NotReferencedOrReferencing UNION SELECT TableName, 2000 AS Sorting FROM OnlyReferenced UNION SELECT TableName, 3000 AS Sorting FROM ReferencedAndReferencing UNION SELECT TableName, 4000 AS Sorti...
[ -0.46997717022895813, 0.05728175491094589, 0.48968958854675293, 0.11993813514709473, -0.08092084527015686, 0.38683566451072693, -0.118393175303936, -0.4251691699028015, -0.3382435441017151, -0.7465333342552185, -0.11577256768941879, 0.21493709087371826, -0.12429647147655487, 0.293196976184...
WHERE so.type = 'U' AND ac.is_rowguidcol = 1 UNION ALL SELECT OBJECT_SCHEMA_NAME(so.id) +'.'+ OBJECT_NAME(so.id) AS TableName, so.id AS TableID, tt.Ordinal + 1 AS Ordinal FROM dbo.sysobjects so INNER JOIN sys.all_columns ac ON so.ID = ac.object_id INNER JOIN sys.foreign_keys f...
[ -0.21538874506950378, 0.06121812388300896, 0.4764253497123718, 0.025086086243391037, 0.037698276340961456, 0.3284163475036621, -0.041610054671764374, -0.6408288478851318, -0.19266663491725922, -0.6270303130149841, -0.39307650923728943, 0.2556781768798828, -0.21677084267139435, 0.2599243223...
so.type = 'U' AND ac.is_rowguidcol = 1 ) SELECT DISTINCT t.Ordinal, t.TableName FROM TablesCTE t INNER JOIN ( SELECT TableName as TableName, Max (Ordinal) as Ordinal FROM TablesCTE GROUP BY TableName ) tt ON (t.TableName = tt.TableName AND t.Ordinal = tt.Ordinal) ORDE...
[ -0.08631250262260437, 0.1004340872168541, 0.6200336217880249, -0.04597555473446846, 0.04178145155310631, -0.02975120022892952, 0.1424608677625656, -0.3076935410499573, -0.17017681896686554, -0.48247745633125305, -0.29909244179725647, 0.4908342659473419, -0.23618601262569427, 0.099612340331...
any foreign key relations. (By truncating in descending order) I will also be able to safely fill the tables with data from another database by filling the tables in ascending order.
[ -0.23368699848651886, 0.17829199135303497, 0.5902292132377625, -0.027485817670822144, 0.33451366424560547, -0.12678155303001404, 0.02485078014433384, 0.26627117395401, -0.2992303669452667, -0.5300499200820923, -0.5839722156524658, 0.31888312101364136, -0.08270423859357834, 0.18512292206287...
I am trying to get the OpenNetCF.Net FTP Components working with my PDA application. I am struggling to get it doing any more than connecting to the server and wondered if anyone knew of any sample code I could use to learn how to use it with? I need to be able to download and upload files, as well as determining the ...
[ 0.6828266382217407, 0.007746216841042042, 0.32043442130088806, 0.02502329833805561, -0.14939165115356445, -0.313570499420166, 0.12910312414169312, 0.22957171499729156, -0.40171897411346436, -0.6314061880111694, 0.03267928585410118, 0.2905265986919403, 0.03579580411314964, 0.146811544895172...
If somebody may knows a blog posting with a basic example, that would help a lot. Google search gives me mostly links to add-in-express.com. tia This looks like the answer: <http://community.opennetcf.com/competition/folders/opennetcfnetftp/entry64583.aspx>
[ 0.5489129424095154, 0.006751032546162605, -0.007474364247173071, 0.13506384193897247, -0.23889371752738953, -0.2614571750164032, 0.33524414896965027, -0.15275640785694122, -0.3252582252025604, -0.344740629196167, 0.14631356298923492, 0.2314915955066681, -0.04743729159235954, -0.01601587980...
I'm using this database where the date colomn is a numeric value instead of a Date value. Yes, I know I can change that with a mouseclick, but all the applications using that database were made by one of my predecessors (and everyone after him just ignored it and built on). So if I'd change it to Date a lot af applic...
[ 0.4004206359386444, 0.222187802195549, 0.5681005716323853, -0.06304145604372025, 0.3614560663700104, 0.07190722972154617, -0.17189162969589233, 0.04325626417994499, -0.4396677017211914, -0.4674127399921417, 0.21314463019371033, 0.42916956543922424, -0.22647573053836823, 0.23440751433372498...
even ugly. I rather have small inputfields for day - month - year, but there comes waltzing in the numeric date in the database. I would have to calculate the date back to the numeric value somehow... There must be an easy solution to this. Right? I'm using ASP(vbscript) for the application, it's for an intraweb...
[ 0.07819550484418869, 0.20724362134933472, 0.7115129828453064, -0.09254486113786697, 0.03556884825229645, 0.141046404838562, 0.13818566501140594, 0.044492579996585846, -0.4136846363544464, -0.6322598457336426, -0.02716517075896263, 0.09397256374359131, -0.11028769612312317, 0.45970815420150...
correct date / time ' Debug.Print Format(rs!NumberDate, "dd/mm/yyyy hh:nn:ss") ``` EDIT re comment: Here is a small test that shows dates returned: ``` Set cn = CreateObject("ADODB.Connection") Set rs = CreateObject("ADODB.Recordset") strFile = "C:\Docs\LTD.mdb" cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _ ...
[ -0.051932454109191895, 0.03001314029097557, 0.7265301942825317, 0.2065216451883316, 0.46242696046829224, -0.08139260858297348, 0.10261967033147812, -0.07725197076797485, -0.23301424086093903, -0.5378351807594299, -0.22706520557403564, 0.13650928437709808, 0.07300367206335068, 0.34887358546...
I am testing the application in the debug mode under several conditions. Now I'm doing it by writing some of the states and executed functions on the piece of paper and then comparing the scenarios. Does anyone know if there is any built-in functionality in VS2008 or any additional tool that could record the selected ...
[ 0.5103926658630371, 0.02502559870481491, 0.4427416920661926, 0.2538297772407532, 0.31097111105918884, -0.032213497906923294, 0.5331342220306396, -0.22837965190410614, -0.04970472678542137, -0.5091861486434937, -0.0008404004038311541, 0.1687040776014328, 0.0022615783382207155, 0.27267447113...
Format(rs!NumberDate, "dd/mm/yyyy hh:nn:ss") ``` EDIT re comment: Here is a small test that shows dates returned: ``` Set cn = CreateObject("ADODB.Connection") Set rs = CreateObject("ADODB.Recordset") strFile = "C:\Docs\LTD.mdb" cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & strFile & ";" ...
[ -0.07098645716905594, 0.13957269489765167, 0.818675696849823, 0.21922384202480316, 0.14956706762313843, -0.0776384249329567, -0.11307791620492935, -0.36180731654167175, -0.5605220198631287, -0.5064765214920044, -0.3479243218898773, 0.2937253415584564, -0.0035659472923725843, 0.385017722845...
I had been steering away from C# for a while, because it was "just a Windows thing", and it fell out of my current needs. However It's been gaining popularity and now with Mono catching up, it's becoming more attractive but I was wondering what IDE are people using to Code C#(with Mono) on \*nix platforms. I think [Mon...
[ 0.5671706795692444, -0.08146801590919495, -0.04037150368094444, -0.21197901666164398, -0.4049600064754486, -0.13647644221782684, 0.17479509115219116, 0.2642025649547577, -0.39257508516311646, -0.06885972619056702, -0.14540454745292664, 0.48085272312164307, -0.23195360600948334, 0.365828067...
I'm trying to understand the event system of Kohana. The only thing i don't understand is, where to place the Event::add code. It should be in a place where it is executed before any events are fired. Or am I missing something? What i want to achieve is to construct a class that is available everywhere, but don't r...
[ 0.36845657229423523, -0.09329476952552795, -0.23418249189853668, 0.0729430764913559, -0.2924896478652954, 0.030342787504196167, -0.05886538326740265, -0.7319728136062622, -0.27419307827949524, -0.443310022354126, 0.13442902266979218, 0.6328057050704956, 0.030353283509612083, 0.022236961871...
started so you can attach a hook to an event
[ 0.5910983085632324, -0.8457366824150085, 0.2260841429233551, -0.11924058943986893, -0.1365002542734146, -0.1416929066181183, -0.11206924170255661, -0.05501650646328926, -0.4370572865009308, -0.0031737114768475294, 0.34422504901885986, -0.1730937361717224, 0.1644693911075592, -0.34731397032...
I am trying to display a pie chart that shows sales by company. However there are a lot of companies that only have a tiny sales which makes the pie chart look rubbish. Is there a way to group companies like this into a single "Other" category? Chart Expert -> Data then select your "on change of" field then click the...
[ 0.490292489528656, 0.0904068574309349, 0.1299460381269455, -0.12198098003864288, -0.09510258585214615, 0.2628621459007263, -0.08143675327301025, 0.21227893233299255, -0.3146340548992157, -0.32063499093055725, 0.08334743231534958, 0.5377662777900696, 0.17777159810066223, 0.1929309368133545,...
I am reorganizing my source files into a single solution with a single project, due to various reasons: * a paranoic configured antivirus software; * [Advices on partitioning code through .NET assemblies](http://codebetter.com/blogs/patricksmacchia/archive/2008/12/08/advices-on-partitioning-code-through-net-assemblies...
[ 0.24042803049087524, 0.400738000869751, 0.07914360612630844, -0.2861826419830322, -0.0580105297267437, 0.00674047414213419, 0.2896853983402252, -0.20496481657028198, -0.5442909598350525, -0.6281604170799255, -0.2444290965795517, 0.13537926971912384, -0.25611650943756104, 0.3402807116508484...
multiple namespaces? Yes - use folders. If you create a folder within a project, new classes within that folder will automatically use the folder name as the basis for the namespace. For instance, if you have a project with a default namespace of "Company.Project" and a folder "Foo" containing "Bar.cs" you'll end up ...
[ 0.32180359959602356, 0.15734708309173584, 0.2286241352558136, 0.19882239401340485, 0.1428554356098175, 0.24788497388362885, -0.24023349583148956, 0.12541060149669647, -0.4961186647415161, -0.625832200050354, -0.06749095767736435, 0.18932479619979858, -0.48671233654022217, 0.508777856826782...
I'm trying to find a suitable protocol middleware for my next distributed application. I've found several specifications in the last few days and was wondering if I missed an important one? It should be a binary protocol, support RPCs and optionally have open-source implementations in different languages. Here's the li...
[ 0.43811655044555664, 0.14800524711608887, 0.1521950215101242, 0.19519588351249695, -0.19852986931800842, -0.15889084339141846, 0.004557336680591106, 0.04454205185174942, -0.3106142282485962, -0.7467015385627747, 0.01435800176113844, 0.3030638098716736, -0.37233874201774597, 0.1288513690233...
there's the [Google code](http://code.google.com/apis/protocolbuffers/). * For C# there are at least three projects (including [mine](http://github.com/jskeet/dotnet-protobufs/tree) or [Marc's](http://code.google.com/p/protobuf-net/)) * For other languages/platforms, see the [relevant wiki page](http://code.google.com/...
[ 0.5438624620437622, -0.012925282120704651, 0.27497610449790955, -0.07073672115802765, -0.2719699740409851, 0.015765128657221794, -0.010861420072615147, 0.02788293920457363, -0.19931553304195404, -0.7293033599853516, -0.16115617752075195, 0.2558213174343109, -0.15919530391693115, -0.0275355...
I have a JSON as follows ``` { columns : [RULE_ID,COUNTRY_CODE], RULE_ID : [1,2,3,7,9,101,102,103,104,105,106,4,5,100,30], COUNTRY_CODE : [US,US,CA,US,FR,GB,GB,UM,AF,AF,AL,CA,US,US,US] } ``` I need to retrive the column names from the columns entry and then use it to search the rest of the entries u...
[ -0.12231588363647461, 0.2791873812675476, 0.5244609713554382, -0.22476258873939514, 0.012402163818478584, 0.26062870025634766, 0.20899255573749542, -0.19326137006282806, -0.35922470688819885, -0.6928422451019287, -0.24795016646385193, 0.1543591320514679, -0.24142377078533173, -0.1273101866...
row) { .... }); }); ```
[ -0.39842069149017334, 0.2596578896045685, 0.5186105370521545, -0.47522127628326416, 0.15211500227451324, -0.039685364812612534, 0.13454829156398773, -0.35129082202911377, 0.1139746829867363, -0.46084046363830566, -0.42219334840774536, 0.5905799865722656, -0.6424596905708313, 0.328138947486...
I am working on creating an immutable class. I have marked all the properties as read-only. I have a list of items in the class. Although if the property is read-only the list can be modified. Exposing the IEnumerable of the list makes it immutable. I wanted to know what is the basic rules one has to follo...
[ 0.4253491759300232, 0.12120714783668518, 0.07952544093132019, 0.0919489860534668, 0.061645373702049255, -0.21774302423000336, 0.5014736652374268, -0.017233889549970627, -0.011736859567463398, -0.6537853479385376, -0.1280028223991394, 0.5337095856666565, -0.2687908709049225, 0.4500723183155...
the constructor, it should be copied to keep the caller from modifying it later * if you're going to return your collection, either return a copy or a read-only version (for example, using [ArrayList.ReadOnly](http://msdn.microsoft.com/en-us/library/system.collections.arraylist.readonly.aspx) or similar - you can combi...
[ 0.16424302756786346, -0.10192369669675827, 0.48064953088760376, 0.23369978368282318, 0.008448104374110699, 0.0824589654803276, 0.263700932264328, -0.4281017780303955, -0.354767382144928, -0.6188528537750244, -0.23778021335601807, 0.6429896950721741, -0.3725595772266388, 0.2946077585220337,...
copy away whatever state you will want to retain and avoid returning entire mutable objects, unless you copy them before giving them back to the caller - another option is to return only immutable "sections" of the mutable object - thanks to @Brian Rasmussen for encouraging me to expand this point
[ 0.1731089949607849, 0.007430233061313629, -0.007817993871867657, 0.16649264097213745, 0.05680571496486664, 0.1575172394514084, 0.39423006772994995, 0.15501874685287476, -0.27866092324256897, -0.5065951347351074, -0.4805396795272827, 0.2781568169593811, -0.37784525752067566, 0.4810641407966...
I was curiious to know what type of structures you use for your project references? Where I work the developers have a shared folder called AssemblyCache (\\MACHINENAME\AssemblyCache) which is mapped to an R:\ via GPO in Windows 2008 AD (tied to the Developers AD group). Our shared components have post-build events t...
[ 0.31638920307159424, 0.5938942432403564, 0.21273361146450043, -0.3327659070491791, -0.403537392616272, 0.1827743500471115, 0.20856092870235443, -0.1634787917137146, 0.014550709165632725, -0.6153682470321655, 0.19863340258598328, 0.5078684687614441, -0.19202159345149994, 0.2878088355064392,...