text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
Recently a friend of mine had gone from a high level NOC position to a developer. Before that he was just doing the help desk stuff. He has no degree, only the usual MIS/networking certifications and as far as I know only tinkers with code on the weekends. I can see where in some scenarios having a good understanding o...
[ 0.7943214178085327, 0.2233642339706421, 0.047618988901376724, -0.04947679489850998, 0.010111531242728233, -0.09304442256689072, 0.06787029653787613, 0.2785923480987549, -0.41999301314353943, -0.5358436703681946, 0.16463692486286163, 0.5478261113166809, 0.32750165462493896, 0.40979483723640...
a fairly common scenario. I've spent 12 years in I.T. and I find that as time goes on, the real income comes from being a specialist (DBA, coder, etc.) as opposed to a generalist (network admin, helpdesk). It's actually the path that my career is taking. I'm not quite a full-time DBA or developer but that's where I'm ...
[ 0.7353011965751648, 0.09895847737789154, 0.21697315573692322, -0.027046073228120804, -0.08533518761396408, 0.16478295624256134, 0.4380705952644348, 0.1713176816701889, -0.30344632267951965, -0.6879183053970337, -0.19947975873947144, 0.6478121280670166, 0.5214837193489075, 0.236505553126335...
coding career.
[ 0.3944856822490692, -0.034885164350271225, -0.45007261633872986, -0.1531110554933548, 0.3926800787448883, -0.1019228845834732, 0.10848700255155563, 0.42156076431274414, -0.2901732623577118, -0.44979146122932434, 0.14270377159118652, 0.17484167218208313, 0.1898490935564041, -0.2001451849937...
I use to be on a shared host and I could use there standard tools to look at bandwidth graph. I now have my sites running on a dedicated server and I have no idea whats going on :P *sigh* I have installed webmin on my Fedora core 10 machine and I would like to monitor bandwidth. I was about to setup the bandwidth mod...
[ 0.8086634278297424, 0.3366173207759857, 0.5568965673446655, -0.009315877221524715, -0.03029704838991165, -0.2884664237499237, 0.25201353430747986, 0.1878521591424942, -0.21055251359939575, -0.9092729091644287, 0.14307717978954315, 0.728739321231842, -0.4287412166595459, 0.4187602996826172,...
there anything I can use that is more light weight and suitable for a NOOB? 'cough' Free tool 'cough' Thanks for any help. [vnStat](http://humdi.net/vnstat/) is about as lightweight as they come. (There's plenty of front ends around if the graphs the command line tool gives aren't pretty enough.)
[ 0.3083637058734894, -0.153845876455307, 0.343002587556839, 0.27999356389045715, -0.2482021600008011, -0.06969161331653595, 0.19419842958450317, 0.4130542278289795, -0.3787629306316376, -0.6959084272384644, 0.05764377489686012, 0.3248503804206848, 0.18576478958129883, -0.26825615763664246, ...
I have a xul app that I think would be useful, and I want to deploy it. The target platform is Linux; I believe it will work on Windows/OSX as well but haven't tested. What is the best way to deploy this app? * Is using xpi packages and requiring the user to install xulrunner separately the way to go? * If I bundle xu...
[ 0.48815402388572693, 0.1768815517425537, 0.4181116819381714, 0.14421458542346954, -0.42934322357177734, -0.05447778478264809, -0.09322014451026917, 0.18705293536186218, -0.018572703003883362, -0.9341784715652466, 0.055245980620384216, 0.3120975196361542, -0.3952624797821045, 0.212904497981...
1.9 transition on Windows. It used XUL, and had some DLL based XPCOM components. The best way for making sure that you have something which will work 'out the box' is to bundle everything - the runtime and the application - into one install. There might be some duplication, but it's probably not worth the effort of sor...
[ 0.17735221982002258, -0.08747548609972, 0.42476141452789307, 0.1165427565574646, -0.336254745721817, -0.1231464371085167, -0.016541723161935806, -0.10556725412607193, -0.005856300238519907, -0.6986633539199829, -0.20932519435882568, 0.5599652528762817, -0.39027729630470276, -0.152568563818...
users, if you feel like it.
[ 0.5762365460395813, 0.04598192498087883, 0.06809038668870926, 0.24222353100776672, -0.03752443566918373, -0.03764704242348671, -0.11957020312547684, 0.3523220717906952, -0.25358712673187256, -0.6300989985466003, -0.0648326650261879, 0.6494775414466858, 0.18657544255256653, -0.1776704043149...
In ASP.NET, if I override a page lifecycle event, should I call its base method before or after doing my work? Does it even matter? ``` protected override void OnPreRender(EventArgs e) { // My code goes here base.OnPreRender(e); // Or here } ``` Yes you should care. Let's say for a moment that you need to...
[ 0.17559915781021118, -0.04835280030965805, 0.38663581013679504, 0.01960688643157482, -0.012815363705158234, -0.28637149930000305, 0.33442598581314087, -0.021867800503969193, -0.3796587288379669, -0.7942802309989929, -0.2332020103931427, 0.5716845989227295, -0.2568323016166687, -0.146701171...
Based on the edit to the question here's some more info: Yes, you should care. Sometimes you want the base classes method to fire before yours (in case of constructors), and sometimes you want it to fire after yours (destructors). It may mean the difference between whether a property or object is available or not at ...
[ 0.4900420010089874, -0.039991430938243866, 0.05130660906434059, 0.2730162739753723, -0.1510765105485916, -0.13506264984607697, 0.298173725605011, -0.31339550018310547, -0.09693901985883713, -0.6196335554122925, -0.08400902897119522, 0.6760101318359375, -0.04467175155878067, -0.015919575467...
I've been struggling with this for far too long, and I don't see any error. I've got a table that holds a bunch of locations. When I'm adding a location via my php script, I get an error of 'Wrong parameter count for mysql\_query()'. When I echo the mysql query, everything looks fine,and I can copy and and paste it...
[ 0.3191547095775604, 0.2856237292289734, 0.6407201290130615, -0.008920913562178612, 0.46092966198921204, 0.1290830373764038, 0.22454138100147247, 0.10792126506567001, -0.500070333480835, -0.4958255887031555, 0.2288307398557663, 0.29387617111206055, -0.5506605505943298, -0.006044999230653047...
run in phpmyAdmin? Sorry, Missed putting in the php, the offensive php seems pretty straight forward ``` // insert the venue $insertLoc="INSERT IGNORE INTO locastions (loc, address, city, state, zip) VALUES ('$venueName','$streetAddress', '$city', '$state', '$zip')"; echo $insertLoc; mysql_query($insertLoc)or die(mys...
[ 0.31725913286209106, -0.011803336441516876, 0.4970998167991638, -0.13026274740695953, -0.01632849872112274, -0.20683012902736664, 0.49348166584968567, 0.016969120129942894, -0.04906761273741722, -0.16015386581420898, -0.15256941318511963, 0.5880582928657532, -0.6091749668121338, -0.0267028...
What's the difference between `eq`, `eql`, `equal` and `equalp`, in Common Lisp? I understand that some of them check types, some of them check across types an all that, but which is which? When is one better to use than the others? From [Common Lisp: Equality Predicates](http://www.cs.cmu.edu/Groups/AI/html/cltl/clm/n...
[ -0.12512558698654175, 0.41815507411956787, 0.3548138737678528, 0.0037997174076735973, -0.2861323654651642, 0.03324667364358902, 0.04722250998020172, -0.1797814667224884, 0.10412951558828354, -0.37062233686447144, -0.2298096865415573, 0.560239315032959, -0.3313136696815491, -0.2992689013481...
> The `equal` predicate is true if its arguments are structurally similar (isomorphic) objects. A rough rule of thumb is that two objects are equal if and only if their printed representations are the same. > > > Two objects are `equalp` if they are equal; if they are characters and satisfy char-equal, which ignores ...
[ 0.05015471577644348, 0.37637463212013245, 0.3887008726596832, 0.10979527235031128, -0.4498860538005829, 0.21397769451141357, 0.23143163323402405, -0.2760865390300751, 0.16541193425655365, -0.6177854537963867, -0.1676090806722641, 0.3059719502925873, -0.10493889451026917, -0.348124474287033...
'b) is false. (eq 'a 'a) is true. (eq 3 3) might be true or false, depending on the implementation. (eq 3 3.0) is false. (eq 3.0 3.0) might be true or false, depending on the implementation. (eq #c(3 -4) #c(3 -4)) might be true or false, depending on the implementation. (eq #c(3 -4.0) #c(3 -4)) is false. (eq ...
[ 0.21280218660831451, 0.12767405807971954, 0.3890381455421448, -0.39651158452033997, -0.3436165750026703, 0.012075887061655521, 0.6771374940872192, -0.3906591832637787, -0.02983999252319336, -0.16864725947380066, -0.72589111328125, 0.5905774831771851, -0.7352102398872375, -0.184112459421157...
true. (progn (setq x '(a . b)) (eq x x)) is true. (eq #\A #\A) might be true or false, depending on the implementation. (eq "Foo" "Foo") might be true or false. (eq "Foo" (copy-seq "Foo")) is false. (eq "FOO" "foo") is false. (eql 'a 'b) is false. (eql 'a 'a) is true. (eql 3 3) is true. (eql 3 3.0) is false. ...
[ 0.3295134902000427, 0.3263896107673645, 0.6106381416320801, -0.23395299911499023, -0.06399564445018768, -0.19187046587467194, 0.8678914308547974, -0.4709855020046234, 0.1185460165143013, -0.20264069736003876, -0.6233528256416321, 0.8132724165916443, -0.55818772315979, -0.18006077408790588,...
'(a . b) '(a . b)) might be true or false. (progn (setq x (cons 'a 'b)) (eql x x)) is true. (progn (setq x '(a . b)) (eql x x)) is true. (eql #\A #\A) is true. (eql "Foo" "Foo") might be true or false. (eql "Foo" (copy-seq "Foo")) is false. (eql "FOO" "foo") is false. (equal 'a 'b) is false. (equal 'a 'a) is tr...
[ 0.3751356303691864, 0.4461270570755005, 0.4953838884830475, -0.2219727784395218, -0.24787931144237518, 0.2190079241991043, 0.5702497959136963, -0.6817140579223633, -0.051251038908958435, -0.13197973370552063, -0.07696408778429031, 0.5343214869499207, -0.4754830002784729, -0.081947177648544...
'a 'c)) is false. (equal (cons 'a 'b) (cons 'a 'b)) is true. (equal '(a . b) '(a . b)) is true. (progn (setq x (cons 'a 'b)) (equal x x)) is true. (progn (setq x '(a . b)) (equal x x)) is true. (equal #\A #\A) is true. (equal "Foo" "Foo") is true. (equal "Foo" (copy-seq "Foo")) is true. (equal "FOO" "foo") is f...
[ 0.3718459904193878, 0.5291119813919067, 0.6073125004768372, -0.20051860809326172, -0.29073643684387207, 0.2494158297777176, 0.5646011233329773, -0.8043169975280762, -0.04011102020740509, -0.14705219864845276, -0.02334175817668438, 0.6301531791687012, -0.46356329321861267, -0.13336589932441...
-4)) is true. (equalp (cons 'a 'b) (cons 'a 'c)) is false. (equalp (cons 'a 'b) (cons 'a 'b)) is true. (equalp '(a . b) '(a . b)) is true. (progn (setq x (cons 'a 'b)) (equalp x x)) is true. (progn (setq x '(a . b)) (equalp x x)) is true. (equalp #\A #\A) is true. (equalp "Foo" "Foo") is true. (equalp "Foo" (co...
[ 0.2588058412075043, 0.406627893447876, 0.673519492149353, -0.22694846987724304, -0.11873850226402283, 0.3011050820350647, 0.4422740936279297, -0.7402319312095642, -0.15436017513275146, -0.18640796840190887, -0.33745911717414856, 0.7327209115028381, -0.6024871468544006, -0.2200162708759308,...
We code in C# using VS2008 SP1. We have a server that runs Team System Server 2008 which we use for source control, tasks etc. The **server** is also our build machine for **Team Build**. This has been working just fine for a long time. Untill now. We get these **error messages** when trying to build one of our project...
[ 0.36793822050094604, 0.25182366371154785, 0.01336578093469143, 0.11073023825883865, -0.019326407462358475, -0.01378014124929905, 0.364560604095459, 0.03990516811609268, 0.05126750469207764, -0.7120482325553894, 0.11927542090415955, 0.4639178514480591, -0.08877140283584595, -0.3358956873416...
metadata, or is > otherwise inaccessible. Could not load > file or assembly* 'C:\Program > Files\Syncfusion\Essential > Studio\7.1.0.21\Assemblies\3.5\Syncfusion.XlsIO.Base.dll' > or one of its dependencies. *The module > was expected to contain an assembly > manifest.* > > > C:\Program > Files\MSBuild\Micros...
[ 0.45135733485221863, -0.196652352809906, 0.32067590951919556, 0.4694145619869232, 0.12882819771766663, -0.13830165565013885, -0.04621206969022751, -0.6848881244659424, -0.13591822981834412, -0.060366179794073105, 0.06636463105678558, 0.4332224726676941, -0.43905559182167053, 0.125183030962...
correct, and that the > assembly and all its dependencies are > available. > > > The referenced component > 'Syncfusion.XlsIO.Base' could not be > found. These errors are for one project with one problematic assembly reference. When I try to build the entire solution there are of course many more errors because ...
[ 0.10613390803337097, 0.23283986747264862, 0.1295146942138672, 0.19210629165172577, 0.09576401114463806, 0.035218268632888794, 0.3400717079639435, -0.3089792728424072, 0.17357613146305084, -0.7213053703308105, 0.026712488383054733, 0.5073143839836121, -0.4486593008041382, -0.230983301997184...
related to the Microsoft ReportViewer component. The references has been added via the Add Reference window, in the .NET tab, so I don't think there is anything suspicious about that. In the properties window for the assembly reference, there is no value in Culture, Description, Path, Runtime Version or Strong Name. ...
[ 0.34458011388778687, 0.1552804708480835, 0.47555044293403625, 0.06978065520524979, -0.3194411098957062, -0.16082467138767242, 0.377838134765625, 0.038894522935152054, -0.14849424362182617, -0.6786279678344727, 0.11876175552606583, 0.5719586610794067, -0.3696190416812897, 0.3201870918273926...
coworkers machine. The assembly reference properties are fine on our machines. I have tried **uninstalling** the **3rd-party component** (on the server of course), and then reinstalling it again. Didn't help. I tried to **repair** the **VS2008 installation**. Didn't help. Tried to retrieve an **earlier version** from...
[ 0.3508857190608978, 0.20878013968467712, 0.41652676463127136, -0.016470132395625114, -0.08600557595491409, 0.12473096698522568, 0.40434712171554565, -0.10134099423885345, -0.3215925395488739, -0.7857009172439575, -0.005661094561219215, 0.7624055743217468, -0.0012353358324617147, -0.0105975...
pc and on the server (see the comment I wrote about that), and there is one small difference in a line that to me appears to be a comment. I must admit that I don't understand why there is a difference at all, so maybe someone could explain that to me? I also tried running a **virus scan** on the server. Didn't help...
[ 0.15837769210338593, 0.3828197419643402, 0.19616930186748505, 0.2056325227022171, -0.018280526623129845, -0.22645798325538635, 0.06332030147314072, 0.344374418258667, -0.3118690252304077, -0.41037875413894653, 0.04645928367972374, 0.9329391717910767, -0.30180296301841736, 0.258102625608444...
the module, everything works! =) I discovered this with the help of [fuslogvw.exe](http://msdn.microsoft.com/en-us/library/e74a18c4%28VS.80%29.aspx) and the log it generated. Googled the result, and stumbled upon [this blog entry.](http://msmvps.com/blogs/carlosq/archive/2007/03/23/the-strange-case-of-error-80131018...
[ 0.635908305644989, -0.09990644454956055, 0.39858707785606384, 0.15725062787532806, 0.29996269941329956, -0.4229517877101898, 0.5495728254318237, -0.4379875957965851, -0.4270148277282715, -0.26634731888771057, -0.19834327697753906, 0.7154921293258667, -0.3458079695701599, -0.365694195032119...
is messed up (too long, maximum length is 2048 characters IIRC) then things can be odd. (iii) You've checked File permissions - have you checked permissions in the registry? For example, SyncFusion installs its license key in both the User and Machine hives - if the build server can't read one or the other, could caus...
[ 0.2112315148115158, 0.22589558362960815, 0.4822344183921814, 0.0485481396317482, 0.2540993094444275, -0.28440096974372864, 0.4978545904159546, -0.1664227545261383, -0.157538041472435, -0.615672767162323, 0.02712942287325859, 0.41939106583595276, -0.25808653235435486, 0.06060023233294487, ...
I have a very large column-delimited file coming out of a database report in something like this: ``` field1,field2,field3,metricA,value1 field1,field2,field3,metricB,value2 ``` I want the new file to have combine lines like this so it would look something like this: ``` field1,field2,field3,value1,value2 ``` I'm...
[ 0.11960308253765106, 0.1296609491109848, 0.1255984902381897, -0.3412068784236908, 0.08828873187303543, 0.13185104727745056, -0.004366804379969835, -0.2771313488483429, -0.07088728994131088, -0.48507073521614075, 0.13984353840351105, 0.3385317623615265, -0.3050559163093567, -0.1601460874080...
8 GB per file. Would there be a more efficient way of doing this? I'm not thinking in terms of speed, but in terms of memory footprint. I'm concerned that this process could die due to memory issues. I'm just drawing a blank in terms of a solution that would work but wouldn't shove everything into, ultimately, a very ...
[ -0.020765982568264008, -0.09374548494815826, 0.3634842038154602, -0.11927878111600876, 0.06350135803222656, 0.27501991391181946, 0.11194398999214172, -0.042789433151483536, -0.5612925291061401, -0.471138060092926, 0.08229254186153412, 0.47879424691200256, -0.32519033551216125, 0.2576489150...
the fields are the same as the previous line, emit both values. Otherwise, at least, you can take advantage of the fact that you have exactly two values and delete the key from your hash when you find the second value -- this should substantially limit your memory usage.
[ 0.05065077915787697, -0.023290785029530525, 0.23467011749744415, -0.10408052057027817, -0.02429092675447464, -0.08326434344053268, 0.24474069476127625, -0.09651569277048111, -0.07957346737384796, -0.21380215883255005, -0.1581621915102005, 0.4027213156223297, -0.11841564625501633, 0.0332695...
I just had a similar (but not exact) question answered. Now I need help with the question mentioned below. I want to write a regex which matches a character if its a non word, non digit and non star (\*) character. So, the characters `[0-9][a-z][A-Z] *` should not match and the others should. I tried writing `[\W[^*]...
[ 0.050732772797346115, 0.26769694685935974, 0.32023921608924866, 0.04958122596144676, 0.015803780406713486, 0.2380319982767105, 0.04863738641142845, -0.04572126641869545, -0.02500549703836441, -0.44746384024620056, -0.14044231176376343, 0.4908332824707031, -0.38288092613220215, 0.1764094233...
I've got an ASP.NET application that is trying to delete a file on a network share. The ASP.NET application's worker process is running under a domain account (confirmed this by looking in TaskManager and by using ShowContexts2.aspx¹). I've been assured by the network admins that the process account is a member of a ...
[ 0.2523220181465149, 0.12800268828868866, 0.26340994238853455, -0.03200576454401016, -0.045201126486063004, 0.07981108874082565, 0.4628913998603821, -0.03368442505598068, -0.328323096036911, -0.7304567694664001, -0.02823816053569317, 0.20692305266857147, -0.2602793276309967, 0.3926541805267...
Access to the path > '\xxxxxxx\xxxxxxx\xxxxxxx\xxxxxx.xxx' is denied. Any ideas on how to diagnose/fix this issue? ~~<http://www.leastprivilege.com/ShowContextsNET20Version.aspx>~~ Try: ``` <style type="text/css"> #banner a { float: left; } #banner iframe { float: left; } .clear { clear:...
[ 0.10745394974946976, -0.2165440022945404, 0.6281902194023132, -0.08050710707902908, 0.028606807813048363, -0.3587515354156494, 0.45825695991516113, 0.07274691760540009, -0.09934233874082565, -0.7022832632064819, -0.2403695285320282, 0.11322111636400223, -0.25909900665283203, 0.269590377807...
Using SQL Server 2005 I have a field that contains a datetime value. What I am trying to do is create 2 queries: 1. Compare to see if stored datetime is of the same month+year as current date 2. Compare to see if stored datetime is of the same year as current date There is probably a simple solution but I keep hitti...
[ 0.03072061575949192, 0.1995609998703003, 0.346894234418869, -0.25185883045196533, -0.30365556478500366, -0.021742772310972214, 0.21593229472637177, -0.1723152995109558, -0.09275803714990616, -0.5562451481819153, 0.4216321110725403, 0.27487054467201233, -0.14893949031829834, 0.2783350646495...
Will calling close on my WCF service kill all resources or set them up for GC or should I set it to null also? Firstly, WCF proxies are `IDisposable`, so you can *kind of* use `using`: ``` using(var proxy = new MyProxy()) { // see below - not quite enough // use proxy } ``` **Unfortunately**, WCF also has a buggy...
[ 0.1003112867474556, 0.16647955775260925, 0.5095669627189636, -0.305417537689209, -0.2832331359386444, -0.5547845363616943, 0.7475358843803406, -0.27345898747444153, 0.13708998262882233, -0.6145898103713989, -0.014770730398595333, 0.6555294394493103, -0.5829681158065796, 0.21984244883060455...
(in this case). Setting a field *usually* makes no difference. There are a few edge-cases (such as variables captured by multiple delegates, static fields, long-life objects, etc), but in general leave it alone. In particular, do *not* do this, as this can theoretically *extend* the life: ``` if(field != null) field ...
[ 0.21801351010799408, -0.0863267332315445, -0.0895501896739006, 0.03075602278113365, 0.07438165694475174, -0.32544195652008057, 0.32715514302253723, -0.1041620522737503, -0.19500146806240082, -0.3796408772468567, -0.40479424595832825, 0.33746591210365295, -0.3576384484767914, 0.294709444046...
I want to rewrite this query so that if @UserName gets passed in a null value then it leaves the Client\_User out of the search criteria. I only want it to search by name if the user enters a name in the username textbox on the webform. I'm not sure how to do this. ``` select * from weblogs.dbo.vwlogs where Log_time ...
[ 0.0906912162899971, 0.25764980912208557, 0.5135588049888611, -0.28799694776535034, 0.10425475239753723, -0.1833326816558838, 0.3281817138195038, -0.19743135571479797, -0.07081041485071182, -0.8567404747009277, -0.12255172431468964, 0.5260383486747742, -0.20564879477024078, 0.49887970089912...
Good day, In visual studio 2005, when I drop a webcontrol in the designer, I have to manually set the CssClass property. Is there a way to automatically set that property? The thing is, 90% of the time, I want to apply a css to my controls, but not always, so I cannot really use css style in html head. I thought about...
[ 0.27778881788253784, 0.28749170899391174, 0.23463264107704163, 0.14646169543266296, -0.39247605204582214, -0.14949218928813934, 0.3024785816669464, 0.04648939520120621, -0.41668441891670227, -0.6356248259544373, 0.3438498079776764, 0.3737603724002838, -0.24272200465202332, -0.1302462369203...
default in your css file: ie for a button ``` #page input { color: #454545; border: 1px solid #cccccc; width: 98%; } ``` and then only set the CssClass to the ones that you don't want ``` .RandomButton { } ```
[ -0.046599116176366806, -0.0652056410908699, 0.6761655211448669, 0.0013491513673216105, 0.18320153653621674, 0.1405818611383438, 0.04379209876060486, 0.1799052655696869, -0.4810372591018677, -0.7273711562156677, -0.4677410423755646, 0.21189875900745392, -0.32010379433631897, 0.0236502196639...
I came across this line in some code and can't find the syntax defined anywhere: ``` *(float *)csCoord.nX = lImportHeight* .04f; /* magic number to scale font size */ ``` If I remove the `f` from `.04f` then the compiler gives a warning about possible data loss due to a conversion from 'double' to 'float'. I ass...
[ 0.5076358914375305, 0.2893729507923126, 0.43568846583366394, -0.308694452047348, -0.14192305505275726, -0.11735320836305618, 0.29905039072036743, 0.004841637797653675, -0.13921374082565308, -0.2634681463241577, -0.1678508222103119, 0.4036065638065338, -0.32257145643234253, -0.0101883001625...
the L suffix indicates a long int. The [C++ spec for literals](http://cpp.comsci.us/etymology/literals.html) is the same.
[ 0.3194778561592102, -0.12670069932937622, 0.4260304570198059, -0.16973738372325897, -0.2261226326227188, 0.2467888593673706, -0.18185940384864807, 0.23310770094394684, -0.09924818575382233, -0.07731568068265915, -0.46773505210876465, 0.19825215637683868, -0.12644071877002716, -0.1572329849...
My table has a timestamp column named "RowVer" which LINQ maps to type System.Data.Linq.Binary. This data type seems useless to me because (unless I'm missing something) I can't do things like this: ``` // Select all records that changed since the last time we inserted/updated. IEnumerable<UserSession> rows = db.UserS...
[ -0.1549999862909317, 0.40733838081359863, 0.5670682787895203, -0.07180234789848328, 0.036947380751371384, -0.04063204675912857, -0.096634142100811, -0.30565229058265686, -0.30944499373435974, -0.8213427066802979, 0.3160625398159027, 0.17222276329994202, -0.3676513731479645, 0.3887745141983...
that changed since the last time we inserted/updated. IEnumerable<UserSession> rows = db.UserSessions.Where ( usr => usr.RowTrack > 123456 ); ``` Is this a bad way to do things? How performant is querying on a calculated column? Is there a better work-around? Also, I'm developing against Sql Server 2000 for ultimate...
[ 0.1669502705335617, 0.09642910212278366, 0.47880446910858154, -0.18035359680652618, -0.2148701697587967, -0.08395702391862869, 0.27824434638023376, -0.16924753785133362, -0.3855268359184265, -0.5457046627998352, 0.43957024812698364, 0.4410000145435333, -0.30503228306770325, 0.3601634204387...
way to handle this scenario.
[ -0.00787835568189621, -0.12549178302288055, -0.07136130332946777, 0.13781602680683136, 0.11914031207561493, -0.0014570432249456644, 0.33975163102149963, -0.10873756557703018, -0.014554904773831367, -0.0742468610405922, 0.2982628643512726, 0.23184289038181305, 0.102211594581604, -0.04833845...
The idea being that, once the brightness passes a certain level, one could switch to a different visual scheme to give greater visibility. Also, if it could be some sort of listener type thing, that would be even better, but I'll take what I can get. epatel was pretty close, I just had to change the AppleGraphicsContro...
[ 0.3046585023403168, 0.1659647524356842, 0.5611495971679688, -0.17206889390945435, -0.033634036779403687, 0.0911758691072464, 0.39744073152542114, 0.09449426829814911, -0.15021143853664398, -0.6834261417388916, 0.21769265830516815, 0.8279712796211243, 0.03273766487836838, -0.173782333731651...
line. ``` # grab the string containing the values brite_string = `ioreg -c AppleBacklightDisplay | grep brightness` # build a regex to match those vals brite_regex = /"brightness"=\{"min"=([0-9]{1,3}),"value"=([0-9]{1,3}),"max"=([0-9]{1,3})/ # match them match_data = brite_regex.match(brite_string) # extract the ...
[ -0.09053970128297806, -0.27983585000038147, 1.0311375856399536, -0.05470260977745056, 0.06830531358718872, 0.20700672268867493, 0.3299727439880371, -0.33623382449150085, 0.2104344516992569, -0.6648015975952148, -0.22641701996326447, 0.687778115272522, -0.2182985246181488, -0.14380490779876...
At the beginning of my app, I am initializing a UIViewController with a NIB. At some point, I am removing the view from the screen, then releasing it, so it no longer takes up memory. (At this point I am also saving the state of the view in the UIViewController) At a later point, I want to recreate the view and bring...
[ 0.09843641519546509, 0.0007810533861629665, 0.6682353615760803, -0.012998624704778194, 0.09363377839326859, 0.0649106577038765, 0.18411192297935486, 0.14278927445411682, 0.07161521911621094, -1.023380994796753, -0.26432132720947266, 0.5342586040496826, 0.03574097529053688, 0.33160710334777...
this not possible? To me, the obvious remedies are: 1. Don't save state in the UIViewcontroller (Where does convention dictate that I do save state?) 2. Don't release the view (maybe just release all of its subviews?) 3. Don't load my view from a NIB, create programmatically (seems to go against using IB for everyth...
[ 0.4003625214099884, -0.021092675626277924, 0.3951945900917053, 0.06007509306073189, 0.12041696161031723, -0.16281726956367493, 0.48054397106170654, -0.1926237791776657, 0.05905422568321228, -0.5288503766059875, -0.2624149024486542, 0.6317046880722046, -0.33669257164001465, 0.20540712773799...
would have to do it in code then anyway. Just design most of the views in IB, then write some code that generates just this view. Then you can call that same method again later to recreate that view when you need it. You may be able to archive it and later turn it back into an object, but that seems like an inelgant s...
[ 0.2995906174182892, -0.22294746339321136, 0.14399279654026031, 0.41222426295280457, -0.012651802971959114, 0.02761346660554409, -0.025546714663505554, -0.1756340116262436, -0.34158575534820557, -0.42021051049232483, 0.2755814790725708, 0.4634290635585785, -0.48129895329475403, 0.0641805082...
a good idea. --- OR If its a complicated view with a lot of pieces, put the view in it's own nib, and make a view controller for it. Then you can simply instatiate the view controller with the nib name, and add the controllers view as a subview to you main view. Then your view controller handles loading of the nib, ...
[ -0.0484999381005764, -0.2418942004442215, 0.4671456813812256, -0.06615578383207321, 0.06580733507871628, -0.02563348598778248, -0.269560307264328, -0.37571007013320923, -0.2658616006374359, -0.6948862671852112, -0.17836403846740723, 0.3248905837535858, -0.12732358276844025, 0.1756664663553...
So, if I'm in my home directory and I want to move foo.c to ~/bar/baz/foo.c , but those directories don't exist, is there some way to have those directories automatically created, so that you would only have to type ``` mv foo.c ~/bar/baz/ ``` and everything would work out? It seems like you could alias mv to a sim...
[ 0.5011286735534668, 0.2545420825481415, 0.26298046112060547, -0.23754966259002686, 0.2883598208427429, 0.045396625995635986, 0.11558201164007187, -0.03539307042956352, -0.2343645691871643, -0.6596744060516357, 0.01332402229309082, 0.6743625402450562, -0.45550963282585144, 0.082897983491420...
./some/path # if it doesn't work; try mkdir -p ./some/path ``` creates the directory (including all intermediate directories), after which: ``` mv yourfile.txt $_ ``` moves the file to that directory ($\_ expands to the last argument passed to the previous shell command, ie: the newly created directory). I am not...
[ 0.013698059134185314, -0.12045960128307343, 0.8058368563652039, -0.4796009957790375, 0.39743509888648987, 0.23944805562496185, -0.03357430174946785, -0.1574074923992157, -0.11744716018438339, -1.1572535037994385, -0.2236974537372589, 0.8729782104492188, -0.39557966589927673, 0.044399734586...
I have a database that uses natural keys (i.e. business oriented keys). Unfortunately, because of this, the primary keys for these objects may change over time. I am currently researching the use of NHibernate for an O/RM for this database. However, in my testing I have noticed that there is no apparent way to change...
[ 0.3345889151096344, 0.29965949058532715, 0.1061476394534111, -0.14006826281547546, 0.134881854057312, 0.023007873445749283, 0.17200568318367004, -0.11408036947250366, -0.1031968742609024, -0.3329579830169678, -0.03572951257228851, 0.6643080115318298, -0.3946646749973297, 0.5831325054168701...
{ get; set; } ... } ``` If I do a Get, change the primary key, and try and save it back to the database using NHibernate, I either receive an exception or unexpected results (depending on if I use *Save()*, *Update()*, or *SaveOrUpdateCopy()*) ``` Business b = session.Get<Business>("BusinessCode1"); b.Business...
[ 0.1950785368680954, 0.02172195352613926, 0.13961869478225708, -0.04928763955831528, -0.11117430031299591, -0.1622014045715332, 0.5240699648857117, -0.21805663406848907, -0.07599101215600967, -0.4931923747062683, -0.3064713180065155, 0.599219024181366, -0.4827364981174469, 0.339101970195770...
a delete-insert type of operation. This was more of a proof-of-concept with an existing database. Thanks for your input!
[ 0.08643434941768646, -0.14354367554187775, -0.23398785293102264, 0.4945492148399353, -0.011863144114613533, -0.27837249636650085, 0.2828823924064636, 0.17861506342887878, -0.3060762584209442, -0.1568107157945633, 0.032606467604637146, 0.4326285123825073, -0.15297937393188477, -0.0359880998...
I have a block of text, and for every regex match, I want to substitute that match with the return value from another function. The argument to this function is of course the matched text. I have been having trouble trying to come up with a one pass solution to this problem. It feels like it should be pretty simple. R...
[ 0.017823509871959686, 0.19087617099285126, 0.5972537398338318, -0.17942558228969574, -0.10224363952875137, 0.033737972378730774, 0.23816996812820435, -0.4477192759513855, -0.04061158746480942, -0.606950044631958, -0.2610653042793274, 0.23559482395648956, -0.5652076005935669, 0.098903760313...
I have two *submit* buttons in a form. How do I determine which one was hit serverside? If you give each one a name, the clicked one will be sent through as any other input. ``` <input type="submit" name="button_1" value="Click me"> ```
[ 0.2631888687610626, 0.14706161618232727, 0.4885607659816742, -0.06346505135297775, -0.21288776397705078, 0.4030722677707672, -0.021531404927372932, -0.2588067948818207, -0.2216011881828308, -0.8546508550643921, 0.2522394359111786, 0.478023499250412, -0.3490976095199585, 0.08987055718898773...
I have a simple use for RadGrid that involves binding it to a list of strings ``` i.e. using: list<string> ``` The bind works OK and the data displays in the grid. However, the header says "Item", and there are other aspects of the column I'd like to be able to customize. I've tried to set the "DataField" proper...
[ 0.28539106249809265, -0.015616745688021183, 0.4467131197452545, 0.01975438743829727, -0.15978755056858063, -0.22238357365131378, -0.08925511687994003, -0.31356140971183777, -0.22222664952278137, -0.8818671703338623, 0.1635601669549942, 0.5334426760673523, -0.33139121532440186, 0.0907163843...
know a way to bind the column to the list, or have another idea for a work-around? I think you should use a GridBoundColumn instead of the GridTemplateColumn and disable AutoGenerateColumns. E.g. the following works for me: ASPX: ``` <telerik:RadGrid ID="grid" runat="server" AutoGenerateColumns="false"> <MasterTab...
[ 0.1963459700345993, 0.04473039507865906, 0.5424498915672302, 0.02947903238236904, 0.11421557515859604, -0.289693683385849, 0.16765114665031433, -0.38419046998023987, -0.10503320395946503, -0.7451274991035461, -0.11451976746320724, 0.7158847451210022, -0.512638509273529, 0.05375514179468155...
Long time ago, I was creating a mini ORM using reflection. While reading about reflection I got a similar answer like this: [Java Reflection Performance](https://stackoverflow.com/questions/435553/java-reflection-performance) Which makes completely sense and I quit my mini orm and sharpen my CTRL+C, CTRL+V keys ( t...
[ 0.11660359054803848, 0.13018228113651276, 0.2957412302494049, -0.24711370468139648, -0.44122442603111267, -0.023071471601724625, 0.35035374760627747, -0.2872059941291809, -0.1527569442987442, -0.6289769411087036, 0.33587729930877686, 0.5485501289367676, -0.13924764096736908, -0.11796132475...
they use AOP to generate code on the fly and avoid the reflection penalty, but for my surprise, all of what I saw was pure reflection. Does it mean the most accepted ORM framework out there, did exactly what years before discourage me from continuing my naive efforts ?? :") My question is: Can someone confirm my un...
[ 0.7604106068611145, 0.20849907398223877, 0.1569259762763977, 0.16857989132404327, -0.185843363404274, -0.27688395977020264, 0.3402175009250641, -0.1998477429151535, -0.03235644847154617, -0.3648000955581665, -0.1087244302034378, 0.4543059468269348, -0.1262936294078827, -0.18922017514705658...
us have noticed nor complained about ) Are we paying the reflection penalty? If we are, I think it is **worth it!!!** Regards. Hibernate instruments your models to be hibernate aware. There are varying levels of cost for using Reflection. Constantly looking up a method for a particular class is particularly expensi...
[ 0.6069097518920898, 0.15490615367889404, 0.22923055291175842, 0.43610072135925293, -0.1580166518688202, 0.2272196114063263, 0.5567038655281067, -0.3004172146320343, -0.08472990244626999, -0.8162094354629517, 0.48568210005760193, 0.6396613121032715, 0.04334009811282158, -0.18695232272148132...
a particular class * Test each methods visibility, method signature etc. * Generate bytecode for *found* method. One factors in the numbers of methods in a typical class and that some of these operations arent trivial it becomes obvious that this can be costly. Invoking the method. -------------------- Each reflecte...
[ 0.09327342361211777, 0.018197569996118546, -0.024529436603188515, 0.4148072898387909, -0.5515373349189758, -0.27829259634017944, 0.6046497225761414, -0.2852615416049957, 0.10515137016773224, -0.6658426523208618, 0.016103670001029968, 0.4563322961330414, -0.17011958360671997, 0.065976932644...
the instance passed in isnt null and is the right type. * Check the arguments parameter includes the right amount and type of parameters. * Execute the method within a try catch. In the catch throw ITE etc. All these extras add some cost - not a lot but it does make things slower. Runtime costs ------------- In gene...
[ 0.15392076969146729, -0.05107806250452995, -0.08436328172683716, 0.2889450788497925, -0.5147210955619812, -0.06402679532766342, 0.5404255986213684, -0.08585374802350998, 0.1567256599664688, -0.6493096947669983, 0.1624137908220291, 0.43563443422317505, -0.20194141566753387, -0.0907192230224...
I am a Haskell newbie, though had a previous Lisp/Scheme experience. Right now I am looking at the examples from SICP and trying to implement them in Haskell to get more hands-on experience. In the lecture 3b authors present a function for computing the derivatives symbolically. It contains, among others, the following...
[ 0.14307934045791626, 0.002902424894273281, 0.38380399346351624, -0.3969874382019043, -0.15788093209266663, -0.03932787477970123, 0.10390171408653259, -0.3644821345806122, 0.27019813656806946, -0.6523911952972412, -0.0077183847315609455, 0.42617544531822205, -0.29442039132118225, 0.04184423...
(not (eq? exp var)))) ``` Is there a way to do same thing in Haskell, i.e. check for atomicity and symbolic equivalence to some other function? Or more general, what are the means of "disassembling" functions in Haskell? Your Scheme examples don't actually examine Scheme functions. I recently did some symbolic differ...
[ -0.16594530642032623, 0.0007402307819575071, 0.023840757086873055, -0.10116839408874512, -0.08611346036195755, -0.04679924249649048, 0.4629889726638794, -0.3127402365207672, -0.04197311773896217, -0.40397173166275024, -0.2923144996166229, 0.527428388595581, -0.5469828844070435, -0.16150358...
| Var String deriving Eq ``` Instead of discriminating using `atom?` or `eq?` you use `case` (or other pattern matching) and `==`.
[ -0.03669183701276779, -0.19703105092048645, 0.06893784552812576, -0.1861410290002823, -0.32303518056869507, -0.1308135986328125, 0.09027450531721115, -0.2123950868844986, 0.3230597972869873, -0.2527485191822052, -0.29598891735076904, 0.6615438461303711, -0.36898115277290344, -0.20416298508...
I'm trying to test my site in IE 6 using Microsoft's Win XP / IE 6 virtual machine image, but I'm unable to load any SSL site in either IE 6 or Firefox 2 inside of the virtual machine. Outside of the VM all sites load as expected, but inside it can't find the sites in either browser. Non-SSL sites load fine inside the ...
[ 0.45902979373931885, 0.16829097270965576, 0.33541491627693176, -0.04526476934552193, -0.11475732177495956, -0.3676046133041382, 0.550574541091919, 0.009310691617429256, -0.2344978004693985, -0.730620801448822, -0.15396670997142792, 0.5385119915008545, -0.46315133571624756, 0.25412788987159...
problem. I switched the DNS servers in the VM OS to use OpenDNS, and the sites came up without a problem.
[ 0.20777958631515503, 0.022678667679429054, 0.23114268481731415, 0.35605522990226746, -0.23216202855110168, -0.1620425134897232, 0.09526561945676804, 0.5006118416786194, -0.3520757257938385, -0.4369542598724365, -0.003183874301612377, 0.5880295634269714, -0.17051488161087036, 0.400853633880...
I have a string that consists of ``` "some text \\computername.example.com\admin$". ``` How would I do a replace so my final result would be just "computername" My problems appears to not knowing how to escape two backslashes. To keep things simple I would prefer not to use regexp :) EDIT: Actually looks like sta...
[ 0.20960786938667297, 0.1697341501712799, 0.23385095596313477, -0.22264887392520905, -0.024327319115400314, -0.2561951279640198, 0.48579177260398865, -0.2747930586338043, -0.13537059724330902, -0.50945645570755, -0.0330285020172596, 0.5953772068023682, -0.2547374963760376, 0.259195178747177...
marginally faster on my machine for what it is worth: ``` 12:35:24 |(19)|C:\ PS>Measure-Command {1..10000 | %{'some text \\computername.example.com\admin$'.Split('\')[2].Split('.')[0]}} Days : 0 Hours : 0 Minutes : 0 Seconds : 1 Milliseconds : 215 Ticks : ...
[ 0.43193319439888, 0.14290465414524078, 0.37811630964279175, 0.07806694507598877, 0.12046577036380768, 0.37640100717544556, 0.5581310987472534, 0.16018611192703247, -0.445685476064682, -0.676643967628479, 0.020713774487376213, 0.26736709475517273, 0.19955481588840485, 0.4719422161579132, ...
1.40740555555556E-05 TotalHours : 0.000337777333333333 TotalMinutes : 0.02026664 TotalSeconds : 1.2159984 TotalMilliseconds : 1215.9984 12:35:34 |(20)|C:\ PS>Measure-Command {1..10000 | %{'Some text \\computername\admin$' -replace '\\\\(\w+)\\(\w+)\$', '$1'}} Days : 0 Hours :...
[ -0.06226543337106705, 0.022131292149424553, 0.42247629165649414, 0.2507306635379791, -0.036581847816705704, 0.4657541513442993, 0.3912522494792938, -0.03191496059298515, -0.4954572319984436, -0.41775959730148315, -0.05227716267108917, -0.06695076078176498, 0.13847769796848297, 0.7392585873...
: 23351277 TotalDays : 2.70269409722222E-05 TotalHours : 0.000648646583333333 TotalMinutes : 0.038918795 TotalSeconds : 2.3351277 TotalMilliseconds : 2335.1277 ```
[ -0.2440347522497177, 0.025599699467420578, 0.6185259222984314, -0.03485899046063423, -0.27274414896965027, 0.44168251752853394, 0.3091077506542206, 0.10724281519651413, -0.5130087733268738, -0.2672014534473419, -0.2927946448326111, 0.38793542981147766, 0.36978843808174133, 0.54660832881927...
After opening a pipe to a process with `popen`, is there a way to kill the process that has been started? (Using `pclose` is not what I want because that will wait for the process to finish, but I need to kill it.) Don't use `popen()`, write your own wrapper that does what you'd like. It's fairly straightforward to `...
[ 0.5364672541618347, 0.07052227854728699, 0.05524086952209473, -0.1335548758506775, 0.06196180358529091, 0.25871774554252625, 0.06986255943775177, 0.15804016590118408, 0.048425111919641495, -0.8366472721099854, -0.03958876430988312, 0.3093844950199127, -0.34029218554496765, 0.49177521467208...
what `popen()` is doing. It's only a dozen or so lines long. Taken from [dzone.com](http://snippets.dzone.com/posts/show/1134) we can see an example that looks like this: ``` #define READ 0 #define WRITE 1 pid_t popen2(const char *command, int *infp, int *outfp) { int p_stdin[2], p_stdout[2]; pid_t pid; ...
[ 0.15081197023391724, -0.19173455238342285, 0.48228269815444946, -0.4712718725204468, -0.22282351553440094, 0.21563254296779633, 0.41345417499542236, -0.1666647344827652, -0.07526420801877975, -0.606370747089386, 0.09549813717603683, 0.20744085311889648, -0.554549515247345, -0.0174026992172...
close(p_stdin[WRITE]); dup2(p_stdin[READ], READ); close(p_stdout[READ]); dup2(p_stdout[WRITE], WRITE); execl("/bin/sh", "sh", "-c", command, NULL); perror("execl"); exit(1); } if (infp == NULL) close(p_stdin[WRITE]); else *infp = p_stdin[WRIT...
[ -0.30675438046455383, -0.13827160000801086, 0.7172395586967468, -0.3715788722038269, 0.15642714500427246, 0.2841407060623169, 0.16077525913715363, -0.5047615170478821, -0.04436468705534935, -0.3604458272457123, -0.5248832106590271, 0.2918516993522644, -0.5168696641921997, 0.074576303362846...
close(p_stdout[READ]); else *outfp = p_stdout[READ]; return pid; } ``` NB: Seems like popen2() is what you want, but my distribution doesn't seem to come with this method.
[ -0.02038857713341713, 0.07422509044408798, 0.568777859210968, -0.5867801904678345, 0.0730348527431488, -0.20702214539051056, 0.11799982190132141, -0.20207631587982178, 0.008648466318845749, -0.40024641156196594, -0.2086949348449707, 0.522179365158081, -0.5021792650222778, 0.115963727235794...
I'm using 2005 Windows Forms in C#. I've only been working at this for a day, so go easy please. I'd like to have a submit button that saves changes to a DataGridView. I've gotten data into the DGV and can edit, but am stuck on the Update(). I've created an .xsd named scDB and one DataTable called - SSIS Configuratio...
[ 0.07650811225175858, -0.09461905062198639, 0.5663257241249084, -0.07882563024759293, -0.0680437907576561, -0.41287437081336975, 0.15566374361515045, -0.2648399770259857, -0.3517601191997528, -1.0560128688812256, 0.2930949926376343, 0.340934157371521, -0.21200916171073914, 0.307988911867141...
stagingGrid.DataSource = myStagingTableAdapter.GetDataBy(filterName.Text.ToString()); //On Submit click: myStagingTableAdapter.Update(?What Goes Here?); ``` What gets passed to the Update method? I know it needs a dataTable, but I don't know how to reference what is in the GridView. In most code examples people def...
[ 0.28893154859542847, 0.1146230548620224, 0.28456857800483704, -0.141051784157753, 0.038431089371442795, -0.10550427436828613, -0.2513292729854584, -0.13274098932743073, -0.090008445084095, -0.9434232711791992, 0.3681613504886627, 0.39809009432792664, -0.42760929465293884, -0.11816824227571...
Data|View Datasources. Your dataset should be visible in the DataSources Window. 2. Drag a table to a (new) form. VS2005 will add a load of components and a few lines of code. The form will now have a instance of the dataset and that is your reference point for Adapter.Fill and .Update methods.
[ 0.09478606283664703, -0.3849954605102539, 0.9043949246406555, 0.23142339289188385, -0.16882722079753876, -0.15340714156627655, -0.0010839764727279544, -0.2979068160057068, -0.22739212214946747, -0.8437629342079163, -0.010586457327008247, 0.5760334134101868, -0.1973559707403183, 0.004006437...
I want to manually create a binary script and then save it as binary file. I want to append all of the following bytes and create a binary file out of them. ``` &HF0 &HF1 &HF2 ``` I want to able to do something like this : ``` Dim generateData(3) As Byte generateData(0) = &HFF generateData(1) = &HFE generateData...
[ 0.13599592447280884, -0.22534465789794922, 0.5710520148277283, -0.05135994777083397, -0.2897151708602905, -0.18112069368362427, 0.18444377183914185, -0.18350721895694733, 0.007018339354544878, -0.6690374612808228, 0.06013042479753494, 0.5940347909927368, -0.34178072214126587, 0.09750694036...
Set BinaryStream = CreateObject("ADODB.Stream") 'Specify stream type - we want To save binary data. BinaryStream.Type = adTypeBinary 'Open the stream And write binary data To the object BinaryStream.Open BinaryStream.Write ByteArray 'Save binary data To disk BinaryStream.SaveToFile FileName, adSaveCrea...
[ 0.16501474380493164, -0.1832604557275772, 0.7446008324623108, -0.35593438148498535, -0.09391462057828903, 0.09761746972799301, 0.12029187381267548, -0.26667508482933044, -0.016125641763210297, -0.7461962103843689, -0.1446184664964676, 0.6303471922874451, -0.5861296653747559, 0.190614163875...
aBuf(I \ 2) = ChrW(Buf(I + 1) * 256 + Buf(I)) Next If I = Size Then aBuf(I \ 2) = ChrW(Buf(I)) aBuf=Join(aBuf, "") Set bStream = CreateObject("ADODB.Stream") bStream.Type = 1: bStream.Open With CreateObject("ADODB.Stream") .Type = 2 : .Open: .WriteText aBuf ...
[ -0.22288119792938232, 0.12736095488071442, 0.7417773604393005, -0.4256339967250824, -0.23249199986457825, 0.20952369272708893, 0.4602735936641693, -0.5942474603652954, -0.05995352193713188, -0.8837149143218994, -0.19135282933712006, 0.4423981308937073, -0.8496471047401428, 0.24582929909229...
End With bStream.SaveToFile FileName, 2: bStream.Close Set bStream = Nothing End Sub ```
[ 0.13039177656173706, 0.10381636023521423, 0.6878734230995178, -0.1559167504310608, 0.22430634498596191, -0.21852906048297882, 0.41893643140792847, -0.08784335106611252, 0.007769864052534103, -0.5903082489967346, -0.418739914894104, 0.4708036780357361, -0.40006187558174133, 0.30549335479736...
I'm working on a javascript app that has a form with a button that processes inputs in the browser. It is important that the data never accidentally get sent to the server when the button is pushed. Situations where this might happen is the browser may not have javascript enabled or the DOM implementation may have a bu...
[ 0.32744958996772766, 0.08201433718204498, 0.16429345309734344, -0.0011438785586506128, 0.10104014724493027, -0.1482016146183014, 0.11355558037757874, -0.11117280274629593, -0.16790896654129028, -0.7136317491531372, 0.17351604998111725, 0.4476933777332306, -0.15468154847621918, -0.014185681...
some other structure which I would style to look like a button. Are there better ideas? Is there anything like a form attribute that disables data being sent from the form -- and is well implemented across browsers? Thanks ``` <input type="button"> ``` does not submit a form, unlike ``` <input type="submit"> ```
[ 0.2224658578634262, -0.012647135183215141, 0.22085227072238922, 0.26008373498916626, -0.060165345668792725, -0.43056949973106384, 0.18344061076641083, -0.14513127505779266, -0.20905493199825287, -0.6571588516235352, -0.21343541145324707, 0.3059685528278351, -0.2850338816642761, -0.22556650...
I'd like to send a custom build status email during or after the TFS build, but it doesn't look like the actual compilation status, etc. is known until after the entire process ends. Does anyone know of a way to send a custom email (other than the built-in alert email) that has the true build status? You can use the no...
[ 0.8048675060272217, 0.15064753592014313, 0.43447145819664, 0.04824357107281685, -0.07123460620641708, -0.15814454853534698, 0.16282376646995544, -0.03388407826423645, -0.4200558066368103, -0.5637363195419312, 0.0672009289264679, 0.33621352910995483, 0.15725497901439667, 0.01626140251755714...
I have this but there is an error, I don't get it :(. I'm relatively new to Java. ``` package hw; import java.util.Scanner; public class Problem1 { public static void main (String [] args) { int cost; int number; double cost_unit; double total; Scanner entrada = new Scanner(System.in); ...
[ 0.4956103265285492, -0.18824227154254913, 0.5451158881187439, -0.33959412574768066, 0.08768068253993988, 0.38165032863616943, 0.19733926653862, -0.5013399124145508, -0.12668997049331665, -0.6333867907524109, -0.23305414617061615, 0.678898811340332, -0.12512698769569397, 0.41281190514564514...
while (cost>0){ System.out.println("Please enter the amount of units to be sold"); number = entrada.nextInt(); if (number>0); cost_unit = cost * 1.4; total = cost_unit*number; System.out.printf("Cost per unit will
[ 0.1710355132818222, -0.3612794578075409, 0.48841121792793274, -0.08168798685073853, 0.3109552264213562, 0.5033084154129028, -0.21808092296123505, -0.2963196933269501, -0.09152945131063461, -0.5735735893249512, -0.32726719975471497, 0.5914691686630249, 0.3058347702026367, 0.4585443735122680...
be $ %d\n",cost_unit); System.out.printf("Cost per unit will be $ %d\n",total); } } } ``` // I just want the user to enter the cost for a product, give a number of units to be
[ 0.3635590076446533, 0.06225081905722618, 0.3385678231716156, -0.31753090023994446, 0.31076133251190186, 0.5496065616607666, -0.13474510610103607, -0.2278299480676651, 0.23592326045036316, -0.6940667033195496, -0.1439489722251892, 0.7051278352737427, -0.07892940938472748, 0.281686007976532,...
ordered, and I want the program find out the final price of the product with a 40% profit. In printf, `%d` is for a signed decimal integer, whereas `cost_unit` and `total` are doubles. You should use `%f` instead. ``` System.out.printf("Cost per unit will be $ %f\n",cost_unit); System.out.printf("Cost per unit will be...
[ 0.24397960305213928, -0.00005326301106833853, 0.3952219784259796, -0.1148211881518364, 0.15595050156116486, 0.77036052942276, -0.23705507814884186, -0.21900835633277893, -0.16128592193126678, -0.5299655199050903, -0.3339804708957672, 0.8041167259216309, -0.21090523898601532, 0.278447002172...
can anyone think of a good way to ignore the single click that comes with a double-click in Java ? I'm looking to have different behaviors for each such that: * single-click paints crosshairs on the click point * double-click selects an object on the screen, but should **not** paint crosshairs on the click point .....
[ 0.37400397658348083, 0.2221326231956482, 0.12784941494464874, 0.18726637959480286, 0.014010915532708168, -0.3006550967693329, 0.6677684187889099, 0.1392260491847992, -0.4101637601852417, -0.6807147860527039, 0.18404923379421234, 0.6940698623657227, -0.21502871811389923, -0.0739618465304374...
is maddening - I'm abandoning this solution, and using middle-click for selection instead of double-click... **EDIT:** Thanks [cgull](https://stackoverflow.com/users/23325/cgull) - this is what I was able to come up with given your confirmation that there's no easy way to do this (note that if I set the timer < 200 o...
[ -0.07835754752159119, -0.1247413232922554, 0.4699774980545044, 0.16195017099380493, 0.2636556625366211, -0.21731869876384735, 0.4044983386993408, -0.18363057076931, -0.3524215817451477, -0.3408055305480957, 0.14001226425170898, 0.7942338585853577, -0.3020600378513336, -0.08667554706335068,...
2) { System.out.println( " and it's a double click!"); wasDoubleClick = true; }else{ Integer timerinterval = (Integer) Toolkit.getDefaultToolkit().getDesktopProperty( "awt.multiClickInterval"); timer = new Timer(timerinterval.intValue(), new Action...
[ -0.03568537160754204, -0.49846598505973816, 0.4304022490978241, -0.32488664984703064, 0.060597047209739685, 0.040235623717308044, 0.5248570442199707, -0.5288074612617493, -0.19842636585235596, -0.3302069306373596, -0.16783994436264038, 0.601323664188385, -0.46320047974586487, 0.01199896913...
public void actionPerformed(ActionEvent evt) { if (wasDoubleClick) { wasDoubleClick = false; // reset flag } else { System.out.println( " and it's a simple click!");
[ 0.0006630379357375205, -0.4542373716831207, 0.27063512802124023, -0.3262290954589844, 0.15021859109401703, 0.08777588605880737, 0.6732381582260132, -0.34160730242729187, -0.12869495153427124, -0.19684773683547974, -0.13960717618465424, 0.7933942079544067, -0.4690318703651428, 0.02909921295...
} } }); timer.setRepeats(false); timer.start(); } } ``` Indeed you'll need to set up a Timer in your overridden mouseClicked() method of your MouseAdapter to detect the time interval between the two clicks. The default interval in ms can be found by querying `Toolkit.getDefa...
[ -0.04541558772325516, -0.27731963992118835, 0.7834489345550537, -0.32250380516052246, 0.437957763671875, 0.04135098308324814, 0.7113878726959229, -0.11920037865638733, -0.30889788269996643, -0.7766644954681396, -0.042707737535238266, 0.8802840709686279, -0.42189881205558777, 0.173380881547...
you have a double-click, else once the timer expires, you can process the single-click.
[ 0.34643757343292236, -0.23417337238788605, 0.3997547924518585, 0.1963365226984024, 0.3146222233772278, -0.020471397787332535, 0.03768394514918327, 0.04840221256017685, -0.3066045641899109, -0.38642218708992004, -0.19552600383758545, 0.6616660952568054, 0.09863893687725067, 0.10964319109916...
I'm trying to write some code that reads a file and ignores the line breaks (\n), so far I have: ``` c = fgetc(fp); for(int loop = 0; c != EOF; loop++) { if((c != '\n') && (c != '\\')) { buffer[loop] = c; } c = fgetc(fp); } ``` but its just not seeming to ignore the '\n' bits (not sure about ...
[ 0.3799942433834076, 0.14417096972465515, 0.05527789518237114, -0.14427076280117035, -0.01763148047029972, 0.031459350138902664, 0.6441172957420349, 0.20666982233524323, -0.0654096007347107, -0.5811659097671509, -0.10349494963884354, 0.40138205885887146, -0.32506677508354187, 0.083866253495...
about 6 hours straight and completely overlooked the incrementing, which is why I thought the \n remained still. I also didn't know about the \r, uning Linux but trying to make cross platform so this is helpful. Which operating system you are running this on? \n on Windows is two characters (\r\n) . If you only want t...
[ 0.6159223914146423, -0.19660401344299316, 0.3782386779785156, 0.13477905094623566, 0.0761282667517662, -0.1593191772699356, 0.736756443977356, -0.24683865904808044, -0.37010493874549866, -0.33044731616973877, 0.1588832139968872, 0.5397529006004333, -0.09229128062725067, 0.05315470695495605...
you get random characters in the buffer in place of '\n':s, which can well be zeroes, for instance.
[ 0.027595531195402145, -0.28159692883491516, -0.22403691709041595, -0.05175379663705826, -0.0322265662252903, 0.17205804586410522, -0.08255775272846222, 0.12603439390659332, -0.18470077216625214, -0.4048692584037781, -0.16163420677185059, 0.18605777621269226, -0.22631223499774933, 0.0118213...