text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
verify the publisher. The two paths above are essentially the same place, just accessed with different paths.
Any idea why the clients do not trust content from their own domain controller when accessed via \\*Company*.local and not \\*ServerName*? Are there any other places I should be looking for the probable cause?... | [
0.5887816548347473,
0.2579115629196167,
0.6238429546356201,
0.23986683785915375,
0.07534123957157135,
-0.829832136631012,
0.18232810497283936,
0.02567133679986,
0.09121724963188171,
-0.32917073369026184,
-0.03402182087302208,
0.6525930762290955,
-0.13327144086360931,
-0.120829738676548,
... | |
tool (from a blank MMC, add the "Resultant Set of Policy" snap-in, then highlight and right-click the "Resultant Set of Policy" in the scope pane and choose "Generate RSoP Data..." Take all defaults...)
I'm assuming you haven't played with the NTFS ACLs on the script or the ACLs on the GPO itself.
My gut says that th... | [
0.3309415578842163,
-0.23606236279010773,
0.44335874915122986,
-0.0654655396938324,
0.11620833724737167,
-0.2847647964954376,
-0.09999941289424896,
-0.27788281440734863,
-0.23896700143814087,
-0.9157344698905945,
-0.20115576684474945,
1.1038979291915894,
-0.312591016292572,
-0.295613795518... | |
RSoP data, and examine the list of GPOs associated with the user. Do you see the GPO containing your script in that list?
Assuming you do see the GPO applying and do see the script listed in the logon scripts to be executed for the user, I'd head over to the Application Event Log next and see if USERINIT is logging an... | [
0.3134051561355591,
0.3579022288322449,
0.5342726707458496,
-0.25194475054740906,
0.04400870203971863,
-0.11532463878393173,
0.020535433664917946,
-0.28658777475357056,
-0.5668970942497253,
-0.6177952289581299,
-0.04998673126101494,
0.6427715420722961,
-0.3618694245815277,
-0.4999393522739... | |
The GPO must be linked at the OU the user object is located within, at a parent OU of the OU the user object is located within, at the top of the domain, or at the site object associated with the IP subnet from which the client computer's IP address has been assigned.
If this doesn't make sense and you're still not se... | [
0.0633653849363327,
0.5413728356361389,
0.6077696681022644,
0.1438920944929123,
0.08711612969636917,
-0.07554268836975098,
-0.5442341566085815,
0.037859175354242325,
0.015851875767111778,
-0.6942806839942932,
-0.30444201827049255,
0.15332290530204773,
-0.16447781026363373,
0.25720539689064... | |
you linked the GPO. | [
0.7076865434646606,
0.17445938289165497,
0.12409818172454834,
0.28696125745773315,
-0.25797587633132935,
-0.032755255699157715,
-0.37135881185531616,
-0.31807443499565125,
-0.18244989216327667,
-0.32320868968963623,
0.4403234124183655,
0.3559679388999939,
0.009780587628483772,
0.0110980644... | |
I know that I can `svn diff -r a:b repo` to view the changes between the two specified revisions. What I'd like is a diff for every revision that changed the file. Is such a command available?
There's no built-in command for it, so I usually just do something like this:
```
#!/bin/bash
# history_of_file
#
# Outputs... | [
0.5522023439407349,
0.22104814648628235,
0.5488817691802979,
-0.2353353649377823,
0.12122461199760437,
0.07667112350463867,
-0.042493224143981934,
-0.3787597715854645,
-0.3793051540851593,
-0.5758140683174133,
-0.1314765363931656,
0.5875116586685181,
-0.1341954618692398,
0.6379845142364502... | |
svn log -q $url | grep -E -e "^r[[:digit:]]+" -o | cut -c2- | sort -n | {
# first revision as full text
echo
read r
svn log -r$r $url@HEAD
svn cat -r$r $url@HEAD
echo
# remaining revisions as differences to previous revision
while read | [
-0.3509904146194458,
-0.001563887344673276,
0.9313897490501404,
-0.37698131799697876,
-0.12944373488426208,
0.0005483062122948468,
0.5513399839401245,
-0.4654609262943268,
-0.34700489044189453,
-0.1317744106054306,
-0.44560274481773376,
0.47893232107162476,
-0.2568451166152954,
0.182212486... | |
r
do
echo
svn log -r$r $url@HEAD
svn diff -c$r $url@HEAD
echo
done
}
}
```
Then, you can call it with:
```
history_of_file $1
``` | [
0.22972704470157623,
0.2596740126609802,
0.5517611503601074,
-0.5645951628684998,
0.05693090334534645,
-0.10011933743953705,
0.3246857225894928,
-0.47370007634162903,
-0.0012255122419446707,
0.1419408768415451,
-0.16567109525203705,
0.47147515416145325,
-0.40409666299819946,
0.286085456609... | |
I just read [this post](https://stackoverflow.com/questions/72271/no-newline-at-end-of-file-compiler-warning) about why new-line warnings exist, but to be honest my team has people working on several different platforms and with several different editors (everyone uses what bests suites them), so the warning has become... | [
0.4726353883743286,
0.12565340101718903,
0.3599931597709656,
0.009217878803610802,
0.04265711456537247,
-0.5445969700813293,
0.4099469482898712,
0.1739296317100525,
-0.447525292634964,
-0.3577505946159363,
0.1002216786146164,
0.2264988124370575,
-0.3163056969642639,
0.07642976194620132,
... | |
is crying wolf too much for anyone to take it seriously anymore, which is a bad attitude but its just human nature.
Right now we compile with `-Wall`, because we want warnings, but is there a counter flag to avoid the new-line warnings?
**Note:** I Looked through the manual a bit but didn't find the answer in any pl... | [
0.36933451890945435,
0.41144201159477234,
-0.28824618458747864,
-0.031184135004878044,
-0.16666610538959503,
-0.1196310892701149,
0.2374476045370102,
-0.0902666375041008,
0.13465631008148193,
-0.062407877296209335,
0.011088740080595016,
0.6436850428581238,
-0.4465929865837097,
-0.135917425... | |
cry-wolf. Because there are over 40 developers, and other non programmer staff as well.
There isn't one as far as i know, i've used GCC for years.
**Update:**
There should not be any warnings raised with C++11 standard. [Related Q](https://stackoverflow.com/a/72409/463758) | [
0.4667837917804718,
0.36481720209121704,
0.05334926024079323,
-0.14921307563781738,
-0.447510689496994,
-0.30463188886642456,
0.3734615445137024,
-0.194854736328125,
-0.18628256022930145,
-0.09734989702701569,
-0.4890598654747009,
0.6021067500114441,
-0.23993659019470215,
0.030930044129490... | |
What is the time complexity of dynamic memory allocation using new, malloc, etc.? I know very little about how memory allocators are implemented, but I assume the answer is that it depends on the implementation. Therefore, please answer for some of the more common cases/implementations.
Edit:
I vaguely remember hearin... | [
-0.05282694101333618,
-0.10856307297945023,
-0.11754526942968369,
0.15341882407665253,
-0.045503951609134674,
0.16478388011455536,
-0.22964897751808167,
0.17891810834407806,
-0.3880489766597748,
-0.6940884590148926,
0.007535131648182869,
0.40333378314971924,
-0.17960812151432037,
-0.025132... | |
(eg: the number of elements in a list you want sorted) then it makes sense to look hard at it.
In most heap implementations, your *n* is the number of contiguous chunks of memory the manager is handling. This is decidedly **not** something typically under client control. The only *n* the client really has control over... | [
-0.26924973726272583,
-0.2651479244232178,
-0.17985735833644867,
0.0546501949429512,
-0.1359078735113144,
0.10660524666309357,
-0.08804266154766083,
0.0016986991977319121,
-0.7432069778442383,
-0.5478757619857788,
-0.22954092919826508,
0.09109947085380554,
0.013990743085741997,
0.253274470... | |
be unservicable. All this could change for the same *n* depending on how previous allocations and deallocations from other clients came in. So really, unless you are implementing a heap, then **the proper answer is that it is non-deterministic**.
This is why hard realtime programmers try to avoid dynamic allocation (a... | [
-0.11232874542474747,
-0.12430611252784729,
-0.17121578752994537,
0.07347223907709122,
-0.1098378524184227,
-0.18112270534038544,
0.1798943728208542,
0.11593592166900635,
-0.39973142743110657,
-0.5426274538040161,
-0.23664796352386475,
0.5639795660972595,
-0.477446585893631,
0.061977032572... | |
Consider two tables transaction and category each having their own ID and information.
A transaction can have more than one category, I have read creating a 3rd table to link transaction and category using their IDs is best. But what would you call this table, assuming you would have many like it?
transactionCategori... | [
0.12370142340660095,
-0.03449074923992157,
0.1346936672925949,
0.29665759205818176,
-0.14153456687927246,
-0.010636976920068264,
-0.4514232873916626,
0.03731923550367355,
-0.5990502238273621,
-0.6440527439117432,
0.07838248461484909,
0.37069544196128845,
-0.25391116738319397,
0.30944970250... | |
whichever sounds better.
Also, I always name my tables in the singular (e.g. student and not students). | [
0.15264156460762024,
0.07014691829681396,
0.455144464969635,
-0.16891226172447205,
-0.3536246418952942,
0.3577563762664795,
-0.31460797786712646,
0.6041585803031921,
-0.4003589451313019,
-0.6825532913208008,
-0.264203816652298,
0.3689553439617157,
0.26508453488349915,
-0.049620699137449265... | |
I'm currently in the process of becoming a maintainer of a small open source project (a Facebook toolkit), and of course, one of the responsibilities is to answer user questions on our forum. While I'm happy to help users learn how to work with our toolkit and deal with issues they may run into (which may eventually in... | [
0.840329647064209,
0.4494643211364746,
-0.15601715445518494,
0.060384392738342285,
0.11648306250572205,
-0.332092821598053,
0.31726309657096863,
0.19585247337818146,
-0.18805652856826782,
-0.38107308745384216,
0.1547008603811264,
0.3537585735321045,
0.2441614717245102,
0.06762084364891052,... | |
really have the time to be a full-on programming teacher. I don't want to just ignore them. They're not asking to be spoon-fed everything; they just don't know where to begin to solve their problems. Is there some way I can point them in the right direction without offending them, and without spending all my time tryin... | [
0.6715269088745117,
0.18200327455997467,
-0.2407466620206833,
0.18101392686367035,
-0.007846458815038204,
0.007288453634828329,
0.38188865780830383,
0.6100432872772217,
-0.08593723922967911,
-0.3736111521720886,
0.13796141743659973,
0.42298606038093567,
0.33828017115592957,
-0.057384796440... | |
Is it possible to free memory allocated by C's alloca() explicitly, before the current function exits? If so,how?
It is possible, but there is no pre-written function to do it. You'd have to delve into your compiler's implementation of alloca() to figure out what it is doing, then write your own freea(). Since every co... | [
0.3125569224357605,
0.046665258705616,
-0.32837674021720886,
0.2981429398059845,
0.08181300014257431,
-0.221275195479393,
-0.11555571854114532,
-0.18151691555976868,
-0.22051425278186798,
-0.29684463143348694,
-0.29411444067955017,
0.4932045638561249,
-0.48097407817840576,
-0.3039260804653... | |
I am looking at embedding Lua in a C++ application I am developing. My intention is to use Lua to script what ordered operation(s) to perform for some given input, ie.
receive a new work item in c++ program, pass details to Lua backend, Lua calls back into c++ to carry out necessary work, returns finished results.
Th... | [
0.25825580954551697,
0.0499534085392952,
0.15177150070667267,
-0.2993781566619873,
-0.15686355531215668,
0.170600026845932,
-0.07704833149909973,
-0.21325114369392395,
0.14992503821849823,
-0.6102182865142822,
-0.23885630071163177,
0.15964308381080627,
-0.3299351632595062,
-0.0634792000055... | |
as:
a) Pushing/Popping all the individual data members onto the stack when crossing to/from C++ and Lua (sounds messy).
b) Constructing a table and populating with the values, then putting that on/off the stack (a little cleaner).
c) Pass it as `userdata` (light/heavy?) (I'm sketchy on this, and not sure if/how I ca... | [
0.09990432858467102,
-0.038047485053539276,
0.36942073702812195,
-0.12801788747310638,
-0.2993820011615753,
-0.05152440071105957,
-0.12329261004924774,
-0.17458714544773102,
-0.44791552424430847,
-0.5450860857963562,
-0.4265386760234833,
0.2011251598596573,
-0.35794463753700256,
-0.1683617... | |
closer of what you need if you must access it from the Lua side. Their metatable would allow you to access it like it was a regular Lua table, for example.
You might be also interested by Roberto's [library for converting data to and from C structs for Lua 5.1](http://www.inf.puc-rio.br/~roberto/struct/ "Library for C... | [
-0.00529522867873311,
-0.19771304726600647,
0.729962944984436,
0.2366979569196701,
-0.1755390465259552,
-0.044546086341142654,
-0.3124660551548004,
-0.14082255959510803,
-0.1400979608297348,
-0.7592611312866211,
0.32651007175445557,
0.42961254715919495,
0.03200072422623634,
-0.028246048837... | |
I have a solution in Visual Studio 2008 which has multiple projects. One of the projects is a WCF project. Sometimes I just want to debug other projects, but when I press F5, Visual Studio has wcfsvchost.exe launched to host the WCF project even it is not "StartUp Project".
Currently, every time I debugging other pro... | [
0.1784958392381668,
0.18430350720882416,
0.2827596366405487,
-0.04939446970820427,
-0.424312025308609,
-0.33902880549430847,
0.23821406066417694,
0.05214137211441994,
-0.3616357147693634,
-0.5751039385795593,
0.11396864056587219,
0.6150032877922058,
-0.35389837622642517,
0.4907428026199341... | |
WCF project and unselect the check box that says 'Start WCF Service Host when debugging another project in the same solution'. | [
0.11125984787940979,
0.09166422486305237,
0.13729628920555115,
0.015625426545739174,
-0.10464654117822647,
-0.565848171710968,
0.46391522884368896,
-0.04123669117689133,
-0.12653078138828278,
-0.6738747358322144,
-0.4031769335269928,
0.270419180393219,
-0.2234324961900711,
0.44196942448616... | |
Are there any known hash algorithms which input a vector of int's and output a single int that work similarly to an inner product?
In other words, I am thinking about a hash algorithm that might look like this in C++:
```
// For simplicity, I'm not worrying about overflow, and assuming |v| < 7.
int HashVector(const v... | [
-0.016413705423474312,
-0.14715179800987244,
0.24525946378707886,
-0.1983901560306549,
-0.12079022824764252,
0.2629068195819855,
0.3100447356700897,
-0.2763054370880127,
-0.35444143414497375,
-0.5179871916770935,
0.0160457082092762,
0.3840806782245636,
-0.30972716212272644,
0.2633741199970... | |
% N;
return result;
}
```
I'm interested in this because I'm writing up a paper on an algorithm that would benefit from any previous work on similar hashes. In particular, it would be great if there is anything known about the collision properties of a hash algorithm like this.
The algorithm I'm interested in woul... | [
0.1531183123588562,
0.17745718359947205,
0.18955236673355103,
0.01597161591053009,
-0.12772007286548615,
-0.14261643588542938,
-0.15851852297782898,
0.21786090731620789,
-0.0651872456073761,
-0.722569465637207,
0.02803448773920536,
0.3129733204841614,
-0.3721335828304291,
0.135877862572669... | |
hash like this - analogous to a multiplier and modulo which works better than others as a pseudorandom number generator.
For example, some choices of constants for a linear congruential pseudorandom generator are known to give optimal cycle lengths and have easy-to-compute modulos. Maybe someone has done research to s... | [
-0.02199416421353817,
-0.1958627551794052,
-0.01997041516005993,
0.09550326317548752,
-0.4947487711906433,
-0.18888430297374725,
0.01891372911632061,
0.0072612338699400425,
-0.24012227356433868,
-0.4786805808544159,
0.31933075189590454,
0.5328454971313477,
-0.39172300696372986,
0.082456409... | |
easy experiment is to hash the English dictionary and compare how many collisions you have on algorithm A vs algorithm B.
You can construct a similar experiment: randomly generate $BIG\_NUMBER of possible vectors of length 7 or less. Hash them on algorithm A, hash them on algorithm B, then compare number and severity ... | [
-0.028535278514027596,
-0.10360932350158691,
0.061768896877765656,
0.24113301932811737,
-0.2646043300628662,
0.08310272544622421,
0.23429445922374725,
-0.03568426892161369,
0.032767508178949356,
-0.7544108629226685,
-0.12123776227235794,
0.5644688010215759,
-0.14433260262012482,
-0.2784392... | |
for several human languages by varying the "magic numbers". | [
0.20235681533813477,
0.15331308543682098,
-0.058295488357543945,
-0.160468190908432,
0.11870215088129044,
0.3122089207172394,
0.598635733127594,
0.013960118405520916,
-0.15779580175876617,
-0.23538756370544434,
-0.27203720808029175,
0.3841077983379364,
0.057023096829652786,
-0.201639160513... | |
I am coding a basic traffic light control which will be displayed on the monitor.
In that i need an external interrupt (event ) to happen and change the state of the current traffic light. I am trying to do it without any board or external peripheral.
Now I think i have the following choices . tell me which is the best... | [
0.4201206862926483,
0.07249316573143005,
0.3526039123535156,
0.2793397903442383,
0.06386254727840424,
-0.025583665817975998,
0.09850956499576569,
0.15071368217468262,
-0.04859302565455437,
-0.8927181363105774,
0.04887247830629349,
0.7316117882728577,
-0.4385351836681366,
-0.357856422662735... | |
which will regularly send some different values with delay to my PC serial port on which the traffic light program is running which will regularly check that value and for one set of data it will change to one state and for another set of data another state. So here the two programs will be running simultaneously on th... | [
-0.024599825963377953,
-0.23634684085845947,
0.4483097493648529,
0.09032142162322998,
-0.1851094514131546,
0.05424004793167114,
0.09283710271120071,
0.013523777015507221,
-0.4422450065612793,
-0.3983592092990875,
0.3408251404762268,
1.019290804862976,
-0.6703130602836609,
-0.02802612073719... | |
the above solutions are not correct then please ignore them..
My environment is turbo C on windows.(answers on gcc are also invited bcos i have TRITON IDE with gcc installed on windows for ARM7)
You could just make a multithreaded application and have some treads act like interrupts when thay awake.
Thread one:
Traffi... | [
0.24880002439022064,
-0.25086525082588196,
0.32764357328414917,
0.30463701486587524,
-0.09424357116222382,
0.008598463609814644,
0.3647981882095337,
-0.14263591170310974,
-0.30914437770843506,
-0.778764545917511,
0.2092932015657425,
0.5903540849685669,
-0.26237329840660095,
0.0091354949399... | |
i kinda know how to create a Custom Web Part. But now i need to create a Smart Part.
Any idea how it works or what a easy way is to create it? Maybe some nice links to articles?
Please Help
Regards
Etienne
Found a good article and sorted it out, thanks!
<http://weblogs.asp.net/jan/archive/2004/11/23/268644.aspx> | [
0.36436063051223755,
0.05518209561705589,
0.0038741070311516523,
0.34835806488990784,
0.14506733417510986,
0.2928519546985626,
0.22697044909000397,
0.17794373631477356,
-0.25204339623451233,
-0.33059683442115784,
0.23229297995567322,
0.38062408566474915,
0.3212398290634155,
0.0337954722344... | |
I am an intermediate C programmer. If you have made any coding mistake that you came to know later that it was the most hazardous / harmful to the total application please share that code or description. I want to know this because in future I may come across such situations and I want to have your advice to avoid such... | [
0.47358977794647217,
0.46159669756889343,
0.032046787440776825,
-0.21217861771583557,
0.0255543515086174,
0.07114826887845993,
0.0853532925248146,
0.10453944653272629,
-0.07819099724292755,
-0.37209200859069824,
0.18475431203842163,
0.31865811347961426,
-0.12671518325805664,
0.349151551723... | |
and extra few digits that banks use at own discretion, e.g. bank has BIN for Visa Classic card 456789, and reserve 2 extra digits to indicate sub-product, like 01 for student's card, 02 for co-branded card with local department store and so on. In this case card prefix, which is basically product identifier, becomes 8 ... | [
0.2504213750362396,
-0.23558644950389862,
0.497318297624588,
0.19552341103553772,
0.18883490562438965,
0.1723589450120926,
-0.17965398728847504,
-0.027964575216174126,
-0.3991367220878601,
-0.30950257182121277,
0.0899818167090416,
0.06292881071567535,
0.08250361680984497,
0.144808709621429... | |
too hard to imagine what has happened - router segfaulted, the whole system halted because it cannot function without transaction router, all ATMs of that bank (one of the biggest in the country) became non-operational for few hours, until problem was found and fixed.
I cannot post the code here firstly because I don'... | [
0.2148759365081787,
0.3268650770187378,
0.09695103019475937,
0.04659110680222511,
0.3072831630706787,
-0.22934645414352417,
0.38719645142555237,
0.3723086714744568,
-0.19480623304843903,
-0.18963482975959778,
-0.10044542700052261,
0.11330506950616837,
-0.2608000934123993,
0.386306494474411... | |
or lazy, and failed to check the size
> before copying) then anything might
> happen. Overflowing fixed length
> strings is a favorite cracker
> technique.
I was very embarrassed. But I've learned the lesson and do not forget (usually :) ) to check size of target buffer. I wouldn't recommend you to learn it the hard w... | [
0.2710053622722626,
-0.0285963024944067,
0.4328705668449402,
-0.2106896936893463,
-0.19186259806156158,
-0.3416783809661865,
0.4262683093547821,
0.034262001514434814,
-0.34481731057167053,
-0.7423794269561768,
-0.08386148512363434,
0.6613821387290955,
-0.29879218339920044,
0.00118232727982... | |
(0)` | [
-0.12334137409925461,
0.3956994116306305,
0.24778436124324799,
-0.18909752368927002,
-0.2375796139240265,
-0.30177727341651917,
0.3931107521057129,
0.018405308946967125,
0.42109909653663635,
-0.2182549387216568,
-0.4126091003417969,
0.40610453486442566,
-0.40979841351509094,
0.204746469855... | |
do I have to register the HttpVerb constraint in my route definition (when i'm registering routes) if i have decorated my action method with the [AcceptVerbs(..)] attribute already?
eg. i have this.
```
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Create(FormCollection formCollection)
{ .. }
```
do i need to a... | [
-0.045209623873233795,
-0.2415025383234024,
0.42526960372924805,
0.022129148244857788,
-0.1281515508890152,
-0.2135433703660965,
0.294450044631958,
-0.22677107155323029,
-0.46776703000068665,
-0.7320889234542847,
0.13579584658145905,
0.22719706594944,
-0.3535935878753662,
0.108855798840522... | |
the same name that each respond to a different HTTP Method.
```
public ActionResult Create(int id) { .. }
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Create(FormCollection formCollection) { .. }
```
So when a request for `/home/create` comes in, the route will match and hand off the request to the controller'... | [
0.04437040165066719,
-0.3305208086967468,
0.6021355986595154,
0.012132233940064907,
-0.06131308153271675,
-0.025854269042611122,
0.1165810078382492,
-0.36769893765449524,
-0.10673750936985016,
-0.6326016783714294,
-0.31841424107551575,
0.30657294392585754,
-0.27868279814720154,
0.210198208... | |
route *will* match that request though.
Part of the reason for the overlap here is that Routing is a feature of ASP.NET 3.5 SP1 and isn't specific to MVC. MVC uses Routing, but Routing is also used by Dynamic Data and we plan to integrate routing with ASP.NET Web Forms. | [
0.009446170181035995,
-0.34364938735961914,
0.5608848929405212,
0.05503879114985466,
-0.13762716948986053,
-0.18944649398326874,
0.08868218213319778,
-0.06422045081853867,
-0.4955165684223175,
-0.7067183256149292,
-0.05924823880195618,
0.09335624426603317,
-0.414669930934906,
0.00667683407... | |
Is there an application , which can parse a given set of stored procedures (SQL Server 2000) and gets all tables and associated columns that are being used in it.
The stored procedure can have tables from different databases.
Output should be like
TableA
columnA
columnC
columnD
TableB
columnE
columnF
columnG... | [
-0.10291532427072525,
0.06006305292248726,
0.34274786710739136,
-0.044792041182518005,
-0.17586912214756012,
-0.061212264001369476,
-0.2930484414100647,
-0.20220939815044403,
-0.2919228971004486,
-0.45312267541885376,
0.030212048441171646,
0.1172911524772644,
-0.46322178840637207,
-0.15985... | |
When I create a TFS report of a query with the Excel integration features (we are using Excel 2003), Excel resets formatting of all cells after clicking the "Refresh" button in the TFS Toolbar.
Our team likes to print this report and drag it into our weekly meeting as it accurately lists all our open tasks. Bad format... | [
-0.013093051500618458,
0.10893544554710388,
0.43556445837020874,
-0.17178606986999512,
-0.14467668533325195,
-0.12206625193357468,
0.2661792039871216,
-0.47291097044944763,
-0.37766751646995544,
-0.8466818928718567,
0.0812489241361618,
0.38109374046325684,
-0.43608522415161133,
-0.26878753... | |
(add your query name here etc.)
* convert that to a html table with XSL
* write a simple batch script to do above steps
* (Profit!!!)
This is the XSL script I used (will need tweeking if you use other fields):
```
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/... | [
0.12046821415424347,
-0.19190433621406555,
0.917048454284668,
-0.1220991387963295,
-0.2809021770954132,
-0.18306568264961243,
0.01886257529258728,
-0.5056768655776978,
-0.25457778573036194,
-0.616398811340332,
0.09299501031637192,
0.2952718734741211,
-0.258911669254303,
-0.0457891933619976... | |
<tr><th>ID</th><th>Area Path</th><th>Assigned To</th><th>Title</th><th>Description</th></tr>
<xsl:for-each select=".//WorkItem">
<tr>
<td><xsl:value-of select="./Field[@RefName='System.Id']/@Value"/></td>
<td><xsl:value-of select="./Field[@RefName='Sys... | [
0.07569064944982529,
-0.3231126666069031,
0.503921627998352,
-0.06113202124834061,
0.18691514432430267,
-0.09050902724266052,
-0.1678348034620285,
-0.8057726621627808,
-0.23736202716827393,
-0.6850584149360657,
-0.45648419857025146,
0.34416165947914124,
-0.08500967174768448,
-0.03947379067... | |
<td><xsl:value-of select="./Field[@RefName='System.Title']/@Value"/></td>
<td><xsl:value-of select="./Field[@RefName='System.Description']/@Value"/></td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
``` | [
0.379180371761322,
-0.1489408165216446,
0.5676663517951965,
0.12510724365711212,
-0.0975968986749649,
0.018126724287867546,
-0.0833035558462143,
-0.9860978722572327,
0.005881999619305134,
-0.47172829508781433,
-0.20515969395637512,
0.45645764470100403,
-0.04741017520427704,
0.0560327135026... | |
I have a dll that must be useable from C etc, so I cant use string objects etc as a normal would, but I'm not sure on how to do this safely..
```
const char *GetString()
{
std::stringstream ss;
ss << "The random number is: " << rand();
return ss.str().c_str();
}
```
could the c string be destroyed when s... | [
0.049998655915260315,
-0.07649673521518707,
0.057200685143470764,
0.013499444350600243,
-0.06377827376127243,
-0.19712898135185242,
0.3163215219974518,
-0.26332810521125793,
-0.16307340562343597,
-0.7441214323043823,
-0.05150001123547554,
0.5930854082107544,
-0.39774370193481445,
0.3414221... | |
"The random number is: " << rand();
char *out = new char[ss.str().size()];
strcpy(ss.str().c_str(), out);
return out;//is out ever deleted?
}
```
The same goes for pointers to other things as well as strings.
The first variant doesn't work because you're returning a pointer into a stack object, which will... | [
-0.20571410655975342,
-0.21553069353103638,
0.10854858160018921,
-0.1951245665550232,
0.023789823055267334,
0.023479416966438293,
0.22229191660881042,
-0.10877225548028946,
-0.36992645263671875,
-0.5186053514480591,
-0.13906680047512054,
0.34764882922172546,
-0.31603482365608215,
0.3052397... | |
return a pointer to a static string like this:
```
const char *GetString()
{
return "a static string in DATA segment - no need to delete";
}
```
You second variant has the problem of returning memory allocated with new() into a C program that will call free(). Those may not be compatible.
If you return a string... | [
0.031684063374996185,
-0.19424717128276825,
0.2180304229259491,
-0.09118621796369553,
-0.1062488853931427,
0.009718348272144794,
0.1787431240081787,
-0.44655925035476685,
-0.2444906234741211,
-0.49011072516441345,
-0.31230562925338745,
0.4360409379005432,
-0.42539024353027344,
0.3590378165... | |
*p = GetString();
printf("string: %s", p));
free( p ); // must not forget to free(), must not use delete()
}
```
or:
```
char *GetString(char *buffer, size_t len)
{
std::stringstream ss;
ss << "The random number is: " << rand();
return strncpy(buffer, ss.str().c_str(), len); // caller allocates m... | [
-0.132947638630867,
-0.2543310225009918,
0.4150070250034332,
-0.04222814366221428,
0.1182020902633667,
0.15767617523670197,
0.20172281563282013,
-0.29754751920700073,
-0.42493611574172974,
-0.33440595865249634,
-0.3420959413051605,
0.43539971113204956,
-0.32480481266975403,
0.1861807554960... | |
C++. This is one of common mistakes analyzed in many C++ books. | [
-0.1834668070077896,
0.5018465518951416,
-0.23309051990509033,
0.04838292673230171,
0.06952379643917084,
-0.10316035151481628,
0.31521865725517273,
0.43512850999832153,
-0.020080866292119026,
-0.2121313065290451,
0.06531050056219101,
0.45156002044677734,
-0.31032049655914307,
-0.1395701020... | |
I am evaluating VisualSVN for me and a small team of developers. I set it up on the server (VisualSVN server) without problems and installed TortoiseSVN and VisualSVN in order to integrate it in Visual Studio 2008. So far, it works well and we use it for the development of our main application.
I've heard good things ... | [
0.25134512782096863,
0.08366167545318604,
0.7301333546638489,
-0.19542966783046722,
-0.5131126046180725,
0.1971932053565979,
0.2770691215991974,
0.1549670696258545,
-0.2871970236301422,
-0.5271555781364441,
0.10792143642902374,
0.734950840473175,
0.17527033388614655,
0.11021000146865845,
... | |
the VisualSVN Server installation or do I have to switch that too? Is TortoiseSVN obsolete if I start using AnkhSVN? And, is the current version reliable in Visual Studio 2008?
To be clear: it's not about the 50 US$ per developer. It's about making the right decision for the future. What do you recommend?
*Many thank... | [
0.1247168481349945,
-0.05524324253201485,
0.728976309299469,
-0.09688404202461243,
-0.5343822836875916,
0.043470725417137146,
0.3987382650375366,
0.28212061524391174,
-0.1628311276435852,
-0.6312247514724731,
0.14237350225448608,
0.8099664449691772,
-0.09146974980831146,
0.1917972117662429... | |
lots of crashes and annoyances (for example, it was very hard to move or rename a not-still-commited file). The 2.x series corrects most of the problems, and while it still does not attains the level of VisualSVN, I found it very sufficient for our uses (and very free).
About the migration in itself, it couldn't be mo... | [
0.0045705814845860004,
-0.08776450157165527,
0.4331768751144409,
0.1781342625617981,
-0.11054050922393799,
-0.0005505590816028416,
0.3843723237514496,
0.24637199938297272,
-0.4682547152042389,
-0.48213449120521545,
0.015958478674292564,
0.5147941708564758,
-0.12980514764785767,
0.126847505... | |
create working directories and to checkout within explorer than with Visual Studio. | [
0.29992929100990295,
0.11788129061460495,
-0.08684125542640686,
0.16293613612651825,
-0.1275259107351303,
-0.34722480177879333,
0.0009532059193588793,
-0.1073271632194519,
-0.20580142736434937,
-0.7961633205413818,
-0.4143039584159851,
-0.017985936254262924,
0.05491132289171219,
-0.1060487... | |
To recap for those .NET gurus who might not know the Java API:
[ConcurrentHashMap](http://java.sun.com/javase/6/docs/api/java/util/concurrent/ConcurrentHashMap.html) in Java has atomic methods (i.e. require no external locking) for common Map modification operations such as:
```
putIfAbsent(K key, V value)
remove(Obj... | [
0.08548170328140259,
-0.35267218947410583,
0.2638373374938965,
0.1645808070898056,
-0.21090029180049896,
-0.2657425105571747,
0.36997291445732117,
-0.20537295937538147,
-0.5499430298805237,
-0.36184927821159363,
-0.1955694705247879,
0.3746843636035919,
-0.19050376117229462,
-0.006001187488... | |
set of thread safe collection libraries. Or concurrency utilities in general - equivalent to [Doug Lea](http://en.wikipedia.org/wiki/Doug_Lea)'s `java.util.concurrent` libraries.
Not that I know of. The closest thing to what you're looking for would probably be the Synchronized method of the Hashtable, which returns a ... | [
0.2693871557712555,
0.06842205673456192,
-0.11465851962566376,
0.5143417119979858,
-0.2618480622768402,
-0.20811672508716583,
0.19389890134334564,
0.08670146763324738,
-0.5994212627410889,
-0.24107402563095093,
0.0846264585852623,
0.11902856826782227,
-0.4531073272228241,
0.166555121541023... | |
Let's say I'm running a simple server and have `accept()`ed a connection from a client.
What is the best way to tell when the client has disconnected? Normally, a client is supposed to send a close command, but what if it disconnects manually or loses network connection altogether? How can the server detect or handle ... | [
0.17480163276195526,
0.005042536649852991,
0.24415910243988037,
0.02430126443505287,
-0.15623337030410767,
-0.11205317825078964,
0.20140598714351654,
-0.15844129025936127,
-0.17415612936019897,
-0.5540767312049866,
-0.10692410916090012,
0.3937109410762787,
-0.264570951461792,
0.29564091563... | |
the various methods of checking that the client has disconnected: [Stephen Cleary, Detection of Half-Open (Dropped) Connections](http://blog.stephencleary.com/2009/05/detection-of-half-open-dropped.html).
\* for Windows use ioctlsocket. | [
0.10343697667121887,
-0.018397413194179535,
-0.2824443578720093,
-0.08678057789802551,
-0.019625775516033173,
-0.3270998001098633,
0.29219821095466614,
0.007739621680229902,
-0.5879825949668884,
-0.027354320511221886,
-0.35231345891952515,
0.09808901697397232,
-0.4869312644004822,
0.066884... | |
At the moment I have a set of divs, generated dynamically by php and all having their ids starting with 'itembox', with a count number appended. I have a droppable garbage bin area on the page so that the user can delete an individual itembox by fdragging and dropping on to the bin.
My problem is that the droppable wo... | [
0.3039337396621704,
-0.11426544189453125,
0.4528846740722656,
0.14897868037223816,
-0.1447184830904007,
0.13917797803878784,
-0.06961347907781601,
-0.18286390602588654,
-0.15997430682182312,
-0.6154870986938477,
0.07401029020547867,
0.19537411630153656,
-0.2861465513706207,
0.1800604164600... | |
actually dragged.
So I'm looking for a solution to either make the droppable accept an original or force the cloning function to take its clone from the itembox actually dragged.
I guess the problem must lie in the accept option of your droppable initializer. Just try the following:
```
$('#mydroppable').droppable(
{... | [
0.32897934317588806,
-0.4180968999862671,
0.32821306586265564,
0.20976074039936066,
-0.06073176488280296,
-0.02077704854309559,
0.01001214049756527,
0.25058361887931824,
-0.24612165987491608,
-0.12220553308725357,
-0.0502144880592823,
0.617810070514679,
-0.6351473331451416,
0.0161982830613... | |
I understand the following elements :
* there is some sort of crawling (configured in central administration)
* when the crawling is done, there is a slight delay, after which you can have your search results displayed.
But, in a document library with publishing enabled, documents that are not published don't appear ... | [
0.15106011927127838,
0.090206578373909,
0.5328138470649719,
0.2866590619087219,
0.13496263325214386,
-0.430652379989624,
0.3542941212654114,
0.3730789124965668,
-0.5182446837425232,
-0.8266668319702148,
-0.2319203019142151,
0.15027637779712677,
0.09399981051683426,
0.37703970074653625,
0... | |
can't really give more permissions to this user. If you do so, it will always index unpublished item, without indexing the latest publish version. So user without approvers permissions won't be able to search those items. | [
0.2304326295852661,
0.15155759453773499,
0.35835304856300354,
0.29334038496017456,
0.30369436740875244,
-0.5848566889762878,
0.18453992903232574,
-0.058614131063222885,
-0.2941797971725464,
-0.18811443448066711,
0.01024632342159748,
0.22366850078105927,
-0.08835405111312866,
0.448296070098... | |
I am working on a large project that uses the STL and have a question about your preferred way to organise your STL `#includes`.
* Do you prefer to #include each header in the source file it is used. For example, if both `foo.cpp` and `bar.cpp` require `std::string`, then both will `#include <string>`.
* Do you prefer... | [
0.5176978707313538,
0.16975457966327667,
0.09304478019475937,
-0.11448337882757187,
-0.23732347786426544,
-0.21683719754219055,
-0.1936485320329666,
-0.22279518842697144,
-0.379141241312027,
-0.6936747431755066,
-0.16799387335777283,
0.3230459690093994,
-0.5095639824867249,
0.1408161669969... | |
project without having to worry that you're missing a `#include`. The advantages of the second method is that you can take use your compilers pre-compiled header support plus you can wrap STL `#includes` in `pragmas` that disable some warnings (for example, some Boost headers will cause warnings when compiling at level... | [
0.5752430558204651,
-0.19546067714691162,
-0.2627755403518677,
0.11972653865814209,
-0.14144757390022278,
-0.4589747488498688,
0.41105782985687256,
-0.31571656465530396,
-0.24206803739070892,
-0.6299435496330261,
-0.1525029093027115,
0.6889838576316833,
-0.3972671627998352,
-0.258747369050... | |
the compiling process, not to get declarations). So even if something gets declared via the included precompiled headers, I still include the 'regular' header, which will get skipped by the include guard mechanism and won't add anything significant to the compile times.
As precompiled headers are a compiler specific t... | [
0.6087425947189331,
0.29577064514160156,
-0.1268969029188156,
0.08470725268125534,
-0.10067859292030334,
-0.3597659766674042,
0.4083317220211029,
-0.3039530813694,
-0.2203110009431839,
-0.3750672936439514,
-0.24204084277153015,
0.8265640139579773,
-0.3393510580062866,
-0.0888575091958046,
... | |
i get the following error when trying to run a flex application (which has been working fine!). I was playing around with some different setttings trying to optimize the compiled size. I've put these settings back to the defaults as much as I thought but still getting issues.
I remember getting this error before but c... | [
0.14662650227546692,
-0.19056715071201324,
0.5087628960609436,
0.06885046511888504,
0.08712760359048843,
-0.04573121294379234,
0.36785203218460083,
-0.21258921921253204,
-0.6114608645439148,
-0.7986098527908325,
-0.29726213216781616,
0.8348119854927063,
-0.3968147039413452,
-0.198463365435... | |
workaround seems very problematic as you now lose the ability to have forward slashes.
I've run into this issue myself when I needed to build an alert message or something from an ASP.NET back end, and stick it in a JavaScript alert on the front end. The issue was that developers could enter anything in the Page.Alert... | [
-0.09386879205703735,
-0.06800669431686401,
0.37683814764022827,
-0.34009844064712524,
-0.07864782214164734,
-0.055417709052562714,
0.4528234302997589,
-0.23643723130226135,
-0.25913411378860474,
-0.524192214012146,
0.009938481263816357,
0.6637790203094482,
-0.42225217819213867,
0.00835204... | |
.Replace("\t", "\\t")
.Replace("\"", "\\\"");
// and now register my JavaScript with this safe string.
}
``` | [
0.13448867201805115,
0.3045729994773865,
0.3010845482349396,
-0.30267804861068726,
0.4019782841205597,
-0.29468202590942383,
0.4526212215423584,
-0.11288206279277802,
0.3261396884918213,
-0.876717746257782,
-0.3078707158565521,
0.8281617760658264,
-0.5575597882270813,
-0.028835073113441467... | |
I am wondering what is the "best practice" to break long strings in C# source code. Is this string
```
"string1"+
"string2"+
"string3"
```
concatenated during compiling or in run time?
It's done at compile time. That's exactly equivalent to "string1string2string3".
Suppose you have:
```
string x = "string1string2... | [
0.23499023914337158,
0.20885774493217468,
-0.019962690770626068,
-0.1157376691699028,
-0.2388462871313095,
-0.2610809803009033,
0.16383656859397888,
-0.16696158051490784,
-0.1871510148048401,
-0.3385714590549469,
-0.23254793882369995,
0.4450280964374542,
-0.22395427525043488,
0.12132562696... | |
some situations, and not in others](http://pobox.com/~skeet/csharp/stringbuilder.html). | [
-0.08999209105968475,
-0.16828252375125885,
0.014509715139865875,
0.19168944656848907,
-0.009010717272758484,
-0.029969697818160057,
0.18000906705856323,
0.004521454218775034,
-0.43556228280067444,
-0.24831393361091614,
-0.588520884513855,
0.05917093902826309,
-0.23012293875217438,
-0.3679... | |
Suppose I have the following directory layout in a Maven project:
```
src/
|-- main
| |-- bin
| | |-- run.cmd
| | `-- run.sh
| |-- etc
| | |-- common-spring.xml
| | |-- log4j.xml
| | `-- xml-spring.xml
| `-- java
| `-- com
...
```
I would like to build a zip file that, when unzipped, ... | [
-0.17632435262203217,
0.07731034606695175,
0.14570756256580353,
-0.2744959592819214,
0.24230259656906128,
0.09022457897663116,
-0.006154075264930725,
-0.1687188744544983,
-0.23737208545207977,
-0.5327977538108826,
-0.24935290217399597,
0.0923004150390625,
-0.30288681387901306,
0.0487905405... | |
`-- xml-spring.xml
`-- lib
|-- dependency1.jar
|-- dependency2.jar
...
```
where `run.xx' are executable shell scripts that will call my main application and *put all dependencies on the classpath*.
Is this possible with some of the `official' Maven plugins, e.g. maven-assembly-plugin?
I use the [AppAssemble... | [
-0.22615276277065277,
0.21718591451644897,
0.34024283289909363,
-0.3893352448940277,
0.18626849353313446,
0.26995646953582764,
0.20351804792881012,
-0.11683668196201324,
-0.26929008960723877,
-0.6988529562950134,
-0.3605499863624573,
0.6558122038841248,
-0.3826386034488678,
0.0452740974724... | |
</program>
</programs>
</configuration>
</plugin>
</plugins>
``` | [
-0.07354394346475601,
0.25169235467910767,
-0.09861201047897339,
0.033431995660066605,
0.12892958521842957,
0.0015719517832621932,
0.04504505544900894,
0.026618681848049164,
0.09358390420675278,
-0.8221279382705688,
-0.7890133857727051,
0.7176503539085388,
-0.47453728318214417,
-0.10797917... | |
How can I build a native Mac OS X installer for my application, on a non-Mac platform?
For example, I have a windows pc and a Java application. I want the windows pc to build an installer (possibly inside a .dmg archive) that works with Apple installer.
It is now possible to create a native Mac OS X installer on a non... | [
0.5457786321640015,
0.20065082609653473,
0.1919575184583664,
-0.14110831916332245,
0.10341910272836685,
-0.11911723762750626,
0.00038860164931975305,
-0.4872616231441498,
-0.4796159863471985,
-0.5711324214935303,
-0.38292428851127625,
0.2965514063835144,
-0.2504478096961975,
-0.11016469448... | |
on creating a Mac OS X installer on Linux ( <http://hogliux.github.io/bomutils/tutorial.html> ).
My company regularly build Mac OS X installers on linux with this method and so far we haven't had any major problems. | [
0.5105947256088257,
-0.0037453037220984697,
0.2575742304325104,
-0.19085700809955597,
-0.10498440265655518,
-0.2769183814525604,
0.06919508427381516,
0.3785296082496643,
-0.3491201400756836,
-0.2749115824699402,
-0.20160910487174988,
0.8219714760780334,
-0.29229116439819336,
-0.04714517667... | |
Should I use the `change` or `textInput` event to capture user input on a TextInput control? Why?
[`textInput`](http://livedocs.adobe.com/flex/3/langref/mx/controls/TextInput.html#event:textInput) is dispatched only when the user has *input* text into the control. [`change`](http://livedocs.adobe.com/flex/3/langref/mx/... | [
0.1086740717291832,
-0.263673335313797,
0.4262694716453552,
0.14114831387996674,
-0.10051636397838593,
0.024213388562202454,
0.26578980684280396,
-0.4711308777332306,
-0.0750434473156929,
-0.5742496848106384,
-0.2888718247413635,
0.412757933139801,
-0.3840145766735077,
-0.2276799976825714,... | |
when text is deleted by the user)
[`flash.events.Event.CHANGE`](http://livedocs.adobe.com/flex/3/langref/mx/controls/TextInput.html#event:change):
> *"Dispatched when text in the TextInput control changes through user
> input. **This event does not occur if
> you use data binding or ActionScript
> code to change t... | [
-0.023886216804385185,
-0.28273147344589233,
0.5691149234771729,
-0.073170505464077,
-0.17204900085926056,
0.012378930114209652,
0.24465611577033997,
-0.35420283675193787,
-0.28812235593795776,
-0.42096349596977234,
-0.7217040657997131,
0.4829021692276001,
-0.5481019616127014,
-0.168426290... | |
I am struggling with a creating a query. It is related to a large and complicated database but for the sake of this post I have boiled the problem down to something simpler.
I have three tables X, Y, Z defined as
```
CREATE TABLE [dbo].[X](
[ID] [bigint] NOT NULL
)
CREATE TABLE [dbo].[Y](
[ID] [nchar](10) NOT NU... | [
-0.16999150812625885,
0.426074355840683,
0.43287068605422974,
-0.04592785984277725,
-0.28344598412513733,
0.20512701570987701,
0.11463144421577454,
-0.40553951263427734,
-0.2736857235431671,
-0.6619169116020203,
-0.24177111685276031,
0.20174631476402283,
-0.3723209500312805,
0.357447475194... | |
IDY
-- -- --- ---
1 A 1 A
2 B 1 B
3 C | [
-0.09542150795459747,
0.3812383711338043,
0.18686245381832123,
0.04591147601604462,
-0.33248743414878845,
0.07340453565120697,
0.16206982731819153,
-0.2892284393310547,
0.1599777787923813,
-0.13432654738426208,
0.17523230612277985,
-0.07557912170886993,
-0.11134243756532669,
0.165064439177... | |
1 A
```
I want to create a query that produces the following result
```
Count IDX IDY
===== === ===
2 1 A
1 1 B
0 1 C
0 2 A
0 2 B
0 2 | [
0.2391519695520401,
0.3329256474971771,
0.215210422873497,
-0.12303386628627777,
-0.2874434292316437,
-0.33530694246292114,
-0.009394476190209389,
-0.5775012969970703,
0.08677308261394501,
-0.039170291274785995,
-0.13242579996585846,
0.1871817409992218,
-0.8017088770866394,
-0.039261370897... | |
C
0 3 A
0 3 B
0 3 C
```
My initial thought was
```
SELECT COUNT(*), X.ID, Y.ID
FROM
X
CROSS JOIN Y
FULL OUTER JOIN Z ON X.ID = Z.IDX AND Y.ID = Z.IDY
GROUP BY X.ID, Y.ID
```
but this turns out to be on the wrong road.
Any ideas?
```
SELECT
(SELECT COUNT(*) FROM Z WHERE IDX ... | [
0.22696493566036224,
0.05982081592082977,
0.5233795642852783,
-0.32420384883880615,
-0.07941437512636185,
0.028810204938054085,
-0.20494170486927032,
-0.6416750550270081,
-0.20025089383125305,
-0.1811266392469406,
-0.1164163202047348,
0.2911998927593231,
-0.3700945973396301,
0.316343158483... | |
X,Y
```
That's your answer... why do you possibly want that query, no clue :) | [
0.29134881496429443,
0.37237033247947693,
0.39079761505126953,
0.4612002372741699,
0.10019847750663757,
-0.004902059677988291,
-0.07162094861268997,
0.08853483200073242,
0.041942644864320755,
-0.20769980549812317,
-0.2234271913766861,
0.1001940444111824,
-0.4165239930152893,
0.350108295679... | |
Currently, my Objective C classes use C++ objects by doing a `new` when the owner is created, and calling `delete` when it is destroyed. But is there another way? I'd like to be able to declare, say, an `auto_ptr` whose scope lasts the duration of the Objective C class' lifetime.
Ok, let me assume you are using C++ and... | [
0.16196143627166748,
0.1977522224187851,
0.14783301949501038,
0.043851952999830246,
-0.11858770996332169,
-0.30660974979400635,
0.07435572892427444,
0.10312160849571228,
-0.2643400728702545,
-0.39404213428497314,
-0.24633145332336426,
0.892428994178772,
-0.3976012170314789,
0.0419774912297... | |
turned off by default in Cocoa projects).
Then you get default-like C++ scoping, however I haven't used it much and I've had problems with heavily template code (Boost).
Also I don't think anyone officially supports this besides some good souls working on GCC. So I'd recommend that you unit test anything like this, a... | [
0.3816724419593811,
0.11650139093399048,
0.29297542572021484,
0.025764930993318558,
-0.0943262055516243,
-0.45169976353645325,
0.31277403235435486,
0.13447053730487823,
-0.23721693456172943,
-0.3074209988117218,
-0.2913568317890167,
0.89603590965271,
-0.13863840699195862,
-0.01749643869698... | |
I have quite a large list of words in a txt file and I'm trying to do a regex find and replace in Notepad++. I need to add a string before each line and after each line.. So that:
```
wordone
wordtwo
wordthree
```
become
```
able:"wordone"
able:"wordtwo"
able:"wordthree"
```
How can I do this?
Assuming alphanum... | [
-0.11060930043458939,
0.02739984728395939,
0.6399033069610596,
-0.23674936592578888,
0.038156189024448395,
0.12506072223186493,
0.4545239806175232,
-0.16942182183265686,
0.21310755610466003,
-0.9545199871063232,
-0.39176490902900696,
0.5738731622695923,
-0.22019365429878235,
-0.19053494930... | |
I need to create a BAT file to run an application through telnet, but as far as I know there is no way to do this on DOS. Telnet does not allow any command to be sent to the remote machine at the very instant of the connection, and each subsequent command in the BAT file would only be executed after telnet stops. This ... | [
0.558131217956543,
0.3790828585624695,
0.33190158009529114,
-0.1896228790283203,
-0.10830714553594589,
0.13490745425224304,
0.3452180027961731,
-0.4773571193218231,
-0.10589592903852463,
-0.7309452891349792,
0.14243276417255402,
0.8159152269363403,
-0.65449059009552,
0.2584773600101471,
... | |
to do that?
Tks,
Pedrin Batista
give [expect](http://expect.nist.gov/#windows) a try
from the webpage:
> Expect is a tool for automating
> interactive applications such as
> **telnet**, ftp, passwd, fsck, rlogin,
> tip, etc. Expect really makes this
> stuff trivial. Expect is also useful
> for testing these sa... | [
0.46998149156570435,
-0.22829726338386536,
-0.05277508869767189,
0.1435367316007614,
-0.055680129677057266,
-0.3757823705673218,
0.043204981833696365,
-0.2696700394153595,
0.035985201597213745,
-0.5240482687950134,
0.15261051058769226,
0.7706027626991272,
-0.44469183683395386,
-0.572061061... | |
I have the problem, that PHP replaces all spaces with underscores in POST and GET variables.
For example if I have the URL: `http://localhost/proxy.php?user name=Max`
the browser will convert it to `http://localhost/proxy.php?user%20name=Max`.
But if I give the $\_GET parameters out, the key is not `user name` but `u... | [
0.2311113178730011,
0.08309454470872879,
0.7277500629425049,
-0.34321269392967224,
-0.12879008054733276,
-0.0003252736642025411,
0.4247037470340729,
-0.013484573923051357,
-0.25743356347084045,
-0.5257329344749451,
-0.0683383047580719,
0.24136397242546082,
-0.04092004522681236,
0.249930500... | |
character in
> a PHP variable name. For the reason,
> look at it:
>
>
>
> ```
> <?php $varname.ext; /* invalid variable name */ ?>
>
> ```
>
> Now, what
> the parser sees is a variable named
> $varname, followed by the string
> concatenation operator, followed by
> the barestring (i.e. unquoted string
> w... | [
-0.4697857201099396,
0.044915348291397095,
0.5239105224609375,
-0.07201185077428818,
-0.3555026054382324,
0.3525795638561249,
0.17701572179794312,
-0.07922454923391342,
0.05226045474410057,
-0.7676432728767395,
-0.14936769008636475,
0.23989787697792053,
-0.20704634487628937,
-0.10876642167... | |
names with underscores.
And a comment on the page:
> The full list of field-name characters that PHP converts to \_ (underscore) is the following (not just dot):
>
>
>
> ```
> chr(32) ( ) (space)
> chr(46) (.) (dot)
> chr(91) ([) (open square bracket)
> chr(128) - chr(159) (various)
>
> ```
>
> PHP irreversibly ... | [
-0.21657538414001465,
0.2783210873603821,
0.7854686975479126,
-0.15550918877124786,
-0.32996854186058044,
0.23390433192253113,
0.010149088688194752,
-0.2730984389781952,
-0.24094465374946594,
-0.3543568551540375,
-0.23220399022102356,
0.41040855646133423,
-0.23491331934928894,
0.0718683302... | |
In a SQL Server database, I record people's date of birth. Is there an straight-forward method of working out the person's age on a given date using SQL only?
Using **DATEDIFF(YEAR, DateOfBirth, GETDATE())** does not work as this only looks at the year part of the date. For example **DATEDIFF(YEAR, '31 December 2007'... | [
0.1940986067056656,
0.21530263125896454,
0.4521932005882263,
-0.07199061661958694,
0.16576342284679413,
-0.013141298666596413,
0.027974441647529602,
-0.06768950819969177,
-0.14061838388442993,
-0.16203808784484863,
0.1268334537744522,
-0.031008396297693253,
0.471851110458374,
0.70817530155... | |
) THEN 1 ELSE 0 END
``` | [
0.26964473724365234,
0.45976752042770386,
0.4976072609424591,
-0.332677960395813,
-0.06128467619419098,
-0.30976632237434387,
0.4695202708244324,
-0.3222675919532776,
0.12050597369670868,
-0.10332153737545013,
-0.6615833640098572,
0.3068997859954834,
-0.39273756742477417,
0.394721657037735... | |
I have an application that imports data from a pickled file. It works just fine in Windows but Mac and Linux behaviour is odd.
In OS X, the pickled file (file extension ".char") is unavailable as a selection unless I set the file type to \*.\*. Then, if I select a file that has the .char extension, it won't load, givi... | [
0.12206974625587463,
-0.07912785559892654,
0.21464292705059052,
-0.10154357552528381,
-0.20034760236740112,
0.21943369507789612,
-0.437154084444046,
0.30016306042671204,
-0.13964374363422394,
-0.5952314734458923,
0.15089386701583862,
0.2775510251522064,
-0.15671882033348083,
0.320317834615... | |
"file open" dialog, my pickled files aren't visible, whether or not they have a file extension. However, I can see them under Nautilus or Dolphin. They simply don't exist to my application though.
---
**Edit** Here's the save code:
```
def createSaveFile(self):
"""Create the data files to be saved and save t... | [
0.020892726257443428,
0.042619869112968445,
0.5085495710372925,
0.05425919592380524,
0.13150832056999207,
0.16821536421775818,
0.055482953786849976,
0.12470612674951553,
-0.20118029415607452,
-0.6826504468917847,
-0.20246613025665283,
0.5812870860099792,
0.05988658219575882,
0.102976769208... | |
self.save_data = ({'Name':self.charAttribs.name,
<snip>
self.charAttribs.char_skills_dict)
self.file = open(self.file_name, 'w')
cPickle.dump(self.save_data, self.file)
self.file.close()
```
Here's the open code:
```
def getCharFile(self, event): # wx... | [
-0.2825450599193573,
0.22234712541103363,
0.1282697468996048,
-0.2324550896883011,
0.1544695794582367,
0.21640999615192413,
0.14371266961097717,
-0.3194701671600342,
-0.03290152922272682,
-0.5722277760505676,
-0.36959391832351685,
0.7001915574073792,
-0.12884552776813507,
-0.03478729724884... | |
wildcard = "Character files (*.char) | *.char | All files (*.*) | *.*"
openDialog = wx.FileDialog(None, "Choose a character file", os.getcwd(),
"", wildcard, wx.OPEN | wx.CHANGE_DIR)
if openDialog.ShowModal() == wx.ID_OK:
self.path = openDialog.GetPath()
try:
... | [
-0.13485656678676605,
-0.45413678884506226,
0.4536818861961365,
0.14648772776126862,
0.22281673550605774,
0.045201875269412994,
0.14747115969657898,
-0.35676106810569763,
-0.24206045269966125,
-0.4851580560207367,
-0.17822188138961792,
0.17829321324825287,
-0.5189213156700134,
-0.005620727... | |
"r")
unpickle_file = cPickle.load(char_file)
char_data, char_skills = unpickle_file
self.displayCharacter(char_data, char_skills)
except IOError:
self.importError = wx.MessageDialog(self,
"The character file is not available!",
"Character ... | [
-0.1903102546930313,
-0.016862284392118454,
0.4182385802268982,
-0.18963487446308136,
0.044347360730171204,
0.5261716246604919,
0.31982505321502686,
-0.09266678988933563,
-0.2523888647556305,
-0.43089646100997925,
-0.36502423882484436,
0.4429296553134918,
-0.28681880235671997,
0.1015329211... | |
wx.ICON_ERROR)
self.importError.ShowModal()
self.importError.Destroy()
openDialog.Destroy()
```
Probably you didn't open the file in binary mode when writing and/or reading the pickled data. In this case newline format conversion will occur, which can break the binary data.
To open... | [
0.20985101163387299,
0.1948886513710022,
-0.018565088510513306,
-0.3480779230594635,
-0.06353158503770828,
0.04383552446961403,
0.37083935737609863,
-0.21344803273677826,
-0.1996786743402481,
-0.34678152203559875,
-0.037713948637247086,
0.47009286284446716,
-0.6472959518432617,
0.144760906... | |
As far as Google searches tell me, the maximum allowed number of cookies depends very much on the browser, however I cannot find any recent data as to how much cookies are allowed on modern browsers.
I need to store a somewhat large number of user preferences in cookies (for not-yet-registered users), so what would be... | [
0.23116470873355865,
0.3106384575366974,
0.4360656142234802,
0.07735288888216019,
0.015650134533643723,
0.13758055865764618,
0.47353455424308777,
-0.12648515403270721,
-0.16877342760562897,
-0.9307668805122375,
-0.17137403786182404,
0.23280030488967896,
0.0793689638376236,
-0.1882992386817... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.