text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
which path is taken to render a particular response. * Decision Tree based Learning actually forms a formidable area of data mining research. Numerous famous methods exist like bagging, boosting, and modifications thereof which work on trees. Such work is often used to generate a predictive model. * A common problem in...
[ 0.24163715541362762, -0.31059950590133667, -0.4330609440803528, 0.673942506313324, 0.0566372387111187, 0.04777258262038231, -0.20591147243976593, -0.07334519922733307, -0.2899938225746155, -0.6227423548698425, 0.05294050648808479, 0.5740709900856018, -0.349136620759964, 0.00103441742248833...
a computer program, but written down somewhere on the back of their notebook. Dupe. See [this](https://stackoverflow.com/questions/205945) and [this](https://stackoverflow.com/questions/20734/red-black-trees).
[ 0.13340172171592712, -0.039315324276685715, -0.09687656909227371, 0.3265678882598877, 0.35353997349739075, 0.0566742941737175, 0.4231258034706116, 0.04331361874938011, -0.6560289859771729, -0.12391198426485062, -0.4536608159542084, 0.10384668409824371, -0.09470412880182266, -0.170290127396...
We have two columns in a database which is currently of type varchar(16). Thing is, it contains numbers and always will contain numbers. We therefore want to change its type to integer. But the problem is that it of course already contains data. Is there any way we can change the type of that column from varchar to i...
[ 0.19670721888542175, 0.21208246052265167, 0.44973093271255493, 0.037356674671173096, -0.10155803710222244, 0.3054240942001343, 0.03710408881306648, -0.02781817317008972, -0.465440571308136, -0.4706180989742279, 0.2529003918170929, 0.24763809144496918, -0.4438028633594513, 0.259221255779266...
imagine it could be pretty easy if SQL Server have some function for converting strings to numbers, but I am **very** unstable on SQL. Pretty much only work with C# and access the database through LINQ to SQL. **Note:** Yes, making the column a varchar in the first place was not a very good idea, but that is unfortuna...
[ 0.17888054251670837, 0.15981680154800415, 0.36962488293647766, 0.03455409035086632, -0.3084048926830292, 0.1628197729587555, 0.30258774757385254, -0.20333795249462128, -0.21238009631633759, -0.614409863948822, 0.28322818875312805, 0.28829512000083923, -0.3779902756214142, 0.123622670769691...
table #tmp ```
[ 0.03147304430603981, 0.5881106853485107, 0.32451343536376953, -0.013807205483317375, 0.054658859968185425, -0.04734761640429497, -0.24662736058235168, 0.3744713068008423, -0.6415409445762634, -0.47433075308799744, -0.1953204870223999, 0.39330610632896423, -0.13408739864826202, 0.0128076402...
I implemented a small function, which parses an SQL INSERT statement and highlights a column value when a cursor is on a column name and vice versa. Then I wanted to add a possibility to quickly jump between column name and column value. I used push-mark in my implementation, so I can jump with C-x C-x (exchange-poin...
[ -0.11409115046262741, 0.061392366886138916, 0.224066361784935, -0.08875370025634766, -0.15594713389873505, -0.08450933545827866, -0.004181232303380966, -0.12112361937761307, -0.09904500097036362, -0.4075073301792145, -0.007743154652416706, 0.3215300440788269, -0.28489774465560913, -0.32418...
editing commands should not alter the > mark. My usage of mark - is it correct? Or what would be a better solution? Consider an analogy with the position of point: the user only wants point to move when they issue a point-moving command. It would be exceedingly annoying if random operations like font-locking moved th...
[ -0.05427885428071022, 0.009492460638284683, 0.2561907470226288, 0.026608744636178017, -0.2852083146572113, -0.17140550911426544, 0.03319163620471954, -0.04781839996576309, -0.2017599493265152, -0.4567389190196991, -0.08123129606246948, 0.4867510497570038, -0.26817020773887634, -0.139897406...
it does.) The point of the documentation you quoted is that commands should not set the mark *incidentally* as a result of doing something else. If your function just happens to set the mark when the user places point on a a column name in a SQL statement, that's probably not so convenient. Imagine a use case of someo...
[ 0.4425622522830963, 0.1198652908205986, 0.1985679566860199, 0.1731807440519333, -0.019805574789643288, -0.2454342246055603, 0.05182219669222832, -0.2629646956920624, -0.2876845598220825, -0.1622220128774643, 0.09245672076940536, 0.46695879101753235, -0.32550162076950073, 0.073624387383461,...
on `exchange-point-and-mark`. Of course, if this is purely for your own use, anything goes.
[ 0.5420531630516052, 0.013262022286653519, 0.07261206954717636, 0.0018569964449852705, -0.03505852818489075, -0.07516343891620636, -0.4795777201652527, 0.250753790140152, 0.13005375862121582, -0.3176252841949463, 0.13000592589378357, 0.3507102131843567, -0.01473220344632864, -0.070843525230...
How can I get the size of the display in centimeters or inches? This code does not always works correctly: ``` HDC hdc = CreateDC(_T("DISPLAY"),dd.DeviceName,NULL,NULL); int width = GetDeviceCaps(hdc, HORZSIZE); int height = GetDeviceCaps(hdc, VERTSIZE); ReleaseDC(0, hdc) ``` Especially for multi-monitor configurat...
[ 0.19639761745929718, -0.1313597559928894, 1.0974042415618896, 0.10398270934820175, -0.2661122977733612, -0.042918264865875244, 0.07018586248159409, -0.2736132740974426, -0.3598477840423584, -1.011529803276062, 0.0737607330083847, 0.4817865490913391, 0.32167288661003113, 0.4165106415748596,...
) { DWORD devMon = 0; while (EnumDisplayDevices(adapterName, devMon, &ddMon, 0)) { if (ddMon.StateFlags & DISPLAY_DEVICE_ACTIVE && ddMon.StateFlags & DISPLAY_DEVICE_ATTACHED) // for ATI, Windows XP break; devMon++; } if (ddMon.DeviceString[0] == '\0') {...
[ -0.114021435379982, -0.3722784221172333, 0.8321768045425415, -0.33470281958580017, 0.15701454877853394, -0.07519808411598206, 0.5309558510780334, -0.3235418498516083, 0.05852830782532692, -0.6877362728118896, -0.7601714134216309, 0.6698495149612427, -0.2865714728832245, 0.1490311622619629,...
if (ddMon.DeviceString[0] == '\0') _tcscpy_s(ddMon.DeviceString, _T("Default Monitor")); } return ddMon.DeviceID[0] != '\0'; } BOOL GetMonitorSizeFromEDID(TCHAR* adapterName, DWORD& Width, DWORD& Height) { DISPLAY_DEVICE ddMon; ZeroMemory(&ddMon, sizeof(ddMon)); ddMon.cb = sizeof(ddMon)...
[ -0.11639891564846039, -0.006224656477570534, 0.7041326761245728, -0.19504915177822113, 0.23160678148269653, 0.12955181300640106, 0.16254810988903046, -0.35938695073127747, -0.23515474796295166, -0.6226650476455688, -0.319536954164505, 0.7527127265930176, -0.22146044671535492, 0.55948066711...
TCHAR* s = _tcschr(ddMon.DeviceID, '\\') + 1; size_t len = _tcschr(s, '\\') - s; if (len >= _countof(model)) len = _countof(model) - 1; _tcsncpy_s(model, s, len); TCHAR *path = _tcschr(ddMon.DeviceID, '\\') + 1; TCHAR str[MAX_PATH] = _T("SYSTEM\\CurrentControlSet\\En...
[ -0.17105863988399506, -0.3195529282093048, 1.0482839345932007, 0.15021385252475739, 0.12191090732812881, 0.14154891669750214, -0.08637239038944244, -0.5354015827178955, -0.3404340147972107, -0.2533518075942993, -0.16685202717781067, 0.5252600908279419, -0.3186821937561035, 0.43907263875007...
path = _tcschr(path, '\\') + 1; HKEY hKey; if(RegOpenKeyEx(HKEY_LOCAL_MACHINE, str, 0, KEY_READ, &hKey) == ERROR_SUCCESS) { DWORD i = 0; DWORD size = MAX_PATH; FILETIME ft; while(RegEnumKeyEx(hKey, i, str,
[ -0.3365864157676697, -0.4828125834465027, 0.8181340098381042, -0.16024994850158691, 0.5438809990882874, -0.01623082160949707, 0.507315456867218, -0.22672998905181885, -0.09240660816431046, -0.721368670463562, -0.5735709071159363, 0.6708406209945679, -0.32300153374671936, 0.0928143858909607...
&size, NULL, NULL, NULL, &ft) == ERROR_SUCCESS) { HKEY hKey2; if(RegOpenKeyEx(hKey, str, 0, KEY_READ, &hKey2) == ERROR_SUCCESS) { size = MAX_PATH;
[ -0.04252112656831741, -0.294821560382843, 0.6526293158531189, -0.22266708314418793, 0.5892753601074219, 0.052279360592365265, 0.45129844546318054, -0.3044789135456085, -0.35818350315093994, -0.38729050755500793, -0.6153379678726196, 0.771293044090271, -0.20716433227062225, -0.0492870286107...
if(RegQueryValueEx(hKey2, _T("Driver"), NULL, NULL, (LPBYTE)&str, &size) == ERROR_SUCCESS) { if (_tcscmp(str, path) == 0) {
[ -0.030069619417190552, -0.13718292117118835, 0.44576698541641235, -0.04381692409515381, 0.4374469518661499, -0.05049401894211769, 0.2941780984401703, -0.2646888196468353, -0.05851795896887779, -0.29189708828926086, -0.2654365301132202, 0.8196499347686768, -0.32157590985298157, 0.3051761984...
HKEY hKey3; if(RegOpenKeyEx(hKey2, _T("Device Parameters"), 0, KEY_READ, &hKey3) == ERROR_SUCCESS) {
[ -0.43770068883895874, 0.09629886597394943, 0.4728546440601349, -0.335251122713089, 0.5068122744560242, 0.1634344756603241, 0.5292636752128601, -0.174413800239563, -0.09928504377603531, -0.20631451904773712, -0.47854623198509216, 0.8792496919631958, -0.22062313556671143, 0.03346192836761474...
BYTE EDID[256]; size = 256; if(RegQueryValueEx(hKey3, _T("EDID"), NULL, NULL, (LPBYTE)&EDID, &size) == ERROR_SUCCESS)
[ -0.37707269191741943, 0.09661613404750824, 0.3005848228931427, -0.10826920717954636, 0.18425843119621277, 0.38492754101753235, 0.17594599723815918, -0.24512019753456116, -0.4093979001045227, -0.11298729479312897, -0.13362492620944977, 0.6045605540275574, -0.2070477306842804, 0.097079634666...
{ DWORD p = 8; TCHAR
[ -0.11401386559009552, 0.09652571380138397, -0.0007395889842882752, -0.36054757237434387, 0.1331963986158371, -0.055787019431591034, 0.26642152667045593, -0.28268760442733765, -0.004186657257378101, -0.034341052174568176, -0.4940348267555237, 0.4485970735549927, -0.5769400000572205, 0.18304...
model2[9]; char byte1 = EDID[p]; char byte2 = EDID[p+1];
[ -0.26940158009529114, -0.35192951560020447, 0.5142612457275391, -0.007310442626476288, 0.12800224125385284, 0.2659941613674164, -0.021359920501708984, -0.12478520721197128, -0.12215206027030945, -0.14650610089302063, -0.2453766167163849, 0.5430719256401062, -0.5541887879371643, 0.006382524...
model2[0]=((byte1 & 0x7C) >> 2) + 64; model2[1]=((byte1 & 3) << 3) + ((byte2 & 0xE0) >> 5) + 64;
[ -0.1656113713979721, -0.37157610058784485, 0.41795814037323, 0.12805567681789398, 0.11630795150995255, 0.2767506539821625, -0.019043980166316032, -0.5605186820030212, -0.06524541229009628, -0.501722514629364, -0.07095857709646225, 0.5628103017807007, -0.3310525715351105, 0.129119873046875,...
model2[2]=(byte2 & 0x1F) + 64; _stprintf(model2 + 3, _T("%X%X%X%X"), (EDID[p+3] & 0xf0) >> 4, EDID[p+3] & 0xf, (EDID[p+2] & 0xf0) >> 4, EDID[p+2] & 0x0f); if
[ -0.20993266999721527, -0.30308568477630615, 0.6898927092552185, -0.14831103384494781, 0.18214881420135498, 0.34357261657714844, 0.12598875164985657, -0.4986373484134674, -0.029637131839990616, -0.5449522733688354, 0.006272461730986834, 0.5442003011703491, -0.4574149250984192, 0.06541274487...
(_tcscmp(model, model2) == 0) { Width = EDID[22];
[ 0.26170846819877625, -0.32389041781425476, 0.669684648513794, -0.1651885211467743, 0.07093880325555801, -0.024403292685747147, 0.1458522081375122, -0.47632738947868347, -0.39702579379081726, -0.22684060037136078, 0.06044131517410278, 0.508354663848877, -0.2703148424625397, 0.44427651166915...
Height = EDID[21]; result = true;
[ -0.05132998153567314, -0.17611803114414215, 0.4150576591491699, -0.2127697914838791, -0.16691334545612335, -0.2005724310874939, 0.5728761553764343, -0.3538951277732849, -0.36582672595977783, -0.05961395055055618, -0.22043421864509583, 0.5863357186317444, 0.4092036783695221, 0.0092622684314...
} else {
[ 0.09254544228315353, 0.263928085565567, -0.09754697978496552, 0.00076576805440709, 0.44720181822776794, -0.02305774949491024, -0.030455240979790688, 0.5754388570785522, 0.1610688418149948, -0.2688172161579132, -0.22373566031455994, 0.665835440158844, -0.1847236007452011, -0.352310478687286...
// EDID incorrect } }
[ -0.17807291448116302, 0.07728079706430435, -0.026380794122815132, -0.13922129571437836, 0.13865722715854645, -0.08751972764730453, 0.3298228681087494, 0.7083719968795776, -0.048765458166599274, -0.4449698030948639, -0.06369637697935104, 0.7668657898902893, -0.05230281502008438, 0.068479813...
RegCloseKey(hKey3); } } }
[ -0.5622371435165405, -0.213668555021286, 0.28683122992515564, -0.325399786233902, 0.2737065553665161, -0.07622610777616501, 0.22150970995426178, 0.3263615369796753, -0.1629633605480194, -0.13680823147296906, -0.5831805467605591, 0.683356761932373, -0.517905056476593, 0.15264658629894257, ...
RegCloseKey(hKey2); } i++; } RegCloseKey(hKey); } } return result; } ```
[ -0.3706434667110443, 0.029190389439463615, 0.5739088654518127, -0.31114619970321655, 0.08185788989067078, -0.07750000804662704, 0.07755642384290695, -0.1685071438550949, -0.1373608112335205, -0.21618863940238953, -0.780448317527771, 0.5446564555168152, -0.3771331012248993, 0.21277303993701...
I am developing a set of classes that implement a common interface. A consumer of my library shall expect each of these classes to implement a certain set of static functions. Is there anyway that I can decorate these class so that the compiler will catch the case where one of the functions is not implemented. I know ...
[ 0.6155604720115662, 0.18011663854122162, 0.030468281358480453, 0.24339380860328674, -0.04308781400322914, 0.16464148461818695, 0.13149689137935638, 0.23212799429893494, -0.2507479786872864, -0.7477755546569824, 0.1993754804134369, 0.55092453956604, -0.29638171195983887, 0.05503049865365028...
Removed the word 'interface' to avoid confusion. No, there is no language support for this in C#. There are two workarounds that I can think of immediately: * use reflection at runtime; crossed fingers and hope... * use a singleton / default-instance / similar to implement an interface that declares the methods (**up...
[ 0.212074413895607, -0.06487085670232773, 0.3176637887954712, -0.0068180072121322155, -0.321527898311615, 0.007510732859373093, 0.6180587410926819, -0.27460768818855286, -0.07972152531147003, -0.7570435404777527, 0.1258092075586319, 0.7033333778381348, -0.04547848552465439, -0.2129701375961...
you have the static operators. At runtime, if you don't, it will laugh at you in a suitably mocking tone... but it can't check at compile-time.
[ 0.30428317189216614, 0.025534117594361305, 0.26471224427223206, 0.3190588057041168, 0.0695783793926239, -0.36811861395835876, 0.3404487371444702, 0.28421369194984436, -0.20908699929714203, -0.10319919139146805, -0.31524986028671265, 0.7035326957702637, -0.5184758305549622, 0.22617012262344...
I have a genealogical database (about sheep actually), that is used by breeders to research genetic information. In each record I store fatherid and motherid. In a seperate table I store complete 'roll up' information so that I can quickly tell the complete family tree of any animal without recursing thru the entire da...
[ 0.5492861866950989, 0.336692750453949, 0.021239077672362328, -0.1258840411901474, 0.1569271832704544, 0.42895156145095825, 0.050130508840084076, -0.14829717576503754, -0.06888483464717865, -0.6809079647064209, 0.5263627767562866, 0.07511064410209656, 0.13103947043418884, 0.5353437662124634...
samples I have found/read so far deal with manager/employee type relationships where a given boss can have multiple employees, and each employee can have a single boss. The needs of my app are similar, but not quite the same. I am sure I will dig into this new technology anyway, but it would be nice to shortcut my re...
[ 0.46094757318496704, -0.04189024865627289, 0.031355343759059906, 0.25299516320228577, 0.018529880791902542, 0.255546897649765, 0.10252568870782852, 0.009243575856089592, -0.3370586335659027, -0.7165820598602295, 0.33286961913108826, 0.22643685340881348, -0.0026709195226430893, 0.0809040889...
do the same thing. I can't see how it would work; in a regular hierarchy, there is a single chain to the root, so it can store the path (which is what the binary **is**) to each node. However, with multiple parents, this isn't possible: even if you split matriarchy and partiarchy, you still have 1 mother, 2 grandmother...
[ 0.5107733607292175, -0.1907544881105423, -0.09845057129859924, 0.3541288375854492, 0.14765356481075287, 0.25825998187065125, 0.4206285774707794, -0.07182236015796661, -0.3509480357170105, -0.5757335424423218, 0.20418132841587067, -0.3911827802658081, -0.11426783353090286, 0.483947634696960...
In Unix all disks are exposed as paths in the main filesystem, so `os.walk('/')` would traverse, for example, `/media/cdrom` as well as the primary hard disk, and that is undesirable for some applications. How do I get an `os.walk` that stays on a single device? Related: * [Is there a way to determine if a subdirect...
[ -0.0010381301399320364, -0.24514129757881165, 0.4205925762653351, -0.03545593470335007, 0.10101649165153503, -0.4334690272808075, 0.0019361539743840694, 0.036137521266937256, -0.30592191219329834, -0.4454492926597595, -0.5691943764686584, 0.7262350916862488, -0.06510631740093231, 0.0136136...
dirnames; this can be > used to prune the search So something like this should work: ``` for root, dirnames, filenames in os.walk(...): dirnames[:] = [ dir for dir in dirnames if not os.path.ismount(os.path.join(root, dir))] ... ```
[ -0.44485020637512207, -0.15012943744659424, 0.3717680871486664, -0.14833718538284302, 0.10795897990465164, -0.0727679580450058, 0.3415606915950775, -0.20050939917564392, -0.07305662333965302, -0.8879470229148865, -0.1381373405456543, 0.7177886366844177, -0.3348619341850281, 0.1847339570522...
I have a console application that I am rebuilding from C to C#. This application has to be able to support the legacy method of storing information like parameters from a command-line and parameters from a file (called the system parameters) that customize each run. The system parameters file is in plain-text with a si...
[ 0.10746043175458908, 0.07681859284639359, 0.4047541618347168, 0.10636605322360992, 0.12425381690263748, 0.22564643621444702, 0.01470903679728508, -0.15015992522239685, 0.023729342967271805, -0.6913567185401917, 0.1026957780122757, 0.6126963496208191, -0.12480416148900986, 0.334568619728088...
strongly-typed? * I will need access to this structure from a lot of different places in the code. What is the most elegant way to retrieve the values in the object without passing the object itself around everywhere? I have a feeling that it should be a single, strongly-typed object and that it should be an instantia...
[ -0.08670926094055176, -0.0012372320052236319, 0.2712495028972626, 0.06026406213641167, -0.4336971640586853, -0.08218105882406235, 0.13989123702049255, -0.3950800597667694, -0.18240293860435486, -0.500367283821106, 0.022144628688693047, 0.35577234625816345, -0.5495404601097107, -0.098831079...
default settings file from project properties. Each setting may be in user or application scope, which controls whether or not the user can change them or they are restricted to their default values. They are easily saved with the `Save()` method and loaded automatically into the static `Default` property. > This cla...
[ 0.3712151348590851, -0.19677628576755524, 0.19273832440376282, 0.11674807965755463, 0.27924975752830505, -0.015754660591483116, 0.27853456139564514, 0.03883920982480049, -0.08655203133821487, -0.6582724452018738, -0.20403021574020386, 0.7419158816337585, -0.3520059883594513, 0.049913126975...
long as you don't save the per-run settings, you should be safe and settings are still quite easy to use. These are static settings though. If the same application run needs several instances - this is the wrong approach.
[ 0.4525855481624603, -0.006589190568774939, 0.18318797647953033, 0.3209077715873718, 0.06370126456022263, -0.33484598994255066, 0.4909665286540985, 0.1501917988061905, -0.21788837015628815, -0.5712941884994507, 0.03579860180616379, 0.6245555877685547, -0.34768617153167725, -0.05211879685521...
Greetings, I can't seem to find a way to create a function request with array as an argument. For example, how do I make this kind of request using PHP SoapClient: ``` <GetResultList> <GetResultListRequest> <Filters> <Filter> <Name>string</Name> <Value>string</Value> </Filter> ...
[ -0.39824914932250977, -0.032092854380607605, 0.5278204083442688, 0.06392943859100342, -0.6591776013374329, 0.017330020666122437, 0.22063682973384857, -0.23325984179973602, 0.0749591812491417, -0.6385108232498169, -0.04957365617156029, 0.09580327570438385, -0.19679223001003265, -0.114905394...
call this function without creating any extra classes (using arrays only)? If no, what is the most compact way of calling it? You can use this **-v** function to convert a array to a object tree: ``` function array_to_objecttree($array) { if (is_numeric(key($array))) { // Because Filters->Filter should be an array ...
[ 0.11945082992315292, -0.6326593160629272, 0.353831022977829, -0.35119837522506714, -0.12396448105573654, -0.117828868329525, 0.13192139565944672, -0.6377324461936951, -0.14179368317127228, -0.6770395636558533, -0.09615036845207214, 0.7139297127723694, -0.9339764714241028, -0.11165574938058...
$Object->$key = array_to_objecttree($value); } else { $Object->$key = $value; } } return $Object; } ``` Like so: ``` $data = array( 'GetResultListRequest' => array( 'Filters' => array( 'Filter' => array( array('Name' => 'string', 'Value' => 'string'), // Has a numeric key ...
[ -0.2297862321138382, -0.33360493183135986, 0.512698769569397, -0.16630087792873383, 0.17347264289855957, 0.039075836539268494, 0.39707303047180176, -0.7013332843780518, -0.09189396351575851, -0.39906439185142517, -0.47826775908470154, 0.5569932460784912, -0.5014106035232544, 0.033112671226...
I have some strings in Java (originally from an Excel sheet) that I presume are in Windows 1252 codepage. I want them converted to Javas own unicode format. The Excel file was parsed using the JXL package, in case that matter. I will clarify: apparently the strings gotten from the Excel file look pretty much like it a...
[ 0.21486635506153107, 0.20888003706932068, 0.4808475375175476, -0.13034890592098236, -0.023228144273161888, -0.06587738543748856, 0.17544351518154144, -0.43304547667503357, -0.2679198980331421, -0.936995267868042, -0.26505595445632935, 0.20147110521793365, -0.30446919798851013, -0.162706971...
byte characters. It is most definitely not Latin1. If I print the "contents" string with printLn and redirect it to a hello.txt file, I find that the letter "ö" is represented with two bytes, C3 B6 in hex. (195 and 179 in decimal.) [edit] I have tried the suggestions with different codepages etc given below, tried co...
[ -0.054561130702495575, 0.28749388456344604, 0.3974466621875763, -0.19758082926273346, -0.24108357727527618, 0.5951861143112183, -0.11854622513055801, 0.27952224016189575, -0.30637800693511963, -0.5194798707962036, 0.12790770828723907, 0.2515953779220581, -0.06430558115243912, 0.16347181797...
typefaces or anything. The manually typed "ö" always worked. [edit] I also tried WorkBookSettings as suggested in the comments, but I looked in the code for JXL and characterSet seems to be ignored by parsing code. I think the parsing code just looks at whatever encoding the XLS file is supposed to be in. WorkbookSet...
[ 0.3178112804889679, 0.04170043766498566, 0.27077776193618774, -0.030551688745617867, -0.11256231367588043, 0.15612082183361053, 0.18906311690807343, -0.10649704933166504, -0.26998862624168396, -0.8012683391571045, -0.07133852690458298, 0.20076194405555725, -0.3825610876083374, -0.164028167...
I'm currently looking for **a hand drawing (2D) library/module** (that would be like Paint, Paint.Net or Photoshop - but I don't need all the power of Photoshop...) that would allow me to add a drawing module to an IDE application. That application is in it's early design phase : for instance I'm only estimating if I ...
[ 0.831397294998169, 0.045817676931619644, 0.19588181376457214, 0.15704652667045593, -0.19767498970031738, -0.02859664335846901, -0.1545742303133011, -0.2169061154127121, -0.10801413655281067, -0.8046252131462097, 0.2657143771648407, 0.44750258326530457, -0.154414564371109, 0.020862573757767...
allowing me to concentrate on the other important feature of the application, instead of implementing it myself. That module would be instantiated by the user to create or edit an image (no need for Photoshop power). That image would then be manipulated by the application (with other data). I've been searching in Goog...
[ 0.6268512010574341, -0.024926448240876198, 0.34627199172973633, 0.2846337556838989, -0.145027294754982, -0.011779810301959515, -0.11489355564117432, -0.08239682018756866, -0.25188493728637695, -0.6557419896125793, 0.35259902477264404, 0.5835587382316589, -0.19700691103935242, -0.1478302627...
QGraphicsView from Qt >4.3 and it's pretty easy. I will consider it. Good luck! :D
[ 0.3706435263156891, -0.36086806654930115, 0.9183531403541565, -0.014697293750941753, -0.1270441859960556, -0.23991438746452332, 0.6503603458404541, 0.27106544375419617, 0.23633211851119995, -1.1043453216552734, 0.11504799127578735, 0.8386937975883484, 0.2244795560836792, 0.1662445664405822...
I had the impression sed wasn't blocking, because when I do say: ``` iostat | sed ``` `sed` processes the data as it arrives, but when I do ``` iostat | sed | netcat ``` Then `sed` blocks `netcat`. Am I right? `sed` will work in buffered mode when it doesn't print to a terminal. This means that it will try to fi...
[ 0.12735557556152344, -0.0507722906768322, 0.46078741550445557, -0.2799685597419739, 0.028977466747164726, 0.07801710814237595, 0.09993763267993927, 0.1448332518339157, 0.10413923114538193, -0.924866795539856, -0.22054080665111542, 0.1858101189136505, -0.4834820330142975, 0.3403663635253906...
unbuffered, therefore working the same way it works when output goes to a terminal.
[ -0.0059450785629451275, -0.32553592324256897, 0.47486451268196106, 0.03603893145918846, 0.01607036404311657, 0.12099511176347733, 0.054776862263679504, 0.0749027356505394, -0.369892418384552, -0.3973945677280426, -0.5251727104187012, 0.4104178547859192, -0.38932082056999207, 0.340282648801...
I am using SVN to develop some software in a team of four people. Whenever I update my working copy, it creates far more conflicts than I would expect to be created, a large number of these conflicts are like so: If the initial was ``` import Class1 ``` and I change it to ``` import Class1 import Class2 ``` wh...
[ 0.3468431234359741, 0.10770531743764877, 0.3052893280982971, -0.10651655495166779, -0.1718948930501938, 0.04568909481167793, 0.09241537004709244, -0.24116256833076477, -0.18595896661281586, -0.6116025447845459, -0.05561937019228935, 0.5416128635406494, -0.3031060993671417, 0.56164473295211...
``` processA(); processB(); ``` with : ``` if(x){ processA(); processB(); } ``` the whole thing is marked as a change, is there no way to get it to highlight the fact that only if(x) was added above/below. In cases like this i have to analyse the entire lines inside the new block, and worry about missing small...
[ 0.13999387621879578, 0.19488269090652466, 0.42390647530555725, -0.31927424669265747, -0.007779316045343876, 0.03889055177569389, 0.34540754556655884, 0.1663551777601242, -0.26382187008857727, -0.8067185282707214, -0.2824689447879791, 0.2561107277870178, -0.3086247742176056, 0.1083806455135...
be very dangerous if it would try to deduce semantic meaning from change sets. Therefore it can only do relatively simple merges (i.e. if a file changed in two completely different areas). The common solution is to use small commits. Don't keep big changes piling up. Commit often. Update often.
[ -0.032003145664930344, -0.2574388086795807, 0.06798624247312546, 0.3180134892463684, 0.20691102743148804, -0.4132841229438782, 0.3903580605983734, -0.11506729573011398, -0.37923192977905273, -0.6379110813140869, -0.0610467828810215, 0.585514485836029, -0.3205050230026245, -0.04365245997905...
Are there any applications out there for 3D modeling that would output the finished product to an array of points (X,Y,Z) that you could then import to a WPF 3D Model? ie: ``` <MeshGeometry3D Positions="0,0,0 10,0,0 0,10,0 10,10,0 0,0,10 10,0,10 0,10,10 10,10,10" TriangleIndices="0,2,1 1,2,3 0,4,2 2,4,6 0,1,4 1,5,4 1...
[ 0.0716487318277359, 0.07973532378673553, 0.8155742287635803, -0.12871968746185303, -0.35298916697502136, 0.4329296052455902, 0.11334305256605148, -0.24985271692276, -0.3903065621852875, -0.7325840592384338, -0.04591868072748184, 0.1716991364955902, -0.22456566989421844, 0.03268436715006828...
all 3D authoring application are able to export to .3ds format. Edit: You could also try [Blender](http://www.blender.org/) and [XAML Exporter for Blender](http://www.codeplex.com/xamlexporter) to create your 3D assets.
[ 0.5970275402069092, 0.1446702629327774, 0.4351308047771454, -0.02209843508899212, -0.30042460560798645, -0.2259870022535324, -0.07478823512792587, -0.02289995737373829, -0.2158380150794983, -0.5168923139572144, -0.29083219170570374, 0.5940939784049988, -0.32463952898979187, 0.1908336281776...
I am doing some reading, and came across avoiding an internalStore if my application does not need to massage the data before being sent to SQL. What is a data massage? Manipulate, process, alter, recalculate. In short, if you are just moving the data in raw then no need to use internalStore, but if you're doing anythi...
[ 0.29933613538742065, -0.2519144117832184, 0.1820874959230423, 0.10197936743497849, 0.07062128931283951, 0.09427116811275482, 0.01703406125307083, -0.07479272037744522, -0.28009527921676636, -0.43988826870918274, 0.3888407051563263, 0.7626550793647766, 0.0015228072879835963, 0.0845665335655...
If I have the following enum: ``` public enum ReturnValue{ Success = 0, FailReason1 = 1, FailReason2 = 2 //Etc... } ``` Can I avoid casting when I return, like this: ``` public static int main(string[] args){ return (int)ReturnValue.Success; } ``` If not, why isn't an enum value treated as an ...
[ 0.07622610032558441, 0.03570310026407242, 0.07115817070007324, -0.24562682211399078, 0.1005774587392807, -0.04946858435869217, 0.40003320574760437, -0.4033655524253845, -0.05336710438132286, -0.5982099175453186, -0.17585211992263794, 0.495644748210907, -0.08803163468837738, 0.3345172703266...
for storing constant values, consider using a static class: ``` public static class ReturnValue { public const int Success = 0; public const int FailReason1 = 1; public const int FailReason2 = 2; //Etc... } ``` That lets you do this. ``` public static int main(string[] args){ return ReturnValue....
[ 0.21092863380908966, -0.04183158278465271, 0.5108181834220886, -0.18582335114479065, 0.2659059464931488, 0.020226389169692993, 0.3354397118091583, -0.16431665420532227, -0.45686057209968567, -0.3588886559009552, -0.3135041296482086, 0.7450516223907471, -0.4483253061771393, 0.33153116703033...
Monday = 2, Tuesday = 4, Wednesday = 8, Thursday = 16, Friday = 32, Saturday = 64, Weekend = Sunday | Saturday, Weekdays = Monday | Tuesday | Wednesday | Thursday | Friday } ``` This enum can then be consumed by using bitwise math. See the below example for some applications. ``` public s...
[ 0.053455423563718796, -0.1523950695991516, 0.5378408432006836, -0.13352902233600616, 0.2434694766998291, 0.10284706950187683, 0.21060249209403992, -0.02655860036611557, -0.4794062674045563, -0.21454119682312012, -0.19826629757881165, 0.6448253393173218, -0.38792023062705994, 0.385405600070...
== DaysOfWeek.Weekend; } public static bool IsAllWeekdays(DaysOfWeek days) { return (days & DaysOfWeek.Weekdays) == DaysOfWeek.Weekdays; } public static bool HasWeekdays(DaysOfWeek days) { return ((int) (days & DaysOfWeek.Weekdays)) > 0; } public static bool HasWeekend...
[ 0.20208853483200073, 0.06702370196580887, 0.7493537068367004, -0.3534556031227112, 0.36976519227027893, -0.0850817859172821, 0.19096432626247406, -0.08064846694469452, -0.5604944229125977, -0.3231736123561859, -0.41758039593696594, 0.748116135597229, -0.3284616768360138, 0.3951071500778198...
Is there an easy way to build projects created in FlexBuilder via the command line? I'm beginning to work on adding a couple Flex components to the project I have at work. Currently the rest of the project (some java, some C++) is built via an ant script. I'd really like to be able to integrate the builds for the Flex...
[ 0.6344897150993347, -0.153671532869339, -0.17553049325942993, -0.05976647883653641, -0.16380265355110168, 0.045158471912145615, -0.08646480739116669, 0.17549628019332886, -0.23633471131324768, -0.8628590703010559, 0.19640924036502838, 0.704842746257782, -0.1662788838148117, -0.238809823989...
builder's project as its configuration? Or is there a way to modify FlexBuilder's compilation so that I could write a build script for the project and then have it use that (so that I'd only have one way to build and have both ant and FB use that, instead of separate build processes)? While a flex ant task would be pr...
[ 0.6288655400276184, -0.13917237520217896, 0.008884008042514324, -0.0017595515819266438, -0.24162296950817108, 0.030497515574097633, 0.14969521760940552, -0.26903870701789856, -0.25359755754470825, -0.7883812189102173, 0.1383141428232193, 0.6837053894996643, -0.3223475217819214, -0.16831046...
would just have the normal Flex SDK. You can use the -dump-config option in FB to dump the config.xml that FB is using to compile your project, and then use that (using the -load-config option) with your command-line build. I know in regular Eclipse you can build from an ant file, and I'm pretty sure that you can do t...
[ 0.4736124277114868, -0.12797711789608002, -0.11631163209676743, -0.007196094840764999, -0.2486933171749115, -0.16747334599494934, -0.11845419555902481, -0.14002659916877747, 0.020953167229890823, -0.792647123336792, 0.04822343960404396, 0.7495715618133545, -0.24113808572292328, -0.37415653...
of points out why the flex ant tasks are better. (I didn't want to be the guy who says "why do you want to do X?", so I just answered the asked question). Even though their doc is subpar (imo), they're better suited for the task of building your projects. There are a couple of gotchas using the flex ant tasks, but ...
[ 0.5818213820457458, 0.2952931523323059, 0.2162330448627472, 0.3207157254219055, 0.09679197520017624, 0.19235455989837646, 0.16870936751365662, 0.3982316553592682, -0.4746185839176178, -0.7232597470283508, 0.13778680562973022, 0.39913076162338257, 0.17728981375694275, -0.03718840330839157, ...
Is there a succinct way to represent a bounded numeric value in .NET 3.5? By this I mean a value such as a percentage (0 - 100) probability (0 - 1) or stock level (0 or above). I would want a `ArgumentOutOfRangeException` (or equivalent) to be thrown if an out-of-range assignment was attempted. I would also want stat...
[ 0.10182160139083862, -0.16171550750732422, 0.07216722518205643, 0.056952375918626785, -0.16597266495227814, -0.0707128494977951, 0.039603255689144135, -0.15295954048633575, 0.029918543994426727, -0.35052892565727234, 0.04056698456406593, 0.4872468113899231, -0.21079757809638977, -0.1050385...
like RestrictedRange<T> that had a min and max value along with the current value: ``` public class RestrictedRange<T> where T : IComparable { private T _Value; public T MinValue { get; private set; } public T MaxValue { get; private set; } public RestrictedRange(T minValue, T maxValue) ...
[ -0.15122950077056885, -0.8899098038673401, 0.28204190731048584, 0.18640586733818054, 0.22833092510700226, -0.02784082666039467, -0.019616885110735893, 0.003552664304152131, -0.2962089478969574, -0.39308008551597595, -0.3401167690753937, 0.702299177646637, -0.4082894027233124, 0.38458618521...
if (minValue.CompareTo(maxValue) > 0) { throw new ArgumentOutOfRangeException("minValue"); } this.MinValue = minValue; this.MaxValue = maxValue; this.Value = value; } public T Value { get {
[ -0.15583272278308868, -0.4511664807796478, 0.34718212485313416, -0.17262189090251923, 0.19736625254154205, 0.3349938690662384, 0.5113193392753601, -0.15253424644470215, 0.2760864794254303, -0.595307469367981, -0.4679863750934601, 0.9291497468948364, -0.07094234228134155, 0.0953445583581924...
return _Value; } set { if ((0 < MinValue.CompareTo(value)) || (MaxValue.CompareTo(value) < 0)) { throw new ArgumentOutOfRangeException("value"); }
[ -0.34430378675460815, -0.1849614530801773, 0.501794695854187, -0.2911009192466736, 0.27132734656333923, 0.45686960220336914, 0.41097044944763184, -0.43113866448402405, 0.2622145712375641, -0.463951975107193, -0.3105081021785736, 0.8884511590003967, -0.06889711320400238, 0.14355622231960297...
_Value = value; } } public static implicit operator T(RestrictedRange<T> value) { return value.Value; } public override string ToString() { return MinValue + " <= " + Value + " <= " + MaxValue; } } ``` Since there is an implicit conversion to automatically...
[ -0.33195826411247253, -0.5375406742095947, 0.4352280795574188, -0.08725354075431824, 0.38599440455436707, -0.02363901026546955, 0.35800430178642273, -0.33738604187965393, 0.18560141324996948, -0.28403833508491516, -0.4517499804496765, 0.9114038944244385, -0.29688844084739685, 0.11060371249...
the value, this will work: ``` var adultAge = new RestrictedRange<int>(18, 130, 21); adultAge.Value++; int currentAge = adultAge; // = 22 ``` In addition, you can do things like this ``` var stockLevel = new RestrictedRange<int>(0, 1000) var percentage = new RestrictedRange<double>(0.0, 1.0); ```
[ 0.39753636717796326, -0.17847006022930145, 0.579921305179596, -0.08120531588792801, 0.448422908782959, 0.19118450582027435, -0.11948756128549576, -0.37468162178993225, -0.025161487981677055, -0.4488655924797058, 0.1910695731639862, 0.6661614179611206, -0.11035934835672379, 0.06988056004047...
Here's a little `SVN` problem: I create a directory locally: ``` $ svn mkdir output A output ``` I accidentally remove it: ``` rm -rf output ``` Now, how do I recreate it? I tried this: ``` $ svn mkdir output svn: 'output' is already under version control ``` And this: ``` $ svn revert output Reverte...
[ -0.07965093106031418, 0.09588425606489182, 0.44839581847190857, -0.2887376546859741, 0.016634438186883926, -0.14012256264686584, 0.46102383732795715, -0.06949850916862488, -0.3514668047428131, -0.5225574970245361, -0.14692963659763336, 0.6555647850036621, -0.36863330006599426, 0.3943575918...
course. So, somehow, SVN has to be involved in the recreation of that `output` directory. (I'm using SVN 1.4.6.) Remove it officially in SVN: ``` $ svn rm --force output svn: 'output' does not exist ``` Then create it again: ``` $ svn mkdir output A output ``` That output from `svn remove` above is a bi...
[ 0.1974567323923111, 0.12369360774755478, 0.43833884596824646, -0.20429295301437378, -0.021134255453944206, -0.2580578327178955, 0.3259412944316864, -0.07841318845748901, -0.20612920820713043, -0.2724677622318268, -0.2126239389181137, 0.7026127576828003, -0.29419735074043274, 0.282842874526...
A problem I keep running into when writing code that draws images of scientific data is the following: Given some floating point data, fit those data into slots (1-dimensional case) or a grid (2-dimensional case) such that each datum is in the slot or grid entry whose value is closest to the datum's value. It is not ...
[ 0.20503830909729004, 0.17088939249515533, 0.3035503029823303, 0.4722006022930145, 0.08488144725561142, 0.1800793707370758, -0.359144002199173, -0.3183327615261078, 0.03685291111469269, -0.727171778678894, 0.0411839596927166, 0.2947559654712677, -0.039325494319200516, 0.19119597971439362, ...
have a data structure that kept the slots in cache together. What would be nice is something like a tree or a hash table, where you ask the tree for the value that corresponds to a key, but with sloppy comparisons that yield the closest match. Does such a beast exist? (Right now, I just have loops that do lots of co...
[ 0.3653908967971802, -0.05888567864894867, -0.41953495144844055, 0.464802086353302, -0.11969634890556335, -0.012373208068311214, 0.15921002626419067, 0.08753246814012527, -0.319659024477005, -0.65093994140625, 0.10545874387025833, 0.33087220788002014, 0.04555582255125046, -0.045794695615768...
If you enable the "View Right Margin" in your IDE of choice, it is likely that it will default to 80 characters. I tend to change it to 120 for no reason other than it was the standard at a company I was with a few years back, and no other company has told me to do it differently. My question is, are there any studies...
[ 0.40578776597976685, -0.1897750049829483, 0.5193129181861877, -0.11530689150094986, -0.24726343154907227, -0.021203376352787018, -0.05221116170287132, -0.15792246162891388, -0.3613429069519043, -0.6693577170372009, -0.03146539255976677, 1.0025097131729126, 0.20224858820438385, -0.410899490...
way? And, should the width of a line of code be part of your coding standard? Actually, the 80-column thing [long precedes](https://dave.autonoma.ca/blog/2019/06/06/web-of-knowledge/) DOS. It comes from card punches, which were 80-column devices. And to kind of answer the OP's question, one "study" has been going on f...
[ 0.4070214331150055, 0.10673757642507553, 0.4446027874946594, 0.23127807676792145, -0.036906905472278595, 0.16580873727798462, -0.12710510194301605, -0.22684936225414276, -0.3900163769721985, -0.6362988948822021, 0.1179385781288147, 0.30856624245643616, 0.13126032054424286, -0.2401931285858...
...before the pagination chunks have been determined. I know you can do this in multiple statements, but there must be a better way. my results are returned ordered by date and I want to return the pagination chunk that contains a given id. So I could, for example, select the date of the given id and then select a ...
[ 0.38712307810783386, 0.028828678652644157, -0.054809339344501495, 0.17937031388282776, -0.1636129915714264, 0.0364965945482254, -0.12028216570615768, 0.012689989991486073, -0.16945689916610718, -0.26632311940193176, -0.02459372766315937, 0.21916800737380981, -0.06532050669193268, 0.2576618...
ask for X results in which a given id exists if results are ordered by date. The paper that Logan points to is great, but it's a little difficult. (Just ask my students.) It's also a great deal about 'how stream fusion works' and only a fraction 'what stream fusion is and how you can use it'. The problem that stream f...
[ -0.028883174061775208, -0.23702356219291687, -0.030580582097172737, 0.38902145624160767, -0.04190127179026604, 0.048886749893426895, -0.04909851402044296, -0.46247074007987976, 0.1098729595541954, -0.7176307439804077, -0.059241048991680145, 0.4324515163898468, -0.42187702655792236, -0.2473...
3, ...]`, an infinite list of strings `["1", "2", "3", ...]`, and eventually an infinite list of names `["n1", "n2", "n3", ...]`. That's too much allocation. What stream fusion does is translate a definition like `nodenames` into something which uses a recursive function that allocates only what is needed for the resu...
[ -0.05674844980239868, -0.19273492693901062, -0.050802081823349, 0.15735074877738953, 0.007904176600277424, -0.13201771676540375, 0.1131352111697197, -0.22806371748447418, -0.130748450756073, -0.8774865865707397, -0.2856288552284241, 0.39062395691871643, -0.574640691280365, 0.23811121284961...
the Prelude functions which have been rewritten to exploit stream fusion. Apparently this stuff is slated to make it into the next GHC release (6.12) but is not in the current stable version (6.10). If you want to use the library Porges has a nice simple explanation in his answer. If you actually want an explanation o...
[ 0.3873995840549469, -0.12524472177028656, 0.35345810651779175, 0.23127688467502594, 0.03898882493376732, -0.3670406937599182, -0.031886883080005646, 0.3181184232234955, -0.05690331012010574, -0.71351158618927, -0.06395633518695831, 0.5754492282867432, -0.1626366227865219, 0.058175232261419...
I am not sure I am getting the correct definition for what API Usage is. I have a snippet of code that is used for a BulkInsert into SQL from c# application. It said the snippet shows the API usage. How do I translate that? ``` private void WriteToDatabase() { // get your connection string string connString = ...
[ 0.5784518122673035, 0.10507369786500931, 0.4220338761806488, -0.0814438909292221, 0.1569487452507019, -0.1197112500667572, 0.10138420760631561, 0.05255865678191185, -0.16259361803531647, -0.549027681350708, 0.175430566072464, 0.556534469127655, -0.3424147069454193, 0.22810567915439606, -...
// make sure to enable triggers // more on triggers in next post SqlBulkCopy bulkCopy = new SqlBulkCopy ( connection, SqlBulkCopyOptions.TableLock | SqlBulkCopyOptions.FireTriggers |
[ 0.06210162118077278, -0.17345784604549408, 0.3254758417606354, 0.1240893006324768, 0.1803763210773468, -0.13764728605747223, 0.21716828644275665, -0.2616451382637024, -0.49019917845726013, -0.32977455854415894, -0.05538194999098778, 0.33036625385284424, -0.3742595911026001, -0.023668754845...
SqlBulkCopyOptions.UseInternalTransaction, null ); // set the destination table name bulkCopy.DestinationTableName = this.tableName; connection.Open(); // write the data in the "dataTable" bulkCopy.WriteToServer(dataTable); connection.Close(); ...
[ -0.2990380823612213, -0.16433535516262054, 0.6682403087615967, -0.10775760561227798, -0.0035103806294500828, -0.07900538295507431, -0.0883425772190094, -0.03208991140127182, -0.4041382074356079, -0.18530932068824768, -0.20048382878303528, 0.19055737555027008, -0.3307974934577942, 0.3514879...
// reset this.dataTable.Clear(); this.recordCount = 0; } ``` [An application programming interface (API) is a set of routines, data structures, object classes and/or protocols provided by libraries and/or operating system services in order to support the building of applications](http://en.wikipedia.org/wiki/A...
[ 0.5892072319984436, 0.040930263698101044, 0.048478737473487854, 0.20395557582378387, 0.2053217589855194, 0.0583844892680645, 0.16382437944412231, -0.18448501825332642, -0.3037513494491577, -0.5442450642585754, -0.176754429936409, 0.2712537944316864, -0.48508724570274353, 0.1122280061244964...
MS. What you're looking at is just an example of using this code from the perspective of someone on the outside of the library looking in. In other words, you could have written this code yourself, as a consumer of the API. It doesn't detail all the possible ways to use the API, but it gives you a hint.
[ 0.6528753042221069, 0.08068110793828964, -0.15024620294570923, 0.3135932683944702, 0.24583135545253754, -0.06136631220579147, 0.07247272878885269, 0.05596521124243736, -0.27454081177711487, -0.523759663105011, 0.24198895692825317, 0.325263112783432, -0.0968676283955574, 0.02852720022201538...
How can I make requests to other server(s) (i.e. get a page from any desired server) with a JavaScript within the user's browser? There are limitations in place to prevent this for methods like XMLHttpRequest, are there ways to bypass them or other methods? That is a general question, specifically I want to check a se...
[ 0.5661356449127197, 0.13805733621120453, 0.23228426277637482, 0.0704837292432785, -0.19343025982379913, -0.4283583164215088, 0.30135688185691833, -0.23790299892425537, -0.15821640193462372, -0.8130305409431458, -0.038834765553474426, 0.13119977712631226, -0.19652263820171356, 0.11036828905...
and its GM\_xmlhttpRequest.) You should check out [jQuery](http://www.jquery.com). It has a rich base of [AJAX functionality](http://docs.jquery.com/Ajax) that can give you the power to do all of this. You can load in an external page, and parse it's HTML content with intuitive [CSS-like selectors](http://docs.jquery.c...
[ -0.018380356952548027, -0.08674462139606476, 0.5917462706565857, 0.13629940152168274, -0.23261387646198273, -0.2523024082183838, -0.19501610100269318, -0.14447975158691406, -0.21524566411972046, -0.6140228509902954, 0.031565822660923004, 0.4443318843841553, -0.0484735444188118, 0.006217407...
gather the data, and jQuery will read the data from the local PHP script. ``` $.get("middleman.php", {"site":"http://www.google.com"}, function(results){ alert(results); // middleman gives Google's HTML to jQuery }); ``` Giving *middleman.php* something along the lines of ``` <?php // Do not use as-is, this is...
[ 0.10882876813411713, -0.07154959440231323, 0.685234546661377, 0.17816264927387238, 0.00983808096498251, -0.17592744529247284, -0.14843805134296417, -0.2630346417427063, -0.11227267235517502, -0.5592277646064758, -0.43309393525123596, 0.2577752470970154, -0.3093891143798828, 0.0041929329745...
I am running the following script: ``` #!/bin/ksh ./clear_old ./rooms_xls.pl 2/23/09 cd doors ./doors_xls.pl 2/23/09 ``` How can I get the date to be today's date based upon the system/server time? `$(date)` works
[ 0.3235323131084442, 0.4266377091407776, 0.8369982838630676, -0.28561869263648987, 0.366012841463089, -0.3480273187160492, 0.3681766390800476, -0.002513530431315303, 0.009174077771604061, -0.7649294137954712, -0.17612415552139282, 0.2147994041442871, 0.0937451496720314, 0.40656933188438416,...
Is there a way to tell Linux that it shouldn't swap out a particular processes' memory to disk? Its a Java app, so ideally I'm hoping for a way to do this from the command line. I'm aware that you can set the global swappiness to 0, but is this wise? You can do this via the [mlockall(2)](http://man7.org/linux/man-pag...
[ 0.09793354570865631, -0.18308009207248688, 0.2029222697019577, -0.06097622588276863, 0.19240127503871918, -0.08834285289049149, 0.041170883923769, 0.012031140737235546, -0.41595563292503357, -0.5260423421859741, -0.10723350942134857, 0.8698142170906067, -0.24255059659481049, -0.03224503621...
know of a command-line method for doing this, but you could write a trivial program to call `fork`, call `mlockall`, then `exec`. You might also look to see if one of the access pattern notifications in [madvise(2)](http://man7.org/linux/man-pages/man2/madvise.2.html) meets your needs. Advising the VM subsystem about ...
[ 0.022576434537768364, -0.24679230153560638, 0.28372952342033386, -0.0776221975684166, -0.23922376334667206, -0.17892828583717346, 0.38589727878570557, -0.2038828581571579, -0.27671828866004944, -0.6230530738830566, -0.1307239979505539, 0.5998180508613586, -0.39523157477378845, 0.1245387867...
I have taken a dump from my mysql database on my own server (version 5.0.67) and I have tried to import it to my other database (version 5.0.54). However, I get the error: ``` ERROR 1193 (00000) at line 23: Unknown system variable 'character_set_client' ``` I think it refers to this part: ``` SET @saved_cs_client ...
[ 0.04383006691932678, 0.37581589818000793, 0.3977481722831726, -0.2968882918357849, -0.12211797386407852, 0.1001470610499382, 0.46760687232017517, 0.20194074511528015, -0.11371471732854843, -0.7631078362464905, -0.0020933698397129774, 0.4310096204280853, -0.4422459006309509, 0.1122667193412...
use near 'DEFAULT CHARSET=latin1 COMMENT='InnoDB free: 10240 kB; (`member ``` Any help would be greatly appreciated. UPDATE ------ I used the compatibility option like so but when importing I still get the same error!? WTF ``` mysqldump -u root -p dbname --compatible=mysql40 > mrdb.sql ``` If you're using `mysql...
[ -0.2386128008365631, 0.06569817662239075, 0.51528000831604, -0.19405201077461243, 0.06453787535429001, -0.08999203145503998, 0.3551099896430969, -0.20050853490829468, 0.4417262673377991, -0.7482006549835205, -0.1269218474626541, 0.8499990701675415, -0.27665016055107117, 0.18755841255187988...
I'm developing a small game using OCaml SDL for that. I didn't find any documentation out there about it, so I have three questions: 1. I want to use OCaml SDL under windows, so anyone can help how can I compile it, (I already gave up and installed linux on a virtual pc) 2. Is there any documentation on how to use OCa...
[ 0.27851927280426025, 0.19117814302444458, 0.11316290497779846, 0.23715287446975708, 0.05277140066027641, -0.21372611820697784, -0.1644873172044754, 0.23820072412490845, 0.017376109957695007, -0.7712447643280029, 0.20381169021129608, 0.6243473291397095, -0.31737327575683594, -0.191003233194...
window? as a general case I'm using an array of 800 \* 600 cells. > 1 - I want to use ocaml sdl under windows, so anyone can help how can I > compile it, (I already gave up and > installed linux on a virtual pc) Can you get the SDL working under windows and compile C programs with it? If so you should then get up on...
[ 0.3446866571903229, 0.22630271315574646, 0.5259829163551331, 0.023999197408556938, -0.1759490966796875, -0.02802499197423458, -0.010772045701742172, -0.028366241604089737, -0.2690662443637848, -0.6582821607589722, -0.03730011358857155, 0.724493145942688, -0.21654435992240906, -0.2436895668...
this isn't the best, since there really isn't a single package in ocaml that has decent documentation --I'm allowed to exaggerate, aren't I? To get around this, you'll need to explore what functions you need in the SDL then find the corresponding one in MLI files in the source directory of the ocamlSDL. It shouldn't b...
[ 0.2698841392993927, -0.1047925055027008, 0.13011042773723602, -0.015506822615861893, 0.11488927900791168, -0.5563335418701172, -0.08928284794092178, 0.0061775618232786655, -0.32113680243492126, -0.48701533675193787, -0.1873222291469574, 0.5887063145637512, -0.23232269287109375, -0.15357072...
go about your business pretending you are just calling the SDL directly --for the most part it should be that easy. > 3 - I am using a 800x600 window, and i wanna represent some graphics > inside, for example that pixel > represents the background, the other > represents a rock and so on, what is > the best repres...
[ 0.5716156959533691, 0.18537136912345886, 0.4520644545555115, 0.08123631775379181, -0.13876159489154816, -0.24168294668197632, 0.1934141367673874, -0.1647142916917801, -0.06951417773962021, -0.5525867342948914, -0.11985760927200317, 0.7289590835571289, -0.35544052720069885, -0.3242056667804...
them for scope of variables. Plus any hash collisions result in a list of elements, which could be nice for multiple layers of data. Other then that, you might want to use sprites. But I think you should get the basics going, then implement sprites later --sorry for being presumptuous, it's my method of implementation...
[ 0.20440100133419037, 0.04679703339934349, 0.5695917010307312, 0.20493105053901672, -0.33120933175086975, -0.30985957384109497, 0.6639853119850159, 0.2584395110607147, -0.32554420828819275, -0.5706648826599121, -0.15338021516799927, 0.41681143641471863, -0.2883576452732086, -0.2142455726861...
am wrong. My recommendation is to use the [Graphics](http://caml.inria.fr/pub/docs/manual-ocaml/libref/Graphics.html) module that is *machine independent* that is built into ocaml! It has all the functionality you will need to do what you need to do for this simple game. The module is pretty straight forward and you sh...
[ 0.44708895683288574, 0.14118610322475433, 0.34497079253196716, 0.16497120261192322, 0.012809522449970245, -0.5135459899902344, -0.07274530082941055, 0.26861903071403503, 0.04170282557606697, -0.6273876428604126, 0.27500081062316895, 0.8825398087501526, 0.07931548357009888, -0.0554296299815...