text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
method similar to one of the methods I was having an issue with. I right-clicked on the classname, and click "Create Unit Tests...". It offered to create a new Test project for me, I accepted the defaults and clicked okay. It generated the following file:
```
using EntServ.BusinessObjects;
using Microsoft.VisualStudio... | [
0.4502069056034088,
-0.1379164308309555,
0.16839584708213806,
0.20242857933044434,
-0.12540647387504578,
0.11826524883508682,
0.05883912742137909,
-0.38609832525253296,
0.10218289494514465,
-0.7140731811523438,
0.28925126791000366,
0.32844075560569763,
-0.13151676952838898,
0.4022733867168... | |
private TestContext testContextInstance;
/// <summary>
///Gets or sets the test context which provides
///information about and functionality for the current test run.
///</summary>
public TestContext TestContext
{
get
{ | [
0.25635024905204773,
-0.11680779606103897,
-0.05953477695584297,
0.40354540944099426,
0.1942119002342224,
-0.31545373797416687,
0.26205694675445557,
0.12440212070941925,
0.4028246998786926,
-0.672869086265564,
-0.5213390588760376,
0.6421455144882202,
-0.2935437560081482,
-0.113156676292419... | |
return testContextInstance;
}
set
{
testContextInstance = value;
}
}
#region Additional test attributes | [
-0.19470134377479553,
-0.3841056823730469,
0.32175296545028687,
0.29773709177970886,
0.13873597979545593,
-0.09467371553182602,
0.20242570340633392,
-0.18316660821437836,
0.29210159182548523,
-0.9590378403663635,
-0.27187061309814453,
0.48498016595840454,
0.2169187217950821,
0.152490288019... | |
//
//You can use the following additional attributes as you write your tests:
//
//Use ClassInitialize to run code before running the first test in the class
//[ClassInitialize()]
//public static void MyClassInitialize(TestContext testContext)
//{
//}
// | [
0.2820630371570587,
-0.2585642635822296,
-0.02103765308856964,
0.2798693776130676,
0.11160378903150558,
-0.03893689438700676,
0.5210055708885193,
0.1660890281200409,
0.1275859773159027,
-0.7252770066261292,
-0.006602988578379154,
0.543574869632721,
-0.034209176898002625,
0.2732546925544739... | |
//Use ClassCleanup to run code after all tests in a class have run
//[ClassCleanup()]
//public static void MyClassCleanup()
//{
//}
//
//Use TestInitialize to run code before running each test
//[TestInitialize()]
//public void MyTestInitialize() | [
0.34331014752388,
-0.23497188091278076,
0.07639290392398834,
0.037086836993694305,
0.11304326355457306,
0.04008502513170242,
0.4387039542198181,
-0.044071752578020096,
0.20419466495513916,
-0.6374765634536743,
-0.2600536048412323,
0.5929766893386841,
-0.09246356785297394,
0.136556535959243... | |
//{
//}
//
//Use TestCleanup to run code after each test has run
//[TestCleanup()]
//public void MyTestCleanup()
//{
//}
//
#endregion
/// <summary> | [
0.44854116439819336,
-0.14894317090511322,
0.24067562818527222,
0.05361144244670868,
0.23023706674575806,
-0.20149320363998413,
0.25882720947265625,
0.028899291530251503,
0.40764951705932617,
-0.7636678814888,
-0.17364193499088287,
0.3345929980278015,
-0.16510231792926788,
0.00513422908261... | |
///A test for Login
///</summary>
// TODO: Ensure that the UrlToTest attribute specifies a URL to an ASP.NET page (for example,
// http://.../Default.aspx). This is necessary for the unit test to be executed on the web server,
// whether you are testing a page, web service, or a WCF serv... | [
0.48880478739738464,
-0.1660650074481964,
0.19039586186408997,
0.34274259209632874,
0.062175482511520386,
-0.2855750322341919,
0.29252177476882935,
-0.3420107960700989,
0.1428215056657791,
-0.6452997326850891,
-0.2599673569202423,
0.28083354234695435,
0.2552851736545563,
0.0307059120386838... | |
[AspNetDevelopmentServerHost("%PathToWebRoot%\\EntServ2-ASP.NET\\trunk\\WWW", "/WWW")]
[UrlToTest("http://localhost/WWW")]
public void LoginTest()
{
string username = string.Empty; // TODO: Initialize to an appropriate value
string password = string.Empty; // TODO: Initia... | [
-0.3495826721191406,
-0.4721141755580902,
0.2934427261352539,
0.13838978111743927,
0.39715883135795593,
-0.07274370640516281,
0.532687246799469,
-0.0651489868760109,
-0.02702338621020317,
-0.674624502658844,
-0.4675962030887604,
0.5895698070526123,
-0.1864936649799347,
0.024223215878009796... | |
EntServSession actual = EntServSession_Accessor.Login(username, password);
Assert.AreEqual(expected, actual);
Assert.Inconclusive("Verify the correctness of this test method.");
}
}
}
```
I tried running the test and it tries to compile and I get the build error:
```
Error 1 ... | [
0.07752121984958649,
0.38903728127479553,
0.2921340763568878,
0.1604921817779541,
0.04431351274251938,
0.08095946162939072,
0.48782169818878174,
-0.3515799343585968,
-0.1931363344192505,
-0.6503080129623413,
-0.1979418247938156,
0.4321417212486267,
-0.04516572877764702,
0.04447841644287109... | |
the App\_code.dll in the test project and I no longer get a build error. I instead get the following exception error. I put break points on every line of the class, and the debugger does not stop on any line .
```
Error Message
Test method EntServObjectTests.EntServSessionTest.LoginTest threw exception: System.Invali... | [
-0.02170354686677456,
0.5363678336143494,
0.37577661871910095,
-0.17556868493556976,
0.061558790504932404,
0.2682218849658966,
0.8129540085792542,
-0.1521032601594925,
-0.37123462557792664,
-0.6765851378440857,
-0.41700688004493713,
0.5478643178939819,
-0.5751843452453613,
0.08527676016092... | |
sure it will have something to do with assembly versions being different when you are publishing them??
I don't usually do this and you can vote me down for bad advice, but can I recommend that you convert your asp.net website to a web application? (either this or move the offending code to a class library). I know th... | [
0.7080707550048828,
0.019214436411857605,
-0.052998609840869904,
0.3578919470310211,
-0.10588479787111282,
-0.26149946451187134,
0.30062931776046753,
0.2166668027639389,
-0.03189658746123314,
-0.5313303470611572,
0.23230022192001343,
0.5146791338920593,
-0.013000283390283585,
-0.1394674777... | |
have heard of them or can google them.
I am sure that this will be a much quicker solution to your problem... and after all who really wants to publish their site each time they run their unit-tests? | [
0.7429141402244568,
0.39204782247543335,
-0.017435681074857712,
0.25716179609298706,
0.12726737558841705,
-0.4164770841598511,
0.36156007647514343,
0.40022337436676025,
-0.16185052692890167,
-0.21728558838367462,
0.17270736396312714,
0.21896377205848694,
0.2168569564819336,
0.0801938250660... | |
Is there any advantage to writing a PHP conditional like this:
```
if ($variable != NULL) {
```
versus
```
if (!empty($variable)) {
```
versus
```
if ($variable) {
```
Aren't they all same thing? It seems like the last is always the simplest if you are just trying to tell whether the variable exists or not. Th... | [
0.22648127377033234,
-0.09850407391786575,
-0.035750359296798706,
-0.09802323579788208,
-0.3868860900402069,
-0.24414466321468353,
0.5405885577201843,
-0.062290385365486145,
0.09378521144390106,
-0.40308526158332825,
-0.02324497699737549,
0.6923488974571228,
-0.2799316346645355,
-0.3938598... | |
(!empty($variable)) {
```
Generally, this checks whether `$variable` as a string (`(string) $variable`) has a `strlen` of 0. However `true` will make it return `false`, as will integers that aren't 0 and empty arrays. For some reason (which I believe to be wrong) `$variable = '0';` will return `true`.
```
if ($varia... | [
0.2383933663368225,
0.12243986129760742,
0.0789259746670723,
-0.2405334711074829,
-0.11484570056200027,
-0.351999431848526,
0.4257166087627411,
-0.36030691862106323,
-0.10882464051246643,
-0.08417902141809464,
-0.10335016250610352,
0.7882106900215149,
-0.2809065580368042,
0.141095966100692... | |
page](http://de3.php.net/manual/en/language.types.type-juggling.php).
(PHP devs: this is mainly by memory, if I'm wrong here please correct me!) | [
-0.009653359651565552,
0.37573352456092834,
0.08541863411664963,
0.041937727481126785,
0.06451192498207092,
-0.08505662530660629,
0.6490181088447571,
-0.11404862999916077,
-0.6022970080375671,
-0.32579460740089417,
-0.08927558362483978,
0.17535117268562317,
-0.2417437732219696,
-0.00271980... | |
When I have some function of type like
```
f :: (Ord a) => a -> a -> Bool
f a b = a > b
```
I should like make function which wrap this function with not.
e.g. make function like this
```
g :: (Ord a) => a -> a -> Bool
g a b = not $ f a b
```
I can make combinator like
```
n f = (\a -> \b -> not $ f a b)
```
... | [
-0.24245986342430115,
-0.09489811956882477,
0.12468375265598297,
-0.11295361071825027,
-0.35374850034713745,
-0.0691731795668602,
0.3709200620651245,
-0.1833425611257553,
-0.0034844879992306232,
-0.5475031733512878,
-0.30290260910987854,
0.49116724729537964,
-0.34034958481788635,
0.1547429... | |
f
n f :: (Ord t) => t -> t -> Bool
*Main> let g = n f
g :: () -> () -> Bool
```
What am I doing wrong?
And bonus question how I can do this for function with more and lest parameters e.g.
```
t -> Bool
t -> t1 -> Bool
t -> t1 -> t2 -> Bool
t -> t1 -> t2 -> t3 -> Bool
```
Unless you want to go hacking around with t... | [
-0.1138187125325203,
0.0630640909075737,
0.1681061089038849,
-0.11452159285545349,
-0.3735126256942749,
0.05360686406493187,
0.24032452702522278,
-0.18665529787540436,
-0.09839314967393875,
-0.5546094179153442,
0.1187267154455185,
0.7334024310112,
-0.42036372423171997,
0.07459516823291779,... | |
Elliott's *semantic editor combinators*. A semantic editor combinator is a function with a type like:
```
(a -> b) -> F(a) -> F(b)
```
Where `F(x)` is some expression involving `x`. There are also "contravariant" editor combinators which take a `(b -> a)` instead. Intuitively, an editor combinator selects a part of ... | [
-0.24010112881660461,
0.00937983114272356,
0.22846268117427826,
0.36037585139274597,
-0.2861517071723938,
0.2559608519077301,
0.2268853485584259,
-0.2625483274459839,
0.2504512667655945,
-0.31053832173347473,
-0.2589028775691986,
0.3251456916332245,
-0.6599360108375549,
0.22662140429019928... | |
to apply `not` to. So to apply `not` to the result of the result of a function `f`, you write:
```
(result.result) not f
```
This beautifully generalizes. Here are a few more combinators:
```
argument = flip (.) -- contravariant
first f (a,b) = (f a, b)
second f (a,b) = (a, f b)
left f (Left x) = Left (f x)
l... | [
-0.07233984023332596,
0.19686749577522278,
0.30653801560401917,
-0.18531379103660583,
-0.1940058469772339,
-0.17811362445354462,
0.27502113580703735,
-0.45075294375419617,
0.12053942680358887,
-0.3535241484642029,
-0.4245768189430237,
0.6510457992553711,
-0.5017616748809814,
0.141905128955... | |
you've gotten to Functors yet, you'll notice that `fmap` is an editor combinator. In fact, the above can be spelled:
```
(fmap.left.fmap.fmap) not x
```
But I think it's clearer to use the expanded names.
Enjoy. | [
-0.13705980777740479,
0.2582646310329437,
0.6008098125457764,
0.04936741292476654,
-0.052422355860471725,
-0.5178490281105042,
-0.11135542392730713,
-0.028503982350230217,
-0.3350684344768524,
-0.2994193732738495,
-0.4787387251853943,
0.9476915597915649,
-0.29842886328697205,
-0.2661916613... | |
I want to find a way to produce drop caps (large initial letters several lines high) in pdfLaTeX. I know that there is a `dropping` package which works well when used with `latex` + `dvips`. However, when used with `pdflatex` the result looks ugly.
My source file is:
```
\documentclass[12pt]{article}
% for pdflatex ... | [
-0.25791803002357483,
0.19283902645111084,
0.6099595427513123,
-0.0689738541841507,
-0.24730218946933746,
0.19539688527584076,
0.05634577199816704,
-0.0927499458193779,
0.007504040841013193,
-0.4416152238845825,
-0.05715769901871681,
0.25548529624938965,
-0.2047044336795807,
-0.23743087053... | |
the left and top margins of the paragraph flush.
In~modern browsers, this can be done with a combination of HTML and CSS
by~using the float: left; setting.
\end{document}
```
When I compile it as
```
latex drop.tex && dvips -T 12cm,8cm drop.dvi
```
the result is OK:
[ always start general variable names with a lower-case letter, but class variables/objects with an upper-case letter to distinguish them. In the same way we start general file names with a lower case letter, but files containing Classes with an upper case letter.
E.g.:
```php... | [
0.08923307061195374,
0.04083288088440895,
0.3339040279388428,
-0.07881461828947067,
-0.3219502866268158,
-0.12283104658126831,
0.11342617124319077,
-0.1520698517560959,
-0.2507924735546112,
-0.3081005811691284,
-0.1459202915430069,
0.2524365782737732,
-0.38216179609298706,
0.04206905141472... | |
lower case as I've read in other places?
Generally, all variables will start with lower case:
```
int count = 32;
double conversionFactor = 1.5d;
```
Some people like to put static constants in all case:
```
public static final double KILOGRAM_TO_POUND = 2.20462262;
```
Things get more annoying when you deal with... | [
-0.14318907260894775,
0.21327875554561615,
0.46275436878204346,
-0.09406008571386337,
-0.6330363154411316,
0.22899837791919708,
0.19766415655612946,
0.07999921590089798,
-0.20876555144786835,
-0.41430118680000305,
-0.24299012124538422,
0.26765742897987366,
-0.33807042241096497,
-0.05558930... | |
I lost the source code from one project I did on the company I'm working for and haven't been able to find a Visual Basic 6 decompiler; does that even exists?
I only have the EXE that I've rescued from a user's machine.
For the final, compiled code of your application, the short answer is “no”. Different tools are abl... | [
0.5398184657096863,
0.225312739610672,
0.3173878788948059,
0.21678435802459717,
0.27598926424980164,
0.076769158244133,
0.34669557213783264,
-0.011566109955310822,
-0.34139284491539,
-0.4378926753997803,
-0.1665426790714264,
0.5277884602546692,
-0.12495208531618118,
0.3441390097141266,
0... | |
for other high-level languages either. | [
0.23943284153938293,
-0.06117582321166992,
-0.04409516975283623,
0.11416924744844437,
0.101971335709095,
-0.03718129172921181,
0.31828540563583374,
0.6875289678573608,
-0.34974783658981323,
-0.1642611026763916,
-0.688775360584259,
0.5907331705093384,
0.06112157925963402,
-0.554611027240753... | |
I need to filter result sets from sql server based on selections from a multi-select list box. I've been through the idea of doing an instring to determine if the row value exists in the selected filter values, but that's prone to partial matches (e.g. Car matches Carpet).
I also went through splitting the string int... | [
0.510724663734436,
0.05279083549976349,
0.07694802433252335,
0.033810511231422424,
-0.012565992772579193,
-0.2783110737800598,
-0.14879971742630005,
-0.27813470363616943,
-0.1696477234363556,
-0.6112498044967651,
0.2983400225639343,
0.3979591727256775,
-0.30399298667907715,
0.2300754934549... | |
commonly utilized approach to solving this problem.
I solved this one by writing a table-valued function (we're using 2005) which takes a delimited string and returns a table. You can then join to that or use WHERE EXISTS or WHERE x IN. We haven't done full stress testing yet, but with limited use and reasonably small ... | [
-0.21233682334423065,
-0.1320590078830719,
-0.014713051728904247,
0.07585164159536362,
-0.30744531750679016,
-0.13884437084197998,
0.10295123606920242,
-0.0975101962685585,
-0.19691529870033264,
-0.6488838791847229,
0.21568894386291504,
0.6188657879829407,
-0.34296008944511414,
-0.13259853... | |
LIKE with the delimiters to make sure that partial matches are ignore, but you can't use indexes with that, so performance will be poor for any large table. For example:
```
SELECT
my_column
FROM
My_Table
WHERE
@my_string LIKE '%|' + my_column + '|%'
```
.
```
/*
Name: GetTableFromStringLis... | [
-0.17173993587493896,
-0.18874885141849518,
0.512407660484314,
0.037043601274490356,
-0.11061093211174011,
0.08467984944581985,
0.08405575901269913,
-0.3062935471534729,
-0.005847245920449495,
-0.5935395359992981,
0.06754618883132935,
0.5655472874641418,
-0.3356132507324219,
0.212846174836... | |
strings
@Delimiter - The delimiter used in the delimited list
History:
Date Name Comments
---------- ------------- ----------------------------------------------------
2008-12-03 T. Hummel Initial Creation
*/
CREATE FUNCTION dbo.GetTableFromStringList
(
@StringLi... | [
-0.235161691904068,
-0.08656489849090576,
0.5601340532302856,
-0.020517004653811455,
-0.31494998931884766,
0.20111295580863953,
0.03674190863966942,
-0.3513510823249817,
0.01715562865138054,
-0.324208527803421,
-0.275025337934494,
0.2804620862007141,
-0.1661093384027481,
0.5533075928688049... | |
@string VARCHAR(1000),
@position SMALLINT
SET @StringList = LTRIM(RTRIM(@StringList)) + @Delimiter
SET @position = CHARINDEX(@Delimiter, @StringList)
WHILE (@position > 0)
BEGIN
SET @string = LTRIM(RTRIM(LEFT(@StringList, @position - 1)))
IF (@string <> '')
BEGIN... | [
-0.17600107192993164,
-0.354841947555542,
0.741649866104126,
-0.5775473713874817,
0.05223596841096878,
0.21875877678394318,
0.17405380308628082,
-0.8052350282669067,
0.08828340470790863,
-0.31129440665245056,
-0.07991345226764679,
0.6090329885482788,
-0.20568975806236267,
-0.21577699482440... | |
VALUES (@string)
END
SET @StringList = RIGHT(@StringList, LEN(@StringList) - @position)
SET @position = CHARINDEX(@Delimiter, @StringList, 1)
END
RETURN
END
``` | [
-0.09662618488073349,
0.09561820328235626,
0.43939563632011414,
-0.303984671831131,
0.10334985703229904,
-0.061267901211977005,
-0.0396060012280941,
-0.4969739317893982,
0.11966397613286972,
0.0482802651822567,
0.012483282946050167,
0.5113624334335327,
-0.28745365142822266,
0.1996659636497... | |
We are building an AbleCommerce 7 web store and trying to integrate it with an existing point-of-sale system. The product inventory will be shared between a phyical store and a web store so we will need to periodically update quantity on hand for each product to keep the POS and the web store as close to in synch as po... | [
0.3093801438808441,
-0.006632559467107058,
0.5944722890853882,
0.2969312369823456,
0.3157046437263489,
0.13627830147743225,
-0.024787480011582375,
0.12296272814273834,
-0.15223392844200134,
-0.625414252281189,
-0.025167621672153473,
0.5312321186065674,
0.1429465264081955,
-0.18124975264072... | |
you have any advice on an approach?
Here are the approaches that we are currently considering:
1. Grab exported product data from the POS system and determine which products need to be updated. Make calls to a custom-built web service residing on the server with AbleCommerce to call AbleCommerce APIs and update the w... | [
0.5132052898406982,
-0.10568360239267349,
0.28451454639434814,
0.22820639610290527,
0.10470448434352875,
-0.07059210538864136,
-0.13070136308670044,
-0.04555597901344299,
-0.21249184012413025,
-0.757451593875885,
0.2527417242527008,
0.613610029220581,
-0.024171730503439903,
-0.211430221796... | |
a compiled Windows application. There is no command-line interface that we are aware of. The Data Port utility calls an ASHX handler on the server.
3. Take an approach similar to #1 above but attempt to use the Data Port ASHX handler to update the products instead of using our own custom web service. Currently there is... | [
0.5535870790481567,
0.25370970368385315,
-0.20032861828804016,
0.004201126750558615,
-0.3144802153110504,
-0.3542492091655731,
0.2654207944869995,
0.12681226432323456,
0.024437855929136276,
-0.6212188005447388,
-0.024526599794626236,
0.5401790738105774,
-0.4239465296268463,
-0.045315198600... | |
I don't think the developers should have any access to the Production environment, specially not with their own users.
As Øyvind Skaar said, if any access is required, it
should be granted to a different user account. | [
0.6479836106300354,
0.5076850056648254,
-0.5018491148948669,
-0.2478407472372055,
-0.08818870782852173,
0.09672598540782928,
0.050965629518032074,
0.13230517506599426,
-0.34169140458106995,
0.2069217562675476,
-0.014575229957699776,
0.44973960518836975,
0.13930153846740723,
-0.141668632626... | |
Not sure this is a programming question, but we use LaTeX for all our API documentation and user documentation, so I hope it will go through.
Can someone please explain what are the relative merits of using `pdflatex` as opposed to the "classic" technique of
```
latex foo
dvips -Ppdf foo
ps2pdf foo.ps
```
From time... | [
0.25079602003097534,
-0.007757606450468302,
0.5862796902656555,
0.263377845287323,
-0.27046701312065125,
-0.3360457122325897,
0.09117437154054642,
-0.05837031453847885,
0.03788790479302406,
-0.8885898590087891,
-0.2055092304944992,
0.6903897523880005,
-0.2343246191740036,
0.012490449473261... | |
by using something on the order of
```
\usepackage[ps2pdf,colorlinks=true]{hyperref}
```
so it's not necessary to use `pdflatex` to get good PDF.
So
1. What are the advantages of `pdflatex` that I don't know about?
2. What are the disadvantages of the old tools that I've overlooked?
My favorite pdflatex feature is... | [
0.032734546810388565,
-0.02120560221374035,
0.6947521567344666,
0.17483049631118774,
-0.17508536577224731,
-0.31231653690338135,
-0.22328004240989685,
-0.14309567213058472,
0.01361819263547659,
-0.9486786723136902,
0.07570935040712357,
0.814995527267456,
-0.21337518095970154,
-0.1497743427... | |
fonts, the procedures are slightly different depending on what fonts that driver supports. (Hint: use [XeTeX](http://scripts.sil.org/xetex) to instantly enable OpenType fonts.) | [
0.24924997985363007,
0.15918587148189545,
0.3052719831466675,
0.15625149011611938,
-0.29706472158432007,
-0.05944207310676575,
0.20171834528446198,
0.18026858568191528,
-0.14864161610603333,
-0.7712416052818298,
-0.43363749980926514,
0.33195388317108154,
-0.38732969760894775,
-0.0092187682... | |
I was trying to add Ant libraries to a project in eclipse, and I used the ones that were part of eclipse's plugins folder. When I tried to associate them with Javadocs, I couldn't locate them in the plugin folder. I searched for them online, and I found [this page](http://ant.apache.org/manual/api/index.html), in which... | [
0.4371442496776581,
0.11358873546123505,
0.10567415505647659,
0.020253904163837433,
-0.20405682921409607,
-0.03149167820811272,
-0.11886866390705109,
0.17334474623203278,
-0.15133219957351685,
-0.8027566075325012,
-0.001659631496295333,
0.5130310654640198,
-0.3533329367637634,
-0.031797491... | |
PDF, and really produces stunning results with no effort on my part. Apart from that, the only caveats I run into are image formats:
* pdflatex supports PDF, PNG, and JPG images.
* the postscript drivers support (at least) EPS.
Also, if you want to install fonts, the procedures are slightly different depending on wha... | [
0.176064595580101,
0.04686271771788597,
0.6674900054931641,
0.2746564745903015,
-0.3335575759410858,
-0.3257932960987091,
-0.04052101448178291,
0.06856909394264221,
-0.11993895471096039,
-0.8441851139068604,
-0.2572184205055237,
0.6767603754997253,
-0.1698153167963028,
-0.22242268919944763... | |
Most things I've wanted to do in LaTeX have either been straight-forward, or easily found on the web, but this one has been stumping me.
I have a macro 'solution': to apply some common formatting to each solution:
```
\newcommand\solution[1]{{\\ \\* \bf Solution.}#1\qed \newpage}
```
Which has worked nicely so far,... | [
-0.04753182455897331,
0.24707216024398804,
0.4193820059299469,
-0.13244636356830597,
0.2815914452075958,
0.04107753187417984,
0.13170388340950012,
-0.059010688215494156,
-0.04296044632792473,
-0.7672058343887329,
-0.11641746759414673,
0.5726976990699768,
-0.24923305213451385,
-0.0401511415... | |
LaTeX", \verbatim can't be used this way. I assume there is a better way to do what I'm trying to do?
You could try changing `\newcommand` to `\newenvironment` and then use something like
```
\begin{solution}
\begin{verbatim}
[ascii art here]
\end{verbatim}
\end{solution}
``` | [
-0.12632641196250916,
-0.16688433289527893,
0.45953938364982605,
0.07357005029916763,
0.14291897416114807,
0.06707200407981873,
0.04297919571399689,
0.4355197548866272,
-0.1918666809797287,
-0.700337290763855,
-0.3996971845626831,
0.5124126672744751,
-0.4454369843006134,
0.2785992324352264... | |
In my output, I get
@{ActiveSyncEnabled=False}
how do I parse this so that it just says "False"?
the output is coming from this line of code:
```
$pda = get-casmailbox -Anr $user.displayname | select activesyncenabled
```
I don't have access to an exchange box right now, but the information should be there now ... | [
0.048453133553266525,
0.2720768451690674,
0.48587220907211304,
-0.3128468990325928,
0.18518070876598358,
-0.05708916857838631,
0.4323883056640625,
-0.13436003029346466,
-0.10091330856084824,
-0.7269432544708252,
-0.05852669104933739,
0.5670197606086731,
-0.4096488654613495,
0.0544269531965... | |
What is the latest version of gcc that still uses libstdc++.so.5 (as opposed to libstdc++.so.6)?
After searching all over for the answer, and failing to find it. I compiled several different versions and the last version to use libstdc++.so.5 is version 3.3 (more specifically 3.3.6). Version 3.4.X uses libstdc++.so.6. | [
-0.000834625621791929,
0.06476569920778275,
0.8947468996047974,
-0.12585130333900452,
-0.28761428594589233,
-0.19308872520923615,
0.16753581166267395,
-0.10213267058134079,
-0.10954346507787704,
-0.21083080768585205,
0.0024137164000421762,
0.47247135639190674,
-0.37267550826072693,
0.33958... | |
I have a stored procedure that returns two int Values. The first can not be null but the second can actually return a null value. When I try to execute my stored procedure using LINQ to SQL it fails with the statement:
> The null value cannot be assigned to a member with type System.Int32 which is a non-nullable value... | [
0.18575416505336761,
0.1327136904001236,
0.09633613377809525,
-0.17461749911308289,
-0.22137419879436493,
0.1243789941072464,
0.5054141879081726,
-0.2102961391210556,
0.11347506195306778,
-0.5047709941864014,
0.20120058953762054,
0.4628905951976776,
-0.42287325859069824,
0.2345218658447265... | |
my LINQ/C# code to account for the null (which would be preferable) or if I will have to update my Stored Procedure in some fashion.
You need to declare the variable to be nullable. In the designer, click the property in your model that needs to be nullable, and then in the **Properties** window, set the "Nullable" pro... | [
0.3472895920276642,
0.23609215021133423,
0.3340494930744171,
0.014242161996662617,
0.10593383759260178,
-0.19098281860351562,
0.24620524048805237,
-0.16969148814678192,
0.0006852368242107332,
-0.5075486302375793,
-0.14926652610301971,
0.6522536873817444,
-0.2647877335548401,
0.195342630147... | |
How do I do sorting when generating anonymous types in linq to sql?
Ex:
```
from e in linq0
order by User descending /* ??? */
select new
{
Id = e.Id,
CommentText = e.CommentText,
UserId = e.UserId,
User = (e.User.FirstName + " " + e.User.LastName).Trim()),
Date = string.Format("{0:d}", e.Date)
}
```
... | [
-0.24402840435504913,
0.04802185669541359,
0.5581494569778442,
-0.15837590396404266,
-0.054579704999923706,
0.1636568158864975,
-0.08497016131877899,
-0.5995516777038574,
-0.02977769635617733,
-0.5933071374893188,
-0.1513989418745041,
0.3483608365058899,
-0.18958911299705505,
0.06156300380... | |
Id = e.Id,
CommentText = e.CommentText,
UserId = e.UserId,
User = (e.User.FirstName + " " + e.User.LastName).Trim()),
Date = e.Date.ToString("d")
} | [
-0.11859136074781418,
-0.3440546691417694,
0.3554397523403168,
-0.20998640358448029,
0.3307059705257416,
0.1889091581106186,
-0.1468270719051361,
-0.21973933279514313,
0.3081790804862976,
-0.5963799953460693,
-0.3792620599269867,
0.48449671268463135,
-0.009233116172254086,
0.21832093596458... | |
into anon
orderby anon.User descending
select anon;
```
That way the string concatenation only has to be done once.
I don't know what that would do in LINQ to SQL though... | [
-0.3055430054664612,
0.07836951315402985,
0.4236484169960022,
-0.3233492970466614,
-0.15971454977989197,
0.09393028914928436,
-0.06544703245162964,
-0.03417404741048813,
0.14582712948322296,
-0.3648263216018677,
-0.2121249884366989,
0.3869513273239136,
-0.12121906131505966,
0.1919632852077... | |
I've got alot of projects and I don't have a master solution with everything in it. The reason I want one is for refactoring.
So I was wondering if anybody knew an automatic way to build a solution file. Manually adding all the projects just isn't feasible.
And I have now updated my utility (mentioned above) to suppor... | [
0.1410941630601883,
0.035714659839868546,
0.43320491909980774,
-0.030204912647604942,
0.18205244839191437,
-0.02645319700241089,
0.33102115988731384,
-0.1728421300649643,
-0.4787803888320923,
-0.5768793225288391,
-0.1394435465335846,
0.4681760370731354,
-0.15609543025493622,
0.053103785961... | |
Am I the only person annoyed by this? I don't even know what proc I'm clicking on if the file names have the same prefix, or are longer than the context window width.
I find the tab dropdown, as well as the tab names themselves, annoying. You can't widen either of them.
It helps to save each script to a file, even if ... | [
0.262588232755661,
0.18998746573925018,
0.37184226512908936,
-0.14075015485286713,
-0.30784276127815247,
-0.24009744822978973,
0.45487162470817566,
0.2948318421840668,
-0.44735053181648254,
-0.6247200965881348,
-0.011898054741322994,
0.40099483728408813,
-0.11964589357376099,
0.18383094668... | |
just SSMS Express 2008), you can change certain property settings so that only certain things are shown in each tab: the current server, the current database, the filename, etc. If you only work in a single database, for instance, you could switch off everything except the filename.
But unless any of these suggestions... | [
0.1411796510219574,
-0.14786997437477112,
0.5167543292045593,
0.3528110682964325,
0.021496057510375977,
-0.572372317314148,
0.33706238865852356,
0.16785265505313873,
-0.6103199124336243,
-0.5473814010620117,
-0.0782058835029602,
0.4928916394710541,
-0.49969643354415894,
0.2016359269618988,... | |
My firm just got its first large-scale development project inquiry and I would like to use an Agile process. The client has a vision for the application but openly admits to having very few requirements and recognizes that we will have to charge by the hour. Because of this, I've all but sold him on an Agile approach.
... | [
0.5899737477302551,
0.1902710199356079,
-0.0028553016018122435,
0.0663822814822197,
0.13534021377563477,
0.38493770360946655,
-0.0911870002746582,
-0.06109872832894325,
-0.2755236327648163,
-0.552315354347229,
0.370012104511261,
0.6238601803779602,
0.3137921094894409,
0.04963997006416321,
... | |
head and in the books doesn't.
I've read there are a number of ways to factor in pricing in the contract, but almost all of them (save one) incorporate an up-front number. This just seems to violate the entire set of principles of Agile development.
So my question is, if you're an Agile shop, how do you manage to cir... | [
0.7500801682472229,
0.02699255757033825,
0.5202812552452087,
0.13469581305980682,
0.2588863968849182,
-0.011016442440450191,
0.09460756927728653,
-0.1969434916973114,
-0.16394199430942535,
-0.4348616898059845,
0.04570232331752777,
0.984786868095398,
0.7135710716247559,
-0.0767994299530983,... | |
multiplication for them. team \* rate \* 6 months.
If they think they'll be mostly done by June, but there will be more work after that, then you're possibly looking at 9 months of work. Again, you're just doing a multiply that they could do for themselves. team \* rate \* 9 months.
If they think that you'll be their... | [
0.3211711347103119,
-0.042528923600912094,
0.38238415122032166,
-0.1383485645055771,
0.06507482379674911,
0.44900089502334595,
-0.18420521914958954,
0.06508434563875198,
-0.7659385204315186,
-0.410273939371109,
0.006266279611736536,
0.44238534569740295,
0.1300225555896759,
-0.0606661476194... | |
as separate piece of work based on the things you *will* get done in that release. Since it's their priority scheme, they control what you build, they control the budget, phase by phase.
Often your client really wants to know how much a particular feature set will cost. Instead of ask that, they ask about overall bud... | [
0.9753004908561707,
-0.06615754961967468,
0.03099403716623783,
0.42012810707092285,
0.13598088920116425,
0.1125790998339653,
-0.04216686263680458,
-0.10189873725175858,
-0.3588646948337555,
-0.38151872158050537,
-0.38779380917549133,
0.7092061638832092,
0.18390241265296936,
0.1218670830130... | |
they can stop spending money at any time and have something useful.
Done is a relative term. Some projects are "done" because there's no more money. Others are done because there's no more time. Rarely (at least in software development) is a project ever done because we ran out of things to do. | [
0.8428356051445007,
0.0515042245388031,
-0.1281627118587494,
0.518975019454956,
0.47091609239578247,
-0.28473302721977234,
0.41573742032051086,
0.38803523778915405,
-0.5332992672920227,
-0.4482135772705078,
-0.466552197933197,
0.35647863149642944,
0.10877864807844162,
0.23270797729492188,
... | |
I've created an MSI that installs our application. It installs fine if you run it locally on a machine with Windows XP SP2 or SP3. If you run it through SMS to a machine that has Windows XP SP2 it installs fine. But, if you try to run it through SMS to a machine that has Windows XP SP3 it seems to stall and take hours.... | [
0.3518548607826233,
-0.002034659730270505,
0.42594873905181885,
0.1670687049627304,
-0.06309404224157333,
0.07996243983507156,
0.5666795372962952,
0.11100467294454575,
-0.33920860290527344,
-0.6622840762138367,
0.17490707337856293,
0.5668357610702515,
-0.3036465346813202,
-0.24276125431060... | |
think they found the problem. We had asked them to do a reboot before the install. They said that on SP3, some services weren't being started before the installer was running. They think this was causing the problem. They're going to try adding a delay after the reboot before the install starts.
Here's the fundamental ... | [
0.7030391693115234,
0.03945865109562874,
0.41333478689193726,
0.011618494987487793,
0.30224892497062683,
0.11870967596769333,
0.2549580931663513,
-0.2633562684059143,
-0.42619529366493225,
-0.566702663898468,
-0.09837204962968826,
0.9773632884025574,
0.5141469240188599,
-0.3658233880996704... | |
they'll be mostly done by June, but there will be more work after that, then you're possibly looking at 9 months of work. Again, you're just doing a multiply that they could do for themselves. team \* rate \* 9 months.
If they think that you'll be their development team for the foreseeable future, give them a price th... | [
0.6376254558563232,
0.018990712240338326,
0.3219323456287384,
0.0946090817451477,
0.2325776219367981,
0.17025592923164368,
-0.05460382625460625,
-0.01781727746129036,
-0.31054502725601196,
-0.49133655428886414,
-0.08424761891365051,
0.4751989245414734,
0.2939809560775757,
-0.01763345114886... | |
get done in that release. Since it's their priority scheme, they control what you build, they control the budget, phase by phase.
Often your client really wants to know how much a particular feature set will cost. Instead of ask that, they ask about overall budget (which is silly). Spend a lot of time on the first re... | [
1.0096714496612549,
-0.027337662875652313,
0.10390357673168182,
0.3963896632194519,
0.3341582119464874,
0.0008957309764809906,
0.0015047217020764947,
0.037208423018455505,
-0.3050197958946228,
-0.466261625289917,
-0.3760761022567749,
0.6757781505584717,
0.21014240384101868,
0.1265275478363... | |
useful.
Done is a relative term. Some projects are "done" because there's no more money. Others are done because there's no more time. Rarely (at least in software development) is a project ever done because we ran out of things to do. | [
0.7195536494255066,
-0.0017552741337567568,
-0.1248997375369072,
0.4330475330352783,
0.2585810124874115,
-0.14102593064308167,
0.24756498634815216,
0.26753780245780945,
-0.39100560545921326,
-0.5141566395759583,
-0.26755404472351074,
0.4186243414878845,
0.19218623638153076,
0.1446362733840... | |
Specifically, with a `SortedMap<Vector<String>, int>` I get "dimensions expected after this (`int`) token." Help!
No, this is not possible. Use `Integer` instead. Autoboxing takes care of the rest (i.e. for most purposes you can program as if you had actually used `int` because Java converts to and from `Integer` autom... | [
-0.19611480832099915,
-0.15712298452854156,
0.032037146389484406,
-0.2179141640663147,
-0.28015032410621643,
-0.14532899856567383,
0.4032216966152191,
-0.17840726673603058,
-0.28976163268089294,
-0.6625878214836121,
-0.2011592537164688,
0.5414668321609497,
-0.28825560212135315,
-0.27318093... | |
I read about using the CASE expression inside the WHERE clause here:
<http://scottelkin.com/sql/using-a-case-statement-in-a-sql-where-clause/>
I'm trying to use this to filter results from my select statement, based on a contract number which will be passed in by the user's application. My code currently throws an er... | [
0.16211950778961182,
-0.31173238158226013,
0.14573068916797638,
0.05372922867536545,
0.24615956842899323,
-0.32225731015205383,
0.15639512240886688,
-0.2058643251657486,
-0.1491328775882721,
-0.47619420289993286,
0.2686571478843689,
0.40434524416923523,
-0.45732617378234863,
-0.09963639080... | |
filtering on the CASE later. I'm focusing on getting the syntax down right now. I believe this should return all records for which the parameter matches the contract number stored in the table. Any help or advice would be greatly appreciated.
After reading your explanation, there's a better way to do this without `CASE... | [
-0.031525492668151855,
-0.20842547714710236,
0.3260136544704437,
0.09663882851600647,
0.01061871275305748,
-0.298096239566803,
0.10052421689033508,
-0.033302612602710724,
-0.39040353894233704,
-0.9760499000549316,
0.11030810326337814,
0.6314996480941772,
-0.41955509781837463,
0.02207352221... | |
For example:
```
using System;
using System.Web;
using System.Collections;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Web.Script.Serialization;
using System.Web.Script.Services;
using System.Web.Security;
using System.Data;
using System.IO;
using System.Net;
using System.Text;
using S... | [
0.2591995596885681,
0.24016113579273224,
0.12746353447437286,
-0.05535222962498665,
-0.06234818324446678,
-0.09782842546701431,
0.15617510676383972,
-0.07222974300384521,
-0.31152406334877014,
-0.7926597595214844,
-0.26279133558273315,
0.2606140375137329,
-0.28779757022857666,
0.4228527843... | |
then references to `SomeType` will need disambiguating. The extension methods work similarly where static classes in different namespaces contribute conflicting extension methods.
The VS2008 tools (including express) include options to remove unnecessary `using` statements, which is very useful for tidying the code. | [
0.051186397671699524,
0.014927566051483154,
0.00217446219176054,
-0.004945884458720684,
-0.13039138913154602,
-0.25976523756980896,
0.5550011396408081,
-0.18136849999427795,
-0.08806133270263672,
-0.44442641735076904,
-0.12208989262580872,
0.5188403129577637,
-0.49355199933052063,
0.045980... | |
Perhaps I am missing something, but I am just learning javascript.
My understanding of Single Origin Policy is that Google Analytics should not be able to send data back to Google.
How is it able to transmit send data to Google without violating the policy?
From what I can tell, a webpage includes the JavaScript file... | [
0.49960756301879883,
-0.031054116785526276,
0.1960267573595047,
0.10300261527299881,
-0.0016756076365709305,
-0.28839388489723206,
0.3159586191177368,
0.10751739144325256,
-0.4311354458332062,
-0.4764638841152191,
-0.10299036651849747,
0.34704431891441345,
-0.12753607332706451,
-0.00891266... | |
in your webpages, as they will have complete control over the page. | [
0.5151447057723999,
0.017394110560417175,
0.4406805634498596,
0.11996936053037643,
0.040065061300992966,
-0.42772045731544495,
0.12566199898719788,
0.3820154368877411,
-0.41251978278160095,
-0.8221407532691956,
-0.4791135787963867,
0.3525686264038086,
0.20752456784248352,
-0.06135818362236... | |
I am looking at globalizing an application that I have developed in asp.net mvc.
I am currently using resource files to store messages that I present to the user (i.e., when I save something to the database, and the user is shown the message "The whatever was correctly saved", that text is stored in a resource file so... | [
0.22844134271144867,
0.0761263370513916,
0.5128185749053955,
-0.14522485435009003,
-0.12632639706134796,
-0.04867858439683914,
0.059062182903289795,
0.6739720702171326,
-0.5473719239234924,
-0.8612499237060547,
0.27127882838249207,
0.4025098383426666,
-0.1360664665699005,
0.186770021915435... | |
best practice for localizing a view? I've taken a look here:
* <http://damieng.com/blog/2008/04/27/localizing-mvc-for-aspnet-views-and-master-pages>
The approach in that post seems like an interesting way to go, but I wonder how easy it will be to maintain separate views for every language.
NOTE: I have not done muc... | [
-0.002196709392592311,
-0.10532834380865097,
0.2968696355819702,
-0.35333117842674255,
-0.3286653459072113,
-0.05469895526766777,
0.43886056542396545,
0.3348265290260315,
-0.2906563878059387,
-0.6383599042892456,
0.05198381096124649,
0.2917017340660095,
-0.07930277287960052,
0.179561659693... | |
we decided that maintaining the whole view would give us more power, which would be required to make a release for Asian countries.
Hopefully it helps you. | [
0.8404518961906433,
-0.16355040669441223,
0.2852891981601715,
0.2502114474773407,
0.11879682540893555,
-0.3255385160446167,
0.358921617269516,
0.6120707392692566,
-0.3799685537815094,
0.07902473956346512,
0.1656339317560196,
0.3636820614337921,
0.16576255857944489,
-0.04468787461519241,
... | |
Well, my latest contract is forcing me into the antique world of .Net 1.1.
Since I have been using jQuery and Rails for quite a while AJAX like solutions to problem keep on popping into my head and I can't help writing them.
So my fairly straight forward problem is that I have 3 actions I need to perform on a recor... | [
0.206299290060997,
0.12483605742454529,
0.230496346950531,
0.0694878026843071,
-0.19686992466449738,
-0.16668441891670227,
0.1446584165096283,
0.03642385080456734,
-0.3960146903991699,
-0.782874584197998,
0.28816941380500793,
0.5173150897026062,
-0.16978229582309723,
-0.062028054147958755,... | |
acts as a controller for these three actions, giving it an anemic view and handling all rendering of return data using string concatenations. Is there a better pattern to use here? How did you hack ajax into ASP.Net 1.1?
I saw this post on [ajaxprojects](http://www.ajaxprojects.com/ajax/tutorialdetails.php?itemid=12)... | [
0.25597265362739563,
-0.44210848212242126,
0.18048407137393951,
0.2930510640144348,
-0.4444704055786133,
-0.18325060606002808,
0.14723797142505646,
-0.19543355703353882,
-0.3798249661922455,
-0.5488681793212891,
0.1430521160364151,
0.5557042956352234,
-0.36567261815071106,
-0.2026824653148... | |
of the extra overhead of the page objects. So you can basically create an Xml payload (or json or whatever you want) post it to the ashx page which has a single method which will inspect the request perform what you need and return the results you need. | [
0.42648079991340637,
-0.04224945977330208,
0.36483293771743774,
0.33614829182624817,
-0.2828544080257416,
-0.3182467222213745,
0.005991359241306782,
-0.02022075280547142,
-0.018466053530573845,
-0.5006266236305237,
-0.3274232745170593,
0.20711231231689453,
-0.28563112020492554,
-0.09547918... | |
I don't know if this is the right way to phrase the question or not. Here is a typically databinding example:
```
<UserControl x:Name="root">
<ListView ItemsSource="{Binding MyItemsSource, ElementName=root}" />
</UserControl>
```
But this is what I want to be able to do:
```
<UserControl DataContext="{Binding S... | [
-0.010900601744651794,
0.12709836661815643,
0.368282675743103,
-0.1446821093559265,
0.08752728998661041,
-0.25859159231185913,
0.1806236356496811,
-0.3267279863357544,
-0.10419116914272308,
-0.7369243502616882,
-0.10662561655044556,
0.39023613929748535,
-0.16314873099327087,
0.127091601490... | |
SelectedItem="{Binding DataContext, ElementName=root, Mode=OneWayToSource}">
</UserControl>
```
The trick is in the Mode=OneWayToSource setting. | [
-0.48252296447753906,
-0.6826192140579224,
0.48181432485580444,
-0.05896905064582825,
0.21357454359531403,
-0.244475856423378,
0.0007269978523254395,
-0.30179423093795776,
-0.03074464201927185,
-0.8387720584869385,
0.02679526060819626,
0.34826070070266724,
-0.256751149892807,
0.08167368918... | |
Is there a CRUD generator utility in Java like Scaffolding in Rails? Can be in any framework or even plain servlets. Must generate controllers + views in jsp, not just DAO code...
[Spring Roo](http://www.springsource.org/roo) seems to be exactly what you're looking for: CRUD code generation, spits out pure Java code th... | [
0.27160975337028503,
-0.420010507106781,
0.18281225860118866,
0.3367377519607544,
-0.2634104788303375,
-0.27334079146385193,
-0.2032429575920105,
-0.06133082136511803,
-0.3351213037967682,
-0.14550945162773132,
0.014910103753209114,
0.45593497157096863,
-0.20722055435180664,
-0.22101326286... | |
I am trying to create an ActiveRecord object via a JSON request. However the controller fails to set the variables passed in the parameters in the newly created object. As an example, a person object has two fields: firstname and lastname.
The JSON generated by the JSON.stringify function of the JSON.org library produ... | [
0.034417860209941864,
-0.31097671389579773,
0.32655999064445496,
-0.06866075098514557,
0.038305431604385376,
0.18060243129730225,
0.32068583369255066,
-0.020134370774030685,
0.19431030750274658,
-0.6477198004722595,
-0.44445765018463135,
0.3912849426269531,
-0.3717910945415497,
0.119731090... | |
of the model
being created.
The create action in the controller is:
```
def create
@person = Person.new(params[:person])
respond_to do |format|
if @person.save
flash[:notice] = 'Person was successfully created.'
format.html { redirect_to(@person) }
format.xml { render :xml => ... | [
-0.3820962905883789,
-0.6340494751930237,
0.5155108571052551,
0.302193284034729,
0.10654542595148087,
0.1798766553401947,
-0.02548440918326378,
-0.5152739882469177,
-0.2264573574066162,
-0.542071521282196,
-0.23913824558258057,
0.34298887848854065,
-0.12985150516033173,
0.20116734504699707... | |
else
format.html { render :action => "new" }
format.xml { render :xml => @person.errors, :status => :unprocessable_entity }
format.json { render :json => @person.errors, :status => :unprocessable_entity }
end
end
end
```
What would be the neatest way for the controller to process... | [
0.12533843517303467,
-0.2225206047296524,
0.286029189825058,
0.30063411593437195,
0.10726068168878555,
-0.20505265891551971,
0.1442890167236328,
-0.44929400086402893,
-0.24187667667865753,
-0.6390661597251892,
-0.1591830849647522,
0.4328165352344513,
-0.06040635332465172,
-0.14813621342182... | |
of all of the person parameters (rather than a nested-hash with "person" as the key) then you should just be able to do `@person = Person.new(params)`. | [
-0.08805764466524124,
-0.39912310242652893,
0.06269201636314392,
0.1449209749698639,
0.08096740394830704,
-0.00016807379142846912,
0.37318629026412964,
-0.21968917548656464,
-0.3053337633609772,
-0.37521636486053467,
-0.13571368157863617,
0.47951728105545044,
-0.06815178692340851,
0.283021... | |
The only SET parameter that I have found specific guidance for is SET TRANSACTION ISOLATION LEVEL:
> If you issue SET TRANSACTION ISOLATION
> LEVEL in a stored procedure or
> trigger, when the object returns
> control the isolation level is reset
> to the level in effect when the object
> was invoked. For example... | [
0.10476050525903702,
-0.15800802409648895,
0.43911534547805786,
0.031450364738702774,
-0.06159346550703049,
-0.1307349056005478,
0.06635281443595886,
-0.1682712286710739,
-0.4066673815250397,
-0.5279061794281006,
-0.011334994807839394,
0.46054720878601074,
-0.4418805241584778,
0.4561793208... | |
to the batch.
What about other SET parameters, like `SET XACT_ABORT` or `SET DEADLOCK_PRIORITY`? If you set those during a stored procedure (or a batch submitted from C#), will they go back to their previous values the next time the connection gets used?
By default (that is, unless you include "Connection Reset=false"... | [
0.3146372437477112,
-0.23022238910198212,
0.30535274744033813,
-0.10378465056419373,
0.1593056172132492,
-0.19563856720924377,
0.12203341722488403,
-0.002712826244533062,
-0.45762622356414795,
-0.32005611062049866,
-0.2263329029083252,
0.5871951580047607,
-0.3434532582759857,
0.26077729463... | |
How does one tell the XML parser to honor leading and trailing whitespace?
```
Dim xml: Set xml = CreateObject("MSXML2.DOMDocument")
xml.async = False
xml.loadxml "<xml>1 2</xml>"
wscript.echo len(xml.documentelement.text)
```
Above prints out 3.
```
Dim xml: Set xml = CreateObject("MSXML2.DOMDocument")
xml.async =... | [
0.19874154031276703,
-0.029486365616321564,
0.4370003938674927,
-0.21591348946094513,
-0.102315254509449,
-0.2050117701292038,
0.2579779624938965,
-0.9559752345085144,
-0.04818399250507355,
-0.21961349248886108,
-0.1557427942752838,
0.5037166476249695,
-0.3815842866897583,
-0.3390952348709... | |
data, but the xml file needs to be plain ascii, all entities are encoded -- meaning CDATA's unfortunately are not available.
As I commented, **all answers recommending the usage of the `xml:space="preserve"` are wrong**.
**The `xml:space` attribute can only be used to control the treatment of whitespace-only nodes**,... | [
-0.04418458789587021,
0.016251688823103905,
0.3218170404434204,
0.18210020661354065,
0.0748213529586792,
-0.23660039901733398,
0.11620628833770752,
-0.30747154355049133,
-0.09728901088237762,
-0.5483948588371277,
-0.09099218994379044,
0.43870070576667786,
-0.12255991250276566,
0.1973208636... | |
to add a reference to "Microsoft XML, v 3.0"):
```
Dim xml As MSXML2.DOMDocument
Private Sub Form_Load()
Set xml = CreateObject("MSXML2.DOMDocument")
xml.async = False
xml.loadxml "<xml> 2</xml>"
Dim n
n = Len(xml.documentelement.selectSingleNode("text()").nodeValue)
wscript.echo Len(n)
End Sub
```
If you put a brea... | [
0.13899719715118408,
-0.31915512681007385,
0.6316445469856262,
-0.3147754967212677,
-0.01387628074735403,
-0.0008741311612538993,
0.3811410665512085,
-0.5484126806259155,
-0.4694536030292511,
-0.12608709931373596,
-0.3083690404891968,
0.5370992422103882,
-0.44378766417503357,
0.12739311158... | |
Does anyone know of a Javascript based [HAML](http://haml.hamptoncatlin.com/) editor out there? I'm looking for for something like [TinyMCE](http://tinymce.moxiecode.com/) that just understands HAML (so it does indenting and highlighting correctly)
I'm thinking of using an editor like this for a dynamic website I'm bu... | [
0.48529165983200073,
-0.004983801860362291,
0.1916472613811493,
0.10138767212629318,
-0.06630585342645645,
0.09965669363737106,
-0.08739083260297775,
-0.0650411993265152,
-0.6067492365837097,
-0.7472816705703735,
0.32973960041999817,
0.3796563744544983,
0.1461891084909439,
-0.0530531853437... | |
want to look at [MarkItUp](http://markitup.jaysalvat.com/home/). Its specifically *not* a WYSIWYG editor, but rather, an extensible and friendly markup editor. It doesn't support HAML directly, but its fairly easy to extend it to support different languages. It can also do AJAX round trips to the server so you can prev... | [
0.4182269275188446,
-0.11511065065860748,
0.31497982144355774,
0.006950244773179293,
-0.16561973094940186,
-0.3244050145149231,
0.05787676200270653,
0.17663295567035675,
-0.010714741423726082,
-0.7421756386756897,
0.05370144918560982,
0.10158075392246246,
0.11314674466848373,
-0.1544415950... | |
I am looking for some examples of a .bat OR .wsh script that can do the following:
* Recursively read file names in a directory with a user-provided extension (.dll, .exe, etc)
* Search a user-provided directory for the above file names
* Generate a txt or xls report of the findings, like: x.txt was found in "C:\temp"... | [
0.25831252336502075,
-0.18461215496063232,
0.02336050197482109,
-0.027898108586668968,
-0.31705614924430847,
-0.22076083719730377,
0.1997382640838623,
-0.06460551172494888,
0.010863341391086578,
-0.8126533031463623,
-0.12625522911548615,
0.6346627473831177,
-0.2158425748348236,
0.178658977... | |
be recursive.
So, if Search 1 finds foo.dll, foo2.dll and foo3.dll in Dir 1, Search 2 should look in Dir 2 for foo.dll, foo2.dll and foo3.dll, and provide a report (simple listing) of each found file.
Put the following in a .bat file, say `FindAll.bat`:
```
@echo OFF
for /f %%F in ('dir %2\%1 /s /b') do (
<nul (... | [
-0.0804077684879303,
-0.13581907749176025,
0.07706248760223389,
-0.46962931752204895,
-0.15121778845787048,
-0.02690506912767887,
0.4390981197357178,
-0.4997676610946655,
-0.022976938635110855,
-0.199586421251297,
-0.1717357188463211,
0.7026000022888184,
-0.6751989722251892,
-0.35793358087... | |
)
)
)
```
`%1` is the user provided file mask.
`%2` is the user provided directory to search first.
`%3` is the user provided directory to search second.
Call from the command line to generate a report:
```
FindAll *.dll d:\dir1 d:\dir2 > dll_report.txt 2>&1
```
The `<nul (set /p)` trick will output text t... | [
-0.11343254148960114,
0.0030428185127675533,
0.7729330062866211,
-0.11771146208047867,
0.0941082090139389,
0.18985088169574738,
0.14216411113739014,
-0.2325836569070816,
-0.11665794253349304,
-0.4251035451889038,
-0.49432069063186646,
0.6231739521026611,
-0.15469816327095032,
0.01170443464... | |
this thread: [Underused features of Windows batch files](https://stackoverflow.com/questions/245395/underused-features-of-windows-batch-files#246691)) | [
-0.285256952047348,
0.040196314454078674,
0.15975725650787354,
-0.13573546707630157,
0.11879638582468033,
-0.08038510382175446,
0.2157069444656372,
0.233385369181633,
-0.3660186529159546,
-0.16352884471416473,
0.07588618993759155,
0.17525675892829895,
-0.30142900347709656,
0.44496291875839... | |
in that specific case
```
Const debugTime As String = "hh:mm:ss.fffffff"
Dim i As Integer
Debug.Print("Start " & Now.ToString(debugTime))
For i = 0 To 4000000
j = 5 - 4
Next
Debug.Print("End " & Now.ToString(debugTime))
Debug.Print("Start " & Now.ToString(debugTime))
For i = 0... | [
-0.48249271512031555,
-0.12047605961561203,
0.7497769594192505,
-0.3622972071170807,
0.06917624175548553,
0.191781148314476,
0.5592167973518372,
-0.5880711078643799,
-0.2795928716659546,
-0.2583302855491638,
-0.4556621015071869,
0.5425485372543335,
-0.24588647484779358,
0.1860167384147644,... | |
05:33:39.8437500
End 05:33:39.8437500
**\* EDIT \***
modified the code to make it look like that
```
Const debugTime As String = "hh:mm:ss.fffffff"
Dim i As Long, j As Integer
Dim r As Random
r = New Random(1)
Debug.Print("Start " & Now.ToString(debugTime))
For i = 0 To 400000000
j ... | [
-0.17467758059501648,
-0.2643068730831146,
0.6756535172462463,
-0.25794750452041626,
0.00855263415724039,
0.230430006980896,
0.4826430380344391,
-0.5377892851829529,
-0.4651242196559906,
-0.5036857724189758,
-0.25637948513031006,
0.46751487255096436,
-0.36985668540000916,
0.344882369041442... | |
For i = 0 To 400000000
j = 5 Mod r.Next(1, 5)
Next
Debug.Print("End " & Now.ToString(debugTime))
```
now the minus is faster...
Start 05:49:25.0156250
End 05:49:35.7031250
Start 05:49:35.7031250
End 05:49:48.2187500
* Benchmarking with such tiny time intervals leaves you wide open to problems of t... | [
0.061642952263355255,
0.09907802194356918,
0.33926907181739807,
-0.18987369537353516,
-0.05509314313530922,
0.03501274064183235,
0.48644134402275085,
-0.1890910118818283,
-0.5799470543861389,
-0.6765314936637878,
0.15089979767799377,
0.45475277304649353,
0.10217683762311935,
0.182439848780... | |
make it use the result somehow, but that will affect the results quite significantly. | [
0.7235586643218994,
0.136312335729599,
-0.16711312532424927,
0.43552353978157043,
0.07765907794237137,
-0.06857182085514069,
0.04039562866091728,
-0.04109322652220726,
0.39871495962142944,
-0.5740971565246582,
0.04750902205705643,
0.23149652779102325,
0.06568063795566559,
-0.12699046730995... | |
I want to know if the page is being accessed via http or https using JavaScript. Is there some sort of isSecure() method, or should I just parse it out of the URL somehow?
`location.protocol` should do it for you.
(as in:
```
if (location.protocol === 'https:') {
// page is secure
}
```
) | [
0.3293105363845825,
0.20847664773464203,
0.5254536271095276,
0.14145779609680176,
0.11582830548286438,
-0.2487475574016571,
0.5035197734832764,
0.06686846911907196,
-0.02901930920779705,
-0.7945688962936401,
-0.2659938335418701,
0.26450061798095703,
-0.13851764798164368,
0.1170867532491684... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.