text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
was “server class” which was fulfilled when having at least 2 cores and at least 2GiB of memory. > > > Which explains why almost everything uses `-server` for quite some time now. Even the cheapest computers you can find, are “server class” machines. The Sun/Oracle 64 builds did not even ship with a client JVM.
[ 0.1325690746307373, 0.1417362540960312, 0.1711791604757309, 0.209678053855896, -0.28243181109428406, -0.22082822024822235, 0.1917486935853958, 0.2777980864048004, -0.12435892224311829, -0.2878093719482422, -0.06512001901865005, 0.1070624589920044, -0.25040560960769653, 0.20158471167087555,...
What are optimal settings for Recycling of Application Pools in IIS7 in a shared environment? ![enter image description here](https://i.stack.imgur.com/RNQo8.png) As a Hoster, you definitely want to recycle on Memory & Time, potentially Request limits and CPU. You want to be pretty aggressive about these limits, but m...
[ 0.07190282642841339, -0.07677806913852692, 0.5784890055656433, 0.16683152318000793, 0.37206944823265076, -0.3081910014152527, 0.08476462215185165, -0.17261344194412231, -0.6080542206764221, -0.6988967061042786, -0.36554446816444397, 0.5985857248306274, -0.028248174116015434, -0.15999187529...
the morning, plus or minus (first site 1:01, second 1:11, third 1:21, just so you don't have all recycling at the same time) [**Request limit**](https://technet.microsoft.com/en-us/library/cc770469(v=ws.10).aspx) - 35,000 was the default for IIS6, but this number is quite arbitrary, and very dependant on the site in ...
[ 0.3592343330383301, -0.2943892478942871, 0.7957561612129211, 0.04379040375351906, -0.13458791375160217, -0.04524531587958336, 0.384065181016922, -0.15761032700538635, -0.4344470202922821, -0.6833058595657349, -0.2935546338558197, 0.42843565344810486, -0.19708885252475739, 0.283869981765747...
the remainder of the limit when Action is set to KillW3WP. You might want to try NoAction initially and just watch your event logs carefully. [**Recycle Event Logs**](https://technet.microsoft.com/en-us/library/cc771318(v=ws.10).aspx) - You want to make sure you are logging app pool recycles for each event threshhold ...
[ 0.19248701632022858, -0.3815453350543976, 0.5922131538391113, 0.12191599607467651, 0.18379655480384827, -0.36755263805389404, 0.27707135677337646, -0.44040754437446594, -0.5198256969451904, -0.6183961629867554, -0.22002480924129486, 0.9428578019142151, -0.04279467463493347, -0.205327421426...
retail = "false" [true|false] /> --> <deployment retail="true" /> </system.web> ``` Not setting this will allow a site to turn debugging on, which allows unlimited timeouts in requests - not exactly ideal for a hoster...
[ 0.6672500967979431, 0.1827772706747055, 0.5069682002067566, 0.0157161895185709, 0.1590275764465332, -0.3602975308895111, 0.25312528014183044, -0.09354359656572342, -0.16330848634243011, -0.2538996636867523, -0.3478585183620453, 0.9664002060890198, 0.016829438507556915, 0.11110220849514008,...
I typically use URL rewriting to pass content IDs to my website, so this ``` Foo.1.aspx ``` rewrites to ``` Foo.aspx?id=1 ``` For a specific application I need to pass in multiple IDs to a single page, so I've rewritten things to accept this: ``` Foo.1,2,3,4,5.aspx ``` This works fine in Cassini (the built...
[ 0.225022092461586, 0.24961286783218384, 0.4279320538043976, -0.17721308767795563, -0.20807591080665588, -0.3023293614387512, 0.2969135344028473, -0.1236506998538971, -0.2698597013950348, -0.7815747857093811, -0.13335585594177246, 0.34410345554351807, -0.31248006224632263, 0.172739505767822...
exists, and commas are not legal in filenames, which is parhaps why you are getting errors. IIS may have legacy code that aborts the request before it can get to asp.net for processing. Scott Hanselman's [blog post](http://www.hanselman.com/blog/PlugInHybridsASPNETWebFormsAndASPMVCAndASPNETDynamicDataSideBySide.aspx)...
[ 0.15085728466510773, 0.09896766394376755, 0.4377434253692627, 0.046913158148527145, -0.06662201136350632, -0.5425143837928772, 0.5434094071388245, -0.07119440287351608, -0.18492184579372406, -0.7829324007034302, -0.11491690576076508, 0.028680333867669106, -0.1111547127366066, 0.34347251057...
just be confused. Url rewriting is best utilized to transform ``` ~/products/view.aspx?id=1 ~/products/category.aspx?type=beverage ``` into ``` ~/products/view/1 ~/products/category/beverage ```
[ 0.005178624764084816, 0.4257643222808838, 0.5703719854354858, -0.15720701217651367, -0.061777111142873764, 0.019421949982643127, -0.06978575140237808, 0.2782132625579834, -0.14298014342784882, -0.49848735332489014, -0.5468435287475586, 0.5406489968299866, -0.12115988880395889, 0.4120989143...
Ok, so it's *almost* as easy as pie already. But it really should be as easier than it is. I think I should be able to connect to another database just by putting a JDBC connection string into TNSNAMES. Every database vendor has a type-4 JDBC driver and there's usually a good, free alternative. With Oracle being such...
[ 0.4809127449989319, 0.252543568611145, 0.07872628420591354, 0.132541224360466, -0.09518515318632126, -0.0888657420873642, -0.005004333797842264, 0.291645884513855, -0.3471689224243164, -0.5212692022323608, 0.14177267253398895, 0.7460487484931946, 0.025192968547344208, 0.26556992530822754, ...
"sql\*plus" to anything. But it doesn't work this way. If you want to connect to another non-Oracle database You have to buy something called Oracle Gateways or mess around with ODBC (through something called Generic Connectivity). [**Originality warning**... This is related to a [previous question](https://stackover...
[ 0.5947777032852173, 0.09128022193908691, 0.19087938964366913, 0.2620580196380615, -0.044536568224430084, -0.22105513513088226, 0.13101938366889954, 0.20482920110225677, -0.18046504259109497, -0.14359146356582642, 0.09960144013166428, 0.5473154783248901, -0.3104880750179291, 0.3012488782405...
none sufficiently straightforward. There's a JVM in the database and JDBC drivers to every other database - it should "just work" so I can only assume it hasn't been made to "just work" for a reason. My question is whether anyone knows that reason. Does anyone?
[ 0.647239089012146, 0.8059185743331909, 0.04595760628581047, 0.07814773172140121, 0.06996206939220428, -0.26769211888313293, 0.09821999073028564, 0.09982623904943466, -0.14849181473255157, -0.20724257826805115, -0.051119010895490646, 0.6550941467285156, -0.1840345412492752, 0.01858504489064...
Is there a ColdFusion analog for the deployment descriptor/web.xml file found in a J2EE web container? I know CF is running on top of JRun and that I could just tweak the JRun dd, but what about an application-specific configuration file? Is there something like this that I'm not aware of or do you just have to roll yo...
[ -0.0032025815453380346, -0.019701512530446053, 0.3837476968765259, 0.09239565581083298, 0.10844510048627853, -0.22142794728279114, -0.014898990280926228, 0.16782356798648834, -0.2886916995048523, -0.4052416682243347, -0.018768219277262688, 0.4170444905757904, -0.2685689330101013, -0.074116...
I have a set of Word documents which I want to publish using a PHP tool I've written. I copy and paste the Word documents into a text box and then save them into MySQL using the PHP program. The problem I Have arises from all the non-standard characters that Word documents have, like curly quotes and ellipses ("..."). ...
[ 0.347166508436203, 0.44569841027259827, 0.3575465977191925, 0.16987870633602142, 0.04971309378743172, -0.04753720015287399, 0.26011598110198975, -0.06774798035621643, 0.17335836589336395, -0.7097103595733643, 0.06144075095653534, 0.431806743144989, -0.1950310617685318, -0.09045533090829849...
that will take the output of a Word document and convert everything that should be entities into entities, and other symbols that don't display properly in Firefox into symbols that do display. Thanks! A better solution would be to ensure that your database is set-up to support UTF-8 characters. The additional charact...
[ 0.1294223517179489, -0.051043447107076645, 0.5538252592086792, 0.17785069346427917, 0.14106090366840363, -0.14373911917209625, 0.19111311435699463, -0.10621926188468933, -0.12883494794368744, -0.8127023577690125, -0.2529739439487457, 0.49273204803466797, -0.1542327105998993, -0.22731281816...
I know there are tools to get text files to resource files for Visual Studio. But I want to get the text from my resource files to a text file so they can be translated. Or is there a better way to do this? You can use [Simple Resx Editor](http://simpleresxeditor.blogspot.com/), it has some interesting features that wi...
[ 0.6200060248374939, -0.044699572026729584, 0.11419690400362015, 0.209222212433815, -0.05404364690184593, -0.06589904427528381, 0.2937353849411011, -0.10465046018362045, -0.08861322700977325, -0.6563941240310669, 0.19717970490455627, 0.9224938154220581, 0.04141348972916603, 0.10719189792871...
a while back I ran across a situation where we needed to display message-boxes to the user for notifications but we could not use MessageBox.Show because it blocks the GUI thread (so nothing on the screen gets updated while the dialog is active). Any suggestions on an alternative? [I coded an alternative at the time b...
[ 0.45778587460517883, -0.05391598492860794, 0.3894975483417511, -0.11845237761735916, -0.1517288237810135, 0.004021085798740387, 0.35549843311309814, 0.2847316563129425, -0.36938410997390747, -0.5659730434417725, 0.07729755342006683, 0.28280672430992126, -0.47693249583244324, 0.205759465694...
in certain circumstances. ADDENDUM: my solution was a base form that provided OK and CANCEL buttons to emit Completed and Cancelled events; OK called a virtual ValidateData for subclass override. The calling form used properties to avoid recreating the form each time (the form was just hidden instead of closed) and ke...
[ 0.10245130211114883, -0.07634764909744263, 0.3642500638961792, -0.017186157405376434, -0.026446528732776642, -0.1746309995651245, 0.6168484687805176, -0.22557732462882996, -0.057927753776311874, -0.35524436831474304, -0.1546478271484375, 0.31231749057769775, -0.5267937779426575, -0.0797404...
the information needed is the best route to go. If you have multiple messages, you might want to consider putting them into a ListBox and have the user double-click on them to get the full information needing to be displayed.
[ 0.5813184380531311, -0.1084052100777626, 0.26365458965301514, 0.32943713665008545, 0.1318468153476715, -0.14537590742111206, 0.07397325336933136, 0.21683284640312195, -0.4633941054344177, -0.7200512886047363, -0.054799485951662064, 0.21481463313102722, 0.2535458207130432, -0.11317437142133...
I'm using Visual Studio 2008 Team System with SP1, and I've noticed an annoying tendency for the IDE to hang for several (10-15) seconds whenever I stop debugging an application. At first I thought this only happened with WPF apps, but I've observed the behavior in Windows Forms apps and ASP.NET sites as well. I've mad...
[ 0.3273404836654663, -0.07459881901741028, 0.13565179705619812, 0.25488951802253723, -0.34864383935928345, -0.1407124251127243, 0.19383540749549866, -0.06416480988264084, -0.444806307554245, -0.420742928981781, 0.05116954818367958, 0.5190796852111816, -0.03157135844230652, -0.17410956323146...
shows this interesting tidbit, not sure if it is related: ``` 8:45:46.6790857 AM WindowsFormsApplication1.vshost.exe 7684 FASTIO_CHECK_IF_POSSIBLE C:\WINXP\Microsoft.NET\Framework\v2.0.50727\CONFIG\enterprisesec.config.cch FAST IO DISALLOWED Operation: Read, Offset: 48, Length: 12 8:45:46.6793569 AM WindowsFo...
[ -0.34739571809768677, 0.11827012151479721, 0.6550936102867126, 0.2743290662765503, 0.34592071175575256, -0.22321413457393646, 0.16207577288150787, -0.09442883729934692, -0.21779468655586243, -0.6651560664176941, 0.011615044437348843, 0.4306860864162445, -0.34208640456199646, 0.077190190553...
ReadFile D:\documents and settings\myusername\Application Data\Microsoft\CLR Security Config\v2.0.50727.42\security.config.cch FAST IO DISALLOWED Offset: 508, Length: 12 ``` And repeats again many more times, with slight changes in the offset each iteration. Maybe unrelated, but.... Looking at your ProcMon resu...
[ 0.16281218826770782, 0.05401100963354111, 0.5483217239379883, -0.10579103231430054, 0.2114836871623993, -0.04686816409230232, 0.20810356736183167, 0.016226250678300858, -0.38713809847831726, -0.8156405091285706, -0.1185404509305954, 0.5091400146484375, -0.49081340432167053, 0.1469463109970...
blockage, that would suggest that it's a delay in Windows itself. What Pierre said -- look out for network shares -- was my first instinct, too. I've had a lot of seemingly-inexplicable slowdowns in the past when Explorer had a mapping to a share that I couldn't currently reach, even though I wasn't doing any work on t...
[ 0.38452744483947754, 0.05880000814795494, -0.05787919834256172, 0.24830275774002075, 0.13822464644908905, -0.06601468473672867, 0.056089263409376144, -0.05949857458472252, -0.10763516277074814, -0.5708703398704529, 0.17711840569972992, 0.44810691475868225, -0.014907563105225563, 0.46481946...
It seems like Microsoft had a great idea with the ObservableCollection. They are great for binding, and are super fast on the UI. However, requiring a context switch to the Dispatcher Thread every time you want to tweak it seems like a bit much. Does anyone know the best practices for using them? Is it simply to popul...
[ 0.09024367481470108, -0.10756051540374756, 0.5818326473236084, 0.4735409617424011, -0.02146645449101925, -0.19001930952072144, 0.11697221547365189, 0.10595584660768509, -0.2755468487739563, -0.5769415497779846, 0.08416162431240082, 0.6624793410301208, -0.2189568281173706, 0.044886667281389...
bottleneck for your application? If not, stick with updating it on the UI thread. Remember, it's not really a context switch that's happening when you run something with the Dispatcher - instead, you're simply submitting a job to the UI thread, which is an already running thread, which the OS will context switch to at ...
[ 0.1895359307527542, -0.11043305695056915, 0.2065855860710144, 0.038058120757341385, 0.19515468180179596, -0.07585758715867996, 0.15468762814998627, 0.021338630467653275, -0.13681794703006744, -0.47250816226005554, -0.24759040772914886, 0.7417100071907043, -0.26529863476753235, 0.0018833865...
I'm looking for best practices for performing strict (whitelist) validation/filtering of user-submitted HTML. Main purpose is to filter out XSS and similar nasties that may be entered via web forms. Secondary purpose is to limit breakage of HTML content entered by non-technical users e.g. via WYSIWYG editor that has a...
[ 0.5428119897842407, 0.21538420021533966, 0.2651214003562927, -0.16852819919586182, -0.36679333448410034, -0.2515413463115692, 0.42474064230918884, -0.16322658956050873, -0.21580734848976135, -0.5426452159881592, -0.030662892386317253, 0.6024824976921082, -0.1314665973186493, -0.02532750926...
it did very well. It filters not only HTML, but also CSS and URLs. Once you narrow elements and attributes to innocent ones, the pitfalls are in attribute content – `javascript:` pseudo-URLs (IE allows tab characters in protocol name - `java&#09;script:` still works) and CSS properties that trigger JS. Parsing of URL...
[ 0.16053703427314758, -0.032121140509843826, 0.38177990913391113, 0.05465986207127571, -0.24424274265766144, -0.20547059178352356, 0.3807833194732666, -0.12651120126247406, -0.0852188691496849, -0.5703487992286682, 0.05248313397169113, 0.36591166257858276, -0.3473469018936157, 0.08648452162...
extension).
[ -0.09244582802057266, -0.25454798340797424, 0.49988195300102234, -0.40174421668052673, 0.18192169070243835, 0.5096080303192139, -0.016228854656219482, -0.6128342151641846, -0.20870248973369598, -0.5847631096839905, -0.49202993512153625, 0.25468316674232483, -0.07782154530286789, 0.09855210...
Has anyone used [Pear: Spreadsheet\_Excel\_Writer](http://pear.php.net/package/Spreadsheet_Excel_Writer/)? The [Formatting Tutorial](http://pear.php.net/manual/en/package.fileformats.spreadsheet-excel-writer.intro-format.php) lists a script similar to what I'm working with: (trimmed down) ``` <?php require_once 'Spre...
[ 0.20775826275348663, 0.36211320757865906, 0.0851086899638176, -0.15497833490371704, -0.004253309685736895, 0.17124390602111816, 0.23844361305236816, 0.08496901392936707, -0.2480859011411667, -0.42415064573287964, 0.01964537613093853, 0.6761376857757568, -0.14304286241531372, -0.27275505661...
such useful information. I can tell you the copyright is ***2002-2003***; so, anywhere from version 0.1 to 0.6. [**Edit**] Sorry, thought I'd mentioned this somewhere.. This is someone else's script that I've been assigned to fix. Here is some sample code: ``` <?php require_once 'Spreadsheet/Excel/Writer.php'; $wo...
[ 0.18350280821323395, 0.3396032750606537, 0.2325921207666397, -0.1005585789680481, 0.04606463760137558, -0.19047383964061737, 0.07167771458625793, -0.04655250906944275, -0.24330782890319824, -0.4826175272464752, -0.048532839864492416, 0.3801479935646057, -0.30116453766822815, 0.125393003225...
I've got a file whose format I'm altering via a python script. I have several camel cased strings in this file where I just want to insert a single space before the capital letter - so "WordWordWord" becomes "Word Word Word". My limited regex experience just stalled out on me - can someone think of a decent regex to d...
[ 0.18455150723457336, 0.1034218817949295, 0.32013872265815735, -0.2175741046667099, 0.05371995270252228, 0.18895748257637024, 0.345003217458725, 0.048546966165304184, -0.19309085607528687, -0.599084198474884, -0.043799836188554764, 0.6648684144020081, -0.36045798659324646, 0.149213299155235...
Is it possible to play video from data that has been embedded in a swf at compile time (with the `[Embed]` metatag)? The "Import Video->Embed" feature provided by Flash CS3 etc. is not acceptable because it has many severe limitations (including sound synchronization issues, a maximum number of frames, and other cavea...
[ 0.66888827085495, -0.10396047681570053, 0.7431917190551758, 0.22427789866924286, -0.06058220937848091, -0.6494393944740295, 0.14654101431369781, -0.12150325626134872, -0.33368808031082153, -0.4814998209476471, -0.3611706495285034, 0.6924707293510437, -0.39583003520965576, -0.06627291440963...
to play the embedded `ByteArray`: ``` public class Main extends MovieClip { [Embed(source="sample.flv", mimeType="application/octet-stream")] private var SampleVideo:Class; public function Main():void { var video:Video = new Video(320, 240); addChild(video); var netConnection...
[ 0.19034245610237122, -0.44040364027023315, 0.4904725253582001, -0.06863246858119965, 0.09875646978616714, -0.06141401827335358, 0.013200074434280396, -0.23721301555633545, -0.24091611802577972, -0.30730772018432617, -0.30415818095207214, 0.8980346322059631, -0.2855178713798523, 0.135492458...
video.attachNetStream(netStream); var byteArray:ByteArray = new SampleVideo(); netStream.play(null); netStream.appendBytes(byteArray); } } ```
[ 0.36686888337135315, -0.37441807985305786, 0.5841491222381592, 0.13098402321338654, 0.05535826086997986, -0.10689649730920792, 0.09776461124420166, -0.2862999141216278, -0.43138211965560913, -0.34478479623794556, -0.21032963693141937, 0.5942540764808655, -0.6042451858520508, 0.416245818138...
For my Java apps with very long classpaths, I cannot see the main class specified near the end of the arg list when using ps. I think this stems from my Ubuntu system's size limit on /proc/pid/cmdline. How can I increase this limit? You can't change this dynamically, the limit is hard-coded in the kernel to PAGE\_SIZE ...
[ -0.0003874734102282673, -0.020322423428297043, 0.7175976634025574, -0.39148303866386414, -0.044492628425359726, 0.5141102075576782, 0.3964429497718811, -0.467075914144516, -0.6169701814651489, -0.7626939415931702, -0.18456856906414032, 0.5500648617744446, -0.4666544795036316, -0.0933414399...
if (!mm) 278 goto out; 279 if (!mm->arg_end) 280 goto out_mm; /* Shh! No looking before we're done */ 281 282 len = mm->arg_end - mm->arg_start; 283 284 if (len > PAGE_SIZE) 285
[ -0.06667675077915192, 0.3105242848396301, 0.6706609725952148, -0.4957466125488281, -0.7032740712165833, 0.43206408619880676, 0.47226664423942566, -0.39446142315864563, -0.5296008586883545, -0.050086792558431625, 0.20287854969501495, 0.33694690465927124, -0.151446133852005, -0.2140327095985...
len = PAGE_SIZE; 286 287 res = access_process_vm(task, mm->arg_start, buffer, len, 0); ```
[ 0.051131948828697205, 0.08843914419412613, 0.41352370381355286, -0.18310219049453735, -0.05413546785712242, 0.4448385238647461, 0.21679681539535522, -0.15048997104167938, -0.7125712633132935, -0.31460511684417725, 0.026451004669070244, 0.5729514360427856, -0.24945802986621857, 0.1520782709...
we have users in each region of the world. I would like to create an environment picker that shows up a map on the form and has a link for each region. So if i was in NY i would click NY and would get the NY environment. Any ideas of doing this dynamically in winforms as opposed to having a static map image. I may be m...
[ 0.2771780788898468, -0.3122527599334717, 0.5356616973876953, 0.309293657541275, 0.3338230550289154, -0.3555621802806854, -0.02181391976773739, 0.3199097216129303, -0.672055721282959, -0.7484089732170105, 0.20389142632484436, 0.13865356147289276, -0.21938367187976837, 0.2198309600353241, ...
free to disregard. You are, in effect, dealing with an image of a world (or national, or regional, etc.) map, with clickable "hotspots." Given that, you need some form of image to start with. :) Now you have two choices: You can embed a bitmap image of your map in the application, or you can draw it yourself using GD...
[ 0.5675932168960571, -0.3185393810272217, 0.5835484862327576, 0.605023205280304, 0.06757787615060806, -0.2554348111152649, 0.0524631068110466, 0.09127269685268402, -0.28386542201042175, -0.6376063227653503, -0.31236007809638977, 0.3793266713619232, -0.5292347073554993, -0.04242565855383873,...
change the mouse pointer on the MouseOver event if the user is in the defined hotspots. Either way, it's a great UI -- very visual, very in tune with how people think -- but it will be time-intensive to code correctly.
[ 0.07930924743413925, -0.3359662592411041, 0.3637806475162506, 0.20741088688373566, 0.28055211901664734, -0.3629313111305237, 0.3041708767414093, 0.12944647669792175, -0.01787479594349861, -0.7728584408760071, -0.11700297147035599, 0.475678950548172, -0.06859774142503738, -0.287516623735427...
I'm considering the best way to design a permissions system for an "admin" web application. The application is likely to have many users, each of whom could be assigned a certain role; some of these users could be permitted to perform specific tasks outside the role. I can think of two ways to design this: one, with a...
[ 0.3022614121437073, 0.22167445719242096, 0.20874027907848358, 0.11700605601072311, 0.23457440733909607, -0.04845454543828964, -0.18628667294979095, -0.2099122405052185, -0.03797883167862892, -0.44459813833236694, -0.08520908653736115, 0.4738449454307556, -0.25703340768814087, 0.04766115173...
Manage Promotions Manage Orders 1 true true true true 2 false
[ 0.18930383026599884, 0.3217948079109192, 0.1364002823829651, 0.15844464302062988, -0.1391422301530838, -0.18812620639801025, 1.0215131044387817, -0.2161891758441925, -0.05328990891575813, -0.2764202654361725, -0.2855764329433441, 0.6295289397239685, -0.13885784149169922, -0.108052037656307...
true true true 3 false false false true ``` Another way I thought
[ 0.3033750653266907, 0.6817213892936707, 0.05154937133193016, -0.3242998421192169, -0.37223705649375916, -0.27213048934936523, 1.0107804536819458, -0.18881019949913025, 0.22042441368103027, -0.03863261640071869, -0.08850672841072083, 0.5907496213912964, -0.23322619497776031, 0.1773554384708...
of was to use a bit mask to store these user permissions. This would limit the number of tasks that could be managed to 31 for a 32-bit signed integer, but in practice we're unlikely to have more than 31 specific tasks that a user could perform. This way, the database schema would be simpler, and we wouldn't have to ch...
[ -0.4733378291130066, -0.020339827984571457, 0.06832753866910934, 0.35465922951698303, 0.1033097356557846, 0.408002108335495, 0.2919364273548126, -0.4793509244918823, -0.32948267459869385, -0.28886035084724426, -0.1769416630268097, 0.36520180106163025, -0.40769073367118835, 0.03063882514834...
00001111 2 00000111 3 00000001 ``` What mechanisms have people here typically used, and why? Thanks! I think it's a general rule of thumb to stay away from mystical bitstrings that encode the meaning of the universe. While perhaps clunkier, having a table of possible permissions, a tab...
[ 0.38850313425064087, 0.49290820956230164, 0.2599020004272461, 0.3800536096096039, 0.001381640206091106, -0.34264233708381653, 0.2641840875148773, 0.11091776937246323, -0.07450203597545624, -0.5992013216018677, -0.27111154794692993, 0.22782248258590698, -0.05214918404817581, 0.1720713227987...
It also makes your queries and maintenance (especially for the new guy) a lot easier.
[ 0.5217028260231018, 0.19574511051177979, 0.2042611688375473, 0.24573370814323425, 0.2430964857339859, -0.07167948782444, 0.04267457500100136, 0.11456133425235748, -0.09254900366067886, -0.3489009141921997, 0.07251262664794922, 0.4891578257083893, 0.3703978359699249, -0.2402176409959793, ...
Recently, someone asked about an [algorithm for reversing a string in place in C](https://stackoverflow.com/questions/198199/how-do-you-reverse-a-string-in-place-in-c-or-c). Most of the proposed solutions had troubles when dealing with non single-byte strings. So, I was wondering what could be a good algorithm for deal...
[ 0.20727267861366272, 0.05258465185761452, -0.04390747472643852, -0.25290000438690186, -0.08342953771352768, 0.3003395199775696, 0.06841589510440826, 0.2747383713722229, -0.44824740290641785, -0.2577919363975525, 0.09302017837762833, 0.14178389310836792, -0.21291273832321167, 0.104190587997...
as long as it could be reasonably understood by anyone who is familiar with an imperative language. And, as this is intended to see how such an algorithm could be implemented at a low-level (by low-level I just mean dealing with bytes), the idea is to avoid using libraries for the core code. **Notes:** I'm interested...
[ 0.2321111261844635, 0.11060560494661331, -0.14617185294628143, 0.12434853613376617, -0.040581896901130676, 0.12781862914562225, 0.18243440985679626, 0.16252580285072327, -0.05541275814175606, -0.4087221622467041, -0.017654910683631897, 0.5565510988235474, -0.17278297245502472, -0.250056892...
just out of curiosity and as an exercise. I'm using C# byte arrays so I'm assuming you can get the length of the string without running though the string until you find a NUL. That is, I'm not accounting for the complexity of finding the length of the string. But if you're using C, for instance, you could factor that ...
[ 0.3047510087490082, 0.24376463890075684, -0.10357104241847992, -0.16065210103988647, -0.16310696303844452, 0.37567761540412903, 0.17543505132198334, -0.10431650280952454, -0.3640444576740265, -0.3814202845096588, 0.06614590436220169, 0.27614837884902954, -0.01802496239542961, 0.09509034454...
means that there are "combining characters", i.e., characters / code points that are only valid in combination with other "base" characters / code points, a look-up table of such characters could be used to preserve the order of the "global" character ("base" + "combining" characters) when reversing. I'd make one pass ...
[ 0.024917684495449066, 0.0675102025270462, 0.26337459683418274, 0.13384898006916046, 0.06549277156591415, 0.0989115908741951, 0.3143736720085144, 0.030960189178586006, -0.4089817702770233, -0.18226590752601624, -0.18000094592571259, 0.22755177319049835, -0.259872168302536, -0.24065560102462...
How can I make xargs execute the command exactly once for each line of input given? It's default behavior is to chunk the lines and execute the command once, passing multiple lines to each instance. > From <http://en.wikipedia.org/wiki/Xargs>: > > > find /path -type f -print0 | xargs -0 rm > > > In this example,...
[ 0.08858926594257355, -0.13858243823051453, 0.4500155448913574, -0.21050907671451569, -0.25152650475502014, 0.058360978960990906, 0.14935992658138275, -0.4110235869884491, 0.010087532922625542, -0.5995053052902222, -0.04501878097653389, 0.3655393123626709, -0.5317718386650085, -0.0862743929...
know that find has the "exec" flag. I am just quoting an illustrative example from another resource. The following will only work if you do not have spaces in your input: ``` xargs -L 1 xargs --max-lines=1 # synonym for the -L option ``` from the man page: ``` -L max-lines Use at most max-lines nonblank i...
[ -0.035701509565114975, -0.08629252761602402, 0.3025802969932556, 0.12143979221582413, 0.4109859764575958, -0.12295576184988022, 0.2531769275665283, 0.11868815869092941, 0.09430288523435593, -0.56915283203125, -0.3443795442581177, 0.6828992962837219, -0.24157343804836273, 0.0360900759696960...
Is there a way (hacky will do) to allow a user to go back to a previous version of a [ClickOnce](http://en.wikipedia.org/wiki/ClickOnce) network deployed application? I've looked in the docs and API and there seems to be no way. You **can** selectively choose if you would like to update, but once updated there is, see...
[ 0.5193194150924683, -0.18394175171852112, 0.15310166776180267, 0.045108478516340256, 0.2236674726009369, -0.04016275703907013, -0.11401650309562683, 0.27097055315971375, -0.525028645992279, -0.47491416335105896, 0.175882026553154, 0.07833722233772278, -0.43920984864234924, 0.31984439492225...
on a different version. The application even tells the database which version the user wants, so they could in theory change their version and then simply restart the application. [Fine Grained Versioning with ClickOnce](http://www.infoq.com/articles/ClickOnce-Versioning)
[ 0.17335385084152222, -0.14278759062290192, 0.5165594816207886, 0.059601034969091415, 0.4434036612510681, -0.4063991904258728, 0.06868860870599747, 0.4056147038936615, -0.5512475967407227, -0.4211750030517578, -0.4115626811981201, 0.6123063564300537, -0.36787787079811096, 0.0454878509044647...
* What is the main difference between `int.Parse()` and `Convert.ToInt32()`? * Which one is to be preferred * If you've got a string, and you expect it to always be an integer (say, if some web service is handing you an integer in string format), you'd use [**`Int32.Parse()`**](http://msdn.microsoft.com/en-us/library/s...
[ -0.20952142775058746, -0.18662859499454498, 0.22167553007602692, 0.03508065268397331, -0.20339855551719666, 0.06415318697690964, 0.12661541998386383, -0.26623326539993286, -0.27644386887550354, -0.5575510859489441, -0.20523661375045776, 0.43928250670433044, -0.32905784249305725, -0.0157233...
`Int32.Parse()` does. That also means that `Convert.ToInt32()` is probably a wee bit slower than `Int32.Parse()`, though in practice, unless you're doing a very large number of iterations in a loop, you'll never notice it.
[ -0.1417849212884903, -0.23745863139629364, 0.05478604510426521, -0.1660805642604828, -0.09691909700632095, -0.24434085190296173, 0.7151220440864563, -0.10961378365755081, -0.13858546316623688, -0.6119920611381531, 0.31310588121414185, 0.49980223178863525, -0.053529974073171616, 0.011292517...
`$0` is the variable for the top level Ruby program, but is there one for the current method? Even better than my first answer you can use \_\_method\_\_: ``` class Foo def test_method __method__ end end ``` This returns a symbol – for example, `:test_method`. To return the method name as a string, call `__m...
[ 0.14025254547595978, 0.1024363785982132, 0.21889713406562805, -0.244319349527359, 0.026725323870778084, -0.25758814811706543, 0.38437074422836304, -0.19592508673667908, 0.10083021223545074, -0.3139593005180359, -0.1825508326292038, 0.4588850140571594, -0.407808393239975, 0.1088626980781555...
Newish to Oracle programming (from Sybase and MS SQL Server). What is the "Oracle way" to avoid filling the trans log with large updates? In my specific case, I'm doing an update of potentially a very large number of rows. Here's my approach: ``` UPDATE my_table SET a_col = null WHERE my_table_id IN (SELECT my_table...
[ 0.2608952522277832, 0.08778829127550125, 0.37458017468452454, -0.2077198326587677, -0.054185740649700165, -0.13512739539146423, -0.012133940123021603, -0.37363892793655396, -0.2632143795490265, -0.7316880226135254, 0.14296473562717438, 0.7024596333503723, -0.2665545344352722, 0.14506423473...
runs of, say 1000 records. On top of it, the total query time will be most likely be higher compared to running a single large SQL. There's no real way to address the UNDO/REDO log issue in UPDATEs. With INSERTs and CREATE TABLEs you can use a DIRECT aka APPEND option, but I guess this doesn't easily work for you.
[ 0.38546323776245117, -0.09529144316911697, 0.21016058325767517, 0.3917616903781891, 0.020895881578326225, -0.0750286653637886, 0.39292195439338684, 0.00492098880931735, -0.33316469192504883, -0.471226304769516, 0.24514128267765045, 0.4100204110145569, -0.3673034906387329, 0.247980788350105...
I am planning to move my vmWare's Virtual Machines from a Windows host to a Linux host (Ubuntu). It is possible to run vmWare Server in a Linux host that does not have the graphical environment (does not have X)? I just wonder how the graphical setup of Windows/Linux guest work in this case. Thanks in advance for you...
[ 0.38645419478416443, 0.09573029726743698, 0.31130772829055786, 0.19860900938510895, -0.17155636847019196, -0.01629640907049179, 0.11920032650232315, 0.25289222598075867, -0.06727591902017593, -1.0516283512115479, 0.1388644129037857, 0.6652508974075317, 0.00807266216725111, 0.16946460306644...
I want to be able to write a lambda/Proc in my Ruby code, serialize it so that I can write it to disk, and then execute the lambda later. Sort of like... ``` x = 40 f = lambda { |y| x + y } save_for_later(f) ``` Later, in a separate run of the Ruby interpreter, I want to be able to say... ``` f = load_from_before z...
[ 0.19752584397792816, 0.41855281591415405, 0.210876002907753, -0.10465329140424728, 0.0037491279654204845, -0.041387852281332016, 0.3370300233364105, -0.28012287616729736, -0.18592382967472076, -0.35569727420806885, -0.04382111504673958, 0.6936237215995789, -0.3574400544166565, -0.167999252...
answer below](https://stackoverflow.com/questions/199603/how-do-you-stringize-serialize-ruby-code/199803#199803) is nice, but it does not close over free variables (like `x`) and serialize them along with the lambda. So in my example ... ``` x = 40 s = save_for_later { |y| x + y } # => "lambda { |y|\n (x + y)\n}" ``...
[ -0.07797300070524216, 0.09712322801351547, 0.5018737316131592, -0.1445721983909607, -0.13482803106307983, -0.08536548912525177, 0.31375887989997864, -0.3690309226512909, -0.1974557340145111, -0.36817803978919983, -0.10076189786195755, 0.4523475170135498, -0.37970876693725586, -0.0210957042...
c.class_eval do define_method :serializable, &block end s = Ruby2Ruby.translate(c, :serializable) s.sub(/^def \S+\(([^\)]*)\)/, 'lambda { |\1|').sub(/end$/, '}') end x = 40 s = save_for_later { |y| x + y } # => "lambda { |y|\n (x + y)\n}" g = eval(s) # => #<Proc:0x4037bb2c@(eval):1> g.call(2) # => 42 ``` ...
[ -0.3205544352531433, -0.01825363002717495, 0.30897119641304016, -0.02604488842189312, -0.0310368575155735, 0.04426394775509834, 0.38481441140174866, -0.33627772331237793, -0.2439505159854889, -0.3261922597885132, -0.13808804750442505, 0.5179385542869568, -0.33832600712776184, 0.18026649951...
local to the serialization code, not the caller. So unfortunately, we must push the grabbing of local variables and their values to the caller. Maybe this is a good thing, though, because in general, finding all free variables in a piece of Ruby code is [undecidable](http://en.wikipedia.org/wiki/Undecidable). Plus, id...
[ -0.050623420625925064, -0.06941498070955276, 0.13064725697040558, -0.018596837297081947, -0.16071277856826782, -0.29027652740478516, 0.6373429894447327, 0.12969601154327393, -0.10249865055084229, -0.6268909573554993, -0.22077646851539612, 0.4496541917324066, -0.5402565002441406, 0.39177531...
local_vars.map { |var,val| "#{var} = #{val.inspect}; " }.join s.sub(/^def \S+\(([^\)]*)\)/, 'lambda { |\1| ' + locals).sub(/end$/, '}') end x = 40 s = save_for_later(local_variables.map{ |v| [v,eval(v)] }) { |y| x + y } # => "lambda { |y| _ = 40; x = 40;\n (x + y)\n}" # In a separate run of Ruby, where x is not de...
[ -0.27331963181495667, -0.5353062748908997, 0.7254896759986877, -0.1413421928882599, -0.014789675362408161, 0.003968693781644106, 0.6455996632575989, -0.04003554955124855, -0.19342079758644104, -0.7154934406280518, -0.3957052230834961, 0.5707074999809265, -0.38547730445861816, 0.32220390439...
How can I rotate a layer using Core Animation around an arbitrary point? ( In my case a point that is not inside the layer I want to rotate ) I prefer doing this without changing the anchor point, because unless I get something wrong every time I change the anchor point it also changes the position of the layer. I tr...
[ 0.07596611231565475, -0.12329108268022537, 0.7920367121696472, -0.09903749078512192, -0.1429654359817505, 0.11923033744096756, 0.035038404166698456, -0.3177263140678406, -0.1615426391363144, -0.6244021058082581, -0.21601340174674988, 0.25607427954673767, 0.036100149154663086, 0.45961698889...
0.0, 0.0, 1.0); rotationTransform = CATransform3DTranslate(rotationTransform, 0.0, 100.0, 0.0) shape1.layer.transform = rotationTransform; [UIImageView commitAnimations]; ``` It looks like the rotation axis is moving during the rotate. I finaly did it by creating a new bigger layer with it's center at my rotation axi...
[ 0.07905463129281998, -0.31171584129333496, 0.997801661491394, -0.21420392394065857, -0.17930002510547638, 0.08192332088947296, 0.29096218943595886, -0.29676201939582825, -0.17855146527290344, -0.7730122208595276, -0.1702677309513092, 0.22985972464084625, 0.09658822417259216, 0.424320906400...
So far I've figured out how to pass Unicode strings, bSTRs, to and from a Euphoria DLL using a Typelib. What I can't figure out, thus far, is how to create and pass back an array of BSTRs. The code I have thus far (along with `include`s for EuCOM itself and parts of Win32lib): ``` global function REALARR() sequence...
[ -0.031676068902015686, -0.011937208473682404, 0.5347643494606018, -0.06499595940113068, 0.02257550321519375, 0.16034606099128723, 0.3924134373664856, -0.2957580089569092, 0.09981336444616318, -0.8241424560546875, -0.3019826412200928, 0.23602226376533508, -0.3629671037197113, 0.077576719224...
an array of strings"), entry("REALARR") ] void __stdcall REALARR( [out,retval] VARIANT* res ); ``` And the test code, in VB6 is: ``` ... Dim v() as String V = REALARR() ... ``` So far all I've managed to get is an error '0' from the DLL. Any ideas? Anyone? You should use the `create_safearray()` functio...
[ 0.3802431523799896, 0.17979945242404938, 0.33054155111312866, -0.12925146520137787, 0.09147258847951889, -0.14821483194828033, 0.6773210763931274, -0.7020968794822693, 0.014605662785470486, -0.3707176744937897, -0.023500127717852592, 0.7306838035583496, -0.46223941445350647, 0.259638905525...
) ```
[ 0.35158827900886536, 0.5452352166175842, 0.3079487383365631, -0.08417292684316635, 0.14663144946098328, -0.18958768248558044, 0.5526835322380066, -0.10771156847476959, 0.14781081676483154, -0.3617789149284363, -0.3585582971572876, 0.4404362738132477, -0.3003185987472534, 0.2931286096572876...
At times I find a very [brittle test](http://www.thedeveloperday.com/avoiding-brittle-tests-testing-output/) to be a good thing because when I change the intent of the code under test I want to make sure my unit test breaks so that I'm forced to refactor ... is this approach not recommended when building a large suite ...
[ 0.5613935589790344, 0.5010207295417786, 0.034520525485277176, 0.09829941391944885, 0.006939554587006569, -0.25877809524536133, 0.42663732171058655, 0.26483261585235596, -0.018960166722536087, -0.3099075257778168, 0.07039707154035568, 0.8112196922302246, 0.37272441387176514, 0.5931400060653...
developers get used to false positives from unit tests and begin to ignore them. Then the unit tests fall behind the production code and either get left behind or require a major effort to update. I would say you should always aim for the least brittle tests you can that fully test your function/module, but if you hav...
[ 0.3320492208003998, 0.5717431902885437, -0.2952873408794403, 0.313778281211853, 0.024267304688692093, -0.11258669197559357, 0.7096370458602905, 0.22186648845672607, 0.11016827821731567, -0.4021070599555969, -0.18822462856769562, 0.7882028818130493, 0.22307978570461273, 0.041499827057123184...
What is the best method of performing an scp transfer via the Java programming language? It seems I may be able to perform this via JSSE, JSch or the bouncy castle java libraries. None of these solutions seem to have an easy answer. I ended up using [Jsch](http://www.jcraft.com/jsch/)- it was pretty straightforward, an...
[ 0.043709345161914825, -0.170302614569664, 0.19076964259147644, -0.042000360786914825, -0.03869100660085678, 0.08295756578445435, 0.12021464109420776, 0.12957128882408142, -0.34059804677963257, -0.6356953382492065, 0.1535484343767166, 0.1411266326904297, -0.150862917304039, -0.1404786109924...
How should I show users which fields are compulsory in a windows forms application. I have considered changing the label color or maybe the background color of the text box. I use an error provider to show a red exclamation mark next to the field, however this is only visible after they have clicked the save button. ...
[ 0.5086521506309509, 0.21058213710784912, 0.5431653261184692, 0.07069116085767746, 0.2568000257015228, -0.3401453495025635, 0.3871467113494873, -0.344461053609848, -0.04423211142420769, -0.5665689706802368, -0.14762958884239197, 0.34580594301223755, 0.014424835331737995, -0.2594046294689178...
Is there a .NET Framework compiler for the Ruby language? I've heard of the DLR (Dynamic Language Runtime), is this going to enable Ruby to be used with .NET development? [IronRuby](http://www.ironruby.net/) is a project supported by Microsoft, built on the Dynamic Language Runtime.
[ 0.44328269362449646, 0.09807524085044861, -0.20124870538711548, -0.061469703912734985, -0.34463027119636536, -0.051457684487104416, 0.2445952296257019, 0.1702740639448166, -0.03547383099794388, -0.3113190233707428, 0.056783780455589294, 0.44058167934417725, -0.5076397657394409, -0.07982027...
I have a combo box on a WinForms app in which an item may be selected, but it is not mandatory. I therefore need an 'Empty' first item to indicate that no value has been set. The combo box is bound to a DataTable being returned from a stored procedure (I offer no apologies for Hungarian notation on my UI controls :p )...
[ -0.01772359013557434, 0.06057145819067955, 0.6633009314537048, 0.07152736186981201, 0.031694550067186356, -0.06891123205423355, 0.23656880855560303, -0.5803137421607971, -0.1881234496831894, -0.7384019494056702, -0.3567717373371124, 0.21441395580768585, -0.23378920555114746, 0.153775483369...
UI logic. **Update:** It was the DataTable.NewRow() that I had blanked on, thanks. I have upmodded you all (all 3 answers so far anyway). I am trying to get the Iterator pattern working before I decide on an 'answer' **Update:** I think this edit puts me in Community Wiki land, I have decided not to specify a single ...
[ -0.2564091086387634, -0.04133332148194313, 0.5572246313095093, 0.14719939231872559, -0.39463430643081665, -0.12485898286104202, 0.27424174547195435, -0.0638505294919014, -0.09109966456890106, -0.913303017616272, -0.11260857433080673, 0.6307592391967773, -0.34974589943885803, 0.134078025817...
DataView and sort it using ObjectLogicalName column. This will make the newly added row the first row in DataView. ``` DataView newView = new DataView(hierarchies, // source table "", // filter "ObjectLogicalName", // sort
[ 0.029856912791728973, -0.12906207144260406, 0.9617427587509155, -0.04521085321903229, -0.08279324322938919, -0.04296420142054558, 0.10552310943603516, -0.29224035143852234, -0.18240995705127716, -0.846793532371521, -0.3044544458389282, 0.48594948649406433, -0.16707268357276917, 0.238192021...
by column DataViewRowState.CurrentRows); // rows with state to display ``` Then set the dataview as `DataSource` of the `ComboBox`. 2. If you really don't want to add a new row as mentioned above. You can allow the user to set the `ComboBox` value to null by simply handling the "Delete" keypress event. When a u...
[ -0.011530647985637188, -0.36379092931747437, 0.7102135419845581, -0.13765615224838257, -0.045893922448158264, -0.09958625584840775, 0.0861998051404953, -0.13127252459526062, -0.2241469919681549, -0.6158603429794312, -0.08159146457910538, 0.5285977125167847, -0.2645397186279297, 0.138052642...
I have only a basic knowledge of css, is it possible to inherit a property from one style into another style. So for instance I could inherit the font size specified in my default paragrah tag settings into my hyperlink tags. The reason I want to do this is to make it easier to maintain multiple styles. You can define...
[ 0.44555482268333435, 0.18485605716705322, 0.39824846386909485, -0.13651728630065918, 0.09525167942047119, 0.17122411727905273, 0.035077620297670364, -0.42236557602882385, -0.2132343202829361, -0.888373851776123, -0.015065189450979233, 0.5409672856330872, -0.007269092369824648, -0.035178869...
in a style sheet generally override properties defined earlier. **Extra:** If you haven't already, I recommend getting the [Firebug](http://walmart.ca/wps-portal/storelocator/Canada-HealthAndBeauty.jsp?selection=listingDetails&page=hb&lang=null&assetId=11727&imageId=39727&suggestedItem=&priceType=1&page=null&departmen...
[ 0.677367627620697, 0.20538420975208282, 0.6253714561462402, -0.03151048347353935, 0.0026222325395792723, -0.3718681037425995, 0.11518149077892303, -0.20102602243423462, -0.1053176000714302, -0.6602268815040588, -0.2919912040233612, 0.4451923370361328, -0.2713058888912201, -0.23034313321113...
If I have a resource that a requesting client doesn't have access to but I want to notify them about an alternate resource for which they *do* have access, should I send them a **`403 Forbidden`** with the alternate resource's URI in the header or content? Or should I just send a **`303 See Other`** redirect to the res...
[ 0.18946504592895508, 0.005060141906142235, -0.18393473327159882, 0.5372399091720581, 0.09314002096652985, 0.1265065222978592, 0.44392862915992737, 0.1453845202922821, -0.40607979893684387, -0.6834211349487305, -0.0446322001516819, 0.41809892654418945, -0.4466414451599121, 0.304014772176742...
might find this solution better. If notifying the user that access is denied is not that important you might want to use a 302 (temporary redirect) instead or, if the user will never have access to the forbidden content, a 301 (permanent redirect).
[ -0.013390839099884033, -0.22075553238391876, 0.34444931149482727, 0.45579689741134644, -0.027921397238969803, -0.47845420241355896, 0.28588545322418213, 0.18376277387142181, -0.3402332365512848, -0.4273405373096466, -0.3795730769634247, 0.31118011474609375, -0.24510838091373444, 0.30183973...
I have a pictures table that has the following columns: ``` PICTURE_ID int IDENTITY(1000,1) NOT NULL, CATEGORY_ID int NOT NULL, IMGDATA image NOT NULL, CAPTION1 text COLLATE SQL_Latin1_General_CP1_CI_AS NULL, MIME_TYPE nchar(20) NOT NULL DEFAULT ('image/jpeg'), IMGTHDATA image NOT NULL ``` In my code-behind I have t...
[ 0.07806264609098434, 0.10604209452867508, 0.7021648287773132, -0.017417417839169502, -0.18106596171855927, 0.025085628032684326, 0.25593653321266174, -0.4874425530433655, -0.20649895071983337, -0.6578645706176758, 0.053545575588941574, 0.3923206627368927, -0.30861809849739075, 0.1242397129...
the simplest way of having it render the image? you can make a page that returns the image as a stream and reference that page from an Image column (or an IMG tag in a template column); see [GridViewDisplayBlob.aspx](http://www.netomatix.com/development/GridViewDisplayBlob.aspx)
[ 0.38142088055610657, -0.44525042176246643, 0.40311551094055176, 0.15224677324295044, -0.26059094071388245, 0.029268814250826836, -0.12342509627342224, -0.0782560259103775, -0.08687736839056015, -0.9603860378265381, 0.11028986424207687, 0.44632500410079956, -0.33094310760498047, -0.12725485...
I am currently trying to use NAnt and CruiseControl.NET to manage various aspects of my software development. Currently, NAnt handles just about everything, including replacing environment specific settings *(e.g., database connection strings)* based on an input target that I specify on the command line. CruiseControl...
[ 0.13934999704360962, 0.033808112144470215, 0.5457506775856018, -0.006481812335550785, 0.2699575126171112, -0.11813522130250931, 0.22960256040096283, -0.03471345454454422, -0.33608561754226685, -0.8891165852546692, 0.11914839595556259, 0.9371212124824524, 0.18555094301700592, 0.065556757152...
less frequently. Test and stage deployments only occur when the application is ready for QA. I can easily do this by specifying multiple projects, one for each environment. However, I already have many projects configured, one for each milestone in within my application. If I have to setup 3 projects for each mileston...
[ 0.19370649755001068, -0.1231769323348999, 0.47336524724960327, 0.058801595121622086, 0.3626806139945984, -0.07670675218105316, 0.27294400334358215, -0.11629137396812439, -0.3891597390174866, -0.6350484490394592, 0.16027982532978058, 0.6648566722869873, 0.22415587306022644, -0.0797481462359...
would be made for each environment that is checked, whether the build was forced or automatic. It would be even better if I could default the checked state.* Unfortunately, you can't do anything like that with CruiseControl.NET. It's a good idea, so you might want to submit it as a feature request.
[ 0.4123338758945465, -0.2981753647327423, 0.6283247470855713, 0.09184057265520096, 0.21641840040683746, -0.3842078149318695, 0.3321411907672882, 0.23492980003356934, -0.22488157451152802, -0.530628502368927, 0.16529083251953125, 0.6339178681373596, 0.03358486667275429, 0.13914872705936432, ...
Is there a way to change the color of the background for a MDIParent windows in MFC (2005)? I have tried intercepting ON\_WM\_CTLCOLOR AND ON\_WM\_ERASEBKGND but neither work. OnEraseBkgnd does work, but then it gets overwritten by the standard WM\_CTL color. Cheers The CMDIFrameWnd is actually covered up by another ...
[ 0.11968670785427094, -0.106988824903965, 0.33082181215286255, -0.19148266315460205, -0.07074453681707382, 0.13820798695087433, 0.22163492441177368, 0.18557557463645935, -0.3990377187728882, -0.6692578196525574, 0.16587117314338684, 0.4160030484199524, -0.3803756833076477, -0.00328831723891...
I'm trying to do a domain lookup in vba with something like this: ``` DLookup("island", "villages", "village = '" & txtVillage & "'") ``` This works fine until txtVillage is something like Dillon's Bay, when the apostrophe is taken to be a single quote, and I get a run-time error. I've written a trivial function th...
[ 0.49383917450904846, 0.12328462302684784, 0.3671290874481201, 0.21436269581317902, -0.07951641082763672, -0.07629311829805374, 0.35970866680145264, 0.25789767503738403, -0.4767741858959198, -0.38649222254753113, -0.04731233790516853, 0.4279535114765167, -0.16506816446781158, 0.108361780643...
"village = '" & Replace(txtVillage, "'", "''") & "'") ```
[ 0.17415818572044373, 0.23045159876346588, 0.5962338447570801, -0.007730270270258188, 0.05866936594247818, 0.0917869284749031, 0.3421349823474884, -0.054832227528095245, -0.046949442476034164, -0.5333014130592346, -0.7230920195579529, 0.17159242928028107, -0.12466762214899063, -0.0483700595...
I am doing a BHO (extension for IE) that receives events on other thread. When I access the DOM from that other thread, IE crashes. Is it possible to make the DOM accessed from the same thread as the main BHO thread so that it does not crash? It seems like a general COM multithreading problem, which I don't understan...
[ 0.1147344782948494, -0.030949071049690247, 0.2937760651111603, -0.019927319139242172, -0.10352398455142975, -0.3240247368812561, 0.4011843502521515, -0.17793622612953186, -0.39464884996414185, -0.6208248138427734, -0.1805993765592575, 0.4930485486984253, -0.3694097399711609, 0.174341410398...
The WebBrowser control has a property called "IsWebBrowserContextMenuEnabled" that disables all ability to right-click on a web page and see a context menu. This is very close to what I want (I don't want anyone to be able to right-click and print, hit back, hit properties, view source, etc). The only problem is this ...
[ -0.07968659698963165, -0.07313062250614166, 0.5147593021392822, 0.15592391788959503, -0.23843295872211456, -0.4156762659549713, 0.5887441039085388, -0.015101189725100994, 0.0607277974486351, -0.4264698922634125, -0.011021939106285572, 0.8923763036727905, -0.559280276298523, 0.2713283002376...
menu, but allow the one that appears in TextBoxes. Anyone know how I would do that? The WebBrowser.Document.ContextMenuShowing event looks promising, but doesn't seem to properly identify the element the user is right-clicking on, either through the HtmlElementEventArgs parameter's "FromElement" and "ToElement" propert...
[ 0.21750278770923615, 0.06605944037437439, 0.5826010704040527, -0.15329767763614655, -0.11164186894893646, 0.09505634754896164, 0.2594025433063507, -0.11291415989398956, -0.1847376823425293, -0.8606612086296082, -0.019894221797585487, 0.8973226547241211, -0.33035412430763245, -0.10278726369...
to paste: ``` CopiedTxt = document.selection.createRange(); CopiedTxt.execCommand("Paste"); ``` Source: <http://www.geekpedia.com/tutorial126_Clipboard-cut-copy-and-paste-with-JavaScript.html> NOTE: This only works in IE (which is fine for your application). I know its not bulletproof by any means, but here...
[ 0.4742915630340576, 0.21955476701259613, 0.2643681466579437, -0.18230029940605164, 0.05275328457355499, 0.08672057837247849, 0.4623609185218811, -0.09362173825502396, -0.037965793162584305, -0.8959710001945496, -0.18925386667251587, 0.6511523127555847, -0.29484838247299194, -0.202334508299...
= document.getElementById("ContextMenu"); var cpy = document.getElementById("CopyBtn"); var pst = document.getElementById("PasteBtn"); document.body.onmouseup = function(){ if (event.button == 2)
[ 0.020803380757570267, -0.21986356377601624, 0.6227096915245056, -0.22800509631633759, 0.3698039948940277, 0.09024398773908615, 0.3753025233745575, -0.42270544171333313, -0.2918727695941925, -0.3585659861564636, -0.5831477642059326, 0.6136690378189087, -0.23881423473358154, -0.0400387644767...
{ menu.style.left = event.clientX + "px"; menu.style.top = event.clientY + "px"; menu.style.display = "block";
[ -0.22973819077014923, -0.11637745052576065, 0.23372550308704376, -0.4550914466381073, 0.21546904742717743, 0.15082059800624847, 0.1123022735118866, 0.009536080062389374, -0.24343009293079376, -0.42067718505859375, -0.7418537735939026, 0.6064634323120117, -0.456581175327301, -0.046116158366...
return true; } menu.style.display = "none"; }; cpy.onclick = function(){
[ 0.11142651736736298, 0.08359698206186295, 0.30079349875450134, -0.3673286437988281, 0.5927132368087769, 0.2725726068019867, 0.6170880794525146, -0.10232406109571457, 0.05597742646932602, -0.26052677631378174, -0.47527164220809937, 0.7712777256965637, -0.2398901879787445, 0.2879000604152679...
copy = document.selection.createRange(); copy.execCommand("Copy"); return false; }; pst.onclick = function(){
[ 0.22528931498527527, 0.13255849480628967, 0.2695690095424652, 0.046577826142311096, 0.6195882558822632, -0.07680588215589523, 0.2633138597011566, -0.4073250889778137, -0.06325238943099976, -0.3231614828109741, -0.5509064197540283, 0.5035557150840759, -0.4596816897392273, 0.3699761033058166...
if (lastForm) { copy = lastForm.createTextRange(); copy.execCommand("Paste"); }
[ 0.01633366569876671, -0.2960050106048584, 0.42987367510795593, -0.2751604914665222, 0.3354695439338684, -0.00821615755558014, 0.2003161460161209, 0.04363996908068657, 0.0073275030590593815, -0.6525235176086426, -0.3240651488304138, 0.4192447364330292, -0.31275010108947754, 0.27475991845130...
return false; }; }; </script> </head> <body oncontextmenu = "return false;"> <div id = "ContextMenu" style = "display : none; background: #fff; border: 1px solid #aaa; position: absolute; width : 75px;">
[ 0.14342163503170013, -0.059257663786411285, 0.7897157073020935, 0.0392579659819603, -0.04474126175045967, 0.31071335077285767, 0.5188524723052979, -0.5644415020942688, -0.184517040848732, -0.487080454826355, -0.31793493032455444, 0.4511162340641022, 0.01731209270656109, 0.12443781644105911...