text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
if( 0 == *_refCount ) delete _refCount; } private: mutable U32* _refCount; mutable ACE_Mutex _refCountMutex; // BAD: this mutex only protect the refCount pointer, not the refCount itself }; ``` Suppose that two threads want to delete the same RefCountedObject, both are in ~RefCountedObject an...
[ 0.14606919884681702, 0.13641057908535004, 0.04319991171360016, -0.39026618003845215, 0.2937066853046417, -0.063210129737854, 0.6215276122093201, -0.40574148297309875, -0.1554243564605713, -0.445084810256958, -0.2909969985485077, 0.7847124338150024, -0.39612019062042236, 0.4206908643245697,...
experience with a similar problem and found a solution ? --- Thanks all for your help, I realize my mistake: The mutex is only protecting refCount pointer, not the refCount itself! I've created a RefCount class which is mutex protected. The mutex is now shared between all refCounted object. Now all works fine. If th...
[ 0.6594994068145752, 0.19089019298553467, 0.2550150454044342, 0.02315443567931652, -0.34034886956214905, 0.04308835417032242, 0.5344629883766174, -0.28734496235847473, -0.5649192333221436, -0.44280385971069336, 0.19181367754936218, 0.7062280178070068, -0.21919560432434082, 0.330870747566223...
object, so you can always safely increase the ref count if you've got a pointer. One option would be to use `boost::shared_ptr` [(see the docs)](http://www.boost.org/doc/libs/1_36_0/libs/smart_ptr/shared_ptr.htm). You can use the free functions `atomic_load`, `atomic_store`, `atomic_exchange` and `atomic_compare_excha...
[ 0.2086077779531479, 0.02751917392015457, 0.32883593440055847, 0.07813190668821335, -0.1527586132287979, 0.1177375540137291, 0.1153896152973175, -0.18253988027572632, -0.5417987108230591, -0.4448293447494507, 0.020591480657458305, 0.7491956353187561, -0.4296472668647766, 0.05282413959503174...
I have a web page where I'd like to remap Ctrl+N to a different behavior. I followed YUI's example of register Key Listeners and my function is called but Firefox still creates a new browser window. Things seem to work fine on IE7. How do I stop the new window from showing up? Example: ``` var kl2 = new YAHOO.util.Ke...
[ 0.18422403931617737, -0.004094397183507681, 0.45320388674736023, -0.26544424891471863, 0.02112744376063347, -0.10567183792591095, 0.506453812122345, -0.22195346653461456, -0.16835401952266693, -0.5838202834129333, -0.21632267534732819, 0.7978691458702087, -0.2680441737174988, 0.02110652625...
alert('Click');}}); kl2.enable(); ``` It is possible to remove default behavior. Google Docs overrides Ctrl+S to save your document instead of bringing up Firefox's save dialog. I tried the example above with Ctrl+S but Firefox's save dialog still pops up. Since Google can stop the save dialog from coming up I'm sure...
[ -0.0340489000082016, -0.16107557713985443, 0.4349474608898163, -0.218036949634552, 0.035993367433547974, -0.14184615015983582, 0.4751471281051636, -0.23192919790744781, -0.14030689001083374, -0.3435570299625397, -0.283627450466156, 0.8858692646026611, -0.5630356073379517, -0.05341291055083...
the TYPE of event. The second one contains... and this is screwy: an array containing the codepoint at index 0 and the actual event object at index 1. So changing your code around a bit, it *should* look like this: ``` function callback(type, args) { var event = args[1]; // the actual event object alert('Clic...
[ -0.18789926171302795, -0.32748785614967346, 0.2792395353317261, -0.3134591281414032, -0.06718853116035461, -0.0058970097452402115, 0.21827906370162964, -0.11355984956026077, -0.147797629237175, -0.3061973750591278, -0.2998717427253723, 0.638965368270874, -0.4537547826766968, 0.066630892455...
instead of "78". Or wrap it up as a function ``` function ord(char) { return char.charCodeAt(0); } ```
[ 0.6431552767753601, 0.2465982288122177, 0.1282503306865692, -0.6434914469718933, 0.4449937641620636, 0.2026379555463791, 0.11641797423362732, -0.20047920942306519, -0.03541792556643486, -0.1831209808588028, -0.1248597651720047, 0.7822697758674622, -0.39661359786987305, 0.1125454306602478, ...
In PHP, which is quicker; using `include('somefile.php')` or querying a MySQL database with a simple `SELECT` query to get the same information? For example, say you had a JavaScript autocomplete search field which needed 3,000 terms to match against. Is it quicker to read those terms in from another file using `inclu...
[ 0.4261147379875183, 0.1225661039352417, 0.05054621398448944, -0.011292734183371067, -0.510389506816864, -0.18415787816047668, 0.23109126091003418, -0.2634679973125458, -0.2506380081176758, -0.5722419023513794, 0.1231788769364357, 0.4427182078361511, -0.2674809694290161, -0.1902931183576584...
installed in another machine, then the faster is to include the file. Buuuuut, because it depends on your system it could be not true. I suggest to you to make a PHP test script and run it 100 times from the command line, and repeat the test through HTTP (using cURL) Example: **use\_include.php** ``` <?php start...
[ 0.5452351570129395, 0.08112530410289764, 0.2283238172531128, -0.12960325181484222, 0.32348543405532837, -0.15907947719097137, 0.5515725612640381, -0.6142387986183167, 0.01425094436854124, -0.7240065336227417, 0.024579551070928574, 0.3530466854572296, -0.336672842502594, -0.1167637109756469...
I have a list of objects, each containing an Id, Code and Description. I need to convert this list into a Hashtable, using **Description** as the key and **Id** as the value. This is so the Hashtable can then be serialised to JSON. Is there a way to convert from List<Object> to Hashtable without writing a loop to go...
[ 0.2180791199207306, 0.25391170382499695, 0.41929131746292114, -0.13157722353935242, 0.08325918763875961, 0.08686880767345428, -0.055031679570674896, -0.3252454996109009, -0.05738604813814163, -0.46937790513038635, -0.00007558752986369655, 0.5645620226860046, -0.375506192445755, 0.170902013...
I might be an exception here but I have never worked on a team with more than three developers and / or five people. Still we could manage to get the job done (somehow). Is there a software development process which fits this "extreme" scenario? And, if you work as a standalone programmer is there something you can ad...
[ 0.44803404808044434, 0.06654622405767441, -0.25223255157470703, 0.3249390423297882, 0.09178336709737778, -0.012277338653802872, 0.31943315267562866, -0.26524344086647034, -0.37806788086891174, -0.7074129581451416, 0.00438185129314661, 0.6814461350440979, 0.23799028992652893, -0.34695079922...
a method based on TODO lists and some tool like [Task2Gather](http://www.task2gather.com/). You might want to look at [GTD](http://en.wikipedia.org/wiki/Getting_Things_Done), too. Things I would never give up even for a team of me: * source version control * backups * TODO * unit testing/[TDD](http://babilsenior.blo...
[ 0.3592616021633148, -0.3138221502304077, -0.19798843562602997, 0.132126122713089, -0.20229671895503998, -0.04849141091108322, 0.2562080919742584, -0.4342406392097473, -0.08261507004499435, -0.3107603192329407, 0.04109404608607292, 0.6495238542556763, -0.04245453327894211, -0.09639055281877...
Is there any substantial difference between those two terms?. I understand that JDK stands for Java Development Kit that is a subset of SDK (Software Development Kit). But specifying Java SDK, it should mean the same as JDK. From this [wikipedia entry](http://en.wikipedia.org/wiki/Java_Development_Kit#Ambiguity_between...
[ 0.4573211371898651, 0.21017728745937347, -0.25955817103385925, -0.23523743450641632, -0.3706449568271637, -0.2792179584503174, -0.2682424485683441, -0.4831526577472687, -0.11490357667207718, -0.6379103064537048, -0.5020753145217896, 0.43518564105033875, -0.034851182252168655, -0.0851112604...
The remainder of the SDK is composed of extra software, such as Application Servers, Debuggers, and Documentation. The "extra software" seems to be Glassfish, MySQL, and NetBeans. [This page](http://java.sun.com/javaee/downloads/index.jsp) gives a comparison of the various packages you can get for the Java EE SDK.
[ 0.39649608731269836, -0.03509778529405594, -0.08608461916446686, -0.008732203394174576, 0.052175894379615784, -0.1593162566423416, -0.16788490116596222, -0.22645872831344604, -0.23463743925094604, -0.3353050649166107, -0.5234633684158325, 0.2500109076499939, -0.3182346820831299, -0.2192816...
what is the best way of displaying/using the revision number in a java webapp? we just use ant to build our .war archive, no buildserver or such. i'd hope there was some kind if $ref that i could write in a resource file, but this is only updated when the file in question is committed. i need it globally. what would ...
[ 0.6468780636787415, 0.148967906832695, -0.048306047916412354, 0.14890854060649872, -0.29263752698898315, 0.0418122261762619, 0.2639565169811249, 0.1951078176498413, -0.5442149639129639, -0.740628719329834, 0.2926935851573944, 0.3600475788116455, 0.08049915730953217, 0.10056416690349579, ...
couple of Ant tasks that can do this for you.** [SvnAnt task](http://subclipse.tigris.org/svnant.html) from tigris is the oldest. Documentation is [here](http://subclipse.tigris.org/svnant/svn.html#info) - in particular take a look at the `info` element which exposes the Subversion repository's revision number as an ...
[ -0.042632851749658585, -0.05827062204480171, 0.06220972165465355, -0.054031092673540115, -0.2537194788455963, 0.0053887334652245045, 0.20760798454284668, -0.04868872091174126, -0.647278904914856, -1.007668137550354, 0.25724098086357117, 0.19605349004268646, -0.15340471267700195, 0.17369371...
This is a nut I'm cracking these days Application I'm working on has some advanced processing towards SQL. One of the operations selects various metadata on the objects in the current context from different tables, based on the item names in the collection. For this, a range of "select...from...where...in()" is execut...
[ -0.05822654813528061, 0.15489539504051208, -0.1556791514158249, 0.07467000186443329, -0.029473697766661644, 0.2203955501317978, 0.09212227910757065, -0.08823712915182114, -0.31053125858306885, -0.28207311034202576, 0.0448470264673233, 0.6861953735351562, -0.3049221336841583, 0.210827171802...
out now is creating a #temp table for storing all item names and then joining the table in the original query, instead of using "where in()". This has me scratching my head on how to populate the table with the item names stored in an Array in the .NET code. Surely, there has to be some bulk way to insert everything ra...
[ 0.2748546004295349, 0.09187497943639755, 0.2873380780220032, 0.15987929701805115, -0.17933809757232666, -0.23242191970348358, 0.11925659328699112, 0.15625859797000885, -0.3737746477127075, -0.529140055179596, -0.15870141983032227, 0.10152114182710648, -0.3175097405910492, 0.436475813388824...
results and performance issues, i will try to suggest an alternative. Could you possibly split into multiple queries? Do the same as you do now, but instead of building a query with 2100+ in items, build two with 1050 in each, and then merge the results.
[ 0.1945716142654419, -0.28543078899383545, 0.16306568682193756, 0.492809921503067, -0.12483420222997665, 0.25015848875045776, 0.0016544847749173641, -0.4577604830265045, -0.3237581253051758, -0.773253858089447, 0.2254340499639511, 0.22849568724632263, -0.046543922275304794, 0.04491974785923...
Not too practical maybe, but still interesting. Having some abstract question on matrix multiplication I have quickly implemented a matrix for ints, then tested my assumptions. And here I noticed that just int matrix is not good, if I occasionally want to use it with decimal or double. Of course, I *could* try just t...
[ 0.27939948439598083, 0.06638580560684204, -0.20390991866588593, 0.13169780373573303, -0.5678563117980957, 0.1001804769039154, 0.14326898753643036, -0.049888044595718384, -0.32572948932647705, -0.5081132650375366, 0.46492037177085876, 0.1597810685634613, -0.23792928457260132, 0.353507906198...
T could not be used, I need it to support some interface which could add and multiply. And the problem is I could override operators in my class, but I could not introduce an interface which would support operators. And I have an operators in built-in types, but still no interface over them. What would you do in such...
[ 0.35206735134124756, -0.37665730714797974, -0.20152097940444946, 0.3293820023536682, -0.5352156162261963, 0.042051322758197784, 0.45468851923942566, -0.08328092098236084, -0.07209095358848572, -0.5761988759040833, 0.17439785599708557, 0.2320195883512497, -0.36344748735427856, 0.20645724236...
(i.e. x+iy) [example](http://csharpindepth.com/ViewNote.aspx?NoteID=50). The Operator class is now part of [MiscUtil](http://www.yoda.arachsys.com/csharp/miscutil/).
[ -0.10682392865419388, -0.10785948485136032, 0.26524338126182556, -0.20034049451351166, -0.18627198040485382, 0.07626964896917343, 0.20012259483337402, -0.17831285297870636, -0.27442312240600586, -0.3013697564601898, -0.38963934779167175, 0.11487181484699249, -0.29550817608833313, 0.4563277...
I was wondering if it would be possible to retrieve the complete list of security roles defined in a web.xml file in the java code? And if so how to do it? I am aware of the 'isUserInRole' method but I also want to handle cases where a role is requested but not defined (or spelled differently) in the web.xml file. As ...
[ 0.3188823163509369, -0.13436169922351837, 0.2270727902650833, 0.05369674041867256, 0.12173643708229065, -0.1573457270860672, 0.2660381495952606, -0.19217237830162048, -0.2024819701910019, -0.6056548953056335, -0.09471379220485687, 0.7672236561775208, -0.11997514963150024, 0.065106764435768...
getSecurityRoles() { List<String> roles = new ArrayList<String>(); ServletContext sc = this.getServletContext(); InputStream is = sc.getResourceAsStream("/WEB-INF/web.xml"); try { SAXReader reader = new SAXReader(); Document doc = reader.read(is); Element webApp = doc.getRootEl...
[ -0.28395509719848633, -0.6028634309768677, 0.835237443447113, -0.07179442793130875, 0.09393922984600067, 0.016573481261730194, 0.7094473242759705, -0.6402267217636108, -0.15978960692882538, -0.5385422110557556, -0.3087347745895386, 0.5823773741722107, -0.20235195755958557, -0.1165694594383...
: roleElements) { roles.add(roleEl.element("role-name").getText()); } } catch (DocumentException e) { e.printStackTrace(); } return roles; } ```
[ -0.04727013036608696, -0.2985420227050781, 0.3808651566505432, -0.125408336520195, 0.2287769615650177, 0.16595329344272614, 0.22039756178855896, -0.5403873920440674, -0.0010298318229615688, -0.4245755076408386, -0.394817978143692, 0.4568234980106354, -0.24241331219673157, -0.21331609785556...
I have never quite understood how/why I would use Maven modules (reactor builds). We have tens of libraries that we share (as dependencies) among our products, and between libraries as well. If we were to switch to making them Maven modules, how would we set it up, both in SVN and in our working copies? Do Maven modu...
[ 0.5876023769378662, 0.030239026993513107, 0.20167748630046844, 0.17605158686637878, -0.040785662829875946, -0.015172240324318409, -0.08416865766048431, -0.4146629273891449, -0.28534290194511414, -0.20791329443454742, -0.37634819746017456, 0.3964262902736664, 0.04325105994939804, 0.26275283...
time. But I've read many bad things about using `svn:externals` because there is nothing to stop you from modifying the code in the external, but its not tracked. Any suggestions? Am I missing the boat on modules? I guess that's a problem with subversion. Which forces you to create a folder structure for branching. O...
[ 0.4223704934120178, -0.0022625208366662264, 0.032840222120285034, 0.006397872697561979, 0.2003840059041977, -0.11572995781898499, 0.25506067276000977, 0.1248348280787468, -0.5218145847320557, -0.501929521560669, -0.028954554349184036, 0.6545481085777283, -0.06563904881477356, 0.31465867161...
"Applications". We are very happy with using maven modules for this, since we can make sure that all CoreServices use a certain version of a certain dependency and that all applications get a certain aspectJ library woven into them. **For your solution though:** There is a feature in subversion for a module to find i...
[ 0.3820551931858063, -0.3196990489959717, 0.25023365020751953, 0.19860772788524628, 0.1278379112482071, -0.18337126076221466, 0.2930293679237366, 0.11764714121818542, -0.3972488045692444, -0.5468026995658875, -0.15285885334014893, 0.3234219551086426, -0.014555130153894424, -0.02813592180609...
support for `svn:externals` in subersion 1.5 which allows relative URL:s, which should also come in handy in this case. -Good luck and report back here if you find a solution!
[ -0.13701212406158447, 0.055776339024305344, 0.3699589967727661, 0.04952224716544151, 0.05849286913871765, -0.08220752328634262, 0.8063139915466309, 0.38753730058670044, -0.28661441802978516, -0.5491386651992798, -0.49865564703941345, 0.6109128594398499, -0.007599924691021442, -0.0349418334...
How do I set the code page to UTF-8 in a C Windows program? I have a third party library that uses fopen to open files. I can use wcstombs to convert my Unicode filenames to the current code page, however if the user has a filename with a character outside the code page then this breaks. Ideally I would just call \...
[ 0.12892122566699982, 0.2174106389284134, 0.6919734477996826, -0.13554701209068298, -0.09722913056612015, -0.24150586128234863, 0.24700941145420074, -0.12295030802488327, -0.19608087837696075, -0.9308925867080688, -0.25888311862945557, 0.5891256928443909, -0.32040122151374817, 0.15145535767...
The `CP_UTF7` and `CP_UTF8` constants are pseudo-codepages, used only in [MultiByteToWideChar](http://msdn.microsoft.com/en-us/library/ms776413(VS.85).aspx) and [WideCharToMultiByte](http://msdn.microsoft.com/en-us/library/ms776420(VS.85).aspx) conversion functions, like Ben mentioned. Your problem is similar to that ...
[ 0.043803825974464417, 0.2599419057369232, 0.43166977167129517, 0.1180056557059288, -0.004952161572873592, 0.14492088556289673, 0.2684050500392914, 0.07828822731971741, -0.2614347040653229, -0.3793676197528839, 0.1415925920009613, 0.3391672670841217, -0.3083972632884979, 0.5747097134590149,...
a non-Unicode name, which is hard-linked to the original, and use that as a parameter.
[ -0.1391957700252533, 0.030758609995245934, 0.06634224951267242, -0.06434623897075653, -0.04173944517970085, -0.011198162101209164, -0.001421084743924439, 0.07000668346881866, -0.07796090096235275, -0.2748703956604004, -0.572564959526062, 0.06228388845920563, -0.2382824569940567, -0.0268962...
Is there any way so that i can echo password when asked for in unix shell without use of external binaries ? Something like simple function triggered when password prompt is displayed ``` import socket socket.gethostbyname(socket.gethostname()) ``` This won't work always (returns `127.0.0.1` on machines having the ho...
[ 0.05526994913816452, 0.2558023929595947, 0.04943621903657913, -0.17136970162391663, -0.025164326652884483, -0.010207378305494785, 0.40002766251564026, 0.24268274009227753, -0.2507883608341217, -0.6693006157875061, -0.09055032581090927, 0.7590045928955078, -0.36197900772094727, 0.2205704450...
Does NetworkStream.DataAvailable know whether the sender's send buffer is empty? Or does it simply indicate whether the receiver's read buffer has data? My assumption is the latter... Specifically, for some socket work involving an ongoing conversation, I currently use a length-prefix so the the receiver knows exactly...
[ 0.3118867874145508, -0.09460612386465073, 0.007314614020287991, -0.08858057111501694, -0.28593623638153076, -0.10639306902885437, 0.18747201561927795, 0.12536661326885223, -0.32317784428596497, -0.5257145762443542, 0.01570068672299385, 0.49700310826301575, -0.02411423809826374, 0.410516262...
to go? (note I can't simply Read() until the stream is closed, since multiple batches are sent on the same connection, and it is vital that I treat each batch as separate; if I read too much in one batch (even if it gets buffered and discarded) then the conversation will break). One side of a connection is not going t...
[ 0.28048136830329895, -0.4777795672416687, 0.16320490837097168, 0.06091761961579323, 0.10189968347549438, -0.3258514404296875, 0.11552242189645767, -0.00747495936229825, -0.20024684071540833, -0.196539044380188, -0.2669619917869568, 0.6057324409484863, -0.21433775126934052, 0.27085140347480...
beginning and ending of each batch. I've coded back-and-forth conversation before, and I used length-prefixes in the data. What I did was write helper functions that read an exact number of bytes (chunks at a time) and no more. The only alternative to length-of-batch values in the stream is some way of examining the ...
[ 0.25872302055358887, -0.039847519248723984, -0.04348394274711609, 0.20985904335975647, -0.30753999948501587, 0.3938139081001282, -0.10495371371507645, 0.2297685742378235, -0.05286543816328049, -0.4867238700389862, 0.1233186274766922, 0.26643410325050354, 0.16801932454109192, 0.108805663883...
We are using c++ to develop an application that runs in Windows CE 4 on an embedded system. One of our constraint is that all the memory used by the application shall be allocated during **startup only**. We wrote a lot of containers and algorithms that are using only preallocated memory instead of allocating new one....
[ 0.23386387526988983, 0.19158442318439484, 0.1857815682888031, 0.28446337580680847, 0.24232475459575653, -0.24874678254127502, -0.10108821094036102, -0.12665356695652008, 0.044737450778484344, -0.45452192425727844, -0.297740638256073, 0.5639516711235046, -0.2510683536529541, -0.182348370552...
the usage patterns of the container the allocator could be as simple as incrementing a pointer (e.g. when you only insert stuff into the container once at app startup, and don't continuously add/remove elements.)
[ 0.20902900397777557, -0.11751113086938858, 0.2482600212097168, 0.18408051133155823, 0.20562738180160522, 0.12257078289985657, -0.09041567891836166, -0.10178383439779282, -0.19142146408557892, -0.577553927898407, -0.07692673057317734, 0.22707605361938477, -0.2620392143726349, 0.038799960166...
I am currently plowing my way through [IBM's tutorial on CakePHP](http://www-128.ibm.com/developerworks/edu/os-dw-os-php-cake1.html) At one point I run into this snippet of code: ``` <?php class Dealer extends AppModel { var $name = 'Dealer'; var $hasMany = array ( 'Product' => array( 'cla...
[ 0.10191205888986588, 0.2751520276069641, 0.33930543065071106, -0.5002407431602478, 0.22591853141784668, 0.01654432900249958, 0.15747769176959991, -0.12546010315418243, -0.4682411253452301, -0.6062427163124084, -0.009789103642106056, 0.1870778352022171, -0.15785306692123413, 0.1327614486217...
'foreignKey'=>'dealer_id' ) ); } ?> ``` When I run it I get the following error-message: "Parse error: syntax error, unexpected ',' in /Applications/MAMP/htdocs/cakephp/app/models/product.php on line 7" I'm a n00b at PHP so my question is: is it allowed to make an array with keys without assigned values?...
[ 0.0009206442045979202, 0.15940704941749573, 0.14487121999263763, -0.5210902690887451, 0.07983443140983582, -0.0362708605825901, 0.40648218989372253, -0.2647536098957062, -0.35623282194137573, -0.2954294681549072, -0.22826795279979706, 0.7376418113708496, -0.6362547874450684, -0.14077746868...
'Dealer'; var $hasMany = array ('Product' => array( 'className' => 'Product', 'conditions'=> null, 'order'=> null, 'foreignKey'=>'dealer_id') ); } ?> ``` This works fine.
[ 0.14130190014839172, 0.19377589225769043, 0.24313834309577942, -0.3651126027107239, 0.20810696482658386, -0.22082054615020752, 0.14053262770175934, -0.3024938702583313, -0.21007685363292694, -0.5548272728919983, -0.3358895182609558, 0.7630581855773926, -0.23973920941352844, 0.2142346650362...
I am attempting to write an application that uses libCurl to post soap requests to a secure web service. This Windows application is built against libCurl version 7.19.0 which, in turn, is built against openssl-0.9.8i. The pertinent curl related code follows: > ``` > > FILE *input_file = fopen(current->post_file_name...
[ 0.23801042139530182, 0.28260165452957153, 0.7530572414398193, -0.4839555621147156, 0.07850811630487442, 0.04173697158694267, 0.5913110971450806, -0.4683503210544586, 0.3823377192020416, -0.8369307518005371, -0.22045235335826874, 0.14328961074352264, -0.5766603946685791, 0.1307881474494934,...
CURLOPT_WRITEDATA, output_file); > curl_easy_setopt(curl_handle, CURLOPT_READDATA, input_file); > curl_easy_setopt(curl_handle, CURLOPT_URL, fs_service_url); > curl_easy_setopt(curl_handle, CURLOPT_POST, 1); > curl_easy_setopt(curl_handle, CURLOPT_HTTPHEADER, header_opts); > rcd = curl_easy_perform(...
[ -0.3732726573944092, -0.03548363596200943, 0.8397142291069031, -0.18275320529937744, -0.2160997986793518, -0.04051128402352333, 0.12128693610429764, -0.27579066157341003, -0.12665148079395294, -0.6569602489471436, -0.9205614328384399, 0.4876560568809509, -0.5356572866439819, -0.45360115170...
to a failure to allocate an SSL context. Has anyone else encountered this problem before? After further investigation, I found that this error was due to a failure to initialise the openSSL library by calling SSL\_library\_init().
[ 0.01656065508723259, -0.05993429943919182, 0.0017171395011246204, -0.07904912531375885, 0.03130925074219704, -0.2567198872566223, 0.5156376361846924, 0.06002141162753105, -0.1368933618068695, -0.4904366433620453, -0.11518118530511856, 0.5604894161224365, -0.5985211133956909, 0.112342715263...
Currently, I'm in the process of hiring a web developer who will be working on a site that processes credit cards. While he won't have the credentials to log into the payment gateway's UI he will have access to the API login and transaction key since it's embedded in the application's code. I'd like to be aware of all...
[ 0.578990638256073, 0.2910727560520172, -0.034894343465566635, 0.40581002831459045, 0.4692685008049011, -0.062384724617004395, -0.08269736915826797, -0.18437817692756653, -0.2177301049232483, -0.49325281381607056, 0.2230086475610733, 0.5632754564285278, 0.03252440318465233, 0.19967474043369...
Can anyone think of any other possible scenarios? UPDATE: The payment gateway being used is Authorize.net. Do they really need access to your production sites? Don't store the key in your code, store it in your production database, or on a file on the production server.
[ 0.6875298619270325, -0.14056286215782166, 0.17478589713573456, 0.17500057816505432, 0.3520539402961731, -0.1701730489730835, 0.07964320480823517, 0.18334802985191345, -0.3173486292362213, -0.499574214220047, 0.04909689724445343, 0.5875730514526367, -0.05621498078107834, -0.0987556502223014...
I am using [MailLogger](http://nant.sourceforge.net/release/0.85-rc2/help/fundamentals/listeners.html#MailLogger) to send a message about a failed/successful release. I would like to make the mail body simple and easy to read. How can I suppress output for some particular tasks? Here's one way to do it that makes it ex...
[ 0.18546350300312042, 0.095456063747406, 0.18109233677387238, -0.2646276354789734, -0.21662408113479614, -0.09705132246017456, 0.4232972264289856, -0.1965785026550293, -0.18717531859874725, -0.4555310308933258, -0.03877405822277069, 0.4694449007511139, -0.4194355905056, -0.05989649891853332...
It also won't optimize if there are operations inside the loop that it can't predict the side effects of. Inline functions might make a difference, but nothing is guaranteed. Local variables are easier for the compiler to optimize. Some will call this premature optimization, and I agree that there are few cases where ...
[ 0.11225362867116928, 0.1109192967414856, 0.12302266061306, 0.04707175865769386, 0.04252598062157631, 0.023801973089575768, 0.511458158493042, -0.36690753698349, -0.12571649253368378, -0.6045750379562378, 0.01364646665751934, 0.6691129803657532, -0.3731037378311157, -0.16318771243095398, ...
agreement.
[ -0.010863812640309334, 0.13662689924240112, 0.3504387140274048, -0.02523978427052498, 0.00599429989233613, -0.2529524862766266, -0.21931351721286774, -0.2572757303714752, 0.24057631194591522, -0.6327738165855408, -0.25997164845466614, 0.07561872154474258, 0.15522819757461548, 0.05736745521...
I would like to know what kind of toolkits, languages, libraries exist for agent-based modeling and what are the pros/cons of them? Some examples of what I am thinking of are [Swarm](http://www.swarm.org), [Repast](http://repast.sourceforge.net/), and [MASS](http://www.aitia.hu/services_and_products/simulation_systems...
[ 0.29100796580314636, -0.24440421164035797, -0.0036282490473240614, 0.17871703207492828, -0.07605480402708054, 0.14937908947467804, -0.002796960761770606, 0.044932588934898376, -0.4434601366519928, -0.6158803701400757, 0.16600404679775238, 0.2949400246143341, -0.3569231927394867, 0.29920670...
most common uses of ABMS are in social simulation and optimisation > problems, such as traffic flow and supply chains. We will investigate > other uses in computational science and engineering. ABMS has been > adapted to run on novel architectures such as GPGPU (e.g. nVidia using > CUDA). Argonne National Laborator...
[ 0.058611996471881866, 0.18041573464870453, 0.4012712240219116, 0.10095792263746262, -0.2073676586151123, -0.10904023051261902, 0.38904717564582825, -0.1794596016407013, -0.3366832137107849, -0.8293337821960449, -0.14216439425945282, 0.24254535138607025, -0.6307077407836914, -0.145596712827...
If I need to implement sending and receiving of business documents from system to system (invoices, POs, remittance advice, etc) what standard would you recommend for best interop and why? It could be XML or otherwise. I would look at (in this order): * Industry-specific formats. Always your best choice if you have a ...
[ 0.7342684864997864, 0.04376605898141861, 0.6050671339035034, 0.3399523198604584, 0.03483061492443085, -0.14510823786258698, -0.2411496937274933, -0.011555514298379421, -0.4392717778682709, -0.5431851744651794, -0.4013327956199646, 0.4865795373916626, -0.0643426924943924, -0.124196939170360...
would bloat your documents too much. This, of course, all depends on the problem domain. I would think about these questions: 1. Are you in an industry with specific format or regulatory requirements? For instance, are there details like the chemical composition of a gas that you're ordering? Are there hazardous mate...
[ 0.8618818521499634, 0.2732059955596924, -0.07137402147054672, 0.21063771843910217, 0.2698991596698761, -0.2840230166912079, -0.36246731877326965, 0.20044536888599396, -0.32540813088417053, -0.5297235250473022, 0.030614085495471954, 0.5337153673171997, 0.006014086306095123, 0.06072746589779...
I'd take a look at cXML or XCBL which handles the PunchOut standard which enables purchasing systems to order from online catalogs. 4. What is the sophistication of your partners? EDI is old and powerful, but really hard to understand. People new to the process are more comfortable with XML-based formats. 5. What is yo...
[ 0.7695779800415039, -0.1034717932343483, 0.36466994881629944, 0.5511003136634827, -0.14488206803798676, -0.17463593184947968, -0.5526670813560486, -0.009800383821129799, -0.07545294612646103, -0.5175096392631531, 0.2067108005285263, 0.42647767066955566, 0.1506699174642563, -0.0664259120821...
I know I can cycle through my tabs using cmd+{ or cmd+}, but is it possible to select a specific tab (i.e. cmd+3 for the third tab in iTerm) in Leopards' Terminal.app? This is an option. [Tab Switching in Terminal](http://ciaranwal.sh/2007/12/10/tab-switching-in-terminal "Tab Switching in Terminal")
[ 0.06451879441738129, -0.45698559284210205, 0.22368982434272766, -0.11050757765769958, -0.0005821443046443164, 0.07608340680599213, 0.4484359323978424, 0.08339482545852661, -0.6133592128753662, -0.2417033612728119, -0.02973712608218193, 0.5007109642028809, -0.3698575496673584, -0.1267056018...
I have noticed that some apps like Safari and Mail show a loading indicator in the status bar (the bar at the very top of the phone) when they are accessing the network. Is there a way to do the same thing in SDK apps, or is this an Apple only thing? It's in UIApplication: **For Objective C:** Start: ``` [UIApplicat...
[ 0.019739264622330666, 0.10250547528266907, 0.3781604766845703, 0.08854392915964127, -0.06878507882356644, -0.11347255855798721, 0.2680922746658325, 0.10792753100395203, -0.1820792555809021, -0.849395215511322, 0.0003439691790845245, 0.661382257938385, -0.30652108788490295, -0.3157826960086...
I'm a .Net developer and would like to investigate building and running our framework on Mono. If the initial project is successful I will happily invest in an OS learning curve, but right now I want to focus on getting things up and running and seeing the code working. What would be the best distribution to start w...
[ 0.5988873243331909, -0.11407677084207535, -0.07387307286262512, 0.15480941534042358, -0.007018230855464935, -0.13498373329639435, 0.37312474846839905, 0.24858087301254272, -0.10384779423475266, -0.5897439122200012, -0.14026953279972076, 0.703709065914154, 0.030946914106607437, -0.000980254...
implementation of the .Net code that I want to port to Mono.The only issue was that I needed to go to version 4 for an out-the-box install of Mono With some assistance I have been able to get this to a point where I am able to run compiles and start addressing the porting issues. This took a few hours - biggest learni...
[ 0.5829886794090271, 0.18631355464458466, -0.18273037672042847, -0.2054961919784546, -0.43224191665649414, -0.3485496938228607, 0.4613707959651947, -0.2374308705329895, -0.2849043011665344, -0.5076857209205627, -0.007869439199566841, 0.9000096321105957, -0.3351743817329407, 0.14489234983921...
only you get Mono, but there are hundreds of open source libraries and .NET based applications that we have ported and make available through our update system. Additionally, many of the preview features are available as packages that are ready to install on OpenSUSE. Other distributions tend to lag behind in both of ...
[ 0.780829668045044, 0.0851236954331398, -0.20904278755187988, 0.19937488436698914, -0.35471850633621216, -0.58531653881073, 0.20970456302165985, -0.10273657739162445, -0.3644241392612457, -0.5574837327003479, -0.2797584533691406, 0.9477903246879578, -0.4737529456615448, -0.02885716035962104...
I wonder, why the hell... did the VS team consider that NOT finding a project reference as a non crucial thing? The referenced component 'X' could not be found. should be considered an error... and nothing else. **Is there a way (without turning 'Treat all warnings as errors' on) to get this warning as an error in VS...
[ 0.5982784032821655, 0.31422364711761475, 0.19363968074321747, 0.17893655598163605, 0.11133889108896255, -0.3083362877368927, 0.5130593776702881, 0.1292116641998291, -0.20748171210289001, -0.4365719258785248, 0.06359700858592987, 0.707171618938446, -0.1655811369419098, 0.14985257387161255, ...
you to maintain a single project file when you might otherwise have to split into one file per configuration. There is an option to "treat warnings as errors" -- you should be able to find it in the project configuration screen.
[ 0.5830988883972168, -0.1275259107351303, -0.08071799576282501, 0.4402938485145569, 0.26620081067085266, -0.3765299320220947, 0.22353973984718323, 0.11338215321302414, -0.4066573679447174, -0.5619931221008301, -0.2398308515548706, 0.5489477515220642, -0.27064821124076843, -0.041846893727779...
If we put aside the rights and wrongs of putting demo data into a live system for a minute (that's a whole separate discussion!), we are being asked to store some demo data in our live system so that it can be credibly demonstrated without the appearance of smoke + mirrors (we want to use the same login page for exampl...
[ 0.9946373105049133, 0.18013328313827515, 0.14305712282657623, 0.45818352699279785, 0.20373640954494476, -0.4032215476036072, 0.24056822061538696, -0.17457284033298492, -0.23091289401054382, -0.4630146622657776, 0.13710792362689972, 0.3552751839160919, 0.18441471457481384, -0.13184319436550...
operations on their systems? As I alluded to above, I'm aware that this probably isn't best practice. :-) FWIW, we're looking at using Oracle's row level security / virtual private database feature to seperate the demo data from the rest.
[ 0.5186221599578857, -0.09649275988340378, -0.010610322467982769, 0.41434621810913086, 0.4102785885334015, -0.09042003005743027, 0.044040802866220474, 0.1022612601518631, -0.11653445661067963, -0.40061458945274353, -0.2782510817050934, 0.6592777967453003, 0.006580685265362263, -0.2317547500...
I have a system in place which applies calculations to a set of numbers (the specifics aren't really relevant). There are a number of sets of calculations which can be applied by the system users and new sets are added frequently. Currently when a new set of calculations need to be added to the system they are added in...
[ 0.7324870824813843, 0.4515307545661926, 0.18251128494739532, -0.015669159591197968, 0.2720225155353546, 0.10348103940486908, -0.116021528840065, -0.07728119194507599, -0.34338870644569397, -0.5793699622154236, 0.1944061666727066, 0.33082354068756104, 0.08221448212862015, 0.2120530903339386...
visible to system users automatically. Currently a new function is created for each set of calculations and a record containing the appropriate function name is added to a system table. These records are visible to system users (function names are aliased of course!) who then select them from a list. The system uses th...
[ 0.3740653991699219, -0.012271004728972912, 0.5646094679832458, 0.008566047064960003, 0.037964511662721634, 0.1368052214384079, 0.33016443252563477, 0.11928083747625351, -0.45629340410232544, -0.7337563633918762, 0.14721354842185974, 0.3638105094432831, -0.17875447869300842, -0.047105442732...
to load and examine these assemblies at runtime and present the user with functions. Divil has a good (but fairly old now) article on writing plugin based applications. It will help you out: <http://divil.co.uk/net/articles/plugins/plugins.asp> (+ it's in VB.Net) If you do it this way, all you have to do is drop a d...
[ 0.5863410830497742, -0.014006717130541801, 0.22791136801242828, -0.21992816030979156, -0.1818976253271103, -0.36372867226600647, 0.16514961421489716, 0.003937039989978075, -0.07501605153083801, -0.4949519634246826, 0.11425034701824188, 0.6168301105499268, -0.23209232091903687, 0.0453011840...
I am trying to get [Selenium RC](http://selenium-rc.openqa.org/tutorial.html) working with Firefox 3 on Linux with PHP/Apache but am experiencing problems. Here's what I've done: * I have installed the Firefox Selenium-IDE extension. * On the web server (which in my case is actually the same machine running Firefox), ...
[ 0.480316162109375, 0.3900669813156128, 0.34499049186706543, -0.24765515327453613, -0.18298575282096863, -0.3555549085140228, 0.32170504331588745, -0.260710746049881, 0.04791172966361046, -0.6161117553710938, -0.11531189829111099, 0.5904351472854614, -0.3852880001068115, 0.00392758380621671...
Firefox 2 (by using `"*firefox"` instead of `"*custom"` but don't want to use that for my current project. I'm not sure of the etiquette of answering your own question... but having experimented in a trial-and-error way, here's how I've managed to get Selenium working with PHP/Firefox3 on Ubuntu. 1. I downloaded RC an...
[ 0.4815603494644165, 0.23538663983345032, 0.3982597887516022, -0.4508247971534729, -0.5658485293388367, -0.19779278337955475, 0.2164442241191864, -0.3983756899833679, 0.0013536185724660754, -0.49826914072036743, -0.04056891053915024, 0.7408924698829651, -0.6816882491111755, -0.1458696275949...
Network preferences to proxy all protocols via localhost port 4444. 5. I created my php script and ran it with this command: `php -d include_path=".:/usr/share/php:/usr/share/php/Selenium/PEAR" test.php` I've listed my (basic, non-PHPUnit, non-OO) first test script below for reference. ``` require_once 'Testing/Sele...
[ 0.1797744482755661, -0.032251033931970596, 0.11179371178150177, -0.06623250246047974, 0.12993955612182617, -0.057571809738874435, 0.5796948671340942, -0.2239716500043869, 0.11926867812871933, -0.7132732272148132, 0.027205709367990494, 0.5320070385932922, -0.5515168905258179, 0.059063818305...
exit; } } $oSelenium->type("login", "my_username"); $oSelenium->type("password", "my_password"); $oSelenium->click("login_button"); $oSelenium->waitForPageToLoad(10000); $oSelenium->click("top_nav_campaigns"); $oSelenium->stop(); ```
[ -0.05200164392590523, 0.1809748411178589, 0.4860526919364929, -0.10271915793418884, 0.45888984203338623, -0.06127532944083214, 0.2834092974662781, 0.10053673386573792, -0.10104400664567947, -0.5578082799911499, -0.48325231671333313, 0.347080796957016, -0.21569037437438965, 0.42285189032554...
I'm evaluating Visual Studio productivity addons for my development team, which includes some folks who are very new to C# and some folks who are very experienced. We don't use VB.NET. I personally like ReSharper, but before I suggest something that I personally like, I would like some opinions for and reasoning behind...
[ 0.6602264642715454, -0.12666691839694977, -0.05327817052602768, 0.04388441890478134, -0.3878496587276459, 0.20653949677944183, -0.30228182673454285, 0.01082786824554205, -0.12312237918376923, -0.6390213966369629, 0.16775628924369812, 0.8201018571853638, -0.21078799664974213, -0.18295118212...
and coderush trials. Initially I liked coderush a bit better. It seems a bit more polished and a bit more stable. But eventually I did go with resharper. Mainly because of the unit testing integration. I don't really see why you have to choose for your development team though. In my last company everyone used the tool...
[ 0.3390774726867676, 0.024132726714015007, 0.1889079362154007, 0.02200755663216114, -0.569673478603363, 0.17618955671787262, 0.29064446687698364, -0.2504097521305084, -0.08384691923856735, -0.45693182945251465, 0.3173668384552002, 0.7613931894302368, 0.2972859740257263, 0.1436927318572998, ...
to give your developers some choice in what tools they want to use.
[ 0.5197455883026123, 0.16917429864406586, -0.18727004528045654, 0.4175368845462799, 0.06432095915079117, -0.0409453883767128, -0.2806244194507599, 0.17592290043830872, 0.020280539989471436, -0.5557011365890503, -0.01005039643496275, 0.714137852191925, 0.2214174121618271, -0.1990066319704055...
I used to work with Subversion and a system tray tool ([SVN Notifier](http://svnnotifier.tigris.org/)) to monitor the repository so I would immediately see when my local copy was not up-to-date anymore, and I am wondering if some equivalent was available for Perforce (on Windows). If you use the Perforce GUI client, yo...
[ 0.7318053245544434, -0.04876444861292839, 0.4203547239303589, -0.03406744450330734, -0.323175847530365, -0.009429574012756348, 0.007715092971920967, -0.04742328077554703, -0.2654348909854889, -0.5084975361824036, 0.21321304142475128, 0.48687106370925903, -0.2387562394142151, 0.094618417322...
As a new Eclipse user, I am constantly annoyed by how long it takes compiler error messages to display. This is mostly only a problem for long errors that don't fit in the status bar or the "Problems" tab. But I get enough long errors in Java—especially with generics—that this is a nagging issue. (Note: The correct ans...
[ 0.29735445976257324, 0.07070723921060562, 0.1831580251455307, -0.27230575680732727, -0.3914245367050171, -0.37836942076683044, 0.41614192724227905, 0.01969759166240692, -0.06631527096033096, -0.7530805468559265, -0.03492934629321098, 0.7808563709259033, -0.29375171661376953, -0.09858846664...
bar (if it is short enough). The error is also highlighted in the "Problems" tab, if it is open, but the tab is not automatically brought to the top. 2. Hover the mouse over the error. After a noticeable lag, the error message appears as a "tool tip", along with any associated "Quick Fixes." 3. Hover the mouse over the...
[ -0.09534076601266861, 0.1948091834783554, 0.6252586245536804, -0.05385123938322067, 0.032119110226631165, 0.22258378565311432, 0.350910484790802, -0.12083311378955841, -0.11570008099079132, -0.5108582973480225, -0.3040274679660797, 0.6344089508056641, -0.2706228792667389, -0.20117427408695...
automatically and instantly bring up the complete error message (I don't care where). Is this a configurable option? [UPDATE] @asterite's "`Ctrl+. F2`" is almost it. How do I make "Next Annotation, then Show Tooltip Description" a macro bound to a single keystroke? Well, you can press F2 to display the popup that norm...
[ -0.07589863985776901, -0.2135043889284134, 0.4356168508529663, -0.1754506230354309, 0.11422605067491531, -0.2572826147079468, 0.44212764501571655, -0.0673074945807457, -0.2363283634185791, -0.7829870581626892, -0.4073551893234253, 0.8759644031524658, -0.3189355134963989, -0.324348807334899...
I have been tinkering with BSP trees for a while now and am also playing with threads. When adding a triangle to a BSP tree, an opportunity arises to create a new thread for the purposes of processing data in parallel. ``` insert(triangle, bspnode) { .... else if(triangle spans bspnode) { (frontpiece, backp...
[ 0.23803308606147766, 0.036732833832502365, 0.1549990028142929, -0.00786186195909977, 0.027077069506049156, 0.20850849151611328, 0.014035639353096485, -0.2081208974123001, -0.3004011809825897, -0.8423734903335571, 0.09102154523134232, 0.2957252860069275, -0.37443095445632935, 0.088231585919...
else if(triangle spans bspnode) { (frontpiece, backpiece) = split(triangle, bspnode) handle = beginthread(insert(backpiece, bspnode.front)) insert(frontpiece, bspnode.back) if(handle) { waitforthread(handle) } else { insert(backpiece, bspnode.front) } } .... } ```...
[ 0.1310877799987793, -0.11605692654848099, 0.5094377994537354, -0.1864260882139206, 0.11963967233896255, 0.17037415504455566, -0.025041503831744194, -0.47431236505508423, -0.5182439684867859, -0.4244072139263153, -0.15404993295669556, 0.41730812191963196, -0.2880357801914215, 0.253790408372...
a sound programming practice, or am I using threads improperly? I have not been able to find any literature on this technique. I like that it tends to use my CPU to its fullest (2 cores), and would theoretically scale to any number of processors available. I don't like that it might be horribly wasteful on CPU and memo...
[ 0.44805586338043213, 0.20701643824577332, -0.07734367251396179, -0.14215286076068878, 0.3134709298610687, -0.1628486067056656, 0.5078773498535156, -0.33649247884750366, -0.14454032480716705, -0.6683369874954224, 0.33609139919281006, 0.6387597918510437, 0.08002255856990814, 0.01821758784353...
threads than processors actually creates overhead. It seems like your threads are doing all "CPU work", so I'd stick to one thread per core - test to find the optimal number, though. The biggest overhead created is from context switching (freezing one thread and loading the execution context of the next one), as well ...
[ 0.15615148842334747, -0.09814710170030594, -0.017590433359146118, 0.4106961190700531, 0.005320072174072266, 0.032363682985305786, 0.19740547239780426, 0.12090648710727692, -0.4723551273345947, -0.6534966230392456, 0.3215680420398712, 0.13834506273269653, -0.319960355758667, 0.2701318860054...
I have a need to display many numerical values in columns. These values need to be easily editable so I cannot just display them in a table. I am using textboxes to display them. Is there a way for me to right-justify the text displayed in a textbox? It would also be nice if when the user is entering data for it to sta...
[ 0.2977915108203888, 0.2715265154838562, 0.3695996403694153, -0.034830242395401, -0.3176702558994293, 0.10299090296030045, -0.005498068872839212, -0.2107708752155304, -0.29694077372550964, -0.49832314252853394, 0.26848968863487244, 0.5340924263000488, -0.18679729104042053, -0.17174434661865...
<title>Blah</title> <style type="text/css"> input { text-align:right; } </style> </head> <body> <input type="text" value="2"> </body> </html> ``` You'll probably want to throw a class on these inputs, and use that class as the selector. I would shy away from "rightAligned" ...
[ 0.1205684021115303, 0.02894439734518528, 0.15151676535606384, 0.19108839333057404, -0.1796351969242096, -0.2543828785419464, -0.029964353889226913, -0.41166582703590393, 0.040679123252630234, -0.400799036026001, -0.4303496778011322, 0.39663299918174744, -0.0766354352235794, 0.1380876153707...
or perhaps the business function of the text boxes.
[ 0.19629518687725067, 0.20948003232479095, -0.15945018827915192, 0.2029188573360443, 0.008260630071163177, 0.17633239924907684, -0.07947079837322235, 0.17381885647773743, -0.30662304162979126, 0.056598883122205734, 0.0015313245821744204, 0.2801671624183655, -0.029264310374855995, 0.01656079...
Given a SCHEMA for implementing tags ITEM ItemId, ItemContent TAG TagId, TagName ITEM\_TAG ItemId, TagId What is the best way to limit the number of ITEMS to return when selecting with tags? ``` SELECT i.ItemContent, t.TagName FROM item i INNER JOIN ItemTag it ON i.id = it.ItemId INNER JOIN tag t ON t.id = it.Ta...
[ -0.12162066996097565, -0.3097131550312042, 0.4489661157131195, -0.021300742402672768, -0.020116809755563736, 0.19008266925811768, -0.2299099862575531, -0.4812731146812439, -0.1651037484407425, -0.6831186413764954, -0.1141127273440361, 0.5031461119651794, -0.4950115382671356, 0.102831073105...
a comma-separated string in the result set. ``` SELECT i.ItemContent, GROUP_CONCAT(t.TagName ORDER BY t.TagName) AS TagList FROM item AS i INNER JOIN ItemTag AS it ON i.id = it.ItemId INNER JOIN tag AS t ON t.id = it.TagId GROUP BY i.ItemId; ``` The GROUP\_CONCAT() function is a MySQL feature, it's not part of...
[ -0.408913791179657, -0.13101407885551453, 0.443250834941864, -0.190745547413826, -0.1292702853679657, -0.029616953805088997, 0.015023387968540192, -0.22323447465896606, 0.017807306721806526, -0.33056411147117615, -0.5302593111991882, 0.4950476586818695, -0.5297553539276123, 0.1482951492071...
I changed the MembershipProvider in my ASP.net MVC website, and now the stylesheet for the login page isn't referenced correctly. Below is a copy of the forms tag in my web.config if that could be the reason. It looks identical though to the one generated by a new project with the exception of the name and timeout attr...
[ 0.10784086585044861, 0.3066212236881256, 0.4622465968132019, -0.16701339185237885, -0.04493023455142975, -0.32791343331336975, 0.23158834874629974, -0.3169090151786804, -0.31021440029144287, -0.4707217216491699, -0.2646072208881378, 0.29785969853401184, -0.11036350578069687, -0.15083436667...
wasn't solved with the ResolveClientUrl though. It had to deal with the web.config file. I had code that looked like this: ``` <authorization> <deny users="?" /> <allow users="*" /> </authorization> ``` I added a location element below the main one and said that anybody could view that content, and it works no...
[ -0.13190901279449463, -0.10445963591337204, 0.4428395926952362, 0.05818648636341095, 0.15658706426620483, -0.36399778723716736, 0.11939911544322968, 0.009185615926980972, -0.247628316283226, -0.6034768223762512, -0.015567083843052387, 0.29869505763053894, -0.251768559217453, 0.053671590983...
</system.web> </location> ```
[ 0.23110423982143402, 0.4247592091560364, 0.012139854021370411, 0.2212599813938141, 0.3681696653366089, -0.006302741821855307, 0.19209440052509308, 0.2968516945838928, -0.30615079402923584, -0.709342360496521, -0.4492644667625427, 0.20912113785743713, -0.17462199926376343, 0.326488167047500...
Having recently discovered this method of development, I'm finding it a rather nice methodology. So, for my first project, I have a small DLL's worth of code (in C#.NET, for what it's worth), and I want to make a set of tests for this code, but I am a bit lost as to how and where to start. I'm using NUnit, and VS 2008...
[ 0.5515708327293396, 0.12439519166946411, -0.10691506415605545, 0.07003143429756165, -0.35511237382888794, -0.27415135502815247, 0.3495970666408539, 0.19091586768627167, -0.09478065371513367, -0.48863881826400757, 0.1448022574186325, 0.5276674628257751, 0.21069923043251038, 0.03480797260999...
[Working Effectively with Legacy Code](http://www.amazon.co.uk/Working-Effectively-Legacy-Robert-Martin/dp/0131177052) by Michael Feathers. In summary, it's a lot of work to refactor existing code into testable and tested code; Sometimes it's too much work to be practical. It depends on how large the codebase is, and ...
[ 0.6331649422645569, 0.47934630513191223, -0.33625373244285583, -0.327375590801239, 0.29412978887557983, 0.20588523149490356, 0.5190288424491882, -0.6802144646644592, -0.22858351469039917, -0.2148723155260086, -0.26816463470458984, 0.3151398301124573, -0.20859870314598083, -0.35852998495101...
an area of code. Most likely you'll have to return to these "hotspots" again. Add tests from the bottom up: test little, independent classes and functions for correctness. Add tests from the top down: Test whole subsystems as black boxes to see if their behaviour changes with changes in code. And so you can step thro...
[ 0.5744368433952332, 0.06461551040410995, -0.2855340242385864, 0.4448593556880951, 0.024653999134898186, -0.016840191558003426, 0.6112108826637268, -0.13999858498573303, -0.23316282033920288, -0.6002545952796936, -0.4877898395061493, 0.2853788435459137, -0.2064896523952484, 0.03838971257209...
behaviours that may seem incorrect, but that other parts of the system depend on. Think about isolating dependencies such as database, filesystem, network, so that they can be swapped out for mock data providers during testing. If the program doesn't have internal interfaces, lines which define the boundary between...
[ 0.31584182381629944, 0.1124832034111023, -0.1274939328432083, 0.22204294800758362, -0.4289848506450653, 0.08031520247459412, 0.6993920803070068, -0.004353859927505255, -0.4385858476161957, -0.4386134445667267, 0.050404731184244156, 0.5157102346420288, -0.3964497148990631, 0.104459643363952...
Is it safe to assume that two itterations over the same collection will return the objects in the same order? Obviously, it is assumed that the collection has not otherwise been changed. Short answer - yes. Obviously, though, the order of the items in the collection may not be exactly as they were inserted, depending ...
[ 0.13975264132022858, -0.13087159395217896, -0.03682190924882889, 0.26576370000839233, -0.045373495668172836, 0.19274426996707916, 0.023731162771582603, -0.2465580403804779, 0.010066654533147812, -0.528325617313385, -0.34281301498413086, 0.39359331130981445, -0.01935405284166336, -0.0625382...
In there an easy way to do this in PHP. I want to make sure that only web requests from certain countries are able to access my website. Any ideas? Use an IP geolocation database (some are free) and $\_SERVER["REMOTE\_ADDR"] to get the visitor's IP address. <http://www.maxmind.com/app/geolitecity> is a free (less acc...
[ 0.3725733160972595, -0.09321114420890808, 0.41506171226501465, 0.3958043158054352, 0.2272181659936905, -0.2779698073863983, -0.03547227382659912, 0.5030063986778259, -0.4254728853702545, -0.5425475239753723, 0.16054557263851166, 0.012046352960169315, -0.31951436400413513, -0.05129309371113...
This is really only easy to explain with an example, so to remove the intersection of a list from within a dict I usually do something like this: ``` a = {1:'', 2:'', 3:'', 4:''} exclusion = [3, 4, 5] # have to build up a new list or the iteration breaks toRemove = [] for var in a.iterkeys(): if var in exclusion:...
[ -0.13220511376857758, -0.14977812767028809, 0.006707432679831982, -0.2806699872016907, -0.4487062692642212, -0.02253052406013012, 0.4923161566257477, -0.4949134290218353, -0.31586137413978577, -0.464377224445343, -0.2931573987007141, 0.37017014622688293, -0.5602422952651978, 0.013244387693...
would be much nicer, but I clearly want to retain the 'values' for the dict. This method is annoying because it requires two loops and an extra array. Is there a cleaner and more efficient way of doing this. Consider [dict.pop](http://docs.python.org/library/stdtypes.html#dict.pop): ``` for key in exclusion: a.p...
[ -0.01313603762537241, 0.1745150238275528, 0.014109083451330662, -0.0846041738986969, -0.03619261085987091, -0.12244413793087006, 0.1614123284816742, -0.12203113734722137, -0.26609495282173157, -0.17772570252418518, -0.3322616517543793, 0.3722077012062073, -0.5309606194496155, 0.04213009029...
What is the functional programming approach to convert an `IEnumerable<string>` to a delimited string? I know I can use a loop, but I'm trying to wrap my head around functional programming. Here's my example: ``` var selectedValues = from ListItem item in checkboxList.Items where item.Selected select item.Value; v...
[ -0.09807518124580383, -0.2989601790904999, 0.07145928591489792, -0.1297968178987503, -0.3126475214958191, 0.052378248423337936, 0.1094493716955185, -0.3656165301799774, -0.11077576875686646, -0.45746248960494995, -0.045582983642816544, 0.6024149060249329, -0.45142504572868347, 0.1121766418...
I've inherited a large Java app that uses Struts, Spring, and Hibernate. The classes and interfaces I deal with daily are: Struts Actions, Struts ActionForms, Value Objects, Service Interfaces and Implementations, DAO Interfaces and Implementations, and Entities. I'm pretty clear on the how and why of most of these, ex...
[ 0.09765306860208511, -0.05247000977396965, 0.11453568935394287, 0.18931840360164642, -0.2698889970779419, 0.5977007150650024, 0.14967787265777588, -0.2198137491941452, -0.3546825051307678, -0.4148578941822052, 0.07475028932094574, 0.19907429814338684, -0.06905506551265717, -0.0690584629774...
the database (yuck!). Anyway, there are several distinct Java related issues that I'm wondering about: 1) It seems there is not much difference between the Entities and the Value Objects (VOs), and a lot of code must be written to transform on into the other when they pass through the service layer in either direction...
[ 0.2243443727493286, -0.1443399339914322, 0.3188900649547577, 0.3496703505516052, 0.013915903866291046, 0.11547215282917023, 0.34143760800361633, -0.2349245697259903, -0.12346642464399338, -0.3180325925350189, -0.1656586080789566, 0.6645058989524841, -0.4449859857559204, -0.0492614880204200...