text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
},
new person()
{
name = "John",
age = 21,
allMyFriends = new List<friend>() { new friend("Dan") } | [
-0.21576844155788422,
-0.15147754549980164,
0.15518108010292053,
-0.1514410376548767,
0.6516236662864685,
0.16535584628582,
0.4077695608139038,
0.2896380126476288,
-0.46128326654434204,
-0.7111265659332275,
-0.3336687386035919,
0.3105984032154083,
0.033239468932151794,
0.34318187832832336,... | |
},
new person()
{
name = "Matt",
age = 21,
allMyFriends = new List<friend>() { new | [
-0.2754330337047577,
-0.19612377882003784,
0.5924237966537476,
-0.13832877576351166,
0.368905246257782,
0.053288526833057404,
0.5249476432800293,
0.25016656517982483,
-0.48212072253227234,
-0.7023082971572876,
-0.11821089684963226,
0.189158096909523,
-0.010570389218628407,
0.35426026582717... | |
friend("Dan"), new friend("James") }
},
new person()
{
name = "Tom",
age = 21,
allMyFriends = | [
-0.45893150568008423,
-0.1498347371816635,
0.6533864140510559,
-0.18257130682468414,
0.67823725938797,
0.2419765740633011,
0.36437690258026123,
0.2899838984012604,
-0.43955832719802856,
-0.7106415629386902,
-0.26380935311317444,
0.24217519164085388,
0.06610973179340363,
0.37670016288757324... | |
new List<friend>() { new friend("James") }
}
};
System.Data.DataTable dt = new System.Data.DataTable();
dt.Columns.Add("Name");
dt.Columns.Add("Age");
foreach (person p in allPerson)
{
// step through each person and look at their friends | [
-0.26974478363990784,
-0.07949457317590714,
0.7074296474456787,
-0.2687400281429291,
0.2736680209636688,
0.5259770154953003,
0.29093098640441895,
-0.2661636769771576,
-0.6279923319816589,
-0.7899357676506042,
-0.35684168338775635,
0.054607994854450226,
-0.2785997688770294,
0.25919511914253... | |
foreach (friend f in p.allMyFriends)
{
// look to see if this friend has a column already
if (!dt.Columns.Contains(f.name))
{ | [
-0.4139549136161804,
0.4197915494441986,
0.6034587025642395,
-0.4710097014904022,
0.3959103226661682,
0.42274010181427,
0.29465144872665405,
0.004155175294727087,
-0.021000398322939873,
-0.6504683494567871,
-0.20476621389389038,
0.2796042263507843,
-0.2980077564716339,
0.06332381069660187,... | |
dt.Columns.Add(f.name);
}
}
}
foreach (person p in allPerson)
{
// create the datarow that represents the person
System.Data.DataRow dr = dt.NewRow(); | [
-0.42382070422172546,
-0.2987663447856903,
0.5746733546257019,
-0.3215468227863312,
-0.14096130430698395,
0.4748331904411316,
-0.024585526436567307,
-0.12282431125640869,
-0.02107023261487484,
-0.5624662637710571,
-0.32036614418029785,
0.30621159076690674,
-0.3487124741077423,
0.3287553489... | |
dr["Name"] = p.name;
dr["Age"] = p.age;
// find the friends and mark them
foreach (friend f in p.allMyFriends)
{
dr[f.name] = "X";
} | [
-0.25203895568847656,
0.30350953340530396,
0.7567213177680969,
-0.21865835785865784,
0.306988924741745,
0.4608842134475708,
0.1401117742061615,
-0.027186905965209007,
-0.07021001726388931,
-0.6108289957046509,
-0.4434177279472351,
0.15144529938697815,
0.09374121576547623,
0.257535129785537... | |
dt.Rows.Add(dr);
}
// fill the list
this.Grid.DataSource = dt;
this.Grid.DataBind();
}
}
public class person
{
public string name;
public int age;
public List<friend> allMyFriends = new List<friend>();
}
public class friend
{
public string name;
public string ... | [
-0.3999018669128418,
-0.26685234904289246,
0.36526861786842346,
-0.29308828711509705,
0.19981993734836578,
0.36290809512138367,
0.14124709367752075,
-0.1365228295326233,
-0.3381292223930359,
-0.7317032814025879,
-0.3531416654586792,
0.6344051361083984,
-0.11949244886636734,
0.4507077336311... | |
public friend(string name)
{
this.name = name;
}
public friend(string name, string address)
{
this.name = name;
this.address = address;
}
}
```
Edit:
I forgot to add how this is rendered.
```
-------------------------------------------------
| Name | Age | James | John |... | [
-0.5153306722640991,
0.4176989793777466,
0.3373800814151764,
-0.24406132102012634,
0.3395191729068756,
0.18930205702781677,
0.7188929915428162,
0.19181348383426666,
-0.06209659203886986,
-0.4535740911960602,
-0.08477617800235748,
0.4392135739326477,
-0.3480764329433441,
0.21490120887756348... | |
X | | |
| James | 21 | | | X | X | X |
| John | 21 | | | | X | |
| Matt | 21 | X | | | [
-0.3567061126232147,
0.40061143040657043,
0.42552563548088074,
-0.4850297272205353,
-0.38028302788734436,
0.3542047441005707,
1.0820695161819458,
-0.21790292859077454,
-0.2428830862045288,
-0.15108168125152588,
-0.46286940574645996,
-0.19881896674633026,
-0.5562577843666077,
0.077931255102... | |
| X | |
| Tom | 21 | X | | | | |
-------------------------------------------------
``` | [
-0.30059483647346497,
0.36739131808280945,
0.6282477378845215,
-0.06511763483285904,
0.05835149809718132,
0.3604152798652649,
0.5832375288009644,
-0.1736542284488678,
-0.09761564433574677,
-0.29115182161331177,
-0.20874348282814026,
0.35553205013275146,
-0.48412394523620605,
0.226958960294... | |
A program written in Visual C/C++ 2005/2008 might not compile with another compiler such as GNU C/C++ or vice-versa. For example when trying to reuse code, which uses windows.h, written for a particular compiler with another, what are the differences to be aware of?
Is there any information about how to produce code w... | [
0.0833451896905899,
0.3247661590576172,
0.1479109227657318,
0.32236331701278687,
-0.18364952504634857,
-0.32974445819854736,
0.054440729320049286,
0.01706436648964882,
-0.3355221450328827,
-0.4222356975078583,
0.02634817734360695,
0.6689472198486328,
-0.21730180084705353,
0.024451162666082... | |
to compile it with Microsoft-extensions switched off. (Use the /Za flag, I think). That will smoke out lots of things which GCC and other compilers will complain about.
The next step is to make sure that Windows-specific APIs (MFC, Win32, etc.) are isolated in Windows-specific files, effectively partioning your code i... | [
0.41339588165283203,
-0.11634660512208939,
-0.025348491966724396,
0.1480845957994461,
-0.07361820340156555,
-0.49761098623275757,
0.17517630755901337,
-0.26539552211761475,
-0.1893690973520279,
-0.48233717679977417,
-0.2716856598854065,
0.481106162071228,
-0.3151816129684448,
0.01820815540... | |
Since I received no positives answers to my [last](https://stackoverflow.com/questions/285237/does-a-javascriptable-ftp-upload-javaflash-applet-exist) question. I will try to write a Java FTP upload applet myself.
My question is: "Can you recommend a Java FTP client library for me to use?"
I want it to be:
* stable
... | [
-0.05949779972434044,
0.07855571061372757,
0.09495498985052109,
0.06014435365796089,
-0.11504721641540527,
-0.31221938133239746,
0.22345614433288574,
-0.20942500233650208,
-0.5559544563293457,
-0.43567365407943726,
0.08068270981311798,
0.6260262131690979,
-0.27827295660972595,
-0.276997148... | |
Off the top of my head I'm not sure if it meets all of your requirements, but it's certainly free! | [
0.6854913830757141,
0.3044198751449585,
0.20715951919555664,
0.468638151884079,
0.24937324225902557,
-0.5271887183189392,
0.22548410296440125,
0.19506196677684784,
-0.14186014235019684,
0.04269210994243622,
0.2702139616012573,
0.468355268239975,
0.06945794075727463,
0.2298145741224289,
0... | |
My Facebook application contains Javascript that works in Firefox and IE, but aborts in Chrome.
In the Javascript console it gives several errors.including:
```
Uncaught TypeError: Object onloadhooks has no method 'replace'
```
There are similar errors complaining about a missing method for 'toLowerCase'.
**Stop P... | [
0.3149401843547821,
0.4490371644496918,
0.6064288020133972,
-0.17132139205932617,
-0.03207870572805405,
-0.11671097576618195,
0.7193067669868469,
-0.08879022300243378,
-0.06734748929738998,
-0.7478861808776855,
0.008139348588883877,
0.6185839176177979,
-0.3791392743587494,
-0.1099248751997... | |
I'm currently maintaining some flex code and noticed very many functions which are declared like:
```
private function exampleFunc():void {
....
}
```
These functions are in the *global scope*, and aren't part of any specific class, so it's a bit unclear to me what effect declaring them as private would have. Wh... | [
0.3059404492378235,
-0.03146771714091301,
0.08376172184944153,
-0.14445260167121887,
-0.13511261343955994,
-0.11866412311792374,
0.3841014504432678,
0.22231315076351166,
-0.5189263224601746,
-0.2379205822944641,
-0.21771591901779175,
0.670711874961853,
-0.6216697096824646,
0.16966404020786... | |
example to make that clear, say you have the following component, we'll call it FooBox:
```
<!-- FooBox.mxml -->
<mx:Box xmlns:mx="http://www.macromedia.com/2003/mxml">
<mx:Script><, it is possible, provided that:
* you search for the keyCode (**8** for delete) onkeydown/up, and
* ignore both onkeypress and charCode... | [
0.10415920615196228,
-0.27348336577415466,
0.47917497158050537,
-0.05472598597407341,
0.2033977061510086,
0.09383377432823181,
0.530255138874054,
0.001724247238598764,
-0.38295552134513855,
-0.47981300950050354,
-0.15416017174720764,
0.6709694862365723,
-0.15279968082904816,
-0.24523411691... | |
If you put up an `NSAlert` while your app is in the background your dock icon starts bouncing and keeps on bouncing until you switch back.
I find this annoying.
Does anyone know how disable that for a single app?
Create your own subclass of NSApplication, and implement something like this:
```
- (int)requestUserAt... | [
0.42834970355033875,
-0.27482447028160095,
0.3352702856063843,
-0.040500178933143616,
0.030500810593366623,
-0.028884390369057655,
0.7534048557281494,
-0.2952996492385864,
-0.28930819034576416,
-0.6276313066482544,
-0.14409184455871582,
0.7084344625473022,
-0.6404469013214111,
-0.101521722... | |
forget to change "NSPrincipalClass" in your Info.plist from NSApplication to your own NSApplication subclass. | [
0.24947701394557953,
-0.2806190252304077,
0.00987712386995554,
0.2152189016342163,
0.0709933415055275,
-0.33892157673835754,
0.4910796284675598,
0.18025846779346466,
-0.3707832992076874,
-0.747149646282196,
-0.15747994184494019,
0.18921342492103577,
-0.29728975892066956,
0.0333934389054775... | |
I need to encrypt a small block of data (16 bytes) using 512 bit RSA public key -- quite an easy task for most cryptography libraries known to me, except for MS CSP API, as it seems.
Documentation for [CryptEncrypt](http://msdn.microsoft.com/en-us/library/aa379924(VS.85).aspx) function states that
> The Microsoft Enha... | [
0.07186534255743027,
0.2844015955924988,
0.17167611420154572,
0.1465693712234497,
-0.05317132920026779,
-0.08151829987764359,
0.5933166742324829,
-0.42827820777893066,
-0.1316482424736023,
-0.4395294487476349,
-0.23610377311706543,
0.39546287059783936,
-0.24892181158065796,
0.1050806567072... | |
the examples I've found refer to combined cryptography with symmetric cypher, so I don't have a working example on hands which definitely would make things easier.
Could please anyone point me to such an example or let me know if there are some not that obvious pitfalls I've missed?
Thank you.
For who still needs thi... | [
0.290164977312088,
-0.04304301366209984,
0.30177003145217896,
0.2549072802066803,
-0.2685255706310272,
-0.0228128582239151,
0.07399411499500275,
-0.10649068653583527,
-0.33851009607315063,
-0.8051332831382751,
0.0034661851823329926,
0.30128931999206543,
-0.37576165795326233,
-0.25644975900... | |
doubles with value 96.0
1.the Image img is embedded in a Viewbox (also off-screen)
```
//prepare images
img = new Image();
img.Stretch = Stretch.None;
viewbox = new Viewbox();
viewbox.Stretch = Stretch.None;
viewbox.Child = img; //control to render
```
2.img and viewbox are sized to the correct proportions, also so... | [
0.26284581422805786,
-0.035581592470407486,
0.740290105342865,
-0.32769379019737244,
-0.035960603505373,
0.588824987411499,
-0.08635932207107544,
-0.597425103187561,
-0.283025860786438,
-0.8370031118392944,
0.0666041448712349,
0.5184600949287415,
-0.43974849581718445,
-0.07792866230010986,... | |
Size(img.Width, img.Height));
viewbox.Arrange(new Rect(0, 0, img.Width, img.Height));
viewbox.UpdateLayout();
}
```
3.And to get the contents of the image, a "screenshot" if you will:
```
void SaveUsingEncoder(BitmapEncoder encoder, Stream stream)
{
RenderTargetBitmap bitmap = new RenderTargetBitmap((i... | [
0.1950462907552719,
-0.2806030213832855,
0.6876535415649414,
-0.19863641262054443,
0.01776561327278614,
0.33921709656715393,
0.23427245020866394,
-0.35506945848464966,
-0.38472282886505127,
-0.9459944367408752,
-0.2168765813112259,
0.5317750573158264,
-0.22957302629947662,
0.20436611771583... | |
When I delete a visual component in a base form, and forget any references in inherited forms, my application only breaks in runtime.
What I normally do is to use a search tool to find references in .DFM, but I'm not completely satisfied with this method.
Do you have any better recommendations?
maybe [Andreas Hauslad... | [
0.23434746265411377,
0.40164294838905334,
0.32665520906448364,
0.016911977902054787,
-0.11841867864131927,
-0.26195046305656433,
0.5944638252258301,
-0.22577010095119476,
-0.45070263743400574,
-0.5719691514968872,
-0.3241550326347351,
0.4682399034500122,
-0.30463048815727234,
0.17134733498... | |
I am writing a windows service. This service runs another process I've developed through Process class methods, but I want to run this process on debug mode also, using breakpoints, for instance.
How can I do this?
When debugging a service, DebugBreak() is very nice. You can even debug the startup of the service, whic... | [
0.3488379418849945,
0.45564302802085876,
0.11046028137207031,
-0.23520435392856598,
-0.08532851189374924,
-0.3009549081325531,
0.4811728298664093,
0.01207439973950386,
-0.09167912602424622,
-0.683536946773529,
-0.29063472151756287,
0.4514932334423065,
-0.4512009024620056,
0.028805600479245... | |
Is it correct to assume that JQuery is not actually an implementation of ECMA spec but rather some kind of framework?
If that is true, what run time does it use? For example in IE, does it finally end up with the javascript engine in IE?
thanks
Sesh
jQuery is written entirely in Javascript. It runs using whatever ... | [
0.3070714771747589,
0.03289235010743141,
0.468046635389328,
0.08968466520309448,
-0.2693164646625519,
-0.4566040337085724,
-0.002306064823642373,
0.23712646961212158,
0.03962032496929169,
-0.5964967608451843,
0.016881121322512627,
0.5114697813987732,
-0.1716664433479309,
-0.441372126340866... | |
quirks between browsers into account and smooths them out (internally) for you so that everything works the same regardless of browser when you develop within the framework.
It follows the ECMA spec only as much as every browser allows. | [
0.43161433935165405,
-0.02809055894613266,
0.530883252620697,
-0.11363442987203598,
0.22419309616088867,
-0.18705128133296967,
0.3631994128227234,
-0.06061417981982231,
-0.10209754854440689,
-0.567927360534668,
-0.06133704259991646,
0.5147045254707336,
0.0019520178902894258,
-0.40596374869... | |
I'm trying to find an editor (or some simple JavaScript - preferably jQuery) that will allow me to edit the contents of a textarea.
I don't want it to be rich text or WYSIWYG; I just want to be able to select a bit of text, click a button/link and have some simple HTML tags that I define put either side of the highlig... | [
0.3015782833099365,
0.1429041177034378,
0.27775201201438904,
0.07479356229305267,
-0.19212450087070465,
-0.09295111149549484,
-0.10876048356294632,
0.05069965124130249,
-0.01250993087887764,
-0.6936824321746826,
0.03850628808140755,
0.40616142749786377,
-0.3628690838813782,
-0.051736619323... | |
custom HTML, not Markdown.
What options are there that I could use?
Thanks in advance.
Would something like [this](http://krijnhoetmer.nl/stuff/javascript/textarea/) fit the bill? I think it just uses `document.selection` to identify where to insert the markup. | [
0.5387352108955383,
-0.26571905612945557,
0.17480768263339996,
-0.10807710140943527,
-0.21037057042121887,
-0.12235938757658005,
0.12067457288503647,
0.0866757184267044,
-0.3978625535964966,
-0.6174271106719971,
0.08199353516101837,
0.48502999544143677,
0.06815759837627411,
-0.241754710674... | |
I've got a message contained in an byte[], encrypted with "RSA/ECB/PKCS1Padding". To decrypt it I create a Cipher c and initiate it with
```
c = Cipher.getInstance("RSA/ECB/PKCS1Padding");
```
Untill now I have only decrypted small messages, using the *doFinal()* method, returning an byte[] with the decrypted bytes.... | [
0.15944015979766846,
0.2564709782600403,
0.4933529496192932,
-0.1981828510761261,
0.1567886918783188,
-0.05112174525856972,
0.5813924074172974,
-0.06629630923271179,
-0.45473361015319824,
-0.39333078265190125,
-0.4559968411922455,
0.26785627007484436,
-0.24215810000896454,
0.29867696762084... | |
RSA encryption for anything but key transport is abuse.
Generate a new key for a symmetric cipher and encrypt your bulk data with that. Then encrypt the key with RSA. Send the symmetrically-encrypted cipher-text along with the asymmetrically-encrypted content encryption key to your recipient. | [
0.29315492510795593,
0.014604599215090275,
0.5745401382446289,
0.023928804323077202,
-0.19594047963619232,
-0.2156238704919815,
0.17738401889801025,
-0.510941207408905,
-0.3717072010040283,
-0.2773071825504303,
-0.32332757115364075,
0.46426254510879517,
-0.5361131429672241,
-0.099704131484... | |
Is there a pretty printing function in Clojure that would output data-structures like lists and structs in a human-readable way?
clojure-contrib now has a pprint function.
The API documentation is at <http://richhickey.github.com/clojure-contrib/pprint-api.html> | [
-0.48459985852241516,
-0.1264060139656067,
0.9099252223968506,
0.16775086522102356,
-0.28804269433021545,
0.03331621736288071,
-0.3187776803970337,
0.22775861620903015,
-0.4469689428806305,
-0.4336577355861664,
-0.10372214764356613,
0.21051359176635742,
-0.45686936378479004,
-0.31321963667... | |
Are there any issues which might make MS's T4 Template code-generation system unsuitable for generating C++ code?
It can generate any text you want, including C++ code. | [
0.28012773394584656,
-0.0088864890858531,
0.24421077966690063,
0.27458998560905457,
0.15689414739608765,
-0.2511625587940216,
0.042749419808387756,
0.03203745558857918,
-0.1001138985157013,
-0.4800592362880707,
-0.3863598108291626,
0.6166255474090576,
-0.3478301465511322,
-0.09648995846509... | |
MS Access allows the numeric type GUID (in German it's called 'Replikations-ID', so I guess in English that would be 'replication id') which is stored as a 16 byte binary field in the database.
I found how to access these fields in Delphi with [**TADOQuery**](http://docwiki.embarcadero.com/Libraries/Tokyo/en/Data.Win.... | [
-0.7127567529678345,
0.17325076460838318,
0.7702958583831787,
0.26668256521224976,
0.030887920409440994,
0.1176115944981575,
-0.0739273726940155,
0.07048365473747253,
-0.3254670798778534,
-0.5231388211250305,
-0.02317771129310131,
0.3768882751464844,
-0.23557482659816742,
0.549087882041931... | |
for one or more required parameters
For example:
```
TheQuery.ParamByName('AGuid').Value := QuotedString(GuidToStr(AGuid));
TheQuery.Open; // <<== crashes here
```
This doesn't work either:
```
TheQuery.ParamByName('AGuid').Value := GuidToStr(AGuid);
TheQuery.Open; // <<== crashes here
```
I had a look at how `T... | [
-0.15770043432712555,
0.10255591571331024,
0.3147730529308319,
0.10971375554800034,
-0.18098248541355133,
0.07684773206710815,
0.22257603704929352,
-0.2818794846534729,
-0.008763027377426624,
-0.4549780488014221,
0.14496618509292603,
0.8050784468650818,
-0.5660192370414734,
0.2049176394939... | |
set a GUID-Parameter than always change the complete SQL-Statement?
(It must be a GUID because I need a globally unique identifier to synchronize with other databases which are MS SQL or MS Access based.)
**Edit**
vradmilovic is right, this works:
```
TheQuery.ParamByName('AGuid').Value := GuidToStr(AGuid);
TheQuery... | [
0.10328669100999832,
0.0070311082527041435,
0.4678835868835449,
0.25059735774993896,
-0.06793570518493652,
-0.1288449466228485,
0.20661908388137817,
-0.2975298762321472,
-0.06108126789331436,
-0.6783042550086975,
0.18852268159389496,
0.8998324275016785,
-0.6644545793533325,
0.1194914132356... | |
Inside my code I'm generating hashes of URLs, (which are practically of unbounded length). I'm currently using sha1(), which I know has a tiny chance of a collision, but I have up to 255 bytes to store the hash in so feel that I might as well use that available space to lower the chance of collision even further.
Is t... | [
0.09972511976957321,
0.2740176320075989,
0.22670474648475647,
0.05889721214771271,
-0.345842182636261,
0.009896406903862953,
0.1242259070277214,
-0.028704369440674782,
-0.3508087694644928,
-0.5840456485748291,
0.3466039001941681,
0.1915317177772522,
-0.18499068915843964,
0.0444426164031028... | |
and I should stop worrying about it?
> Or, is sha1's 20-byte has good enough for anything and I should stop worrying about it?
Exactly.
Hashtables, Pigeonholes, and Birthdays
<http://www.codinghorror.com/blog/archives/001014.html> | [
0.25424724817276,
0.20835907757282257,
-0.1310025453567505,
0.04957001656293869,
-0.07357651740312576,
-0.11137650907039642,
0.13256491720676422,
0.19574281573295593,
-0.27103012800216675,
-0.4676423966884613,
-0.13594922423362732,
-0.21215558052062988,
-0.06146189197897911,
-0.00536896754... | |
I'm looking for a web based upload manager, with good support for images. It should be as easy as possible for novice users to "add images to a website". I could use such a thing for two use cases:
* A CMS for external use, needs proper image support (1-file upload doesn't quite cut it).
* A Wiki for internal use, to ... | [
0.30401402711868286,
0.13712486624717712,
0.3657705783843994,
0.19983504712581635,
-0.2593408524990082,
-0.21141737699508667,
0.05712364241480827,
0.12363291531801224,
-0.4992629289627075,
-0.7360957264900208,
0.1318548619747162,
0.4822934567928314,
0.020941361784934998,
0.0320699773728847... | |
images and allows the user to add/remove/replace images.
I know there are probably a lot of server-side PHP scripts that can do things like this, in a pop-up window, or with AJAX, but where they're all lacking is in copy/paste support. Especially for the internal support site, a printscreen + paste would be an ideal ... | [
0.4615096151828766,
0.08885281533002853,
0.5347481966018677,
0.27132776379585266,
-0.21104732155799866,
-0.13005317747592926,
0.0455373115837574,
0.19894473254680634,
-0.29509222507476807,
-0.9007447361946106,
-0.013876020908355713,
0.6218130588531494,
-0.32289332151412964,
0.0024717259220... | |
really don't want to have to learn Flash, and I don't have the $$ to pay for the Flash development tools.
So tell me, is it even possible to copy/paste bitmap data into a Flash movie? And has someone perhaps already written an elegant image/upload manager that makes use of it?
I found this explanation: `http://www.ast... | [
0.4396023154258728,
-0.07745889574289322,
0.2886158227920532,
0.33112677931785583,
-0.028858372941613197,
-0.22557687759399414,
0.15116576850414276,
-0.020850537344813347,
-0.269544392824173,
-0.3678341507911682,
0.11948574334383011,
0.6113603711128235,
-0.012240694835782051,
-0.1321421116... | |
The small default value of the
> variable is a precaution to catch
> incorrect packets between the client
> and server and also to ensure that you
> don't run out of memory by using large
> packets accidentally.
Also note that I read you have to change the value for both the mysql client and the mysql server. | [
-0.024513129144906998,
-0.1659465730190277,
0.25827857851982117,
0.14349453151226044,
0.0001916123874252662,
-0.33025094866752625,
0.42034223675727844,
0.25625839829444885,
-0.10385868698358536,
-0.8398988246917725,
0.09658419340848923,
0.6794431209564209,
-0.2841227054595947,
0.1921654492... | |
When connecting to a network share for which the current user (in my case, a network enabled service user) has no rights, name and password have to be provided.
I know how to do this with Win32 functions (the `WNet*` family from `mpr.dll`), but would like to do it with .Net (2.0) functionality.
What options are avail... | [
0.3392655849456787,
0.14316517114639282,
0.08946942538022995,
0.049309976398944855,
-0.00002224825402663555,
-0.20739690959453583,
0.2834334671497345,
0.10615205764770508,
-0.12376569211483002,
-0.8712477684020996,
-0.1035865768790245,
0.48963722586631775,
-0.25957876443862915,
0.492324769... | |
server are not members of the same domain.
You can either change the thread identity, or P/Invoke WNetAddConnection2. I prefer the latter, as I sometimes need to maintain multiple credentials for different locations. I wrap it into an IDisposable and call WNetCancelConnection2 to remove the creds afterwards (avoiding t... | [
0.10573293268680573,
0.17142274975776672,
0.7487966418266296,
0.020723281428217888,
-0.016872966662049294,
-0.09960803389549255,
0.07860809564590454,
0.08671975880861282,
-0.14369602501392365,
-0.9126628041267395,
0.11995568871498108,
0.3424108028411865,
-0.31270211935043335,
0.66753286123... | |
I've found a few pages (some that even link to a number of other pages) on the Microsoft website that I bookmarked last night for reading today, but I'm curious as to other good non-Microsoft resources for discussing ASP.NET web applications, both Forms and MVC (including comparisons/contrasts between the two).
Keep yo... | [
0.581088662147522,
0.12750323116779327,
-0.16328953206539154,
0.1314627230167389,
0.012185784056782722,
-0.1699841469526291,
0.23810462653636932,
-0.04782377555966377,
-0.3126518130302429,
-0.4407857358455658,
-0.5405563116073608,
0.5788674354553223,
-0.21835359930992126,
-0.23896813392639... | |
[Code Camp Server](http://codecampserver.org)
* [Kigg](http://www.codeplex.com/Kigg)
There's a bunch of books coming out:
* [Pro ASP.NET MVC](http://apress.com/book/view/1430210079) by Steve Sanderson
* [Programming ASP.NET MVC](http://oreilly.com/catalog/9780596521851/) by Alex Horovitz
* [Beginning ASP.NET MVC](htt... | [
0.2216876745223999,
0.03874456509947777,
-0.1787930130958557,
0.11428406834602356,
-0.16998739540576935,
-0.03301572799682617,
0.23223119974136353,
-0.1922008991241455,
-0.32817819714546204,
-0.4286583960056305,
-0.40627244114875793,
0.5284075736999512,
0.011081208474934101,
-0.54335063695... | |
I have a List containing several keywords.
I foreach through them building my linq query with them like so (boiled down to remove the code noise):
```
List<string> keys = FillKeys()
foreach (string key in keys){
q = q.Where(c => c.Company.Name.Contains(key));
}
```
When I now make my keys contain 2 keys that ret... | [
0.20921431481838226,
0.2927532196044922,
0.6579359769821167,
-0.10227123647928238,
0.04347855597734451,
0.017883354797959328,
-0.03320413827896118,
-0.5698859095573425,
-0.18185804784297943,
-0.4491637051105499,
-0.21067824959754944,
0.4705435633659363,
-0.07114365696907043,
0.198255285620... | |
correct sql, but it replaces @p1 AND @p2 both by the same (last itterated) value.
What am I doing wrong?
You're reusing the same variable (`key`) in your lambda expression.
See my article on [anonymous methods](http://pobox.com/~skeet/csharp/csharp2/delegates.html#anonymous.methods) for more details, and there are a ... | [
-0.14373615384101868,
0.2760390043258667,
0.2921288013458252,
0.1716582477092743,
-0.053356725722551346,
-0.3140396475791931,
0.3939673900604248,
-0.18115270137786865,
-0.031443558633327484,
-0.2168332189321518,
-0.14455346763134003,
0.5765911340713501,
-0.32500407099723816,
0.055484771728... | |
q = q.Where(c => c.Company.Name.Contains(copy));
}
``` | [
0.2505860924720764,
0.5553383827209473,
0.19092966616153717,
-0.2513072192668915,
0.38755372166633606,
0.05187719315290451,
0.014536614529788494,
-0.21426309645175934,
0.28999754786491394,
-0.03803425654768944,
-0.38693857192993164,
0.5212234258651733,
-0.3386158049106598,
0.73251235485076... | |
Assume that you have a running SQL Server Express instance named (local)\SQLEXPRESS. Its database folder is c:\program files\Microsoft SQL Server\MSSQL.1\MSSQL\Data.
How can VBScript be used to retrieve that folder?
Maybe by using SMO? And if so, how? <- Forget that. SMO uses .NET. Only possible in PowerShell.
---... | [
0.040114376693964005,
0.015664342790842056,
0.42199766635894775,
0.001122515182942152,
0.12934216856956482,
-0.24494990706443787,
0.2073124796152115,
0.19058142602443695,
-0.10623545199632645,
-0.858794093132019,
-0.20469048619270325,
0.3541276156902313,
-0.5013857483863831,
0.044793814420... | |
where to place the files.
Since I would like to support the standards, I need to place the files into the common data folder.
---
**Update:**
When selecting a SQL server instance in InstallShield, the Property IS \_ SQLSERVER \_ SERVER is set with the instance name.
I found out, that I can query the registry under ... | [
0.22181802988052368,
0.3459573984146118,
0.5158352255821228,
-0.0353914350271225,
0.20926804840564728,
-0.3581557869911194,
-0.07961318641901016,
0.01813584566116333,
-0.1050371453166008,
-0.8235978484153748,
-0.1048276498913765,
0.5708536505699158,
-0.12798966467380524,
0.3235266208648681... | |
However, is there a better way?
The [PrimaryFilePath Property](http://technet.microsoft.com/en-us/library/ms144134.aspx) of [SQL-DMO](http://technet.microsoft.com/en-us/library/ms133993.aspx) looks interesting.
The MSDN states that SQL-DMO is deprecated as of SQL Server 2008, but for now it should still be working.
... | [
-0.16177350282669067,
0.31288018822669983,
0.48736295104026794,
0.2685917317867279,
0.402538537979126,
-0.34333866834640503,
0.29432058334350586,
0.19507497549057007,
-0.2875008285045624,
-0.6981937289237976,
-0.11917049437761307,
0.6418982744216919,
-0.20414994657039642,
0.132328808307647... | |
data, but it must be somewhere in the logical vicinity. | [
0.0774323046207428,
-0.04417423531413078,
0.39665988087654114,
0.7411047220230103,
0.27920064330101013,
-0.36282575130462646,
-0.19145186245441437,
0.3230660557746887,
-0.18034572899341583,
-0.2219809740781784,
-0.005104455165565014,
0.20347152650356293,
-0.15931783616542816,
0.01331719942... | |
I'm attempting to register an anonymous function when a user clicks a cell in an HTML table. Here's some of the raw, unadulterated code:
```
document.getElementById(
"course"+displayed_year_index+occurrences_indices[displayed_year_index]).onclick =
eval("function() {PrintReceipt("+result.years[result_year_... | [
0.0778152346611023,
0.2773149907588959,
0.48281601071357727,
-0.2920421063899994,
0.18272309005260468,
0.05120142921805382,
0.5869647860527039,
-0.17669007182121277,
-0.07389027625322342,
-0.23596428334712982,
-0.09582822024822235,
0.2451082020998001,
-0.3641641139984131,
0.113769471645355... | |
to do, here's a much simplified example:
```
for (index=0; index<4; index++) {
document.getElementById("div"+index).onclick =
eval("function () {Foo(index);};");
}
```
In other words, I wish to trigger the same function with a different parameter value for each `div`.
IMHO closures should not be used in... | [
0.0021380221005529165,
0.022465014830231667,
0.4751152992248535,
-0.22689194977283478,
0.18849223852157593,
-0.030810313299298286,
0.39334121346473694,
-0.4579947888851166,
-0.12080933898687363,
-0.3602147102355957,
-0.3494653105735779,
0.6617300510406494,
-0.3835161626338959,
0.1746451705... | |
definition */ ) {
var e = document.getElementById(
"course"+displayed_year_index+occurrences_indices[displayed_year_index]
);
e.rul_code = result.years[result_year_index].rul_code;
e.onclick = PrintReceipt;
}
```
But you should define the PrintReceipt first:
```
function PrintReceipt() {
//This functio... | [
0.3059498965740204,
-0.23303987085819244,
0.46524202823638916,
-0.0697469562292099,
0.36369428038597107,
-0.25169193744659424,
0.1936425417661667,
-0.4854568839073181,
-0.03004911169409752,
-0.5432974100112915,
-0.21842576563358307,
0.5267467498779297,
-0.30869027972221375,
0.3001003861427... | |
I would like to get the path to the execution directory of a Windows Forms application. (That is, the directory in which the executable is located.)
Does anyone know of a built-in method in .NET to do this?
Application.Current results in an appdomain
<http://msdn.microsoft.com/en-us/library/system.appdomain_members.as... | [
0.20778584480285645,
0.004911232274025679,
0.5773783326148987,
0.0030597271397709846,
0.24477221071720123,
0.0741991475224495,
0.2845337390899658,
-0.0877191573381424,
-0.5365017652511597,
-1.0053209066390991,
-0.21972954273223877,
0.0976463258266449,
-0.17119017243385315,
0.14727215468883... | |
I have 2 tables event + event\_artist
event
-----
```
eventId | eventName
-------------------
1 , gig1
2, gig2
```
event\_artist
-------------
```
eventId, artistName
-------------------
1, Led Zip
1, The Beatles
```
ie Led Zep and the Beatles are both playing @ Gig1
I need to create the SQl to bi... | [
-0.02696971967816353,
-0.07966798543930054,
0.3379615545272827,
-0.15846049785614014,
-0.09005113691091537,
0.08927417546510696,
-0.26089245080947876,
-0.21182863414287567,
-0.15351025760173798,
-0.5361419916152954,
0.2645837664604187,
0.42698460817337036,
-0.2834283709526062,
-0.127337783... | |
select i think.
Any thoughts on what this would look like.
Saw this in SQL Server Magazine- not great, and the total list will have an upper length limit, but:
```
drop table event
go
drop table event_artist
go
create table event (eventid int, eventname varchar(255))
go
create table event_artist (eventid int, arti... | [
0.10977480560541153,
-0.26614779233932495,
0.2669675052165985,
-0.20600686967372894,
-0.1342078298330307,
0.17035195231437683,
-0.28868862986564636,
-0.5985588431358337,
-0.30330559611320496,
-0.5939658284187317,
0.039231445640325546,
0.5187899470329285,
-0.2922495901584625,
-0.04448476806... | |
from event_artist
where eventid=@EventID
return substring(@artistList,3,2000) --eliminate initial comma
end
go
select event.eventid, event.eventname, dbo.Event_Display(event.eventid) from event
```
```
1 gig1 Led Zip, The Beatles
2 gig2
``` | [
-0.0692027285695076,
-0.05138198286294937,
0.03364737704396248,
-0.26610496640205383,
-0.0966508537530899,
0.2621324956417084,
-0.20131154358386993,
-0.30988144874572754,
-0.2874540388584137,
-0.38714367151260376,
-0.2774808406829834,
0.19743095338344574,
-0.2833588123321533,
0.33456230163... | |
Currently I have two MediaWikis, one a slightly older version than the other. I want to merge the contents of both together, without eliminating duplicate pages. So far the best option I can think of is to use a bot (like pywikipedia) to go through all the pages of one wiki, and try inserting them into the other, renam... | [
0.3470592498779297,
-0.09194967895746231,
0.25056979060173035,
0.3145943284034729,
-0.0859202891588211,
-0.2810107171535492,
0.11006450653076172,
0.39195719361305237,
-0.30593881011009216,
-0.962372899055481,
0.0853615552186966,
0.36117660999298096,
-0.06985118240118027,
0.5614464282989502... | |
comfortable messing with it without knowing what I'm doing.
MediaWiki has [import](http://meta.wikimedia.org/wiki/Help:Import) and [export](http://meta.wikimedia.org/wiki/Help:Export) features, that you can use for moving the contents. It does merge histories of existing pages (see import link).
However, it does not h... | [
0.09517618268728256,
-0.10910097509622574,
0.5440686345100403,
0.383601576089859,
-0.13552379608154297,
-0.39738959074020386,
-0.1240510419011116,
-0.11032900959253311,
-0.5887331962585449,
-0.5404914617538452,
0.19464059174060822,
0.3057668209075928,
-0.5192093253135681,
0.202120393514633... | |
mess up with imported pages from the other wiki). | [
0.1506539285182953,
0.46767866611480713,
0.23067381978034973,
0.27255919575691223,
-0.15031521022319794,
-0.4731366038322449,
0.5097389817237854,
0.5094552636146545,
0.05558056756854057,
-0.5600706338882446,
-0.19368059933185577,
0.19459117949008942,
-0.2118670791387558,
0.2951260805130005... | |
I'm now trying to create a xml-rpc server with the CodeIgniter Framework.
```
<?php
$this->load->library('xmlrpc');
$this->load->library('xmlrpcs');
$config['functions']['weblogUpdates.ping'] = array('function' => 'weblogUpdates.ping');
$config['functions']['ping'] = array('function' => 'weblogUpdates.ping');
$confi... | [
0.12296140938997269,
0.052799925208091736,
0.7609502077102661,
-0.28780773282051086,
-0.22932732105255127,
-0.027309086173772812,
0.25956159830093384,
-0.26953908801078796,
-0.2165517359972,
-0.8468647003173828,
0.10590268671512604,
0.3955901265144348,
-0.4238417148590088,
0.25625160336494... | |
We have very strange problem, one of our applications is continually querying server by using .net remoting, and every 100 seconds the application stops querying for a short duration and then resumes the operation. The problem is on a client and not on the server because applications actually queries several servers in... | [
0.24075107276439667,
0.04998241737484932,
0.4045794904232025,
0.5195819139480591,
0.10658366978168488,
-0.36776044964790344,
0.3475067615509033,
0.3821577727794647,
-0.4464814066886902,
-0.5689486861228943,
0.27204954624176025,
0.2732795178890228,
-0.13357381522655487,
0.3439362943172455,
... | |
to your application.
I think there are a few investigations you can do to help you narrow down the problem.
1. Determine whether it's the client or server that is actually stalling. If you have problems determining this, try installing a packet filter and monitor the traffic to see who sent the last data. You likel... | [
0.5936399698257446,
-0.3241115212440491,
0.30160409212112427,
0.4390009939670563,
0.18225719034671783,
-0.17477759718894958,
0.4632372260093689,
0.1957675665616989,
-0.18333858251571655,
-0.7326544523239136,
0.012868504971265793,
0.6658647656440735,
-0.45538702607154846,
-0.186943843960762... | |
where the hang occurs. This should give you enough details to help track down the problem. Or at least ask a more defined question on SO. | [
0.8075696229934692,
-0.31794553995132446,
0.5612814426422119,
0.07276242971420288,
-0.03495369851589203,
-0.3558993935585022,
0.002595723606646061,
0.10877675563097,
-0.6476729512214661,
0.08327195048332214,
0.31431514024734497,
-0.1339195966720581,
0.1787896305322647,
-0.09551332890987396... | |
I have a SQL SELECT query which has a LIKE clause containing an underscore, which should specifically look for an underscore, not treat it as a wildcard:
```
SELECT * FROM my_table WHERE name LIKE '_H9%';
```
I understand that I can change the actual clause to '[\_]H9%' for this to work as I expect, but the problem... | [
0.02258063480257988,
0.09843915700912476,
0.35846656560897827,
-0.062350694090127945,
-0.18076880276203156,
-0.24664603173732758,
0.2501675486564636,
-0.06731605529785156,
-0.03759755566716194,
-0.36066460609436035,
0.12932680547237396,
0.24922198057174683,
-0.462124764919281,
0.2715489566... | |
you're using Criteria to create the query, you can create your own expression which subclasses org.hibernate.criterion.LikeExpression, using one of the protected constructors that takes in 'Character escapeChar', and does substitution in the value for you. Assuming that '!' is a known value that won't be in any search ... | [
-0.04389996826648712,
-0.3846438527107239,
0.4032648205757141,
0.010091584175825119,
0.0452086366713047,
-0.12219887971878052,
0.41347694396972656,
-0.5546818971633911,
-0.08058062940835953,
-0.40250879526138306,
-0.3048635721206665,
0.7318093776702881,
-0.7247645854949951,
0.3269076347351... | |
return inputString;
}
}
```
if there ARE no such characters (that won't appear in your search value as literals) then add the following as the first line of escapeString() to escape those too:
```
inputString = inputString.replace("!", "!!");
``` | [
-0.4416196942329407,
-0.003463521832600236,
0.25993168354034424,
-0.22384238243103027,
0.12254338711500168,
0.05035869777202606,
0.25292471051216125,
-0.08283283561468124,
0.09743139892816544,
-0.38809114694595337,
-0.593204140663147,
0.7258049845695496,
-0.4900120794773102,
0.053774435073... | |
I'm sure there is a quick and easy way to calculate the sum of a column of values on Unix systems (using something like `awk` or `xargs` perhaps), but writing a shell script to parse the rows line by line is the only thing that comes to mind at the moment.
For example, what's the simplest way to modify the command bel... | [
-0.027668584138154984,
0.20813333988189697,
0.7304758429527283,
-0.010079698637127876,
0.12082839012145996,
-0.19253993034362793,
0.36891019344329834,
0.0532836876809597,
-0.5300942659378052,
-0.6836776733398438,
0.010366836562752724,
0.7002918124198914,
-0.03212513402104378,
0.52979558706... | |
MODE OWNER GROUP SEGSZ
Shared Memory:
m 0 0x411c322e --rw-rw-rw- root root 348
m 1 0x4e0c0002 --rw-rw-rw- root root 61760
m 2 | [
-0.44598671793937683,
-0.27453815937042236,
0.5408153533935547,
0.07419925183057785,
0.21278484165668488,
0.17155924439430237,
0.4429457485675812,
-0.10987859964370728,
0.17712076008319855,
-0.4531290531158447,
-0.33034467697143555,
0.7592104077339172,
-0.18022561073303223,
-0.170389786362... | |
0x412013f5 --rw-rw-rw- root root 8192
```
```
ipcs -mb | tail +4 | awk '{ sum += $7 } END { print sum }'
```
Or without tail:
```
ipcs -mb | awk 'NR > 3 { sum += $7 } END { print sum }'
```
Using awk with bc to have arbitrary long results (credits to `Jouni K.`):
```
ipcs -mb | awk 'NR > 3 { prin... | [
0.0718679130077362,
0.17462782561779022,
0.17488840222358704,
0.15562093257904053,
-0.04626268520951271,
0.2229013442993164,
0.008223975077271461,
-0.3012706935405731,
-0.0994708463549614,
-0.13790346682071686,
-0.22746184468269348,
0.2727585732936859,
-0.18979743123054504,
0.2876414060592... | |
I have a .jar file that i've placed in my D:\Coldfusion8\wwwroot\web-inf\lib\ directory. The file is abcdef.jar
This is my first time doing this, not sure what the path should be in my createObject().
```
<cfset abcObj = createObject("java","com.abcdef") />
<cfset result = acbObj.doStuff("123456") />
```
But when I... | [
0.1364823579788208,
0.6386383175849915,
0.2241642028093338,
-0.4667036831378937,
0.022681595757603645,
-0.14349447190761566,
0.6259334087371826,
-0.012598682194948196,
-0.20698633790016174,
-0.7259343862533569,
0.25370487570762634,
0.21452303230762482,
-0.3911685049533844,
0.36381077766418... | |
paths of ColdFusion.
* As for the class name parameter of `CreateObject()`: The class name starts within the jar. Open it like a .zip file and look at its structure. The dotted path mimics the folder structure, so if the Server still complains, you must be missing something in the dotted path. | [
0.32968753576278687,
0.12026228755712509,
0.34529227018356323,
0.1544233113527298,
-0.30932265520095825,
-0.3009262681007385,
0.29892927408218384,
0.2170923799276352,
-0.055787596851587296,
-0.7182958126068115,
0.2855360507965088,
-0.24203908443450928,
-0.5495615005493164,
0.37885960936546... | |
Consider the following code in VB9:
```
Dim text = "Line1<br/>Line2"
Dim markup = <span><%= text %></span>.ToString
```
While I was hoping markup would end up being `<span>Line1<br/>Line2</span>`, it actually evaluates to `<span>Line1<br/>Line2</span>`.
Is there any way to get the value of the variable not to... | [
0.24949181079864502,
-0.19385169446468353,
0.7758709788322449,
-0.28167179226875305,
-0.11424808949232101,
0.01039173360913992,
0.2716313302516937,
-0.2664697468280792,
-0.13840466737747192,
-0.5254068970680237,
0.001443482586182654,
0.5890437960624695,
-0.31741395592689514,
-0.28718841075... | |
where a user can enter free-form text, with carriage returns. The output is HTML, so somehow I need to get the value from the database and convert the carriage returns to line breaks.
This behavior is "By Design." When embedding a string expression inside an XML literal the value will be escaped to be a legal string va... | [
0.24250881373882294,
0.007158387452363968,
0.6299028396606445,
-0.11598996818065643,
-0.22514206171035767,
-0.16130153834819794,
0.28497010469436646,
-0.35502198338508606,
-0.09497522562742233,
-0.6416577696800232,
-0.27038103342056274,
0.46280398964881897,
-0.48434212803840637,
0.02535733... | |
achieve this is to fake an XElement. To make the text a valid string, simply wrap it on both ends with a normal tag, `<a>` for example. This is now a parsable XML fragment. Once you have an XElement, it's easy to get the embedded behavior you are looking for
```
Dim text = "Line1<br/>Line2"
Dim text2 = XElement.Parse(... | [
0.4132750928401947,
-0.1027805507183075,
0.6658016443252563,
0.031612589955329895,
0.246731236577034,
-0.31055161356925964,
0.510941207408905,
-0.24765753746032715,
-0.028771236538887024,
-0.30297425389289856,
-0.28972867131233215,
0.5919845104217529,
-0.3473086953163147,
-0.10586141794919... | |
Being a Windows developer I'm currently working on my own project using LAMP. I understand what I need to know of PHP and MySQL, but Linux looks huge and it's not clear where to start and what is enough given my goals.
And my goals are to grasp general concepts, being able to deploy the project to a hosting provider an... | [
0.577232837677002,
0.29504117369651794,
-0.004336140118539333,
0.05172102898359299,
-0.05320775508880615,
-0.22688564658164978,
0.1315736472606659,
0.2441876232624054,
-0.24416972696781158,
-0.7593864798545837,
0.11060795933008194,
0.47765010595321655,
-0.11169448494911194,
0.0986899808049... | |
myself.
80% of your problems will be permissions. Windows does them differently; if you login as root (or with root-like privs) you can bypass permissions. Apache can't and won't.
* Learn how to properly set ownership of files and directories. Any Unix book will cover this: be sure to actually understand it -- it's no... | [
0.22096304595470428,
0.47725537419319153,
0.1491701453924179,
0.19598892331123352,
-0.22257022559642792,
-0.047044336795806885,
0.7186557650566101,
-0.04480045661330223,
-0.4333835244178772,
-0.36061641573905945,
-0.004367790650576353,
0.45305365324020386,
-0.03960072249174118,
0.036089334... | |
regularly. Windows has a PATH, but it also has a registry, making things either super easy or super secret. Unix keeps no secrets.
* Learn what environment variables PHP and MySQL use. Be sure you know where and how they get set. Apache runs in it's own peculiar environment, and it has commands to provide runtime envi... | [
0.5493184924125671,
0.01568126305937767,
0.36551910638809204,
0.13134431838989258,
-0.022201422601938248,
-0.4695824980735779,
0.733920156955719,
-0.047563761472702026,
-0.4958168864250183,
-0.5065324902534485,
-0.08382513374090195,
0.4314727187156677,
-0.20907120406627655,
-0.072556637227... | |
obscure, confusing ways. MySQL is very forgiving, but you'll make some mistakes here.
* Try each alternative connection, know how they work. Don't pick one because it's Windows-like, or "simpler". Actually exercise each one. How you pass usernames and passwords from web app to database server is important, also. Apach... | [
0.20433425903320312,
0.15978530049324036,
0.18406416475772858,
0.4302469491958618,
0.006702139973640442,
-0.046800270676612854,
0.6243833303451538,
0.1165052279829979,
-0.4253423810005188,
-0.6899163722991943,
-0.07391147315502167,
0.378299742937088,
-0.32600709795951843,
0.022334242239594... | |
and you'll always try two that don't work at all, and settle for the third which will be icky. The fourth, which is much simpler, will never occur to you.
* Read a LOT about Apache configuration. The [httpd.apache.org](http://httpd.apache.org/) site has lots of information. Strive for simplicity. Copy existing exampl... | [
0.2311757355928421,
0.2832023501396179,
0.18837176263332367,
0.3659842908382416,
0.11324445903301239,
-0.2672818601131439,
0.668011486530304,
-0.07188493013381958,
-0.3577476739883423,
-0.7451414465904236,
-0.27447453141212463,
0.4933145046234131,
-0.2224694788455963,
0.11016306281089783,
... | |
correct on the directory you're trying to use [see above] and (b) the Unix file paths are different. Not a lot different, but enough different that something will break in an obscure way.
* Every programming book in Unix/Linux book covers this. It's not a lot different from Windows, just enough different to trip you u... | [
0.05638169124722481,
0.15725907683372498,
0.1977374255657196,
0.36497578024864197,
-0.05812038108706474,
0.011517535895109177,
0.5524492263793945,
0.1872389316558838,
-0.5362454652786255,
-0.42140480875968933,
-0.15729211270809174,
0.8023557662963867,
-0.10571986436843872,
-0.0591260455548... | |
be subprocess creation. Windows does this differently. One of the most important things in Unix is to remember that your subprocess is your child and you must actually wait for it to finish so the OS can clean up. If you think of a subprocess as a parallel "fire-and-forget" thing, you'll have zombie processes and be fo... | [
0.15609072148799896,
-0.1522834599018097,
0.16655217111110687,
0.04069622606039047,
0.1928849220275879,
0.17844228446483612,
0.4358935058116913,
0.09265831112861633,
-0.12782959640026093,
-0.5250711441040039,
-0.35336917638778687,
0.39846867322921753,
-0.3586699068546295,
0.212545052170753... | |
but because of the platform differences, you'll blame Unix before you track down the bug in the PHP application.
* Get your [unit tests](http://phpunit.sourceforge.net/) and your [logging](http://www.devshed.com/c/a/PHP/Logging-With-PHP/) squared away so you can debug effectively. | [
0.48310989141464233,
0.17560520768165588,
0.06716500967741013,
0.17972832918167114,
0.02309231646358967,
-0.30590489506721497,
0.4726352095603943,
-0.21382534503936768,
-0.34158390760421753,
-0.2970050275325775,
0.0032758289016783237,
0.5056366920471191,
0.015340135432779789,
-0.0314334183... | |
I can't seem to figure out what I am doing wrong here. I publish my website to my server and when I try to run it I get the following exception:
> Could not load the assembly 'App\_Web\_kh7-x3ka'. Make sure that it is compiled before accessing the page.
Has anyone else ever encountered this?
This can also happen when... | [
0.3859516680240631,
0.3547027111053467,
0.07529135048389435,
-0.20353397727012634,
-0.1058073416352272,
-0.2291208654642105,
0.7019346356391907,
0.010744943283498287,
-0.39727988839149475,
-0.6323729157447815,
-0.04971405491232872,
0.5029222965240479,
-0.21925796568393707,
0.15250819921493... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.