text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I'm making a webpage with dynamic content that enters the view with AJAX polling. The page JS occasionally downloads updated information and renders it on the page while the user is reading other information. This sort of thing is costly to bandwidth and processing time. I would like to have the polling pause when the ...
[ 0.4929601550102234, 0.1305888444185257, 0.2145705670118332, 0.0890650674700737, -0.2002446949481964, -0.0236207265406847, -0.07283030450344086, 0.15112558007240295, -0.19119031727313995, -0.6721307635307312, 0.3137285113334656, 0.5294235348701477, -0.0502006858587265, 0.13697923719882965, ...
to do it, and it seems to be trying to break out of the sandbox of the html DOM and reach into the user's system. It may be impossible, if the JS engine has no knowledge of its rendering environment. I've never even seen a different site do this (not that the user is intended to see it...) So it makes for an interesti...
[ 0.2731231451034546, 0.0300950575619936, 0.060389887541532516, 0.04264784976840019, -0.07463649660348892, -0.236773282289505, 0.35464611649513245, -0.005521134007722139, -0.4104253947734833, -0.1743890941143036, 0.01967114582657814, 0.38829290866851807, -0.24817106127738953, -0.277310699224...
best solution would be something like this: ``` var inactiveTimer; var active = true; function setTimer(){ inactiveTimer = setTimeOut("stopAjaxUpdateFunction()", 120000); //120 seconds } setTimer(); document.onmouseover = function() { clearTimeout ( inactiveTimer ); setTim...
[ 0.01018163375556469, -0.5568634867668152, 0.916654646396637, -0.28164583444595337, 0.5491732954978943, -0.1462295651435852, 0.5370247960090637, -0.3369881212711334, 0.07683801651000977, -0.5752750635147095, -0.47042641043663025, 0.679394006729126, -0.12536004185676575, -0.07138482481241226...
resumeAjaxUpdate(); }; //clear the timer and reset it. function stopAjaxUpdateFunction(){ //Turn off AJAX update active = false; } function resumeAjaxUpdate(){ if(active == false){ //Turn on AJAX update active = true; }else{ //do nothing since we are still active and the AJAX update is still on...
[ 0.18449236452579498, 0.03903067111968994, 0.725562334060669, -0.415958970785141, 0.16230736672878265, -0.14384488761425018, 0.5890604853630066, 0.2709306478500366, 0.18900026381015778, -0.37460556626319885, -0.23010894656181335, 0.7133890986442566, -0.15108442306518555, -0.0117069426923990...
I have some XML in an XmlDocument, and I want to display it on an ASP.NET page. (The XML should be in a control; the page will have other content.) Right now, we're using the Xml control for that. Trouble is, the XML displays with no indentation. Ugly. It appears that I'm supposed to create an XSLT for it, but that se...
[ 0.3525989353656769, 0.12276866286993027, 0.2785048186779022, 0.3948449492454529, -0.07066597044467926, -0.2578302025794983, -0.16117578744888306, 0.08504492789506912, -0.007316366769373417, -0.8233485221862793, 0.19937656819820404, 0.4499475061893463, -0.2091943323612213, 0.108913592994213...
write to a StringBuilder or MemoryStream, and output the result inside a <pre> tag
[ 0.10041671246290207, -0.1481178104877472, 0.08051974326372147, 0.12179286777973175, 0.19141682982444763, -0.006078220903873444, -0.040967196226119995, 0.27784597873687744, 0.26422297954559326, -0.4423253536224365, -0.5506661534309387, 0.1750388890504837, -0.14768698811531067, 0.21260116994...
I've got a project coming up that will involve connecting to one to many backend systems through the same interface; let's call it IBacksideProvider. I'd like to use Unity to inject these providers at runtime. The problem is that since we're talking about 1...n backend systems, I'd need to register 1...n implementati...
[ 0.4970623254776001, 0.06928691267967224, -0.14746275544166565, -0.09127966314554214, -0.23127047717571259, -0.4199622869491577, 0.2754933536052704, -0.2155551016330719, -0.15938761830329895, -0.674738347530365, 0.43018513917922974, 0.5085854530334473, -0.44312506914138794, 0.02645443193614...
wouldn't work? <http://msdn.microsoft.com/en-us/library/cc440943.aspx> > To retrieve a list of object instances from the container based on named registrations, use the ResolveAll method and specify a value for the object type (the registration type). The ResolveAll method returns an IEnumerable generic List of the no...
[ 0.1937391757965088, -0.16694596409797668, 0.2902403175830841, 0.04295635595917702, 0.3552232086658478, 0.22509972751140594, 0.26149362325668335, -0.3179515302181244, 0.02098138816654682, -0.6468515992164612, -0.09085202217102051, 0.31318697333335876, -0.4687259793281555, 0.2268306165933609...
I was using [CodeRush](http://en.wikipedia.org/wiki/CodeRush) quite while ago and now I'm planning to use it again. I've installed the trial but I forgot all the cool features except `Alt` + `Home` (drop a marker). And when you don't know some cool tricks it's really like burning money (since it's not cheap for persona...
[ 0.13205811381340027, 0.11305861175060272, 0.2360875904560089, -0.0022601154632866383, -0.08023254573345184, -0.11449325084686279, 0.09413435310125351, -0.14973050355911255, -0.1158958375453949, -0.8504891395568848, 0.23922812938690186, 0.6383106708526611, 0.05205908045172691, -0.1069517806...
navigate between references to identifiers. * `Shift` + `F12` to find references in new cool window. * `Ctrl` + `Shift` + `.` for recent files. * `Ctrl` + `Shift` + `Q` for jumping to any function / class. * `f` `e` `space` / `p` `i` `space` for "for loops". I recently installed the Xpress version and went on a similar...
[ 0.13923771679401398, 0.17228496074676514, 0.2510693371295929, 0.22065046429634094, -0.02938806638121605, -0.32454824447631836, 0.5984016060829163, 0.10025684535503387, -0.0490918792784214, -0.6797506213188171, 0.09186219424009323, 0.5145927667617798, -0.35273727774620056, 0.000718970608431...
I've got some blank values in my table, and I can't seem to catch them in an IF statement. I've tried `IF @value = ''` and `if @value = NULL` and neither one catches the blank values. Is there any way to test whether or not a varchar is entirely whitespace? AHA! Turns out I was testing for null wrong. Thanks. To co...
[ 0.03836508095264435, 0.13922835886478424, -0.11374101042747498, -0.30106672644615173, -0.3876180648803711, 0.13316787779331207, 0.4124591052532196, 0.2016286849975586, -0.23915857076644897, -0.40027639269828796, -0.035413965582847595, 0.440146267414093, -0.23583121597766876, 0.275439888238...
I've been working on a comprehensive build system that performs distributed builds on multiple machines for quite some time now. It correctly handles dependencies and seemed to scale reasonably well, so we've added more projects and more machines, but it looks like it could perform better. The problem I have is one of...
[ 0.5464497208595276, 0.40098342299461365, -0.1266978532075882, -0.024367043748497963, 0.11701329797506332, 0.37638500332832336, 0.10485289990901947, -0.07538285851478577, -0.18094705045223236, -0.9132582545280457, 0.3525521457195282, 0.6641489863395691, -0.14480529725551605, 0.3897409439086...
query that lists the possible assignments. Now I need to perform those assignments as effectively as possible. The smallest example is two projects 1 and 2 with two machines A and B. Machine A can build either project but machine B can only build project 1. So I end up with a list of pairs (A,1), (A,2), (B,1). If I pr...
[ -0.13065342605113983, -0.07691974192857742, 0.06986457854509354, 0.2609562277793884, -0.03538593277335167, 0.24782544374465942, 0.02508130855858326, -0.26614537835121155, -0.27949681878089905, -0.887324869632721, 0.04135845601558685, 0.2851139008998871, -0.34658390283584595, 0.213525772094...
project 1. But... machine A may be much faster than machine B, and not using machine B at all may be the right answer. I'm sure this is the sort of 'operational research' problem that's been addressed many times before. I don't necessarily need an optimal solution... just an attempt at something better than I have - i...
[ 0.46304216980934143, 0.007162428926676512, -0.2907829284667969, 0.20031151175498962, 0.019051125273108482, -0.0804673358798027, 0.14867272973060608, -0.04046144708991051, -0.38952335715293884, -0.6170406341552734, 0.09178505837917328, 0.5915393233299255, -0.3326181471347809, -0.10642034560...
have invented lots of heuristics to generate schedules, but which ones are good is highly problem-dependent. A couple of common heuristics are: * Schedule the shortest task first. * Schedule the most highly constrained task first, e.g., pick the task that can run on the fewest machines first.
[ 0.3471255302429199, -0.21259655058383942, -0.30504903197288513, 0.489080011844635, 0.04701552912592888, -0.04865633696317673, -0.17434023320674896, 0.20453648269176483, -0.51153564453125, -0.9664131999015808, -0.0019309469498693943, 0.23710578680038452, -0.35352185368537903, -0.15884526073...
I want something similar to the following pseudocode: ``` myGridView.SelectedIndex = myGridView.DataKeys.IndexOf("mySpecificKey"); ``` I've done some Intellisense exploring, but I haven't found an obvious way to do this. I would want to set SelectedIndex to -1 if DataKey was not found. I've ended up with ``` ...
[ -0.13792167603969574, -0.09760181605815887, 0.5172215104103088, -0.0661436915397644, 0.050140853971242905, 0.15771065652370453, -0.0978623554110527, -0.09843085706233978, -0.15157800912857056, -0.7050904631614685, 0.2246534824371338, 0.5188692808151245, -0.2525516748428345, 0.4054392278194...
End If Next ```
[ 0.14420486986637115, 0.3603355586528778, 0.2261318564414978, -0.01911126635968685, -0.16143210232257843, -0.22428639233112335, 0.008088436909019947, -0.006894322577863932, -0.05340225249528885, -0.49042925238609314, -0.24275994300842285, 0.2957586646080017, 0.04237540438771248, 0.144985347...
I've got a simple application that shows pictures dragged onto it. I'd like the application to resize itself according to the picture it displays. The code below does just that: ``` // Load the picture Bitmap picture = new Bitmap(s); // Calculate the size of the main form this.Size = new Size(picture.Width + ...
[ 0.42885464429855347, -0.0374474860727787, 0.8196834921836853, -0.04904358088970184, 0.05906859040260315, 0.012338245287537575, -0.1890411376953125, -0.5315893292427063, -0.5072420835494995, -0.6462290287017822, 0.15724872052669525, 0.6015974879264832, -0.1979617029428482, 0.184456318616867...
this.tableLayoutPanel.Padding.All + this.tableLayoutPanel.Margin.All) * 2, picture.Height + (int)this.tableLayoutPanel.RowStyles[1].Height +
[ -0.21269075572490692, 0.1291315108537674, 0.8929634094238281, 0.07417561858892441, -0.09383043646812439, 0.1965731829404831, -0.2419152408838272, -0.25676649808883667, -0.3863624036312103, -0.8298885226249695, -0.08600935339927673, 0.04658119007945061, 0.0011880232486873865, -0.16273422539...
(this.pictureBox.Padding.All + this.pictureBox.Margin.All + this.tableLayoutPanel.Padding.All +
[ -0.15592405200004578, 0.17014648020267487, 1.0057274103164673, 0.15391665697097778, 0.2749806046485901, -0.03931339085102081, -0.1932736188173294, -0.5775268077850342, -0.30891668796539307, -0.8291203379631042, -0.24467335641384125, 0.14069801568984985, -0.14471469819545746, -0.02422491088...
this.tableLayoutPanel.Margin.All) * 2); // Display the file. this.pictureBox.Image = picture; ``` It think it's fairly obvious where I'd like some help improving this. As the forms get more complicated, so would the calculation of the appropriate size. Suggestions? You could compute the difference in size between t...
[ 0.5617993474006653, 0.09310504049062729, 0.7162045240402222, 0.011857328936457634, 0.10540805757045746, -0.1937851458787918, -0.09565231949090958, -0.1585201919078827, -0.1429419219493866, -0.8286181092262268, 0.16099070012569427, 0.47195661067962646, -0.1772538423538208, 0.033966619521379...
Based on the answers to [this question about dynamically accessing tables](https://stackoverflow.com/questions/350081/how-do-i-supply-the-from-clause-of-a-select-statement-from-a-udf-parameter), I've decided to take a couple steps back and get some advice on the larger picture. I am revisiting the database design of ...
[ 0.25961440801620483, 0.03160404786467552, 0.6022059321403503, -0.2831801474094391, -0.027363380417227745, 0.04926252365112305, -0.08883704990148544, -0.12002871930599213, -0.2818867564201355, -0.7622776031494141, 0.07072389870882034, 0.42985740303993225, -0.17118829488754272, 0.18947638571...
displays a list of recent codes: ``` 02691 AFF1 32391 Lot# 23 ``` and so on. For each code there is a record in a Productions table that starts with: ``` ProductionCode varchar(80), Template varchar(50), ... ``` The template represents one of a number of tables, and also a foreign key into template field d...
[ 0.03329247236251831, 0.14302971959114075, 0.4808736741542816, -0.010345643386244774, 0.1969163566827774, 0.04501358047127724, -0.250736802816391, -0.4981057643890381, -0.3569604456424713, -0.6612631678581238, -0.06470798701047897, 0.3492562770843506, -0.13909928500652313, 0.072221033275127...
varchar(50) Formatting varchar(50) // This is a .NET style formatting string, say 0.00 or ## ... ``` Then there are the Template tables themselves, which hold a ProductionCode, a Time for each test, and whatever data was collected by the test. So to create my datagrid, on the fly, I start by ``` SELECT * FROM ...
[ 0.4426216781139374, 0.024963771924376488, 0.4588790237903595, -0.21635743975639343, -0.08018843084573746, 0.07691439986228943, 0.08169256150722504, -0.6201856136322021, 0.14499837160110474, -0.6110681295394897, -0.014257986098527908, 0.578372597694397, 0.02400803007185459, 0.11383778601884...
do: ``` SELECT * FROM ScoreField WHERE Template = @Template ``` Where @Template is actually, the Template field value for the one record of ProductionRun returned. Then I do: ``` SELECT * FROM @Template WHERE ProductionCode = @Code ``` But actually, I just concatenate the Template name I got in part one. and th...
[ 0.40350088477134705, 0.30425500869750977, 0.23460087180137634, -0.12476414442062378, -0.10145415365695953, 0.05447102338075638, -0.09750857204198837, -0.2739998698234558, -0.04747737571597099, -0.33589687943458557, 0.2525840401649475, 0.5183109641075134, -0.1900862157344818, 0.004904262255...
approach. I've got data in different tables, and I want to apply formatting to the data, and be able to do it all within one interface, instead of forcing the user to guess what template their data is in. I want to be able to add templates without screwing up the system too much. Obviously, this is not a simple progra...
[ 0.5932087302207947, 0.07416869699954987, 0.287651389837265, 0.1551271677017212, -0.17801932990550995, -0.1724962443113327, 0.3667978048324585, -0.16990043222904205, -0.20692697167396545, -0.43747958540916443, 0.16884806752204895, 0.722553551197052, -0.12695032358169556, -0.1223229095339775...
If an object has a property that is a collection, should the object create the collection object or make a consumer check for null? I know the consumer should not assume, just wondering if most people create the collection object if it is never added to. You can also use the "Lazy initailizer" pattern where the collect...
[ 0.24037668108940125, -0.09291655570268631, -0.37342333793640137, 0.19828464090824127, 0.0036589656956493855, -0.3566277325153351, 0.14905989170074463, -0.026878343895077705, -0.24891479313373566, -0.34802481532096863, -0.28170523047447205, 0.48972004652023315, -0.42148780822753906, 0.39098...
Division { private int divId; public int DivisionId { get; set; } private Collection<Employee> emps; public Collection<Employee> Employees { get {return emps?? (emps = new Collection<Employee>(DivisionId));}} } ``` EDIT: This implementation pattern is, in general, not...
[ 0.21822215616703033, -0.22842536866664886, 0.13819697499275208, 0.024638032540678978, 0.03946956619620323, 0.06055566295981407, 0.41780731081962585, -0.21048201620578766, -0.3964731991291046, -0.5346804857254028, -0.3616237938404083, 0.30493253469467163, -0.40816372632980347, 0.43778979778...
not matter as DivisionId is immutable and although both threads would get different collections, they would both be valid. Whne the second thread fihishes, therefore, emps would be a valid collection. The 'probably' is because it might be possible for the first thread to start using emps before the second thread resets...
[ 0.2036941945552826, -0.18927466869354248, -0.12803326547145844, 0.19948285818099976, 0.11088008433580399, -0.16377726197242737, 0.23374077677726746, -0.15410728752613068, -0.5776200890541077, -0.5169188976287842, -0.026699338108301163, 0.3829643726348877, -0.3822186291217804, 0.16462744772...
I'm writing a C# application for a proprietary Windows CE 4.2 device (for which I don't have the specs or pretty much any other information. I've got access to the file system, and that is basically it.) I also can't get support from the original manufacturer. Now, I can install the .NET Compact framework just fine, a...
[ 0.3539610207080841, 0.25632065534591675, 0.2257978767156601, 0.08422411978244781, 0.26598647236824036, -0.3841136693954468, 0.25973448157310486, 0.2243805080652237, -0.13333727419376373, -0.9131176471710205, -0.17931853234767914, 0.810158908367157, -0.2663224935531616, 0.24812087416648865,...
I try to install again, it says the framework is already installed, and asks if I want to reinstall. So obviously the registry keys are still there) 2. The files are deleted even if I installed the framework onto a removable flash card. (Other files on the storage card are left alone, however) I know there isn't much ...
[ 0.25805115699768066, 0.32356342673301697, 0.35361266136169434, 0.011154361069202423, 0.03879176825284958, -0.4505777657032013, 0.6030157804489136, -0.100827656686306, -0.3307783305644989, -0.47631993889808655, -0.21761691570281982, 0.5522652864456177, -0.24102221429347992, 0.19655719399452...
behavior. For that matter, any advice on how to troubleshoot this further myself? At the moment, the best solution I can see is to simply reinstall everything at every boot, but that seems a bit clumsy. **Edit:** After a reset, GACLOG.TXT found in the root of the filesystem contains > CGACUTIL: Initializing 12/08/20...
[ -0.13593856990337372, 0.16130824387073517, 0.44432440400123596, -0.006134559400379658, -0.2336643636226654, -0.46643000841140747, 0.5928325653076172, 0.19233912229537964, -0.3933313190937042, -0.6692975759506226, -0.15720434486865997, 0.6803755760192871, -0.4953446686267853, 0.220454618334...
and CF behaviors that you're seeing here that's giving you this behavior. Unfortuantely there's no really good solution, but I can at least give you some guidance. 1. Windows CE stores the current object store, including files in the filesystem not specifically on a persistent store in RAM. This includes any files and...
[ 0.31941545009613037, 0.22386565804481506, 0.5348729491233826, 0.08280077576637268, 0.34307730197906494, -0.415585458278656, -0.04459819570183754, 0.09744605422019958, -0.25371837615966797, -0.9078159928321838, -0.20281600952148438, 0.5808148384094238, -0.2983662486076355, 0.352006912231445...
in the file system (as a hive) or in some non-visible location (there are two distinct ways an OEM can store it). This is *not* lost on reset. Only items saved and not flushed are lost. 3. As an addendum to #2 - the registry changes are flushed when the RegFlushKey API is called. Installing a CAB **automatically** call...
[ 0.2813194990158081, -0.08051574230194092, 0.5708592534065247, -0.036158300936222076, 0.14860697090625763, -0.16288742423057556, 0.13388529419898987, -0.16313612461090088, -0.4135396182537079, -0.781011700630188, -0.1992933452129364, 0.5238226652145386, -0.36811330914497375, 0.2367834001779...
assembly is unloaded (I complained to the CF team about this years ago to no avail). What this means is that if you install the CF to a storage card and run your app this happens: 1. CF files are copied to the persistent store during unpacking the CAB 2. Installation reg keys are written 3. Registry is flushed (saved...
[ 0.31327879428863525, 0.23112034797668457, 0.651760995388031, -0.25066688656806946, 0.25225621461868286, -0.021050525829195976, 0.49937039613723755, -0.2903605103492737, -0.5433066487312317, -0.5799145102500916, 0.04223277419805527, 0.8605334162712097, -0.5643518567085266, 0.052689038217067...
but can no longer run. A hack solution: use a native app to "bootstrap" to launch your app. Have it check for the CF files in \Windows on run and if they aren't there install the CF CAB from a place in persistent storage (mark it as read-only so wceload won't delete it). The other option is to distribute the CF assem...
[ 0.5758041143417358, 0.10729878395795822, 0.353469580411911, 0.1257956624031067, 0.1487707644701004, -0.2571307122707367, 0.5708968639373779, -0.11107416450977325, -0.1561369001865387, -0.4817086458206177, 0.09904997795820236, 0.580527126789093, -0.44432228803634644, -0.010052786208689213, ...
When I write an app, I use the System.Data interfaces (IDbConnection, IDbCommand, IDataReader, IDbDataParameter, etc...). I do this to reduce vendor dependencies. Unless, I'm doing a simple test app, it just seems like the ethical thing to do when consulting. However, it seems like all the code I see uses the System.D...
[ 0.34050989151000977, 0.4897247850894928, 0.025341609492897987, 0.23326878249645233, -0.320835679769516, 0.016682961955666542, 0.22553536295890808, 0.0992346778512001, 0.08416000008583069, -0.7244192361831665, 0.07998728007078171, 0.6221128702163696, -0.2653411030769348, -0.1122075542807579...
classes have more functionality, for example adding a parameter to a SqlCommand object is one method, where as adding it to an IDbCommand is an irritating 4+ lines of code. But then again; writing a little helper class for these limitations is pretty simple. I've also wondered if programming against the interfaces whe...
[ 0.31482237577438354, -0.07382310926914215, -0.05541835352778435, 0.5683981776237488, -0.3487511873245239, -0.22384312748908997, 0.3401341140270233, 0.055260781198740005, -0.13572415709495544, -0.6516311764717102, 0.1683811992406845, 0.44458988308906555, -0.24898956716060638, 0.243289127945...
the interfaces? EDIT: To summarize some of the answers below, and throw in some thought's I had while reading them. Possible pitfalls to using interfaces for vendor neutrality: * Vendor specific keywords embedded in your SELECT statements (all my ins, upd, & del's are in procs, so that's not a problem) * Binding dir...
[ 0.22870612144470215, -0.1619313508272171, 0.10845017433166504, 0.4806622862815857, -0.30701449513435364, -0.18711967766284943, 0.0025128854904323816, -0.04445268586277962, -0.12658503651618958, -0.7861514687538147, 0.015637245029211044, 0.6791360974311829, -0.10161872208118439, -0.03334638...
are differences to the SQL you're going to have to give the classes, depending on the type of database engine you're talking to, so even if you manage to write all your code to use the interfaces, you still need to write multiple sets of SQL. Or, you can do what we have done, write our own layer that takes care of all...
[ 0.49377089738845825, 0.15449459850788116, 0.10093744844198227, 0.39998215436935425, -0.01766330748796463, -0.055519718676805496, -0.16343526542186737, -0.06674989312887192, -0.18972396850585938, -0.5218392014503479, 0.1271478682756424, 0.5967677235603333, -0.22496891021728516, 0.1393841207...
of the functions with `SQL::`, which lets our code identify the special functions that needs to be rewritten. These are then parsed out, and rewritten properly, even so far as to swap around argument order if necessary. Small things like the name of the function that returns the current server date and time can be don...
[ -0.12796436250209808, -0.1487535834312439, 0.48826420307159424, 0.180526003241539, 0.1333014816045761, 0.09565596282482147, -0.06509998440742493, 0.00722300261259079, -0.09446251392364502, -0.4098208546638489, 0.07246348261833191, 0.4484635889530182, -0.17747865617275238, 0.063125938177108...
off in the sense that we don't worry much about the SQL that needs to be written.
[ 0.766372561454773, 0.10778318345546722, 0.009881025180220604, 0.3473628759384155, -0.1450500786304474, -0.44778716564178467, -0.22623211145401, 0.5022501945495605, 0.08495626598596573, -0.12579204142093658, 0.20441026985645294, 0.409105122089386, -0.02379857376217842, -0.2284599393606186, ...
I have a Winform with a BackgroundWorker. The BackgroundWorker, among other things, has to make an HTTP call to a page, fill out some data, submit the form, and retrieve the HTML that comes back after "clicking" the submit button. I've run into a number of roadblocks while doing this: 1. Can't POST the data because th...
[ 0.4451218247413635, -0.04410148411989212, 0.6172817945480347, 0.14408116042613983, -0.04869696497917175, -0.30835026502609253, 0.26314452290534973, -0.30789515376091003, 0.28017157316207886, -0.5982187986373901, 0.13231222331523895, 0.5382744073867798, -0.0037282216362655163, 0.16126480698...
Apartment) 4. Can't run another seperate thread because the BW has to sit and wait for the result before it can continue (Can't, or at least I don't know a way to do this that won't crash) 5. Can't change the ApartmentState of the thread because it's a BackgroundWorker and it throws if told to go to STA mode What shou...
[ 0.5559177398681641, 0.09192395955324173, 0.5834150314331055, 0.11207203567028046, 0.053284890949726105, 0.11975311487913132, 0.6485977172851562, -0.5662588477134705, -0.12894262373447418, -0.717679500579834, -0.14363157749176025, 0.35183265805244446, -0.44836533069610596, 0.096775963902473...
suspect that WebClient or HttpWebRequest will do the job fine.
[ 0.4908377230167389, -0.147297203540802, 0.2751276195049286, 0.18112939596176147, -0.05421362444758415, -0.2305285781621933, 0.09520187228918076, 0.23194348812103271, -0.21345335245132446, -0.6034367680549622, -0.043757952749729156, 0.45411217212677, 0.14761197566986084, -0.1735511571168899...
I have an asp.net ascx control file and I have put the control on an aspx page. The aspx page has a button in which when I press enter on the keyboard, I want it to fire the event handler for the button. Is there a way to set this? I am using a master page with a button already on it, so now when I press the enter key...
[ 0.09400226920843124, -0.4434264600276947, 0.518964946269989, 0.009410835802555084, 0.0521182082593441, -0.013772529549896717, 0.07397186756134033, -0.11249861121177673, -0.2640164792537689, -0.47164273262023926, -0.1946396380662918, 0.8897885680198669, -0.22987012565135956, -0.183326244354...
panel currently has focus.
[ 0.4016484320163727, -0.2874199151992798, 0.4137066900730133, -0.184845969080925, -0.13314414024353027, 0.06933899968862534, -0.14548596739768982, -0.06938578188419342, -0.3866502046585083, -0.4732270836830139, -0.27690568566322327, 0.2893928289413452, 0.3845456540584564, 0.1397805958986282...
I need to find a faster way to number lines in a file in a specific way using tools like awk and sed. I need the first character on each line to be numbered in this fashion: 1,2,3,1,2,3,1,2,3 etc. For example, if the input was this: ``` line 1 line 2 line 3 line 4 line 5 line 6 line 7 ``` The output needs to look l...
[ 0.11279264092445374, -0.02766319364309311, 0.4234132468700409, -0.11679410189390182, -0.3042815923690796, 0.4944828450679779, 0.2276533842086792, -0.29474738240242004, -0.09497323632240295, -0.5658833384513855, -0.003062683157622814, -0.0999356359243393, -0.3935052156448364, 0.078031115233...
[ $i -le $lines ] do export start=`expr $i \* 3 + 1` export end=`expr $start + 2` awk NR==$start,NR==$end $1 | awk '{printf("%d%s\n", NR,$0)}' >> data.out export i=`expr $i + 1` done ``` Basically this grabs 3 lines at a time, numbers them, and adds to an output file. It's slow...and then some! I don'...
[ 0.07303516566753387, -0.08436981588602066, 0.5176355242729187, -0.035708919167518616, -0.24154767394065857, 0.4690609872341156, 0.29411959648132324, -0.15093787014484406, -0.19525234401226044, -0.5915684103965759, -0.28199318051338196, 0.03417014330625534, -0.44673478603363037, 0.066737458...
one. Better to do the whole thing in one shot: ``` awk '{print ((NR-1)%3)+1 $0}' $1 > data.out ``` If you prefer to have a space after the number: ``` awk '{print ((NR-1)%3)+1, $0}' $1 > data.out ```
[ 0.3112110197544098, -0.18480437994003296, -0.09015191346406937, 0.035829734057188034, -0.3194243311882019, 0.26011359691619873, 0.27703869342803955, -0.42461517453193665, -0.18055972456932068, -0.5540187954902649, 0.20986591279506683, 0.46388307213783264, -0.3819819688796997, -0.3462589085...
If you know the local path and file name of the file you want the end user to upload (via browser). Then is it possible to pre-set these properties for the HTML file input element (or any upload control)? So when the user clicks 'browse' to select the file to upload, then the dialog has preselected the filename. Btw, ...
[ 0.3701717257499695, -0.054387059062719345, 0.4029586911201477, 0.008905655704438686, 0.0872078612446785, -0.25382575392723083, 0.22545263171195984, -0.01902724616229534, -0.3757903277873993, -0.7610175013542175, -0.3078245222568512, 0.4912175238132477, -0.2306477427482605, 0.06495597958564...
an arbitrary html page could upload any file from the client computer (form submission can be triggered via javascript)
[ 0.07825358957052231, -0.1730375736951828, 0.37026309967041016, 0.06795694679021835, -0.7017268538475037, -0.315270334482193, 0.2529308497905731, -0.056003909558057785, -0.2674071490764618, -0.40524885058403015, -0.33818528056144714, 0.010796359740197659, -0.5058450102806091, 0.175725743174...
I have a stored procedure that needs to convert hexadecimal numbers to their decimal equivalent. I've read the documentation for the UNHEX() function, but it is returning a binary value. What I'm wanting to do is something like this: ``` CREATE PROCEDURE foo( hex_val VARCHAR(10) ) BEGIN DECLARE dec_val INTEGER; ...
[ 0.31133154034614563, 0.19047029316425323, 0.17772094905376434, -0.149129256606102, -0.0020000969525426626, 0.21289634704589844, 0.1264817714691162, -0.30526331067085266, -0.29056018590927124, -0.34139806032180786, -0.06054384633898735, 0.6980906128883362, -0.3417856991291046, 0.21304655075...
16, 10); ```
[ -0.00766516150906682, 0.4130909740924835, 0.01844066195189953, -0.3311730921268463, -0.14894379675388336, 0.45999643206596375, 0.17203086614608765, -0.1195286437869072, 0.12079601734876633, -0.47897955775260925, -0.5111539363861084, 0.4620715081691742, -0.40224984288215637, 0.2517107725143...
What is the least amount of code you can write to create, sort (ascending), and print a list of 100 random positive integers? By least amount of code I mean characters contained in the entire source file, so get to minifying. I'm interested in seeing the answers using any and all programming languages. Let's try to ke...
[ -0.12258025258779526, 0.19551624357700348, 0.16194914281368256, 0.21266122162342072, -0.0902751013636589, 0.33941975235939026, 0.1897466778755188, -0.31109124422073364, -0.17078864574432373, -0.6140517592430115, -0.05281093344092369, 0.21700160205364227, -0.2152554988861084, -0.15091359615...
upper limit expressible in 3 characters. !9 (9 factorial) is smaller, but requires one less character.
[ -0.3149751126766205, -0.13549315929412842, 0.8356097340583801, 0.22595633566379547, -0.04037266969680786, 0.17757533490657806, 0.18222206830978394, -0.3726423978805542, -0.1586681306362152, -0.22813275456428528, -0.37178540229797363, 0.2936148941516876, -0.11521037667989731, -0.47645288705...
I am working on a web application that allows users to upload attachments. These attachments are stored on a different drive than that of the web application. How can I create an alias (equivalent to Apache HTTP server's aliases) to this drive so that users can download these attachments? Currently I am creating a con...
[ 0.42533010244369507, 0.16559264063835144, 0.23310169577598572, 0.0714145377278328, 0.10140873491764069, -0.30002328753471375, -0.22691349685192108, 0.025354932993650436, -0.39152267575263977, -0.4766360819339752, 0.16793252527713776, 0.21983876824378967, 0.06807281076908112, 0.472749084234...
am looking for. I am using version 6.0.18 of Apache Tomcat. *attachments.xml:* ``` <?xml version="1.0" encoding="UTF-8"?> <Context docBase = "e:\uploads\attachments" reloadable = "true" crossContext = "true"> </Context> ``` I spent a lot more time researching this and found a solution that solves the ...
[ 0.12193360179662704, 0.28572341799736023, 0.4050675332546234, -0.10836323350667953, 0.21156513690948486, -0.07462561130523682, 0.2575434744358063, -0.22537806630134583, -0.18210715055465698, -1.022196888923645, -0.2061130255460739, 0.3408438563346863, -0.3700275719165802, 0.051434006541967...
*server.xml* file located at *CATALINA\_HOME\conf*. Tomcat comes configured with *localhost* as the default host. So, if we add the contents of *attachments.xml* from the first post, we get the following: ``` <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xm...
[ -0.07919474691152573, -0.14229099452495575, 0.8145738244056702, -0.028037838637828827, -0.01414958480745554, -0.10865297168493271, 0.3707553446292877, 0.01514564547687769, -0.389400839805603, -0.6405616998672485, -0.2899077534675598, 0.6294652819633484, -0.3268813192844391, 0.0762121453881...
Apache's HTTP server, I think.
[ -0.009532657451927662, 0.19937458634376526, -0.16385500133037567, 0.188633993268013, -0.5661996603012085, -0.38533705472946167, 0.22965313494205475, 0.18409033119678497, 0.06059897318482399, -0.13040760159492493, 0.29758304357528687, 0.22887173295021057, -0.08978205174207687, 0.02962883748...
Thanks to a library upgrade (easymock 2.2 -> 2.4), we're having tests that have started locking up. I'd like to have a time out on individual tests, all of them. The idea is to identify the locked up tests - we're currently guessing - and fix them. Is this possible, preferably on a suite-wide level? We have 400 tests,...
[ 0.42579570412635803, -0.24216963350772858, 0.15757998824119568, 0.17966985702514648, 0.27254021167755127, -0.2897217869758606, 0.2006915658712387, -0.34191110730171204, -0.09115605801343918, -0.5821093320846558, -0.28716278076171875, 0.23499615490436554, -0.1255703717470169, -0.05028670281...
Using Visual Studio 2008 / C# / VS Unit Testing. I have a very straightforward extension method, that will tell me if an object is of a specific type: ``` public static bool IsTypeOf<T, O>(this T item, O other) { if (!(item.GetType() is O)) return false; else return true; } ``` It would be c...
[ -0.06372259557247162, -0.00030974496621638536, 0.20572805404663086, -0.16978642344474792, -0.2786007523536682, -0.12448552995920181, 0.24348995089530945, -0.3638606667518616, -0.12295309454202652, -0.5711787939071655, -0.0703665018081665, 0.6443789601325989, -0.3245234489440918, 0.02294984...
run all the unit tests in context, I mysteriously get a MissingMethodException for this method. Strangely, another extension method in the same class has no problems. I am leaning towards the problem being something other than the extension method itself. I have tried deleting temporary files, closing/reopening/clean/...
[ 0.39604291319847107, 0.12368588894605637, -0.3151073455810547, 0.2094297856092453, -0.11706382036209106, -0.07875944674015045, 0.5555582046508789, 0.1664351373910904, -0.2288411259651184, -0.5802490711212158, 0.06405540555715561, 0.3309466540813446, -0.03846084326505661, 0.4108616411685943...
test, like above. The code in question does not complete the task at hand, like Jon has mentioned, it is more the source of the exception that I am currently concerned with.* **Solution: I tried many different things, agreeing with Marc's line of thinking about it being a reference issue. Removing the references, clea...
[ 0.588197648525238, 0.2578886151313782, -0.2681921720504761, 0.18905414640903473, -0.12147790938615799, 0.12968595325946808, 0.6551215648651123, -0.03212976083159447, -0.11571714282035828, -0.6809350252151489, 0.18765904009342194, 0.5458383560180664, -0.2559970021247864, 0.05181022360920906...
unit tests successfully.** **As to the content of the method, it was in unit testing that I discovered the issue and was never able to get the concept working. Since O is a RunTimeType, I do not seem to have much access to it, and had tried to use IsAssignableFrom() to get the function returning correctly. At this tim...
[ 0.2269732505083084, 0.11072131246328354, 0.3278176784515381, -0.013747402466833591, -0.0969419777393341, 0.2185392528772354, 0.4377831220626831, -0.1830407679080963, 0.21280136704444885, -0.606824517250061, 0.01772545464336872, 0.5634250640869141, 0.042360685765743256, 0.17116345465183258,...
as I was making it out to be. Here is the actual working method:** ``` public static void IsTypeOf<T>(this T item, Type type) { if (!(type.IsAssignableFrom(item.GetType()))) throw new ArgumentException("Invalid object type"); } ``` **and the unit test to verify it:** ``` [TestMethod] public void IsTypeO...
[ -0.0016179248923435807, -0.126734659075737, 0.406222403049469, -0.15153555572032928, 0.02448434755206108, 0.1153225302696228, 0.5336583256721497, -0.47858795523643494, -0.09626846760511398, -0.48919716477394104, -0.37645864486694336, 0.4391043782234192, -0.3382737338542938, 0.3165028989315...
`MissingMethodException` means that you are loading a different version of the dll to the one you referenced during build, and the actual dll you are loading (at run-time) doesn't have the method the compiler found (at compile-time). Check that you haven't somehow got various versions of the dll referenced by differen...
[ 0.5517345070838928, 0.048926908522844315, 0.032502174377441406, 0.2144194394350052, 0.010129611007869244, -0.2451985776424408, 0.39793938398361206, 0.09597739577293396, -0.3661975860595703, -0.22010810673236847, -0.018715230748057365, 0.5322710871696472, -0.4979158639907837, 0.354799866676...
be in the older version referenced. If you are using full assembly versioning, you might be able to watch the debug output to see exactly which assembly loads.
[ 0.47172462940216064, 0.001271909335628152, 0.038502514362335205, -0.12048424780368805, 0.125737264752388, -0.28990259766578674, 0.10860162228345871, 0.03007049486041069, -0.42357292771339417, -0.5737544894218445, -0.3555601239204407, 0.549022376537323, -0.18415817618370056, -0.041642196476...
I've heard a lot of people asking how long information stays in Google Cache. To me, this is irrelevant (at least until someone libels my name). There is probably not a good answer, or at least there is probably not a good answer that you will get outside of Googleplex. For Google to crawl and cache your page, usually...
[ 0.7209874391555786, 0.15346992015838623, 0.4046887159347534, 0.24330204725265503, -0.06896767765283585, -0.22723747789859772, 0.42106252908706665, 0.3329404592514038, -0.3342052698135376, -0.5378137230873108, 0.1232440173625946, 0.08082432299852371, -0.004398973658680916, 0.523030221462249...
crawl your site on any particular schedule.
[ 0.5360791683197021, 0.018281789496541023, -0.07200281322002411, 0.14488402009010315, -0.13183481991291046, -0.4232645034790039, 0.17443084716796875, 1.0764552354812622, -0.16722442209720612, -1.0568124055862427, -0.258483350276947, 0.09888555109500885, -0.11674059182405472, 0.0580407716333...
Do languages become more verbose as they mature? It feels like each new version of VB.net gains more syntax. Is it possible to trim down some fat like the keyword "Dim"? C# also feels like it is getting more syntax since version 1. C# has certainly gained more syntax, but in a way which makes it *less* verbose. Virtua...
[ 0.28213632106781006, 0.07760573923587799, 0.3205467164516449, -0.16147449612617493, -0.3170231878757477, -0.04440602287650108, 0.48098647594451904, 0.5610087513923645, -0.508993923664093, -0.6080945134162903, -0.06986568868160248, 0.6267319321632385, -0.29738160967826843, -0.18358197808265...
I'd like to be able to call a function exposed by a VSTO addin from a cell in an excel worksheet. More specifically, if I have a VSTO function Foo() that returns "bar" I'd like to be able to write =Foo() in A1 which evaluates to "bar" on calculation. Is this possible? What are the key steps I'd need to take? The pros...
[ 0.2409009486436844, 0.10746093094348907, 0.2748877704143524, -0.23564964532852173, -0.07311634719371796, 0.16054746508598328, 0.1118677482008934, -0.18907488882541656, -0.09421874582767487, -0.5821533799171448, 0.15255306661128998, 0.7349265217781067, -0.2668869197368622, -0.09887362271547...
documentation is a little shoddy. I don't believe you can do so directly, though you can use a VBA wrapper, see for example [<http://blogs.msdn.com/pstubbs/archive/2004/12/31/344964.aspx>](http://blogs.msdn.com/pstubbs/archive/2004/12/31/344964.aspx). You can also use a third party product like [ManagedXll](http://www...
[ 0.3493812084197998, 0.13622473180294037, 0.286278635263443, 0.10043399035930634, -0.10987065732479095, -0.18441377580165863, -0.17379501461982727, -0.16806723177433014, -0.34487324953079224, -0.4887634217739105, 0.07342656701803207, 0.5797572731971741, -0.09056331217288971, 0.1410685479640...
I know you can use the `<jsp:useBean>` tag to instantiate objects within JSPs without resorting to scriptlet code. However I'd like to instantiate an Integer who value is the result of an EL expression, something like: ``` <jsp:useBean id="total" class="java.lang.Integer"> <jsp:setProperty name="amount" value="${p...
[ 0.39035266637802124, -0.03881317377090454, 0.40925273299217224, 0.2694494128227234, -0.08693201094865799, -0.26794084906578064, 0.013439968228340149, -0.18812808394432068, -0.12307417392730713, -0.3321089446544647, 0.1362987905740738, 0.41924652457237244, -0.14135803282260895, 0.2595546841...
Does anybody know how I can get the number of the elements (rows\*cols) returned after I do an SQL query? If that can't be done, then is there something that's going to be relatively representative of the size of data I get back? I'm trying to make a status bar that indicates how much of the returned data I have proce...
[ 0.14209894835948944, 0.1889869123697281, 0.3594608008861542, 0.20810063183307648, 0.26571545004844666, -0.10295231640338898, 0.26395848393440247, 0.13137593865394592, -0.3516419529914856, -0.37484127283096313, 0.2007511556148529, 0.4705618917942047, 0.09769873321056366, 0.0604298859834671,...
as I can tell). So I can't multiply that directly to the SQLColCount. My last option is to have a status bar that goes back and forth, indicating that data is being processed. That is frequently a problem when you wan to reserve dynamic memory to hold the entire result set. One technique is to return the count as pa...
[ 0.15876856446266174, 0.056526824831962585, 0.49738627672195435, -0.14417168498039246, 0.07209296524524689, 0.11950069665908813, -0.16712577641010284, -0.11509021371603012, -0.4046756625175476, -0.4565171003341675, 0.08273753523826599, 0.4296957552433014, -0.28672584891319275, 0.18223862349...
number of columns can be selected out of the USER\_TAB\_COLS table ``` SELECT COUNT(*) FROM USER_TAB_COLS WHERE TABLE_NAME = 'interesting-table' ```
[ -0.4429851770401001, 0.4123232364654541, 0.6896308660507202, -0.1546359360218048, -0.01725820265710354, 0.44786888360977173, -0.2604947090148926, -0.21979540586471558, -0.2726283669471741, -0.4099273979663849, -0.12612338364124298, -0.0664583295583725, -0.4963515102863312, 0.01531816832721...
How to get function's name from [function's pointer](http://en.wikipedia.org/wiki/Function_pointer) in C? Edit: The real case is: I'm writing a linux kernel module and I'm calling kernel functions. Some of these functions are pointers and I want to inspect the code of that function in the kernel source. But I don't kn...
[ -0.04100257158279419, -0.07914084196090698, 0.24651692807674408, 0.06553533673286438, 0.14937320351600647, -0.023937711492180824, 0.22134654223918915, -0.06005986034870148, -0.1246594786643982, -0.6998407244682312, -0.18846872448921204, 0.712070107460022, -0.29221686720848083, -0.063120968...
program mapping function pointers to names 2. examine the executable's symbol table, if it has one. The latter, however, is hard, and is not portable. The method will depend on the operating system's binary format (ELF, a.out, .exe, etc), and also on any relocation done by the linker. EDIT: Since you've now explained...
[ -0.12584124505519867, -0.12398034334182739, 0.4184049665927887, 0.0993288904428482, 0.1316707581281662, 0.020958054810762405, 0.08444178849458694, 0.06325173377990723, -0.0943584144115448, -0.7524584531784058, -0.3380141854286194, 0.5162956118583679, -0.338689923286438, -0.1655498147010803...
unsigned long *ofset, char **modname, char *namebuf) void print_symbol(const char *fmt, unsigned long addr) ``` For simple debug purposes the latter will probably do exactly what you need - it takes the address, formats it, and sends it to `printk`, or you can use `printk` with the `%pF` format specifier.
[ 0.05831928178668022, 0.021511465311050415, 0.34700334072113037, -0.3691706657409668, 0.21641679108142853, 0.0905626192688942, -0.031109079718589783, -0.2477123886346817, 0.06634406745433807, -0.29107069969177246, -0.5056002140045166, 0.38680300116539, -0.2439493089914322, -0.18332906067371...
I need to perform a complicated calculation. In my case it seemed most natural to create a Calculator class (abstracted using a strategy pattern). To perform the calculation the class needs to accept about 20 inputs, some of which are optional, some of which could change in the future etc. Once the **Calculate()** met...
[ 0.020136728882789612, 0.007673085667192936, 0.16120952367782593, 0.16034434735774994, -0.0011969995684921741, 0.570243239402771, -0.04240965470671654, -0.5685372352600098, -0.021927209571003914, -0.639595627784729, 0.13727831840515137, 0.6189590692520142, -0.01121891476213932, 0.0198560319...
method. * Outputs returned by Calculate(), wrapped up in a class * Outputs populated into a parameter passed to the Calculate() method * Outputs retrieved from public properties of the Calculator, after Calculate() has been called There are pros and cons to all these methods. How would you do it? UPDATE: Thanks for t...
[ 0.6043821573257446, -0.31966856122016907, 0.25523442029953003, 0.466178834438324, 0.1177070364356041, 0.20264974236488342, -0.40903717279434204, -0.3012202978134155, 0.1752292960882187, -0.33581411838531494, 0.5784802436828613, 0.6933192014694214, -0.08528313785791397, -0.02214030362665653...
the system works very well now. The Calculator class also inherits from an ICalculator interface (as the calculations involved differ enormously depending on the company the product is sourced from). Most people suggest using a "Parameter Class", and a "Result Class". I agree with this approach, but it seems to me that...
[ 0.08404438197612762, 0.037093810737133026, 0.6790270805358887, 0.1575593501329422, 0.20219114422798157, 0.0008605567272752523, -0.14096306264400482, -0.22143812477588654, -0.3563128113746643, -0.6347636580467224, 0.14319653809070587, 0.7726721167564392, 0.002375377109274268, 0.207395330071...
calculate(RequiredArgs requiredArgs, OptionalArgs optionalArgs) { } Result calculate(RequiredArgs requiredArgs, OptionalArgs optionalArgs, OtherOptionalArgs oOpitonalArgs) { } ``` This will make your API easier to use. If you don't want to create classes for the different groups, you could also use Maps, but this wi...
[ -0.021788356825709343, -0.04188646376132965, 0.31216245889663696, -0.16552060842514038, 0.008392415940761566, 0.15723541378974915, 0.18477550148963928, -0.363711416721344, -0.03364909812808037, -0.48503342270851135, 0.08784818649291992, 0.48987632989883423, -0.1914227306842804, -0.52204132...
How do you escape the forward slash character (`/`) in VBScript? For example, in the following string: ``` bob = "VU administration/front desk" ``` You don't escape it: it doesn't mean anything special in php or vbscript, and therefore doesn't need to be escaped. The only character you need to escape in vbscript is t...
[ -0.2621176540851593, 0.004284906666725874, 0.4430723190307617, -0.04102059081196785, 0.04288847744464874, 0.09658171981573105, 0.6594094038009644, -0.11888307332992554, -0.4424721598625183, -0.35400480031967163, -0.594795286655426, 0.07752212882041931, -0.4772343635559082, 0.10990757495164...
forward slash doesn't need any special handling.
[ -0.2664748728275299, -0.26433542370796204, 0.18479067087173462, 0.1539035588502884, -0.33080700039863586, -0.014119944535195827, -0.17057488858699799, 0.08441892266273499, -0.36793452501296997, -0.3518611788749695, 0.18104642629623413, 0.23002491891384125, 0.25318482518196106, -0.257334470...
I have a table in a DB (Postgres based), which acts like a superclass in object-oriented programming. It has a column 'type' which determines, which additional columns should be present in the table (sub-class properties). But I don't want the table to include all possible columns (all properties of all possible types)...
[ 0.0142305176705122, 0.2791692912578583, 0.1611993908882141, 0.001771346665918827, -0.08147227764129639, 0.006227829959243536, 0.1863452047109604, -0.2280540019273758, 0.03340219333767891, -0.5849266052246094, -0.05815984681248665, 0.22482937574386597, -0.40183132886886597, 0.32280209660530...
a problem with such architecture - the 'value' column should be of a string data type by default, to be able to contain anything. But I don't think converting to and from strings is a good decision. What is the best way to bypass this limitation? The design you're experimenting with is a variation of [Entity-Attribute-...
[ 0.1535622477531433, 0.08467387408018112, 0.16896839439868927, 0.1749408096075058, -0.031280532479286194, -0.028160570189356804, 0.1903785616159439, -0.08518422394990921, -0.1811387538909912, -0.6981107592582703, 0.10433931648731232, 0.42374858260154724, -0.4043976068496704, 0.3796445727348...
okay if you have a finite number of subtypes, which sounds like what you have. Then your subtype-specific attributes can have data types, and also a `NOT NULL` constraint if appropriate, which is impossible if you use the EAV design. One remaining weakness of the subtype-table design is that you can't enforce that a r...
[ 0.3137302100658417, 0.03888440132141113, 0.20802292227745056, 0.2267993688583374, -0.031561605632305145, -0.48558205366134644, 0.4913516044616699, 0.2904747426509857, -0.3627152740955353, -0.7345183491706848, -0.0757913663983345, 0.7245317101478577, -0.23750586807727814, 0.0840118527412414...
broken solution called "polymorphic association" which is a technique many people use in this situation.
[ -0.1438578963279724, 0.15279161930084229, -0.28288474678993225, 0.25928840041160583, 0.05087466165423393, -0.04924134910106659, 0.5577865242958069, -0.08738940209150314, -0.21223270893096924, -0.31679269671440125, -0.2426760494709015, -0.025461122393608093, -0.5643638372421265, 0.378027290...
How could you copy the contents of an HDC to a bitmap? Off the top of my head I think you need to: * Create a new DC compatible with the source DC. Call this the memory DC. * Create a new bitmap of the correct size. * Select the bitmap into the memory DC. * BitBlt the source DC into the memory DC. * The bitmap should ...
[ 0.7567698359489441, -0.08653577417135239, 0.46853014826774597, 0.3397212326526642, -0.025527266785502434, -0.06603962928056717, -0.12483778595924377, 0.13062746822834015, -0.4303740859031677, -0.826744556427002, -0.011815881356596947, 0.5297260880470276, -0.15329758822917938, 0.27424931526...
I have a flex app that uploads files to a server. The server requires authentication to be able to upload. In IE the upload works fine. However in FF and Safari, it does not upload. I have seen people all over with this same problem but no answers. Don't fail me now stackoverflowers. I found this question while trying ...
[ 0.47076213359832764, 0.0029669138602912426, 0.4026327133178711, -0.04068215936422348, -0.3685009777545929, -0.1945146918296814, 0.14435742795467377, -0.07494711875915527, -0.556571364402771, -0.7349308729171753, 0.14632746577262878, 0.6093999743461609, -0.3145502805709839, -0.1040323972702...
was that easy! To make it work, I started by adding a flashVar parameter called sessionParams. This allowed me to pass any string I want in to the flash player as my session identifier, and it will later get appended to the URL used to upload. ``` //sessionParams - resolves firefox upload bug public var sessionParams...
[ -0.19881686568260193, 0.0736115351319313, 0.3550374209880829, -0.2417231649160385, -0.000006176268470881041, -0.27742600440979004, 0.3911336064338684, -0.24518689513206482, -0.11398039013147354, -0.5313499569892883, 0.0720648467540741, 0.8037450909614563, -0.6587641835212708, -0.3636493980...
(which I've done with urlEncodedFormat), so that they are treated as part of the value of the "sessionParams" parameter, and not breakpoints to indicate other parameters. You're embedding future-URL information in the current URL. Then, use the sessionParams value in your upload code. Here's a snippet of how I set min...
[ 0.3754409849643707, 0.15502159297466278, 0.8390413522720337, 0.027654720470309258, -0.13363000750541687, -0.18924134969711304, 0.3688492774963379, -0.2956767976284027, -0.3692762553691864, -0.71551513671875, -0.1463894546031952, 0.540305495262146, -0.38383445143699646, 0.23626233637332916,...
to help you out.
[ 0.5266938805580139, 0.29387593269348145, 0.015731502324342728, 0.13581158220767975, -0.14604245126247406, 0.29861485958099365, 0.2988901436328888, -0.11124381422996521, 0.011385604739189148, -0.4229353070259094, -0.011777770705521107, 0.14156578481197357, -0.143967404961586, 0.010110324248...
I'm getting the following error when I try to Serialize an HttpWebRequest > Type 'System.Net.KnownHttpVerb' in > Assembly 'System, Version=2.0.0.0, > Culture=neutral, > PublicKeyToken=b77a5c561934e089' is > not marked as serializable. Using .Net Framework 2.0 This is one of the properties that my class holds. It...
[ 0.16117028892040253, 0.05426828935742378, 0.16699808835983276, -0.12446746975183487, -0.20119930803775787, -0.4028369188308716, 0.6235259771347046, 0.04585718736052513, -0.2354949712753296, -0.8272727131843567, -0.13995754718780518, 0.4532254934310913, -0.4934321641921997, 0.50170004367828...
uncooperative object. EDIT: There's a fairly good article on it [here](http://msdn.microsoft.com/en-us/magazine/cc163902.aspx). EDIT2: In fact, after a little googling, it appears that this is your only option, as the Serializable attribute on HttpWebRequest has been marked obsolete as of .net 2.0. See [here](http://...
[ -0.26663315296173096, -0.017949402332305908, 0.12223856151103973, -0.005732744932174683, 0.11247194558382034, -0.023455960676074028, 0.6646252274513245, 0.2821839451789856, -0.429684042930603, -0.5360173583030701, -0.3907349407672882, 0.3670368492603302, -0.407523512840271, 0.5705518126487...
I am developping in C#. I need to capture a password written inside a Text Box, but would like to not show the password that is being typed, showing instead \*\*\*\* or any other character to hide the password. How can I do that? I'm sure it's by modifying an attribute, but can't find which one. <http://msdn.microsoft...
[ 0.31220799684524536, 0.058414116501808167, 0.29761549830436707, -0.1114899069070816, 0.15602357685565948, -0.34747156500816345, 0.21741168200969696, 0.0063455537892878056, 0.07226327061653137, -0.8731697797775269, -0.12140625715255737, 0.61080402135849, -0.14306452870368958, 0.164928376674...
How can I rewrite or is there a way to writing my own custom function that simulates the Custom System.Collections.Generic.Contains but only factors in certain Public Properties of a Custom Object? For example if I have a custom Object with Properties Name and ID, I would like my Unique Value List to contain all the D...
[ 0.3610515892505646, 0.10737451165914536, 0.26567333936691284, -0.0521952360868454, -0.04129991680383682, 0.3129800260066986, 0.04148441180586815, -0.3026912212371826, -0.46103355288505554, -0.668333113193512, 0.13505898416042328, 0.5655537247657776, -0.2953301966190338, 0.4394879639148712,...
the Name. I like gmail because of the way it groups messages by conversation so I can just page down through a thread.
[ 0.36961838603019714, 0.08656150102615356, 0.2170151174068451, -0.0031049742829054594, -0.3320089876651764, -0.008884498849511147, 0.2627308964729309, 0.6966585516929626, -0.14165830612182617, -0.3413085639476776, 0.2813430726528168, 0.2870807647705078, 0.07572290301322937, 0.57234144210815...