text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
} //]]> </script> ``` One more question, if i pass the Script text as a variable, lets say something like: ``` <script type="text/javascript"> <%=ScriptText%> </script> ``` and my <%=ScriptText%> will be a string which i will build and assign its value to a Friend or Public variable called ScriptT...
[ 0.1804632693529129, 0.18180984258651733, 0.1125640720129013, -0.24356916546821594, 0.057169359177351, 0.0007394116255454719, 0.15628620982170105, -0.11360009759664536, -0.012859312817454338, -0.6074606776237488, 0.1312190294265747, 0.7679974436759949, -0.2006605863571167, -0.07236558943986...
general, you need to store the marker parameters in some kind of array which you will later use at-least twice: 1. when adding the overlay to the map 2. when adding it to a GLatLngBounds object to calculate the center point and zoom level The array or markers would look like an array of objects, something like: ``` ...
[ 0.050201501697301865, -0.18674109876155853, 0.8897830843925476, 0.004187189042568207, -0.1690625697374344, 0.020962344482541084, 0.10474052280187607, -0.25027450919151306, -0.10010404139757156, -0.4987633526325226, -0.0441700704395771, 0.6233928203582764, -0.36902475357055664, -0.027681518...
new GLatLng( 48.1617, -120.1718 ), new GLatLng( 48.1819, -120.1920 ), new GLatLng( 48.2021, -120.2122 ) ]; ``` The code for adding markers would look something similar to: ``` // assume that map1 is an instance of a GMap2 object // #0 -- google maps api requires us to call setCenter first before calling...
[ -0.04792464151978493, -0.23971843719482422, 1.2076516151428223, -0.09080475568771362, -0.16259555518627167, 0.11325107514858246, 0.2761441767215729, -0.42540204524993896, -0.23884762823581696, -0.7745898365974426, -0.16879789531230927, 0.6028905510902405, -0.39856868982315063, 0.2377764582...
latlng1[ i ] ); map1.addOverlay( marker ); } // #2a -- calculate center var latlngbounds = new GLatLngBounds( ); for ( var i = 0; i < latlng1.length; i++ ) { latlngbounds.extend( latlng1[ i ] ); } // #2b -- set center using the calculated values map1.setCenter( latlngbounds.getCenter( ), map1....
[ -0.14161230623722076, -0.3334532678127289, 0.8999314904212952, -0.4095326066017151, 0.027165964245796204, -0.21195490658283234, -0.037731051445007324, -0.4812363088130951, -0.12267207354307175, -0.6383010149002075, -0.34506863355636597, 0.4597265422344208, -0.2852562367916107, -0.133673906...
var latlng1 = new Array( ); </script> <script type="text/javascript"> <% do until rs.eof %> latlng1.push( new GLatLng( parseFloat( '<%= rs( "Lat" ) %>' ), parseFloat( '<%= rs( "Lng" ) %>' ) ) ); <% rs.movenext loop
[ -0.11401494592428207, -0.44252631068229675, 0.7448526620864868, -0.8078980445861816, 0.039580270648002625, 0.29723379015922546, 0.2624884247779846, -0.36408182978630066, -0.29047682881355286, -0.5761804580688477, -0.43637147545814514, 0.30785682797431946, -0.7525373697280884, 0.07643147557...
%> </script> ``` I've posted an article at: <http://salman-w.blogspot.com/2009/03/zoom-to-fit-all-markers-polylines-or.html>
[ 0.4730374217033386, -0.15110114216804504, 0.18865133821964264, -0.018004773184657097, 0.01452614739537239, 0.02310076169669628, 0.44249868392944336, 0.22673764824867249, -0.005406413692981005, -0.6470574736595154, -0.2457716464996338, 0.0041068303398787975, -0.29069775342941284, 0.04360189...
I'm currently experimenting with loading external SWF files from both an standard AS3 application, and an AIR application. It seems that the AIR application doesn't act the same way a standard SWF run by the Flash Player does. According to the [documentation](http://livedocs.adobe.com/flash/9.0_fr/ActionScriptLangRefV...
[ 0.18617472052574158, 0.22470919787883759, 0.5501539707183838, -0.38597744703292847, -0.4487946331501007, -0.09928619116544724, 0.31833410263061523, -0.5197318196296692, 0.01932133175432682, -0.6129835247993469, -0.2394898682832718, 0.7151782512664795, -0.5064572691917419, -0.06686683744192...
import flash.system.LoaderContext; public class Invoker extends Sprite { private var _ldr : Loader; public function Invoker() { _ldr = new Loader(); _ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, onChildOneComplete); var ldrC : LoaderContex...
[ -0.09359918534755707, -0.28671929240226746, 0.3878633975982666, -0.23706188797950745, -0.23981907963752747, -0.12532830238342285, 0.384601891040802, -0.4325271248817444, 0.0055513521656394005, -0.3355264961719513, -0.603807270526886, 0.7719939351081848, -0.5708447694778442, -0.116587005555...
new ApplicationDomain(ApplicationDomain.currentDomain) ); _ldr.load(new URLRequest("otherSwf.swf"), ldrC); } private function onChildOneComplete(e : Event) : void { var c1ad : ApplicationDomain = (e.target as LoaderInfo).applicationDomain; var in...
[ -0.2571720480918884, -0.11653881520032883, 0.5828072428703308, -0.41110071539878845, 0.34347614645957947, 0.1619022637605667, 0.3816361129283905, -0.19540686905384064, -0.16392061114311218, -0.6642554402351379, -0.5402928590774536, 0.45642998814582825, -0.39213600754737854, 0.6410866379737...
trace("Child One parentDomain : " + c1ad.parentDomain); trace("Invoker parentDomain : " + inad.parentDomain); trace("Child One has Invoker : " + c1ad.hasDefinition("Invoker")); trace("Invoker has Invoker : " + inad.hasDefinition("Invoker")); } } } ``` Compiling t...
[ -0.03540915995836258, 0.08408928662538528, 0.026546409353613853, -0.184304341673851, 0.6615581512451172, -0.05259781703352928, 0.2549341320991516, -0.27094757556915283, 0.19285811483860016, -0.7008138298988342, -0.3979684114456177, 0.13935129344463348, -0.1487765908241272, 0.37660163640975...
Flash Player does this output, which seems right : ``` Child One parentDomain : [object ApplicationDomain] Invoker parentDomain : null Child One has Invoker : true Invoker has Invoker : true ``` But the same code as an AIR application does a different output : ``` Child One parentDomain : null Invoker parentD...
[ -0.39272820949554443, 0.08227129280567169, 0.2559761703014374, -0.04843064770102501, 0.0789148136973381, 0.05237482115626335, -0.22279883921146393, -0.06276506185531616, -0.026914101094007492, -0.7284805774688721, -0.3641194701194763, 0.3460599184036255, -0.40389344096183777, 0.21228764951...
possible configurations (like `new ApplicationDomain(null)`, or `ApplicationDomain.currentDomain`) does exaclty what the documentation says with the SWF, but does not change the output of the AIR application. Any clue why AIR is simply ignoring the application domain passed to the loader context ? Any documentation ab...
[ 0.2278941422700882, -0.05146291106939316, 0.5144018530845642, 0.22886061668395996, 0.03497292473912239, -0.11404140293598175, 0.25964778661727905, -0.3638095557689667, -0.3298981189727783, -0.7102473974227905, -0.4340500831604004, 0.4059111475944519, -0.5746902227401733, 0.3567576706409454...
or more `ApplicationDomain`s, this behaviour forced the creation of a new `ApplicationDomain` (within the new `SecurityDomain`), ignoring the specified one (which belong to the 'main' `SecurityDomain`). There is a workaround using `URLLoader`. When loaded from bytecode (using `Loader.loadBytes`), a SWF is loaded withi...
[ 0.22171565890312195, 0.057084400206804276, 0.6599310040473938, -0.2108549326658249, -0.20594000816345215, -0.24614068865776062, 0.40550461411476135, -0.34208518266677856, -0.030603468418121338, -0.5415554046630859, -0.34172356128692627, 0.48996564745903015, -0.45365408062934875, 0.08564592...
flash.events.Event; import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; import flash.system.ApplicationDomain; import flash.system.LoaderContext; import flash.utils.ByteArray; public class Invoker extends Sprite { public function Invoke...
[ -0.14206033945083618, -0.13704009354114532, 0.4667636454105377, -0.21012698113918304, -0.19721630215644836, 0.1632830649614334, 0.30085107684135437, -0.42490503191947937, -0.10332837700843811, -0.26834845542907715, -0.5020456910133362, 0.6821194887161255, -0.4602813720703125, 0.15850782394...
uldr.addEventListener(Event.COMPLETE, onBytesComplete); uldr.load(new URLRequest("otherSwf.swf")); } private function onBytesComplete(e : Event) : void { var bytes : ByteArray = (e.target as URLLoader).data; var ldr : Loader = new Loader(); ldr....
[ -0.20366722345352173, -0.22353093326091766, 0.5660625696182251, -0.2570706605911255, -0.16681602597236633, 0.26007798314094543, 0.2802024483680725, -0.3306278586387634, -0.3014411926269531, -0.3384357690811157, -0.5416824817657471, 0.6305572986602783, -0.3618965446949005, 0.346658170223236...
var ldrC : LoaderContext = new LoaderContext(); // This property was for AIR 1.0. //ldrC.allowLoadBytesCodeExecution = true; // Since AIR 2.0, it's allowCodeImport. ldrC.allowCodeImport = true; ldr.loadBytes(bytes, ldrC);
[ -0.1282643973827362, -0.1619187295436859, 0.6621059775352478, -0.3062962293624878, -0.08945786207914352, -0.26113229990005493, 0.35865575075149536, -0.3972916901111603, 0.05599662661552429, -0.6266592741012573, -0.4113601744174957, 0.5544063448905945, -0.5928465723991394, -0.07757780700922...
} private function onChildComplete(e : Event) : void { var c1ad : ApplicationDomain = (e.target as LoaderInfo).applicationDomain; var inad : ApplicationDomain = ApplicationDomain.currentDomain; trace("Child One parentDomain : " + c1ad.parentDomain); trac...
[ -0.12710678577423096, -0.21059396862983704, 0.15690937638282776, -0.19471853971481323, 0.5700532793998718, 0.3330947756767273, 0.36905795335769653, -0.043697867542505264, 0.1410067230463028, -0.6229808330535889, -0.35313868522644043, 0.31754153966903687, -0.37212318181991577, 0.59725004434...
trace("Child One has Invoker : " + c1ad.hasDefinition("Invoker")); trace("Invoker has Invoker : " + inad.hasDefinition("Invoker")); } } } ``` Hope this helps.
[ -0.26778361201286316, 0.33053743839263916, -0.04702300578355789, -0.1171945333480835, 0.6780415177345276, 0.15144506096839905, 0.21342895925045013, -0.12443633377552032, 0.15229684114456177, -0.7115377187728882, -0.23166470229625702, 0.3638192117214203, 0.0905047357082367, 0.21685661375522...
I have the following schema in the database: * **BillingReferences** (ReferencingType *tinyint*, ReferencingId *tinyint*, ReferencedType *tinyint*, ReferencedId *tinyint*, IsActive *bit*) - where all fields (except IsActive) are part of a Unique Index. * **BillingType** (BillingTypeId *tinyint*, Name *varchar(50)*) R...
[ 0.29679858684539795, 0.14336194097995758, 0.7534689903259277, 0.04719140753149986, 0.2774848937988281, 0.18689309060573578, -0.2746623456478119, -0.1427309513092041, 0.19169661402702332, -0.7537654042243958, 0.06714749336242676, 0.29252195358276367, 0.0955299362540245, 0.37789952754974365,...
*varchar(50)*) In the future each entity will have some more different columns added but for now this is the schema for simplicity. There's a connection of (1-*) between every entity (except countries) to countries. Labels have a connection of (1-*) to Banks, PaymentProviders and PaymentOptions. And PaymentProviders ...
[ 0.31270742416381836, -0.01810578815639019, 0.930744469165802, 0.18882639706134796, 0.06665127724409103, -0.07617250829935074, 0.09036045521497726, -0.22379426658153534, -0.13713760673999786, -0.6568325757980347, 0.31195157766342163, 0.13487479090690613, -0.038811247795820236, 0.34348338842...
of extendability consideration - If we want to add another entity all we have to do is add its table and add records for it in BillingReferences and BillingType. The problem is that I can't configure a conditional foreign key between BillingReferences and each of the entities and I can't seem to configure/map it with ...
[ 0.15559762716293335, 0.17610187828540802, 0.3793410658836365, 0.09059277176856995, 0.25383225083351135, -0.322948157787323, 0.025082333013415337, -0.3078693449497223, -0.1879076510667801, -0.42486685514450073, 0.09949270635843277, 0.41933849453926086, -0.22303618490695953, -0.0316028222441...
this. I'd go with creating a seperate table for each type, unless you really have a good reason not to. The consideration you mention isn't a good one, IMHO. Having more tables DOES allow you to put foreign key constraints on your keys, and it translates nicely into the EF. It also helps performance: your big ass ref...
[ 0.15915946662425995, 0.15511740744113922, 0.19064049422740936, 0.14827977120876312, -0.09605719894170761, -0.10454251617193222, -0.06230870634317398, -0.08767580986022949, -0.27853330969810486, -0.7046304941177368, 0.17662498354911804, 0.5560258030891418, -0.24324741959571838, -0.010981203...
In [this question](http://stackoverflow.com/questions/571945/getting-a-stack-overflow-exception-when-declaring-a-large-array), someone suggested in a [comment](http://stackoverflow.com/questions/571945/getting-a-stack-overflow-exception-when-declaring-a-large-array#comment388297_571961) that I should ***not*** cast the...
[ -0.17521938681602478, 0.11310170590877533, 0.3541475236415863, -0.22495311498641968, 0.022397441789507866, -0.07407970726490021, 0.15832819044589996, -0.3759891390800476, -0.33007222414016724, -0.3238469064235687, -0.33028218150138855, 0.4893224835395813, -0.335497111082077, 0.054194834083...
this case. * It adds clutter to the code, casts are not very easy to read (especially if the pointer type is long). * It makes you repeat yourself, which is generally bad. * It can hide an error if you forgot to include `<stdlib.h>`. This can cause crashes (or, worse, *not* cause a crash until way later in some totally...
[ 0.26021891832351685, 0.09112619608640671, 0.06622344255447388, -0.09213417768478394, -0.2089226394891739, -0.19039413332939148, 0.7062549591064453, 0.07049805670976639, -0.37244823575019836, -0.3933429419994354, 0.03285639360547066, 0.34714505076408386, -0.3832455277442932, 0.2370640933513...
point is no longer relevant since there's no automatic assumption that undeclared functions return `int`. As a clarification, note that I said "you don't cast", not "you don't *need* to cast". In my opinion, it's a failure to include the cast, even if you got it right. There are simply no benefits to doing it, but a b...
[ 0.23637241125106812, 0.3085261583328247, -0.10445892810821533, -0.22947481274604797, -0.1385779231786728, -0.14349906146526337, 0.3559620678424835, -0.05747495964169502, 0.12423558533191681, -0.1987931877374649, -0.2608504593372345, 0.518307626247406, 0.03110809624195099, 0.058988448232412...
code needlessly repeats the type information (`int`) which can cause errors. It's better to de-reference the pointer being used to store the return value, to "lock" the two together: ``` int *sieve = malloc(length * sizeof *sieve); ``` This also moves the `length` to the front for increased visibility, and drops the...
[ -0.050208501517772675, 0.23683398962020874, 0.2942832410335541, -0.08150588721036911, -0.2100670337677002, 0.10351229459047318, 0.573381781578064, -0.12224074453115463, 0.0029400368221104145, -0.4974583685398102, -0.4899035692214966, 0.24953681230545044, -0.2142217457294464, -0.08745745569...
pay attention that in the general case, it should be better to write the expression as: ``` int *sieve = malloc(sizeof *sieve * length); ``` Since keeping the `sizeof` first, in this case, ensures multiplication is done with at least `size_t` math. Compare: `malloc(sizeof *sieve * length * width)` vs. `malloc(lengt...
[ -0.06908004730939865, -0.15013475716114044, 0.27049893140792847, -0.32667282223701477, -0.07868298888206482, 0.263459712266922, 0.00320878135971725, -0.24624426662921906, -0.19363394379615784, -0.6072112917900085, -0.433691143989563, 0.5356919169425964, -0.05297880992293358, -0.20901793241...
I have a Java method with the following signature: ``` public <T> List<HtmlOptionsComposite> convertToHtmlOptionsCompositeList (List<? extends T> objects, Class<T> clazz, String getValueMethodName, String getDescriptionMethodName, String getDiscontinuedMethodName) { ... } ``` The `clazz` ...
[ 0.11185795068740845, 0.07845296710729599, 0.3162859380245209, -0.06029201298952103, -0.09399045258760452, -0.25356143712997437, 0.1770460456609726, -0.30364248156547546, -0.16382737457752228, -0.4498875141143799, 0.16500522196292877, 0.44877663254737854, -0.26184016466140747, -0.0240751225...
`getClass()` on the first object in the list. That would give you a `Class<? extends T>` rather than `Class<T>` though - and in particular that means may will be some methods which are given which shouldn't be (because they're not methods on `T` itself).
[ 0.020763183012604713, -0.49812743067741394, 0.10928168147802353, 0.1405543088912964, -0.04782344773411751, -0.2002941370010376, 0.2158593237400055, 0.0005759258638136089, -0.039528049528598785, -0.5383426547050476, -0.3543669879436493, 0.44512033462524414, -0.24364334344863892, 0.023377591...
I'm having the following problem: Our users are using Macs running Mac OS Leopard to connect to an Xserve running Tiger Server (Version 10.4.11) via AFP. On the Xserve, I created a user group called "staff" (using Directory Admin) and put some user accounts into that group. Then I made the group "staff" owner of the...
[ 0.04676879569888115, 0.25501397252082825, 0.24550502002239227, -0.2026323825120926, 0.03523445874452591, 0.015892058610916138, 0.26479682326316833, -0.10642841458320618, -0.4472002387046814, -0.532694399356842, -0.2582583725452423, 0.34173181653022766, -0.5227046012878418, -0.0883845984935...
"staff" Read/Write permission, it immediately reverts to "Everyone: No Access" I'm pretty weirded out. Any pointers towards a solution would be greatly appreciated. Try looking up the effects of the setuid and setgid bits on directories. MacOSX is Unix, and it reminds me of a problem I had on HPUX about eight years ag...
[ -0.0407307893037796, -0.06158839538693428, 0.45521223545074463, 0.2250296026468277, -0.10903477668762207, -0.48695534467697144, 0.265104740858078, 0.41450822353363037, -0.14353036880493164, -0.6425716876983643, -0.40770548582077026, 0.6273632645606995, -0.09789445251226425, 0.4199268519878...
I'm using [proxool](http://proxool.sourceforge.net/) java connection pool (version 0.9.1). Everything works fine till I reach the maximum connection count. If the maximum connection count is reached proxool immediately throws an `SQLExcepion`: ``` java.sql.SQLException: Couldn't get connection because we are at maximu...
[ -0.05335497483611107, -0.24751125276088715, 0.5088703036308289, -0.21609379351139069, 0.008329321630299091, -0.11339331418275833, 0.37632855772972107, 0.17181804776191711, -0.466270387172699, -0.7065996527671814, 0.04026712104678154, 0.5635486245155334, -0.43889471888542175, -0.03403993695...
`context.xml` and I'm using [Proxool DataSource Support](http://proxool.sourceforge.net/datasource.html). I was asking the question on the proxool mailing list and I got a quick, yet unfortunately negative [answer](http://sourceforge.net/mailarchive/forum.php?thread_name=b179a41c0903060630y7512fd26j5727fce6f14b4f97%40m...
[ -0.2886464595794678, -0.0695982277393341, 0.5289791822433472, -0.12997925281524658, 0.00036972068483009934, 0.16535024344921112, 0.353604257106781, 0.30025163292884827, -0.4345889687538147, -0.6162664294242859, -0.18108606338500977, 0.3842255473136902, -0.24633260071277618, 0.4293933510780...
``` class dbview(models.Model): # field definitions omitted for brevity class Meta: db_table = 'read_only_view' def main(request): result = dbview.objects.all() ``` Caught an exception while rendering: (1054, "Unknown column 'read\_only\_view.**id**' in 'field list'") There is **no primary key**...
[ -0.11068030446767807, 0.1945609152317047, 0.28690609335899353, -0.26479849219322205, -0.4177672266960144, 0.14375397562980652, 0.4305134117603302, -0.12436363846063614, -0.1518554538488388, -0.67554771900177, -0.1677900105714798, 0.5538681149482727, -0.422914057970047, 0.29641082882881165,...
no primary key.' I assume you mean that this is a legacy table and you are not allowed to add or change columns? If so and there really isn't a primary key (even a string or non-int column\*) then the table hasn't been set up very well and performance might well stink. It doesn't matter to you though. All you need i...
[ 0.2072848677635193, 0.10574925690889359, 0.3341365158557892, 0.15382884442806244, -0.07695445418357849, -0.2113913595676422, 0.21843567490577698, -0.05153646320104599, -0.4509531855583191, -0.40771788358688354, -0.12555941939353943, 0.6719919443130493, -0.5501238107681274, 0.35291501879692...
is guaranteed to be unique then the table might be using composite primary keys. That is - it is specifying that two columns taken together will provide a unique primary key. This is perfectly valid relational modelling but unfortunatly unsupported by Django. In that case you can't do much besides raw SQL unless you ca...
[ 0.09161634743213654, 0.32973143458366394, 0.16296479105949402, 0.04820402339100838, -0.15370987355709076, -0.12476612627506256, -0.10981971025466919, -0.292917937040329, -0.26352041959762573, -0.31325626373291016, 0.057104188948869705, 0.28707030415534973, -0.44395551085472107, 0.053091745...
this is a problem that regularly arises when I write Silverlight XAML. In this case, I've made a usercontrol VerticalTabStop (code attached) that has a ToolTip attached. I instanciate a couple of my usercontrols, and then I get the debugging window and the following error: ``` Line:52 Error: Unhandled Error in Silverl...
[ -0.2706032991409302, 0.4704320430755615, 0.4592157006263733, -0.150793194770813, -0.3787834644317627, -0.19633500277996063, 0.4713193476200104, -0.3311845362186432, -0.18469679355621338, -0.32565420866012573, -0.24237355589866638, 0.2893984615802765, -0.38891351222991943, 0.073794513940811...
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="SLEntityPresenterWebPart.VerticalTabStop" d:DesignWidth="20" d:DesignHeight="27"> <Grid x:Name="LayoutRoot"> <StackPanel> <Canvas x:Name="TabStopCanvas" Height="27" Width="20"> ...
[ -0.27978774905204773, -0.2653176188468933, 0.5944007635116577, -0.10028325766324997, -0.42148715257644653, 0.27272331714630127, -0.25276318192481995, -0.4682166576385498, -0.528609037399292, -0.5119774341583252, -0.28924432396888733, 0.24367690086364746, 0.006059649866074324, -0.0068590743...
<Image x:Name="IconImg" Canvas.Left="7" Canvas.Top="9" Width="26" Height="26" Source="Contact.png" Canvas.ZIndex="5" Margin="0,-9,0,0" RenderTransformOrigin="0.5,0.5"> <Image.RenderTransform> <TransformGroup> <ScaleTransform ScaleX="0.85" ScaleY="0...
[ -0.05492117628455162, -0.43584728240966797, 0.817568302154541, -0.20022132992744446, -0.4308944344520569, 0.5832825303077698, 0.19788597524166107, -0.22482842206954956, -0.1640525609254837, -0.781568169593811, 0.09981478005647659, 0.3474932610988617, 0.1294710487127304, 0.09483315795660019...
<SkewTransform/> <RotateTransform/> <TranslateTransform X="0"/>
[ -0.17849218845367432, -0.13707278668880463, 0.726579487323761, 0.09459242969751358, -0.4279792010784149, 0.2009211778640747, 0.07900913059711456, 0.09189575910568237, 0.19831980764865875, -0.47053956985473633, -0.34281542897224426, 0.2543233036994934, -0.12850016355514526, 0.08549088239669...
</TransformGroup> </Image.RenderTransform> </Image> <Image Source="stop.png" Margin="3,0,0,0"/> </Canvas> </StackPanel> </Grid> </UserControl> ``` This is a bug in Silvelight. The way to work around it is to remove the Name
[ 0.2184000462293625, -0.35752609372138977, 0.5194482207298279, -0.1997804492712021, -0.10907354205846786, -0.23933790624141693, 0.20231570303440094, 0.07627665996551514, -0.060112010687589645, -0.7091662287712097, -0.11453581601381302, 0.47678816318511963, -0.09271981567144394, 0.2268643528...
attribute on the TextBlock in the Tooltip. I presume that you have the name there for a reason, and that not being able to refer to this element from code is going to be a problem for you. As a work around for that, try replacing the tooltip xaml with this: ``` <ToolTipService.ToolTip> <ToolTip x:Name="AltLabel" ...
[ -0.1258053481578827, 0.16329032182693481, 0.19927039742469788, -0.07460954785346985, -0.1957607865333557, -0.10082687437534332, 0.308464378118515, 0.17479002475738525, -0.05627475306391716, -0.7518747448921204, -0.16228120028972626, 0.7574878931045532, -0.17237228155136108, -0.112289696931...
Is there a way to test compile-time errors, but without actually generating the error? For example, if I create a class which is non-copyable, I'd like to test the fact that trying to copy it will generate a compiler error, but I'd still like to execute the other runtime tests. ``` struct Foo { int value_; Foo...
[ 0.3343100845813751, 0.07924935966730118, -0.010410652495920658, -0.14671440422534943, 0.25320014357566833, -0.17820949852466583, 0.4581550061702728, -0.25540709495544434, 0.07034247368574142, -0.19615955650806427, -0.17294038832187653, 0.9560513496398926, -0.5808427929878235, -0.0439219810...
to compile and run fine. ``` I guess this can't be done as simply as that, but is there an idiomatic way to do this, or should I roll my own solution (maybe using scripts compiling separate tests files and testing the results?)? N.B.: I took non-copyable only to illustrate my point, so I'm not interested in answers ...
[ 0.6464058756828308, 0.08278349041938782, -0.08724391460418701, 0.11434641480445862, -0.0705426037311554, 0.008235993795096874, 0.35279303789138794, -0.3211437463760376, -0.020552778616547585, -0.5460178256034851, 0.11405650526285172, 0.8292603492736816, -0.42868664860725403, -0.02911244519...
.\passtest.bat tests: must_fail_but_passes \ must_pass_but_fails must_fail_but_passes: @$(FAILTEST) $@.cpp must_pass_but_fails: @$(PASSTEST) $@.cpp ``` must\_pass\_but\_fails.cpp ``` struct Foo { int value_; Foo(void) : value_(0) {} private: Foo(const Foo&); const Foo& operator=(con...
[ 0.26645031571388245, 0.11439952254295349, 0.4886687994003296, -0.2543090879917145, 0.2374536097049713, 0.07823566347360611, 0.7516314387321472, -0.7000738978385925, 0.011667203158140182, -0.42794644832611084, -0.498189777135849, 0.540000855922699, -0.39769247174263, 0.0026256623677909374, ...
%errorlevel% == 0 goto pass @echo %1 FAILED :pass ``` Note that cl.exe (i.e. Visual Studio compiler) need to be in your path for this to "just work" Have fun! P.S. I doubt that this would make me famous though :-)
[ 0.3484894633293152, 0.22838588058948517, 0.35459575057029724, -0.0739395022392273, 0.002530886558815837, -0.28590312600135803, 0.8029307723045349, -0.1615859419107437, -0.07734469324350357, -0.4125068485736847, -0.1752999871969223, 0.6453196406364441, -0.246304452419281, -0.155871510505676...
.NET ClickOnce applications get deployed into a subfolder of C:\Documents and Settings\\Local Settings\Apps\2.0. In development we tend to make a large number of small changes and with regular deployments a lot of junk can accumulate into this folder. Surprisingly 'Delete Temporary Internet Files' does not remove old s...
[ 0.32379814982414246, -0.05195608362555504, 0.28344884514808655, 0.21545889973640442, -0.15062737464904785, -0.6288550496101379, 0.12091538310050964, 0.1744726151227951, -0.29548197984695435, -0.9839978814125061, -0.019316868856549263, 0.522544264793396, -0.38747963309288025, 0.100609332323...
find mage. Different versions of the sdk seems to install in different locations. On my machine it's located here, **C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mage.exe**. Another alternative is to use the publish option that makes your application available offline. You will then get an entry in your regular "...
[ 0.4910700023174286, 0.1687881052494049, 0.2480049878358841, 0.168375164270401, -0.052007973194122314, -0.3437940776348114, 0.3410519063472748, -0.19578039646148682, 0.00552331330254674, -0.7272924780845642, 0.1168496385216713, 0.7013100385665894, -0.06621408462524414, -0.0783991888165474, ...
I'm looking for (linux) command line tools that can help with video editing. I am mostly interested in: * Cutting * Transitions * Effects Any pointers would be appreciated (I know ffmpeg can do basic cutting, but not much beyond that afaik). [Avisynth](http://avisynth.org/mediawiki/Main_Page) under WINE is your best ...
[ 0.48697054386138916, 0.07199631631374359, 0.2709413766860962, 0.31293150782585144, -0.2076369822025299, -0.03151145949959755, 0.0947139635682106, -0.15441550314426422, -0.27691182494163513, -0.9656395316123962, -0.07823511213064194, 0.8783236742019653, -0.0010322463931515813, -0.1400658637...
any way you can farm the work out to an actual windows computer you'll save yourself a lot of pain. If you want to get your hands dirty you could try using the gstreamer and [Gnonlin](http://gnonlin.sourceforge.net/) to make your own CLI video app. You can actually use a language like Ruby to call gstreamer from, so y...
[ 0.8440506458282471, -0.18099407851696014, 0.4449530839920044, 0.40177926421165466, 0.06299754232168198, -0.19752919673919678, -0.010300377383828163, 0.2252804934978485, -0.4445386230945587, -0.38078609108924866, 0.002510922495275736, 0.670499861240387, -0.15996529161930084, -0.004820860922...
Many times, I find myself having to define a container for multi-dimensional data. Let's take an example: I have many Chips, each Chip has many Registers, each Register has many Cells, and each Cell has many Transistors. At some stage of my C++ program I have to read this data, and later I have to use it. I cannot u...
[ 0.14034557342529297, 0.1503545045852661, -0.03343021497130394, 0.3376609981060028, 0.06803712993860245, 0.23227299749851227, -0.2848378121852875, -0.05804900825023651, -0.1747305989265442, -0.7279280424118042, 0.21480968594551086, 0.27993690967559814, -0.3118721544742584, 0.310683727264404...
Transistors, and then a Register class that contains a vector of Cells, etc? But what if later I want to access my data by Transistor, and not by Chip? Any other way? Thank you EDIT: Forgot to mention: I cannot use boost. **Implement full classes for them. Your code will be cleaner in the end.** Whenever I ignore t...
[ 0.37151557207107544, 0.029790587723255157, 0.34514322876930237, 0.0998539850115776, -0.048168886452913284, -0.05222851783037186, 0.10990650206804276, -0.22995570302009583, -0.2751666307449341, -0.4862111806869507, 0.10098540037870407, 0.5228807926177979, -0.460305392742157, 0.3156265020370...
was surprisingly easy to do. But in the end, the code was a mess and I wasn't happy documenting it. Lesson learned again, and again, and again...
[ 0.35413458943367004, 0.25323542952537537, -0.17553240060806274, 0.24743446707725525, 0.19160017371177673, -0.07689007371664047, 0.7511516213417053, -0.11942893266677856, -0.17294441163539886, -0.26215991377830505, 0.0072245001792907715, 0.2462235540151596, 0.0016291884239763021, -0.0236222...
How to retrieve at runtime the version info stored in a Windows exe/dll? This info is manually set using a resource file. Here is a C++ way of doing it, using the standard Windows API functions: ``` try { TCHAR szFileName[ MAX_PATH ]; if( !::GetModuleFileName( 0, szFileName, MAX_PATH ) ) throw __LINE__...
[ -0.09449884295463562, -0.33131536841392517, 0.8073765635490417, -0.17221586406230927, 0.31228798627853394, -0.002659423975273967, 0.3816133439540863, -0.4314848780632019, -0.12627938389778137, -0.43629753589630127, -0.535534679889679, 0.6427428126335144, -0.29803168773651123, -0.0810804590...
if( !hMem ) throw __LINE__; LPVOID lpVersionData = ::HeapAlloc( hMem, 0, nVersionSize ); if( !lpVersionData ) throw __LINE__; if( !::GetFileVersionInfo( szFileName, 0, nVersionSize, lpVersionData ) ) throw __LINE__; LPVOID pVersionInfo; UINT nSize; if( !::VerQueryValue...
[ -0.07034832239151001, -0.3301515579223633, 0.8415929675102234, -0.4265146553516388, 0.2360786348581314, 0.165044367313385, -0.03616730496287346, -0.5219005346298218, -0.39403459429740906, -0.3873908519744873, -0.6226271390914917, 0.7456356287002563, -0.37530195713043213, -0.161959573626518...
CString strVersion; strVersion.Format( _T(" version %i.%i.%i.%i"), pVSInfo->dwProductVersionMS >> 16, pVSInfo->dwProductVersionMS & 0xFFFF, pVSInfo->dwProductVersionLS >> 16, pVSInfo->dwProductVersionLS & 0xFFFF ); GetDlgItem( IDC_ABOUT_VERSION )->SetWindowText( strAppNam...
[ -0.06340768933296204, -0.25713568925857544, 0.6393535137176514, -0.44121772050857544, -0.11179205775260925, 0.05063566192984581, 0.4313007891178131, -0.5682232975959778, -0.32234764099121094, -0.5014316439628601, -0.4756651818752289, 0.42829060554504395, -0.3143613040447235, 0.080040693283...
builds to inspect error codes and such DWORD dwErr = ::GetLastError(); // handle memory cleanup... } ``` Note that the *catch* part is purely educational - in a real situation you would properly cleanup after the memory allocation and actually use the error code!
[ 0.5489464998245239, 0.32631030678749084, -0.00015278348291758448, 0.3217910826206207, 0.03301479294896126, -0.3035833537578583, 0.6031012535095215, -0.15739017724990845, -0.03939134627580643, -0.4374999701976776, -0.15022945404052734, 0.5120943784713745, 0.0725119486451149, -0.022842049598...
I am currently writing a WPF application which does command-line argument handling in App.xaml.cs (which is necessary because the Startup event seems to be the recommended way of getting at those arguments). Based on the arguments I want to exit the program at that point already which, as far as I know, should be done ...
[ 0.08498647809028625, 0.3688221871852875, 0.43969297409057617, -0.22408246994018555, 0.0006791987107135355, -0.16969965398311615, 0.38542112708091736, -0.097294382750988, -0.17315861582756042, -0.8036589622497559, -0.11695733666419983, 0.6148722171783447, -0.21194013953208923, 0.16908487677...
which leads to errors afterwards in the method, since I expected the application not to live that long. Also the main window (declared in the StartupUri attribute in XAML) still gets loaded. I've checked the documentation of that method and found nothing in the remarks that tell me that I shouldn't use it during `Appl...
[ -0.0052659763023257256, 0.19966831803321838, 0.18283870816230774, -0.18838846683502197, 0.5520316958427429, -0.13227377831935883, 0.22940190136432648, 0.09531350433826447, -0.0016658457461744547, -0.7071232795715332, -0.42635154724121094, 0.657372772693634, -0.3248138725757599, 0.352395534...
{ base.OnStartup(e); bool doShutDown = ...; if (doShutDown) { Shutdown(1); return; } else { this.StartupUri = new
[ 0.3413071036338806, -0.32222285866737366, 0.38325035572052, -0.2746153175830841, 0.6380554437637329, -0.12301664799451828, 0.659605085849762, -0.2175152450799942, -0.03459963575005531, -0.4228420555591583, -0.42003917694091797, 0.9652987122535706, -0.21577563881874084, 0.344580739736557, ...
Uri("Window1.xaml", UriKind.Relative); } } ```
[ -0.2957499921321869, 0.11000274121761322, 0.29392680525779724, -0.4021868109703064, 0.032691411674022675, 0.01556999422609806, 0.2382824420928955, 0.44428008794784546, 0.08808767795562744, -0.7376729846000671, -0.3985668420791626, 0.5983401536941528, -0.4497166872024536, 0.5677873492240906...
I have a page with some text and links. I want to display image there itself on clicking those links. However, I am bound of not using javascript at all. All I can use is some server side component like PHP. Thanks Since you stated in a comment that you don't want to reload the page and can't use Ajax, PHP won't help y...
[ 0.5305748581886292, 0.22212538123130798, 0.1418345719575882, -0.00012507142673712224, -0.14244109392166138, -0.09334741532802582, 0.2468324899673462, 0.08636424690485, -0.18951374292373657, -0.9752562046051025, 0.16884247958660126, 0.41575610637664795, -0.21697412431240082, 0.1389566361904...
something like: ``` a img {display:none} a:visited img {display:inline} ``` so the image is hidden by default, but once the user clicks on the link, the image is displayed. If you have several images on your page, you must assign each link a different href anchor: ``` <a href="#img1">link text <img src="..."></a> <...
[ 0.11840014904737473, 0.06805957853794098, 0.4540501534938812, -0.1600104421377182, 0.07275919616222382, -0.4299299418926239, 0.5541000366210938, 0.06695087999105453, -0.44980013370513916, -0.7039670944213867, -0.4316081404685974, 0.4162825345993042, -0.360825777053833, 0.2906305491924286, ...
default, then, for example, your PHP code could generate random href anchors each time.
[ 0.4083395004272461, -0.3554089069366455, 0.22549228370189667, 0.18570078909397125, 0.017395691946148872, -0.22068335115909576, 0.009036085568368435, -0.08093278855085373, -0.2061600536108017, -0.5670492053031921, 0.08631538599729538, 0.487894207239151, -0.30620142817497253, 0.0442168004810...
I am learning how to use [mechanize](http://wwwsearch.sourceforge.net/mechanize/), a Python module to automate interacting with websites. One feature is the automated handling of cookies. I would to want to dump cookies from a `mechanize.Browser` instance for debugging purposes, but I can't seem to figure this out mys...
[ -0.24594728648662567, -0.005512735340744257, 0.40059149265289307, 0.06480859220027924, -0.1393757462501526, -0.27584657073020935, 0.5951809883117676, -0.20408405363559723, 0.22490432858467102, -0.9107232093811035, -0.1352636218070984, 0.7502740025520325, -0.16786298155784607, -0.0285852383...
comment=None, comment_url=None, rest={}, rfc2109=False)] >>> ```
[ 0.17900201678276062, 0.14851559698581696, 0.15762561559677124, -0.11300735920667648, -0.0006462712772190571, -0.16353890299797058, 0.27317485213279724, 0.1074228286743164, -0.17071883380413055, -0.4977946877479553, -0.34847787022590637, 0.49611222743988037, -0.5141699314117432, 0.325647145...
What solutions are there to avoid writing repetitive code? For example code generators, etc. More specifically for translating objects between the several tiers of my application (from one service to another, from the service to the client (ObservableCollections etc)). Of course more generic solutions are also welcom...
[ 0.8248978853225708, -0.254729688167572, 0.41505929827690125, 0.44789060950279236, -0.02505667693912983, -0.08986715227365494, 0.14799195528030396, -0.08112018555402756, -0.4868534803390503, -0.6945616006851196, -0.021757060661911964, 0.7143535017967224, -0.25236833095550537, 0.065385341644...
Is there an attribute that hides a member (specifically a property) from `typeof(MyType).GetProperties()` in .net? I'm looking for a quick fix - i.e. not creating custom attributes etc.. thanks No. Reflection allows one to see everything, including members marked private. (In the end reflection uses the same metad...
[ 0.4582476019859314, 0.020955948159098625, 0.01837269589304924, 0.08343321084976196, -0.05174089968204498, -0.3248381018638611, 0.4077819287776947, -0.057484906166791916, -0.18859970569610596, -0.2103034406900406, 0.0267558041960001, 0.592941403388977, -0.2280588150024414, 0.215550571680068...
Is there any way to bundle a certificate in my application - and then use that to perform HTTP GET/POST using a `NSURLRequest`? I.e. the certificate should not be used for other HTTP traffic on the device, only by my application. Cheers No. Reflection allows one to see everything, including members marked private. ...
[ 0.378848135471344, 0.3000026047229767, 0.6097467541694641, 0.05630376189947128, -0.202058345079422, -0.42569655179977417, 0.3383965790271759, -0.15775561332702637, -0.29569801688194275, -0.15211796760559082, 0.059500552713871, 0.41260188817977905, 0.1351776421070099, 0.1278865486383438, ...
I would like to write a wrapper class with all operators overloaded such that I can detect when we write/read or modify its contents. For instance: ``` probe<int> x; x = 5; // write if(x) { // read x += 7; // modify } ``` Anyone already did that? If not which operators must I overload to be sure I dont mis...
[ 0.09434569627046585, -0.10141772776842117, -0.007224562112241983, -0.1348389983177185, 0.11559650301933289, -0.2294302135705948, 0.19590157270431519, -0.39015763998031616, 0.04814131557941437, -0.838801920413971, 0.008219396695494652, 0.4700622260570526, -0.47864237427711487, -0.0223695393...
the behavior of your program can change.
[ 0.5678668022155762, -0.05677168071269989, -0.21054323017597198, 0.14830628037452698, 0.24345625936985016, -0.0280036311596632, 0.3138697147369385, 0.09661779552698135, -0.12632544338703156, -0.8015097975730896, 0.1329379826784134, 0.41471439599990845, -0.25768840312957764, -0.0013911616988...
I have code to delete a record from mysql, displayed in a table via php, and subsequently delete the table row from the page. The record is deleted, however nothing changes in the page or the DOM, and it should change instantly. Here is the javascript code to delete from the DOM ``` function deleteItem(layer, url) { ...
[ 0.24817411601543427, 0.1393817663192749, 0.7511488795280457, -0.07162342220544815, 0.12109977006912231, -0.1008802205324173, 0.41307497024536133, -0.2834410071372986, -0.13999539613723755, -0.685018002986908, -0.34617719054222107, 0.30144232511520386, -0.3894481956958771, 0.260934829711914...
if(xmlHttp.responseText == 'result=true') { var row = document.getElementById(layer); row.parentNode.removeChild(row); } } else if (xmlHttp.readyState==1 || xmlHttp.readyState=="loading") {
[ -0.10533758997917175, -0.29658347368240356, 0.5047511458396912, -0.14848577976226807, 0.13851943612098694, -0.012737704440951347, 0.12039263546466827, -0.46364840865135193, -0.018179820850491524, -0.4729847013950348, -0.5929201245307922, 0.35875558853149414, -0.34705811738967896, 0.1733759...
document.getElementById(layer).innerHTML="loading"; } } xmlHttp.open("GET",url,true); xmlHttp.send(null); } function deleteRec(layer, pk) { url = "get_records.php?cmd=deleterec&pk="+pk+"&sid="+Math.random(); if (confirm("Confirm Delete?")) { deleteItem(layer, url); } } ``` Whic...
[ -0.1216144934296608, -0.2800998091697693, 0.7216377854347229, 0.24281083047389984, -0.05456061288714409, -0.1636178195476532, 0.03877919912338257, -0.3153749406337738, -0.3245292007923126, -0.39887306094169617, -0.7533934712409973, 0.4526495635509491, -0.07475153356790543, 0.41997209191322...
record. The resultant html is fine(obviously since the record is deleted) ``` <a href="#" onclick="deleteRec('article_260343387801', '260343387801')">DELETE</a> ``` But the page is not updated in any way. Why? I just threw your code into a test page and it works for me when I remove the: ``` document.getElementB...
[ 0.45145270228385925, 0.40952980518341064, 0.3994513750076294, -0.04629984870553017, -0.041160158812999725, -0.2744053304195404, 0.7755380868911743, -0.40442872047424316, -0.5579979419708252, -0.3925651013851166, -0.16353008151054382, 0.5709307789802551, -0.41796138882637024, -0.00696963630...
- you should check what actually gets output to `xmlHttp.responseText` Edit 2: Your PHP code never actually returns 'result=true' in a manner which your responseText will recognise. You have: ``` if($cmd=="deleterec") { mysql_query('DELETE FROM AUCTIONS WHERE ARTICLE_NO = ' . $pk); } ``` so you will delete the ...
[ -0.0013611507602036, 0.1708320826292038, 0.5380986928939819, 0.015448679216206074, -0.3808003067970276, -0.16628076136112213, 0.6067787408828735, -0.5776077508926392, -0.03661493584513664, -0.48217254877090454, -0.1166442260146141, 0.5758105516433716, -0.5016021728515625, -0.14789912104606...
null; if (window.XMLHttpRequest){ try{ objXMLHttp = new XMLHttpRequest(); }catch (e){ objXMLHttp = false; } }else if (window.createRequest){ try{ objXMLHttp = new window.createRequest();
[ -0.24032320082187653, -0.33176442980766296, 0.44322147965431213, -0.40571874380111694, -0.039902810007333755, 0.1967582255601883, 0.4301593005657196, -0.19755733013153076, -0.022337881848216057, -0.7953922152519226, -0.5497318506240845, 0.34969452023506165, -0.5311369299888611, 0.112495064...
}catch (e){ objXMLHttp = false; } }else if (window.ActiveXObject){ try { objXMLHttp = new ActiveXObject("Msxml2.XMLHTTP"); }catch (e){ try { objXMLHttp = new ActiveXObject("Microsoft.XMLHTTP");
[ -0.209323912858963, -0.4297652542591095, 0.5252181887626648, -0.29771631956100464, 0.056892476975917816, 0.0660143569111824, 0.19626592099666595, -0.1528494507074356, -0.10611101239919662, -0.703120231628418, -0.5095982551574707, 0.4099642336368561, -0.6399303078651428, -0.0721965134143829...
}catch (e){ objXMLHttp = false; } } } return objXMLHttp; } function deleteItem(layer, url) { var xmlHttp=GetXmlHttpObject(); if(xmlHttp==null) { alert("Your browser is not supported?"); } xmlHttp.onreadystatechange = function() { if(xmlHttp.readyState==4 || xm...
[ 0.12298502027988434, -0.37068280577659607, 0.7142056822776794, -0.09507003426551819, 0.08070007711648941, 0.038261182606220245, 0.4391486942768097, -0.24625325202941895, -0.07871971279382706, -0.5632537603378296, -0.6323994398117065, 0.4709571301937103, -0.5866052508354187, 0.1464604139328...
if(xmlHttp.responseText == 'result=true') { var row = document.getElementById(layer); row.parentNode.removeChild(row); } //document.getElementById(layer).innerHTML=xmlHttp.responseText; } else if (xmlHttp.readyState==1 || xmlHttp.readyState=="loading")...
[ -0.19065241515636444, -0.3096131682395935, 0.6041684746742249, -0.12649688124656677, 0.07935721427202225, 0.11517943441867828, 0.1315862536430359, -0.5477811694145203, -0.17643651366233826, -0.46661970019340515, -0.5320509672164917, 0.47325754165649414, -0.3031015396118164, 0.0783991143107...
//document.getElementById(layer).innerHTML="loading"; } } xmlHttp.open("GET",url,true); xmlHttp.send(null); } function deleteRec(layer, pk) { url = "get_records.php?cmd=deleterec&pk="+pk+"&sid="+Math.random(); if (confirm("Confirm Delete?")) { deleteItem(layer, url); } } </script> <table> ...
[ -0.0062920949421823025, -0.16787424683570862, 0.749556839466095, 0.08615149557590485, -0.09336487948894501, -0.13582347333431244, 0.2653798758983612, -0.35779377818107605, -0.4461776912212372, -0.6696698665618896, -0.2459205538034439, 0.6049684882164001, 0.09349802136421204, 0.247103154659...
I've written a little Ruby script that requires some user input. I anticipate that users might be a little lazy at some point during the data entry where long entries are required and that they might cut and paste from another document containing newlines. I've been playing with the [Highline](http://rubyforge.org/pro...
[ 0.4409552812576294, 0.16834397614002228, 0.14476244151592255, -0.04361620545387268, -0.2930985689163208, 0.013534968718886375, 0.42773041129112244, -0.07216887176036835, -0.08230075985193253, -0.4981517493724823, 0.127055823802948, 0.5819454193115234, -0.13807770609855652, 0.05704456940293...
the author uses in his example: (from highline-1.5.0/examples) ``` #!/usr/local/bin/ruby -w # asking_for_arrays.rb # # Created by James Edward Gray II on 2005-07-05. # Copyright 2005 Gray Productions. All rights reserved. require "rubygems" require "highline/import" require "pp" grades = ask( "Enter test scores (...
[ 0.0557745024561882, 0.2926705479621887, 0.284707248210907, 0.21243131160736084, -0.2500193417072296, -0.07666397094726562, 0.4958890378475189, -0.7611706256866455, -0.24928997457027435, -0.16827207803726196, -0.28080064058303833, 0.24248549342155457, -0.5045360326766968, -0.134759247303009...
final answer. # # You can set _gather_ to an Integer to have an Array of exactly that # many answers collected, or a String/Regexp to match an end input which # will not be returned in the Array. # # Optionally _gather_ can be set to a Hash. In this case, the question # will be asked once for each key and the answers ...
[ 0.06556612998247147, -0.13479070365428925, 0.5646932125091553, 0.16388541460037231, -0.1445678472518921, 0.2134704291820526, -0.020892195403575897, -0.5212945342063904, -0.3804628252983093, -0.587722897529602, -0.15295030176639557, 0.5499314665794373, -0.12381806969642639, -0.2516519427299...
have to do yourself.
[ 0.5454405546188354, 0.317101389169693, -0.4863867163658142, 0.056207701563835144, -0.10845359414815903, 0.3614324927330017, 0.2915725111961365, -0.24065516889095306, -0.06113278865814209, -0.48719531297683716, 0.061121296137571335, 0.3383890688419342, -0.07811868190765381, -0.1006194055080...
I'm working on an application that makes a lot of HTTP "Web Services" requests, some of which can be rather large XML files. Right now the HTTP request is made on a second thread, so the GUI/Form is not locked up. But it is still unable to give the user feedback as to the progress of the request. I've been using the ...
[ 0.5697659254074097, 0.012690562754869461, 0.4314929246902466, 0.09444531798362732, -0.03959748148918152, -0.286272257566452, 0.08916723728179932, -0.05427800118923187, -0.3235028386116028, -0.7525314688682556, -0.12285962700843811, 0.31685009598731995, -0.12209033221006393, 0.1719139218330...
files, over 3G/GPRS. Without a progress bar or some type of feed back this will be very unpleasant to use. Is there any other (possibly 3rd party) framework or Class I can use? Please don't post code that works of Desktop .Net, and assume it works on CF, thanks. Here's what the author uses in his example: (from hig...
[ 0.31947410106658936, 0.4682556688785553, 0.3876960575580597, -0.09123893082141876, -0.2632562518119812, 0.01699827052652836, 0.6232686638832092, -0.44917571544647217, -0.26580846309661865, -0.38778215646743774, -0.08587007969617844, 0.4170377254486084, -0.8496764302253723, -0.0053408839739...
lambda { |ans| ans =~ /^-?\d+$/ ? Integer(ans) : ans} ) do |q| q.gather = "" end say("Grades:") pp grades ``` General documentation on `HighLine::Question#gather` (from highline-1.5.0/lib/highline/question.rb) ``` # When set, the user will be prompted for multiple answers which will # be collected into an Array o...
[ 0.12129149585962296, -0.15672284364700317, 0.46667540073394775, -0.1540835052728653, -0.22518813610076904, 0.22253327071666718, 0.11789815872907639, -0.6516596078872681, -0.060256022959947586, -0.08396191895008087, -0.21866503357887268, 0.7386565208435059, -0.38263562321662903, -0.25872799...
be asked once for each key and the answers will be returned in a # Hash, mapped by key. The <tt>@key</tt> variable is set before each # question is evaluated, so you can use it in your question. # attr_accessor :gather ``` These seem to be your main options w/in the library. Anything else, you'd have to do yourself.
[ 0.19746416807174683, -0.09598036110401154, 0.28032824397087097, 0.19295166432857513, 0.04445650428533554, 0.07138990610837936, 0.102066770195961, -0.22762756049633026, -0.19691872596740723, -0.5588634014129639, -0.3388221561908722, 0.7155324220657349, -0.1119782105088234, -0.26351714134216...
I am trying to copy a selection of text from vim to another windows application...say firefox or notepad for example. However I can't seem to do this with the `y` command. I have windows hotkeys enabled so by pressing `ctrl-c` I can achieve this but was hoping to get rid entirely of these windows commands in Vim. Is t...
[ 0.5116755962371826, 0.21600444614887238, 0.5502176880836487, 0.18782436847686768, -0.13175365328788757, -0.07199222594499588, 0.0609094500541687, 0.2440681904554367, -0.048156943172216415, -0.4594446122646332, -0.10060114413499832, 0.6982401609420776, -0.2997558116912842, 0.448989331722259...
the system clipboard. This works on most platforms (Vim instances that are not directly attached to an X server on unix are a bit more difficult).
[ 0.15913130342960358, -0.411007285118103, 0.6109814643859863, 0.5765913128852844, 0.004021186847239733, -0.3260972499847412, -0.22696556150913239, 0.317536860704422, -0.21754227578639984, -0.8297943472862244, -0.037602778524160385, 0.6931082606315613, -0.13369636237621307, 0.095411382615566...
How can I select `count(*)` from two different tables (call them `tab1` and `tab2`) having as result: ``` Count_1 Count_2 123 456 ``` I've tried this: ``` select count(*) Count_1 from schema.tab1 union all select count(*) Count_2 from schema.tab2 ``` But all I have is: ``` Count_1 123 456 ``` ``` SELECT...
[ 0.01596060022711754, 0.1254291981458664, 0.36641520261764526, -0.2218564748764038, -0.010815613903105259, -0.06669699400663376, 0.07568100094795227, -0.4933493435382843, -0.18320243060588837, -0.7039777040481567, 0.010953442193567753, 0.35020965337753296, -0.4927520453929901, 0.06880740076...
FROM tab2 ) AS count2 FROM dual ```
[ -0.40097856521606445, -0.060933347791433334, 0.09360016882419586, -0.5084407925605774, -0.49229303002357483, -0.11160056293010712, 0.38298317790031433, -0.13278888165950775, -0.27674582600593567, -0.1593116819858551, -0.5178653001785278, 0.3284967541694641, -0.5623924136161804, -0.04978666...
Again a regex question. What's more efficient? Cascading a lot of Regex.Replace with each one a specific pattern to search for OR only one Regex.Replace with an or'ed pattern (pattern1|pattern2|...)? Thanks in advance, Fabian It depends on how big your text is and how many matches you expect. If at all possible, put ...
[ 0.26485809683799744, -0.3358732759952545, 0.3369714915752411, 0.17767900228500366, -0.29064124822616577, 0.10457706451416016, 0.1788448691368103, -0.09418366104364395, -0.2715074121952057, -0.7926273941993713, -0.0994865670800209, 0.4403626620769501, -0.607144832611084, -0.2611762881278991...
have several patterns with literal text at the front, there is an optimization to create a set of possible start characters. All others are ignored quickly. In general, you might want to consider reading [Mastering Regular Expressions](https://rads.stackoverflow.com/amzn/click/com/0596528124) which highlights general ...
[ 0.19272659718990326, -0.1404253989458084, 0.08492524176836014, 0.18468251824378967, -0.08200781047344208, -0.0615333616733551, 0.47476962208747864, -0.09569810330867767, -0.4112852215766907, -0.6739066243171692, -0.12189295887947083, 0.5475412607192993, -0.10258850455284119, -0.41569823026...
it finds the first " then it will always go to the end of the line by default and then start backing up until it finds another ". The [Mastering Regular Expressions](https://rads.stackoverflow.com/amzn/click/com/0596528124) book heavily goes into how to avoid this.
[ -0.38170838356018066, -0.2741696238517761, 0.34094005823135376, 0.02425847016274929, 0.18007062375545502, -0.19519619643688202, 0.45054152607917786, -0.006335862446576357, -0.3500869870185852, -0.12236132472753525, -0.5824488401412964, 0.30614474415779114, -0.31688547134399414, -0.18207673...
I've been doing mainly SQL and front-end HTML/CSS stuff for the past 4 years. I've done a quite a bit of (procedural) coding in a BASIC-like language, too. I do not have formal CS training (I have an econ degree). Now I'm switching gears to OOP in C# .NET full-time. In order to ramp up, I've been reading about fundame...
[ 0.7972664833068848, 0.5829717516899109, -0.13941854238510132, -0.18229272961616516, -0.24451424181461334, 0.0397348627448082, 0.21232683956623077, 0.5169850587844849, -0.21717610955238342, -0.7643975019454956, -0.0358206182718277, 0.4231437146663666, 0.2303171306848526, -0.2236490398645401...
somewhat backwards. I feel like I need to familiarize myself with the available tools in C# and .NET *before* I can truly benefit from learning about how best to apply them. The part I think I'm missing is sitting down and getting familiar with the .NET framework by actually doing some programming. I need to get expos...
[ 0.3599683344364166, 0.3449299931526184, -0.005550466012209654, -0.06965193897485733, -0.25644221901893616, -0.08262339234352112, 0.49573007225990295, 0.11710578948259354, -0.3584612011909485, -0.5900074243545532, 0.14144209027290344, 0.6706560850143433, 0.21293535828590393, 0.0171426050364...
them the fundamentals. Thanks! <http://www.asp.net/learn/mvc-videos/> storefront covers everything from design to testing. Should get you started quickly. <http://codebetter.com/blogs/karlseguin/archive/2008/06/24/foundations-of-programming-ebook.aspx> Shows some basic concepts but they are very useful. Includes a...
[ 0.5474295616149902, 0.32983869314193726, -0.09357496351003647, 0.31643372774124146, -0.17945028841495514, 0.0546010322868824, 0.38981786370277405, 0.18134251236915588, -0.14087027311325073, -0.526919960975647, -0.17306824028491974, 0.48368364572525024, 0.23201103508472443, 0.02612117677927...
I've been told to write a dialog in C# which must be instantiated from an unmanaged c++ dll. We do this in other places in our code by simply adding a managed c++ class to the C++ project, then calling the C# dll from the managed c++ class. However I'm finding that doesn't work for me from where I have to do it. I thin...
[ 0.2289901077747345, 0.13387222588062286, 0.6282567381858826, 0.1189723014831543, 0.015303995460271835, -0.09700720757246017, 0.27213919162750244, 0.14528533816337585, -0.23244264721870422, -0.27856284379959106, -0.22573158144950867, 0.5574331283569336, -0.5429874062538147, 0.25895833969116...