text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I am a totally blind programmer who would like to learn Python. Unfortunately the fact that code blocks are represented with different levels of indentation is a major stumbling block. I was wondering if there were any tools available that would allow me to write code using braces or some other code block delimiter and...
[ 0.37585487961769104, 0.35800132155418396, 0.06892308592796326, -0.02646474540233612, -0.12976127862930298, 0.29410746693611145, 0.3100767135620117, 0.1812070906162262, -0.22244474291801453, -0.675340473651886, 0.17191652953624725, 0.2238982766866684, -0.24451440572738647, 0.162757933139801...
like you'd have to [grab it from svn.python.org](https://svn.python.org/projects/python/trunk/Tools/scripts/pindent.py) if you are running on Linux or OSX. It adds comments when blocks are closed, or can properly indent code if comments are put in. Here's an example of the code outputted by pindent with the command: ...
[ 0.6013250946998596, -0.02165595442056656, 0.5594034790992737, -0.09622916579246521, -0.016675401479005814, 0.007399624213576317, 0.2145254760980606, 0.1755489856004715, -0.3808441460132599, -0.49780023097991943, 0.0002706499071791768, 0.5197941064834595, -0.634398341178894, 0.0475089401006...
if else: print 'oops!' # end if # end def foobar ``` Where the original `myfile.py` was: ``` def foobar(a, b): if a == b: a = a+1 elif a < b: b = b-1 if b > a: a = a-1 else: print 'oops!' ``` You can also use `pindent.py -r` to insert the correct indentation based...
[ 0.01646258309483528, 0.32552385330200195, 0.43721818923950195, -0.3492831885814667, 0.11630430817604065, 0.5015689730644226, 0.0187904741615057, -0.11203756928443909, -0.26533323526382446, -0.431611031293869, -0.3367401361465454, 0.26368626952171326, -0.3150773346424103, -0.255130052566528...
details), this should allow you to code in python without worrying about indentation. For example, running `pindent.py -r myfile.py` will convert the following code in `myfile.py` into the same properly indented (and also commented) code as produced by the `pindent.py -c` example above: ``` def foobar(a, b): if a == ...
[ 0.264795184135437, 0.3076421320438385, 0.28583958745002747, -0.11625766009092331, 0.04604011029005051, 0.20732936263084412, 0.15754446387290955, -0.08946332335472107, -0.1502731591463089, -0.5934882164001465, -0.20315717160701752, 0.7714833617210388, -0.3434610664844513, -0.096653424203395...
Does beautiful soup work with iron python? If so with which version of iron python? How easy is it to distribute a windows desktop app on .net 2.0 using iron python (mostly c# calling some python code for parsing html)? I was asking myself this same question and after struggling to follow advice here and elsewhere to g...
[ 0.17611445486545563, -0.034015510231256485, 0.06603072583675385, -0.23612095415592194, -0.42288824915885925, 0.1140378937125206, 0.22786292433738708, 0.15824124217033386, -0.036149561405181885, -0.7084544897079468, 0.3379199206829071, 0.1434340476989746, -0.4127865433692932, 0.170687675476...
found the [HTML Agility Pack](http://www.codeplex.com/htmlagilitypack) and if anything I think I've actually gained some maintainability over BeautifulSoup. It takes clean or crufty HTML and produces a elegant XML DOM from it that can be queried via XPath. With a couple lines of code you can even get back a raw XDocume...
[ 0.24669873714447021, -0.08470869809389114, 0.509274423122406, 0.09059131145477295, -0.38352295756340027, -0.3228302001953125, 0.3435802459716797, -0.439613938331604, -0.15677914023399353, -0.5278111696243286, 0.14188186824321747, 0.2666738033294678, 0.020219173282384872, -0.199129432439804...
GovParsingTest { class Program { static void Main(string[] args) { HtmlWeb hw = new HtmlWeb(); string url = @"http://www.house.gov/house/House_Calendar.shtml"; HtmlDocument doc = hw.Load(url); HtmlNode docNode = doc.DocumentNode;
[ 0.08323952555656433, -0.2574765980243683, 0.8716927170753479, -0.2065097540616989, -0.13092008233070374, -0.09737709909677505, 0.4738263785839081, -0.00899475533515215, -0.3959655463695526, -0.5373613238334656, -0.35347220301628113, 0.4217366576194763, -0.6564657688140869, 0.40449157357215...
HtmlNode div = docNode.SelectSingleNode("//div[@id='primary']"); HtmlNodeCollection tableRows = div.SelectNodes(".//tr"); foreach (HtmlNode row in tableRows) { HtmlNodeCollection cells = row.SelectNodes(".//td"); HtmlNode dateNode = cells[0];
[ -0.20232293009757996, -0.3796086013317108, 0.6810736060142517, -0.241621732711792, 0.04159090667963028, 0.09865593910217285, 0.10337724536657333, -0.40162017941474915, -0.2617289423942566, -0.47990551590919495, -0.3290098309516907, 0.18818382918834686, -0.1608322411775589, 0.26058787107467...
HtmlNode eventNode = cells[1]; while (eventNode.HasChildNodes) { eventNode = eventNode.FirstChild; } Console.WriteLine(dateNode.InnerText);
[ -0.3582560420036316, -0.32857853174209595, 0.42207643389701843, -0.3688720464706421, 0.09842138737440109, -0.09968908876180649, 0.38022032380104065, -0.03420727327466011, -0.05949864163994789, -0.8009390830993652, -0.20962582528591156, 0.19711332023143768, -0.1707950383424759, 0.0303087420...
Console.WriteLine(eventNode.InnerText); Console.WriteLine(); } //Console.WriteLine(div.InnerHtml); Console.ReadKey(); } } } ```
[ -0.5216624140739441, -0.0025148021522909403, 0.4218430519104004, -0.27572131156921387, 0.4089207947254181, -0.1905265748500824, 0.23838157951831818, 0.08798736333847046, 0.04839093238115311, -0.8301501870155334, -0.5176282525062561, 0.6194772124290466, -0.2549181878566742, 0.10969875752925...
I have an Events list in sharepoint and need to disallow users from having the ability to create meeting workspaces in the new event form. Shy of customizing the new event form (which breaks attachment support), how can this be done? By default, in order for users to create a meeting workspace, they will need to be an ...
[ 0.45445626974105835, 0.28349921107292175, 0.4047243297100067, 0.10641147941350937, 0.2686476707458496, -0.5417760610580444, 0.15342983603477478, -0.0536123625934124, -0.20163649320602417, -0.5534475445747375, 0.005552534479647875, 0.17130844295024872, -0.17230959236621857, 0.52494329214096...
set. I'm not aware of a way to restrict access to a specific site definition but still allow users to create a different one.
[ 0.8819447755813599, -0.28393974900245667, 0.17459401488304138, 0.1370505839586258, 0.08434861898422241, -0.5000758171081543, -0.21180588006973267, 0.1219581812620163, -0.15219968557357788, -0.6951355934143066, -0.023929622024297714, 0.27507176995277405, -0.4046405553817749, 0.1929891407489...
I'm using GDI+ in C++. (This issue might exist in C# too). I notice that whenever I call Graphics::MeasureString() or Graphics::DrawString(), the string is padded with blank space on the left and right. For example, if I am using a Courier font, (not italic!) and I measure "P" I get 90, but "PP" gives me 150. I woul...
[ 0.10162463039159775, 0.0753103718161583, 0.5738720297813416, -0.26811277866363525, -0.2585161030292511, 0.39540955424308777, 0.07197634875774384, -0.6168310046195984, -0.22872133553028107, -0.5948172211647034, 0.07141285389661789, 0.4873879849910736, -0.13455826044082642, -0.31484231352806...
Bounds2.Width; ``` It's by design, that method doesn't use the actual glyphs to measure the width and so adds a little padding in the case of overhangs. [MSDN](http://msdn.microsoft.com/en-us/library/6xe5hazb.aspx) suggests using a different method if you need more accuracy: > To obtain metrics suitable for adjacent...
[ -0.09558703005313873, -0.1513877511024475, 0.3766006827354431, 0.2557150423526764, -0.2758842706680298, -0.0984702855348587, 0.44091731309890747, -0.8035275936126709, -0.25439539551734924, -0.5658180713653564, -0.05574662610888481, 0.5242218375205994, -0.25928354263305664, -0.1089739352464...
Usecase: The user makes font customizations to an object on the design surface, that I need to load/save to my datastore. I.e. settings like Bold, Italics, Size, Font Name need to persisted. Is there some easy (and reliable) mechanism to convert/read back from a string representation of the font object (in which case ...
[ 0.20100176334381104, 0.07792031019926071, 0.7373403906822205, 0.026223281398415565, 0.0015293187461793423, 0.35059377551078796, 0.06608407944440842, -0.5264034867286682, -0.1305115967988968, -0.6754949688911438, -0.2110709249973297, 0.5638209581375122, -0.447195827960968, 0.095369495451450...
create Font class wrapper which will store some subset of Font properties. *Note(Gishu) - Never access a type converter directly. Instead, access the appropriate converter by using TypeDescriptor. Very important :)*
[ 0.2444695383310318, 0.007009367924183607, 0.06029286980628967, 0.03684056177735329, -0.42519405484199524, -0.3590470552444458, 0.2080836445093155, 0.15080270171165466, 0.21704153716564178, -0.6978737115859985, -0.16423989832401276, 0.401285856962204, -0.1749706119298935, -0.027580339461565...
I'm in the process of moving one of our projects from VS6 to VS2008 and I've hit the following compile error with mshtml.h: ``` 1>c:\program files\microsoft sdks\windows\v6.0a\include\mshtml.h(5272) : error C2143: syntax error : missing '}' before 'constant' 1>c:\program files\microsoft sdks\windows\v6.0a\include\msht...
[ -0.10597655177116394, 0.40510955452919006, 0.2515956163406372, -0.10010023415088654, 0.08081872761249542, 0.10151870548725128, 0.4598960280418396, -0.34517231583595276, -0.15709924697875977, -0.6273455023765564, -0.11041072010993958, 0.5241078734397888, -0.29825419187545776, 0.334905922412...
this part of the mshtml.h code, pointing at the "True = 1" line: ``` EXTERN_C const GUID CLSID_CDocument; EXTERN_C const GUID CLSID_CScriptlet; typedef enum _BoolValue { True = 1, False = 0, BoolValue_Max = 2147483647L } BoolValue; EXTERN_C const GUID CLSID_CPluginSite; ``` It looks like...
[ 0.23189666867256165, 0.07381801307201385, 0.5715457201004028, 0.05633805692195892, 0.2127225548028946, -0.11851580440998077, 0.6171706318855286, 0.0530744269490242, -0.04531301558017731, -0.3850219249725342, -0.09042323380708694, 0.7883622646331787, -0.3802478015422821, 0.1962161511182785,...
.cpp and generating a .i file. The setting is in the project property pages. EDIT: Also, you can get the answer from that other expert site by scrolling to the bottom of the page. They have to do that or Google will take them out of their indexes.
[ 0.3788479268550873, 0.014231668785214424, 0.49974581599235535, 0.497341126203537, 0.27106377482414246, -0.32908499240875244, -0.0918429046869278, -0.1028599962592125, -0.23937995731830597, -0.4820345342159271, -0.4436045289039612, 0.18664546310901642, 0.0937003642320633, 0.1753987669944763...
Does anyone know how I can get rid of the following assembler warning? Code is x86, 32 bit: ``` int test (int x) { int y; // do a bit-rotate by 8 on the lower word. leave upper word intact. asm ("rorw $8, %0\n\t": "=q"(y) :"0"(x)); return y; } ``` If I compile it I get the following (very valid) warning: `...
[ 0.24202191829681396, 0.6251804232597351, 0.16280141472816467, -0.14154383540153503, 0.14830900728702545, 0.03428136184811592, 0.6459609866142273, -0.010813512839376926, -0.03735729679465294, -0.39837098121643066, -0.2213171124458313, 0.633245050907135, -0.28692594170570374, -0.030493501573...
be nice to know as well. I've already chosen the "q" modifier, so the compiler is forced to use EAX, EBX, ECX or EDX. I've made sure the compiler has to pick a register that has sub-registers. I know that I can force the asm-code to use a specific register (and its sub-registers), but I want to leave the register-al...
[ 0.2685633897781372, 0.08198712021112442, 0.19269074499607086, -0.1801348179578781, 0.04326663538813591, 0.151896670460701, 0.40676459670066833, -0.19045373797416687, 0.1034107357263565, -0.5316567420959473, -0.35615986585617065, 0.5051669478416443, -0.24378907680511475, -0.0372355617582798...
y; } ``` Edit: In response to the OP, yes, you can do the following too: ``` int test(int x) { int y; asm ("xchg %b0, %h0" : "=Q" (y) : "0" (x)); return y; } ``` For x86 it's documented in the [x86 Operand Modifiers section](https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html#x86-Operand-Modifiers) of...
[ 0.15181368589401245, 0.23773130774497986, 0.26619425415992737, -0.2757696807384491, 0.03731783106923103, -0.20880909264087677, 0.18750594556331635, -0.27508601546287537, -0.36348167061805725, -0.1665034145116806, -0.32894763350486755, 0.5856643319129944, -0.43981844186782837, 0.21818624436...
operand?](https://stackoverflow.com/questions/34459803/in-gnu-c-inline-asm-what-are-the-size-override-modifiers-for-xmm-ymm-zmm-for-a) for vector registers.)
[ -0.228544220328331, -0.13184359669685364, 0.4410565197467804, 0.08902692049741745, 0.06328693777322769, 0.1979101151227951, -0.06274140626192093, -0.38254573941230774, -0.4656689763069153, 0.027812469750642776, -0.14669543504714966, 0.6967253088951111, -0.48757311701774597, 0.0749552547931...
I want to use the macports version of python instead of the one that comes with Leopard. I have both installed: ``` $ which python /usr/bin/python $ which python2.5 /opt/local/bin/python2.5 ``` I also added the following line to my `.profile`: ``` export PATH=/opt/local/bin:/opt/local/sbin:$PATH ```
[ 0.22826559841632843, 0.12459757924079895, 0.3405691683292389, -0.374366819858551, 0.03369113430380821, -0.10803579539060593, 0.52871173620224, 0.009276107884943485, -0.18108446896076202, -0.8660619854927063, -0.06388961523771286, 0.8092847466468811, -0.512141227722168, -0.3414599597454071,...
I recently installed MySQL 5 on Windows 2003 and tried configuring an instance. Everything worked fine until I got to "Applying Security settings", at which point it gave me the above error (`Can't connect to MySQL server on 'localhost' (10061)`). I do have a port 3306 exception in my firewall for 'MySQL Server'. You'...
[ -0.2740134000778198, 0.23210793733596802, 0.2832145392894745, 0.031855758279561996, -0.21802444756031036, -0.20092616975307465, 0.5839775204658508, 0.23328529298305511, -0.1783062368631363, -0.7622578144073486, 0.01700892485678196, 0.6833786964416504, -0.14782068133354187, 0.47038385272026...
the user you have defined to create your instance has full privileges, else the user cannot grant privileges. Also, make sure the mysql service is started. Make sure you don't have a third party firewall or Internet security service turned on. Beyond that, there's several pages of the MySQL forum devoted to this: <h...
[ 0.2893332242965698, 0.2325727939605713, 0.30454951524734497, 0.1827605813741684, -0.0880771279335022, -0.2308841049671173, 0.12350225448608398, 0.3825729191303253, -0.3160071074962616, -0.9012367129325867, 0.03933241218328476, 0.41558903455734253, -0.11570174247026443, 0.19338805973529816,...
It seems that anyone can snoop on incoming/outgoing .NET web service SOAP messages just by dropping in a simple SoapExtension into the bin folder and then plumbing it in using: ``` <soapExtensionTypes> <add type="MyLoggingSoapExtension, SoapLoggingTools" priority="0" group="High" /> <soapExtensionTypes> ``` Is the...
[ 0.4537501335144043, -0.04481824114918709, 0.4133679270744324, 0.08376744389533997, -0.033470362424850464, -0.19993029534816742, 0.3399284780025482, -0.1883128136396408, -0.31854066252708435, -0.47414684295654297, 0.013397028669714928, 0.3128090798854828, -0.17569990456104279, 0.02845303155...
of pain. There are SSL certs on the site running the web service but I was kinda hoping that I could discourage the client from tinkering with soap extensions as they have developers who have some ability to 'play'. I am not sure what you mean by extensions and bin folders (I would guess you are using .NET), so I can't...
[ 0.584399938583374, 0.18522560596466064, 0.1975906491279602, 0.02610141783952713, -0.3953377306461334, -0.0059172241017222404, 0.23582559823989868, -0.06492955982685089, -0.17364998161792755, -0.5967481732368469, 0.06176988407969475, 0.6930732727050781, -0.2908567786216736, 0.22236795723438...
for a technology to avoid snooping by preventing code from reading the SOAP**. The proper way to protect yourself is to use "***message-level security***". (This is in contrast to *transport-level security*, such as SSL, which does not protect from intermediaries). **In other words, encrypt your own messages before se...
[ 0.5567276477813721, -0.015330173075199127, 0.2496355175971985, 0.10296643525362015, -0.10591349005699158, -0.451629638671875, 0.3498099148273468, -0.16332083940505981, -0.38771969079971313, -0.7652541399002075, -0.3088351786136627, 0.49307894706726074, -0.07778659462928772, 0.0580622851848...
I have a cross platform program that runs on Windows, Linux and Macintosh. My windows version has an Icon but I don't know how to make have one for my Linux build. Is there a standard format for KDE, Gnome etc. or will I have to do something special for each one? My app is in c++ and distributed as source so the end u...
[ 0.4029882848262787, 0.21284352242946625, 0.24588234722614288, 0.0768127366900444, -0.14900872111320496, 0.12338150292634964, 0.1770981401205063, 0.3188634514808655, -0.1696999967098236, -0.9099419713020325, 0.17920483648777008, 0.6010787487030029, -0.2797924280166626, 0.24737507104873657, ...
that defines how it will be launched. The specification can be found [here](http://standards.freedesktop.org/desktop-entry-spec/latest/index.html). If you have an installer included with your app, you would probably want to have it generate this desktop file and put it in the right places to make menu entries and whatn...
[ 0.5678811073303223, -0.12404482811689377, 0.6181109547615051, 0.07105089724063873, 0.11387602984905243, -0.49546530842781067, -0.36051857471466064, 0.04362296685576439, -0.18471002578735352, -0.6332029104232788, -0.3037565052509308, 0.3451708257198334, 0.2034878432750702, -0.22718055546283...
I code C++ using MS Dev Studio and I work from home two days per week. I use CVS to keep my sources synchronized between the two computers but there are difference between the environments the machines are in. Can anyone suggest a way I can conditionally modify constants in my code depending on whether I am compiling ...
[ 0.9419523477554321, 0.3752730190753937, 0.11318857967853546, -0.061699967831373215, -0.04304370656609535, -0.12088801711797714, 0.3545120060443878, -0.3359124958515167, 0.15153710544109344, -0.7550607323646545, -0.02843884564936161, 0.3531542122364044, -0.24176473915576935, 0.0682127699255...
define TEST_SERVER "212.45.68.43" #endif ``` *NB: This is for development and debugging purposes of course, I would never release software with hard coded constants like this.* On your home and work machines, set an environment variable `LOCATION` that is either "1" for home or "2" for work. Then in the preprocessor...
[ 0.508978009223938, 0.07032070308923721, 0.12397748976945877, -0.019564678892493248, 0.3378736078739166, 0.10843531042337418, 0.20942416787147522, -0.24163594841957092, 0.07081334292888641, -0.8935618996620178, -0.09939409792423248, 0.3706244230270386, -0.28932327032089233, 0.23655892908573...
How do you extract an RT\_RCDATA section from a Win32 executable (preferably in C#)? The only way I know how to do this currently is opening up the EXE in Visual Studio. I'd love to be able to do this entirely in C# if possible. Thanks! P/Invoke LoadResource will be your safest bet. Otherwise you'll have to write y...
[ 0.2193872034549713, 0.015656549483537674, 0.2870780825614929, 0.07757456600666046, 0.07487329095602036, 0.1020834743976593, 0.2899496853351593, -0.1574561893939972, -0.08317822962999344, -0.8524843454360962, -0.32677221298217773, 0.6636676788330078, -0.03911939635872841, -0.295523703098297...
available but not really being developed. I've also used IDA Pro for stuff like this. A quick IDA plugin would do this easily.
[ 0.5172420144081116, 0.042156241834163666, -0.16319462656974792, 0.40533894300460815, -0.000954593881033361, 0.085091732442379, -0.17649197578430176, 0.4078242778778076, 0.21846753358840942, -0.6101176142692566, 0.36319592595100403, 0.5952920317649841, 0.1875476837158203, -0.071306720376014...
Why does the `sizeof` operator return a size larger for a structure than the total sizes of the structure's members? This is because of padding added to satisfy alignment constraints. [Data structure alignment](http://en.wikipedia.org/wiki/Data_structure_alignment) impacts both performance and correctness of programs: ...
[ -0.18547311425209045, 0.1153852641582489, 0.008090588264167309, 0.015195189975202084, 0.13275738060474396, 0.1327025145292282, 0.26806578040122986, -0.3064984083175659, -0.48017701506614685, -0.6192567944526672, -0.23268617689609528, 0.5509000420570374, -0.3648219108581543, 0.1370617598295...
bit modes): ``` struct X { short s; /* 2 bytes */ /* 2 padding bytes */ int i; /* 4 bytes */ char c; /* 1 byte */ /* 3 padding bytes */ }; struct Y { int i; /* 4 bytes */ char c; /* 1 byte */
[ 0.011352374218404293, -0.4104161858558655, 0.522537350654602, -0.12970095872879028, -0.14572282135486603, 0.2831563353538513, 0.16842098534107208, -0.4369348883628845, -0.1265730857849121, -0.49591192603111267, -0.4792128801345825, 0.6577763557434082, -0.254173219203949, -0.042280595749616...
/* 1 padding byte */ short s; /* 2 bytes */ }; struct Z { int i; /* 4 bytes */ short s; /* 2 bytes */ char c; /* 1 byte */ /* 1 padding byte */ }; const int sizeX = sizeof(struct X); /* = 12 */ const int sizeY = sizeof(struct Y); /* = 8 */ const int sizeZ = sizeof(struct Z); /* = 8 */ ...
[ -0.21976304054260254, 0.06380481272935867, 0.2686857581138611, -0.22927072644233704, -0.19124101102352142, 0.24227868020534515, 0.08117908239364624, -0.6012627482414246, -0.4111110270023346, -0.620336651802063, -0.4138718843460083, 0.2754260003566742, -0.2513018548488617, 0.016091495752334...
alignment (sorting by size suffices for that in basic types) (like structure `Z` in the example above). IMPORTANT NOTE: Both the C and C++ standards state that structure alignment is implementation-defined. Therefore each compiler may choose to align data differently, resulting in different and incompatible data layou...
[ -0.04656299203634262, 0.2953002154827118, 0.027961043640971184, 0.023709265515208244, -0.10332578420639038, 0.029175851494073868, 0.17808033525943756, -0.4812837839126587, -0.1118338480591774, -0.6493931412696838, -0.08063671737909317, 0.46747568249702454, -0.5607191324234009, 0.0188699122...
I wrote a Java program to add and retrieve data from an MS Access. At present it goes sequentially through ~200K insert queries in ~3 minutes, which I think is slow. I plan to rewrite it using threads with 3-4 threads handling different parts of the hundred thousands records. I have a compound question: * Will this he...
[ 0.037163447588682175, 0.15851767361164093, 0.3055976331233978, 0.09175334870815277, 0.05653630942106247, 0.24353231489658356, 0.34640949964523315, -0.2612477242946625, -0.45244860649108887, -0.7674530744552612, 0.33770573139190674, 0.4058678150177002, -0.05916961655020714, 0.30866432189941...
in addition to using Java's preparedStatement) First, don't use Access. Move your data anywhere else -- SQL/Server -- MySQL -- anything. The DB engine inside access (called Jet) is pitifully slow. It's not a real database; it's for personal projects that involve small amounts of data. It doesn't scale at all. Second, ...
[ 0.12873835861682892, 0.09598487615585327, 0.04771557077765465, 0.511997640132904, -0.21872535347938538, -0.08686337620019913, 0.2612929940223694, 0.07983283698558807, -0.19249476492404938, -0.7765598297119141, 0.11027386039495468, 0.36894986033439636, -0.19358764588832855, 0.42179816961288...
process-wide resource, shared by all your threads. If you have a single OS-level I/O resource that's shared across all threads, you won't see much improvement. In this case, the ODBC connection is one bottleneck. And MS-Access is the other.
[ -0.11227717995643616, 0.07582840323448181, 0.3007335960865021, 0.2628112733364105, 0.2539249658584595, -0.01870381087064743, -0.08342830836772919, 0.17933359742164612, -0.6498578190803528, -0.8419608473777771, -0.011195763014256954, 0.19436345994472504, -0.1786320060491562, 0.6335052251815...
I'm taking a look at how the model system in django works and I noticed something that I don't understand. I know that you create an empty `__init__.py` file to specify that the current directory is a package. And that you can set some variable in `__init__.py` so that import \* works properly. But django adds a bunc...
[ 0.32940876483917236, 0.2161225825548172, 0.04312969744205475, -0.08551889657974243, -0.010519253090023994, -0.3464515507221222, -0.095255546271801, 0.024451177567243576, -0.2933179438114166, -0.31781527400016785, 0.09892892092466354, 0.6457792520523071, -0.5447843670845032, 0.1603234708309...
that contains it. Example: `./dir/__init__.py`: ``` import something ``` `./test.py`: ``` import dir # can now use dir.something ``` EDIT: forgot to mention, the code in `__init__.py` runs the first time you import any module from that directory. So it's normally a good place to put any package-level initialisa...
[ 0.18231768906116486, -0.02240641601383686, 0.36999258399009705, -0.20680835843086243, 0.20710881054401398, -0.4173935353755951, -0.13244856894016266, -0.18406115472316742, -0.13311459124088287, -0.5054684281349182, -0.30289071798324585, 0.6378620266914368, -0.3243642747402191, 0.2692160010...
or classes, are automatically available in the package namespace whenever you import the package or a module in the package.
[ 0.3027096390724182, -0.1448567509651184, -0.17765532433986664, 0.19580183923244476, 0.24113082885742188, -0.1892256885766983, -0.02638496272265911, 0.17619647085666656, -0.08166971057653427, -0.6029447913169861, -0.7222115397453308, 0.4712056815624237, -0.13227619230747223, 0.1162833794951...
What tools allows me keep track of tags when doing web development? For example, I would like to be able to quickly find whether I missed closing a div tag. At the moment I am using notepad++ to write html. It highlights starting and ending tags, but it can take me time to review almost all tags to find where I went w...
[ 0.3955656886100769, 0.011940021067857742, 0.5637515187263489, 0.05026478320360184, 0.03932344168424606, -0.5175948739051819, 0.04281553626060486, -0.29365554451942444, -0.34735533595085144, -0.6643889546394348, 0.1462273746728897, 0.6339870095252991, -0.023290613666176796, -0.0519629754126...
I have a huge database with some 100 tables and some 250 stored procedures. I want to know the list of tables affected by a subset of stored procedures. For example, I have a list of 50 stored procedures, out of 250, and I want to know the list of tables that will be affected by these 50 stored procedures. Is there any...
[ 0.1845940798521042, 0.16681288182735443, 0.12217570841312408, 0.16988855600357056, 0.10703554004430771, 0.018326029181480408, -0.09128984063863754, -0.05079450458288193, -0.27663716673851013, -0.766778290271759, 0.3092382252216339, 0.39704856276512146, -0.2979917824268341, -0.1017836406826...
Server query: ``` SELECT [NAME] FROM sysobjects WHERE xType = 'U' AND --specifies a user table object id in ( SELECT sd.depid FROM sysobjects so, sysdepends sd WHERE
[ -0.37956997752189636, -0.22402341663837433, 0.2787731885910034, 0.2129717767238617, -0.03920359909534454, 0.13446922600269318, 0.14248593151569366, -0.057901255786418915, 0.02848421409726143, -0.7467618584632874, -0.21877937018871307, 0.055065494030714035, -0.28084033727645874, 0.280001670...
so.name = 'NameOfStoredProcedure' AND sd.id = so.id ) ``` Hope this helps someone.
[ 0.5736247897148132, 0.3392900228500366, 0.33213043212890625, 0.00913685280829668, 0.3093354105949402, -0.40397489070892334, 0.42783433198928833, 0.3867074251174927, 0.0014491819310933352, -0.7407513856887817, 0.047743115574121475, 0.1728910207748413, 0.13206753134727478, 0.0833752155303955...
Whenever I type a (, [, or {, Notepad++ completes it with the corresponding closing bracket. I find this 'feature' annoying and would like to disable it. It doesn't seem to be listed in the Preferences dialog and a search of the online documentation didn't yield any useful result. Does anybody here know where the opti...
[ 0.11569328606128693, 0.15887044370174408, 0.705407440662384, -0.5439963936805725, 0.2701393961906433, 0.2484782487154007, 0.45323488116264343, -0.27670982480049133, -0.10422349721193314, -0.6184816956520081, -0.11421709507703781, 0.6745731234550476, -0.2893449068069458, -0.0349295474588871...
Does anyone know how to change the from user when sending email using the mail command? I have looked through the man page and can not see how to do this. We are running Redhat Linux 5. <http://www.mindspill.org/962> seems to have a solution. Essentially: `echo "This is the main body of the mail" | mail -s "Subject...
[ 0.5304617881774902, 0.30252915620803833, 0.2823249399662018, -0.3026628792285919, -0.14761438965797424, -0.05066554248332977, 0.2674466669559479, -0.1246296614408493, -0.06113342568278313, -0.39457711577415466, -0.012450120411813259, 0.5051622986793518, -0.31101495027542114, 0.297440260648...
Are there any industry standard conventions for naming jar files? I have been using ``` *Informative*-*name*-*M*.*m*.*b*.jar ``` Where: *M* = `major version number` (changed when backward compatibility is not necessarily maintained) *m* = `minor version number` (feature additions etc) *b* = `build number` (for r...
[ 0.3628256916999817, 0.5588186979293823, 0.04540165513753891, -0.2896142601966858, -0.11536172032356262, -0.03857773542404175, 0.42266491055488586, 0.2133641242980957, -0.21225348114967346, -0.3419632315635681, 0.0014500010292977095, 0.6304289102554321, -0.19757986068725586, 0.5011938214302...
Im running a ASP.NET Site where I have problems to find some JavaScript Errors just with manual testing. Is there a possibility to catch all JavaScript Errors on the Clientside and log them on the Server i.e. in the EventLog (via Webservice or something like that)? You could try setting up your own handler for the [on...
[ 0.28263622522354126, -0.11847957223653793, 0.32478436827659607, 0.021318018436431885, -0.37074336409568787, -0.13083681464195251, 0.31490615010261536, -0.4952213764190674, -0.37070268392562866, -0.44373878836631775, -0.0049643488600850105, 0.42644113302230835, -0.5046207904815674, -0.06633...
= "msg=" + encodeURIComponent(msg) + '&amp;url=' + encodeURIComponent(url) + "&amp;line=" + line; req.open("POST", "/scripts/logerror.php"); req.send(params); }; ```
[ 0.03193652257323265, -0.024350469931960106, 0.7951620221138, -0.2348451316356659, 0.07256081700325012, 0.424947053194046, 0.5032474398612976, -0.427274227142334, -0.3756518065929413, -0.2071247100830078, -0.7499232292175293, 0.14790697395801544, -0.43689045310020447, 0.4253747761249542, ...
I basically need to highlight a particular word in a block of text. For example, pretend I wanted to highlight the word "dolor" in this text: ```html <p> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. </p> <p> Quisque bibendum sem ut lacus. Integer dolor ullamcorper libero. Aliquam rhoncus eros ...
[ 0.2526983320713043, 0.2983676791191101, 0.6203174591064453, 0.08480866253376007, -0.19299647212028503, 0.6556428670883179, -0.05870475992560387, -0.06985042989253998, -0.13679549098014832, -0.5246568322181702, -0.24569518864154816, 0.4124937653541565, -0.32556769251823425, -0.3126761019229...
at augue. Suspendisse vitae mauris. </p> ``` Is this possible with jQuery? **Edit**: As [Sebastian](https://stackoverflow.com/users/9535/sebastian-hoitz) [pointed out](https://stackoverflow.com/questions/119441/highlight-a-word-with-jquery#119450), this is quite possible without jQuery - but I was hoping there might...
[ 0.4547148644924164, 0.1606786698102951, 0.2871841490268707, 0.04986489936709404, -0.22334074974060059, -0.603035569190979, 0.5552914142608643, 0.2973922789096832, -0.5702539682388306, -0.20534798502922058, -0.37572604417800903, 0.4911273121833801, -0.2043037861585617, -0.3040792644023895, ...
v4 Highlights arbitrary terms. <http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html> MIT license. Johann Burkard <http://johannburkard.de> <mailto:jb@eaio.com> */ jQuery.fn.highlight = function(pat) { function innerHighlight(node, pat) { var skip = 0; ...
[ 0.08688497543334961, -0.1654171347618103, 0.9408928751945496, -0.14925678074359894, -0.35477104783058167, 0.2740502953529358, 0.3271576166152954, -0.3791089951992035, -0.4903848469257355, -0.10923664271831512, -0.2783099114894867, 0.308358371257782, -0.2787840664386749, 0.03635480999946594...
{ for (var i = 0; i < node.childNodes.length; ++i) { i += innerHighlight(node.childNodes[i], pat); } } return skip; } return this.length && pat && pat.length ? this.each(function() { innerHighlight(this, pat.toUpperCase()); }) : this; }; jQuery.fn.removeHighlight = function() { return this.find("sp...
[ -0.1406821310520172, -0.1295638084411621, 0.545642614364624, -0.24400700628757477, 0.03381204605102539, 0.30864354968070984, 0.4191901385784149, -0.2900353968143463, -0.3613255023956299, -0.5086195468902588, -0.3437816798686981, 0.24492120742797852, -0.21009953320026398, 0.0547360479831695...
humble opinion). * Most important changes: * - has an option to highlight only entire words (wordsOnly - false by default), * - has an option to be case sensitive (caseSensitive - false by default) * - highlight element tag and class names can be specified in options * * Usage: * // wrap every occurrance of...
[ -0.13469405472278595, -0.20245316624641418, 0.7372727990150452, 0.15955884754657745, -0.19666333496570587, 0.08880459517240524, 0.6604068875312805, -0.04611317440867424, 0.05749333277344704, -0.7740564942359924, -0.6462177634239197, 0.8608059883117676, 0.14484858512878418, -0.2733909785747...
some time on traversing DOM * $('#content').highlight(['lorem', 'ipsum']); * $('#content').highlight('lorem ipsum'); * * // search only for entire word 'lorem' * $('#content').highlight('lorem', { wordsOnly: true }); * * // don't ignore case during search of term 'lorem' * $('#content').highlight('l...
[ -0.3698272109031677, -0.08388470113277435, 0.7260300517082214, 0.18045923113822937, -0.004479113034904003, -0.01973174512386322, 0.47004014253616333, -0.3199661374092102, -0.2132120132446289, -0.42026567459106445, -0.7009165287017822, 0.5615772604942322, -0.10232610255479813, -0.0452022217...
// remove custom highlight * $('#content').unhighlight({ element: 'em', className: 'important' }); * * * Copyright (c) 2009 Bartek Szopka * * Licensed under MIT license. * */ jQuery.extend({ highlight: function (node, re, nodeName, className) { if (node.nodeType === 3) { var match = n...
[ -0.21023248136043549, -0.1426953375339508, 0.20285415649414062, 0.01153602171689272, -0.0871378555893898, 0.0523667074739933, 0.2229882925748825, -0.02733977884054184, -0.48620858788490295, -0.3039213716983795, -0.26621735095977783, -0.0783284530043602, -0.2171008437871933, 0.0610841512680...
|| 'span'); highlight.className = className || 'highlight'; var wordNode = node.splitText(match.index); wordNode.splitText(match[0].length); var wordClone = wordNode.cloneNode(true); highlight.appendChild(wordClone);
[ -0.30182403326034546, -0.34450721740722656, 0.4197550117969513, -0.2688680589199066, 0.20736433565616608, 0.07100578397512436, 0.47163546085357666, -0.24418406188488007, -0.06493586301803589, -0.5075564980506897, -0.6799237728118896, 0.3597436547279358, -0.23809921741485596, 0.180634468793...
wordNode.parentNode.replaceChild(highlight, wordNode); return 1; //skip added node in parent } } else if ((node.nodeType === 1 && node.childNodes) && // only element nodes that have children !/(script|style)/i.test(node.tagName) && // ignore script and style nodes
[ -0.28074556589126587, -0.231800377368927, 0.2597489655017853, -0.03638608753681183, 0.2898630201816559, 0.10222212970256805, 0.3610241711139679, -0.02843397669494152, -0.050745029002428055, -0.8807730078697205, -0.3066999912261963, 0.18743787705898285, -0.04646904394030571, 0.1308162808418...
!(node.tagName === nodeName.toUpperCase() && node.className === className)) { // skip if already highlighted for (var i = 0; i < node.childNodes.length; i++) { i += jQuery.highlight(node.childNodes[i], re, nodeName, className); } } return 0; } }); jQuery.fn.u...
[ -0.21723611652851105, -0.462338924407959, 0.3995650112628937, -0.18387502431869507, 0.29486778378486633, 0.332930326461792, 0.4017118513584137, -0.15537472069263458, -0.7212673425674438, -0.3217902183532715, -0.3830661177635193, 0.21974194049835205, -0.15105029940605164, -0.116691581904888...
settings = { className: 'highlight', element: 'span' }; jQuery.extend(settings, options); return this.find(settings.element + "." + settings.className).each(function () { var parent = this.parentNode; parent.replaceChild(this.firstChild, this); parent.normalize(); }).end(); }; jQue...
[ -0.3482078015804291, -0.4797689914703369, 0.6516185998916626, -0.3849085867404938, 0.267098069190979, 0.4532851278781891, 0.3535245656967163, -0.10909488797187805, 0.00027174537535756826, -0.7412533164024353, -0.6327750086784363, 0.6359284520149231, -0.12065275013446808, 0.0409979224205017...
} words = jQuery.grep(words, function(word, i){ return word != ''; }); words = jQuery.map(words, function(word, i) { return word.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"); }); if (words.length == 0) { return this; }; var flag = settings.caseSensitive ? "" : "i"; var pattern = ...
[ -0.2763822078704834, -0.1216956228017807, 0.6469067335128784, -0.4520663321018219, 0.04568839073181152, 0.35860809683799744, 0.5889647603034973, -0.3571843206882477, 0.010037293657660484, -0.8698933720588684, -0.5370677709579468, 0.47948890924453735, -0.2899230420589447, 0.2383015602827072...
} var re = new RegExp(pattern, flag); return this.each(function () { jQuery.highlight(this, re, settings.element, settings.className); }); }; ```
[ 0.08832957595586777, -0.3163103461265564, 0.5198583602905273, -0.3935161530971527, 0.2460194081068039, 0.2553584575653076, 0.5584673285484314, -0.3024941384792328, -0.24000751972198486, -0.5028142929077148, -0.5406205058097839, 0.6069887280464172, -0.3896135985851288, 0.26279088854789734, ...
For one and a half years, I have been keeping my eyes on the git community in hopes of making the switch away from SVN. One particular issue holding me back is the inability to lock binary files. Throughout the past year I have yet to see developments on this issue. I understand that locking files goes against the fund...
[ 0.6295891404151917, 0.23881058394908905, 0.12564507126808167, -0.0814235582947731, -0.00394508196040988, -0.3452211320400238, 0.20179472863674164, 0.2875979542732239, -0.3486786484718323, -0.4132125973701477, -0.03543872758746147, 0.6790453195571899, -0.080142080783844, 0.539818525314331, ...
locking, a "central" repository must be identified. Regardless of the distributed nature of git, most companies will have a "central" repository for a software project. We should be able to mark a file as requiring a lock from the governing git repository at a specified address. Perhaps this is made difficult because g...
[ 0.462022602558136, 0.17857444286346436, 0.27048638463020325, 0.3406016528606415, 0.05368382856249809, -0.5526288747787476, -0.08962380886077881, -0.2598171532154083, -0.47448161244392395, -0.21593937277793884, -0.511769711971283, 0.6138756275177002, -0.47367748618125916, 0.4573163986206054...
support for file locking. > With Git LFS 2.0.0 you can now lock files that you're actively working on, preventing others from pushing to the Git LFS server until you unlock the files again. > > > This will prevent merge conflicts as well as lost work on non-mergeable files at the filesystem level. While it may seem ...
[ 0.24534782767295837, -0.06508848071098328, 0.4679068624973297, 0.09835163503885269, 0.07447633147239685, -0.31202933192253113, 0.09383852034807205, -0.11882445216178894, -0.5043673515319824, -0.7013123631477356, -0.4407814145088196, 0.4942748248577118, -0.4953449070453644, 0.07631710916757...
I couldn't find any useful information on Microsoft's site, so here is the question: has the compiler in Visual C++ 2008 been improved significantly since the 2005 version? I'm especially looking for better optimization. Straight from the horses mouth.... > <http://msdn.microsoft.com/en-us/library/bb384632.aspx>
[ 0.14827626943588257, 0.11172153800725937, -0.33204251527786255, -0.16083502769470215, -0.3525092303752899, 0.18526777625083923, 0.42140674591064453, -0.23328696191310883, -0.10312201827764511, -0.29031142592430115, 0.3405144214630127, 0.6712910532951355, 0.25422582030296326, -0.25181567668...
I'm getting a warning from ReSharper about a call to a virtual member from my objects constructor. Why would this be something not to do? When an object written in C# is constructed, what happens is that the initializers run in order from the most derived class to the base class, and then constructors run in order fr...
[ -0.03583620488643646, -0.12741440534591675, -0.09262298792600632, 0.06809825450181961, -0.13682490587234497, -0.1725122183561325, 0.3452431857585907, -0.13648562133312225, -0.21639856696128845, -0.3724883198738098, -0.33827558159828186, 0.26823851466178894, -0.44391748309135437, 0.12653197...
for the most derived type. This means that virtual method calls always run on the most derived type. When you combine these two facts you are left with the problem that if you make a virtual method call in a constructor, and it is not the most derived type in its inheritance hierarchy, that it will be called on a clas...
[ -0.008236128836870193, -0.16265082359313965, 0.19722039997577667, 0.36251628398895264, 0.0660495012998581, -0.18458253145217896, 0.2947334051132202, -0.10562720149755478, -0.16206398606300354, -0.3941709101200104, -0.2499019056558609, 0.4503973722457886, -0.384258896112442, 0.4223218560218...
derived type in the inheritance hierarchy - in which case it is perfectly safe to call the virtual method.
[ -0.06563390046358109, -0.5190763473510742, 0.08014845848083496, 0.16671447455883026, -0.029236922040581703, -0.3023374378681183, 0.0202594306319952, -0.008076479658484459, 0.16318745911121368, -0.4705873429775238, -0.08095398545265198, 0.3433930277824402, -0.23944847285747528, 0.3824842870...
I want to create a keyboard and mouse hook which will be started as a windows service. I want to monitor the activity of the various users who use the system throughout the day. i.e. which users are *active* at what times. Is is possible to determine which user will be receiving the events? (The service will be runnin...
[ 0.5017985701560974, -0.26278626918792725, 0.27474918961524963, -0.08867280930280685, 0.26638126373291016, -0.0357201024889946, 0.0853261947631836, -0.09832488745450974, -0.023352785035967827, -0.6230313777923584, -0.16989758610725403, 0.7222216129302979, -0.4530331492424011, -0.01512047927...
using if using .NET, are low-level hooks. It seems to me that they are executed well before Windows even determines which desktop/application will receive the event. I may be wrong, though - I have never used the \_LL hooks myself.
[ 0.17478279769420624, -0.2392204999923706, 0.0686616599559784, -0.15252508223056793, 0.12877590954303741, -0.36343032121658325, 0.04040675610303879, 0.3215022385120392, -0.10869148373603821, -0.7557721734046936, -0.1758994162082672, 0.4778699576854706, -0.24285003542900085, -0.0171549897640...
I have created a webservice in .net 2.0, C#. I need to log some information to a file whenever different methods are called by the web service clients. The problem comes when one user process is writing to a file and another process tries to write to it. I get the following error: > The process cannot access the fil...
[ 0.15698449313640594, 0.17711018025875092, 0.0040007103234529495, -0.05456559732556343, -0.014714387245476246, -0.2892116606235504, 0.32062745094299316, -0.13847826421260834, -0.19836071133613586, -0.8370308876037598, -0.005164167378097773, 0.42659762501716614, -0.49881404638290405, 0.26878...
writes to the file. 3. I have also tried to use open source logger log4net but it also is not a perfect solution. 4. I know about logging to system event logger, but I do not have that choice. I want to know if there exists a perfect and complete solution to such a problem? The locking is probably failing because your...
[ 0.418601930141449, 0.3310548663139343, 0.2911957800388336, -0.10980835556983948, -0.0310033168643713, 0.055305272340774536, 0.6415539979934692, -0.29723653197288513, -0.27939799427986145, -0.7073885798454285, 0.00816380511969328, 0.5867571830749512, -0.5400404334068298, 0.42517516016960144...
I've just built a basic ASP MVC web site for deployment on our intranet. It expects users to be on the same domain as the IIS box and if you're not an authenticated Windows User, you should not get access. I've just deployed this to IIS6 running on Server 2003 R2 SP2. The web app is configured with it's own pool with ...
[ 0.20503324270248413, 0.10636747628450394, 0.4592128396034241, -0.1793786883354187, -0.06820530444383621, -0.29475918412208557, 0.2766011655330658, -0.2918506860733032, -0.1613602489233017, -0.5895944833755493, -0.12247284501791, 0.6114173531532288, -0.1995670050382614, 0.027131035923957825...
browser window can successfully authenticate and navigate the web app if accessed via <http://localhost/myapp>. However, also from the server, if accessed via the server's name (ie <http://myserver/myapp>) then IE7 presents a credentials dialog which after three attempts entering the correct credentials eventually ret...
[ -0.12293566763401031, 0.0322093740105629, 0.688407838344574, -0.14228399097919464, -0.022898096591234207, -0.0025392163079231977, 0.6837198138237, 0.10810146480798721, -0.11805059760808945, -0.9552308320999146, -0.5413132309913635, 0.5623626112937927, -0.25078627467155457, 0.08457872271537...
to work? Thanks, --- I have tried the suggestions from Matt Ryan, Graphain, and Mike Dimmick to date without success. I have just built a virtual machine test lab with a Server 2003 DC and a separate server 2003 IIS6 server and I am able to replicate the problem. I am seeing an entry in the IIS6 server's System Eve...
[ 0.3781536817550659, 0.22107906639575958, 0.17661058902740479, 0.12305109947919846, -0.06568150222301483, 0.00598385464400053, 0.7525627017021179, -0.20284977555274963, -0.23121598362922668, -0.5586920976638794, -0.0423579216003418, 0.33727148175239563, -0.33068516850471497, 0.1927652359008...
used was HTTP/iis.test.local. This indicates that the password used to encrypt the kerberos service ticket is different than that on the target server. Commonly, this is due to identically named machine accounts in the target realm (TEST.LOCAL), and the client realm. After extensive Googling I managed to find a solutio...
[ -0.16733908653259277, -0.10502336174249649, 0.3833710253238678, 0.10377252846956253, -0.2028234601020813, 0.07654081284999847, 0.46387243270874023, -0.12121511995792389, -0.21527670323848724, -0.609610378742218, -0.014858894981443882, 0.1443084329366684, -0.0722946748137474, 0.335741728544...
MYDOMAIN\MyPoolUser This solved my problem on both my virtual test lab and my original problem server. There is also an important note in the article that using Windows Authentication with custom pool users constrains the associated DNS name to be used by that pool only. That is, another pool with another identity wo...
[ 0.1456843614578247, -0.06628862023353577, 0.3755210041999817, 0.028330281376838684, 0.04432319104671478, -0.36407116055488586, 0.03698112070560455, 0.08819444477558136, -0.06867679208517075, -0.637876570224762, 0.19693464040756226, 0.5457436442375183, 0.06610260903835297, 0.157694712281227...
I'm trying to store an xml serialized object in a cookie, but i get an error like this: ``` A potentially dangerous Request.Cookies value was detected from the client (KundeContextCookie="<?xml version="1.0" ...") ``` I know the problem from similiar cases when you try to store something that looks like javascript c...
[ 0.2996436357498169, 0.18681620061397552, -0.011983203701674938, 0.06437402963638306, -0.3156489431858063, -0.49973487854003906, 0.4374506175518036, -0.0906224325299263, -0.1897379755973816, -0.7359492182731628, -0.07461416721343994, 0.5569184422492981, -0.3159309923648834, 0.06773702800273...
the feedback. The reason i want to store more data in the cookie than the ID is because the object i really need takes about 2 seconds to retreive from a service i have no control over. I made a lightweight object 'KundeContext' to hold a few of the properties from the full object, but these are used 90% of the time. T...
[ 0.05869567394256592, -0.2958366870880127, 0.36435988545417786, 0.37836334109306335, -0.08839710056781769, -0.02207360230386257, 0.2961139380931854, 0.06451275199651718, 0.215691477060318, -0.2796824276447296, 0.04790794849395752, 0.5575773119926453, 0.09226088225841522, 0.05534903705120087...
strings and ints seperately but the object has other lightweight objects like 'contactinformation' and 'address' that would be tedious to manually store for each of their properties. I wouldn't store data in XML in the cookie - there is a limit on cookie size for starters (used to be 4K for *all* headers including the ...
[ 0.09224791079759598, -0.08446163684129715, -0.017419014126062393, 0.2043980062007904, -0.3685799241065979, -0.21347513794898987, 0.4621249735355377, 0.09168891608715057, -0.2153845727443695, -0.6839216947555542, -0.08330883085727692, 0.2990904748439789, -0.26015496253967285, 0.171939820051...
Does anyone know of a library or bit of code that converts British English to American English and vice versa? I don't imagine there's too many differences (some examples that come to mind are doughnut/donut, colour/color, grey/gray, localised/localized) but it would be nice to be able to provide localised site conten...
[ 0.5347273349761963, 0.10859902948141098, 0.20497702062129974, -0.3024502992630005, -0.12533332407474518, 0.1413963884115219, 0.5177818536758423, 0.9198786616325378, 0.01776549406349659, -0.7334010601043701, -0.07286786288022995, 0.5290319323539734, -0.03467607498168945, -0.2157006412744522...
I do say so myself). It'll convert most US spellings to UK ones but there are some words where UK English retains the US spelling (e.g. "program" where this refers to computer software). It won't convert words like pants to trousers because my main goal was simply to make the spelling uniform across the whole document....
[ 0.9520385265350342, 0.06723500043153763, 0.3614708483219147, -0.3042999505996704, -0.18899685144424438, 0.26549816131591797, 0.5920736193656921, 0.0756220743060112, -0.10024562478065491, -0.6099622249603271, -0.22019532322883606, 0.48885488510131836, -0.2729913592338562, -0.030062675476074...
note pops up on the lower left hand of your screen when you hover your mouse over them. All word patterns which are converted are underlined in red, and the output is shown in a side by side comparison with your original input. It'll do quite large blocks of text quite quickly, but I prefer to go use it just for a cou...
[ 0.11027389019727707, 0.0026750292163342237, 0.5409711599349976, -0.10469471663236618, -0.12746387720108032, -0.018774082884192467, 0.013186980970203876, 0.19859078526496887, -0.195140540599823, -0.9851474165916443, -0.3753563165664673, -0.08928661048412323, -0.0958695188164711, -0.03242744...
We've got dozens of versions of an SWF modified for different customers of a big Flash project, and now would have to replace some strings embedded in scripts in each copy. The FLA file for some of these is very difficult to locate or even missing (I inherited this mess and refactoring it is currently not an option). ...
[ 0.2738797068595886, -0.0005092288483865559, 0.3706623315811157, 0.014644909650087357, 0.007354063913226128, -0.13952653110027313, 0.1296391487121582, 0.12468576431274414, -0.22450149059295654, -0.38190898299217224, -0.05597710981965065, 0.24717794358730316, -0.36375072598457336, -0.1295859...
strings were correctly extracted so another tool might do the job. You could try Burak's [URL Action Editor](http://www.buraks.com/uae/) -- it says URL, but I'm pretty sure it lets you edit any text in a SWF. I haven't used it, but I have used his ActionScript Viewer, which works wonderfully.
[ -0.06311406195163727, -0.3818035423755646, 0.43620744347572327, 0.01123879011720419, -0.4660412669181824, 0.04334558546543121, 0.1664508432149887, -0.07324599474668503, -0.28196021914482117, -0.35653093457221985, -0.2546329200267792, 0.2850647568702698, -0.3131103515625, 0.1737734079360962...
> **Possible Duplicate:** > > [How do I get the HMODULE for the currently executing code?](https://stackoverflow.com/questions/557081/how-do-i-get-the-hmodule-for-the-currently-executing-code) I'm trying to find a resource in my own module. If this module is an executable, that's trivial - `GetModuleHandle(NULL)` r...
[ 0.24202899634838104, 0.10733603686094284, 0.26645389199256897, 0.03714495897293091, -0.00800912082195282, -0.15861064195632935, 0.3344268798828125, -0.14323635399341583, -0.4194679260253906, -0.5231927037239075, -0.16962918639183044, 0.3461306393146515, -0.36749860644340515, 0.300325244665...
hack to me (and is not easily maintainable in case the code in question is transplanted into a different DLL). Store the module handle away when it is given to you in DllMain and then use it later when you actually need it. A lot of frameworks (e.g., MFC) do this automatically.
[ 0.734649658203125, -0.17732617259025574, -0.08583288639783859, 0.1312432587146759, -0.029947111383080482, -0.5025417804718018, 0.3849526047706604, -0.09707926958799362, -0.052876152098178864, -0.4923660159111023, -0.3363131284713745, 0.6438037157058716, -0.14009980857372284, -0.01802738197...
I have a `VARCHAR` column in a `SQL Server 2000` database that can contain either letters or numbers. It depends on how the application is configured on the front-end for the customer. When it does contain numbers, I want it to be sorted numerically, e.g. as "1", "2", "10" instead of "1", "10", "2". Fields containing...
[ 0.21422842144966125, 0.46597880125045776, 0.4814106822013855, -0.33484750986099243, -0.1848699450492859, 0.3307701647281647, -0.006317170336842537, -0.3380737006664276, -0.058977507054805756, -0.41866230964660645, 0.14436392486095428, 0.5245554447174072, -0.31739136576652527, 0.18519155681...
so that all are of the same string length. Here is an example using that approach: ```sql select MyColumn from MyTable order by case IsNumeric(MyColumn) when 1 then Replicate('0', 100 - Len(MyColumn)) + MyColumn else MyColumn end ``` The `100` should be replaced with the actual length of t...
[ 0.05849452316761017, 0.10274603962898254, 0.4934982359409332, -0.08977466821670532, -0.05956712365150452, 0.039998020976781845, -0.11085264384746552, -0.039912786334753036, -0.0760611817240715, -0.27709439396858215, 0.013727757148444653, 0.19832685589790344, -0.08366787433624268, 0.3543644...
I want to test ASP.NET applications to get the feel for the MVC extension and compare that to what I can do today with Grails or Rails. The trouble is that being in a corporate environment, I can't install IIS on my workstation, neither on my DEV server. And - you guessed it - Visual Studio is not to be considered at t...
[ 0.5765947103500366, -0.13960236310958862, 0.0009839959675446153, 0.12266575545072556, -0.10299007594585419, -0.1056654304265976, 0.3302697241306305, 0.025083467364311218, -0.3070244789123535, -0.6088935136795044, 0.02543792687356472, 0.7092140913009644, 0.11876931041479111, 0.0869712680578...
equivalent in the IIS world, like a lightweight ASP.NET host? Thanks, Rollo [UltiDev Cassini Web Server](http://en.wikipedia.org/wiki/UltiDev_Cassini_Web_Server)
[ 0.0135065708309412, -0.26061537861824036, 0.19193215668201447, 0.2155458778142929, -0.10435375571250916, -0.12458445876836777, -0.0598311573266983, 0.10208792239427567, -0.5282688736915588, -0.8182500600814819, -0.0673927441239357, 0.18602855503559113, -0.2091154307126999, 0.22941768169403...
Where can I find the IIS object schema? All I found from MSDN was a picture of the class hierarchy. To be clear, I want to configure IIS through either WMI or ADSI and I'm looking for something like [the Active Directory schema](http://msdn.microsoft.com/en-us/library/ms675085(VS.85).aspx), only for IIS. I want a list...
[ -0.009621821343898773, -0.005807624664157629, 0.09346801787614822, 0.13359348475933075, -0.06956271827220917, -0.3992382884025574, 0.2109556943178177, -0.02965111844241619, -0.11028194427490234, -0.920628547668457, 0.01646268181502819, 0.22614747285842896, -0.10972324758768082, 0.440972477...
or WMI method calls for you in C# (I used them as examples). If you run it on a machine with IIS installed, you'll see the root\MicrosoftIISv2 namesspace, which has tons of queryable objects in it, and all their properties and methods. You are probably looking for something like the IIsWebVirtualDirSetting object - tr...
[ -0.047766439616680145, -0.19307871162891388, 0.045128434896469116, 0.23321959376335144, 0.09789248555898666, -0.42361798882484436, 0.21917624771595, 0.06930003315210342, -0.03836314007639885, -0.8445997834205627, 0.016737114638090134, 0.3475608825683594, -0.2549374997615814, 0.307051479816...
Before moving on to use SVN, I used to manage my project by simply keeping a `/develop/` directory and editing and testing files there, then moving them to the `/main/` directory. When I decided to move to SVN, I needed to be sure that the directories were indeed in sync. So, what is a good way to write a shell script...
[ 0.5247530937194824, -0.09453856945037842, -0.0035913593601435423, -0.18516357243061066, -0.12060119956731796, -0.3499831557273865, 0.30646049976348877, -0.1109287291765213, -0.08295177668333054, -0.42796021699905396, 0.054915159940719604, 0.7722986936569214, -0.2911009192466736, 0.19290636...