text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
code takes a dynamic array and passes it as though it were an ordinary buffer. This works and is safe because a dynamic array is, in effect, a subtype of a plain old buffer. The function will accept a pointer to the first element of the array and treat the pointer as a pointer to a bunch of bytes because that's exactly...
[ 0.05557521432638168, -0.03621692582964897, 0.13615886867046356, 0.21761322021484375, -0.029929665848612785, -0.05019180849194527, 0.18270592391490936, -0.09907412528991699, -0.10353375971317291, -0.35880914330482483, -0.28987452387809753, 0.2819615602493286, -0.4947202205657959, 0.03560617...
treat that buffer as though *it* were the array, instead of copying the data into a separate data structure, then you have two options. 1. Declare a static-array *pointer*, and then type-cast your buffer pointer to that type. This is the classic technique, and you can see it used in code all over the place, especially...
[ 0.10129255801439285, -0.13462428748607635, 0.38968774676322937, -0.4280874729156494, -0.012011437676846981, 0.11203351616859436, 0.12795378267765045, -0.40628504753112793, -0.2408345490694046, -0.30576789379119873, -0.1277671754360199, 0.6139146089553833, -0.5272945761680603, 0.14717642962...
range checking is turned off for that code since the array type is declared to have a length of 1. The array is declared with that size in part to serve as a clue that you're not really supposed to declare a variable of that type. Only use it through a pointer. On the other hand, if you know what a suitable maximum siz...
[ 0.46193063259124756, -0.21148647367954254, 0.40197378396987915, -0.12259168177843094, -0.035049278289079666, -0.24734969437122345, 0.27386218309402466, -0.09799899905920029, -0.17736075818538666, -0.19509819149971008, -0.10226147621870041, 0.7750612497329712, -0.3216916024684906, -0.081069...
trouble.) 2. Declare your buffer as `PByte` instead of `Pointer` and then use Delphi's new (as of Delphi 2009) [support for treating arbitrary pointer types as array pointers](http://blogs.embarcadero.com/abauer/2008/01/24/38852). In previous versions, only `PChar`, `PAnsiChar`, and `PWideChar` supported this syntax. F...
[ -0.2702861428260803, 0.11389735341072083, 0.6688582897186279, -0.17449194192886353, 0.025485744699835777, -0.00905931182205677, 0.362312912940979, -0.1859883964061737, -0.5069690942764282, -0.21718470752239227, -0.23387090861797333, 0.6816878914833069, -0.726658284664154, -0.14492176473140...
use of the new extended syntax. --- As a final note, you don't need to build up your strings one character at a time. It's wasteful in two ways. First, you're constructing lots of strings, each one just two bytes larger than the previous one. Second since you're storing the string result in an edit control, you're fo...
[ -0.13997550308704376, 0.07184483855962753, 0.14962071180343628, -0.2684142291545868, -0.10449180006980896, 0.3069664537906647, 0.2656703591346741, -0.21397371590137482, -0.24839939177036285, -0.6704503297805786, -0.26825010776519775, 0.33240777254104614, -0.5083780884742737, -0.05939183756...
How does the compiler fill values in `char array[100] = {0};`? What's the magic behind it? I wanted to know how internally compiler initializes. It's not magic. The behavior of this code in C is described in section 6.7.8.21 of the C specification ([online draft of C spec](http://www.open-std.org/jtc1/sc22/wg14/www/...
[ -0.07489638775587082, 0.3045043349266052, -0.12291445583105087, -0.06088215485215187, -0.3543457090854645, 0.06610659509897232, 0.2867491543292999, -0.5771167874336243, -0.06164930760860443, -0.1895749419927597, 0.0054869018495082855, 0.2694697082042694, -0.35121068358421326, -0.1609253436...
have a specified value. Also, note that in C++ (but not C), you can use an empty initializer list, causing the compiler to aggregate-initialize all of the elements of the array: ``` char array[100] = {}; ``` As for what sort of code the compiler might generate when you do this, take a look at this question: [Strang...
[ 0.11967430263757706, 0.24402986466884613, 0.0050844368524849415, -0.30902257561683655, -0.00013933602895122021, 0.09190581738948822, 0.0163827296346426, -0.4282844364643097, -0.12963144481182098, -0.2202967405319214, -0.03241799771785736, 0.08655892312526703, -0.391481876373291, 0.13374729...
I've recently started to see a hang when testing GWT apps running in hosted mode. It hangs with the message "Connecting to 127.0.0.1" The only solution is to stop and restart a few times. Has anyone else seen this? If so, any ideas about the cause? I wondered if it was a firewall block. I'm using Zonealarm. If you ar...
[ 0.5546780228614807, 0.019330421462655067, 0.3183988630771637, 0.35166695713996887, 0.006686977110803127, -0.2808280289173126, 0.2487785667181015, 0.429212749004364, -0.5995656847953796, -0.572665274143219, 0.05816883593797684, 0.2667158246040344, -0.05186595395207405, -0.013198974542319775...
here: <http://www.diaryofaninja.com/blog/2010/05/09/automated-site-deployments-with-teamcity-deployment-projects-amp-svn> I have then added to this to show FTP addition <http://www.diaryofaninja.com/blog/2010/09/21/continuous-integration-tip-1-ndash-ftp-deployment> A basic process flow is pretty simple: * Using a ...
[ 0.18142634630203247, -0.15868602693080902, 0.5011419057846069, -0.22856590151786804, -0.23820501565933228, -0.10720997303724289, 0.2909720242023468, -0.39591190218925476, -0.2599385380744934, -0.41089504957199097, -0.16372457146644592, 0.5048806667327881, -0.14670401811599731, -0.418598979...
Add Automated testing to your build cycle and you've got a match made in heaven. Some great free tools to get going are: * [Visual Studio Web Deployment Project](http://www.microsoft.com/downloads/en/details.aspx?FamilyID=89F2C4F5-5D3A-49B6-BCAD-F776C6EDFA63&amp%3Bdisplaylang=en) * [TeamCity (free for under 20 build ...
[ 0.49554380774497986, -0.12490672618150711, -0.15671959519386292, 0.40436995029449463, -0.20091426372528076, -0.3049498498439789, 0.2048371285200119, -0.08307676762342453, -0.22185450792312622, -0.6299519538879395, 0.20930251479148865, 0.27513089776039124, 0.12100048363208771, -0.5627869963...
When I programmed in C/C++, I often include pointer values in tracing. This helped correlate objects between trace messages. In C#, I don't have a pointer value available I can trace. Are there any good alternatives for traceable object IDs?? I don't know offhand how to get the underlying memory address, but even if I...
[ 0.4674798846244812, 0.12420158833265305, 0.21582287549972534, -0.11698359251022339, -0.006714975461363792, -0.042969800531864166, 0.2664779722690582, -0.32411518692970276, -0.15693673491477966, -0.4240976870059967, 0.2798914611339569, 0.6459938883781433, -0.6311625838279724, 0.109524570405...
{ instance_counter = counter; counter++; } public string toString() { return "Foo "+instance_counter.toString(); } } ``` may not compile out of the box, I have no compiler here.
[ 0.23947763442993164, 0.4055255353450775, 0.2617846131324768, -0.45819056034088135, -0.07195531576871872, -0.19421140849590302, 0.562709629535675, -0.27859511971473694, -0.05999062955379486, -0.29464617371559143, -0.16840922832489014, 0.779135525226593, -0.48737290501594543, 0.2423990815877...
I already have a svn read only repo checked out (svn co and not git svn). I have made some changes and commits using git which is then pushed up to github. At this point, git does not have all of the history from svn. I was wondering if there was a way to extract and import this at this point. The various git-svn gu...
[ 0.4043269753456116, 0.044944677501916885, 0.5615706443786621, 0.01721920259296894, -0.19015651941299438, -0.2727581560611725, 0.15832556784152985, 0.003956327680498362, -0.4428931474685669, -0.5042529702186584, -0.1591382622718811, 0.5591450333595276, -0.04448254033923149, 0.36369302868843...
merge the two repositories (just add them together, it will probably complain about them being unrelated) and then [rebase](http://git-scm.com/docs/git-rebase) the changes you made unto the imported history.
[ 0.6507782340049744, 0.03772328048944473, 0.31617364287376404, 0.024342574179172516, 0.30786770582199097, -0.45237305760383606, -0.14503179490566254, -0.007425867486745119, -0.312833309173584, -0.7653205990791321, -0.25802159309387207, 0.10078782588243484, -0.11389416456222534, 0.1254247277...
I am curious to know why bit fields with same data type takes less size than with mixed data types. ``` struct xyz { int x : 1; int y : 1; int z : 1; }; struct abc { char x : 1; int y : 1; bool z : 1; }; ``` sizeof(xyz) = 4 sizeof(abc) = 12. I am using VS 2005, 64bit x86 machine. A bit m...
[ 0.16384539008140564, -0.01187574490904808, 0.2502031624317169, -0.08130838721990585, -0.16633322834968567, 0.11671098321676254, 0.1939978152513504, -0.3238052725791931, -0.21324381232261658, -0.53261399269104, -0.03386329486966133, 0.6184638142585754, -0.4238128960132599, 0.031927175819873...
case, `char`, `int`, and `bool` are different sizes, so it will go by that information rather than your bit field hints. There was some discussion in [this question](https://stackoverflow.com/questions/119123/why-does-the-sizeof-operator-return-a-size-larger-for-a-structure-than-the-tota) on the matter. The solution ...
[ -0.18930967152118683, -0.14769122004508972, -0.10799993574619293, 0.009546518325805664, 0.007426591590046883, -0.17061957716941833, -0.04255853593349457, -0.21198944747447968, -0.032621148973703384, -0.28865236043930054, -0.21406735479831696, 0.3443877696990967, -0.4209977388381958, -0.115...
My code is meant to replace radio buttons with dynamic ones, and allow clicking both the label and new dynamic radio element to toggle the state of the hidden with CSS radio box. I need to send to `questions.checkAnswer()` three parameters, and these are defined within these initiation loops. However I always get last...
[ 0.44719046354293823, 0.07228392362594604, 0.11350450664758682, -0.07153671234846115, 0.07231571525335312, -0.10209912061691284, 0.37570399045944214, -0.49001047015190125, 0.045505788177251816, -0.4566813111305237, -0.01588309369981289, 0.6494568586349487, -0.34210890531539917, 0.1178346052...
// set up handlers moduleIndex = $('input[name=module]').val(); $('#questions-form ul').each(function() { questionIndex = $('fieldset').index($(this).parents('fieldset')); $('li', this).each(function() { answerIndex = $('li', $(this).parent()).index(this); ...
[ 0.10731315612792969, -0.4660223424434662, 0.38907524943351746, -0.037988726049661636, 0.20604445040225983, 0.2249653935432434, 0.33231815695762634, -0.4387679696083069, -0.029197394847869873, -0.40157976746559143, -0.5246819853782654, 0.8898410797119141, -0.5907943844795227, -0.26118752360...
radio = $('input[type=radio]', this); radio.after(prettyRadio); $(radio).bind('change', function() { $('.pretty-radio', $(this).parent().parent()).removeClass('selected'); $(this).next('.pretty-radio').addClass('selected');
[ 0.07036831974983215, -0.27212628722190857, 0.38144731521606445, -0.2949993312358856, 0.07678287476301193, -0.060032762587070465, 0.5693594217300415, -0.468300998210907, 0.20527145266532898, -0.44666948914527893, -0.2938542664051056, 0.8153204917907715, -0.5719425082206726, 0.55965441465377...
questions.checkAnswer(moduleIndex, questionIndex, answerIndex); }); prettyRadio.bind('click', function() { $('.pretty-radio', $(this).parent().parent()).removeClass('selected'); $(this).addClass('selected').prev('input').attr({checked: true});
[ -0.02878502942621708, -0.2745431661605835, 0.2840265929698944, 0.031872667372226715, 0.1626891940832138, 0.083184152841568, 0.5853971838951111, -0.23970089852809906, 0.005521338898688555, -0.44289958477020264, -0.3542795479297638, 0.5102118849754333, -0.4920068383216858, 0.1018488854169845...
}); $('label', this).bind('click', function() { $(radio).trigger('change'); questions.checkAnswer(moduleIndex, questionIndex, answerIndex); $(this).prev('input').attr({checked: true});
[ 0.11326109617948532, -0.22490939497947693, 0.6331042051315308, -0.1499943733215332, 0.23957420885562897, -0.054310765117406845, 0.4745407998561859, -0.6917818784713745, 0.08542291074991226, -0.1576259583234787, -0.5138610601425171, 0.9350668787956238, -0.6537238359451294, 0.309988021850585...
}); }); }); ``` * Is it bad to add a pretend attribute with Javascript, example, `<li module="1" question="0" answer="6">` * Should I store information in the rel attribute and concatenate it with an hyphen for example, and explode it when I need it? * How have you solved this problem? * I am ope...
[ 0.22499342262744904, -0.05338948592543602, 0.3103201687335968, 0.060883138328790665, -0.11315325647592545, -0.19597776234149933, 0.5544649958610535, -0.27021029591560364, -0.007623923476785421, -0.5409655570983887, -0.3096443712711334, 0.8320634365081787, -0.3441026210784912, 0.04744554311...
have global scope... regarding custom attributes, i have certainly done that in the past tho i try to avoid it if i can. some CMS and theming systems occasionally get unhappy if you do this with interactive elements like textareas and input tags and might just strip them out. finally $(a,b) is the same as $(b).find(a...
[ 0.2750985622406006, 0.032931894063949585, 0.14445772767066956, 0.05119747668504715, -0.09342080354690552, -0.27029407024383545, 0.19643500447273254, 0.33834511041641235, -0.4631088078022003, -0.6552910208702087, -0.2660418748855591, 0.5533515810966492, -0.07799512147903442, -0.044645838439...
I have two tables: **Patient** * pkPatientId * FirstName * Surname **PatientStatus** * pkPatientStatusId * fkPatientId * StatusCode * StartDate * EndDate **Patient** -> **PatientStatus** is a one to many relationship. I am wondering if its possible in SQL to do a join which returns only the first two PatientStat...
[ -0.32653921842575073, 0.1418803483247757, 0.8056469559669495, -0.2278430312871933, -0.2480207085609436, 0.32396119832992554, -0.04193512350320816, -0.20278982818126678, 0.03251318633556366, -0.6629894971847534, 0.3466660976409912, 0.18588998913764954, 0.00315405847504735, 0.295847356319427...
compatible with other platforms, this should work: ``` SELECT P.pkPatientID, P.FirstName, P.LastName, PS1.StatusCode AS FirstStatusCode, PS1.StartDate AS FirstStatusStartDate, PS1.EndDate AS FirstStatusEndDate, PS2.StatusCode AS SecondStatusCode, PS2.StartDate AS SecondStatusSta...
[ -0.3569974899291992, -0.30256468057632446, 0.9437853097915649, -0.18137702345848083, 0.03812601417303085, 0.3422974944114685, 0.1755829155445099, -0.3159453868865967, -0.011342979967594147, -0.869975209236145, -0.14017453789710999, -0.17298345267772675, 0.3270106017589569, 0.09638167917728...
OUTER JOIN PatientStatus PS3 ON PS3.fkPatientID = P.pkPatientID AND PS3.StartDate < PS1.StartDate LEFT OUTER JOIN PatientStatus PS4 ON PS4.fkPatientID = P.pkPatientID AND PS4.StartDate > PS1.StartDate AND PS4.StartDate < PS2.StartDate WHERE PS3.pkPatientStatusID IS NULL AND PS4.pkPati...
[ -0.2919209599494934, 0.16630691289901733, 1.0212384462356567, -0.21013806760311127, 0.020306605845689774, 0.11755838990211487, 0.20561695098876953, -0.09680803120136261, -0.20041640102863312, -0.5727090835571289, 0.0010710640344768763, 0.10954375565052032, 0.06450986117124557, 0.3744989037...
the PS3 and PS4 joins if you get better performance with that.
[ 0.04472222924232483, -0.45499780774116516, 0.7328494787216187, 0.4000675678253174, -0.228362038731575, 0.29106929898262024, -0.23869705200195312, 0.05683154985308647, -0.35521453619003296, -0.49337688088417053, -0.2623673379421234, 0.376486599445343, -0.27187591791152954, -0.21792002022266...
I have to stop windows from going into sleep when my program is running. And I don't only want to prevent the sleep-timer, I also want to cancel the sleep-event if I press the sleep-button or in any other way actively tell the computer to sleep. Therefore SetThreadExecutionState is not enough. Or...I don't actually h...
[ 0.31087690591812134, 0.03440740704536438, 0.46250414848327637, -0.042188871651887894, 0.0890662670135498, -0.37225449085235596, 0.5164681077003479, -0.16347146034240723, -0.14515012502670288, -0.714942991733551, 0.030008280649781227, 0.8228629231452942, -0.09581368416547775, 0.022406132891...
in the middle of ... Great you say, when it resumes it can just continue. If the hardware is still connected!!! Users have the habit of pulling cables out whenever they feel like it. You need to handle XP and Vista Under XP trap the WM\_POWERBROADCAST and look for the PBT\_APMQUERYSUSPEND wparam. ``` // See if...
[ 0.7351739406585693, -0.16773083806037903, 0.5177955627441406, 0.2363806664943695, 0.16345305740833282, -0.5502569675445557, 0.4687882661819458, -0.13409674167633057, -0.22744762897491455, -0.4069083333015442, -0.20354151725769043, 0.5017406344413757, -0.40047746896743774, 0.275458127260208...
} // if else { return TRUE; } // else ``` Under Vista use SetThreadExecutionState like this ``` // try this for vista, it will fail on XP if (SetThreadExecutionState(ES_CONTINUOUS | ES_SYSTEM_REQUIRED | ES_AWAYMODE_REQUIRED) == NULL) { // try XP variant as well just to make sure SetThreadExecut...
[ -0.17628394067287445, -0.027067478746175766, 0.9860675930976868, -0.2306874394416809, 0.06445090472698212, 0.0636577233672142, 0.7240315675735474, -0.2619077265262604, -0.0398445688188076, -0.7056166529655457, -0.4162331819534302, 0.7633830904960632, -0.2122594714164734, 0.0333052761852741...
I have an ASP.Net page that has a button that when clicked I would like to take a screenshot of the user's PC and send it to a server. I'm ok with writing some sort of listener program to run on the server to accept requests to receive these images. Where I'm a bit hazy is the best way to get the user's PC to send the...
[ 0.39194416999816895, 0.1762371063232422, 0.40489742159843445, 0.05461926758289337, -0.19234400987625122, 0.034027762711048126, 0.06465436518192291, 0.26950639486312866, -0.2797224521636963, -0.6631495952606201, 0.24360862374305725, 0.3232494592666626, -0.16579166054725647, 0.14533077180385...
right direction and what technologies I should use would be great. I would rather write this functionality myself if possible than use an out of the box solution as I can see that this functionality may be extended in the future. How does something like WebEx or copilot manage this? Thanks Gavin Edit : Just to make...
[ 0.34602487087249756, -0.12645283341407776, 0.39801284670829773, 0.5177040696144104, 0.14496450126171112, -0.34249982237815857, 0.12223254144191742, 0.2129807025194168, -0.060313452035188675, -0.5502209067344666, 0.2100599706172943, 0.7930419445037842, 0.14860039949417114, -0.16001656651496...
needs to be cross-browser and all, you should take a look at Java(applets). It may sound old fashion but I think it's your best option. ActiveX works on windows/IE only ;) For starters, take a look at this question, which is quite similar: [Is there a way to take a screenshot using Java and save it to some sort of ima...
[ 0.21151427924633026, -0.17644760012626648, 0.2008899748325348, 0.03793972730636597, 0.0677383616566658, -0.266294926404953, 0.15923616290092468, 0.06394460797309875, -0.3550887703895569, -0.7927230000495911, -0.07299590855836868, 0.6036720871925354, -0.35878539085388184, -0.378895610570907...
I am using posix c regex library(regcomp/regexec) on my search application. My application supports different languages including those that uses multi-byte characters. I'm encountering a problem when using word boundary metacharacter (\b). For single-byte strings, it works just fine, e.g: "\bpaper\b" matches "paper" ...
[ 0.10463282465934753, 0.3227274417877197, 0.0026026414707303047, 0.4186530113220215, -0.1593610942363739, -0.11432366073131561, 0.15434159338474274, 0.20318831503391266, -0.13260820508003235, -0.38608038425445557, 0.038686495274305344, 0.5589116215705872, -0.34635236859321594, 0.01012582611...
UTF-8 bytes? A locale-specific multibyte encoding such as GB? If you're not dealing with wide (Unicode) strings natively, you can't expect any more support for non-ASCII characters than just detecting they're there. POSIX regex doesn't specify any character classes for bytes outside the ASCII range, so it doesn't know...
[ -0.22467659413814545, 0.07003277540206909, 0.3673860728740692, -0.07602018117904663, -0.14882150292396545, -0.10312207043170929, -0.02460443042218685, 0.0827096626162529, -0.2683120667934418, -0.33079320192337036, -0.46140846610069275, 0.23408196866512299, -0.33749958872795105, -0.05457963...
in itself.) If all you want to detect is plain old spaces, you could do that explicitly: ``` (\s|^)紙張(\s|$) ```
[ -0.015977179631590843, 0.3409391939640045, 0.10195273905992508, 0.008908393792808056, -0.20795902609825134, -0.08211253583431244, 0.048046842217445374, -0.09248896688222885, -0.12381090223789215, -0.3479427993297577, -0.5082412362098694, 0.5784289240837097, -0.36542442440986633, 0.10327712...
Our customer is using our software (Java Swing application started using Webstart) besides other software like MS Office, to do his job. From time to time there are important events he has to deal with in our software without much delay. The customer wants to have a prominent notification then. Now he might be using Ex...
[ 0.27773383259773254, 0.06526396423578262, 0.2898603081703186, -0.13069716095924377, 0.15045660734176636, -0.010648935101926327, 0.1267562061548233, 0.3678229749202728, -0.18953411281108856, -0.5800281167030334, -0.2343522161245346, 0.3125051259994507, -0.15278112888336182, -0.4076181948184...
notifier should be displayed all the time until the reason for the message has gone (the user has solved the issue) or the user has closed the message (like in outlook). Additionally we want to display a tray icon and maybe play a sound. I've tried the Java6 java.awt.SystemTray as well as the JDIC (version 0.9 since w...
[ 0.39352118968963623, -0.2700704336166382, 0.12025745213031769, -0.11658904701471329, -0.1611069142818451, 0.07352729886770248, 0.2872103452682495, 0.0314020961523056, -0.20629499852657318, -0.6571963429450989, 0.33074021339416504, 0.28813254833221436, -0.3844519257545471, -0.08353500068187...
achieve the requested behavior? If JNI is the only choice and since Windows is the only platform of our customers, is the Outlook notifier an Outlook only feature, or is it freely usable through the Windows API? Or what other options exist to notify the user about an important task to perform in one software without...
[ 0.2749495208263397, -0.38102319836616516, 0.3308705687522888, 0.11182063072919846, 0.2646650969982147, -0.1396147757768631, 0.5128310322761536, 0.008963335305452347, -0.005506748799234629, -0.7775397896766663, -0.08334018290042877, 0.6494398713111877, -0.21798448264598846, -0.3703636229038...
Just read [Joel on Software - How to be a program manager](http://www.joelonsoftware.com/items/2009/03/09.html). In his article he points out different things for a program manager. > * ...(in fact, with 14 years of programming experience, you might know > too much to be a good user advocate > * ...earn the respect ...
[ 0.28476330637931824, 0.024803748354315758, -0.03979586437344551, 0.26219576597213745, -0.14510826766490936, -0.12603610754013062, 0.4357072710990906, -0.07731898874044418, 0.19028785824775696, -0.48012372851371765, 0.27793988585472107, 0.646282434463501, 0.21613557636737823, 0.047407068312...
your opinion 1. indispensable 2. less important 3. needless 4. inoperative to have. IMO the most important skill of a PM is sheilding developers from the politics of the job. If the customer (whether that be internal or external) is interfering with the developer's productivity then the PM isnt doing their job.
[ 0.30388200283050537, 0.03405342623591423, 0.16178779304027557, 0.29703113436698914, -0.059646978974342346, -0.029232973232865334, 0.05665191635489464, 0.038180671632289886, -0.02348354645073414, -0.4508953392505646, -0.017482763156294823, 0.984087347984314, 0.10198450088500977, -0.19127312...
I just looked at one of those libraries that is of the naming schema "something-Linq" expecting to gain some more knowledge on how to construct expression trees in an elegant way - and was disappointed. Because all I could find were methods that extended IEnumerable - of course with "normal" C# code. Now I have this q...
[ 0.46386536955833435, 0.010555245913565159, 0.12124785780906677, 0.2804642915725708, -0.1759464293718338, -0.27527934312820435, 0.11544856429100037, 0.2142513245344162, -0.271221399307251, -0.08450745791196823, -0.038713954389095306, 0.6157032251358032, -0.2220393568277359, 0.11259260028600...
expressions when seeing "Linq" in the name of the library? Edit: I would argue that there is a difference between Linq-to-... and something-Linq libraries. IMHO Linq-to-... are linq provider libraries, something-Linq are linq extensions. I think Linq provider libraries may choose if they expose IQueryable or IEnumera...
[ 0.01609821245074272, 0.0005961793940514326, 0.2857968509197235, 0.3388827443122864, -0.360723078250885, -0.0464332289993763, -0.10514629632234573, -0.15033133327960968, -0.2121516317129135, -0.3490198254585266, -0.13835762441158295, 0.41943666338920593, -0.21924100816249847, -0.15666811168...
the comments of his answer. I volunteered to create a blogpost to hopefully clarify things: [Mapping the uncharted waters of LINQ](http://saftsack.fs.uni-bayreuth.de/~dun3/archives/mapping-the-unchartered-waters-of-linq/253.html) Edit 3: For anybody who is interested in the discussion - I really encourage you to go t...
[ -0.01467303279787302, 0.004062460269778967, 0.3845840096473694, 0.5521522760391235, -0.5968494415283203, -0.3156335949897766, 0.10889314115047455, 0.3005332350730896, -0.10433173179626465, -0.3755951523780823, -0.12383579462766647, -0.03450719267129898, -0.017236320301890373, -0.1277750581...
just an XML API which exposes `IEnumerable<T>` in various ways, both as input and output. That means it works really well with LINQ to Objects, but it's not implementing any of the standard operators itself. However, you do typically *use* it with LINQ to Objects, and the result is "LINQ-like" code, so I guess it's not...
[ 0.3698429763317108, -0.05550608038902283, 0.40332844853401184, 0.01673191785812378, -0.28020814061164856, -0.25647634267807007, 0.13529497385025024, -0.02054675854742527, -0.27485212683677673, -0.4482891857624054, -0.2477274090051651, 0.42454275488853455, -0.20854561030864716, -0.132033988...
to make the access/processing fluent, ideally (but not necessarily) conforming to the query expression pattern to enable the language features of VB9 and C#3 to help with readable code?
[ 0.20436306297779083, 0.24394457042217255, 0.14004385471343994, 0.06775916367769241, -0.022914262488484383, 0.006818913388997316, 0.23834702372550964, -0.0130337905138731, -0.11536000669002533, -0.16918975114822388, -0.04685315862298012, 0.7406596541404724, -0.08195620775222778, -0.32906591...
I'm about to start a new project which should have a rather large database. The number of tables will not be large (<15), majority of data (99%) will be contained in one big table, which is almost insert/read only (no updates). The estimated amount of data in that one table is going to grow at **500.000 records a da...
[ 0.5136661529541016, 0.19343338906764984, 0.43114620447158813, 0.297716349363327, 0.33671835064888, -0.2172275185585022, 0.052792273461818695, 0.12823306024074554, -0.6639903783798218, -0.6621351838111877, 0.09409195929765701, 0.27538609504699707, 0.11473891884088516, 0.24069984257221222, ...
databases, so I'm asking the ones that have which DB is the best choice in this situation. I know that **Oracle** is the safe bet, but am more interested if anyone have experience with **Postgresql** or **Mysql** with similar setup. I've used PostgreSQL in an environment where we're seeing 100K-2M new rows per day, mos...
[ 0.3678492307662964, 0.06722746789455414, 0.03718378022313118, 0.38773390650749207, -0.12652267515659332, -0.08117512613534927, -0.060482125729322433, -0.003973433747887611, -0.16297395527362823, -0.7074955105781555, 0.11296498030424118, 0.5251063108444214, -0.09172811359167099, 0.196373105...
COPY. Query performance is fine, although the choices the planner makes sometimes puzzle me; particularly when doing JOINs / EXISTS. Our database requires pretty regular maintenance (VACUUM/ANALYZE) to keep it running smoothly. I could avoid some of this by more carefully optimizing autovacuum and other settings, and i...
[ 0.48171553015708923, 0.2974283695220947, 0.12767501175403595, 0.2580242455005646, 0.02732124738395214, -0.29328861832618713, 0.2862285077571869, -0.05055800452828407, -0.08508714288473129, -0.8307636380195618, 0.19921885430812836, 0.7034105658531189, -0.2650635242462158, -0.059568997472524...
large datasets.
[ -0.12779366970062256, -0.07726076990365982, -0.010113625787198544, 0.3592718541622162, 0.19356948137283325, -0.015305609442293644, -0.2776758372783661, 0.04509968310594559, -0.5380117893218994, -0.6397067904472351, -0.6294459104537964, 0.040687594562768936, -0.27224966883659363, 0.14093726...
I have an object that I ended up with via a reflection call: `object readOnlyCollectionObject = propertyInfo.GetValue(someEntity, null);` I know this object is a generic ReadOnlycollection. It could be a `ReadOnlyCollection<Cat>`, `ReadOnlyCollection<Dog>`, etc. For argument sake, lets just say it is a `ReadOnlyColle...
[ 0.3277498781681061, 0.2290380746126175, 0.19942478835582733, 0.04560926556587219, -0.12007143348455429, -0.20237533748149872, 0.3023861348628998, -0.2156846523284912, -0.0879707783460617, -0.44252029061317444, 0.1261918991804123, 0.32974880933761597, -0.4465735852718353, 0.52302485704422, ...
as an array of object references without having to know the specific type (T) of the `ReadOnlyCollection<T>`. Many other answers mention Cast() and ToArray, those all have a problem with the type. As you say, you won't know which specialized IEnumerable your property will implement. However, you can be sure that they w...
[ 0.11094935238361359, 0.1467917412519455, 0.6728514432907104, -0.01411372609436512, 0.05638476833701134, 0.058592040091753006, 0.3469697833061218, -0.4719933569431305, -0.0999898910522461, -0.5918175578117371, -0.1533244550228119, 0.5487551093101501, -0.3074261248111725, 0.3786280155181885,...
We are trying to modify the Action attribute of the main ASP.NET form in the master page dynamically. The page has a radio button, user selects one of the options and clicks on submit, on postback, based on the selection the Form's action attribute should be set and the form should be submitted again automatically. ...
[ 0.1853315234184265, -0.2393159717321396, 0.6289787292480469, -0.0512489452958107, 0.04617929458618164, -0.10787110775709152, 0.3960746228694916, -0.4219176769256592, -0.2135106325149536, -0.603638768196106, -0.3006097376346588, 0.6331801414489746, -0.41689735651016235, -0.07711835205554962...
cant remove the master page .. any pointers on how can this be achieved.. ? This is something which I have read they wish they had not done. The Form tag gets its action attribute hardcoded. You have to use a Control Adapter in order to control its construction at runtime. I use it especially for URL Rewriting, when I ...
[ 0.2143937051296234, 0.1265769898891449, 0.5181114077568054, 0.10792583227157593, -0.12802502512931824, -0.03802211210131645, 0.34328699111938477, -0.32848265767097473, -0.059381816536188126, -0.3855699300765991, -0.2501053214073181, 0.3236467242240906, -0.39843514561653137, -0.037359669804...
* My users uploads a picture and the picture get saved into my SQl Server Database * My users view the picture on the page in a normal Image WebControl with size 150px by 150px - example can be found <http://www.erate.co.za/CompanyProfile.aspx?ID=112> - the USA flag is the Image i am talking about. If the user uploads...
[ 0.6150894165039062, 0.04504024237394333, 0.3364879786968231, 0.13581670820713043, -0.23117120563983917, -0.06068826839327812, 0.025235993787646294, 0.2247852236032486, -0.591774582862854, -0.8337337970733643, 0.1818920373916626, 0.28541305661201477, -0.08438846468925476, 0.3243455290794372...
showing the actual size of the picture from the database when the user clicks on the 150px by 150px Image. Note: I dont want the Image static size to increase as this will totally mess up my page layout and look. It must be some form of pop-up or something. Something i have seen before i think was really cool. User cl...
[ 0.2988140285015106, -0.17444029450416565, 0.7247357368469238, 0.24472475051879883, -0.22892369329929352, 0.03546205535531044, 0.25912630558013916, 0.09305950254201889, -0.44331803917884827, -0.5594351887702942, 0.3998080790042877, 0.35896238684654236, -0.1981423795223236, 0.317076504230499...
be done in ASP.NET 2.0? Or something like it? Regards Etienne Use thumbnails of a fixed width/height. You resize the actual images (as stored in the database) on the fly. So your thumnail size is always 150px by 150px. The actual images (width/height) as stored in the database would vary. You start out by showing t...
[ 0.5038208365440369, -0.25592803955078125, 0.7215721011161804, 0.11679483205080032, -0.028994373977184296, 0.16850897669792175, 0.2257339507341385, -0.35708382725715637, -0.27446746826171875, -0.7702136635780334, -0.1465800255537033, 0.8655360341072083, -0.035624802112579346, -0.15391020476...
try { Bitmap imgIn = new Bitmap(path); //Scale double y = imgIn.Height; double x = imgIn.Width;
[ 0.007727522403001785, -0.5983861088752747, 0.4891001582145691, -0.1543004810810089, -0.1412508487701416, 0.4011373519897461, 0.7359116673469543, -0.40538808703422546, -0.3276109993457794, -0.7525590062141418, -0.1253151148557663, 0.255822092294693, -0.13753248751163483, 0.08371633291244507...
double factor = 1; if (width > 0) { factor = width / x; }
[ 0.12497849762439728, -0.5737911462783813, 0.19790369272232056, -0.481050044298172, -0.19577093422412872, 0.11044305562973022, 0.29396912455558777, -0.37963658571243286, -0.1673841029405594, -0.5345298051834106, -0.27699849009513855, 0.583473801612854, -0.3522106409072876, -0.06053223833441...
else if (height > 0) { factor = height / y; } System.IO.MemoryStream outStream = new System.IO.MemoryStream(); Bitmap imgOut =
[ -0.19503577053546906, -0.49472832679748535, 0.6135088801383972, -0.16548825800418854, 0.33339786529541016, 0.22941844165325165, 0.3926302492618561, -0.4846043884754181, -0.21041525900363922, -0.4698548913002014, -0.12499240785837173, 0.5689337253570557, 0.004361981991678476, -0.08688003569...
new Bitmap((int)(x * factor), (int)(y * factor)); Graphics g = Graphics.FromImage(imgOut); g.Clear(Color.White); g.DrawImage(imgIn, new Rectangle(0, 0, (int)(factor * x), (int)(factor * y)), new Rectangle(0, 0, (int)x, (int)y), GraphicsUnit.Pixel); imgOut....
[ -0.13081225752830505, -0.4087047278881073, 0.7071579098701477, -0.02973264269530773, -0.33050575852394104, 0.5391452312469482, -0.16799677908420563, -0.32039082050323486, -0.3889620900154114, -0.9130637645721436, -0.4677661657333374, 0.36470580101013184, -0.4429003894329071, 0.133554860949...
return outStream.ToArray(); } catch (Exception) { ... } } ``` This example uses a .jpg image on the web server file system but can be adjusted to cater for any images/types stored in the db. Mooi bly. Edit: Fixed ImageFormat
[ 0.2631067931652069, -0.1889883279800415, 0.18185901641845703, -0.043836385011672974, -0.04612196236848831, -0.1487114131450653, 0.19121909141540527, -0.24856099486351013, -0.22867363691329956, -0.5469766855239868, -0.26591578125953674, 0.45906537771224976, -0.3798556923866272, 0.0256752893...
I have a PHP page that has 1 textbox and when I press on the submit button. My SQL is going to store this product name into my database. My question is; is it possible to send/post the product name using Python script that asks for 1 value and then use my PHP page to send it to my database? Thanks! Check out the urllib...
[ 0.5636999011039734, 0.21705059707164764, 0.44893157482147217, -0.09173518419265747, -0.15949392318725586, 0.09866688400506973, 0.03463315963745117, -0.2466210126876831, -0.0684329941868782, -0.6829807162284851, 0.11658553779125214, 0.23077529668807983, -0.177878275513649, 0.274765610694885...
I use an ActiveX control which is just a HTTP handler. It sends out an HTTP request, gets the response and fires an event to the user. When the user is not requesting the ActiveX control is pretty much dormant. It just waits for a user request to send another HTTP request. As long as the window in which the OCX reside...
[ 0.3853481113910675, 0.07543178647756577, 0.3870900571346283, -0.039666797965765, 0.008006253279745579, 0.013553762808442116, 0.13541600108146667, 0.10874465107917786, -0.20712104439735413, -0.5624246001243591, -0.027084996923804283, 0.4204554557800293, -0.36421892046928406, 0.0629815310239...
via `BSTR`s, you might be running into [`BSTR` caching](http://support.microsoft.com/kb/139071). To verify, you'll want to set the environment variable `OANOCACHE` to 1 or call `OaSetNoCache()` directly. The environment variable should be easier to test with.
[ -0.07910079509019852, -0.03020181506872177, 0.15090733766555786, -0.15672667324543, 0.09751380234956741, -0.4488492012023926, 0.10329176485538483, 0.20355844497680664, -0.09091222286224365, -0.464216411113739, -0.37111812829971313, 0.3242391347885132, -0.444519966840744, 0.2610525786876678...
Below is the structure of my div: ``` <div id="ctl00_ContentPlaceHolder1_Jobs_dlItems_ctl01_a" onmouseup="checkMultipleSelection(this,event);"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td style="width:50px; text-align:left;">09:15 AM</td> <...
[ -0.12101256102323532, 0.06530611962080002, 0.9268194437026978, -0.07519032806158066, -0.02097269706428051, -0.010420187376439571, 0.02874479442834854, -0.37836286425590515, -0.029336808249354362, -0.8783156275749207, -0.22811925411224365, 0.39232736825942993, 0.08097488433122635, 0.2103711...
<td style="width:50px; text-align:left;">46545465</td> <td style="width:50px; text-align:left;">ref1</td> </tr> </table> </div> ``` Now, if i have the id of the div, how can i get the time and address for this div using JavaScript? ``` var tds = document.getElementById("ctl00_Content...
[ 0.48004838824272156, -0.03240671381354332, 0.6049361824989319, -0.16651859879493713, -0.05158989131450653, -0.007468740921467543, 0.22603556513786316, -0.8093910813331604, 0.08096621185541153, -0.5393732786178589, -0.14462433755397797, 0.6216512322425842, -0.09019322693347931, 0.1485275477...
If I have a client application which needs to call a web service. I want to know the pros/cons and impact if I set default proxy property to true or false in app.config file? Thanks! Here is the property I am talking about. <http://msdn.microsoft.com/en-us/library/kd3cf2ex.aspx> regards, George Since you are trying ...
[ 0.30531710386276245, 0.2986842691898346, 0.47447213530540466, 0.15343347191810608, 0.2929557263851166, -0.20715409517288208, 0.3611442446708679, -0.24371546506881714, -0.24205471575260162, -0.635212242603302, -0.15248990058898926, 0.36213091015815735, -0.3615897297859192, 0.340912520885467...
MessageBox.Show("Excel app object could not be created"); } else { exlFileSelector.FileName = @"*.xls"; if (exlFileSelector.ShowDialog() == DialogResult.OK) { Excel.Workbook wrkBook = exlApp.Workbooks.Open(exlFileSelector.FileName, 0, true, 5, "", "", true, Excel.XlPlat...
[ 0.16816158592700958, -0.10438942909240723, 0.80061274766922, -0.30147016048431396, 0.10058174282312393, 0.1981702297925949, 0.3981538712978363, -0.27841636538505554, 0.03044435940682888, -0.5411460995674133, -0.35863107442855835, 0.5421492457389832, -0.5951802134513855, -0.1708003878593444...
Excel.Range search = exlApp.get_Range("A1", "C5"); search.Find("FindMe", null, Excel.XlFindLookIn.xlValues, Excel.XlLookAt.xlWhole, Excel.XlSearchOrder.xlByRows, Excel.XlSearchDirection.xlNext, false, null, null); } } } ``` **Further reading:** [How to: Search for Text in Worksheet Ranges](ht...
[ -0.05983331426978111, 0.22492554783821106, 0.6059946417808533, -0.11285681277513504, -0.07295838743448257, 0.22606617212295532, 0.28908616304397583, -0.3325311839580536, 0.01585623435676098, -0.6000032424926758, -0.5889147520065308, 0.692747950553894, -0.4088970720767975, -0.16735050082206...
I'm wondering if there are any reasons (apart from tidying up source code) why developers use the "Remove Unused `Usings`" feature in Visual Studio 2008? There are a few reasons you'd want to take them out. * It's pointless. They add no value. * It's confusing. What is being used from that namespace? * If you don't, t...
[ 0.3788207173347473, 0.3890571594238281, -0.21366703510284424, -0.07819622755050659, -0.3529590368270874, -0.13657714426517487, 0.38509583473205566, 0.05321880802512169, -0.3940349519252777, -0.4438157379627228, -0.007189472671598196, 0.5674359798431396, -0.24145323038101196, 0.202229648828...
that lazy, you've got bigger problems!
[ 0.27319419384002686, 0.15547768771648407, -0.26304158568382263, 0.1554855853319168, -0.18099729716777802, -0.07646536827087402, 0.31358468532562256, 0.43487972021102905, -0.783416748046875, -0.3409011960029602, 0.060983892530202866, 0.6051052212715149, -0.4290134608745575, 0.09191309660673...
This is intended to be a lightweight generic solution, although the problem is currently with a IIS CGI application that needs to log the timeline of events (second resolution) for troubleshooting a situation where a later request ends up in the MySQL database BEFORE the earlier request! So it boils down to a logging ...
[ 0.15954522788524628, -0.06030232459306717, 0.3264717161655426, -0.11202659457921982, -0.07762511074542999, -0.15154318511486053, 0.3070000112056732, -0.2701338529586792, -0.5626330971717834, -0.43516960740089417, 0.09124799817800522, 0.4361345171928406, -0.4794454574584961, 0.1084396913647...
require each instance to open and close the file for each write or I could use a database which would handle this for me, but it doesnt make sense to use a database like MySQL to try to trouble shoot a timeline issue with itself. SQLite is another possability, but this thread <http://www.perlmonks.org/?node_id=672403...
[ 0.15605127811431885, 0.2840671241283417, 0.3092972934246063, 0.08152073621749878, -0.007894300855696201, -0.25961777567863464, 0.2822416126728058, 0.06486864387989044, -0.24680642783641815, -0.5605147480964661, 0.36863598227500916, 0.3122532069683075, -0.30480191111564636, 0.12940856814384...
is only needed occassionally. Suggestions? Try the simplest solution first - each write to the log opens and closes the file. If you experience problems with this, which you probably won't , look for another solution.
[ 0.11393280327320099, 0.026938751339912415, 0.23062273859977722, 0.10517466813325882, 0.23352856934070587, -0.047119636088609695, 0.10424253344535828, 0.09656938165426254, -0.21015676856040955, -0.5624417662620544, -0.11442557722330093, 0.47525882720947266, -0.14410686492919922, -0.09812706...
For example: ``` $("table tr").click( function(event) { //Say, here i want get the data of td element where its class name="special" }); ``` Is there any way I can select a element while in the click event, a element under the attached element above `$("table tr")`? In this specific case, you can do this: ``` $(...
[ -0.08489754796028137, -0.24809233844280243, 0.24027509987354279, -0.12062845379114151, 0.22227978706359863, 0.11091703921556473, 0.05524803325533867, -0.26010239124298096, -0.1744590401649475, -0.4531007409095764, -0.5082040429115295, 0.7906793355941772, -0.19799304008483887, 0.06234735995...
I'm working on a page, in which other pages are opened from it in a modal way. I need to call function exists in opener page to update certain controls in it. I'm using window.open to open another window but in this case Page.PreviousPage for opened page is null. I'm using ``` <%@ PreviousPageType VirtualPath="~/Pr...
[ 0.014691459015011787, 0.11294342577457428, 0.3468868136405945, 0.07316737622022629, -0.22553789615631104, 0.04935041442513466, 0.33168825507164, -0.027596082538366318, -0.09014840424060822, -0.9292659759521484, 0.003956930246204138, 0.4662865698337555, -0.14007697999477386, 0.0273494254797...
displayed in the browser, the `Page` object no longer exists. The PreviousPage property is used when you make a post from one page to another, but it doesn't contain the `Page` object that was used to render the page, it contains a recreated `Page` object that will not be used to render anything at all. You can only u...
[ 0.16910113394260406, 0.026483183726668358, 0.6495016813278198, -0.020429303869605064, -0.4020002782344818, 0.0103688295930624, 0.08469217270612717, 0.17012947797775269, -0.08983859419822693, -0.9265183210372925, -0.17073611915111542, 0.059790194034576416, -0.30949756503105164, 0.4928605854...
the server side code can repopulate it. A combination of them both would be to use AJAX to update the page. Edit: You can for example use Javascript to access the opener and change the content of an element: ``` window.opener.document.getElementById('Info').innerHTML = 'updated'; ``` You can also call a Javascri...
[ 0.09076148271560669, -0.21427753567695618, 0.4466874599456787, 0.11859825998544693, -0.19392091035842896, -0.0020933959167450666, 0.13128399848937988, -0.303975909948349, -0.011750727891921997, -0.9829060435295105, -0.2584722340106964, 0.6380531191825867, -0.28147152066230774, 0.1514773070...
I am trying to update an old VB6 application. I am struggling with changing the backcolor of the SSTab control at runtime. I know that I cannot just set the Backcolor to the required colour. At designtime I have created a label on each tab and then resized the label to the sstab dimensions. Then I set the label backc...
[ 0.7156479358673096, 0.1272696852684021, 0.6487591862678528, -0.2694927453994751, 0.04386807978153229, -0.08001809567213058, 0.44237202405929565, -0.10505032539367676, -0.09027763456106186, -0.975257396697998, 0.2836744487285614, 0.6827321648597717, -0.28543201088905334, 0.2842744290828705,...
be grateful if someone can point me in the right direction to create and display a label on every tab of a SSTab control at runtime? I dont have frames on all the tabs so I dont want to use the frame container to hold the label. I would rather just have the label placed on the tab container at runtime. Thanks and I ...
[ 0.6925872564315796, 0.15394867956638336, 0.4456341862678528, 0.23291732370853424, -0.22499316930770874, -0.2930837571620941, 0.5157163739204407, -0.23380041122436523, -0.08247818052768707, -0.7540988922119141, 0.18774357438087463, 0.6746218800544739, -0.16700467467308044, -0.14922301471233...
need to set the current tab before creating the control to get it sited on that tab. Assuming you already have the first label on the first tab: ``` For i = 1 To Me.SSTab1.Tabs - 1 Me.SSTab1.Tab = i Load lblOne(i) lblOne(i).Visible = True Next ``` Also, this doesn't work in the Form\_Load event, but doe...
[ 0.22848492860794067, -0.34563764929771423, 0.6223343014717102, -0.2047480195760727, 0.1249220222234726, -0.17710572481155396, 0.12060917168855667, -0.4078153073787689, -0.17081300914287567, -0.524808943271637, -0.2984847128391266, 0.6953674554824829, -0.35194411873817444, -0.00511368783190...
As Label Dim i As Integer Dim name As String ReDim lbl(SSTab1.Tabs - 1) For i = 0 To Me.SSTab1.Tabs - 1 Me.SSTab1.Tab = i name = "MyLabel" & CStr(i) Set lbl(i) = Form1.Controls.Add("VB.Label", name) Set lbl(i).Container = Me.SSTab1 lbl(i).Visible = True lbl...
[ 0.0497143529355526, -0.33487188816070557, 0.8081305623054504, -0.2119707614183426, -0.08804250508546829, 0.11900819838047028, 0.07925956696271896, -0.34846022725105286, -0.18769335746765137, -0.3451646566390991, -0.18544170260429382, 0.33868709206581116, -0.29070010781288147, 0.48161420226...
lbl(i).Move 40, 345 lbl(i).BackColor = vbGreen Next End Sub ```
[ 0.03847211226820946, -0.28470537066459656, 0.7190755009651184, -0.4382813572883606, -0.28606656193733215, 0.3036903142929077, -0.012217283248901367, -0.6768441200256348, -0.22563494741916656, -0.2856356203556061, -0.2676689624786377, 0.2892654836177826, -0.3255576193332672, 0.2479567974805...
Can anyone tell me how to format a given number of seconds (for example 16742 seconds) in a human readable form (for example 1d 5h 2m 13s) * using a BO field formula or * from within a T-SQL SELECT statement (where the Duration as Seconds is from a SUM aggregate)? A Gaussian distribution with a mean 0 and standard...
[ 0.5667784214019775, -0.1512107253074646, 0.14304064214229584, 0.06624891608953476, -0.12151429057121277, 0.15788547694683075, 0.44423264265060425, -0.15750962495803833, -0.27320972084999084, -0.328500360250473, 0.04459582269191742, -0.15548790991306305, -0.02303333766758442, 0.063608020544...
a better solution is to generate a distribution with `mean=0` and `std.dev=0.5`. This will give you a distribution with about 96% of the values in the range [-1, 1]. An even better solution is to work backward as above and use the idea that approx. 99.7% of the values lie in the 3-sigma range: use a `std.dev = 1/3`. T...
[ 0.11762946099042892, -0.2591533362865448, 0.2168484330177307, 0.018067175522446632, -0.19185474514961243, 0.10403494536876678, 0.42074111104011536, -0.3724522590637207, 0.045877665281295776, -0.6578812003135681, -0.00928112119436264, 0.42758089303970337, 0.0011246446520090103, 0.0566428340...
I work in Delphi 2007 (both win32 and .Net) but the CodeGear IDE frequently annoys me, so if possible I'd like to find a replacemnt. We have a build script so I can compile from the command line and I very rarely do any GUI designing, so the only thing I need is a text editor (with syntax highlighting, Autocomplete/In...
[ 0.11911126971244812, 0.28871098160743713, 0.12396705150604248, -0.22631481289863586, -0.16384252905845642, -0.42564651370048523, 0.30807968974113464, 0.03880608081817627, 0.006109626032412052, -0.6370592713356018, -0.0005254513234831393, 1.0296673774719238, -0.12228856980800629, -0.0620353...
it for editing? Does anyone have any experience of breaking away from RAD studio? P.S. I am aware of the new Delphi Prism but that won't solve my problems - I still need to work in vanilla Delphi and use the Delphi 2007 compiler. You can of course edit source files outside of the Delphi IDE. When you switch back to t...
[ 0.08681456744670868, -0.05418303608894348, 0.266087144613266, 0.0069646080955863, -0.36628997325897217, -0.46930378675460815, -0.06845808774232864, -0.1331406533718109, -0.3356831967830658, -0.346920371055603, 0.04347960650920868, 0.7443320751190186, -0.1477598249912262, -0.007104518823325...
but to keep the confirmations from appearing it is best to not have source files open in the Delphi editor at all while you edit them in emacs. Even if you use a custom build script and build the project from emacs you should still keep the project file up-to-date. When you use the debugger in the IDE it will usually ...
[ 0.3727840483188629, 0.20667187869548798, 0.004274128004908562, 0.15179620683193207, -0.15679185092449188, -0.6162710785865784, 0.30471721291542053, -0.13354253768920898, -0.1339215636253357, -0.657295286655426, -0.16847026348114014, 0.7750990986824036, -0.18060019612312317, -0.060695406049...
directories that are in your search / browse path, or if you have not all your source directories in the search / browse path. Whatever tools you use for editing or otherwise changing your source files, make sure that you always have DOS style CR+LF line endings (*\r\n*, *#13#10*) in all lines, as LF only (*\n*, *#10*...
[ -0.19902798533439636, 0.08007057756185532, 0.47663238644599915, 0.2917689383029938, 0.18073788285255432, -0.29326125979423523, 0.33067062497138977, 0.2991982698440552, -0.19516988098621368, -0.8268797397613525, -0.674929678440094, 0.16902510821819305, -0.3846572935581207, -0.05781367793679...
saver, but be sure to use the tools compiled for Win32, and not those provided with (for example) the cygwin environment.
[ -0.3001241683959961, 0.07489276677370071, 0.14638088643550873, -0.042356643825769424, -0.010157382115721703, -0.5948752164840698, 0.15335588157176971, 0.24112889170646667, 0.048390619456768036, -0.8340190649032593, -0.26789841055870056, 0.7937897443771362, -0.3335053622722626, -0.154827296...
I have a database with a report table. This table represents report data, and has constraints. Now the application is used by firemen, and they might have to run off and put out some fires. So in the middle of filling out data for this table, they might have to run off. What we do is when the session run out we save th...
[ 0.5597966909408569, 0.42361485958099365, 0.3556278944015503, 0.11317062377929688, 0.09626386314630508, -0.19817432761192322, 0.1649734228849411, -0.5693891644477844, -0.1688755303621292, -0.44708576798439026, 0.21966619789600372, 0.393636554479599, -0.25631579756736755, 0.12525099515914917...
the draft again. This works fine! However the firemen now wants to be able to search the table and the draft table. So here I would like to maybe store all the data (including the draft) into one table, that I search, so I don't have to consolidate the search from two tables.. Is there some kind of database pattern f...
[ 0.33884477615356445, 0.004602879751473665, 0.6088594794273376, 0.11721650511026382, -0.07878487557172775, 0.18455557525157928, -0.03247230499982834, -0.38046392798423767, -0.464514821767807, -1.008133888244629, 0.3313133716583252, 0.5086358785629272, 0.11218420416116714, -0.060305077582597...
I assume they both have (almost) identical structures) and then run searches on that as the source if they want to include both. I wouldn't actually merge the complete and draft data at any point: the potential for error and accidental use of unvalidated data seems huge. You wouldn't be working on an interface for th...
[ 0.5939486026763916, 0.19117411971092224, 0.1430775672197342, 0.14425767958164215, 0.2016386240720749, -0.25293269753456116, 0.1054629534482956, -0.03538373485207558, 0.06464747339487076, -0.3624441623687744, 0.12233805656433105, 0.23906053602695465, 0.04941906780004501, -0.0578162409365177...
I need to disable some user accounts within a sql server version 2000. the following sql command is giving me an " incorrect syntax near 'Login' " error. The user name is valid and spelled correctly so I'm wondering if the command syntax is different for version 2000. ``` ALTER LOGIN exampleuser DISABLE ``` SQL Serv...
[ 0.10869797319173813, 0.4625604748725891, 0.47054722905158997, -0.058852069079875946, 0.01783297024667263, -0.27273285388946533, 0.7398089170455933, -0.14602823555469513, -0.2755977213382721, -0.4769437313079834, 0.055973827838897705, 0.7880419492721558, -0.5794231295585632, 0.3435201644897...
and groups. To be able to deny pure SQL Server logins, it seems like the only option is to remove that login completely with ``` EXEC sp_droplogin 'exampleuser' ``` but to enable it again, it needs to be re-created with ``` EXEC sp_addlogin 'exampleuser', 'examplepassword' ``` or just remove that logins acces...
[ 0.13287599384784698, 0.35464462637901306, 0.21733413636684418, 0.10529080033302307, -0.18852630257606506, -0.24194782972335815, 0.3241373896598816, -0.03878046199679375, -0.3935791850090027, -0.20036378502845764, -0.2869935631752014, 0.32709163427352905, -0.5935447216033936, 0.189332589507...
I have 2 servers running SQL Server 2005 with merge replication set up between them. Each server is connected to the building network, but they also have a cross-over cable connecting them creating a private network. **How do I configure merge replication so it uses the private network and not the building network?**...
[ 0.4367019832134247, 0.37461423873901367, 0.21546417474746704, -0.0035714549012482166, -0.04360867291688919, 0.046218451112508774, 0.1601756066083908, -0.1170596033334732, -0.42971503734588623, -0.7461798787117004, 0.3717760741710663, 0.14071200788021088, -0.032999228686094284, 0.5121603012...
server name could resolve over either network, and I want to prevent replication traffic from being sent on the building network. I don't know if this will work, but it's worth a try. * Make sure the crossover cable is set up as a private subnet between the machines. The IP addresses associated with each endpoint must...
[ 0.41623160243034363, 0.1470201313495636, 0.6504777073860168, 0.07737967371940613, -0.04506617411971092, 0.014240862801671028, 0.4768375754356384, -0.019364584237337112, -0.4074687659740448, -0.9728529453277588, 0.06808274984359741, 0.11567895114421844, -0.10855230689048767, 0.6069723367691...
different server names than the existing ones. I've used server1 and server2 below. 192.168.24.1 server1 192.168.24.2 server2 Test using ``` ping server1 ping server2 ``` to make sure they can talk to each other. Use the server1 and server2 names to configure replication.
[ 0.3794500231742859, -0.13948242366313934, 0.2775304317474365, 0.04779808968305588, -0.1828041821718216, -0.12710393965244293, 0.1118980199098587, -0.1407342106103897, -0.14798501133918762, -1.1073600053787231, 0.47138357162475586, 0.3783653974533081, -0.3663683831691742, 0.1342539638280868...
I have been using PHP for years. Lately I've come across numerous forum posts stating that **PHP is outdated**, that modern programming languages are easier, more secure, etc. etc. So, I decided to **start learning Python**. Since I'm used to using PHP, I just started building pages by uploading an .htaccess file with...
[ 0.529258668422699, 0.3927621841430664, 0.3870207369327545, -0.09852558374404907, -0.5063166618347168, -0.006465070880949497, 0.04136554151773453, 0.1694379448890686, -0.32775458693504333, -0.7023434638977051, 0.2735132873058319, 0.17438335716724396, -0.07883388549089432, -0.097670190036296...