text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
the way we mock the request headers is changed to:
```
request.Expect(req => req["X-Requested-With"]).Returns("XMLHttpRequest");
```
I hope others find this useful
In a masterstroke of misdirection the answer to this problem resolved due to things other than those mentioned here. Excellent suggestions nonetheless.
... | [
0.43839597702026367,
-0.01432718150317669,
0.6662492752075195,
-0.01093930285423994,
-0.004511768463999033,
-0.08491955697536469,
0.017666593194007874,
-0.2911916673183441,
-0.027590405195951462,
-0.35379672050476074,
-0.08202798664569855,
0.5168662071228027,
-0.09348665922880173,
0.188528... | |
the stages of a given banking transaction. For online payments in the UK a charge is not able to be "Post Authorised" until the goods have "shipped".
If we sold books (or mugs, or novelty garden gnomes) then notification of successful Pre Auth would be enough to consider the transaction complete as shipping would take... | [
0.45967987179756165,
-0.21382968127727509,
0.567938506603241,
-0.008845947682857513,
0.11395522207021713,
-0.03717182204127312,
-0.02825227752327919,
0.26566383242607117,
-0.1494520753622055,
-0.0005691191763617098,
-0.11681810021400452,
0.6605726480484009,
0.41213300824165344,
-0.00546041... | |
our product ships the second the transaction is complete, thus a pre-auth and post-auth process need to complete to count the transaction as "successful".
However, when the pre-auth completes successfully the customer is assured it will post auth too so we show them the "complete" screen at this moment to make the app... | [
0.6307170987129211,
-0.004520066548138857,
0.904385507106781,
0.2889256477355957,
0.34812599420547485,
-0.0347885936498642,
0.26145777106285095,
-0.08064651489257812,
-0.13379676640033722,
-0.34202155470848083,
-0.2201365977525711,
0.6047305464744568,
0.11663229018449783,
0.137116134166717... | |
it will not be returned from the printing service because the underlying DB query returns its "no orders match" result, so all I had to do, in the end, was wait until it had finished post authing and it worked fine.
So all in all a bit of a storm in a teacup. Now we just need the underlying SQL to return the order at ... | [
0.16121302545070648,
0.1753559112548828,
0.6907755136489868,
0.09129761159420013,
-0.17796650528907776,
0.042985547333955765,
0.37647294998168945,
-0.3254927694797516,
0.001398601452820003,
-0.041740503162145615,
-0.08915907889604568,
0.47112515568733215,
0.08984999358654022,
0.21470572054... | |
fo everyone's help. Sorry it was a relatively mundane fix. | [
0.1783115565776825,
0.14264242351055145,
0.2626630663871765,
0.06348062306642532,
0.010605898685753345,
0.07355104386806488,
0.30633318424224854,
0.20395579934120178,
-0.0667986273765564,
-0.20783421397209167,
-0.024961452931165695,
0.36511853337287903,
-0.0980333611369133,
-0.254160434007... | |
I have a series of checkboxes on an HTML page and I would like to check the checkboxes based on corresponding HTML query string params.
e.g.
```
...path/page.html?i=1&j=1&x=0
```
would cause a page with three checkboxes to check 1 and 2 on load.
Can someone show me how to do this or point me in the direction of a ... | [
0.3052195608615875,
0.2636263966560364,
0.428427129983902,
-0.0035174780059605837,
-0.3342536687850952,
0.05299852415919304,
0.5037120580673218,
-0.35324954986572266,
-0.17757973074913025,
-0.8044335246086121,
0.06021002680063248,
0.14704959094524384,
-0.26457980275154114,
-0.0760197564959... | |
the checkbox should be checked.
j = as above
x = one checkbox, the value in the example is 0, so the checkbox should not be checked.
```
Partially from [W3Schools](http://www.w3schools.com/JS/tryit.asp?filename=try_dom_input_checked). This file will crate a single checkbox and check it depending on the <http://example... | [
0.3128115236759186,
-0.0002724935475271195,
0.5237215161323547,
-0.1631115972995758,
0.06559385359287262,
0.002432366134598851,
0.14737138152122498,
-0.5094724893569946,
-0.17247658967971802,
-0.5669255256652832,
-0.5603361129760742,
0.2146475613117218,
-0.4485657811164856,
-0.053744897246... | |
return vars;
}
function doStuff()
{
var GETVars = getUrlVars();
if (GETVars['j']==1)
{
document.getElementById("myCheck").checked=true;
}
}
</script>
<body onload="doStuff();">
<form>
<input id='myCheck' type="checkbox" />
</form>
</body>
</html>
``` | [
0.07763037830591202,
-0.10226047039031982,
0.7406806349754333,
-0.23726186156272888,
0.00877616461366415,
0.11399846524000168,
0.5242595076560974,
-0.5136857628822327,
0.15650677680969238,
-0.6291215419769287,
-0.5529065132141113,
0.6059380173683167,
-0.20635969936847687,
-0.03869479522109... | |
I have a 5 million row table that gets hit with a specific query the most. So I want add a index to speed things up.
**Query:**
```
SELECT someID
FROM someTable
WHERE
myVarChar = @myVarChar AND
MyBit = 0 AND
MyBit2 = 1 AND
MyBit3 = 0
```
Note, the `myVarChar` column is unique.
W... | [
-0.13017712533473969,
0.19077077507972717,
0.37538981437683105,
0.13763733208179474,
-0.18327432870864868,
0.10156940668821335,
0.03969220444560051,
0.17207391560077667,
-0.051868293434381485,
-0.813246488571167,
0.3746490776538849,
0.27695029973983765,
0.012392068281769753,
0.500153303146... | |
the 4 columns in the above query. Also, do I have to reindex every so often or its automatic?
I am using sql server 2008 standard.
Is someID the primary key of that table? If not, you should add it to your index to prevent a bookmark lookup.
Also, look at the execution plan for that query, if your index is properly c... | [
-0.28292086720466614,
-0.04417521506547928,
0.5393850207328796,
0.08756271004676819,
-0.14645661413669586,
-0.23377573490142822,
0.15025734901428223,
-0.025393515825271606,
0.12242671102285385,
-0.6384238004684448,
0.18925818800926208,
0.6242168545722961,
-0.11082781106233597,
0.1980801820... | |
I've been reading about the @font-face rule and trying to work out if it's worth using it in a project to render "franklin gothic medium" for title instead of something like sIfr. I figured that for browsers that don't support it I could make it fall back on Arial.
The thing is that I'm having trouble getting a defini... | [
0.5660796165466309,
0.2855531573295593,
0.3977770507335663,
-0.07061148434877396,
-0.45307230949401855,
-0.10882363468408585,
0.43722012639045715,
0.1635519564151764,
-0.06460544466972351,
-0.8989395499229431,
0.16891266405582428,
0.6334396600723267,
-0.16791021823883057,
0.198986649513244... | |
discusses browser support about mid-way in. Here's the most relevant bit, though the whole thing is worth a read:
> CSS3 (and even drafts of CSS2 in 1997 and 1998) have long promised a standardized way of font embedding, using the @font-face rule. What many folks probably don’t know is that this rule is already suppor... | [
0.18155694007873535,
0.21774712204933167,
0.4806162714958191,
-0.2346455156803131,
-0.17097747325897217,
-0.16577820479869843,
0.3927331566810608,
0.15052273869514465,
-0.20476244390010834,
-0.6659860014915466,
-0.006775434594601393,
0.39310765266418457,
-0.19721347093582153,
-0.3509778380... | |
Firefox 3.1 (see my comments at #4 below) this is in fact not the case sadly.
>
>
>
> There is a catch though. All the browsers other than IE support linking to TrueType font files. Microsoft supports only the proprietary EOT file format.
EDIT: Including [this update](http://www.webdirections.org/blog/ubiquitou... | [
0.13480959832668304,
0.04919293522834778,
0.5238451957702637,
-0.26186153292655945,
-0.37504273653030396,
-0.3115227222442627,
0.33034074306488037,
-0.1110243946313858,
0.012844298034906387,
-0.5164501070976257,
-0.45688027143478394,
0.5750516653060913,
-0.7565479874610901,
-0.383101284503... | |
Is it possible to make a batch file which can make a **persistent** change to an environment variable?
For example my installer.bat script copies some files to a **random location** in the computer's file-system. I'd like to add that location to the PATH environment variable so that the programs can be run in the cur... | [
0.4934421479701996,
0.08905639499425888,
0.18556058406829834,
0.12445789575576782,
-0.024954400956630707,
-0.13516314327716827,
0.27682673931121826,
0.1272660344839096,
-0.29788997769355774,
-0.865018904209137,
0.34023764729499817,
0.5308437943458557,
-0.28803908824920654,
0.09046149998903... | |
is still executing.
I'd like to be able to do something like this:
```
rem install_and_run.bat
install.bat
myapplication.exe
```
Unfortunately this does not work, because the install.bat never "returns" to the main-script. myapplication.exe is never called. Next I tried:
```
cmd /C install.bat
myapplication.exe... | [
0.6066436767578125,
0.0999937653541565,
0.30518028140068054,
-0.24099627137184143,
-0.006888338830322027,
-0.26006048917770386,
0.41219231486320496,
-0.05348973348736763,
-0.1798132359981537,
-0.5681352019309998,
-0.20188914239406586,
1.0384560823440552,
-0.572860598564148,
0.1408134996891... | |
call `install.bat`, so that control will return to `install_and_run.bat`.
I think you don't understand that environment variables are **per-process**. Your batch file is running in an instance of cmd.exe, and that instance has an environment. When you wrote `cmd /C` you were creating a new instance of cmd.exe, which h... | [
0.5477745532989502,
0.013634667731821537,
0.040765561163425446,
-0.13748426735401154,
0.12531684339046478,
-0.3332279920578003,
0.1909910887479782,
0.2683630883693695,
-0.10263654589653015,
-0.5377399325370789,
-0.09058857709169388,
0.6503633260726929,
-0.7163459658622742,
0.22959534823894... | |
What are the cons of some code like this:
```
public class Class1
{
public object Property1
{
set
{
// Check some invariant , and null
// throw exceptions if not satisfied
// do some more complex logic | [
0.12521211802959442,
0.08464844524860382,
-0.1362617313861847,
0.25727012753486633,
-0.02010462060570717,
-0.277283251285553,
0.19188150763511658,
-0.21976734697818756,
-0.027544422075152397,
-0.31478047370910645,
-0.2793283760547638,
0.5698890686035156,
-0.4430873692035675,
0.096010550856... | |
//return value
}
}
}
```
The con would be that if you are doing excessive logic that takes a great period of time, and/or has side effects which don't logically flow from the setting of the property, you are going to have a pretty convoluted class design.
Methods are traditionally used to indicate that a... | [
0.11145421862602234,
-0.12482263147830963,
-0.24314665794372559,
0.385440468788147,
0.048618871718645096,
-0.1877894401550293,
0.3550400137901306,
-0.25116652250289917,
-0.10215126723051071,
-0.4244712293148041,
-0.15169812738895416,
0.4085935950279236,
-0.25846728682518005,
0.098724819719... | |
value, as opposed to perform an operation.
In the end, it all depends on what "do some more complex logic" means. | [
0.31329819560050964,
0.1603184938430786,
-0.12674784660339355,
0.35945925116539,
0.11002743244171143,
0.09533382207155228,
0.19703352451324463,
-0.4682692885398865,
0.274332195520401,
-0.10538297891616821,
-0.07457853853702545,
0.7176612615585327,
-0.031051017343997955,
0.0846448764204979,... | |
I’ve had a good look and can’t seem to find out how to select all elements matching certain classes in one jQuery selector statement such as this:
```
$('.myClass', '.myOtherClass').removeClass('theclass');
```
Any ideas on how to achieve this? The only other option is to do
```
$('.myClass').removeClass('theclass'... | [
-0.005636536981910467,
-0.10895936191082001,
0.05640679970383644,
-0.06599361449480057,
-0.17229193449020386,
0.10692934691905975,
0.12761667370796204,
-0.04718295857310295,
-0.015653325244784355,
-0.6933622360229492,
-0.05877424776554108,
0.6419609785079956,
-0.3265295624732971,
-0.099160... | |
( .NET 2.0, System.Windows.FormsDataGridView and DataTable )
I have 1 datagrid connected to 1 datatable.
That datatable contains 1 column: containing objects of my own type "MyObject".
MyObject has a *public* string property "MyProp".
I want to display 1 column in the grid: showing the string values of the proper... | [
-0.4459359645843506,
0.053633589297533035,
0.5270946025848389,
-0.13119684159755707,
-0.12082277238368988,
0.03388027101755142,
0.3131480813026428,
-0.3540946841239929,
-0.09010852873325348,
-0.7492047548294067,
-0.1081768348813057,
0.12083558738231659,
-0.38951683044433594,
0.011416384018... | |
I want, this function is in use for logging.
* tryout 2:
GridViewColumn.DataPropertyName="Obj.MyProp"
Doesn't display anything (MyProp's *get* is never called)
* tryout 3:
Made the MyProp property bindable:
```
[Bindable (BindableSupport.Yes)]
public string MyProp
{ ...
```
Samesame, not different from tryout 2... | [
0.1590270847082138,
-0.08731082826852798,
0.610209584236145,
-0.2062358856201172,
0.10513095557689667,
0.09003083407878876,
0.1618041843175888,
-0.16056320071220398,
-0.24585431814193726,
-0.9369860887527466,
0.07075724005699158,
0.5686333775520325,
-0.2938723862171173,
0.03163934871554375... | |
You have to treat it as such,. | [
0.3408927321434021,
0.2149476408958435,
-0.27670833468437195,
0.07313693314790726,
0.012111191637814045,
-0.019138194620609283,
0.10341368615627289,
0.2092822641134262,
-0.0943441316485405,
-0.3928529918193817,
-0.07920623570680618,
0.48368406295776367,
0.002293625380843878,
0.127119660377... | |
I'm new to Web Services and XML and was tasked to parse an XML response packet returned.
What's the best way to parse an XML result in C#.NET?
I need to bind to a data grid as the end result from a search query.
If you have access to the wsdl for the webservice, there is a utility `wsdl` that will generate the needed... | [
0.47626304626464844,
0.06369518488645554,
0.17670106887817383,
0.06429237872362137,
-0.34919506311416626,
-0.33098286390304565,
0.11451248824596405,
-0.21963120996952057,
-0.10704610496759415,
-0.7347094416618347,
0.0028591598384082317,
0.33024176955223083,
-0.0977516770362854,
0.159053355... | |
Then calling the webservice is just a matter of calling the generated functions:
```
Double fahrenheit = 32.2;
TempConvert tempConverter = new TempConvert();
string Celcius = tempConverter.FahrenheitToCelsius(fahrenheit.ToString());
```
That TempConvert class takes care of the details of building an XML query, conta... | [
0.21598204970359802,
-0.014393208548426628,
0.7003679871559143,
0.10378924757242203,
-0.20922276377677917,
-0.23196204006671906,
0.3022206127643585,
-0.38218384981155396,
0.10835473984479904,
-0.44062528014183044,
-0.5052585005760193,
0.5369917154312134,
-0.37293195724487305,
0.00663352152... | |
of strings, or as complex as a giant class heirarchy. | [
-0.05569374933838844,
-0.38169580698013306,
0.20348931849002838,
0.27039575576782227,
-0.13012836873531342,
-0.21390321850776672,
-0.29962849617004395,
-0.25114017724990845,
-0.33763831853866577,
-0.05506690591573715,
-0.1981527954339981,
0.29662203788757324,
-0.40599071979522705,
0.276066... | |
How could I forward the X window output from a program under Linux (Debian Lenny)? Any suggestions and / or experience?
The easiest way would be to restart the process with a new DISPLAY enviroment variable, but I don't want to take down the process at all. What I'd like is to change the X output to another machine "o... | [
0.19413167238235474,
0.164021834731102,
0.47046592831611633,
0.015827998518943787,
-0.3042701780796051,
-0.031135007739067078,
0.16231130063533783,
0.1598585695028305,
-0.26297736167907715,
-0.7445513606071472,
0.02622481808066368,
0.5588338971138,
-0.24129986763000488,
0.3178081810474396,... | |
VNC or similar) neither do I want to just forward one window. I want to forward all the output from a certain process, without restarting the process.[/edit]
Sounds like a job for [xmove](http://en.wikipedia.org/wiki/Xmove). It's in [Debian](http://packages.debian.org/search?keywords=xmove&searchon=names&suite=all§... | [
0.5713114142417908,
-0.1670302003622055,
0.36091452836990356,
-0.10310389846563339,
-0.17689569294452667,
-0.274948388338089,
-0.03790322318673134,
-0.0946674570441246,
-0.5987694263458252,
-0.5827817916870117,
0.01346653513610363,
0.5918356776237488,
-0.22186033427715302,
0.05934419110417... | |
I'm trying to run a simple Watin test through TeamCity but the Internet Explorer window is never shown as is usually is via CruiseControl.
I get an error that it can't find a text field so something is running. But i can't see what without the window.
Is there a specific change to the setup of TeamCity server that I ... | [
0.23235535621643066,
-0.016481053084135056,
-0.3176894187927246,
0.3428051173686981,
-0.37946322560310364,
-0.17038480937480927,
0.6914931535720825,
-0.07809706032276154,
-0.1710832118988037,
-0.7011204957962036,
-0.09557145833969116,
0.5372052788734436,
-0.017969973385334015,
-0.578929901... | |
full UI to execute properly and it doesn't get this environment as a service. I hope this makes it easier for other people! | [
0.059249456971883774,
-0.3514247238636017,
0.6371690034866333,
0.14339469373226166,
-0.2169688642024994,
-0.45097896456718445,
0.43953192234039307,
0.26773369312286377,
0.037129390984773636,
-0.5746817588806152,
-0.18417231738567352,
0.5628011226654053,
-0.08020346611738205,
-0.09082322567... | |
As I open new tabs in vi/vim(7.2), if the opened files are in different paths the tab title displays the complete path and hogs the screen real estate so the other tabs are not visible. This means I can't use my mouse to click to the tab I want but have to resort to : & keyboard commands to move between tabs.
Is ther... | [
0.46132752299308777,
0.018076365813612938,
0.8224676251411438,
-0.13302692770957947,
-0.04318529739975929,
0.18674986064434052,
0.5504593253135681,
0.015741923823952675,
-0.47896474599838257,
-0.6759377717971802,
-0.105421282351017,
0.6564356684684753,
-0.14221066236495972,
0.2920605242252... | |
question:
After reading [Chad Birch](https://stackoverflow.com/users/41665/chad-birch) above and googling for setting-tabline I found the [TabLineSet](http://vim.sourceforge.net/scripts/script.php?script_id=1507) plugin that does the trick, and some of script explanations [here](http://tech.groups.yahoo.com/group/vim/... | [
-0.1288270354270935,
0.06853866577148438,
0.3977515697479248,
0.1270430088043213,
0.016502954065799713,
0.028873398900032043,
0.3649641275405884,
0.0666438639163971,
-0.3503052294254303,
-0.22411514818668365,
0.13997627794742584,
0.18089905381202698,
-0.24700872600078583,
-0.20710758864879... | |
Is there any way where I can check if the field is numeric in derived column/Conditional Split of the data Flow task in Sql Server Integration Services 2005.
Functionality should be like ISNUMERIC() function.
Currently I'm using
`((DT_NUMERIC,12,0)fieldname= (DT_NUMERIC,12,0)fieldname)`
in the derived column expr... | [
0.046352703124284744,
-0.015012042596936226,
0.20065350830554962,
-0.02465667389333248,
-0.16877250373363495,
-0.18679189682006836,
0.14238543808460236,
-0.13987159729003906,
-0.253361314535141,
-0.36506038904190063,
0.2444595992565155,
0.6398109197616577,
-0.28882771730422974,
-0.07813859... | |
function like this to check if the field is numeric or not in SSIS.
We use the following technique:
1. On the property form for the derived column component you can click the button marked 'Configure Error Output' to bring up the error output configuration.
2. Configure the error and truncation actions for this colum... | [
0.13953714072704315,
-0.2448313981294632,
0.29630371928215027,
-0.03428405895829201,
0.0569303035736084,
-0.12388620525598526,
0.43851855397224426,
-0.38881123065948486,
0.0326802097260952,
-0.5020985007286072,
-0.01303495466709137,
0.8593291640281677,
-0.5264133810997009,
0.02614284679293... | |
and take appropriate action. | [
0.2801997661590576,
0.460555762052536,
-0.14547498524188995,
-0.133541077375412,
-0.07034565508365631,
-0.35580751299858093,
0.30263957381248474,
0.39797845482826233,
0.23064720630645752,
-0.5787613987922668,
-0.2473393827676773,
0.1237548291683197,
0.12177672982215881,
-0.0367986895143985... | |
I have a basic domain object, say like Person or Campaign or Event that is represented by a single table in the database. However, I also have more complicated versions of these objects say like a PersonCampaign or PersonEvent or even CampaignEvent that could theoretically extend one of the base objects.
However, for ... | [
0.08971140533685684,
-0.048212554305791855,
0.3017800450325012,
0.1867537647485733,
-0.3026520907878876,
-0.08995915204286575,
0.0010623548878356814,
-0.009201718494296074,
-0.054661158472299576,
-0.5754623413085938,
0.3527638018131256,
0.16958186030387878,
-0.02657155692577362,
0.04696755... | |
like email, call, fax).
The easiest solution that I can see is to have the actual nature of the object change based on what data is returned from the data access layer.
Does anyone have any suggestions on a better way to handle this? Or is it correct to create unified domain objects that can change properties and b... | [
-0.30934926867485046,
-0.24728895723819733,
0.11029013991355896,
0.08680544048547745,
-0.04439537599682808,
0.009182014502584934,
0.01734253019094467,
-0.11317607015371323,
-0.3874007761478424,
-0.5336135625839233,
-0.22767189145088196,
0.5639453530311584,
-0.36206457018852234,
0.127429440... | |
relation between person and event)
The bad part is, this will complicate the data-mapper or wont use the data-mapper at all. | [
-0.32826775312423706,
-0.14122188091278076,
0.1381852775812149,
0.31716516613960266,
-0.20510698854923248,
0.11081169545650482,
0.38260790705680847,
0.025102363899350166,
-0.09660758823156357,
-0.5714167356491089,
-0.02350977249443531,
0.5233551859855652,
-0.0062658158130943775,
0.04817198... | |
I need to set up a test environment on my XPSP3 machine that runs Apache, MySQL, and PHP. My original test environment was an old box that ran those three under Win2k. That box died. Running on Windows was never optimal because the ultimate hosting environment is CentOS Linux.
What is the most straightforward way to s... | [
0.40604168176651,
0.5079782009124756,
0.20976772904396057,
0.33921077847480774,
-0.06962832808494568,
-0.09228924661874771,
0.330229789018631,
0.24520166218280792,
0.11121327430009842,
-0.5886711478233337,
0.19253969192504883,
0.5160073041915894,
-0.082356296479702,
0.1689557135105133,
-... | |
deployment? I don't know CentOS at all, but I'm comfortable with Fedora or Ubuntu.
Download free [VMWare player](http://www.vmware.com/products/player/) and install one of the pre-made Open Source LAMP VMs from the [VMWare appliance marketplace](http://www.vmware.com/appliances/directory/). VMs are also available in ma... | [
0.8630961775779724,
-0.08690215647220612,
0.6644570231437683,
0.14895594120025635,
-0.03500950336456299,
-0.2626193165779114,
-0.07461147755384445,
-0.00849897414445877,
-0.30391624569892883,
-0.4869605302810669,
-0.24776369333267212,
0.5073267817497253,
-0.16592265665531158,
-0.0718220397... | |
**How can I fix this RegEx to optionally capture a file extension?**
I am trying to match a string with an optional component, but something appears to be wrong. (The strings being matched are from a printer log.)
My RegEx (.NET Flavor) is as follows:
```
.*(header_\d{10,11}_).*(_.*_\d{8}).*(\.\w{3,4}).*
-----------... | [
-0.0720982626080513,
0.03960292041301727,
0.6002715229988098,
-0.2457946538925171,
0.12259818613529205,
0.061922211199998856,
0.16739851236343384,
0.055846478790044785,
-0.12793320417404175,
-0.6012017130851746,
0.16772755980491638,
0.5946580767631531,
-0.2888123393058777,
0.12240178138017... | |
including the ID (10 - 11 digits)
.* # Ignore the type code in the middle
(_.*_\d{8}) # Match some random characters, then an 8-digit date
.* # Ignore anything between this and the file extension
(\.\w{3,4}) # Match the file extension, 3 or 4 characters long
.* | [
0.06226913630962372,
0.19448219239711761,
0.30819422006607056,
-0.048291511833667755,
0.33672553300857544,
0.22339801490306854,
0.024395857006311417,
-0.1649070680141449,
-0.12647593021392822,
-0.3042577803134918,
-0.2817433178424835,
0.16624850034713745,
-0.18978305160999298,
-0.000787889... | |
# Ignore the rest of the string
```
I expect this to match strings like:
```
str1 = "header_0000000602_t_mc2e1nrobr1a3s55niyrrqvy_20081212[1].doc [Compatibility Mode]"
str2 = "Microsoft PowerPoint - header_00000000076_d_al41zguyvgqfj2454jki5l55_20071203[1].txt"
str3 = "header_00000000076_d_al41zguyvgqfj2454jki5l55_2... | [
-0.18320953845977783,
-0.11830507218837738,
0.33604246377944946,
-0.051310136914253235,
0.27070221304893494,
-0.026792259886860847,
0.531116247177124,
-0.33244404196739197,
-0.14876790344715118,
-0.23643754422664642,
-0.37503308057785034,
0.6043007373809814,
-0.5741949081420898,
-0.1268237... | |
any string. If I add "+" instead "(.\w{3,4})+", the RegEx no longer captures str3 at all, which is to be expected.
I feel that using "?" at the end of the third capture group is the appropriate thing to do, but it doesn't work as I expect. I am probably being too naive with the ".\*" sections that I use to ignore part... | [
-0.09381195902824402,
-0.2970292568206787,
0.4308430254459381,
-0.12448062747716904,
-0.09354357421398163,
-0.12565109133720398,
0.27097705006599426,
0.009961633943021297,
-0.3390427231788635,
-0.5138753652572632,
-0.010868590325117111,
0.5101200938224792,
-0.5680150985717773,
0.2565842568... | |
^ Added that
```
That wasn't correct, this one will match the input you supplied, but it assumes that the first `.` it encounters is the start of a file extension:
```
.*(header_\d*_).*(_.*_.{8})[^\.]*(\.\w{3,4})?.*
```
**Edit:** Remove the escaping I had in the second regex. | [
-0.31952378153800964,
-0.034126684069633484,
0.5409417748451233,
-0.1824491024017334,
0.25253361463546753,
-0.018108824267983437,
0.23413248360157013,
-0.13140256702899933,
0.029210789129137993,
-0.6528428196907043,
-0.2381266951560974,
0.4875310957431793,
-0.3526553213596344,
0.2961703538... | |
How do I use WIX to prevent overwriting a config file during a 'Major Upgrade'?
I want the file to be installed on the initial install, removed on uninstall, and left unchanged on a 'Major Upgrade'.
Thanks
The most straight forward way would be to schedule your RemoveExistingProducts after InstallExecute or InstallFi... | [
0.49620023369789124,
-0.04855411872267723,
0.4671289622783661,
-0.13304570317268372,
0.2464296817779541,
-0.5171235799789429,
0.41243061423301697,
0.10867191106081009,
0.021544678136706352,
-0.8921726942062378,
-0.17340807616710663,
0.8998020887374878,
-0.2870854139328003,
0.10483472049236... | |
all. You ship defaults with the application but any changes are made by the user in their private user profile. Gets you out of all kinds of nasty migration problems that just aren't solved well during setup. | [
0.3272309899330139,
-0.34825122356414795,
0.37645912170410156,
0.5657975077629089,
0.26158010959625244,
-0.04771348461508751,
0.19153419137001038,
0.25536832213401794,
-0.4310142993927002,
-0.5547354221343994,
-0.19319652020931244,
0.6458647847175598,
-0.4882286787033081,
-0.07513885945081... | |
I basically want to get an idea of the percentage of people who think it's reasonable to use the Single Responsibility Principle in real-world code **and** how many actually do. In [Podcast #38](https://blog.stackoverflow.com/2009/01/podcast-38/) Joel talks about how useless this OOP principle is the real world; and fu... | [
0.558379590511322,
0.3752830922603607,
0.022559011355042458,
0.289061576128006,
0.07626756280660629,
-0.30545011162757874,
0.4743913412094116,
0.23137441277503967,
-0.19095642864704132,
-0.44181859493255615,
-0.0449213907122612,
0.46029332280158997,
-0.32989057898521423,
-0.082715682685375... | |
I found Joel's argument in the podcast quite weak (as did others if you continue on to read the blog comments [here](https://blog.stackoverflow.com/2009/01/podcast-38/)). But, is there any truth in it?
What does the community think?
I have had some experience applying [SOLID](http://www.lostechies.com/blogs/chad_myers... | [
0.24441362917423248,
0.542538583278656,
0.04302561283111572,
-0.049960967153310776,
-0.2115127593278885,
-0.04864522069692612,
0.7891765236854553,
-0.3151160180568695,
-0.2530921399593353,
-0.31590574979782104,
0.3004194498062134,
0.8577292561531067,
0.18725243210792542,
0.0060123400762677... | |
code (usually interface definitions) but because everything is highly decoupled it's far more maintainable. I hardly ever have situations where changes in one part of my application break other parts. So the 20% extra code i have to maintain pays for itself.
Jeff also missed the point on code quality. He doesnt see co... | [
0.5792704224586487,
0.5080623030662537,
0.14892564713954926,
0.479160338640213,
-0.018926918506622314,
0.02856288105249405,
0.6308371424674988,
-0.08326069265604019,
-0.08943723887205124,
-0.6895056962966919,
-0.05656813457608223,
0.6392173171043396,
0.01610337384045124,
-0.265613734722137... | |
has always paid itself back within a few months. High quality = low maintenance.
I do agree with them that like anything you have to be pragmatic about these things. If you need to deliver something then go ahead and do it fast and dirty. But clean up afterwards. | [
0.6691251993179321,
-0.11923888325691223,
-0.10454748570919037,
-0.014946927316486835,
-0.17179739475250244,
0.1455542892217636,
0.30177125334739685,
0.5482098460197449,
-0.0852857157588005,
-0.408625990152359,
0.306795597076416,
0.48865655064582825,
0.49096381664276123,
0.0369098559021949... | |
I have a class A which implements many functions. Class A is very stable.
Now I have a new feature requirement, some of whose functionality matches that implemented by A. I cannot directly inherit my new class from class A, as that would bring lot of redundancy into my new class.
So, should i duplicate the common co... | [
0.20306405425071716,
0.02919396199285984,
-0.09284790605306625,
0.044668830931186676,
-0.022473467513918877,
0.08425189554691315,
0.1940140575170517,
-0.171253502368927,
-0.17893217504024506,
-0.65181964635849,
0.0019447600934654474,
0.48709288239479065,
-0.29846885800361633,
0.30080738663... | |
a better approach?
Unless there is a very good reason not to modify class A, refactor and make a common base (or even better, a common class that both can use, but not necessarily derive from).
You can always use private inheritance to gain access to the shared functionality without modifying class As external interfa... | [
0.2609193027019501,
-0.0967756137251854,
0.012484927661716938,
0.22145135700702667,
-0.05481816455721855,
-0.08486801385879517,
0.3491222560405731,
-0.3745974898338318,
-0.12170805782079697,
-0.6199578046798706,
0.08803247660398483,
0.8218438625335693,
-0.205909863114357,
0.019989203661680... | |
functionality will change, but without the same change being needed in the old class. One of the reasons for not duplicating code is so that a fix or a change needs only to be made in one place. If changes are going to happen that will break the original class, then maybe you want to copy the code instead. Although in ... | [
0.46349242329597473,
0.03329242393374443,
0.03965754806995392,
0.4344246983528137,
0.16106055676937103,
-0.26823291182518005,
0.5859431624412537,
-0.2091418206691742,
-0.3157002627849579,
-0.6725183725357056,
-0.14000581204891205,
0.5631001591682434,
-0.4257994592189789,
0.2194441854953766... | |
I have an Ajax actionlink that requests a string in the controller method. I want to insert that string into an attribute of a hyperlink. HOw do I specify the attribute field of the target id element?
```
<img id="CHANGE-MY-SRC" src=ViewData["src"] >
<%=Ajax.ActionLink("Change IMG Source","actionChange",new AjaxOptio... | [
-0.03563471511006355,
-0.1537705957889557,
0.4954706132411957,
-0.08210556209087372,
-0.09244012832641602,
-0.03902066498994827,
0.0513744093477726,
-0.22430166602134705,
-0.07369726151227951,
-0.7777791023254395,
0.11500543355941772,
0.5912119746208191,
-0.359802782535553,
0.0656742304563... | |
JavaScript file (load it up in the Master page, for example) and add this function:
```
// Creates an Ajax OnComplete handler that will inject
///the contents into the specified attribute, rather than the InnerHtml
function createAttributeInjector(attributeName) {
return function(ajaxContext) {
if(ajaxCon... | [
-0.21568390727043152,
-0.12817081809043884,
0.1392330378293991,
-0.11209753155708313,
-0.0097992904484272,
-0.2563254237174988,
0.19064049422740936,
-0.15882082283496857,
0.13672500848770142,
-0.7435050010681152,
-0.4234413504600525,
0.7274664044380188,
-0.46724191308021545,
-0.27817910909... | |
when building your Ajax link:
```
Ajax.ActionLink("Change IMG Source", "actionChange", new AjaxOptions() {
UpdateTargetId="CHANGE-MY-SRC",
OnCompleted="createAttributeInjector('src')"
}
```
Disclaimer: I haven't been able to give this a test, but I've done similar things with the Ajax helpers. Post in the c... | [
0.16742390394210815,
0.1626751571893692,
0.36071664094924927,
-0.07470595091581345,
-0.14539483189582825,
-0.2733995318412781,
0.4541550874710083,
-0.039472371339797974,
-0.12225395441055298,
-0.9486886858940125,
0.07516947388648987,
0.4996642768383026,
-0.05696540325880051,
-0.09469237923... | |
I have some questions on using `std::map`:
1. Is using an `enum` as the key in `std::map` a good practice? Consider the following code:
```
enum Shape{
Circle,
Rectangle
};
int main(int argc, char* argv[])
{
std::map<Shape,std::string> strMap;
// strMap.insert(Shape::Circle,"Circle"); // This will ... | [
-0.07947458326816559,
-0.015371005050837994,
0.2096860259771347,
-0.25376033782958984,
0.16842809319496155,
-0.1640821248292923,
0.18991361558437347,
-0.3120121955871582,
-0.22357743978500366,
-0.6848744750022888,
-0.2926117479801178,
0.5903744101524353,
-0.41232115030288696,
-0.1259575337... | |
Which of these methods is recommended for inserting items into a `std::map`?
3. I understand that when the `find()` method is used on the `std::map` class, it is not doing a sequential search in the container but doing some logarithmic search which will be much faster than sequential search. Is this understanding corre... | [
-0.22083967924118042,
-0.028297606855630875,
0.299345999956131,
0.05682677775621414,
0.11928988993167877,
-0.047135964035987854,
-0.13161017000675201,
-0.27659082412719727,
-0.42560911178588867,
-0.8151676058769226,
-0.21303516626358032,
0.5223981738090515,
-0.2842220664024353,
0.010789179... | |
is faster than O(n) if n is sufficiently high. | [
-0.376211017370224,
-0.0859481543302536,
0.22334901988506317,
0.10061181336641312,
0.14737384021282196,
-0.06591629981994629,
0.4217301309108734,
-0.4316457509994507,
-0.051811765879392624,
-0.49608370661735535,
-0.3563147187232971,
0.2942293882369995,
-0.04235655814409256,
-0.114895105361... | |
I'm creating an installer with NSIS for a program that needs to run on an NTFS volume. How do I detect if the install to path is on an NTFS volume and act accordingly (show a help/warning message)?
Using external tools is not always a good idea (Not every command line tool exists on the Home versions of windows ) It's ... | [
0.2992609143257141,
0.03809598833322525,
0.507097065448761,
0.053159039467573166,
0.189712256193161,
-0.1839916855096817,
0.3335627615451813,
-0.15742921829223633,
-0.02301819808781147,
-0.8781237602233887,
-0.1501435935497284,
1.0210336446762085,
-0.41808241605758667,
0.09970758110284805,... | |
type, but you should look for the actual feature you need (compression,encryption,junctions,sparse files etc)
```
!define FILE_SUPPORTS_ENCRYPTION 0x00020000
!define FILE_READ_ONLY_VOLUME 0x00080000
!define FILE_VOLUME_QUOTAS 0x00000020
!macro MakeBitFlagYesNo flags bit outvar
IntOp ${outvar} ${flags} & ${bit}
${IfTh... | [
-0.028122618794441223,
0.18503639101982117,
0.5180471539497375,
-0.06406029313802719,
0.2943665087223053,
0.18402864038944244,
0.17411096394062042,
-0.30494222044944763,
-0.27671778202056885,
-0.4486958086490631,
-0.3797774910926819,
0.6038510799407959,
-0.628057062625885,
-0.1274684965610... | |
The reason I am asking this is due to my observation that frameworks like RoR and Django are two of the leading MVC frameworks out there which really have stirred up the community. I know there are MVC frameworks in Java world long before RoR or Django came out, but there wasnt so much excitement.
Are languages like R... | [
0.4101731777191162,
0.33595630526542664,
0.10158134996891022,
-0.00906204991042614,
-0.26425954699516296,
-0.11863543093204498,
0.19573447108268738,
0.06264588236808777,
-0.40100184082984924,
-0.5423721671104431,
0.07171834260225296,
0.516300618648529,
-0.26037049293518066,
-0.180187582969... | |
really looking forward for Visual Studio to support dynamic languages just the way it supports C#.
It be honest it is not really the best example to compare Java against RoR and Python. Because Java's implementation of MVC was on its Windows side development not the web. And JSP has never been a favorite of web develop... | [
0.06818477809429169,
-0.29058367013931274,
0.07411419600248337,
0.08083616197109222,
-0.6442099213600159,
-0.05395004525780678,
0.07710402458906174,
0.38136881589889526,
-0.5798214077949524,
-0.24653181433677673,
0.1929510086774826,
0.625281572341919,
-0.4316500127315521,
-0.06948793679475... | |
that offer a really good implementation of MVC for the web, so that is probably why you see most of the development in RoR, Python, and PHP.
But if you want to see how quickly it is to change and roll out an MVC application developed in C#, you really don't have to look any farther than the site you are currently on. ... | [
0.43239161372184753,
0.5024791359901428,
-0.06416255235671997,
-0.04284414276480675,
-0.07258095592260361,
-0.024644000455737114,
-0.015088899061083794,
0.11464614421129227,
-0.3961375951766968,
-0.37448954582214355,
-0.10985451191663742,
0.7501425743103027,
-0.4658958613872528,
-0.2134187... | |
the language hasn't had all the problems worked out yet. | [
0.2618979513645172,
0.38055548071861267,
0.16284511983394623,
-0.2428096979856491,
0.06366309523582458,
0.027479559183120728,
0.4857144057750702,
0.5375873446464539,
-0.13925564289093018,
-0.512503445148468,
0.20595140755176544,
0.3577069640159607,
0.23310935497283936,
-0.29113030433654785... | |
Scenario:
The website is hosted on three servers using [IIS](http://en.wikipedia.org/wiki/Internet_Information_Services) on each.
All three servers are clustered using the network load balancing software that comes with Windows Server 2003.
All three sites are configured to store the session state on a separate ser... | [
-0.06782832741737366,
-0.07422886043787003,
0.12160209566354752,
0.06172822788357735,
0.18695305287837982,
0.19247908890247345,
0.37605464458465576,
-0.18722374737262726,
-0.43614068627357483,
-0.8152130842208862,
0.11897696554660797,
0.40267205238342285,
-0.3331587314605713,
0.12047430872... | |
set it up on each of the web servers and then you could scale it with each new web server you add. I've found a couple of clients on codeplex before. | [
0.9328580498695374,
-0.07305212318897247,
0.24776795506477356,
0.02002544514834881,
-0.07846507430076599,
0.1911555528640747,
-0.1084887906908989,
0.07043197751045227,
-0.3187452554702759,
-0.6543174982070923,
0.6974412798881531,
0.5269178748130798,
-0.13830538094043732,
0.1451384872198104... | |
I'm using ONLY Linq to SQL for database access, so I assume it is safe to turn off request validation...
So you don't care about people inserting HTML/javascript onto your page that will allow them to do cross-site scripting attacks? Parameterized queries will only help protect against SQL injection, not all attack vec... | [
0.29098910093307495,
0.24094320833683014,
0.1892218142747879,
0.31507936120033264,
-0.1045016273856163,
-0.39115363359451294,
0.1475035846233368,
0.06891100108623505,
-0.09912066906690598,
-0.36745378375053406,
0.13352423906326294,
0.41138434410095215,
-0.3374888300895691,
0.02875195257365... | |
How does one check to see if a user has typed in the right password to log in?
This is what (out of a bunch of combinations...) I am doing:
```
<?
$login = $_POST['login'];
$password = $_POST['password'];
mysql_connect('localhost', 'root', 'abc123');
mysql_select_db('aun_vox') or die(mysql_error());
$q = mysql_qu... | [
0.40274736285209656,
0.06201343983411789,
0.15955613553524017,
-0.23227259516716003,
0.07759380340576172,
-0.11878097057342529,
0.7010266184806824,
-0.39160919189453125,
-0.1827394813299179,
-0.45074528455734253,
0.15403926372528076,
0.6179007291793823,
-0.3117178976535797,
0.0911498293280... | |
readers, *never* store passwords in plain text in the database. You don't want to be [like Monster.com.uk](http://www.dailymail.co.uk/sciencetech/article-1128822/Hackers-steal-details-4-5m-users-Monster-uk-Britains-biggest-cyber-theft-case.html)!
You should use a stronger hashing function than `MD5()`. Ideally you sho... | [
0.3244599401950836,
0.07518121600151062,
0.5412709712982178,
0.23249681293964386,
-0.33024728298187256,
-0.1956096887588501,
0.5475720763206482,
0.1659599244594574,
-0.28121069073677063,
-0.5718971490859985,
-0.26956111192703247,
0.5382325649261475,
-0.2090596854686737,
0.17872558534145355... | |
I haven't tested it, but it should be pretty close to working:
```
$input_login = $_POST['login'];
$input_password = $_POST['password'];
$stmt = $mysqli->prepare("SELECT password, salt FROM customer WHERE login = ?");
$stmt->bind_param("s", $input_login);
$stmt->execute();
$stmt->bind_result($password_hash, $salt);
... | [
0.1535516232252121,
0.06634268164634705,
0.5599138140678406,
-0.26997503638267517,
-0.021573318168520927,
0.11046123504638672,
0.5632925033569336,
-0.8726369142532349,
-0.16764722764492035,
-0.577707052230835,
0.12123550474643707,
0.25811848044395447,
-0.14932550489902496,
0.02326369471848... | |
`login = ? AND password = ?` but I don't like to do that. If you do this, you can't know if the lookup failed because the login didn't exist, or because the user provided a wrong password.
Of course you shouldn't reveal to the user which caused the failed login attempt, but *you* may need to know, so you can log suspi... | [
0.40433698892593384,
0.23406881093978882,
0.26142606139183044,
0.11028200387954712,
0.11001574248075485,
-0.5614728331565857,
0.23790062963962555,
-0.037305932492017746,
-0.09284629672765732,
-0.2900347113609314,
0.021737277507781982,
0.5050792098045349,
-0.15434783697128296,
0.21187537908... | |
the database. But this doesn't support salting the password easily. You have to do a separate query to retrieve this user's salt before you can do the hash in PHP.
The alternative is sending the *plaintext* password over the network from your PHP app to your database server. Anyone wiretapping your network can see thi... | [
0.3217746913433075,
0.1903499811887741,
0.18019428849220276,
0.3076151907444,
-0.1397501528263092,
-0.4232702851295471,
0.33857274055480957,
0.00872153788805008,
-0.24644061923027039,
-0.661672830581665,
0.3377264440059662,
0.6290115118026733,
-0.19759111106395721,
0.2526227831840515,
-0... | |
string from the database into the PHP app, compare it to the hash of the user's input (also in PHP code), and then discard these variables. | [
0.10121530294418335,
-0.0020309926476329565,
0.28755423426628113,
0.06710021197795868,
-0.11479716747999191,
-0.017976999282836914,
0.13146576285362244,
0.03553902357816696,
0.004680430516600609,
-0.08552156388759613,
-0.18033799529075623,
0.30871862173080444,
-0.2915078103542328,
0.004179... | |
I have a list with multiple class that contain a Property that is an Integer (Id).
I have a List of Integer too.
Now, I would like to trim the List of my object to only those class that has the Property in the list of the integer.
Example:
```
List of MyObject
[MyObjectA].Id = 1
[MyObjectB].Id = 2
[MyObjectC].Id =... | [
-0.16643480956554413,
-0.007406940683722496,
0.3919016718864441,
-0.09513680636882782,
-0.07508549094200134,
-0.0055596353486180305,
0.09869345277547836,
-0.4591347575187683,
-0.25660109519958496,
-0.7071662545204163,
-0.083628349006176,
0.5530731081962585,
-0.2241228073835373,
0.125288993... | |
in idList on entry.Id equals id
select entry).ToList();
``` | [
-0.010234655812382698,
0.014363253489136696,
0.4480309784412384,
-0.29631009697914124,
0.3145384192466736,
-0.07897791266441345,
-0.0866376981139183,
-0.4369712769985199,
-0.076393261551857,
-0.5112271308898926,
-0.3675939440727234,
0.4178887903690338,
-0.39173778891563416,
0.2988925278186... | |
I'm evaluating some underdocumented software. When I build a sample project, I'm getting a linker error that looks like:
```
error LNK2019: unresolved external symbol
```
There aren't a whole lot of lib files with this app, so I can solve this problem with trial and error, but I know there's a more *elegant* way is t... | [
0.021020440384745598,
0.439233660697937,
-0.1549806296825409,
-0.3097836971282959,
-0.29974403977394104,
0.15187010169029236,
0.24032461643218994,
-0.1272985339164734,
-0.25077295303344727,
-0.6478613018989563,
0.23464304208755493,
0.6622326374053955,
-0.4880237877368927,
-0.07976414263248... | |
so far. It just prints this:
```
Microsoft (R) Library Manager Version 8.00.50727.762
Copyright (C) Microsoft Corporation. All rights reserved.
granite50.dll
granite50.dll
granite50.dll
granite50.dll
...
```
Any suggestions?
First of all you need to know which type of library you are looking at. Some libraries si... | [
0.3664039373397827,
0.4087056517601013,
0.026278743520379066,
0.0884304791688919,
-0.41196900606155396,
-0.12516257166862488,
0.28409379720687866,
-0.07901874929666519,
-0.5316175818443298,
-0.34243154525756836,
-0.0750364363193512,
0.43709295988082886,
-0.14111772179603577,
0.387283235788... | |
utility for Java. Microsoft provides dumpbin.exe which will dump information from the library. I see that [LarryF](https://stackoverflow.com/questions/488809/tools-for-inspecting-lib-files#488823) already mentioned this.
For import libraries, run `dumpbin.exe -headers foo.lib` and redirect it to an output file. The ou... | [
0.20731163024902344,
-0.32110387086868286,
0.1749933511018753,
-0.006099363323301077,
-0.20573018491268158,
-0.01724010333418846,
0.11453045159578323,
-0.024107813835144043,
-0.01874363236129284,
-0.763640820980072,
0.03420103341341019,
0.34200581908226013,
-0.6857266426086426,
-0.08354093... | |
to look at:
```
dumpbin.exe -headers foo.lib | findstr /c:" Symbol name :" > foo-exports.txt
```
The other option is to open the related DLL with `depends.exe`. | [
0.46386271715164185,
-0.20167413353919983,
0.21624909341335297,
-0.3316003680229187,
-0.028934642672538757,
-0.2671582102775574,
-0.15452861785888672,
0.042109161615371704,
-0.10248503088951111,
-0.3714792728424072,
-0.1831517368555069,
0.6483190655708313,
-0.4127313792705536,
-0.140803158... | |
If I use "top" I can see what CPU is busy and what process is using all of my CPU.
If I use "iostat -x" I can see what drive is busy.
But how do I see what process is using all of the drive's throughput?
You're looking for `iotop` (assuming you've got kernel >2.6.20 and Python 2.5). Failing that, you're looking into ... | [
0.13738833367824554,
-0.01258751843124628,
0.1979963630437851,
0.0557977557182312,
0.2291819155216217,
-0.03525726497173309,
0.1161542683839798,
0.12980180978775024,
-0.39853695034980774,
-0.6873632669448853,
-0.2623470723628998,
1.0031921863555908,
-0.4137799143791199,
-0.3172505795955658... | |
I was working with some C# code today in the morning and I had something like:
```
foreach(DataRow row in MyMethod.GetDataTable().Rows) {
//do something
}
```
So, as I dont have a full understanding of the language framework I would like to know if GetDataTable() gets called each time an iteration is done or if it j... | [
0.01533250231295824,
0.08003147691488266,
0.27865660190582275,
-0.16109591722488403,
0.2511833906173706,
-0.020431246608495712,
0.2992977499961853,
-0.19264523684978485,
-0.18083931505680084,
-0.5208313465118408,
0.06245415657758713,
0.4090902507305145,
-0.4122341275215149,
0.1724703907966... | |
something
}
```
But im not quite sure if this is necessary.
Thanks in advance.
Don't worry about it; it'll only execute GetDataTable() once internally to get the enumerator object from the DataRowCollection, and then fetch a new item from it every run through the loop. | [
0.2715872526168823,
-0.13875316083431244,
0.5316879153251648,
0.1679670214653015,
0.26130878925323486,
-0.2210279256105423,
0.2368292659521103,
0.34859034419059753,
0.25412923097610474,
-0.46638986468315125,
-0.17747515439987183,
0.7491501569747925,
0.01805112138390541,
-0.1067968681454658... | |
I have been using MyEclipse for a number of years. I am coming to the conclusion that I would rather ditch MyEclipse and revert to plain old Eclipse, **except** for one detail: MyEclipse's Tomcat integration. Does anyone know of an Eclipse plugin that would provide such integration?
Here's what my current MyEclipse se... | [
0.12571175396442413,
0.1496676653623581,
0.32604503631591797,
-0.10965493321418762,
-0.08341968059539795,
0.085948146879673,
0.03486200049519539,
0.2097657322883606,
-0.09557168930768967,
-0.7569647431373596,
-0.10550197213888168,
0.5350692272186279,
-0.15362735092639923,
-0.17037428915500... | |
and all).
* Hot update of modified JSPs and classes.
In effect, I can sidestep Ant for most purposes, as long as I play inside the IDE.
With Eclipse, I know I can achieve 1. and 2. What about the other steps?
Note: Just in case this gets asked, why wanting to ditch MyEclipse?
* Avoid renewing the license.
* MyEcli... | [
0.05212416499853134,
-0.2477349489927292,
0.45031729340553284,
-0.00611173314973712,
-0.29924410581588745,
-0.024812081828713417,
0.2705889940261841,
-0.02299998514354229,
-0.045840781182050705,
-0.652398943901062,
0.1021483838558197,
0.5920916199684143,
-0.11871247738599777,
-0.1371322274... | |
I have a pool manager template class. When a class object gets added back to the pool manager I would like to reset it back to it's initial state. I would like to call the placment destructor and placment constructor on it so it gets fully reset for the next time it is given out by the pool manager. I've tried many way... | [
0.5088544487953186,
-0.054637499153614044,
-0.06794644892215729,
-0.2626998722553253,
0.2184690684080124,
-0.17451003193855286,
-0.05305047333240509,
-0.20240375399589539,
-0.25432735681533813,
-0.6974574327468872,
0.10363650321960449,
0.7543033957481384,
-0.6183891892433167,
0.21140943467... | |
//also tried new (obj)T(); //but this doesn't seem to work either
//then misc code to add a pointer to the object
//to my list of available objects for re-use later
}
```
I've tried a bunch of different syntaxes and none seem to work. The code itself is cross platform so should compile using gcc ( under mi... | [
0.22816620767116547,
-0.0076685333624482155,
0.3636443316936493,
-0.3061416745185852,
-0.11850909143686295,
-0.28051039576530457,
0.32663819193840027,
-0.1984841227531433,
-0.13975746929645538,
-0.7816876173019409,
-0.17519091069698334,
0.7315594553947449,
-0.6489599347114563,
0.0519479401... | |
//call destructor
obj = new ((void *)obj)T(); //call constructor
// add a pointer to the object to the list...
}
``` | [
0.17423398792743683,
0.09298771619796753,
0.19901315867900848,
-0.29789769649505615,
0.0962291806936264,
0.1700914353132248,
0.39353498816490173,
-0.18674200773239136,
-0.20946407318115234,
-0.6260064840316772,
-0.43273091316223145,
0.6946784257888794,
-0.49282917380332947,
0.3941078186035... | |
So I've got various reports that consist of a DataSet rendered in a Tablix... pretty garden variety stuff. There is a property for the Tablix control named *RepeatColumnHeaders*, which I have set to **True** for each report in question. The explanation for this property states “Indicates whether column headers are repe... | [
0.6189972758293152,
-0.039786290377378464,
0.4263596832752228,
0.164247527718544,
0.0009662025258876383,
0.006829702295362949,
0.27986791729927063,
0.34100884199142456,
-0.30662885308265686,
-0.5840265154838562,
0.16835938394069672,
0.24374893307685852,
-0.35988378524780273,
0.323976844549... | |
is some fairly arcane grouping mojo, but in an example where it doesn't work the Tablix only has one level--no grouping. I would expect the multi-nested one to be the problem, not the flat one.
Maybe it's a different problem altogether. I threw together a simple Tablix rendering **SELECT \* FROM Foo**, accepted all th... | [
0.12862253189086914,
0.013470970094203949,
0.36859217286109924,
0.14963147044181824,
-0.08390285074710846,
0.16163763403892517,
0.22130492329597473,
-0.22196178138256073,
-0.15052685141563416,
-0.5631029605865479,
0.02215193584561348,
0.6156229376792908,
-0.4117157459259033,
-0.07123909890... | |
outermost static row. You should then see the "RepeatOnNewPage" property.
**Update: finding Advanced Mode**:
The comment by @HCL links to the [other answer by @user359904](https://stackoverflow.com/questions/488900/reporting-services-tablix-repeatcolumnheaders-doesnt-work-on-some-reports/2986024#2986024), that has ... | [
-0.4669243395328522,
-0.21794289350509644,
0.6894819140434265,
0.04587608203291893,
-0.04103337600827217,
-0.11248891800642014,
0.25148242712020874,
-0.22728769481182098,
-0.11592978239059448,
-0.43589627742767334,
-0.2610304653644562,
0.5682599544525146,
-0.38696640729904175,
-0.150066390... | |
I have an application in Perl that reads in HTML based mark up and converts it to a textual output. One of the things I have encountered is the need to easily convert a HTML table to a fixed font output.
```
<table border="1">
<tr><td>Hello</td>
<td>World</td>
<tr>
<td>foo</td>
<td>bar</td>
</tr></t... | [
-0.029545312747359276,
0.12724390625953674,
0.5713152885437012,
-0.13730397820472717,
-0.32781028747558594,
0.08404505252838135,
0.08947540819644928,
-0.05778691545128822,
-0.10413917154073715,
-0.9125999808311462,
0.10132839530706406,
0.3971732258796692,
-0.25798410177230835,
0.0688198432... | |
| bar |
------------------------------
```
I know how to approach this in Perl and write the process, but I am hoping that there is some library out there that already will do this for me.
I've used [Text::Table](http://search.cpan.org/~anno/Text-Table-1.114/lib/Text/Table.pm) with great success. In combi... | [
0.34241583943367004,
0.5677044987678528,
0.72456955909729,
-0.28359267115592957,
-0.1406085044145584,
-0.21851244568824768,
0.15867364406585693,
-0.16237300634384155,
-0.2834746241569519,
-0.504828155040741,
-0.06924678385257721,
0.6928891539573669,
-0.19246608018875122,
-0.118191853165626... | |
In c# when you want to divide the result of a method such as below, what is the best way to force it to return a double value rather than the default integer.
```
(int)Math.Ceiling((double)(System.DateTime.DaysInMonth(2009, 1) / 7));
```
As you can see I need the division to return a double so I can use the ceiling... | [
0.06527576595544815,
0.002898102393373847,
0.12832477688789368,
-0.18541544675827026,
0.016700543463230133,
-0.07590549439191818,
0.020753545686602592,
-0.31232139468193054,
-0.40637439489364624,
-0.17697936296463013,
-0.44737011194229126,
0.3971906304359436,
-0.18669505417346954,
-0.23122... | |
particular case, it's actually sufficient to convert one of the operators to `double`: that way, C# will perform the conversion for the other operand automatically.
You've got the choice: You can explicitly convert either operand. However, since the second operand is a *literal*, it's better just to make that literal ... | [
0.1584409773349762,
0.053571105003356934,
0.21999825537204742,
-0.15039892494678497,
-0.11451562494039536,
0.0030887844040989876,
0.10246903449296951,
-0.2876453697681427,
-0.032418861985206604,
-0.4375719726085663,
-0.2998920977115631,
0.3850255310535431,
-0.19385018944740295,
-0.11911818... | |
you need to use its type suffix: `7f`.
This behaviour of the fundamental operators is the same for nearly all languages out there, by the way. One notable exception: VB, where the division operator generally yields a `Double`. There's a special integer division operator (`\`) if that conversion is not desired. Another... | [
0.25132691860198975,
-0.053377583622932434,
0.19506986439228058,
-0.25748875737190247,
-0.411358118057251,
-0.10447893291711807,
0.3387032151222229,
-0.05505326762795448,
-0.10910109430551529,
-0.2510990798473358,
-0.30201223492622375,
0.48320144414901733,
-0.3878116309642792,
-0.059637654... | |
int`. | [
-0.19094017148017883,
0.2937268018722534,
0.153177872300148,
-0.10601066797971725,
-0.04422330856323242,
0.09011014550924301,
0.03184805065393448,
0.13455644249916077,
-0.23179937899112701,
-0.677723228931427,
-0.3130035698413849,
0.4758651852607727,
-0.22407063841819763,
0.233668312430381... | |
I'm having this problem with my dotnetnuke website where the .DOTNETNUKE cookie is being created twice,
one for www.website.com and one for website.com.
When a user logins in with a url of website.com and tries to access a page that is www.website.com it causes them to re-loggin with a new cookie for www.website.com... | [
0.5382585525512695,
0.15592129528522491,
0.5127970576286316,
0.033770736306905746,
0.11491695046424866,
-0.04593204706907272,
0.32401904463768005,
0.30422523617744446,
-0.5392954349517822,
-1.100913405418396,
0.4387226998806,
0.3952225148677826,
-0.35245823860168457,
0.42596933245658875,
... | |
the same number of periods as the domain it's on. A cookie from www.example.com will have the domain, "www.example.com" or "\*.example.com", where as a cookie from "example.com" will have the domain "example.com". So the browser's thinking "example.com isn't/may not be the same as www.example.com, better get a new cook... | [
0.4429493546485901,
0.04127112030982971,
0.2909824848175049,
0.10877575725317001,
-0.07517173141241074,
-0.06562524288892746,
0.4740525782108307,
0.37786421179771423,
-0.694624125957489,
-0.6620616316795349,
0.06774143129587173,
0.3547695577144623,
-0.26398965716362,
0.3746863305568695,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.