text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
the whole system, but hard/impossible to build only one piece. Only recently have I learned to carefully ensure that each project truly stands alone.
In practice, this means that there must be at least two layers of build scripts. The lowest layer are the project build scripts that produce each deliverable/artifact. E... | [
0.6079927682876587,
0.17741134762763977,
0.021125052124261856,
0.27370139956474304,
0.04060039296746254,
-0.0026257007848471403,
0.3626444935798645,
0.02733795903623104,
-0.16227129101753235,
-0.6272469758987427,
-0.37143397331237793,
0.507822573184967,
0.236434206366539,
0.048643432557582... | |
reference their external dependencies (tools or binary artifacts, no other source projects) based on a few configurable settings (environment variables, configuration files, etc.).
The second layer of build scripts is also intended to be invoked from the command line, but these know about source control. Indeed, this ... | [
0.5102640986442566,
0.01649828441441059,
0.20128588378429413,
0.04129217192530632,
0.1544525921344757,
-0.2103150188922882,
0.163156658411026,
-0.22373566031455994,
-0.05047541484236717,
-0.6875981092453003,
-0.37634941935539246,
0.6851308941841125,
-0.04763058200478554,
-0.157991319894790... | |
multiple platforms, and various release scenarios.
Sometimes there is a need for a third layer of scripts that invokes the second layer of scripts (which invoke the first layer) for the purpose of building specific subsets of the overall project set. For example, each developer may have their own script that builds th... | [
0.622542142868042,
-0.016890060156583786,
-0.07174771279096603,
0.37947243452072144,
-0.005545688793063164,
-0.0722227394580841,
0.07779829204082489,
-0.043167844414711,
-0.41770032048225403,
-0.5123426914215088,
-0.14600583910942078,
0.509242594242096,
-0.19969570636749268,
0.130482465028... | |
other so that they cannot be freely built alone, or in arbitrary locations (temporary directory on the continuous integration server), or in arbitrary order (assuming dependencies are satisfied). Often, attempting to force a hierarchy breaks any IDE integration that one might attempt.
Finally, building a massive hiera... | [
0.09947211295366287,
-0.05039416626095772,
-0.09633798897266388,
-0.01477012224495411,
-0.20723320543766022,
-0.027145542204380035,
0.3418112099170685,
-0.26399320363998413,
-0.268811970949173,
-0.4279134273529053,
0.17127904295921326,
0.47794708609580994,
-0.4182569086551666,
0.1628722548... | |
for which I had tuned the JVM to be able to use all available memory. The application/system was relatively trivial in terms of amount of code, but the recursive build invocations eventually exhausted memory, no matter how much memory I gave it. Of course, it also took forever to execute as well (30-60 minutes was comm... | [
0.580205500125885,
0.2772204279899597,
-0.1520470380783081,
-0.08415595442056656,
-0.05388854444026947,
0.11504967510700226,
0.5396663546562195,
-0.2024528533220291,
-0.05284077301621437,
-0.5493506193161011,
0.1743461936712265,
0.5850158333778381,
0.0498528927564621,
-0.1301964968442917,
... | |
light and flexible. Enjoy.
EDIT: More on antipatterns
Strictly speaking, an antipattern is a common solution that looks like it solves the problem but doesn't, either because it leaves important gaps or because it introduces additional problems (often worse than the original problem). A solution necessarily involves ... | [
0.18405798077583313,
-0.2397077977657318,
0.08101049810647964,
0.20437876880168915,
-0.12096651643514633,
-0.14818285405635834,
0.04500624164938927,
-0.019480153918266296,
-0.1772197186946869,
-0.6368667483329773,
-0.43028250336647034,
0.4065634608268738,
-0.4863562285900116,
-0.2732539474... | |
be common practice in our industry to focus on tools rather than technique, it is the tool/feature that gets the attention (a casual survey of questions here on StackOverflow seems to easily illustrate). My comments, and this question itself, reflect that practice.
However, sometimes it seems particularly justified to... | [
0.42342936992645264,
0.20197531580924988,
-0.1675049215555191,
-0.05497553199529648,
-0.17376753687858582,
-0.043571148067712784,
0.1383742094039917,
-0.14578624069690704,
-0.11670462787151337,
-0.4063628315925598,
-0.21491476893424988,
0.7908082008361816,
0.032480813562870026,
0.209211140... | |
the antipattern is to design a build solution that includes tying projects together at the source level, or to implicitly version the dependencies between projects, or to allow such dependencies to implicitly change, because each of these invokes very negative consequences. The nature of the `svn:external`-like feature... | [
0.12156450003385544,
-0.14995341002941132,
-0.04298381134867668,
0.001916603185236454,
-0.10247531533241272,
-0.31798696517944336,
0.39489153027534485,
-0.17552289366722107,
0.08572953194379807,
-0.18944481015205383,
0.012317832559347153,
0.4816785454750061,
-0.48625829815864563,
-0.071552... | |
am investigating Ivy, coupled with Ant, as my short-term solution to the Java build problem. Long term, I am looking to incorporate the core concepts and features into an open-source tool that facilitates a multiplatform solution. | [
0.31164276599884033,
0.19220475852489471,
-0.025164155289530754,
-0.1290811002254486,
0.103604257106781,
-0.06568802893161774,
0.2794071137905121,
0.012435848824679852,
0.12845438718795776,
-0.636197030544281,
0.10884478688240051,
0.3464359641075134,
0.008761890232563019,
-0.03702062740921... | |
Why does nvarchar(256) seem to the be the standard for user names in SQL Server?
Any system functions that return a user name return nvarchar(256), the ASP Membership provider uses nvarchar(256)
256 seems like an odd number (yes, I know its even...) - 255 I could understand (1 byte address) but 256 doesn't make sens... | [
-0.29217982292175293,
0.29247429966926575,
0.5429874062538147,
0.0020271576941013336,
-0.3871072232723236,
0.016205687075853348,
0.046127114444971085,
-0.1444244235754013,
-0.49136272072792053,
-0.07114917784929276,
0.13820871710777283,
0.15122923254966736,
-0.20375880599021912,
0.28327703... | |
I am attempting to determine prior art for the following idea:
1) user types in some code in a language called (insert\_name\_here);
2) user chooses a destination language from a list of well-known output candidates (javascript, ruby, perl, python);
3) the processor translates insert\_name\_here into runnable code i... | [
0.032272931188344955,
0.35277557373046875,
0.06890442222356796,
-0.14898855984210968,
0.06145896017551422,
0.13878434896469116,
0.24526214599609375,
0.05702107772231102,
0.2137826532125473,
-0.8857055902481079,
-0.29805615544319153,
0.5829982161521912,
-0.3519479036331177,
-0.1359793841838... | |
language. It simply does a rudimentary translation that is runnable. The purpose is to allow developers to get a quick-and-dirty implementation of algorithms in several different languages for those cases where they do not feel like re-inventing the wheel, but are required for whatever reason to work with a specific la... | [
0.2108011692762375,
-0.11491709202528,
0.02668558619916439,
0.39460405707359314,
0.020375696942210197,
0.14255741238594055,
0.42030951380729675,
0.28905144333839417,
-0.21412190794944763,
-0.6291317343711853,
0.042608167976140976,
0.6107881665229797,
-0.4458312690258026,
-0.225959867238998... | |
of code generator would be. Why would you want to write something in one language and then immediately convert it to something else? I can see the rationale for 4th Gen languages that convert diagrams or models into code but I don't really see the point of your effort. | [
0.31674426794052124,
0.06240525469183922,
-0.4603056311607361,
0.5243529081344604,
-0.31090831756591797,
-0.013242348097264767,
0.21836291253566742,
0.022158831357955933,
-0.017335573211312294,
-0.49699366092681885,
0.07783479988574982,
0.4522210359573364,
-0.3879404366016388,
-0.088269561... | |
In earlier versions of MS-DOS - I want to say version 7, but I could be wrong - there was a `deltree` command, which recursively deleted all subdirectories and files from a given path.
`deltree` no longer exists, but `del` didn't seem to inherit the ability to delete a tree. `del /s` deletes files, but not folders.
... | [
-0.09887798130512238,
-0.21482878923416138,
-0.03457694500684738,
-0.06530550867319107,
-0.14814680814743042,
-0.1764346957206726,
0.3606315851211548,
-0.07619757950305939,
-0.3876766264438629,
-0.3656837046146393,
-0.22270381450653076,
0.7433844804763794,
-0.27032557129859924,
0.316117942... | |
contents) without prompting as so
```
rd /s /q c:\foobar
```
What everybody is missing is that `rd` is *not* an exact replacement for `deltree` as seemingly ([almost](http://www.technofileonline.com/texts/bkdeltree98.html)) every page returned by Googling for `windows deltree` would have you believe. The `deltree` c... | [
-0.0872848704457283,
0.07260258495807648,
0.347391277551651,
0.15118424594402313,
-0.11070843786001205,
-0.1041318029165268,
0.097844697535038,
0.048907071352005005,
-0.4508453607559204,
-0.4257464110851288,
-0.4933200180530548,
0.6307279467582703,
-0.2069309800863266,
0.24581988155841827,... | |
`del` command only works for files, not directories, so only the second command is valid while the first gives an error:
```
del /f /q c:\foobar
del /f /q c:\baz.txt
```
There is no built-in way to delete files and directories as could be done with `deltree`. Using `rd` and `del` individually is inconvenient at best... | [
0.14875411987304688,
-0.10199525207281113,
0.1946612149477005,
-0.08426541090011597,
-0.23230668902397156,
-0.2567792534828186,
0.14411331713199615,
-0.28261956572532654,
-0.33341774344444275,
-0.4982803761959076,
-0.3473019599914551,
0.8335774540901184,
-0.15161751210689545,
0.26316389441... | |
Windows 9x).
Another option is to create a batch-file that calls both `del` and `rd`; something like this:
```
::deltree.bat
@echo off
rd %* 2> nul
del %* 2> nul
```
You would call it as so:
```
deltree.bat /s /q /f c:\foobar
deltree.bat /s /q /f c:\baz.txt
```
This calls both `rd` and `del`, passing in the ar... | [
0.130317822098732,
-0.23133432865142822,
0.25334790349006653,
-0.29390332102775574,
-0.1827302724123001,
-0.13051730394363403,
0.1190786361694336,
0.2525665760040283,
-0.38159140944480896,
-0.5658738613128662,
-0.19553746283054352,
0.8775864243507385,
-0.5431407690048218,
-0.07979800552129... | |
tool, though finding one is a real exercise in search-query-crafting. | [
0.15346485376358032,
-0.16776327788829803,
0.08914346992969513,
0.563447892665863,
0.12202750891447067,
-0.392741858959198,
-0.13380923867225647,
-0.06247084587812424,
0.023432541638612747,
-0.6799811720848083,
-0.06368645280599594,
0.49588489532470703,
0.1358255296945572,
-0.0092952158302... | |
I'm looking for a simple protocol to control remote processes from one managing application. The remote processes will run on Windows and Linux (x86).
Is there a simple protocol for managing remote processes, for which I could find daemons that run on both Windows and Linux?
I consider ssh to be the "Swiss-army knife"... | [
0.2551259398460388,
0.28017571568489075,
0.28347814083099365,
-0.15574412047863007,
-0.12782196700572968,
-0.4132584035396576,
0.17103852331638336,
0.25209033489227295,
-0.23773634433746338,
-0.9803844690322876,
-0.23105579614639282,
0.263484388589859,
-0.22825618088245392,
0.4846139848232... | |
Given the following Flash method:
```
function sendToJava(name:String, ... args)
{
ExternalInterface.call("sendCommand", name, args);
}
```
How do I ensure that ExternalInterface.call() interprets args in its expanded form? Right now, if I pass a list into "args", that list gets interpreted as a single argument of... | [
-0.2371303290128708,
0.30459848046302795,
0.48153573274612427,
-0.6231042146682739,
-0.060358017683029175,
0.13530318439006805,
0.6282867789268494,
-0.3693928122520447,
-0.2784624695777893,
-0.3786761164665222,
-0.36804571747779846,
0.6473280787467957,
-0.5608624219894409,
-0.1915224343538... | |
a ton for posting this. You're a lifesaver! | [
0.5141490697860718,
0.15405626595020294,
-0.053660545498132706,
0.1640889048576355,
-0.2505813241004944,
-0.22026042640209198,
0.46980923414230347,
0.5890089273452759,
-0.470541387796402,
-0.1454342156648636,
0.5537635684013367,
0.2508133053779602,
-0.11166413128376007,
-0.0878459736704826... | |
I am using the SharpZipLib open source .net library from [www.icsharpcode.net](http://www.icsharpcode.net)
My goal is to unzip an xml file and read it into a dataset. However I get the following error reading the file into a dataset: "Data at the root level is invalid. Line 1, position 1."
I believe what is happening ... | [
0.19081032276153564,
0.3000974655151367,
0.3264353275299072,
-0.016963684931397438,
0.1447356790304184,
-0.1440817415714264,
0.4645482003688812,
-0.25251927971839905,
-0.04736890643835068,
-0.618308961391449,
-0.22041018307209015,
0.6002087593078613,
-0.1531926542520523,
0.1598456054925918... | |
zipping) then it works fine.
3.) If I write the dataset to xml, zip it up, unzip it, then attempt to read it back in I get the exception.
The code below is pretty straight forward. UnZipFile will return the name of the file just unzipped. Right below this call is the call to read it into a dataset. The variable fi... | [
0.09214682877063751,
-0.20380078256130219,
0.7156065106391907,
-0.11582160741090775,
-0.10281801968812943,
-0.2564830183982849,
0.43403398990631104,
-0.5223178267478943,
-0.059749994426965714,
-0.5048359036445618,
-0.2435937374830246,
0.6459424495697021,
-0.6008124351501465,
-0.02126607857... | |
try
{
ZipInputStream s = new ZipInputStream(File.OpenRead(file));
ZipEntry myEntry;
string tmpEntry = String.Empty;
while ((myEntry = s.GetNextEntry()) != null)
{
string directoryName = | [
0.057872921228408813,
-0.5678711533546448,
0.6531642079353333,
-0.14181002974510193,
0.4614826440811157,
0.25478842854499817,
0.43490949273109436,
-0.08317341655492783,
0.032322559505701065,
-0.772685706615448,
-0.3977913558483124,
0.19680723547935486,
-0.5337797999382019,
0.23189000785350... | |
dirToUnzipTo;
string fileName = Path.GetFileName(myEntry.Name);
string fileWDir = directoryName + fileName;
unzippedfile = fileWDir;
FileStream streamWriter = File.Create(fileWDir);
int size = 4096; | [
0.3163124918937683,
-0.3846379816532135,
0.26998797059059143,
-0.0061103906482458115,
-0.04201648384332657,
0.08014468848705292,
0.6888067722320557,
0.035707030445337296,
0.1731124073266983,
-0.46477019786834717,
-0.28720682859420776,
0.8378528356552124,
-0.3009515106678009,
0.229952022433... | |
byte[] data = new byte[4096];
while (true)
{
size = s.Read(data, 0, data.Length);
if (size > 0) { streamWriter.Write(data, 0, | [
0.22907587885856628,
-0.32950976490974426,
0.6640687584877014,
-0.16197209060192108,
0.40534743666648865,
0.23156937956809998,
0.33254241943359375,
-0.30406084656715393,
-0.06164765730500221,
-0.49931418895721436,
-0.11809294670820236,
0.5435421466827393,
-0.04394787549972534,
0.1670546382... | |
size); }
else { break; }
}
streamWriter.Close();
}
s.Close();
}
catch (Exception ex) | [
0.20798788964748383,
-0.5022884011268616,
0.39715123176574707,
-0.23723819851875305,
0.30021655559539795,
-0.13979887962341309,
0.31068193912506104,
-0.39149603247642517,
-0.2764745056629181,
-0.3179258704185486,
-0.3159635365009308,
0.3518062233924866,
-0.4283997714519501,
0.3264704942703... | |
{
LogStatus.WriteErrorLog(ex, "ERROR", "DOViewer.UnZipFile");
}
return (unzippedfile);
}
```
Well, what does the final file look like? (compared to the original). You don't show the zipping code, which might be part of the puzzle, especially as you are partially swallowing the exceptio... | [
0.18818353116512299,
-0.024256020784378052,
0.1907740980386734,
0.053671710193157196,
0.3240027129650116,
-0.28395044803619385,
0.36044424772262573,
-0.18775798380374908,
-0.33922189474105835,
-0.7934397459030151,
-0.4217657446861267,
0.5175316333770752,
-0.4086149036884308,
-0.13527628779... | |
if `myEntry.Name` contains sub-directories, you will need to create them manually.
Here's what I have - it works for unzipping ICSharpCode.SharpZipLib.dll:
```
private string UnZipFile(string file, string dirToUnzipTo)
{
string unzippedfile = "";
try
{
using(Stream inStre... | [
0.18376199901103973,
-0.3431409001350403,
0.5408909320831299,
0.20651382207870483,
0.2944730818271637,
-0.20687758922576904,
0.2349153608083725,
-0.04298357293009758,
-0.11733728647232056,
-0.7169004082679749,
-0.18277354538440704,
0.4715116322040558,
-0.23081275820732117,
0.27652943134307... | |
{
ZipEntry myEntry;
byte[] data = new byte[4096];
while ((myEntry = s.GetNextEntry()) != null)
{
string fileWDir = | [
0.11843772977590561,
-0.40789490938186646,
0.47052115201950073,
-0.189726784825325,
0.5620192289352417,
0.19215817749500275,
0.18163250386714935,
-0.12958136200904846,
-0.15636789798736572,
-0.4055597484111786,
-0.6123481392860413,
0.2551019787788391,
-0.41350623965263367,
0.49577370285987... | |
Path.Combine(dirToUnzipTo, myEntry.Name);
string dir = Path.GetDirectoryName(fileWDir);
// note only supports a single level of sub-directories...
if (!Directory.Exists(dir)) Directory.CreateDirectory(dir);
unzippedfile = fileWDir; // note;... | [
0.22073377668857574,
-0.39002856612205505,
0.37132272124290466,
-0.013138383626937866,
0.08742557466030121,
-0.048040833324193954,
0.5592295527458191,
-0.33754098415374756,
-0.13965529203414917,
-0.7825119495391846,
-0.2871421277523041,
0.5088406801223755,
-0.44564715027809143,
0.187729597... | |
last file if multiple
using (FileStream outStream = File.Create(fileWDir))
{
int size;
while ((size = s.Read(data, | [
0.07675187289714813,
-0.4549153447151184,
0.7728336453437805,
-0.2572106420993805,
0.5094389319419861,
0.0649804100394249,
0.290296345949173,
-0.4612291157245636,
-0.32641080021858215,
-0.6558223366737366,
-0.2850184142589569,
0.4253687262535095,
-0.19032679498195648,
0.5422822833061218,
... | |
0, data.Length)) > 0)
{
outStream.Write(data, 0, size);
} | [
-0.07646065950393677,
-0.24765221774578094,
0.6620911955833435,
-0.40570834279060364,
0.3474710285663605,
0.18315333127975464,
0.4817293584346771,
-0.3816509246826172,
-0.017060711979866028,
-0.4150834381580353,
-0.1933586299419403,
0.6935765147209167,
-0.11076458543539047,
-0.177968829870... | |
outStream.Close();
}
}
s.Close();
}
}
catch (Exception ex)
{ | [
-0.09052875638008118,
-0.3332732617855072,
0.333383172750473,
-0.3693700432777405,
0.24151678383350372,
-0.07568800449371338,
0.34960848093032837,
-0.1735205352306366,
-0.13877427577972412,
-0.170980304479599,
-0.47991132736206055,
0.3935776948928833,
-0.3699996769428253,
0.199199825525283... | |
Console.WriteLine(ex);
}
return (unzippedfile);
}
```
It could also be that the problem is either in the code that writes the zip, or the code that reads the generated file. | [
-0.12303569167852402,
-0.02796064503490925,
0.3507651090621948,
-0.06226136535406113,
0.5495066046714783,
-0.022004833444952965,
0.18633995950222015,
-0.02164853736758232,
0.07290218025445938,
-0.6877887845039368,
-0.43913260102272034,
0.5341615080833435,
-0.3808494508266449,
0.15695811808... | |
I'm working on a JIRA implementation and need to make use of the API.
Does anyone know of an existing .NET wrapper for the JIRA SOAP API?
In a Visual Studio .NET project, right click the project references and choose 'Add Service Reference', enter the URL of JIRA's WSDL descriptor (<http://your_installation/rpc/soap/... | [
0.6557064652442932,
0.2056669443845749,
0.02843327820301056,
-0.14102382957935333,
-0.22427181899547577,
-0.06018265336751938,
0.2540684640407562,
0.1231144592165947,
0.007517602294683456,
-0.6463407874107361,
0.0485980324447155,
0.4712373614311218,
-0.15338082611560822,
0.1239381954073906... | |
My dilema:
In .htaccess in my website's root:
```
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.example\.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
```
In .htaccess in the subdirectory /foo
```
RewriteEngine On
RewriteRule ^page1\.html$ /foo/page2.html [R=301]
```
In the first, I'm trying... | [
0.0574299581348896,
0.28090700507164,
0.8675544261932373,
-0.16060692071914673,
-0.1333644539117813,
0.16285307705402374,
0.3676791787147522,
-0.20216776430606842,
0.09174216538667679,
-0.8209395408630371,
-0.022861400619149208,
0.36853519082069397,
-0.35879600048065186,
0.3098191320896148... | |
pages in that subdirectory **IF** that subdirectory does not contain a .htaccess file, or it does and specifies a rewrite rule that does take effect for this particular request.
**Can anyone see what I'm doing wrong?** How can I get the rewrite rule that sticks the www. in if it's missing to fire for <http://example.c... | [
0.3535044491291046,
0.27234259247779846,
0.6031357645988464,
0.11492937803268433,
-0.02381945587694645,
-0.32805338501930237,
0.6816192865371704,
-0.08360855281352997,
-0.4770009219646454,
-0.6175997257232666,
-0.039013925939798355,
0.534953773021698,
-0.3310096561908722,
-0.03580249473452... | |
I need to be able to allow query strings that contain characters like '<' and '>'. However, putting something like id=mi<ke into the the URL will output an error page saying:
*A potentially dangerous Request.QueryString value was detected from the client (id="mi<ke").*
If I first url encode the url (to create id=mi%3... | [
0.36849603056907654,
0.210507333278656,
0.3337019681930542,
0.05144120380282402,
-0.12600760161876678,
-0.1677122712135315,
0.7648647427558899,
-0.27635738253593445,
0.2104238122701645,
-0.6845154762268066,
0.03074197843670845,
0.52092045545578,
-0.04810044914484024,
0.39504948258399963,
... | |
be able to type the urls in by hand as well, so encoding them in some way might not work.
I ran into a problem similar to this. I chose to base64 encode the query string to work around it.
using
```
System.Text.ASCIIEncoding.ASCII.GetBytes
```
to get the string as bytes
and then
```
System.Convert.ToBase64String
... | [
0.026937952265143394,
0.17355963587760925,
0.1510503739118576,
0.028027445077896118,
0.03013533167541027,
-0.031224871054291725,
0.3154316544532776,
-0.22576169669628143,
0.15081046521663666,
-0.5304508209228516,
-0.13811880350112915,
0.45155712962150574,
-0.5430020689964294,
-0.0271535944... | |
When would I implement IDispose on a class as opposed to a destructor? I read [this article](http://www.dotnetspider.com/resources/1382-Understanding-IDisposable-pattern.aspx), but I'm still missing the point.
My assumption is that if I implement IDispose on an object, I can explicitly 'destruct' it as opposed to wai... | [
-0.08375410735607147,
-0.5218119025230408,
0.04793480038642883,
-0.10840688645839691,
-0.060797788202762604,
-0.19333545863628387,
0.39242789149284363,
-0.18488574028015137,
-0.29032307863235474,
-0.6662245988845825,
-0.08772598952054977,
0.5001339912414551,
-0.32719746232032776,
0.2206063... | |
(i.e. need more space). Finalizers are usually only used for cleaning up *unmanaged* resources, since managed resources will have their own collection/disposal.
Hence `IDisposable` is used to *deterministically* clean up objects, i.e. now. It doesn't collect the object's memory (that still belongs to GC) - but is used... | [
-0.18078893423080444,
-0.026566745713353157,
0.19164015352725983,
-0.043126579374074936,
0.11634337157011032,
-0.4158764183521271,
0.05271898955106735,
-0.26662880182266235,
-0.3235514163970947,
-0.4173808693885803,
-0.6578704118728638,
0.365534245967865,
-0.3173147141933441,
-0.0048101195... | |
simply throws the memory away (much cheaper). The finalizer still runs if you forget to `Dispose()` the object. | [
0.07590427994728088,
0.026317359879612923,
0.23102137446403503,
0.3008842170238495,
0.23889730870723724,
-0.07996886968612671,
0.22609370946884155,
0.00508962431922555,
0.07936406880617142,
-0.364614874124527,
-0.30345016717910767,
0.4680142402648926,
0.3121412992477417,
0.3227183222770691... | |
I'm really struggling with grasping how to effectively use FasterCSV to accomplish what I want.
I have a CSV file; say:
```
ID,day,site
test,tuesday,cnn.com
bozo,friday,fark.com
god,monday,xkcd.com
test,saturday,whatever.com
```
I what to go through this file and end up with a hash that has a counter for how many t... | [
0.2293357253074646,
0.32039710879325867,
0.5751450061798096,
-0.12205688655376434,
-0.1939546763896942,
-0.10749854147434235,
0.11131100356578827,
-0.02071002498269081,
-0.35039737820625305,
-0.9209208488464355,
0.063812255859375,
0.5149728059768677,
-0.20853690803050995,
-0.01355292834341... | |
I run all my integers through a `(int)Integer` to make them safe to use in my query strings.
I also run my strings through this function code:-
```
if(!get_magic_quotes_gpc()) {
$string = mysql_real_escape_string($string);
}
$pattern = array("\\'", "\\\"", "\\\\", "\\0");
$replace = array("", "", ... | [
0.09805135428905487,
0.09288135915994644,
0.7722072601318359,
-0.30610403418540955,
0.13920792937278748,
0.08337236940860748,
0.5464180707931519,
-0.3829636573791504,
-0.21097905933856964,
-0.37511080503463745,
0.03183760493993759,
0.6237666010856628,
-0.480791836977005,
0.1143223419785499... | |
the user inserted them. Are there any other special characters for mySQL I should be concerned about?
On a second note, is there anything wrong or redundant about my search and replace after the `mysql_real_escape_string`? I got it from a website when I was first starting out and (if I remember correctly) it said you... | [
0.4408142864704132,
0.11274410784244537,
0.07992683351039886,
0.2869998812675476,
-0.0427161380648613,
0.3501143455505371,
0.21083179116249084,
0.1361650824546814,
-0.16760818660259247,
-0.5024250745773315,
0.21369636058807373,
0.45479342341423035,
-0.3894455134868622,
0.16269855201244354,... | |
it's turned on. That way you've got a string which actually represents the information you want (and not one that has been treated with slashes).
If you particularly want to remove the % wildcard then you could just escape that or remove it altogether. Before you insert the string into an SQL query, finally run it thr... | [
0.5114451050758362,
-0.3118400275707245,
0.9732212424278259,
-0.039046984165906906,
0.458102822303772,
-0.2823522984981537,
0.26405441761016846,
0.08191349357366562,
-0.376166969537735,
-0.35996922850608826,
-0.3110276162624359,
1.0480520725250244,
-0.5247405171394348,
0.25968194007873535,... | |
I have recently written a dynamic querying tool using expression trees and as I went the power of expression trees began to dawn on me. My querying tool could also form the basis of a reporting tool, a dynamic decision engine and maybe other cases where you need to work with dynamic objects in abstract ways.
The proc... | [
0.10709135979413986,
-0.04339589923620224,
0.14397642016410828,
0.2515930235385895,
-0.10581903904676437,
-0.04052096605300903,
0.20612385869026184,
0.08149704337120056,
-0.19683292508125305,
-0.6718851923942566,
0.29918766021728516,
0.6097311973571777,
-0.3900240659713745,
0.1397241055965... | |
[PredicateBuilder](http://www.albahari.com/nutshell/predicatebuilder.aspx) but does anyone know of any others?
[Generic operators](http://www.pobox.com/~skeet/csharp/miscutil/usage/genericoperators.html) (in [MiscUtil](http://www.pobox.com/~skeet/csharp/miscutil/)) is a pretty well utilised bit of code based on express... | [
-0.08901956677436829,
-0.17801903188228607,
0.2870798707008362,
0.19625215232372284,
-0.2620046138763428,
0.12493492662906647,
0.23135176301002502,
-0.19669421017169952,
-0.39813360571861267,
-0.19208379089832306,
-0.39828017354011536,
0.13280239701271057,
-0.36771565675735474,
0.203866764... | |
I want to maintain state in my Perl web app. How can I do this effectively? I looked at CGI::Session but it says that it doesn't work well with UTF-8 pages, which is a requirement. I'd also like to be able to pass some basic information to another Java application running on the Glassfish app server, so people aren't f... | [
0.49529552459716797,
0.07002545893192291,
0.4741091728210449,
0.20478492975234985,
-0.20644347369670868,
-0.08863762766122818,
0.5841032862663269,
-0.02760080248117447,
-0.29227831959724426,
-0.6743351817131042,
0.04647558927536011,
0.40878039598464966,
-0.20382511615753174,
0.247103407979... | |
some frameworks call that The State, it really boils down to having a session key (or session ID) and passing it back to your app via either a cookie or a URL parameter.
Your store can be anything that can hold the data for you. Some examples are: a flat file, a dbm file, a DBMS,or an in-memory cache of some type.
Th... | [
0.45811527967453003,
0.05898305028676987,
0.3502015173435211,
0.04353976622223854,
0.17700214684009552,
-0.01242741383612156,
0.29658910632133484,
-0.030367150902748108,
-0.19128009676933289,
-0.5123355984687805,
-0.22514207661151886,
0.5342317223548889,
-0.2684059739112854,
0.297371298074... | |
request, and storing it back at the end. | [
0.15181007981300354,
-0.003449581330642104,
0.48069512844085693,
0.24799051880836487,
-0.007953332737088203,
0.08651605993509293,
0.030618520453572273,
-0.4015865921974182,
-0.13314196467399597,
-0.2643481194972992,
-0.04865702986717224,
0.15579304099082947,
-0.003625234356150031,
0.153603... | |
I'm trying to validate that a submitted URL doesn't already exist in the database.
The relevant parts of the Form class look like this:
```
from django.contrib.sites.models import Site
class SignUpForm(forms.Form):
# ... Other fields ...
url = forms.URLField(label='URL for new site, eg: example.com')
def... | [
0.47379931807518005,
0.22597992420196533,
0.3927454650402069,
-0.12556223571300507,
-0.13720703125,
-0.34870508313179016,
0.3577997386455536,
-0.15146298706531525,
-0.11759479343891144,
-0.6671631932258606,
-0.1115541011095047,
0.26232221722602844,
-0.19540247321128845,
0.38614481687545776... | |
return url
else:
raise forms.ValidationError("That URL is already in the database. Please submit a unique URL.")
def clean(self):
# Other form cleaning stuff. I don't *think* this is causing the grief
```
The problem is, regardless of what value I submit, I can't raise the `Validat... | [
0.44588136672973633,
0.36856305599212646,
0.5187280178070068,
-0.11540185660123825,
-0.3800564706325531,
-0.34252774715423584,
0.41399991512298584,
-0.3481910824775696,
-0.10234715789556503,
-0.3224245011806488,
-0.036935579031705856,
0.526577353477478,
-0.05649235099554062,
0.309016585350... | |
Please submit a unique URL.")
```
then I get a `DoesNotExist` error, even for URLs that already exist in the Database. Any ideas?
django channel in IRC saved me here. The problem was that the URLField.clean() does two things I wasn't expecting:
1. If no URL scheme is present (eg, http://) the method prepends 'http:/... | [
0.23086251318454742,
0.04457755759358406,
0.2217077612876892,
-0.0423445962369442,
-0.3032176196575165,
-0.19018223881721497,
0.32337647676467896,
-0.15245716273784637,
-0.1493319422006607,
-0.7042060494422913,
0.04807139188051224,
0.4241810441017151,
-0.25692233443260193,
0.28082451224327... | |
url = self.cleaned_data['url']
bits = urlparse(url)
dom = bits[1]
try:
site=Site.objects.get(domain__iexact=dom)
except Site.DoesNotExist:
return dom
raise forms.ValidationError(u'That domain is already taken. Please choose another')
``` | [
-0.15941493213176727,
0.07457645237445831,
0.7633682489395142,
-0.1875816434621811,
-0.163754403591156,
-0.07083334773778915,
0.3854270577430725,
-0.39952409267425537,
-0.20212329924106598,
-0.3648006021976471,
-0.3879956603050232,
0.32410767674446106,
-0.048426203429698944,
0.562748372554... | |
I'm coming from a C# background and I really like the type inference that C# 3.0 has. I'm trying to do similar things in VB.NET (some of which appear possible), but in some cases the compiler seems to be not nearly as good at inferring the type.
For example, I have a method that returns an object of type System.Guid. ... | [
0.3768475353717804,
0.025833331048488617,
0.2052379697561264,
-0.11602228879928589,
-0.2239699810743332,
-0.16546735167503357,
0.18867304921150208,
-0.14439541101455688,
-0.09942952543497086,
-0.5179920196533203,
-0.038469552993774414,
0.9179425835609436,
-0.37567830085754395,
0.1479057818... | |
the VB.NET project settings but the only thing it changes is whether I get a warning that the object is of type Object when I use it later as a Guid.
Any ideas? I'm thinking the use of generics should allow the compiler to tell beyond a doubt what type *prop* should be.
---
@J Cooper: ok, I did have that setting tur... | [
0.7941062450408936,
-0.19972623884677887,
0.20406574010849,
-0.034196801483631134,
-0.2411203682422638,
-0.325885534286499,
0.635106086730957,
0.004074487369507551,
-0.16766180098056793,
-0.319809228181839,
0.1276387721300125,
0.8613009452819824,
-0.2389811873435974,
0.23343047499656677,
... | |
my class. I guess even though they are initialized when declared, the compiler doesn't support type inference at that point. Bummer.
You mention below that you're trying to do this in a static variable declaration. That won't work in C#, and will give you Object in VB.NET (for instance and statics). | [
0.28227004408836365,
-0.16491617262363434,
-0.27559664845466614,
0.09101352095603943,
-0.3651971220970154,
-0.4456803500652313,
0.45389774441719055,
0.24374613165855408,
-0.13791899383068085,
-0.1885463148355484,
-0.07373511046171188,
0.47981444001197815,
-0.2686416208744049,
0.17968483269... | |
When writing application code, it's generally accepted that premature **micro**-optimization is evil, and that profiling first is essential, and there is some debate about how much, if any, higher level optimization to do up front. However, I haven't seen any guidelines for when/how to optimize generic code that will b... | [
0.42266297340393066,
0.6164040565490723,
0.02137770690023899,
0.25882023572921753,
0.008221269585192204,
-0.11222583800554276,
0.4088364243507385,
0.13974647223949432,
0.10182639211416245,
-0.580716609954834,
0.09474144876003265,
0.7912690043449402,
-0.4968251585960388,
0.12406246364116669... | |
of implementation, and flexibility?
"How should performance be balanced with other design goals...?"
1. Get it to work.
2. Optimize it until it cannot be optimized further.
Note the order. Avoid *premature* optimization means optimize it *after* it works.
Optimization is still very, very important. Premature optimi... | [
0.2826651930809021,
-0.19315575063228607,
0.05113496631383896,
0.1266639232635498,
0.3029975891113281,
0.08357506990432739,
0.32383275032043457,
-0.2874813377857208,
-0.01257074624300003,
-0.7808617353439331,
-0.25589266419410706,
0.8267835378646851,
-0.2188955843448639,
-0.253317803144454... | |
I need to repeatedly remove the first line from a huge text file using a bash script.
Right now I am using `sed -i -e "1d" $FILE` - but it takes around a minute to do the deletion.
Is there a more efficient way to accomplish this?
Try [tail](http://man7.org/linux/man-pages/man1/tail.1.html):
```
tail -n +2 "$FILE"
... | [
0.0066415974870324135,
0.036020539700984955,
0.36546677350997925,
-0.13677966594696045,
-0.22903846204280853,
-0.04877106845378876,
0.5343790650367737,
-0.229187473654747,
-0.22246837615966797,
-0.644361138343811,
-0.25311732292175293,
0.3867975175380707,
-0.4132973551750183,
0.10201643407... | |
the first line, etc.
GNU `tail` is much faster than `sed`. `tail` is also available on BSD and the `-n +2` flag is consistent across both tools. Check the [FreeBSD](https://www.freebsd.org/cgi/man.cgi?query=tail) or [OS X](https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/tail.1.html... | [
0.280651330947876,
-0.11933963745832443,
0.36610138416290283,
-0.01799055002629757,
-0.3617803156375885,
-0.37950778007507324,
0.5063677430152893,
-0.03619382902979851,
-0.11918461322784424,
-0.7102330327033997,
-0.2247777283191681,
0.6154706478118896,
-0.5168081521987915,
-0.0260254666209... | |
**empty file**. The reason is that the redirection (`>`) happens before `tail` is invoked by the shell:
1. Shell truncates file `$FILE`
2. Shell creates a new process for `tail`
3. Shell redirects stdout of the `tail` process to `$FILE`
4. `tail` reads from the now empty `$FILE`
If you want to remove the first line i... | [
0.32384246587753296,
-0.035611607134342194,
0.7604138851165771,
-0.3039577305316925,
0.1993158757686615,
-0.11773967742919922,
0.3638926148414612,
-0.2111632525920868,
-0.2976599335670471,
-0.44534778594970703,
-0.2241557240486145,
0.7449327707290649,
-0.572618305683136,
0.3910884261131286... | |
I've been trying to deal with some delimited text files that have non standard delimiters (not comma/quote or tab delimited). The delimiters are random ASCII characters that don't show up often between the delimiters. After searching around, I've seem to have only found no solutions in .NET will suit my needs and the c... | [
0.2647104561328888,
0.010099481791257858,
0.15280386805534363,
0.38204917311668396,
-0.1184895858168602,
-0.07782994955778122,
-0.04471728205680847,
0.18779760599136353,
-0.3676878809928894,
-0.800918698310852,
-0.01804928295314312,
0.2806797921657562,
-0.10122040659189224,
0.0896772295236... | |
Document Discovery (EDD) industry for some review software to have field values that contain the full contents of a document. For reference, I've previously done this in python using the csv module with no problems.
Here's an example input:
```
Field delimiter =
quote character = þ
þFieldName1þþFieldName2þþFieldNam... | [
0.038685791194438934,
0.11683359742164612,
0.3551943898200989,
0.040346480906009674,
0.005390866659581661,
-0.2803899049758911,
-0.08234560489654541,
-0.3625369966030121,
-0.03752894699573517,
-0.5223404765129089,
-0.003750775009393692,
0.743191123008728,
-0.04076473414897919,
-0.020051738... | |
have to write a parser from scratch for this anyway.
Use the [File Helpers API](http://filehelpers.sourceforge.net/). It's .NET and open source. It's extremely high performance using compiled IL code to set fields on strongly typed objects, and supports streaming.
It supports all sorts of file types and custom delimit... | [
0.2779668867588043,
-0.32378140091896057,
0.22924086451530457,
0.051812317222356796,
-0.21377092599868774,
-0.08163376152515411,
0.1373489648103714,
-0.18629950284957886,
0.20431607961654663,
-0.9239659905433655,
0.05671738460659981,
0.6599665880203247,
-0.3984138071537018,
-0.034986980259... | |
yield return line.Split('þ');
}
}
```
That'll give you simple string arrays representing the lines in a streamy fashion that you can even Linq into ;) Remember however that the IEnumerable is lazy loaded, so don't close or alter the StreamReader until you've iterated (or caused a full load operation like ToList/T... | [
0.07359104603528976,
-0.2712531089782715,
0.4076443016529083,
-0.331321120262146,
0.05148756504058838,
-0.030798690393567085,
0.35248109698295593,
-0.2532205283641815,
0.08332131803035736,
-0.5393756628036499,
-0.2501457929611206,
0.5733351707458496,
-0.330614298582077,
-0.0436700880527496... | |
where l[3].Contains("something")
select new { Field1 = l[0], Field2 = l[1] };
foreach (var item in qry)
{
Console.WriteLine(item.Field1 + " , " + item.Field2);
}
}
Console.ReadLine();
```
This will skip the header line, then print out the first two field from the file where the 4th f... | [
-0.10615561157464981,
-0.22691687941551208,
0.5140052437782288,
-0.5268171429634094,
0.32824018597602844,
0.22755859792232513,
0.1705181896686554,
-0.3989948034286499,
0.039755627512931824,
-0.681178867816925,
-0.40613073110580444,
0.4585602581501007,
-0.0727587416768074,
0.315565705299377... | |
When reading lines from a text file using python, the end-line character often needs to be truncated before processing the text, as in the following example:
```
f = open("myFile.txt", "r")
for line in f:
line = line[:-1]
# do something with line
```
Is there an elegant way or idiom for retrieving text lines... | [
0.014203607104718685,
-0.13842658698558807,
0.5123438239097595,
-0.19836117327213287,
-0.36422982811927795,
0.08638114482164383,
0.16224455833435059,
-0.20711348950862885,
-0.23274388909339905,
-0.4055345952510834,
-0.5069119334220886,
0.5423391461372375,
-0.40316566824913025,
-0.130775973... | |
a gotcha:
* **file('...').read().splitlines()** has to load the whole file in memory at once.
* **line = line[:-1]** will fail if the last line has no EOL. | [
-0.281818151473999,
-0.1561986207962036,
0.3261183202266693,
0.08518680185079575,
0.05956767499446869,
0.12381923943758011,
0.5144380927085876,
-0.03381599113345146,
-0.21180522441864014,
-0.6527950763702393,
-0.5721119046211243,
0.09532725811004639,
-0.15298454463481903,
0.293403416872024... | |
I'm following [iPhone dev courses](http://www.stanford.edu/class/cs193p/cgi-bin/index.php) from Stanford Open-University, and I've been blocked for 2 days on [assignment3](http://cs193p.stanford.edu/downloads/Assignment3.pdf), maybe someone can help me here?
The tasks are:
1. Create a custom UIView subclass that will... | [
0.11404227465391159,
0.0715436115860939,
0.5266009569168091,
0.342570960521698,
-0.2882933020591736,
0.007809060625731945,
0.24340541660785675,
-0.09020088613033295,
-0.37412944436073303,
-0.7883361577987671,
0.0026576172094792128,
0.42473548650741577,
-0.14474229514598846,
0.0500608943402... | |
Controller : NSObject {
IBOutlet UIButton *decreaseButton;
IBOutlet UIButton *increaseButton;
IBOutlet UILabel *numberOfSidesLabel;
IBOutlet PolygonShape *polygon;
IBOutlet PolygonView *polygonView;
}
- (IBAction)decrease;
- (IBAction)increase;
- (void)awakeFromNib;
- (void)updateInterface;
@end
``... | [
-0.5282511711120605,
-0.4984796941280365,
0.47248488664627075,
0.17959213256835938,
-0.0014114852529019117,
0.06470593810081482,
-0.12286968529224396,
-0.12919844686985016,
-0.4444706439971924,
-0.5842246413230896,
-0.1663917750120163,
0.3780883848667145,
-0.2396257519721985,
-0.0525009632... | |
I'm getting a FileIOPermssion exception thrown when trying to create a folder in Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) on some computers. I've established that there is some form of antivirus running on the computer in question, but I haven't been able to get in contact with their IT depa... | [
0.3667590022087097,
0.18114113807678223,
0.22311557829380035,
0.18390284478664398,
0.15085026621818542,
-0.2985501289367676,
0.4383472800254822,
0.1301206350326538,
-0.5336447954177856,
-0.6076923608779907,
0.12533536553382874,
0.434067964553833,
-0.4628552794456482,
0.30268335342407227,
... | |
network drive. This put the application into Partial Trust which is preventing writing to the ApplicationData directory. Isolated Storage was supposed to work around this but I haven't had any luck with it either. It produces the exact same error as using other File IO commands directly.
One thing that DOES work is to... | [
0.21481618285179138,
-0.11677096784114838,
0.11793652921915054,
0.1613384336233139,
-0.17264458537101746,
-0.4493284225463867,
0.35140758752822876,
0.2905827462673187,
0.12622042000293732,
-0.7824501991271973,
0.2650362551212311,
0.8803004026412964,
-0.4081045985221863,
0.33301281929016113... | |
With Php when does an included file get included? Is it during a preprocessing stage or is it during script evaluation?
Right now I have several scripts that share the same header and footer code, which do input validation and exception handling. Like this:
```
/* validate input */
...
/* process/do task */
...
/* ha... | [
0.3402259945869446,
0.15877433121204376,
-0.11781387031078339,
-0.05466204881668091,
-0.22109459340572357,
-0.4438413679599762,
0.29935604333877563,
-0.46641770005226135,
-0.1636519432067871,
-0.3291800022125244,
-0.06080421805381775,
0.5352952480316162,
-0.301324725151062,
-0.310148149728... | |
example:
```
vars.php
<?php
$color = 'green';
$fruit = 'apple';
?>
test.php
<?php
echo "A $color $fruit"; // A
include 'vars.php';
echo "A $color $fruit"; // A green apple
?>
```
so include happens when its executed in code.
Edit: fixed url. | [
0.12352760881185532,
0.04490557685494423,
-0.308157742023468,
-0.3847828507423401,
0.2566160261631012,
0.07381247729063034,
0.34137848019599915,
-0.1917700320482254,
-0.2619283199310303,
-0.20185372233390808,
-0.6231552362442017,
0.3241177201271057,
-0.6029936671257019,
-0.1179187521338462... | |
How do you organize your stored procedures so you can easily find them and keep track of their dependencies?
I tend to name them according to a convention. Typically {TableName}\_{operation}{extra} where the extra part is optional.
For example: Product\_Get, Product\_Add, Product\_Delete, Product\_Update, Product\_Get... | [
0.1975192278623581,
-0.06086013838648796,
0.204584538936615,
-0.029845744371414185,
0.22377999126911163,
0.13027317821979523,
-0.12263204902410507,
-0.017932254821062088,
-0.3762776553630829,
-0.5274387001991272,
-0.3225902020931244,
0.4199329614639282,
-0.2465577870607376,
0.0808905437588... | |
i have never used LINQ in any of my projects , i have always used ado.net /OR tool in my Business App projects , so i want to know
What are the benefits of LINQ ? why and when anybody should use LINQ ?
Just to clarify there are differences between the concept of **LINQ** and **LINQ to SQL**.
LINQ is a query *syntax*, ... | [
0.3814108669757843,
0.31375613808631897,
0.31314441561698914,
0.17866742610931396,
-0.10825581103563309,
-0.11447783559560776,
-0.14806410670280457,
-0.03488205000758171,
-0.09240680932998657,
-0.3714425563812256,
0.05914241075515747,
0.5048167705535889,
-0.3810170590877533,
-0.14100545644... | |
best used when you are:
* Only ever targeting MS SQL 2000+
* Doing RAD
I've used LINQ to SQL on a couple of commercial products and quite a few of my own products and found these benefits:
* Familiar language to code in (C#/ VB.NET)
* Easier to maintain (we have more .NET than SQL gurus on staff)
* SQL generated is ... | [
0.37049007415771484,
0.3147517144680023,
0.2276923507452011,
-0.051180098205804825,
-0.24961741268634796,
-0.3017067313194275,
0.15772616863250732,
-0.03698384761810303,
-0.011288251727819443,
-0.5082375407218933,
0.09741348773241043,
0.7594472169876099,
0.009727716445922852,
-0.3101174533... | |
to use it properly*. Like any language feature it can be miss-used easily if people don't have an understanding of what it is and how to use it. I recommend the following blogs to get some of the concepts of LINQ down:
* [Bart De Smet](http://blogs.bartdesmet.net/bart/) - advanced
* [Charlie Calvert](http://blogs.msdn... | [
0.24042360484600067,
0.21433714032173157,
0.017690883949398994,
-0.08241621404886246,
-0.008757836185395718,
-0.21421004831790924,
0.8012325763702393,
-0.2588414251804352,
-0.07842399924993515,
-0.5485638976097107,
-0.23135769367218018,
0.5839858055114746,
0.06005902960896492,
-0.411934703... | |
I'm having a problem getting access to a database which lives on a remote server.
I have a ASP.NET 2.0 webpage that is trying to connect to a database.
The database is accessed via a virtual folder (which I set up in IIS).
The virtual folder points at a remote share which contains the database.
The virtual fo... | [
0.3292911648750305,
0.6275318264961243,
0.4847651720046997,
-0.056317150592803955,
0.26340150833129883,
0.14996087551116943,
0.3228091895580292,
0.08174467831850052,
-0.25919368863105774,
-0.946734607219696,
-0.21013455092906952,
0.44519808888435364,
-0.46224406361579895,
0.102926313877105... | |
of the web.config:
```
<add key="conStrVirtual" value="Provider=Microsoft.Jet.OleDb.4.0;Data Source=http://webAppServerName/virtualFolderName/databaseName.MDB;Jet OLEDB:Database Password=dumbPassword;"/>
```
The connection object is declard on my .aspx page:
```
Dim objConnVirtual As New OleDbConnection(Configura... | [
-0.42094287276268005,
0.017166035249829292,
0.9275657534599304,
0.026296544820070267,
-0.06783898174762726,
-0.05139309912919998,
0.35677218437194824,
-0.14530517160892487,
-0.4357515573501587,
-0.8947904706001282,
-0.5795069336891174,
0.5090659856796265,
-0.43486112356185913,
0.3901249170... | |
objDR.Close()
objConnVirtual.Close()
End Sub
```
When I run the above code I get the following error (on this line of the code 'objConnVirtual.Open()':
**Exception Details: System.Data.OleDb.OleDbException: Not a valid file name.**
I have checked the database name and it is correct (even copy/pasted it to mak... | [
-0.011666545644402504,
0.5184246301651001,
0.635175347328186,
-0.2578512728214264,
0.02172873541712761,
-0.3652501702308655,
0.5414033532142639,
0.17665494978427887,
-0.26714831590652466,
-0.8035645484924316,
0.0386417955160141,
0.41363176703453064,
-0.45828357338905334,
0.5238524079322815... | |
but have not been able to find a solution.
Any help is much appreciated.
**UPDATE**
First up, thank you to everyone who submitted answers.
However, we ended up *not* using the 'connect to remote database via virtual folder' method because the complexity of the permissions needed to get this to work was causing us ... | [
0.36145004630088806,
-0.049826305359601974,
0.2804647386074066,
0.4802940785884857,
0.09005831182003021,
-0.21524640917778015,
0.5563252568244934,
0.2681765854358673,
-0.13344120979309082,
-0.7371096611022949,
0.07117507606744766,
0.2511442005634308,
0.12489598989486694,
0.3071284294128418... | |
I have an application web.xml with the following entry:
```
<error-page>
<error-code>404</error-code>
<location>/system_files/error/p_notfound.jsp</location>
</error-page>
```
However, when this page is displayed, Japanese characters are garbled.
The same page (p\_notfound.jsp) displays properly if display... | [
0.4965933859348297,
0.2121676802635193,
0.29996827244758606,
-0.13011953234672546,
-0.28123369812965393,
-0.15777131915092468,
0.27557364106178284,
-0.2743613123893738,
-0.07554030418395996,
-0.8934400677680969,
-0.1088462620973587,
0.4099646210670471,
-0.20295870304107666,
0.0046194372698... | |
list of complaints with it:
* The workflow designer will drive you insane because it is so slow (in certain circumstances) and re-arranges your state machines as it sees fit.
* There is no built in upgrade strategy for keeping your old workflows running once you do a bug fix release. If you are going to use WF think c... | [
0.47242870926856995,
0.20271633565425873,
0.24891042709350586,
0.19297268986701965,
-0.14727665483951569,
-0.23154199123382568,
0.4204350411891937,
-0.09215293824672699,
-0.19988331198692322,
-0.4538097083568573,
0.3350006639957428,
0.6813904047012329,
-0.06689025461673737,
0.2924577295780... | |
out there but none seemed particulary easy when we started this [WorkFlow Unit Testing](https://stackoverflow.com/questions/182740/workflow-unit-testing)
I like the ideas and potential of Workflow based development, however I am not in a hurry to repeat this experience and would probably stick without it for long runn... | [
0.21599949896335602,
-0.00493623735383153,
0.10297329723834991,
-0.0019158633658662438,
0.00948223378509283,
-0.17258955538272858,
0.08144734799861908,
0.19388653337955475,
-0.21009619534015656,
-0.5006434917449951,
0.3565221130847931,
0.4299681782722473,
0.062051039189100266,
0.0308876931... | |
My colleague here argues that new programmers must learn ASP first, before they learn ASP.Net.
I seem to agree with him as most new programmers who start with ASP.Net do not understand web get, post and state management :(
Which is best to learn web programming Classic ASP or ASP.Net?
I'd pick ASP.NET MVC over class... | [
0.10865125060081482,
0.11002708971500397,
0.14864377677440643,
-0.030022580176591873,
-0.020523397251963615,
-0.22002264857292175,
-0.016542751342058182,
-0.022864719852805138,
-0.40720704197883606,
-0.6964021921157837,
-0.4238958954811096,
0.6795428395271301,
-0.25618910789489746,
0.08249... | |
How do you implement the search capabilities of Lucene.net in asp.net? If possible, please include links or example code.
I think [mojoPortal](http://www.mojoportal.com/) (ASP.NET CMS) uses Lucene.NET.
Another nice example, [cuyahoga](http://www.cuyahoga-project.org/), makes also use of NHibernate.
You can take a loo... | [
0.16805429756641388,
0.06897066533565521,
0.07308828830718994,
0.09593222290277481,
-0.12762166559696198,
-0.15137121081352234,
0.12728561460971832,
0.5660194754600525,
-0.11436263471841812,
-0.7493400573730469,
-0.171790212392807,
-0.003954826854169369,
-0.08579959720373154,
0.22781229019... | |
I'm getting increasingly frustrated with the limitations and verbosity required to actually commit some business logic to stored procedures, using languages such as Transact-SQL or PL/SQL. I would love to convert some current databases to Oracle and take advantage of its support for Java stored procedures, but that opt... | [
0.02348151057958603,
0.2854505777359009,
0.07316307723522186,
0.23270514607429504,
0.01585213840007782,
-0.11819467693567276,
0.11054914444684982,
0.07399477809667587,
-0.08257859200239182,
-0.5861039161682129,
0.028416171669960022,
0.73288893699646,
-0.36292290687561035,
-0.06511042267084... | |
is that it can only use constructs that are accessible to the query optimiser. This means that the language and its capabilities are quite tightly coupled to the capabilities of the query execution engine and query plan optimiser.
The other major design constraint is the mechanical nature of the database system - data... | [
-0.07214096188545227,
0.12144063413143158,
0.19937211275100708,
0.28066277503967285,
0.194461852312088,
-0.03408188372850418,
0.19991719722747803,
-0.05696703866124153,
-0.08151418715715408,
-0.36829113960266113,
-0.11143247783184052,
0.7042001485824585,
-0.3445073962211609,
0.114575244486... | |
powerful or easier to work with. Many database management systems supplement SQL with procedural alternatives that can be used for scripting. However, they interact with the DBMS by
executing a series of SQL queries that are processed by the optimiser individually. Some languages of this type that are shipped with vari... | [
0.07321428507566452,
0.14952845871448517,
0.19021089375019073,
0.04100601747632027,
-0.3489447832107544,
-0.16940778493881226,
0.09028638154268265,
-0.11721663922071457,
0.056223783642053604,
-0.385591596364975,
-0.31043773889541626,
0.3919525146484375,
-0.29178014397621155,
-0.17048589885... | |
type system. One of the major
criticisms of Java stored procedures
on Oracle is that you are paying for
Oracle's capacity based licensing on
the CPU you are running the JVM's
on.
* SQL Server [CLR Integration](http://msdn.microsoft.com/en-us/library/ms345136.aspx).
Somewhat similar to Oracle's Java
Stored Procedures, ... | [
0.33714625239372253,
0.19292299449443817,
0.30952611565589905,
-0.0104970782995224,
-0.342564195394516,
0.034130509942770004,
0.0005198247963562608,
-0.26691800355911255,
-0.20749232172966003,
-0.12318365275859833,
-0.028475094586610794,
0.3313857614994049,
-0.5819790363311768,
0.125022873... | |
storage
engines, procedural extensions and other
functionality.
[The language interfaces](http://www.postgresql.org/docs/8.3/static/xplang.html)
are based on this API and include:
[PL/pgSQL](http://www.postgresql.org/docs/8.3/static/plpgsql.html) (a bespoke language similar
to PL/SQL), [Python](http://www.postgresql.or... | [
0.04597959667444229,
-0.04796161130070686,
0.3073849380016327,
0.19915668666362762,
0.005697797052562237,
0.046119093894958496,
-0.3870285749435425,
0.11953827738761902,
-0.4097902476787567,
-0.3071633577346802,
-0.26037055253982544,
0.4844810962677002,
-0.2154996395111084,
0.1087152510881... | |
your action will take. In practice, this type of interaction with the query optimiser is mainly useful for implementing storage engines.
This level of digging into the storage engine is (a) somewhat esoteric if the functionality is available at all (so most people won't have the skill to do this) and (b) probably cons... | [
0.1484496146440506,
-0.07928283512592316,
-0.010334765538573265,
0.3089587092399597,
-0.11915616691112518,
-0.1491793394088745,
0.5705174207687378,
-0.2735345959663391,
-0.05001964420080185,
-0.24776872992515564,
-0.07822991907596588,
0.9298793077468872,
-0.2443106770515442,
-0.39410969614... | |
efficient queries is likely to be
writing the query in SQL with some procedural glue in one of the other languages. In some cases a computation really does lend itself to a procedural approach.
This can become a hassle and lead to large bodies of boilerplate SQL code. The only real options for this are hand coded SQ... | [
0.2035743147134781,
0.14263075590133667,
0.1749809831380844,
0.435238242149353,
-0.041598979383707047,
-0.14262360334396362,
0.21192798018455505,
-0.18287217617034912,
-0.12441016733646393,
-0.6953524351119995,
-0.07586559653282166,
0.4936918020248413,
-0.3849356472492218,
-0.1252470314502... | |
which work by generating great screeds of stored procedure code from the model.
I find myself building code generation systems of one sort or another on a semi-regular basis for precisely this reason. Any templating system will do for this - I've had fairly good mileage from [CherryTemplate](http://cherrytemplate.pyth... | [
0.4754337966442108,
-0.17140208184719086,
-0.5724666118621826,
0.18137066066265106,
-0.2736925482749939,
0.19265909492969513,
0.22520454227924347,
-0.11999357491731644,
-0.5225809216499329,
-0.04760371148586273,
-0.07349590212106705,
0.39375755190849304,
-0.15602737665176392,
-0.2090372145... | |
own query plan. The query optimisation algorithm can only work on a single SQL statement, so a procedure will have a forest of query plans. Because procedural code can have '[side-effects](http://en.wikipedia.org/wiki/Pure_function)' you cannot use the [type of algorithms](http://www.pgcon.org/2007/schedule/attachments... | [
0.19617855548858643,
-0.08258241415023804,
0.3527434468269348,
0.15454941987991333,
-0.12841059267520905,
0.07045980542898178,
0.045716725289821625,
-0.2732432186603546,
-0.26011690497398376,
-0.4645021855831146,
-0.05458323284983635,
0.31835615634918213,
-0.5403611063957214,
-0.2735737860... | |
I want to do preliminary check if entered string looks like [Vehicle Identification Number (VIN)](http://en.wikipedia.org/wiki/Vehicle_identification_number). I know what it consists of 17 letters and digits, but letters I, O and Q are not allowed inside VIN, so I use this regular expression:
```
^[0-9A-Z-[IOQ]]{17}$ ... | [
0.11102288216352463,
0.1318264901638031,
0.5854566693305969,
-0.003931933548301458,
-0.15838727355003357,
0.2607320547103882,
0.05338757857680321,
-0.30326393246650696,
-0.22976034879684448,
-0.5870139598846436,
0.06730740517377853,
0.7560699582099915,
-0.07918788492679596,
0.2164579778909... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.