text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
EXEC (@String); PRINT ''; END SELECT @String = 'INSERT INTO dbo.##Tbl_CombinedInfo (DatabaseName, type, LogicalName, PhysicalName, T) ' + @BaseString; INSERT INTO dbo.##Tbl_DbFileStats (FileId, FileGroup, TotalExtents, UsedExtents, Name, FileName) EXEC ('USE [' + @DatabaseName + '] DB...
[ 0.2035873383283615, 0.08813253045082092, 0.23732389509677887, 0.020837673917412758, -0.21918997168540955, 0.09570609033107758, 0.22017644345760345, -0.4736528694629669, -0.011941338889300823, -0.32357078790664673, -0.4491558372974396, 0.4372464716434479, -0.7045202255249023, 0.244392871856...
BEGIN WHILE 1 = 1 BEGIN SELECT TOP 1 @DatabaseName = Dbname FROM dbo.##Tbl_ValidDbs WHERE Dbname > @DatabaseName ORDER BY Dbname ASC; IF @@ROWCOUNT = 0 BREAK; IF @UpdateUsage <> 0 AND DATABASEPROPERTYEX (@DatabaseName, 'Status') = 'ONLINE' AND DATABASEPROPERTYE...
[ -0.06470124423503876, 0.13842985033988953, 0.4512577950954437, -0.11287502199411392, -0.023938613012433052, -0.19265514612197876, 0.44629377126693726, -0.386718213558197, 0.08512669056653976, -0.318707674741745, -0.6968861818313599, 0.30742576718330383, -0.29645010828971863, 0.166780978441...
BEGIN SELECT @String = 'DBCC UPDATEUSAGE (''' + @DatabaseName + ''') '; PRINT '*** ' + @String + '*** '; EXEC (@String); PRINT ''; END SELECT @Ident_last = ISNULL(MAX(Id), 0) FROM dbo.##Tbl_DbFileStats;
[ 0.018187541514635086, -0.3392643928527832, 0.46438515186309814, -0.21190746128559113, 0.061119742691516876, 0.01647001877427101, 0.20558317005634308, -0.44577014446258545, 0.13862265646457672, -0.5435054302215576, -0.2913144826889038, 0.3182162344455719, -0.39723339676856995, 0.25762891769...
SELECT @String = 'INSERT INTO dbo.##Tbl_CombinedInfo (DatabaseName, type, LogicalName, PhysicalName, T) ' + @BaseString; EXEC ('USE [' + @DatabaseName + '] ' + @String); INSERT INTO dbo.##Tbl_DbFileStats (FileId, FileGroup, TotalExtents, UsedExtents, Name, FileName) EXEC ('USE [' + @Databas...
[ 0.05368329584598541, -0.00005056709414930083, 0.2656209468841553, 0.009304794482886791, -0.10027384012937546, 0.09535945951938629, 0.2007063776254654, -0.5226929187774658, 0.1566244214773178, -0.452544629573822, -0.4166412949562073, 0.40558621287345886, -0.44032782316207886, 0.320467680692...
set used size for data files, do not change total obtained from sys.database_files as it has for log files UPDATE dbo.##Tbl_CombinedInfo SET U = s.UsedExtents*8*8/1024.0 FROM dbo.##Tbl_CombinedInfo t JOIN dbo.##Tbl_DbFileStats s ON t.LogicalName = s.Name AND s.DatabaseName = t.DatabaseName; -- set used size and % ...
[ 0.3812282383441925, -0.1658933311700821, 0.6448333263397217, 0.06309450417757034, -0.013718747533857822, 0.2034161537885666, 0.16303622722625732, -0.7499699592590332, -0.38580572605133057, -0.4678548574447632, -0.24610759317874908, 0.3797958493232727, -0.4768138527870178, 0.033927060663700...
UPDATE dbo.##Tbl_CombinedInfo SET T = T * 1024, U = U * 1024, F = F * 1024; IF @Unit = 'GB' UPDATE dbo.##Tbl_CombinedInfo SET T = T / 1024, U = U / 1024, F = F / 1024; SELECT DatabaseName AS 'Database', type AS 'Type', LogicalName, T AS 'Total', U AS 'Used',
[ 0.10259813070297241, -0.07152882218360901, 0.34563812613487244, -0.10314315557479858, -0.2093295156955719, 0.09623253345489502, 0.2033797949552536, -0.3964667022228241, 0.06793975085020065, -0.4026245176792145, -0.37681177258491516, 0.325013667345047, -0.6751141548156738, 0.041757244616746...
[U(%)] AS 'Used (%)', F AS 'Free', [F(%)] AS 'Free (%)', PhysicalName FROM dbo.##Tbl_CombinedInfo WHERE DatabaseName LIKE ISNULL(@TargetDatabase, '%') ORDER BY DatabaseName ASC, type ASC; SELECT CASE WHEN @Unit = 'GB' THEN 'GB' WHEN @Unit = 'KB' THEN 'KB' ELSE 'MB' END AS 'SUM...
[ 0.16499406099319458, -0.09604102373123169, 0.5033982992172241, 0.04563715308904648, -0.09128443896770477, 0.4227352440357208, -0.046729546040296555, -0.34429383277893066, -0.10988369584083557, -0.39031147956848145, -0.35153454542160034, 0.22968347370624542, -0.2325606346130371, 0.609915137...
(F) AS 'FREE' FROM dbo.##Tbl_CombinedInfo; END IF UPPER(ISNULL(@Level, 'DATABASE')) = 'DATABASE' BEGIN DECLARE @Tbl_Final TABLE ( DatabaseName sysname NULL, TOTAL dec (10, 2), [=] char(1), used dec (10, 2), [used (%)] dec (5, 2), [+] char(1), free dec (10, 2), [f...
[ 0.1672242432832718, -0.12868961691856384, 0.4204416871070862, -0.10811875760555267, -0.061794400215148926, 0.2081957459449768, 0.3240392208099365, -0.5469488501548767, -0.1442488133907318, -0.21840199828147888, -0.17407315969467163, 0.4135645031929016, -0.4136876165866852, 0.14385530352592...
Data dec (10, 2), Data_Used dec (10, 2), [Data_Used (%)] dec (5, 2), Data_Free dec (10, 2), [Data_Free (%)] dec (5, 2), [++] char(2), Log dec (10, 2), Log_Used dec (10, 2), [Log_Used (%)] dec (5, 2), Log_Free dec (10, 2), [Log_Free (%)] dec (5, 2) );
[ -0.06576381623744965, -0.1706172078847885, 0.2599791884422302, 0.24038255214691162, 0.06257212907075882, 0.614547073841095, 0.0752326175570488, -0.15297941863536835, -0.2959784269332886, -0.18922948837280273, -0.356526643037796, 0.41177743673324585, -0.4347079396247864, 0.14639635384082794...
INSERT INTO @Tbl_Final SELECT x.DatabaseName, x.Data + y.Log AS 'TOTAL', '=' AS '=', x.Data_Used + y.Log_Used AS 'U', (x.Data_Used + y.Log_Used)*100.0 / (x.Data + y.Log) AS 'U(%)', '+' AS '+',
[ -0.06232374906539917, 0.035519469529390335, 0.4333503544330597, 0.0006742916884832084, 0.1967632919549942, 0.4277980625629425, 0.09390362352132797, -0.12645207345485687, 0.331869512796402, -0.500569760799408, -0.13609902560710907, 0.3109271824359894, -0.24618971347808838, 0.242487043142318...
x.Data_Free + y.Log_Free AS 'F', (x.Data_Free + y.Log_Free)*100.0 / (x.Data + y.Log) AS 'F(%)', '==' AS '==', x.Data, x.Data_Used, x.Data_Used*100/x.Data AS 'D_U(%)', x.Data_Free, x.Data_Free*100/x.Data AS 'D_F(%)',
[ 0.09332457929849625, 0.13942742347717285, 0.3208565413951874, 0.019182926043868065, -0.1140783503651619, 0.4602537751197815, 0.11562768369913101, -0.20102645456790924, -0.004501061514019966, -0.331932932138443, -0.5430636405944824, 0.2595348358154297, -0.2607409656047821, 0.213607281446456...
'++' AS '++', y.Log, y.Log_Used, y.Log_Used*100/y.Log AS 'L_U(%)', y.Log_Free, y.Log_Free*100/y.Log AS 'L_F(%)' FROM ( SELECT d.DatabaseName,
[ 0.002962334780022502, 0.10129178315401077, 0.6160090565681458, -0.3446240723133087, 0.20583786070346832, 0.658202052116394, -0.05105626583099365, -0.1064220666885376, 0.0900813490152359, -0.46569010615348816, -0.38421106338500977, 0.28102901577949524, -0.28035441040992737, 0.16270500421524...
SUM(d.T) AS 'Data', SUM(d.U) AS 'Data_Used', SUM(d.F) AS 'Data_Free' FROM dbo.##Tbl_CombinedInfo d WHERE d.type = 'Data' GROUP BY d.DatabaseName ) AS x JOIN ( SELECT l.DatabaseName, SUM(l.T) AS
[ 0.10635598748922348, -0.2873792052268982, 0.5058529376983643, -0.13207261264324188, -0.2258673757314682, 0.21849149465560913, -0.07384119927883148, -0.6518234610557556, 0.0047453101724386215, -0.28259146213531494, -0.3708416521549225, 0.14728930592536926, -0.5045945644378662, 0.47434115409...
'Log', SUM(l.U) AS 'Log_Used', SUM(l.F) AS 'Log_Free' FROM dbo.##Tbl_CombinedInfo l WHERE l.type = 'Log' GROUP BY l.DatabaseName ) AS y ON x.DatabaseName = y.DatabaseName; IF @Unit = 'KB' UPDATE @Tbl_Final SET TOTAL = TOTAL * 1024, used = used * 1024,
[ 0.11445704102516174, -0.20248262584209442, 0.5790703296661377, -0.11877217888832092, 0.028849979862570763, 0.24500882625579834, -0.04009060189127922, -0.4156109094619751, -0.1840130239725113, -0.31924888491630554, -0.397088885307312, 0.2584401071071625, -0.442543089389801, 0.34549552202224...
free = free * 1024, Data = Data * 1024, Data_Used = Data_Used * 1024, Data_Free = Data_Free * 1024, Log = Log * 1024, Log_Used = Log_Used * 1024, Log_Free = Log_Free * 1024; IF @Unit = 'GB' UPDATE @Tbl_Final SET TOTAL = TOTAL / 1024, used = used / 1024,
[ 0.11257883161306381, -0.12414423376321793, 0.5033873915672302, 0.3513065576553345, 0.06216895952820778, 0.01367289200425148, 0.039138078689575195, -0.45948126912117004, -0.43423205614089966, -0.22723422944545746, -0.5946646928787231, 0.35830211639404297, -0.3634793758392334, 0.197382986545...
free = free / 1024, Data = Data / 1024, Data_Used = Data_Used / 1024, Data_Free = Data_Free / 1024, Log = Log / 1024, Log_Used = Log_Used / 1024, Log_Free = Log_Free / 1024; DECLARE @GrantTotal dec(11, 2); SELECT @GrantTotal = SUM(TOTAL) FROM @Tbl_Final; SELECT
[ 0.22725850343704224, -0.1806223839521408, 0.41429656744003296, 0.31362414360046387, 0.11325620114803314, 0.04700063541531563, 0.005139987915754318, -0.7099255919456482, -0.34374940395355225, -0.0887032076716423, -0.4014928638935089, 0.2793606221675873, -0.3383984863758087, 0.32501885294914...
CONVERT(dec(10, 2), TOTAL*100.0/@GrantTotal) AS 'WEIGHT (%)', DatabaseName AS 'DATABASE', CONVERT(VARCHAR(12), used) + ' (' + CONVERT(VARCHAR(12), [used (%)]) + ' %)' AS 'USED (%)', [+], CONVERT(VARCHAR(12), free) + ' (' + CONVERT(VARCHAR(12), [free (%)]) + ' %)' AS 'FREE (%)', [=], ...
[ 0.160038560628891, 0.11159742623567581, 0.4288193881511688, -0.1113254651427269, -0.11704045534133911, 0.26170462369918823, 0.4123511016368866, -0.6205747127532959, 0.0022695185616612434, -0.4996001720428467, -0.41422152519226074, 0.34772631525993347, -0.2238667905330658, 0.271375954151153...
+ ', ' + CONVERT(VARCHAR(12), [Data_Used (%)]) + '%)' AS 'DATA (used, %)', [+], CONVERT(VARCHAR(12), Log) + ' (' + CONVERT(VARCHAR(12), Log_Used) + ', ' + CONVERT(VARCHAR(12), [Log_Used (%)]) + '%)' AS 'LOG (used, %)' FROM @Tbl_Final WHERE DatabaseName LIKE ISNULL(@Targ...
[ 0.2223844975233078, -0.13739368319511414, 0.6775293946266174, -0.17134864628314972, -0.03552946820855141, 0.3114105761051178, 0.07423141598701477, -0.2911796271800995, 0.058824434876441956, -0.6259859204292297, -0.2868705093860626, 0.35208433866500854, -0.4091395437717438, 0.21733653545379...
IF @TargetDatabase IS NULL SELECT CASE WHEN @Unit = 'GB' THEN 'GB' WHEN @Unit = 'KB' THEN 'KB' ELSE 'MB' END AS 'SUM', SUM (used) AS 'USED', SUM (free) AS 'FREE', SUM (TOTAL) AS 'TOTAL', SUM (Data) AS 'DATA', SUM (Log) AS 'LOG' FROM @Tbl_Final; END RETURN (0) GO ```
[ 0.20791010558605194, -0.2979932725429535, 0.43243274092674255, -0.08221253007650375, 0.01776292361319065, 0.1731349527835846, -0.060844775289297104, -0.19197244942188263, 0.12835922837257385, -0.49519646167755127, -0.20292915403842926, 0.4038258492946625, -0.30551108717918396, 0.3938276767...
Does anybody have experience working with PHP accelerators such as [MMCache](http://turck-mmcache.sourceforge.net/) or [Zend Accelerator](http://www.zend.com/en/)? I'd like to know if using either of these makes PHP comparable to *faster* web-technologies. Also, are there trade offs for using these? Note that Zend Opti...
[ 0.09769567102193832, 0.20391307771205902, 0.040624089539051056, 0.1674499362707138, -0.2202291637659073, 0.02563236840069294, 0.08945412188768387, -0.30406075716018677, 0.027387119829654694, -0.6835832595825195, 0.42581966519355774, 0.599742591381073, -0.2211802750825882, -0.16370975971221...
were slower than without optimizer. When it comes to caches: \* fastest: [eAccelerator](http://eaccelerator.net/) \* [XCache](http://xcache.lighttpd.net/) \* [APC](http://www.php.net/manual/en/book.apc.php) And: You DO want to install a opcode cache! For example: [alt text http://blogs.interdose.com/dominik/wp-conte...
[ -0.1319943517446518, -0.10901390016078949, 0.4711531102657318, -0.03936518356204033, 0.02023402228951454, 0.054955292493104935, 0.5024917721748352, -0.5864057540893555, -0.06207900494337082, -0.673576831817627, 0.23011556267738342, 0.46385446190834045, -0.3643018305301666, -0.6381144523620...
I want to define something like this in *php*: ``` $EL = "\n<br />\n"; ``` and then use that variable as an "endline" marker all over my site, like this: ``` echo "Blah blah blah{$EL}"; ``` How do I define $EL once (in only 1 file), include it on every page on my site, and *not* have to reference it using the (st...
[ 0.3756040930747986, 0.30237048864364624, 0.5291786789894104, -0.18494990468025208, -0.29254812002182007, -0.20178470015525818, 0.0239468552172184, 0.07657648622989655, -0.07029307633638382, -0.5525493621826172, 0.1262514293193817, 0.1485213041305542, -0.20134498178958893, 0.120190158486366...
this on every page: ``` include 'header.php'; ``` you won't have to use the global keyword or anything, the second line of code you wrote should work. Edit: Oh sorry, that won't work inside functions... now I see your problem. Edit #2: Ok, take my original advice with the header, but use a [define()](http://php.n...
[ 0.22905759513378143, -0.23340725898742676, -0.023417621850967407, 0.010050077922642231, 0.07519309967756271, -0.38059860467910767, 0.1833033561706543, 0.14643976092338562, -0.037627242505550385, -0.41580402851104736, -0.05178314819931984, 0.7018967866897583, -0.40095648169517517, -0.230637...
What's the difference between struct and class in .NET? In .NET, there are two categories of types, *reference types* and *value types*. Structs are *value types* and classes are *reference types*. The general difference is that a *reference type* lives on the heap, and a *value type* lives inline, that is, wherever ...
[ 0.005555024370551109, -0.1330876350402832, 0.10163863003253937, 0.2938941419124603, -0.28420913219451904, 0.11509332060813904, 0.03338595852255821, 0.1617744415998459, -0.046128954738378525, -0.5349823832511902, 0.12216094136238098, 0.23443832993507385, -0.2692026197910309, 0.2434435039758...
where the actual value resides. This has one benefit, to begin with: * *value types* always contains a value * *reference types* can contain a *null*-reference, meaning that they don't refer to anything at all at the moment Internally, *reference type*s are implemented as pointers, and knowing that, and knowing how ...
[ 0.4518681764602661, -0.012241416610777378, 0.08222924917936325, 0.09425602108240128, 0.1476413905620575, -0.3501219153404236, 0.1584673672914505, -0.10305940359830856, -0.3054248094558716, -0.6559248566627502, -0.0740758553147316, 0.44675523042678833, -0.44575098156929016, 0.26818966865539...
another variable, copies the reference, which means you now have two references to the same *somewhere else* storage of the actual data. In other words, after the copy, changing the data in one reference will appear to affect the other as well, but only because you're really just looking at the same data both places W...
[ 0.2710215747356415, -0.12074628472328186, 0.301929235458374, 0.18805289268493652, 0.033363282680511475, -0.0035501839593052864, -0.18595708906650543, -0.07968959957361221, -0.33914390206336975, -0.7199996709823608, 0.16984012722969055, 0.351718008518219, -0.47472405433654785, 0.46815156936...
Is An Implementation Detail](https://blogs.msdn.microsoft.com/ericlippert/2009/04/27/the-stack-is-an-implementation-detail-part-one/).) * class/struct-field: *value type* lives completely inside the type, *reference type* lives inside the type as a pointer to somewhere in heap memory where the actual memory lives.
[ -0.1775871068239212, 0.08320584148168564, 0.2569732069969177, -0.07152818143367767, 0.10254620015621185, 0.06759780645370483, 0.16658630967140198, -0.30533847212791443, -0.21079060435295105, -0.5270193219184875, -0.030702855437994003, 0.09673192352056503, -0.3981877863407135, 0.03460485488...
Can anyone recommend some decent resources for a .NET developer who wishes to get a high level overview of the Delphi language? We are about acquire a small business whose main product is developed in Delphi and I am wanting to build up enough knowledge to be able to talk the talk with them. Books, websites etc all a...
[ 0.3665767014026642, 0.05641859397292137, -0.018783913925290108, 0.18730272352695465, 0.19582675397396088, -0.20892058312892914, 0.014238283038139343, 0.219668909907341, -0.1760677993297577, -0.550987720489502, -0.20893937349319458, 0.4379264712333679, 0.11492469161748886, -0.36417078971862...
you encounter specific issues :) --- [edit] @Martin: * There's a [free "Turbo" edition](http://cc.codegear.com/Free.aspx?id=24722) available at the Codegear/Embarcadero website. I guess it has some limitations, so you could also try [downloading the trial version](http://cc.codegear.com/Free.aspx?id=24966).
[ 0.4354579448699951, -0.39007866382598877, 0.39057573676109314, 0.29908832907676697, -0.20302629470825195, -0.7772862911224365, 0.42176568508148193, -0.07562803477048874, -0.35043513774871826, -0.09436046332120895, -0.10659443587064743, 0.7775501608848572, -0.1928267627954483, -0.1298372596...
In php, I often need to map a variable using an array ... but I can not seem to be able to do this in a one liner. c.f. example: ``` // the following results in an error: echo array('a','b','c')[$key]; // this works, using an unnecessary variable: $variable = array('a','b','c'); echo $variable[$key]; ``` This is a ...
[ -0.0711815133690834, 0.19167014956474304, 0.14960908889770508, -0.31207510828971863, -0.24146996438503265, -0.10555876791477203, 0.46426618099212646, -0.28183457255363464, -0.07583001255989075, -0.2347864806652069, 0.12536093592643738, 0.4781116247177124, -0.4873019754886627, -0.1177510246...
write a small function: ``` function indexonce(&$ar, $index) { return $ar[$index]; } ``` and call this with: ``` $something = indexonce(array('a', 'b', 'c'), 2); ``` The array should be destroyed automatically now.
[ -0.17619606852531433, 0.22935141623020172, 0.28049665689468384, -0.43853163719177246, 0.34027498960494995, -0.16160251200199127, 0.4984843134880066, 0.016763463616371155, -0.015101616270840168, -0.4756828844547272, -0.35214993357658386, 0.6999631524085999, -0.4185962677001953, 0.5092452764...
I see often (rewritten) URLs without ID in it, like on some wordpress installations. What is the best way of achieve this? Example: site.com/product/some-product-name/ Maybe to keep an array of page names and IDs in cache, to avoid DB query on every page request? How to avoid conflicts, and what are other issues on u...
[ 0.7317503094673157, 0.38329625129699707, 0.2145310938358307, 0.10395856946706772, -0.3890807330608368, -0.26867613196372986, 0.13629910349845886, 0.2999442517757416, -0.28197675943374634, -0.6759157776832581, 0.23972411453723907, 0.12312262505292892, -0.14064787328243256, 0.664000630378723...
has the particular ID, you're querying the database for a row that has a particular slug. You don't need to know the ID to retrieve the record.
[ 0.5996702909469604, 0.27269473671913147, 0.11709710210561752, 0.37994465231895447, 0.07015779614448547, -0.16986030340194702, -0.5083945393562317, -0.06190989166498184, -0.4618382453918457, -0.32258957624435425, 0.3802943229675293, 0.21668364107608795, -0.1801108419895172, 0.31241941452026...
I am uploading multiple files using the BeginGetRequestStream of HttpWebRequest but I want to update the progress control I have written whilst I post up the data stream. How should this be done, I have tried calling Dispatch.BeginInvoke (as below) from within the loop that pushes the data into the stream but it lock...
[ 0.3532182574272156, -0.013353991322219372, 0.3972238600254059, -0.12210436910390854, 0.012681448832154274, -0.13592709600925446, 0.2301114797592163, -0.047525763511657715, -0.2975481152534485, -0.8866361975669861, 0.0949670597910881, 0.47009241580963135, -0.24370597302913666, 0.31047052145...
file; // store our file stream data public RequestState( HttpWebRequest request, FileDialogFileInfo file ) { this.request = request; this.file = file; } } private void UploadFile( FileDialogFileInfo file ) { UriBuilder ub = new UriBuilder( app.receiverURL ); ub.Query = string.Forma...
[ 0.27330249547958374, 0.0386386476457119, 0.9071077108383179, -0.12881700694561005, -0.19298268854618073, 0.3512852191925049, 0.31544578075408936, -0.4538964331150055, -0.03589125722646713, -0.8153759241104126, -0.2981850802898407, 0.4471391439437866, -0.5274746417999268, 0.5235036611557007...
new RequestState( request, file ); request.BeginGetRequestStream( new AsyncCallback( OnUploadReadCallback ), state ); } private void OnUploadReadCallback( IAsyncResult asynchronousResult ) { RequestState state = (RequestState)asynchronousResult.AsyncState; HttpWebRequest request = (HttpWebRequest)state.req...
[ -0.1435270458459854, -0.19078929722309113, 0.8171716928482056, -0.24256294965744019, 0.11343652755022049, 0.3635787069797516, 0.4445439875125885, -0.509272575378418, -0.19397704303264618, -0.6848464012145996, -0.46339574456214905, 0.4674856960773468, -0.364812970161438, 0.39319363236427307...
bytesRead = input.Read( buffer, 0, buffer.Length ) ) != 0 ) { output.Write( buffer, 0, bytesRead ); bytesReadTotal += bytesRead; App app = App.Current as App; int totalPercentage = Convert.ToInt32( ( bytesReadTotal / app.totalBytesToUpload ) * 100 ); // enabling the followi...
[ -0.13440768420696259, -0.12002166360616684, 0.7612642645835876, -0.2138107419013977, 0.3457931578159332, 0.49208205938339233, 0.5351593494415283, -0.2765991687774658, -0.18932588398456573, -0.6347377896308899, -0.2908158302307129, 0.640608549118042, -0.3056659996509552, 0.05592642351984978...
{ this.ProgressBarWithPercentage.Percentage = totalPercentage; } ); } } ``` I was going to say that, I didn't think that Silverlight 2's HttpWebRequest supported streaming, because the request data gets buffered into memory entirely. It had been a while since the last time I looked at it though...
[ 0.3500615358352661, -0.1031404435634613, 0.44613102078437805, -0.052666835486888885, -0.28761720657348633, -0.40962353348731995, 0.2627714276313782, 0.06999614834785461, -0.28120115399360657, -0.6907551288604736, 0.022461026906967163, 0.5093904137611389, -0.37420859932899475, 0.06256130337...
setting AllowReadStreamBuffering to false. Did you set this property on your HttpWebRequest? That could be causing your block. * [MSDN Reference](http://shrinkster.com/11cn) * [File upload component for Silverlight and ASP.NET](http://www.wilcob.com/Wilco/View.aspx?NewsID=212) Edit, found another reference for you. Y...
[ 0.49136048555374146, 0.017207695171236992, 0.35231834650039673, 0.014238674193620682, -0.1348348706960678, -0.5841317772865295, 0.598920464515686, -0.40340715646743774, -0.23808832466602325, -0.39770078659057617, 0.13071078062057495, 0.4360615909099579, -0.47807908058166504, 0.070678405463...
We have an enterprise web application where every bit of text in the system is localised to the user's browser's culture setting. So far we have only supported English, American (similar but mis-spelt ;-) and French (for the Canadian Gov't - app in English or French depending on user preference). During development we...
[ 0.5629785656929016, -0.04983840882778168, 0.13927942514419556, 0.2778617739677429, 0.20145632326602936, 0.1701842099428177, 0.4300268590450287, 0.6856241822242737, 0.003468492068350315, -0.5826984643936157, -0.18851421773433685, 0.20707453787326813, -0.20827874541282654, -0.356978327035903...
web? Do the same events fire while inputs and textareas are being edited (we're quite Ajax heavy). What conventions do users of these top-down languages expect online? What effect does their dual-input (phonetic typing + conversion) have on web controls? With RTL languages like Arabic do users expect the entire int...
[ 0.11072517931461334, -0.03139936923980713, 0.5668838024139404, 0.13577817380428314, -0.2658408284187317, -0.21438926458358765, 0.26473143696784973, -0.034264225512742996, -0.5349518060684204, -0.575975775718689, -0.09839465469121933, 0.48285239934921265, -0.4396946132183075, -0.12808698415...
I understand that these use phonetic input converted to written characters. > How does that work on the web? The input is done by a class of software called an [IME (Input Method Editor)](http://en.wikipedia.org/wiki/Input%5Fmethod%5Feditor) on Windows, Mac, and Linux (e.g. SCIM). When an IME is turned on, the input f...
[ -0.09684381633996964, -0.06744637340307236, 0.24135218560695648, 0.0522393137216568, -0.11493898183107376, 0.234643816947937, -0.041817836463451385, -0.23301708698272705, 0.2832269072532654, -0.8663560748100281, -0.26932817697525024, 0.7599319219589233, -0.17121796309947968, -0.07611289620...
go with an encoding of Unicode. I suggest UTF-8. > Do the same events fire while inputs and textareas are being edited? A Unicode savvy web browser and OS combo handles multiple languages. For example, one can use English normal version of Firefox to browse and post to a Japanese website. From the browsers point of v...
[ 0.250355064868927, 0.12606453895568848, 0.1270536184310913, 0.1893431842327118, -0.06312160193920135, -0.22291001677513123, 0.3355390727519989, -0.03090415894985199, -0.14184844493865967, -0.7059187293052673, -0.47716042399406433, 0.5231050252914429, -0.5342592000961304, -0.357527613639831...
expect left-to-right online. Math and science textbooks are written from left-to-right. Most word processors, including localized version of Word, write left-to-right. > What effect does their dual-input (phonetic typing + conversion) have on web controls? For the most part you should not have to worry about it, unle...
[ -0.20927022397518158, -0.13177691400051117, 0.25258857011795044, 0.10992537438869476, -0.2508898377418518, 0.09177394211292267, 0.19595180451869965, 0.14712880551815033, -0.046262361109256744, -0.9197311997413635, -0.15072952210903168, 0.5068270564079285, 0.17051035165786743, -0.2609776556...
browser.
[ 0.01665665954351425, 0.06830865889787674, 0.290304958820343, 0.07402174174785614, -0.08510075509548187, -0.26729416847229004, 0.3448515832424164, 0.4872724413871765, -0.20465269684791565, -1.0989199876785278, -0.37324970960617065, 0.07886014878749847, -0.12651219964027405, 0.23101037740707...
I have a UserControl that consists of three TextBoxes. On a form I can have one or more or my UserControl. I want to implement my own tab behavior so if the user presses Tab in the second TextBox I should only move to the third TextBox if the the second TextBox has anything entered. If nothing is entered in the second ...
[ 0.18716099858283997, 0.02156369388103485, 0.7334758639335632, 0.061815183609724045, -0.1748930662870407, 0.13820233941078186, 0.1746622622013092, -0.21694251894950867, -0.0012361855478957295, -0.8001395463943481, 0.02379242703318596, 0.6289497017860413, -0.2505842447280884, -0.008990840986...
a control on the form should be skipped. By using the ProcessDialogKey I have managed to get it work kind of ok but I still have one problem. My question is if there is a way to detect how a WinForms control got focus since I would also like to know if the my UserControl got focus from a Tab or Shift-Tab and then do ...
[ 0.2918132543563843, -0.25827473402023315, 0.46725112199783325, 0.28382423520088196, -0.08831972628831863, -0.21686092019081116, 0.2039814442396164, -0.02739819511771202, -0.16451948881149292, -0.2255059778690338, 0.3379666805267334, 0.5261766314506531, -0.2260919064283371, 0.14732445776462...
idea. Maybe you can do something like disabling the 3rd text box until a valid entry is made in the 2nd text box. *Now, having said this, I've also broken this rule at the request of the customer. We made the enter key function like the tab key, where the enter key would save the value in a text field, and advance the...
[ 0.24397219717502594, -0.105902761220932, 0.5867039561271667, -0.09182413667440414, 0.044250257313251495, 0.003319978015497327, 0.15315435826778412, -0.03616637364029884, -0.41302359104156494, -0.24131707847118378, 0.14810426533222198, 0.4769328534603119, -0.02055511064827442, 0.12552356719...
How can I get programmatic access to the call stack? Try [System.Diagnostics.StackTrace](http://msdn.microsoft.com/en-us/library/system.diagnostics.stacktrace.aspx).
[ 0.04720163717865944, -0.03999876603484154, 0.4286300539970398, 0.1856956034898758, 0.19757241010665894, -0.15523338317871094, 0.36674898862838745, -0.3893486261367798, -0.3446807861328125, -0.5244292616844177, 0.03461664170026779, 0.32817867398262024, -0.18140411376953125, 0.00866286456584...
My current development project has two aspects to it. First, there is a public website where external users can submit and update information for various purposes. This information is then saved to a local SQL Server at the colo facility. The second aspect is an internal application which employees use to manage those...
[ 0.4084141254425049, 0.2797234058380127, 0.5102638006210327, 0.2201993316411972, 0.4472842514514923, 0.006036085542291403, -0.2843492031097412, 0.20745626091957092, -0.051782432943582535, -0.6489613652229309, -0.025019919499754906, 0.27803683280944824, 0.22902803122997284, 0.133199274539947...
similar, and share many of the same tables, but they are not 100% the same. Many of the tables on both sides are very specific to either the internal or external application. So the question is: when a user updates their information or submits a record on the public website, how do you transfer that data to the intern...
[ 0.35048413276672363, 0.19293782114982605, 0.3190609812736511, 0.32778170704841614, 0.3452274799346924, -0.1312321424484253, -0.017441553995013237, 0.00012699529179371893, -0.3986194133758545, -0.6190584301948547, 0.01837002858519554, 0.3306339383125305, 0.015932239592075348, 0.133248269557...
that it has to be instant, just reasonably quick. So far, I have thought about using the following types of approaches: 1. Bi-directional replication 2. Web service interfaces on both sides with code to sync the changes as they are made (in real time). 3. Web service interfaces on both sides with code to asynchronous...
[ 0.1966206282377243, -0.17712749540805817, 0.41578662395477295, 0.2574136257171631, 0.1496175080537796, 0.08869970589876175, -0.19372276961803436, 0.17630648612976074, -0.5440499782562256, -0.7237045764923096, 0.09476008266210556, 0.6073213815689087, -0.35308679938316345, -0.101980149745941...
be able to achieve near real time synchronization without the overhead or complexity of something like replication. Synchronous web services are not ideal because your code will have to be very sophisticated to handle failure scenarios. What happens when one system is restarted while the other continues to publish ch...
[ 0.018032491207122803, -0.16986948251724243, 0.3884236812591553, 0.5914496183395386, 0.3872961401939392, -0.1978452205657959, 0.3260767161846161, 0.06003536283969879, -0.37879008054733276, -0.5613906979560852, -0.12747560441493988, 0.45870161056518555, -0.33360591530799866, -0.1067330613732...
the changes (passed as messages) will just accumulate and as soon as a connection can be established the re-starting server will process all the queued messages and catch up, making system integrity much, much easier to achieve. There are some open source tools that can really make this easy for you if you are using ....
[ 0.5175464749336243, -0.4613324999809265, 0.21570490300655365, 0.23366136848926544, -0.24347728490829468, 0.22264806926250458, 0.059243615716695786, -0.006409554276615381, -0.19290660321712494, -0.7513805627822876, 0.12500663101673126, 0.20758040249347687, -0.7041792273521423, -0.0225978400...
do async messaging using MSMQ bindings, but a tool like nServiceBus or MassTransit will give you a very simple Send/Receive or Pub/Sub API that will make your requirement a very straightforward job. If you're using Java, there are any number of open source service bus implementations that will make this kind of bi-dir...
[ 0.19730055332183838, -0.136496901512146, 0.07350051403045654, 0.11446818709373474, -0.43812716007232666, -0.2539583742618561, 0.22780437767505646, -0.004218376241624355, -0.5073004961013794, -0.32145389914512634, -0.2533671259880066, 0.604963481426239, -0.526343047618866, -0.29103773832321...
Everyone remembers google browser sync right? I thought it was great. Unfortunately Google decided not to upgrade the service to Firefox 3.0. Mozilla is developing a replacement for google browser sync which will be a part of the Weave project. I have tried using Weave and found it to be very very slow or totally inope...
[ 0.7888984084129333, 0.2680104076862335, 0.5198225378990173, -0.027665622532367706, -0.05833389237523079, -0.3409282863140106, 0.1984720379114151, 0.3178163468837738, -0.2152535617351532, -0.8294954299926758, 0.22794264554977417, 0.5106644034385681, -0.4843454957008362, 0.10070974379777908,...
users, could run on your 'main' machine? Now you just have to know your own IP or have some way to announce it to your client browsers at work or wherever. There are several problems I can think of with this: non static IPs, Opening up ports on your local comp etc. It just seems that Mozilla does not want to handle th...
[ 0.34391307830810547, 0.19723297655582428, 0.41230741143226624, 0.04911714792251587, -0.11369948089122772, -0.30193230509757996, 0.28416919708251953, 0.3813391923904419, -0.6533840298652649, -0.6494693756103516, 0.33643290400505066, 0.24442431330680847, -0.7105982899665833, 0.45489805936813...
to communicate with HTTP servers and can be configured to connect to private servers. I've tried setting it up on my own servers but with no success (Mainly because I'm not very good at working with Apache to configure WebDAV) I'm hoping Mozilla Weave eventually allows FTP access so I can easily use my server to host ...
[ 0.5942128896713257, 0.1186101883649826, 0.34772196412086487, -0.09764236956834793, -0.05185544490814209, -0.09919176250696182, 0.5709732174873352, 0.10353939235210419, -0.37399089336395264, -0.7591784000396729, 0.4232925772666931, 0.41009482741355896, -0.12788529694080353, 0.05153723061084...
I've written a stored proc that will do an update if a record exists, otherwise it will do an insert. It looks something like this: ``` update myTable set Col1=@col1, Col2=@col2 where ID=@ID if @@rowcount = 0 insert into myTable (Col1, Col2) values (@col1, @col2) ``` My logic behind writing it in this way is that th...
[ -0.06897665560245514, 0.21565662324428558, 0.5587185025215149, -0.24708610773086548, 0.14882901310920715, -0.05416331812739372, -0.25840985774993896, 0.01677972823381424, -0.07214917242527008, -0.5376392006874084, 0.18188245594501495, 0.4535559415817261, -0.3600706160068512, 0.027130015194...
I considered inefficient because if you are to do an update it will cause 2 selects (the first explicit select call and the second implicit in the where of the update). If the proc were to do an insert then there'd be no difference in efficiency. Is my logic sound here? Is this how you would combine an insert and upda...
[ -0.1374284029006958, -0.08713990449905396, 0.3122182786464691, -0.12713319063186646, 0.08201392740011215, -0.1316542625427246, -0.0204594936221838, -0.45580655336380005, -0.08657336980104446, -0.6010116338729858, -0.05108494684100151, 0.8943564891815186, -0.3851752281188965, -0.20419265329...
the table if we > use the UPSERT instead of EXISTS. > Unfortunately for an Insert, both the > UPSERT and IF EXISTS methods use the > same number of reads on the table. > Therefore the check for existence > should only be done when there is a > very valid reason to justify the > additional I/O. The optimized way...
[ 0.011608547531068325, 0.36746129393577576, 0.3069705069065094, 0.13421401381492615, -0.009866016916930676, -0.0910983458161354, 0.23354387283325195, -0.16968543827533722, -0.07836250960826874, -0.9795260429382324, -0.08229182660579681, 0.5944806337356567, -0.36288461089134216, 0.1037394776...
update then insert. In most > circumstances, the row will already > exist and only one I/O will be > required. **Edit**: Please check out [this answer](https://stackoverflow.com/questions/13540/insert-update-stored-proc-on-sql-server/193876#193876) and the linked blog post to learn about the problems with this pat...
[ 0.045241449028253555, 0.2518746554851532, 0.387572705745697, -0.0946669951081276, 0.31906166672706604, -0.1743723601102829, -0.05359237641096115, -0.08260665088891983, -0.13235069811344147, -0.5240689516067505, -0.35274797677993774, 0.7856572866439819, -0.3809797167778015, -0.0806086882948...
I wonder if someone knows if there is a pre-made solution for this: I have a List on an ASP.net Website, and I want that the User is able to re-sort the list through Drag and Drop. Additionally, I would love to have a second list to which the user can drag items from the first list onto. So far, I found two solutions:...
[ 0.29385241866111755, -0.13146838545799255, 0.26023855805397034, 0.10473307222127914, -0.13016431033611298, -0.22332853078842163, 0.07800792157649994, 0.06450200080871582, -0.5743410587310791, -0.6262690424919128, -0.08635227382183075, 0.40243861079216003, 0.014125230722129345, 0.1860053539...
all I want, but is priced far far beyond my Budget. Does anyone else have some ideas or at least some keywords/pointers to do further investigation on? Espectially the Drag/Drop between two lists is something I am rather clueless about how to do that in ASP.net. Target Framework is 3.0 by the way. The Mootools sortab...
[ 0.5608661770820618, -0.07656397670507431, 0.1791256219148636, 0.3737630248069763, 0.4960300922393799, -0.13167664408683777, -0.008901836350560188, 0.07369424402713776, -0.4468076825141907, -0.5385838150978088, -0.16416674852371216, 0.852904736995697, 0.08984357118606567, -0.216693788766860...
Could someone recommend any good resources for creating Graphics User Interfaces, preferably in C/C++? Currently my biggest influence is [3DBuzz.com](http://www.3dbuzz.com)'s [C++/OpenGL VTMs](http://www.3dbuzz.com/xcart/product.php?productid=30&cat=12&page=1) (Video Training Modules). While they are very good, they c...
[ 0.4085220992565155, 0.1274455487728119, 0.17128986120224, 0.020106155425310135, -0.5247167348861694, 0.11140787601470947, -0.16444158554077148, -0.11814288794994354, -0.18758338689804077, -0.6888618469238281, 0.10278147459030151, 0.5572251677513123, 0.3080020546913147, 0.11575398594141006,...
two important points, first: This will be used cross platform including homebrew on a Sony PSP. Second: I want to create a GUI system not use an existing one. **Edit 2:** I think some of you are missing the point, I don't what to **use** an existing GUI system I want to build one. Qt in it's current form is not porta...
[ 0.2618562877178192, -0.1426323801279068, 0.1640683114528656, 0.2266944944858551, -0.2580695152282715, -0.16365961730480194, -0.0890166163444519, 0.13500316441059113, 0.1805085837841034, -0.8370037078857422, 0.09473824501037598, 0.8940283060073853, -0.21419991552829742, 0.05399581789970398,...
effects that you don't think you would get with a more traditional GUI toolkit (e.g [Qt](http://trolltech.com/), [wxWidgets](http://www.wxwidgets.org/), [GTK](http://www.gtk.org/), etc). If you just need a quick simple GUI for hosting your OpenGL graphics then [FLTK](http://www.fltk.org/) is a nice choice. Otherwise, f...
[ 0.4339292645454407, 0.032164301723241806, 0.6946483850479126, 0.015553410165011883, -0.28248733282089233, -0.006111378315836191, -0.020392393693327904, -0.21077288687229156, -0.2162386029958725, -0.7517768144607544, 0.1468409299850464, 0.8263535499572754, -0.07711249589920044, -0.068993933...
a better understanding of what you are asking. For a GUI on an embedded system like the Nintendo DS, I would consider using an "immediate mode" GUI. [Jari Komppa](http://sol.gfxile.net/who.html) has a [good tutorial about them](http://sol.gfxile.net/imgui/), but you could use a more object-oriented approach with C++ th...
[ 0.10823823511600494, -0.3342454433441162, 0.33267122507095337, 0.17125871777534485, -0.11376935988664627, -0.23747974634170532, -0.10499057918787003, -0.26252231001853943, -0.20308548212051392, -0.7469849586486816, -0.5086709260940552, 0.6890605092048645, -0.222711980342865, -0.19554051756...
Is it possible in .NET to list files on a remote location like an URL? Much in the same way the System.IO classes work. All I need is the URLs to images that are on a remote server. **Short answer:** No, unless you have more control over that web-server **Long answer:** Here are possible solutions... 1. You will need...
[ 0.26616913080215454, -0.1066257655620575, 0.16242851316928864, 0.37831422686576843, -0.12340064346790314, -0.2778562307357788, 0.15766873955726624, 0.0058324383571743965, -0.16221140325069427, -0.7695505619049072, -0.020656010136008263, 0.3536793291568756, -0.12994280457496643, 0.043334692...
of the same web-server. 3. If you have FTP access...
[ -0.12289657443761826, 0.1929720789194107, 0.3471933901309967, 0.12959031760692596, -0.19737176597118378, -0.4691561758518219, 0.23584666848182678, -0.0576699823141098, -0.3114050626754761, -0.6721280813217163, -0.39037904143333435, 0.4025096595287323, -0.4305592477321625, 0.077007479965686...
I am part of a high school robotics team, and there is some debate about which language to use to program our robot. We are choosing between C (or maybe C++) and LabVIEW. There are pros for each language. C(++): * Widely used * Good preparation for the future (most programming positions require text-based programmers...
[ 0.4660356938838959, 0.16680625081062317, 0.24169974029064178, 0.11138749867677689, -0.17623810470104218, 0.1741894781589508, 0.06161202862858772, 0.29220259189605713, -0.0031494954600930214, -0.9233008027076721, 0.09956037998199463, 0.5108605027198792, 0.317632794380188, -0.170208796858787...
Robolab background that some new members may have. * Don't need to intimately know what's going on. Simply tell the module to find the red ball, don't need to know how. This is a very difficult decision for us, and we've been debating for a while. Based on those pros for each language, and on the experience you've got...
[ 0.500758945941925, -0.017647020518779755, 0.18773280084133148, 0.28770002722740173, 0.23586638271808624, 0.04722950980067253, 0.07213824987411499, 0.3628246486186981, -0.3229449689388275, -0.4856871962547302, -0.04907539486885071, 0.8450229167938232, -0.09766944497823715, -0.32725748419761...
of programming?** * **Is a graphical language easier to learn than a textual language?** I think that they should be about equally challenging to learn. * Seeing as we are partailly rooted in helping people learn, **how much should we rely on prewritten modules, and how much should we try to write on our own?** ("Good ...
[ 0.5929440855979919, 0.19921419024467468, -0.30836066603660583, 0.37735316157341003, -0.14299198985099792, -0.0638035461306572, 0.2862723171710968, 0.13810396194458008, -0.11482928693294525, -0.5834800004959106, -0.06288671493530273, 1.0017974376678467, 0.11480867862701416, -0.3412016034126...
that C could be taught just as easily, and beginner-level tasks would still be around with C. I'd really like to hear your opinions. **Is there any reason that typing while{} should be any more difficult than creating a "while box?"** **Isn't it just as intuitive that program flows line by line, only modified by ifs an...
[ 0.3386959731578827, -0.19355833530426025, -0.022791663184762, 0.2301664501428604, -0.12525352835655212, -0.14328274130821228, 0.2721845507621765, 0.35367661714553833, -0.24144816398620605, -0.2517036497592926, 0.03275655582547188, 0.5610053539276123, 0.2515106201171875, -0.3094139099121094...
of programming, with certain goals. If it's not... I'm sorry... Before I arrived, our group (PhD scientists, with little programming background) had been trying to implement a LabVIEW application on-and-off for nearly a year. The code was untidy, too complex (front and back-end) and most importantly, did not work. I am...
[ 0.522813618183136, 0.3041553199291229, 0.05336484685540199, 0.016651999205350876, 0.10178970545530319, 0.04387430474162102, 0.5382817387580872, 0.2084665447473526, 0.028022807091474533, -0.7035684585571289, 0.11289892345666885, 0.7102736830711365, -0.15761958062648773, -0.00832876097410917...
to be learnt, the language, even one like LabVIEW, is just a different way of expressing them*. LabVIEW is great to use for what it was originally designed for. i.e. to take data from DAQ cards and display it on-screen perhaps with some minor manipulations in-between. However, programming *algorithms* is no easier and...
[ 0.5336886644363403, -0.18918293714523315, 0.2764488160610199, 0.1568298488855362, -0.2775489091873169, -0.03964172676205635, 0.14236246049404144, -0.050646036863327026, 0.029596082866191864, -0.9277814626693726, -0.1793450564146042, 0.23141765594482422, -0.10654794424772263, -0.08120364695...
follow from each other (i.e. left-to-right) on the canvas. Moreover programming as a career is more than knowing the technicalities of coding. Being able to effectively ask for help/search for answers, write readable code and work with legacy code are all key skills which are undeniably more difficult in a graphical ...
[ 0.5689388513565063, -0.1328960359096527, 0.16569238901138306, 0.19711866974830627, -0.05204262584447861, -0.1356501430273056, 0.23878830671310425, -0.06391984969377518, -0.07367465645074844, -0.9177735447883606, -0.08197450637817383, 0.7588391304016113, 0.08256874978542328, -0.080858863890...
revolutionise the way we program but LabVIEW itself is not a massive paradigm shift in language design, we still have `while, for, if` flow control, typecasting, event driven programming, even objects. If the future really will be written in LabVIEW, C++ programmer won't have much trouble crossing over. As a postcript...
[ 0.5212814211845398, 0.07711553573608398, 0.25369903445243835, 0.18227417767047882, -0.11854859441518784, -0.07469141483306885, 0.12339629232883453, 0.39486032724380493, -0.28404778242111206, -0.886818528175354, -0.09436053782701492, 0.46637052297592163, 0.06423128396272659, 0.0247466526925...
for control systems. Granted NASA unlikely use it for on-board satellite systems but then software developement for space-systems is a [whole different ball game](http://www.fastcompany.com/magazine/06/writestuff.html)...
[ -0.11537538468837738, -0.2298797219991684, 0.4545956552028656, 0.5071039795875549, 0.05973191559314728, -0.25411057472229004, -0.4141235947608948, -0.13062411546707153, -0.3035695254802704, -0.29350799322128296, 0.14257213473320007, 0.2839927673339844, -0.1556653380393982, 0.02679470367729...
I've seen it mentioned in many blogs around the net, but I believe it shoud be discussed here. What can we do when we have an MVC framework (I am interested in ZEND) in PHP but our host does not provide mod\_rewrite? Are there any "short-cuts"? Can we transfer control in any way (so that a mapping may occur between pag...
[ 0.3457942605018616, -0.1448555290699005, 0.4293559193611145, 0.29476213455200195, -0.08952358365058899, -0.3922991454601288, 0.2618568241596222, -0.28252795338630676, -0.35567405819892883, -0.6660186052322388, 0.07675612717866898, 0.6614154577255249, -0.21538130939006805, 0.036290958523750...
of setting up the routes to accept the index.php part.
[ -0.12630212306976318, 0.09501471370458603, 0.5775728225708008, 0.20631682872772217, 0.21180564165115356, -0.2787734270095825, 0.1961529403924942, -0.1685805469751358, -0.2559521496295929, -0.3635272979736328, 0.0032522084657102823, 0.19601042568683624, 0.03370627760887146, -0.2153319567441...
What are the best resources for Wordpress theme-development? I am currently in the phase of starting my own blog, and don't want to use one of the many free themes. I already have a theme for my website, so I want to read about best-practices. Any advice on how to get started would be very welcome :) --- I have now...
[ 0.13294775784015656, -0.047584231942892075, 0.5504453182220459, 0.0718490481376648, -0.11229389905929565, -0.3439708352088928, -0.17547854781150818, 0.015044750645756721, -0.3176930248737335, -0.6603025794029236, 0.11565793305635452, 0.3384358584880829, 0.0349966362118721, 0.17647010087966...
a quite new article, but anyway - it's great. It will get a follow-up in the next few days too.. * [Wordpress.org's own guide on templates](http://codex.wordpress.org/Theme_Development) Definatly a must-read for everyone new to wordpress-designing.. * ["The loop"](http://codex.wordpress.org/The_Loop) Essential kn...
[ 0.19043280184268951, 0.027002235874533653, 0.2954792082309723, 0.3074870705604553, -0.24478568136692047, -0.14000900089740753, -0.03036479651927948, 0.13797707855701447, -0.2830471992492676, -0.44015970826148987, -0.10739380121231079, 0.5318114161491394, 0.02196527272462845, 0.160938560962...
standard WordPress install. It has all of the basics and will show you some advanced techniques like including sidebar widgets. Next, in conjunction with the docs on [theme development](http://codex.wordpress.org/Theme_Development) (previously mentioned by Mark), [Blog Design and Layout](http://codex.wordpress.org/Blog...
[ 0.30377617478370667, -0.07758082449436188, 0.5460988283157349, 0.2687704265117645, 0.18822500109672546, -0.38875478506088257, -0.04662872478365898, -0.1686239093542099, -0.293693482875824, -0.7541775703430176, -0.3336893320083618, 0.573077917098999, -0.11971104890108109, -0.178529649972915...
I'm missing something here: ``` $objSearcher = New-Object System.DirectoryServices.DirectorySearcher $objSearcher.SearchRoot = New-Object System.DirectoryServices.DirectoryEntry $objSearcher.Filter = ("(objectclass=computer)") $computers = $objSearcher.findall() ``` So the question is why do the two followin...
[ -0.08078651875257492, 0.10458247363567352, 0.5046498775482178, -0.09676139056682587, -0.11716868728399277, -0.021673664450645447, 0.07516271620988846, -0.16977645456790924, -0.3750586211681366, -0.2303715944290161, -0.013248375616967678, 0.49723953008651733, -0.4129124879837036, 0.47047513...
case, the ToString method is returning the **type name**. You can force the evaluation of the variable and members similar to what EBGreen suggested, but by using ``` "Server name in quotes $($_.properties.name)" ``` In the other scenario **PowerShell** is evaluating the variable and members specified first and t...
[ -0.14691706001758575, -0.19004002213478088, 0.288484126329422, -0.048304200172424316, -0.08734292536973953, -0.18891680240631104, -0.04375206679105759, -0.40263763070106506, -0.16281817853450775, -0.44836437702178955, 0.019987057894468307, 0.6774292588233948, -0.18589895963668823, 0.256756...
> Values Property System.Collections.ICollection Values {get;}
[ 0.09932024776935577, -0.3370537757873535, 0.22635017335414886, 0.24056775867938995, 0.3312273323535919, 0.1186339408159256, 0.2654172480106354, -0.24945111572742462, -0.011333055794239044, -0.7739059329032898, -0.2038215547800064, 0.5145771503448486, -0.3189915716648102, 0.1916467100381851...
So I'm not quite convinced about OpenID yet, and here is why: I already have an OpenID because I have a Blogger account. But I discovered that Blogger seems to be a poor provider when I tried to identify myself on the [altdotnet](http://altdotnet.org) page and recieved the following message: > **You must use an Open...
[ 0.3534495234489441, -0.0015450557693839073, 0.29186803102493286, -0.05297115817666054, -0.18097974359989166, -0.1504364013671875, 0.6706372499465942, 0.3895973861217499, -0.28434211015701294, -0.8855738043785095, 0.2875317335128784, 0.3528173565864563, -0.23899786174297333, 0.2837795019149...
StackOverflow account to be associated with my new OpenID? I understand this would be easy if I had my own domain set up to delegate to a provider, because I could just change the delegation. Assume I do not have my own domain. Ideally Stack Overflow would allow you to change your OpenID. OTOH, ideally you would have...
[ -0.09518067538738251, -0.014746925793588161, 0.3083557188510895, 0.03457026928663254, -0.30649125576019287, -0.2297123819589615, 0.0921783372759819, -0.23330695927143097, -0.4084724187850952, -0.6425222754478455, 0.14649800956249237, 0.28778472542762756, -0.4299212694168091, 0.415954887866...
you change it. Most sites tie OpenIDs to real accounts, and would let you switch or at least add additional OpenIDs. Doesn't seem like you could map OpenIDs to accounts 1:1 unless the result of access is totally trivial; otherwise you're in a situation like this where you lose your existing questions, answers, and repu...
[ 0.46028661727905273, -0.11998265981674194, 0.12508374452590942, 0.4464329779148102, 0.14292646944522858, -0.2691091299057007, 0.2684801518917084, 0.3578585684299469, -0.4275895655155182, -0.700299084186554, 0.057248182594776154, 0.27216053009033203, -0.17501911520957947, 0.2504963576793670...
For .net 3.5 SP1, Microsoft have the new client profile which installs only a subset of .net 3.5 SP1 on to Windows XP user's machines. I'm aware of how to make my assemblies client-profile ready. And I've read the articles on how to implement an installer for [ClickOnce](http://msdn.microsoft.com/en-us/library/cc65691...
[ 0.3699880540370941, 0.07880104333162308, 0.5003879070281982, -0.2813968062400818, -0.15830619633197784, -0.2926449477672577, 0.25783297419548035, -0.16350223124027252, -0.40639442205429077, -0.785561203956604, -0.1122639924287796, 0.5540904998779297, -0.21877607703208923, -0.03529506176710...
of how to write one, package it or anything else. Can someone explain this process? Finding the articles I linked to alone was a painful search experience. Microsoft has now shipped the Client Profile Configuration Designer (Beta). This designer lets you edit the XML files with some limitations, this isn't a 'Google b...
[ 0.40233322978019714, -0.3139062225818634, -0.013909322209656239, -0.043697796761989594, -0.3751394748687744, -0.2864566743373871, 0.13492174446582794, 0.2058069109916687, -0.019071469083428383, -0.8854910135269165, -0.12518274784088135, 0.1578281819820404, -0.3523956537246704, 0.0122520579...
![Visual Studio folder structure](https://i.stack.imgur.com/DibJS.jpg) I need some advice as to how I easily can separate test runs for unit tests and integration test in Visual Studio. Often, or always, I structure the solution as presented in the above picture: separate projects for unit tests and integration tests....
[ 0.5778758525848389, 0.1111588254570961, -0.0895727351307869, -0.11128298193216324, -0.049149006605148315, -0.0351942703127861, 0.47733786702156067, -0.3136739134788513, -0.3813706636428833, -0.6706182360649109, -0.3506016731262207, 0.6799861788749695, 0.1707766205072403, -0.213313236832618...
example * Alt+1 runs the tests in project BLL.Test, * Alt+2 runs the tests in project DAL.Tests, * Alt+3 runs them both (i.e. all the tests in the [Tests] folder, and * Alt+4 runs the tests in folder [Tests.Integration]. TestDriven.net have an option of running just the test in the selected folder or project by right...
[ 0.5397487878799438, -0.06385286897420883, -0.12948958575725555, 0.08947928249835968, -0.29029592871665955, -0.06310974806547165, 0.38600683212280273, -0.24642446637153625, -0.018725519999861717, -0.7946918606758118, 0.12928061187267303, 0.5001347064971924, -0.16471435129642487, -0.11753427...
kind of a solution for this on my own by using keyboard command bound to a macro. The macro was recorded from the menu Tools>Macros>Record TemporaryMacro. While recording I selected my [Tests] folder and ran ReSharpers UnitTest.ContextRun. This resulted in the following macro, ``` Sub TemporaryMacro() DTE.Windows...
[ 0.2129807323217392, -0.3174929916858673, 0.33541741967201233, 0.06150047853589058, 0.1066155806183815, 0.16423477232456207, 0.3601909577846527, -0.37034109234809875, -0.0816589966416359, -0.7136027812957764, 0.16237471997737885, 0.49904298782348633, -0.06006070226430893, -0.047021262347698...
could then easily be checked in to version control and distributed to everyone who works with the project.
[ 0.20535419881343842, -0.03463510051369667, 0.1618891954421997, 0.10209234803915024, 0.18781042098999023, -0.48876166343688965, 0.20277182757854462, 0.15705104172229767, -0.06262180954217911, -0.4954306185245514, -0.4069881737232208, 0.31558582186698914, 0.017204562202095985, 0.238334968686...
I've been looking for some good genetic programming examples for C#. Anyone knows of good online/book resources? Wonder if there is a C# library out there for Evolutionary/Genetic programming? After developing [my own Genetic Programming didactic application](http://code.google.com/p/evo-lisa-clone/), I found a complet...
[ 0.6423685550689697, 0.3174082338809967, 0.19875720143318176, -0.15608225762844086, -0.03319341689348221, 0.007796675898134708, 0.0064493268728256226, 0.14720076322555542, 0.0760946273803711, -0.558153510093689, 0.1889113038778305, 0.27995094656944275, -0.37314483523368835, 0.21505057811737...
In the past I've never been a fan of using triggers on database tables. To me they always represented some "magic" that was going to happen on the database side, far far away from the control of my application code. I also wanted to limit the amount of work the DB had to do, as it's generally a shared resource and I al...
[ 0.5779662132263184, -0.059682756662368774, -0.32274898886680603, 0.16350290179252625, -0.2012556791305542, -0.044008903205394745, 0.1774030178785324, -0.013135608285665512, -0.31685104966163635, -0.3579510450363159, 0.500082790851593, 0.37284615635871887, -0.18690907955169678, 0.2192862629...
found myself in a situation where I sometimes might need to "bypass" the trigger. I felt really guilty about having to look for ways to do this, and I still think that a better database design would alleviate the need for this bypassing. Unfortunately this DB is used by mulitple applications, some of which are maintain...
[ 0.5768069624900818, 0.31324636936187744, 0.22662892937660217, -0.035675015300512314, -0.1414138376712799, -0.17397086322307587, 0.5338982343673706, -0.02995087206363678, -0.2036561667919159, -0.08931160718202591, 0.3248116374015808, 0.3556063771247864, -0.3552974462509155, 0.44864812493324...
trigger means that you're "doing it wrong"? Triggers are generally used incorrectly, introduce bugs and therefore should be avoided. Never design a trigger to do integrity constraint checking that crosses rows in a table (e.g "the average salary by dept cannot exceed X). [Tom Kyte](http://asktom.oracle.com), VP of Ora...
[ 0.6586386561393738, 0.15237998962402344, -0.09851925075054169, -0.009402528405189514, -0.004257865250110626, -0.25463294982910156, 0.49772483110427856, -0.3491019904613495, -0.24956314265727997, 0.08873008191585541, -0.02036151848733425, 0.40824252367019653, -0.4379381835460663, 0.11966467...