text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
it on the bound list from my query.
```
foreach (DataRow dr in dtTags.Rows)
{
LinkButton lbTag = new LinkButton();
lbTag.CssClass = "UserTagNoHover";
lbTag.ID = "hlUserTag" + dr["UserTagRID"].ToString(); | [
-0.27044111490249634,
-0.23107458651065826,
0.9408982992172241,
-0.31042757630348206,
0.04787059128284454,
-0.01776358112692833,
0.2583554685115814,
-0.1441420316696167,
-0.10164907574653625,
-0.5163883566856384,
-0.4707709848880768,
0.30191561579704285,
-0.389107882976532,
0.4554015696048... | |
lbTag.Text = dr["Name"].ToString();
//lbTag.Click += new System.EventHandler(this.Tag_OnClick);
lbTag.CommandName = "User_Click";
lbTag.CommandArgument = "hlUserTag" + dr["UserTagRID"].ToString();
lbTag.ToolTip = "Total uses: " + dr["TotalCount"].ToString(... | [
0.02313639223575592,
-0.434897780418396,
0.5759627223014832,
-0.403308242559433,
0.024522827938199043,
0.09553537517786026,
0.29155585169792175,
-0.4966081380844116,
-0.3752898573875427,
-0.36962565779685974,
-0.5004801750183105,
0.6198522448539734,
-0.5694534182548523,
0.11222774535417557... | |
Boolean bAlreadyExists = false;
foreach (LinkButton lbTest in pnlTags.Controls)
{
if (lbTest.ID == lbTag.ID)
{ | [
0.2205447554588318,
-0.33107954263687134,
0.37942758202552795,
-0.2812027037143707,
0.17298074066638947,
-0.0729721263051033,
0.31371140480041504,
-0.5694926381111145,
0.13971956074237823,
-0.31667274236679077,
-0.1732385903596878,
0.5220539569854736,
-0.6033511161804199,
0.253977179527282... | |
bAlreadyExists = true;
}
}
if (bAlreadyExists == false)
{ | [
0.005996741354465485,
-0.08367817848920822,
0.4468058943748474,
-0.19843757152557373,
0.12389854341745377,
-0.0682457908987999,
0.2778787314891815,
-0.20911937952041626,
0.17087896168231964,
-0.35171571373939514,
-0.2109471708536148,
0.7914063930511475,
-0.5312476754188538,
0.3635916411876... | |
pnlTags.Controls.Add(lbTag);
}
}
```
The DataTable.Select() function does exactly what you seem to be wanting. Its second String parameter is a sorting string whose syntax is the same as SQL's: *[Column Name]* ASC, *[Other column name]* DESC, etc. | [
0.12727375328540802,
-0.35129475593566895,
0.39543017745018005,
-0.060428436845541,
-0.01624360680580139,
-0.08835884183645248,
-0.4035215675830841,
-0.11976218968629837,
-0.15858645737171173,
-0.5752726793289185,
-0.06462331861257553,
0.4533630609512329,
-0.6061331629753113,
0.02311926893... | |
I am developing a 2D iPhone game by using cocos2d. I need a countdown timer. How can I create a count down timer in cocos2d?
Not enough rep to upvote Tom, but he's absolutely right. Within the context of this question, NSTimer is the WRONG solution. The Cocos2d framework provides a scheduler that integrates with other ... | [
0.2912924289703369,
-0.18931427597999573,
0.2874528169631958,
-0.045785050839185715,
0.38815829157829285,
-0.04641575738787651,
0.13438545167446136,
-0.055618755519390106,
-0.2946981191635132,
-0.6270692348480225,
0.08662570267915726,
0.7785387635231018,
-0.31649065017700195,
-0.1009748801... | |
@selector(tick:)];
[self schedule: @selector(tick2:) interval:0.5];
return self;
}
-(void) tick: (CCTime) dt
{
// bla bla bla
}
-(void) tick2: (CCTime) dt
{
// bla bla bla
}
``` | [
0.38747671246528625,
-0.20257896184921265,
0.1116892397403717,
-0.2734273076057434,
0.1384916603565216,
0.3388616144657135,
0.03761422261595726,
-0.18861034512519836,
-0.4190264642238617,
-0.39599335193634033,
0.16298025846481323,
0.5039990544319153,
-0.3516565263271332,
0.5346621870994568... | |
I am new to Facebook application development and I am looking for a way to create and manage a group using the the Facebook API. There is a get and get list call but I have not found a way to manage groups.
At the time of writing there is no method of the Facebook API for creating groups. Methods are however available ... | [
0.5414026975631714,
0.2216605693101883,
0.1149030402302742,
-0.0985824391245842,
-0.14013083279132843,
0.02947743982076645,
0.21942073106765747,
-0.20722834765911102,
-0.0971534252166748,
-0.6190873384475708,
0.28967928886413574,
0.31302791833877563,
-0.1903735101222992,
-0.156209439039230... | |
I would like to create a C# project and implement the existing native (C++) code. Does anyone know about any good tutorial about it?
Thanks!
You can use P/Invoke and you can call unmanaged methods.
I'll post you some examples:
[This](http://msdn.microsoft.com/en-us/library/aa288468.aspx) is a reference to MSDN officia... | [
0.6355193853378296,
-0.12573707103729248,
-0.15946009755134583,
0.35395610332489014,
-0.16208966076374054,
-0.12905174493789673,
0.22271877527236938,
0.24565431475639343,
-0.30870434641838074,
-0.5712043046951294,
0.1413651704788208,
0.019539492204785347,
-0.0510748066008091,
0.22027476131... | |
I am trying to submit a create and update request to rails using flex with multiple models. For example, imagine that we have a blog post and multiple comments.
The user comes and update the post and some comments, when he clicks on submit I want to send all updates.
If I send something like:
```
var params:Object =... | [
0.1945776790380478,
0.1870565265417099,
0.3754374086856842,
-0.005877046845853329,
-0.5797943472862244,
0.4636216163635254,
0.2289302498102188,
-0.623327910900116,
-0.024425139650702477,
-0.8896613717079163,
0.03499724343419075,
0.47965025901794434,
-0.517824113368988,
-0.10785957425832748... | |
submit multiple attributes, lets suppose that for each comment I need to submit a rank, I tried to do (pseudo code):
```
var ar:Array = new Array();
for each comment c {
ar.push({"text":c.text, "rank":c.rank});
}
params["post[comments]"] = ar;
```
This does not work, because for each comment the hash parameters o... | [
0.28204283118247986,
-0.25724366307258606,
0.37234988808631897,
0.19163011014461517,
-0.38978683948516846,
0.26341506838798523,
0.09101737290620804,
-0.5046820044517517,
-0.49061712622642517,
-0.6187348365783691,
0.24725444614887238,
0.48158949613571167,
-0.24669203162193298,
0.12903040647... | |
with method signatures and examples | [
0.3151372969150543,
0.24300236999988556,
-0.25878775119781494,
0.20224131643772125,
0.18085576593875885,
-0.2447289675474167,
0.2093793898820877,
-0.506930947303772,
-0.32311388850212097,
-0.41173380613327026,
0.05778883397579193,
0.013750914484262466,
-0.025574063882231712,
-0.20162703096... | |
Is there any way in VB.NET to remove all of the whitespaces between tags in HTML?
Say, I've got this:
```
<tr>
<td>
```
The string I've built is an entire HTML document, and it counts everything before those tags as legitimate space, so I need to trim it out. Is there a reg ex or function out there I could us... | [
0.4531222879886627,
-0.13711024820804596,
0.43898430466651917,
-0.03883034735918045,
0.003822829807177186,
-0.09453105926513672,
0.2895185947418213,
0.014048639684915543,
-0.3923618495464325,
-0.5815872550010681,
-0.030273687094449997,
0.5840805172920227,
-0.555225670337677,
-0.26250573992... | |
We have a mixture of .Net apps that connect through ODBC and DB2 Connect to an iSeries LPAR that's at V5R4. We also have some batch jobs running natively on the machine (COBOL, RPG, and straight CL mostly). During certain periods of the day, we experience high page faulting and are trying to determine which apps might ... | [
0.22925713658332825,
0.21061618626117706,
0.12347486615180969,
0.26446548104286194,
0.29074475169181824,
-0.29361629486083984,
-0.0880347490310669,
0.25107353925704956,
-0.0638817846775055,
-0.6857191920280457,
0.09673460572957993,
0.6606317162513733,
-0.24834585189819336,
-0.0713575407862... | |
we do see improved performance when we add memory to that pool and simply looking at wrksyssts doesn't help much. We'd like to isolate the problem jobs and see if some modifications can be made to improve performance and reduce unnecessary memory utilization.
If you don't mind Java or its jvm or doing a little coding .... | [
0.3900918960571289,
0.3708626627922058,
-0.042790256440639496,
0.1471892148256302,
-0.1812938153743744,
0.045490313321352005,
0.20162710547447205,
0.30425727367401123,
-0.23327544331550598,
-0.6805599331855774,
-0.04485519230365753,
0.4247336983680725,
-0.2065083086490631,
0.20029093325138... | |
your server
Keep in mind that JTOpen is just a plain old Java library so that you can use **any jvm language** that can access ordinary java libraries. I'm using Groovy cause I'm having a thing for it. Don't worry, Groovy is nice.
Here goes.
```
import com.ibm.as400.access.*
// how many seconds to run
secs = ... | [
0.034288983792066574,
-0.1968950480222702,
0.675937294960022,
-0.10297530144453049,
-0.05639409273862839,
-0.1267043650150299,
0.5619510412216187,
0.085989810526371,
-0.408658504486084,
-0.9434327483177185,
0.018534433096647263,
0.6683488488197327,
-0.20463573932647705,
-0.0358343422412872... | |
print "${job.getCPUUsed()/1000}\t\t"
print "${job.getValue(Job.ELAPSED_PAGE_FAULTS)}\t\t"
println "${job.getValue(Job.ELAPSED_DISK_IO)}"
job.resetStatistics()
Thread.sleep(1000)
}
sys.disconnectAllServices()
```
That's it. There are many other job values to [play with](http://publib.boulder.ibm.com/in... | [
0.10413207113742828,
0.0680098906159401,
0.4886738657951355,
0.11584354937076569,
0.3418588936328888,
-0.0756918266415596,
0.08109306544065475,
-0.03514646366238594,
-0.5472713112831116,
-0.515097439289093,
-0.19787262380123138,
1.0006860494613647,
-0.23012255132198334,
-0.1642785221338272... | |
Ops Navigator so maybe you've been using this for a while already. | [
0.46863609552383423,
0.08950065076351166,
0.025348447263240814,
0.17881394922733307,
0.15382765233516693,
-0.33917683362960815,
-0.04369870573282242,
0.3928168714046478,
-0.24430418014526367,
-0.7306761145591736,
0.23658110201358795,
0.5608545541763306,
0.18641763925552368,
-0.372190207242... | |
I'm using a web service and every time I change something on the dataset, it erases all my parameters.
The weird thing is, I can execute the web service call from the data tab and it prompts for all my parameters, but if I click to edit the data the list is empty or if I try to preview the report it blows up becaus... | [
0.489299476146698,
0.23827648162841797,
0.045237064361572266,
0.3012244701385498,
0.11477398127317429,
-0.18952596187591553,
0.46248960494995117,
0.29215124249458313,
-0.42758455872535706,
-0.5041640400886536,
0.23920929431915283,
0.2188543677330017,
-0.2861729562282562,
0.3049669265747070... | |
think it matters. This has to be the most annoying bug (if its a bug) ever. I can't even execute the dataset from the designer without it erasing my parameter list. When you have about 10 parameters and you are making all kinds of changes to a new report, it becomes very tedious to be constantly re-typing the same list... | [
0.6302805542945862,
0.14857079088687897,
0.269887238740921,
-0.19527100026607513,
0.1906614601612091,
0.21818815171718597,
0.3589690923690796,
-0.050008684396743774,
-0.3904152810573578,
-0.5140051245689392,
0.3469969630241394,
0.689860999584198,
-0.04383708909153938,
0.1605810672044754,
... | |
<ElementPath IgnoreNamespaces="true">
TWRPerformanceSummaryResponse/TWRPerformanceSummaryResult/diffgram/NewDataSet/table{StockPerc,RiskBudget,Custodian,ProductName,StartValue(decimal),EndValue(decimal),CostBasis(decimal)}
</ElementPath>
</Query>
```
The problem was coming from inside the web servic... | [
0.011322706937789917,
0.10891688615083694,
0.3001381754875183,
-0.09318972378969193,
-0.026102231815457344,
-0.17710517346858978,
0.338420033454895,
-0.23873324692249298,
0.13908475637435913,
-0.29545703530311584,
0.0535513237118721,
0.5466516017913818,
-0.3378719687461853,
0.0808106884360... | |
Support Escalation Engineer is working with me to verify what exactly is happening and if there is a fix, going to be a fix, etc... I am going to put a work around in place for my code, which does not require a GUID to be passed to out SecurityTicket.
**Edit - Solution**
Essentially, every time you make a change on t... | [
0.15691164135932922,
0.008238245733082294,
0.8551280498504639,
0.29951703548431396,
-0.05467647314071655,
0.027452820912003517,
0.3011198341846466,
-0.34720534086227417,
-0.18041281402111053,
-0.15715594589710236,
0.08236748725175858,
0.5799888968467712,
-0.41466304659843445,
-0.0335599109... | |
first line in our web service checks for null parameters and sets some defaults. Then if the dataset being returned is empty, we add a dummy row:
```
private static void addDummyRow(DataTable dt) {
var row = dt.NewRow();
for (int i = 0; i < dt.Columns.Count; i++) {
if (dt.Columns[i].DataTy... | [
0.025266800075769424,
-0.19354264438152313,
0.592948317527771,
-0.4303724765777588,
0.10665352642536163,
0.13133268058300018,
0.23859871923923492,
-0.2667520046234131,
0.17376436293125153,
-0.6173385977745056,
-0.3573242723941803,
0.5756650567054749,
-0.5287569165229797,
0.1607503890991211... | |
}
else if (dt.Columns[i].DataType == typeof(DateTime)) {
row[i] = new DateTime(1900, 1, 1);
}
else {
row[i] = 0;
} | [
0.10549799352884293,
-0.3316320478916168,
0.2733803391456604,
-0.21141797304153442,
0.4504246413707733,
0.22332336008548737,
0.06552277505397797,
-0.3530130982398987,
-0.16988299787044525,
-0.5427876710891724,
-0.01702137663960457,
0.4538985788822174,
-0.4672033488750458,
0.449785619974136... | |
}
dt.Rows.Add(row);
}
``` | [
-0.11429280042648315,
0.14988218247890472,
0.006030730437487364,
-0.3365967869758606,
-0.0015330149326473475,
0.060406073927879333,
0.036960795521736145,
0.12611718475818634,
-0.03565795347094536,
-0.5874085426330566,
-0.31628796458244324,
0.801028847694397,
-0.6870787143707275,
0.16924749... | |
I need to add line breaks in the positions that the browser naturally adds a newline in a paragraph of text.
For example:
<p>This is some very long text **\n** that spans a number of lines in the paragraph.</p>
This is a paragraph that the browser chose to break at the position of the **\n**
I need to find this pos... | [
0.17588169872760773,
0.053693339228630066,
0.30648699402809143,
-0.05528073385357857,
-0.004635523539036512,
0.09862859547138214,
0.309085875749588,
0.036923035979270935,
-0.3447282016277313,
-0.688045084476471,
-0.14392735064029694,
0.3497354984283447,
-0.008137744851410389,
-0.0207416098... | |
in element height. I don't have time to finish this and would like to find something that's already tested.
**Edit:**
The reason I need to do this is that I need to accurately convert HTML to PDF. Acrobat renders text narrower than the browser does. This results in text that breaks in different positions. I need an id... | [
0.12038533389568329,
-0.18966639041900635,
0.348480761051178,
0.07633547484874725,
-0.20951634645462036,
0.07615437358617783,
0.26418590545654297,
-0.5227079391479492,
-0.13010342419147491,
-0.7513641715049744,
0.12491627782583237,
0.7406042218208313,
0.03423425555229187,
-0.41441914439201... | |
create a product catalogue by dragging on 'tiles' The tiles are fixed width, absolutely positioned divs that contain images and text. All elemets are styled so font size is fixed. My solution for finding \n in paragraph is ok 80% of the time and when it works with a given paragrah the resulting PDF is so close to the o... | [
0.24639810621738434,
0.1743064671754837,
0.694441020488739,
0.034313835203647614,
-0.16474980115890503,
0.15710151195526123,
0.23787915706634521,
-0.2699131667613983,
-0.16344094276428223,
-0.7247949838638306,
-0.268542617559433,
0.3609738349914551,
-0.08917641639709473,
-0.015024391002953... | |
PDF is that Acrobat renderes text slightly more narrowly which results in line slightly shorter line length.
Diodeus's solution of adding span's and finding their coords is a very good one and should give me the location of the BRs. Please remember that the user will never see the HTML with the inserted BRs - these ar... | [
0.08807072788476944,
0.040625929832458496,
0.567439079284668,
0.10401391237974167,
-0.3415064215660095,
-0.07615458220243454,
0.20353154838085175,
-0.14911562204360962,
-0.10824062675237656,
-0.6422690749168396,
-0.04559028893709183,
0.6174858808517456,
-0.15336234867572784,
-0.19643120467... | |
need a better solution of adding BRs because my solution sometimes misses a BR. BTW when it does work my paragraphs are the same height as the HTML equivalents which is the result we are after.
If anyone is interested in the type of doc i'm converting then you can check ou this screen cast:
<http://www.localsa.com.au... | [
0.1063779816031456,
0.02077474631369114,
0.5807497501373291,
-0.19190417230129242,
-0.45521312952041626,
0.35546448826789856,
0.3906920254230499,
-0.22485166788101196,
-0.2540379464626312,
-0.8419767618179321,
0.02446901425719261,
0.561225414276123,
0.051355645060539246,
-0.051016412675380... | |
I can now query the document to get all the words, iterate and compare y position. When y pos changes add a br.
This works flawlessly and gives me the results I need - Thank you!
I would suggest wrapping all spaces in a span tag and finding the coordinates of each tag. When the Y-value changes, you're on a new line. | [
0.2994236648082733,
0.14777082204818726,
0.7034543752670288,
-0.01114707626402378,
-0.2917996942996979,
0.1588471233844757,
-0.10247652232646942,
-0.03788397088646889,
-0.08639391511678696,
-0.7237812280654907,
-0.05229317396879196,
0.48400458693504333,
0.09158287197351456,
0.2629774808883... | |
I have a script that reads a form and puts some info into a cookie:
```
Dim oCookie as HttpCookie
oCookie = New HttpCookie("authInfo")
Select Case oResult
Case "No ClientID", "No Password", "No PracType", "No Encrypt", "CRC Mismatch"
oCookie.Values.Add("LoggedIn", "False")
oCookie.Values.Add("OnSupport", "Fals... | [
0.028830954805016518,
0.11694999039173126,
0.9967182874679565,
-0.142436221241951,
0.1520196944475174,
-0.06531782448291779,
0.3767421543598175,
0.06672642379999161,
-0.09437862038612366,
-0.8730580806732178,
-0.23701399564743042,
0.7692307829856873,
-0.21404582262039185,
0.141516298055648... | |
Request.Cookies`, but I get the same result):
```
Response.Output.WriteLine(Request.Cookies("authInfo").Expires.ToString)
```
The time is always reset `"01/01/0001 12:00:00 AM"`. Am I missing something that prevents the cookie from holding its `Expires` value?
Request.Cookies and Response.Cookies and use of the comm... | [
-0.05739348381757736,
-0.11971941590309143,
0.7180673480033875,
-0.043068379163742065,
-0.16018272936344147,
-0.07382014393806458,
0.307857871055603,
-0.37473440170288086,
-0.18696998059749603,
-0.7430518865585327,
-0.30223503708839417,
0.5948446989059448,
-0.26171064376831055,
0.247248172... | |
includes the cookie name and value. It does not send path or expires info.
Hence these properties are meaningless when using the Request.Cookies collection. | [
0.06837393343448639,
-0.12395018339157104,
0.37962186336517334,
0.3613147735595703,
0.051190730184316635,
-0.45978620648384094,
0.15178227424621582,
-0.1563863307237625,
-0.11335284262895584,
-0.5108664631843567,
-0.3347015678882599,
0.25904586911201477,
-0.24803663790225983,
0.13196220993... | |
I'm writing a very simple flash app (AS 2) to sign users up to an email newsletter; the way it works is that it uses LoadVars to hit a (same-domain) PHP script via POST with the user's email address. The PHP script then passes the info through to another domain (the newsletter mailer URL) via curl to sign up the user.
... | [
0.6979896426200867,
0.2768760025501251,
0.47653400897979736,
-0.13876043260097504,
-0.14660952985286713,
-0.16412676870822906,
0.2948497235774994,
-0.11339673399925232,
0.13215352594852448,
-0.7541026473045349,
0.22627376019954681,
0.21581512689590454,
0.08454034477472305,
-0.1023183390498... | |
made, as the email addresses sent from those computers aren't showing up on the subscriber list. I know that the PHP script still works on those computers as I've made a barebones HTML form that acts in exactly the way the Flash app does (POSTs to same PHP script with same variables, etc) and it works on all computers.... | [
0.551221489906311,
-0.03382263705134392,
0.544413149356842,
-0.07209321856498718,
0.07933224737644196,
0.22988922894001007,
0.5273011326789856,
-0.37807855010032654,
-0.21311773359775543,
-0.5423773527145386,
-0.1955018937587738,
0.5637283325195312,
-0.21515701711177826,
0.1316045373678207... | |
gotoAndStop("successful");
}
sendvar_lv.email = entryField_mc.myAdd.text;
sendvar_lv.sendAndLoad("http://notmyrealdomainname.com/passthrough.php?ck="+new Date().getTime(),loadvar_lv,"POST");
}
```
Could this be a security problem with the Flash client settings? Do you have any other ideas? I've been under... | [
0.20717620849609375,
-0.022702232003211975,
0.36910775303840637,
-0.05578446015715599,
-0.019799483940005302,
-0.1359712928533554,
0.30204007029533386,
-0.36780011653900146,
-0.33038249611854553,
-0.3819112479686737,
-0.2631007134914398,
0.7026414275169373,
-0.15144240856170654,
0.03158866... | |
in the response a Set-Cookie header gets added to the output and that will contain not only the value but also the path and the expiries value.
However when the browser sends the cookie back to the server in another request it simply includes the cookie name and value. It does not send path or expires info.
Hence the... | [
0.03809938579797745,
-0.43092527985572815,
0.5904905796051025,
0.18822579085826874,
-0.21790462732315063,
-0.0015377048403024673,
0.3372008204460144,
-0.3173459470272064,
-0.21940121054649353,
-0.5431053042411804,
-0.40117472410202026,
0.44348713755607605,
-0.37680503726005554,
0.107672341... | |
**Here is my situation:**
I have an application that use a configuration file. The configuration file applies to all users of the system and all users can make change to the configuration.
I decided to put the configuration file in "All Users\Application Data" folder.
The problem is that the file is writable only ... | [
0.33410701155662537,
0.350763738155365,
0.4441613256931305,
-0.19381752610206604,
0.4425354301929474,
-0.2381531149148941,
0.48947691917419434,
0.1319025158882141,
-0.3166426122188568,
-0.6809877753257751,
-0.24822068214416504,
0.48462751507759094,
-0.2387869507074356,
0.34090951085090637,... | |
manage access to the file.
My application is written in C++ (MFC) and I'm not an expert with all the .Net stuff. So my first idea is to write a Windows C++ service with COM interfaces that will be called by the application.
**My questions:**
* Is my idea a good idea or someone knows a better way to do?
* Is there an... | [
0.4223432242870331,
0.23072391748428345,
0.48249897360801697,
0.02347329445183277,
0.12824885547161102,
-0.36130523681640625,
0.3205597698688507,
-0.006237772759050131,
-0.1766539216041565,
-0.76727294921875,
-0.011426767334342003,
0.8464064002037048,
-0.06227488070726395,
0.26361981034278... | |
Files" and registry keys under "HKLM" with a limited user. But now, if you want an application to have the Vista logo certification, you must not write to these location (event if Virtual Stores can 'save' you).
Maybe my final solution will be the "make it writable to all users" one, but my question really is : "Is my... | [
0.8777605891227722,
0.14354874193668365,
0.4534737169742584,
0.34411975741386414,
0.24901650846004486,
-0.2655509412288666,
0.31344470381736755,
0.037200700491666794,
-0.39337730407714844,
-0.8033991456031799,
-0.11082678288221359,
0.6780595183372498,
-0.10416314005851746,
0.16816280782222... | |
work fine, too, and it's a lot easier to secure those with ACLs. The service will be so simple I wouldn't even bother with MFC or .NET, pure C++ should be fine. All the heavy lifting is done by your real app; the service just checks if the request piped in are reasonable. (ie. not too big etc.) | [
0.5607682466506958,
0.02646896429359913,
0.522589921951294,
0.09257092326879501,
0.2614055871963501,
-0.21035711467266083,
0.1982051134109497,
-0.10290830582380295,
-0.11833639442920685,
-0.3047359883785248,
-0.3844078481197357,
0.8352271318435669,
-0.2360677272081375,
-0.42108413577079773... | |
We need to send uploaded files from our CMS website to any antivirus product as a POC. Are there any AV products out there that provide a .Net/COM API.
[Clam AntiVirus](http://www.clamav.net/) has an API available under the GNU GPL which you can probably wrap up with [SWIG](http://www.swig.org/).
If for any reason you... | [
0.642352283000946,
0.4113713800907135,
0.3448319435119629,
-0.014945901930332184,
0.04739528149366379,
-0.15379518270492554,
-0.29888007044792175,
0.19335532188415527,
-0.45721784234046936,
-0.4392492473125458,
-0.09436450898647308,
0.37155288457870483,
-0.17550159990787506,
0.115187056362... | |
I can't seem to find a straight answer on this. It appears that Visual Studio 6 won't be supported, but I'm only concerned with the runtime. We have some legacy apps that we'd rather not rewrite, but our customers will expect them to run on Windows 7.
If anyone can provide a link to something official from MS on the t... | [
0.27475765347480774,
0.12670108675956726,
0.5338252782821655,
-0.08515878021717072,
-0.1821165233850479,
-0.007292443886399269,
0.5074211955070496,
0.2797772288322449,
-0.07180748134851456,
-0.49441519379615784,
-0.4246083199977875,
0.9253451824188232,
-0.15200336277484894,
0.0813287347555... | |
support followed by five years of extended support
I don't know when it was changed, because it didn't say that a couple of weeks ago, but it does now. Hoorah!
---
As VonC pointed out in his answer, the IDE is not supported any more, which is a worry if you want to maintain and update your VB6 code.
> The Visual Ba... | [
0.33615681529045105,
-0.06189804896712303,
0.9182371497154236,
0.09001034498214722,
-0.2590698301792145,
-0.13923880457878113,
0.1729104071855545,
-0.06329134851694107,
-0.329033762216568,
-0.21681326627731323,
-0.12220698595046997,
0.838129460811615,
-0.1672111451625824,
0.059039656072854... | |
will always be possible to run it in a virtual machine. | [
0.3709030747413635,
0.0780477374792099,
0.3424532413482666,
0.5597991347312927,
0.534603476524353,
-0.06239725276827812,
0.17698536813259125,
0.27285081148147583,
-0.06856836378574371,
-0.4028559923171997,
-0.15141531825065613,
0.538377583026886,
0.0812101885676384,
0.07475157827138901,
... | |
Or, to be more clear, how can I format a block of text (in my case, to be included within a tooltip) such that some portions of the text come from bound values.
In plain C# I would use:
```
_toolTip.Text = string.Format("{1:#0}% up, {2:#0}% down",
Environment.NewLine, percentageOne, percentage2);
```
However th... | [
0.3429868817329407,
0.22865039110183716,
0.3011266887187958,
-0.27165845036506653,
-0.13244788348674774,
0.027218753471970558,
0.2826085388660431,
-0.5551607012748718,
0.10642144829034805,
-0.6041820645332336,
0.013117292895913124,
0.44740360975265503,
-0.24337753653526306,
-0.249798431992... | |
the `Run.Text` property is not a dependency property and can therefore not be bound.
Is there a way I can perform this formatting in XAML?
You can use MultiBinding + StringFormat (requires WPF 3.5 SP1):
```
<TextBox.Text>
<MultiBinding StringFormat="{}{1:#0}% up, {2:#0}% down">
<Binding Path="PercentageOne"... | [
0.15433505177497864,
0.024841677397489548,
0.5941614508628845,
-0.05467851087450981,
-0.25811511278152466,
-0.341074675321579,
0.3538661301136017,
-0.3874133825302124,
-0.13837279379367828,
-0.38609278202056885,
-0.17513005435466766,
0.6968953013420105,
-0.4965353310108185,
0.0231247097253... | |
With this set of commands, what are the `{}` and `\;` characters for?
```
find . -name '*.clj' -exec grep -r resources {} \;
```
See [man find](http://unixhelp.ed.ac.uk/CGI/man-cgi?find). (particular the part about `-exec`)
When using `-exec` to run a command on each of the files found, the `{}` is replaced with the... | [
-0.33935150504112244,
0.044824328273534775,
0.32652124762535095,
0.046289991587400436,
0.18975576758384705,
-0.1964440643787384,
0.2246401160955429,
-0.04148676246404648,
-0.27389878034591675,
-0.5149917602539062,
-0.7093091011047363,
0.6136771440505981,
-0.19120892882347107,
0.48656862974... | |
`-r` is for recursively searching subdirectories, and that's what `find` is already doing. | [
-0.2583904564380646,
0.06842406094074249,
0.27691584825515747,
-0.050041090697050095,
-0.029980050399899483,
-0.3216301500797272,
-0.04889996722340584,
-0.1142159178853035,
0.141794815659523,
-0.1794826090335846,
-0.6249774694442749,
0.4269663691520691,
-0.39617660641670227,
-0.13705244660... | |
Given this definition:
```
[UniqueId("Ident")]
public class MyClass : MyBase
{
public int Ident{ get; }
}
```
What is the best way from the "MyBase" class to get the "UniqueId" attribute, find the matching property name and get the underlying value?
Wouldn't an abstract method / property in the base-class be mor... | [
-0.06136157736182213,
-0.015119487419724464,
0.18618877232074738,
0.10066699236631393,
0.03502378240227699,
-0.05223577842116356,
0.09292653203010559,
-0.3204807639122009,
0.06428713351488113,
-0.6435614228248596,
-0.029117010533809662,
0.28810060024261475,
-0.1948937624692917,
0.233098909... | |
attrib = tmp;
break;
}
if (attrib == null) throw new InvalidOperationException();
return type.GetProperty(attrib.PropertyName).GetValue(this, null);
// perhaps cast here...
}
``` | [
0.10717874020338058,
-0.10015035420656204,
0.17934778332710266,
-0.27467435598373413,
0.19693349301815033,
0.10740208625793457,
0.6435307860374451,
-0.45706114172935486,
-0.11395974457263947,
-0.4329219460487366,
-0.4089517593383789,
0.6588360071182251,
-0.40548092126846313,
0.301694333553... | |
I have a Windows Forms (.Net 2.0) app and I have a request to embed some custom images into some textboxes(like the new version of Tortoise does).
I haven't used OwnerDraw on a textbox, but I've used it on other controls such as the listbox and listview and I've seen other people do this with textboxes. I found a tutor... | [
0.5057806372642517,
-0.12374592572450638,
0.401782751083374,
-0.1572575569152832,
-0.1980498731136322,
0.1313093602657318,
0.22559092938899994,
0.13832983374595642,
-0.2760181128978729,
-0.9100797176361084,
0.36411386728286743,
0.5553866624832153,
-0.025576449930667877,
-0.0400332771241664... | |
It seems I don't understand javascript callbacks quite as well as I thought.
In the following example, I would think that each copy of function in setTimeout would refer to its own copy of the variable "index". Therefore, running the example should produce the following alerts: "zero" "one" "two".
```
var array = ["z... | [
0.05901411920785904,
-0.0372394323348999,
0.4649004638195038,
-0.3573665916919708,
-0.07326844334602356,
0.08065502345561981,
0.23604868352413177,
-0.46644964814186096,
-0.04117150604724884,
-0.5382295846939087,
-0.16042156517505646,
0.7525404691696167,
-0.6428239345550537,
0.0492309406399... | |
same variable, giving me the following alerts: "two" "two" "two".
The following analagous (I thought) example in java prints "zero" "one" "two", as expected.
```
import java.util.ArrayList;
import java.util.List;
public class CallBacks {
public static void main(String[] args) {
String[] array = {"zero", "on... | [
0.08666324615478516,
-0.3650157153606415,
0.12379200011491776,
-0.6726669073104858,
-0.3338375985622406,
0.06746178865432739,
0.14251917600631714,
-0.2923526167869568,
-0.17825977504253387,
-0.5401538014411926,
-0.12572647631168365,
0.6184726357460022,
-0.8019981980323792,
0.11092858761548... | |
public void execute(){
System.out.println(print);
}
}
);
}
for(Callback cb : callBacks){
cb.execute();
}
}
private interface Callback{
public void execute();
}
}
```
Can | [
0.20873941481113434,
-0.0068565476685762405,
0.0927165150642395,
-0.2701970338821411,
0.06406718492507935,
0.04514019936323166,
0.11183501034975052,
-0.26425206661224365,
-0.2034650444984436,
-0.48296910524368286,
-0.27562227845191956,
0.7437504529953003,
-0.5266669392585754,
0.27798500657... | |
anyone explain to me why the js example doesn't work, and perhaps compare what's going on in the two examples?
`index` changes with each iteration of the loop. What you want is to place `index` into a closure not affected by the loop:
```
var array = ["zero", "one", "two"];
var out = "";
for(var i = 0; i < 3; i++) {
... | [
0.21095305681228638,
-0.06793086975812912,
0.46247798204421997,
-0.2581826448440552,
0.14848007261753082,
-0.13919305801391602,
0.3514155149459839,
-0.23629802465438843,
-0.2640845477581024,
-0.47780272364616394,
-0.21435126662254333,
0.6873375773429871,
-0.503486156463623,
0.1001390889286... | |
I have a simple script which is used to start another program. This other program may sometimes yield a `SIGSEGV`, which disrupts my output. I have therefore added a couple of lines which is supposed to temporarily redirect the `stderr` to `/dev/null` such that the `SIGSEGV` is ignored. The following is a draft of my c... | [
0.1675063669681549,
0.19926667213439941,
0.40554964542388916,
-0.1288907527923584,
-0.12302829325199127,
-0.03696947917342186,
0.5388386845588684,
-0.10621417313814163,
-0.06296245008707047,
-0.5815754532814026,
-0.21533142030239105,
0.4224935472011566,
-0.2944439947605133,
0.0930164530873... | |
I have only supposed is the same as `stdout`).
Any help would be appriciated!
Another option is:
```
exec 3> /dev/stderr 2> /dev/null
progname >& ./tmp/run.txt && run_status='OK'
exec 2>&3
```
Or even
```
exec 3>&2 2> /dev/null
progname >& ./tmp/run.txt && run_status='OK'
exec 2>&3
```
That way the script preser... | [
0.20065085589885712,
0.14703013002872467,
0.46682247519493103,
-0.195294588804245,
-0.18946652114391327,
0.07156378775835037,
0.4147438704967499,
-0.40723711252212524,
0.18754221498966217,
-0.7819069623947144,
-0.27928683161735535,
0.6549289226531982,
-0.06288424879312515,
0.08674504607915... | |
This is a bit of an open question but I would really like to hear people opinions.
I rarely make use of explicitly declared temporary tables (either table variables or regular #tmp tables) as I believe not doing so leads to more concise, readable and debuggable T-SQL. I also think that SQL can do a better job than I o... | [
0.26487892866134644,
0.31760287284851074,
0.21728955209255219,
0.16839417815208435,
-0.10973294079303741,
-0.215719535946846,
0.13825470209121704,
0.2873150408267975,
-0.3879278600215912,
-0.3664577603340149,
-0.1046028584241867,
0.013464877381920815,
-0.07433228939771652,
0.41544672846794... | |
best to apply filters to the fact table first and then use the resultant temp table to get the values from your dimensions.
Is this the common opinion or does anyone have an opposing view?
Temporary tables are most useful for a complex batch process like a report or ETL job. Generally you would expect to use them fair... | [
0.10810860991477966,
-0.17034302651882172,
0.2920273542404175,
0.2594085931777954,
-0.1471233069896698,
-0.30395418405532837,
-0.19873851537704468,
-0.10822071880102158,
-0.5446770191192627,
-0.6031903624534607,
0.02054104395210743,
0.30170172452926636,
-0.2375212162733078,
-0.076461300253... | |
they decompose the query into a series of simpler ones that give the query optimiser less opportunity to screw up the plan. Sometimes you have an operation that cannot be done in a single SQL statement at all, so multiple steps for processing are necessary to do the job at all. Again, we're talking about more complex m... | [
0.1277788132429123,
-0.003287231782451272,
0.12159434705972672,
0.5429584980010986,
0.1495639830827713,
-0.1472472995519638,
-0.04065705090761185,
-0.3680180013179779,
-0.3190535008907318,
-0.5485997796058655,
-0.03576185181736946,
0.381100594997406,
-0.3552558720111847,
0.0068358452990651... | |
query on a system where you are not allowed to add indexes to the database schema. SELECT INTO is useful for this type of operation as it is minimally logged (and therefore fast) and doesn't require to align the columns of a select and insert.
Other reasons might include extracting data from XML fields using CROSS APP... | [
0.06326323747634888,
-0.15407852828502655,
0.22878903150558472,
0.363237589597702,
-0.1332596242427826,
-0.28068023920059204,
0.055530205368995667,
-0.15587842464447021,
-0.4176003336906433,
-0.6950553059577942,
-0.08413461595773697,
0.5024584531784058,
-0.24390089511871338,
0.031658329069... | |
to note is that temporary tables are exactly the same structure that the query engine uses to store intermediate join results, so there is no performance penalty to using them. Temporary tables also allow multi-phase tasks using set operations and make cursors almost (not quite but almost) unnecessary in T-SQL code.
'... | [
0.16307270526885986,
0.165871724486351,
0.10388311743736267,
-0.02035035565495491,
-0.03179521858692169,
-0.2961500287055969,
0.25953999161720276,
0.158903107047081,
-0.061247020959854126,
-0.48981839418411255,
-0.2594221532344818,
0.13657809793949127,
-0.35796934366226196,
-0.053272217512... | |
I have the following code in my index view.
```
latest_entry_list = Entry.objects.filter(is_published=True).order_by('-date_published')[:10]
for entry in latest_entry_list:
entry.views = entry.views + 1
entry.save()
```
If there are ten (the limit) rows returned from the initial query, will the save issue 10... | [
0.12892809510231018,
0.2772659361362457,
0.5904971361160278,
-0.24377165734767914,
-0.11446411162614822,
0.09036991000175476,
-0.107456736266613,
-0.37053120136260986,
-0.38506951928138733,
-0.5271467566490173,
0.0831461027264595,
0.8519971370697021,
-0.33748024702072144,
-0.09897505491971... | |
based on the value of another field in the model. This is especially useful for incrementing counters based upon their current value.
```
Entry.objects.filter(is_published=True).update(views=F('views')+1)
```
Although you can't do an update on a sliced query set... **edit: actually you can...**
This can be done com... | [
0.14996205270290375,
-0.21965734660625458,
0.254656583070755,
-0.050434660166502,
-0.4550565183162689,
-0.14546790719032288,
0.002613817108795047,
-0.4145871698856354,
-0.15319034457206726,
-0.6235843896865845,
-0.10814082622528076,
0.6814067959785461,
-0.39447295665740967,
-0.165645390748... | |
[`Q objects`](http://docs.djangoproject.com/en/dev/topics/db/queries/#complex-lookups-with-q-objects) to do complex OR type queries and that will work, but [`pk__in`](http://docs.djangoproject.com/en/dev/ref/models/querysets/#in) does the job much more simply.
```
latest_entry_ids = Entry.objects.filter(is_published=T... | [
0.055928148329257965,
0.338728666305542,
0.6590495705604553,
-0.23088081181049347,
-0.0414205901324749,
-0.16947826743125916,
-0.03559599444270134,
-0.34364017844200134,
-0.12019377946853638,
-0.45300599932670593,
-0.14674001932144165,
0.46315035223960876,
-0.26988840103149414,
0.033498529... | |
non_sliced_query_set = Entry.objects.filter(pk__in=latest_entry_ids)
n = non_sliced_query_set.update(views=F('views')+1)
print n or 0, 'items updated'
```
Due to the way that django executes queries lazily, this results in just 2 database hits, no matter how many items are updated. | [
-0.24146708846092224,
0.006128095090389252,
0.24752986431121826,
-0.1821156144142151,
-0.4036535620689392,
-0.002804606454446912,
0.21259690821170807,
-0.13540732860565186,
-0.4183098077774048,
-0.5467886328697205,
-0.19572314620018005,
0.2931971549987793,
-0.36459434032440186,
-0.01654063... | |
As the title says. I'd like for my application to start when the Windows Mobile device is turned on? I'm developing this app using the .NET Compact Framework 3.5 in C#. Thanks!
To get your app to start, first we need to define "On".
There is "On soft reset": Here there are a couple choices. By far the easiest is to j... | [
0.681139349937439,
-0.11059040576219559,
0.7074964642524719,
0.006293445825576782,
0.289755254983902,
-0.17737776041030884,
0.2528712749481201,
0.08338312059640884,
-0.301763653755188,
-0.6068441271781921,
-0.22124281525611877,
0.9164472222328186,
0.11393550038337708,
0.07854475826025009,
... | |
the NOTIFICATION\_EVENT\_WAKEUP event. You'll have to [P/Invoke it](http://pinvoke.net/default.aspx/coredll/CeRunAppAtEvent.html), as there is no built-in managed method for it.
Edit: There is also "After hard reset". Some OEMs provide a mechanism to run an app or do some form of logic from a cold boot (Symbol for exa... | [
0.05588606745004654,
-0.15954378247261047,
0.5013313889503479,
-0.08142255991697311,
0.06705573201179504,
-0.10450531542301178,
0.32264405488967896,
0.10287224501371384,
-0.39284417033195496,
-0.5483497977256775,
-0.5950586199760437,
0.4326570928096771,
-0.12049507349729538,
0.181944295763... | |
I have to write a multiplayer pacman game in Java for a university assignment and I'm after some feedback for my design so far.
So I'm trying to go down an MVC style and [this is what I've sketched out](http://s3.amazonaws.com/twitpic/photos/large/1822927.jpg?AWSAccessKeyId=0ZRYP5X5F6FSMBCCSE82&Expires=1232036013&Sign... | [
0.13346676528453827,
0.029184825718402863,
0.24455833435058594,
-0.1752166599035263,
-0.03103426657617092,
-0.18070711195468903,
0.2725919485092163,
-0.14303535223007202,
-0.24738018214702606,
-0.5985329747200012,
0.02601001411676407,
0.5044712424278259,
-0.4896145462989807,
0.188614830374... | |
far is that the *Game State* class would be the main source of data storage as it were, and would use a 2d array to store the state of the game, where the ghosts are, where pacman is etc.
The *Game* class would be the main controller class that would contain the main game loop and control all the interactions between ... | [
0.11467602103948593,
-0.29028403759002686,
0.24899643659591675,
0.2634716331958771,
-0.11798722296953201,
-0.17843569815158844,
-0.1691254824399948,
0.028276612982153893,
-0.05163337290287018,
-0.46960750222206116,
0.07148469984531403,
0.41428473591804504,
-0.06483972072601318,
0.289086103... | |
by using this model, that it wouldn't be too hard to keep most of the the data and processing on the server and have the clients interact with the controller and draw their own views. I have no idea (yet) how this may effect the performance of the game over a network so I'll have to research into that further once the ... | [
0.3227097988128662,
-0.09181825071573257,
0.7824196815490723,
0.05745311453938484,
0.15294238924980164,
-0.3289118707180023,
-0.024294864386320114,
-0.02044243924319744,
-0.46369436383247375,
-0.34708359837532043,
0.27822619676589966,
0.7071332931518555,
-0.1485234797000885,
0.007570183835... | |
actually a very good thing to use for this type of problem and the Swing framework does a really nice job at supporting it.
You should probably first read up on [MVC](http://en.wikipedia.org/wiki/Model-view-controller). Just as an overview, you will be trying to separate how the game is represented internally (the mod... | [
0.19638630747795105,
-0.15137840807437897,
0.1844920516014099,
0.330525666475296,
-0.09935496002435684,
-0.21788859367370605,
-0.005418355576694012,
-0.1521577537059784,
-0.39724546670913696,
-0.5241159796714783,
0.49243515729904175,
0.47459888458251953,
-0.1730857789516449,
0.174169957637... | |
good way to start, but you'll probably want to call your Map a GameBoard or the like (giving things the same name as library classes is generally a bad idea: you don't want to confuse it with java.util.Map). To wrap up the model section, you probably want to wrap them all up in one class who 'knows' the entire state of... | [
0.12314530462026596,
-0.10278981178998947,
0.3207028806209564,
0.3158974349498749,
-0.16661667823791504,
-0.07894615083932877,
-0.2095571905374527,
-0.17300227284431458,
-0.27928751707077026,
-0.718762993812561,
0.24120427668094635,
0.29095780849456787,
-0.0170504879206419,
-0.175852164626... | |
from whatever your view is (which you'll decide later). This might in turn delegate do each of your Entities, who might in turn delegate it to a Sprite or Image object that they have. Now your view, who's likely to be a JPanel or the like, can just call draw() using its own Graphics object from within its paintComponen... | [
0.19532956182956696,
-0.4558614194393158,
0.7923389077186584,
0.1923498511314392,
-0.3644420802593231,
0.12456510215997696,
-0.17283661663532257,
0.11968071013689041,
-0.3746914565563202,
-0.5141319036483765,
0.08715565502643585,
0.4321993589401245,
-0.19182205200195312,
0.2291273474693298... | |
probably also needs to be the one to worry about synchronizing the game state). It also needs to also have a timer so that it can tell the units to update periodically. You do need to decide who makes the decisions on whether the moves are legal: the controller could do it, the GameState could, or it could just give th... | [
0.1702922284603119,
-0.3014625310897827,
0.3921789824962616,
0.6410747766494751,
0.2905651032924652,
-0.22065095603466034,
-0.08406027406454086,
-0.3912500739097595,
-0.34321823716163635,
-0.31327760219573975,
0.018292279914021492,
0.28008756041526794,
0.15007571876049042,
-0.1355026513338... | |
lot more that I'm glossing over and several more decisions that you have to make, but it should get you going. | [
0.6647348403930664,
-0.1843900829553604,
-0.12290194630622864,
0.20787113904953003,
0.021687669679522514,
-0.2363639622926712,
0.03151078149676323,
0.3266948461532593,
-0.20436713099479675,
-0.356937974691391,
0.3724192976951599,
0.6139010190963745,
0.205763041973114,
0.0013068221742287278... | |
I have a simple table with 6 columns. Most of the time any insert statements to it works just fine, but once in a while I'm getting a DB Timeout exception:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. The statement has been terminated.
Timeout is set... | [
0.13323652744293213,
0.07959224283695221,
0.5121739506721497,
-0.2318412959575653,
0.00131872552447021,
0.0035811145789921284,
0.5045150518417358,
-0.05104181542992592,
-0.08591852337121964,
-0.5450316667556763,
-0.01631980948150158,
0.5974375009536743,
-0.32949790358543396,
0.248436644673... | |
the inserts are very simple, everything looks normal in sql profiler, the table has no indices but the PK (Page fullness: 98.57 %).
Any ideas on what should I look for?
Thanks.
Our QA had some Excel connections that returned big result sets, those queries got suspended with WaitType of ASYNC\_NETWORK\_IO for some ti... | [
0.09267492592334747,
0.08201635628938675,
0.2228626012802124,
0.15558142960071564,
0.001974068582057953,
0.02211274392902851,
0.21700850129127502,
0.3985283374786377,
-0.19028890132904053,
-0.59602952003479,
0.20532335340976715,
0.5151799321174622,
-0.03978367894887924,
-0.0553915463387966... | |
How can I test if a RegEx matches a string *exactly*?
```
var r = /a/;
r.test("a"); // returns true
r.test("ba"); // returns true
testExact(r, "ba"); // should return false
testExact(r, "a"); // should return true
```
Either modify the pattern **beforehand** so that it only matches the entire string:
```
var r = /^a... | [
0.3705095648765564,
0.15750521421432495,
0.1098322793841362,
-0.2724616527557373,
-0.01820017583668232,
0.1677914261817932,
0.6288704872131348,
-0.7685405015945435,
0.18642200529575348,
-0.3851253390312195,
-0.15753518044948578,
0.5121229887008667,
-0.4299355149269104,
0.045825742185115814... | |
I have tried to use the MouseMove event to track the position of the mouse.
```
protected override void OnMouseMove(MouseEventArgs e)
```
This works when the mouse is over the given UIElement (in this case, my application's window,) however I would like to access this data regardless of where the mouse is, and prefe... | [
-0.032918091863393784,
-0.15120452642440796,
0.7256997227668762,
0.0975923091173172,
0.26596173644065857,
-0.25138336420059204,
0.18939942121505737,
-0.026977237313985825,
-0.2869492471218109,
-0.6747636198997498,
0.021887261420488358,
0.781026303768158,
-0.049403443932533264,
-0.136113107... | |
mouse position?
A combination of INDEX and MATCH will do the trick:
> =INDEX($B$4:$C$7,MATCH("Task 3",$A$4:$A$7,0),MATCH("Mgr",$B$2:$C$2,0)) | [
-0.8535302877426147,
-0.2103329747915268,
0.5912320017814636,
-0.13651737570762634,
0.2954520881175995,
0.12736578285694122,
0.177120178937912,
-0.25714021921157837,
0.043334297835826874,
-0.32155218720436096,
0.14232812821865082,
0.6750403642654419,
-0.3339618742465973,
-0.239440083503723... | |
I have a need to run different code when a user clicks or double-clicks an item in a VB6 ListBox control. When I click on the control, the Click event handler executes. However, I am finding that when I double-click on the control, both the Click and DblClick event handlers execute.
Anyone have a good solution for get... | [
0.4367862641811371,
-0.12104927748441696,
-0.04727008938789368,
0.21082185208797455,
-0.12335672229528427,
-0.23946571350097656,
0.40878668427467346,
0.04110400378704071,
-0.19110353291034698,
-0.6208290457725525,
0.13217470049858093,
0.6977435350418091,
-0.37785857915878296,
0.27041050791... | |
variable to false
* Set the boolean variable to true on the DoubleClick event
* When the timer Tick event fires, check the boolean variable to see if the user did a Click or DoubleClick
I'd recommend setting the timer interval to the Windows double click time setting, plus a bit (There should be a Windows API call tha... | [
0.4806818664073944,
-0.24940453469753265,
0.19219230115413666,
-0.17571471631526947,
0.03635811805725098,
-0.1562422662973404,
0.8488527536392212,
-0.1965094357728958,
0.17459875345230103,
-0.18480771780014038,
0.2998376190662384,
0.9480924010276794,
-0.3255223333835602,
0.1708969920873642... | |
Does anyone know a way to open a 2nd form in a .NET application with a certain tab selected in a tab control on that form?
This is what my current code looks like which just opens the form:
```
SettingsForm TheSettingsForm = new SettingsForm(this);
TheSettingsForm.Show();
```
SettingsForm.cs is the name of the 2nd ... | [
0.1590522825717926,
-0.06997673213481903,
0.8377999663352966,
-0.12020285427570343,
0.043090157210826874,
-0.39993754029273987,
0.28939107060432434,
-0.1587292104959488,
-0.13775436580181122,
-0.8639248013496399,
-0.20599013566970825,
0.5590540170669556,
-0.2521229386329651,
0.002805037191... | |
tab control:
```
public int SelectedTab
{
get { return _tabControl.SelectedIndex; }
set { _tabControl.SelectedIndex = value; }
}
``` | [
-0.44020891189575195,
-0.5714483261108398,
0.013079384341835976,
0.11539584398269653,
-0.06272914260625839,
0.04325447976589203,
-0.10404494404792786,
-0.05956481024622917,
-0.03493794426321983,
-0.3748414218425751,
-0.5022454261779785,
0.376020610332489,
-0.49992650747299194,
0.1587990075... | |
The default input behaviour of the DateTimePicker when entering a date is like this:
YYYY(Right Arrow)MM(Right Arrow)DD
The user want to enter the date like this:
YYYYMMDD
Is there any simple way of modifying the input behaviour of the DateTimePicker so that is does behave like the user want it to?
TIA
Expanding o... | [
0.16861224174499512,
-0.4205826222896576,
0.46305564045906067,
-0.07561846822500229,
0.30858585238456726,
0.07174089550971985,
0.030968425795435905,
-0.17960701882839203,
0.03052525408565998,
-0.4227920174598694,
-0.09193362295627594,
0.7760169506072998,
-0.337057888507843,
-0.092699334025... | |
This is a good one because it's so counter-intuitive:
> Imagine an urn filled with balls, two-thirds of which are of one color and one-third of which are of another. One individual has drawn 5 balls from the urn and found that 4 are red and 1 is white. Another individual has drawn 20 balls and found that 12 are red an... | [
0.25357282161712646,
-0.07763656973838806,
0.04569621756672859,
0.17739370465278625,
-0.16385598480701447,
0.5403207540512085,
-0.10566451400518417,
-0.30557379126548767,
-0.3818676471710205,
-0.5171098113059998,
0.24565733969211578,
0.2985915243625641,
-0.10282187163829803,
0.079366430640... | |
don't quite get the odds calculation. Can anyone explain?
Let **A** be the event that 2/3 of the balls are red, and then ¬**A** is the event that 2/3 of the balls are white. Let **B** be the event that the first observer sees 4 red balls out of 5, and let **C** be the event that the second observer sees 12 red balls ou... | [
0.04322820529341698,
0.09114393591880798,
0.19090138375759125,
-0.3175305128097534,
-0.296789288520813,
0.18522140383720398,
0.29433998465538025,
-0.5899343490600586,
-0.565053403377533,
-0.30570870637893677,
-0.22419975697994232,
0.41031068563461304,
-0.54380202293396,
0.00983057357370853... | |
**A** is true.
For the second observer:
* P(**C**|**A**) = (20 choose 12)(2/3)12(1/3)8 = 125970 \* 212/320
* P(**C**|¬**A**) = (20 choose 12)(1/3)12(2/3)8 = 125970 \* 28/320
So again from Bayes' Law, observer 2 has a confidence level of 212/(212 + 28) = 16/17 that **A** is true.
Therefore, **observer two** has a hi... | [
-0.2617325186729431,
-0.01493186317384243,
0.33171847462654114,
-0.18095724284648895,
-0.2375606894493103,
0.17203105986118317,
0.22822688519954681,
-0.7618103623390198,
-0.3406630754470825,
-0.5670577883720398,
-0.010271045379340649,
0.5167257189750671,
-0.4800255298614502,
-0.01964419707... | |
I've got a bunch of first names in a field that carry a middle initial with a '.' at the end..
I need a regex to convert this example:
Kenneth R.
into
Kenneth
I was trying to build my own and found this useful site btw..
<http://www.gskinner.com/RegExr/>
but I'm new to Perl & regular expressions an... | [
0.2898598313331604,
0.4158393144607544,
0.2982860803604126,
0.025369470939040184,
-0.17408081889152527,
0.03330618143081665,
0.3123733699321747,
-0.25106489658355713,
-0.19036813080310822,
-0.46745526790618896,
-0.36221253871917725,
0.38352808356285095,
-0.3494659960269928,
0.0740979239344... | |
last "word" if it ends with dot :
```
my $name =~ s/\w+\.$//i;
```
(this supposes you don't have any space after that)
To remove any word ending with dot :
```
my $name =~ s/\w+\.//i;
```
look at the /g modifier if you want to remove them all ...
and BTW make yourself a test case list to check your solution
th... | [
-0.4387812614440918,
0.02592233382165432,
0.5564637184143066,
-0.24046340584754944,
-0.11227809637784958,
0.23811417818069458,
0.4206092059612274,
0.16668152809143066,
-0.13641667366027832,
-0.7926496863365173,
-0.5159391164779663,
0.5749548673629761,
-0.10054679214954376,
0.16006712615489... | |
Anybody knows how to do this?
I need to create a service that will connect to the exchange server and download the messages ever x minutes...
thanks!
You'll probably want to use WebDAV. Here's [a good article](http://blog.downtownsoftwarehouse.com/2006/10/26/using-net-and-webdav-to-access-an-exchange-server/) on the ... | [
0.48348918557167053,
0.3673727810382843,
0.41387391090393066,
0.29437255859375,
0.037396401166915894,
-0.2645305395126343,
0.4392865300178528,
0.37885621190071106,
-0.27922117710113525,
-0.6233869791030884,
0.31966254115104675,
0.330341100692749,
-0.053021568804979324,
-0.06338445842266083... | |
I am designing a web application, and I wish to know the largest size (x and y) that I can design for.
[As of January 2008](http://www.w3schools.com/browsers/browsers_display.asp), about half of users are using 1024x278 screens, and probably less than 10% are using smaller screens. (Phone and palmtop users are an exce... | [
0.21528498828411102,
0.2369428277015686,
0.5479892492294312,
-0.09041223675012589,
0.04067818447947502,
0.2526189982891083,
0.18104799091815948,
0.14453449845314026,
-0.36872467398643494,
-0.8014597296714783,
-0.06913528591394424,
0.4983521103858948,
0.1029118224978447,
-0.0714315548539161... | |
browser chrome. People customize their chrome, so there is no single "right" answer; I am going for a reasonable bound that will accommodate the majority of users.
I see [plenty of designers](https://stackoverflow.com/questions/202557/what-is-the-best-absolute-width-for-a-webpage) who say that they use a width of 960 ... | [
0.27476200461387634,
-0.009259160608053207,
0.5606586337089539,
0.035998400300741196,
-0.3309957981109619,
-0.14119167625904083,
0.1533142477273941,
0.08494340628385544,
-0.2779541313648224,
-0.9451574683189392,
0.011776220053434372,
0.5341783761978149,
-0.20117881894111633,
-0.31925514340... | |
1000 works OK.
Heights are even more difficult to come by: I find I can fit a vertical viewport height of 595 pixels works on the browsers that I've tried, with typical default OS and chrome settings. But I haven't tried very many, and I would rather see a more authoritative source. Surely someone else has done this r... | [
0.4639398753643036,
-0.00378087954595685,
0.5864533185958862,
0.10474038124084473,
-0.259126752614975,
0.36176955699920654,
0.03689677268266678,
-0.16887687146663666,
-0.19533808529376984,
-0.7497783303260803,
0.20981217920780182,
0.5524126291275024,
0.13256949186325073,
-0.086675576865673... | |
relevant to this old question of mine. Apparently Google is willing to share their knowledge about browser window sizes. Their new service is at <http://browsersize.googlelabs.com/> and it basically just shows you their data on typical browser portal sizes.
**Note**: The Google Labs browsersize is now very out of date... | [
0.3595947325229645,
0.21559372544288635,
0.4971548318862915,
0.031890567392110825,
-0.2745397388935089,
-0.3480551540851593,
0.3356638550758362,
-0.0572877936065197,
-0.1016189455986023,
-0.5376399159431458,
0.3058205246925354,
0.2834104001522064,
0.1751781553030014,
0.08086036890745163,
... | |
How can include .asp file inside of html file and have it proccessed besides having to process all html files with asp.
you could use an IFRAME tag...but it's a bit sucky. I'd do what [Phantom Watson](https://stackoverflow.com/users/52530/phantom-watson) says. | [
0.3020108640193939,
-0.08128906786441803,
0.3346056342124939,
0.10568437725305557,
0.09753609448671341,
-0.30650511384010315,
0.4062735140323639,
-0.07857343554496765,
-0.3224838078022003,
-0.3632768988609314,
-0.09347153455018997,
0.33896926045417786,
-0.0358220711350441,
-0.2188021987676... | |
I have a user control in a master page and the same user control directly in the aspx. The user control in the master page works fine, but when I try the user control that is embedded directly in the aspx page, it doesn't work. The user control is 2 textboxes with a login button. What it looks like it is trying to do i... | [
0.1388421505689621,
0.05447272211313248,
0.30485621094703674,
0.21374209225177765,
0.07209280878305435,
0.0991068184375763,
0.21601258218288422,
-0.07603947818279266,
-0.14223361015319824,
-0.8107134103775024,
0.07424379885196686,
0.6022506952285767,
-0.21489077806472778,
0.203984141349792... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.