text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
could try rasterizing it (painting it to a BufferedImage at 300dpi) and then printing that image. Hacky, and bad for performance (huge rasterized file sent to printer instead of vector data), but at least you won't have font problems. To rasterize it, create a BufferedImage that is 4.17x (300/72) the size of your on-s...
[ -0.012040355242788792, -0.13983497023582458, 0.5333468317985535, 0.13879022002220154, -0.11785203218460083, 0.1510179489850998, 0.14231830835342407, -0.32383930683135986, -0.14475056529045105, -0.9301536679267883, 0.29848381876945496, 0.7197660803794861, -0.214407816529274, -0.420163363218...
process, please chime in!
[ 0.24048015475273132, 0.3603421151638031, 0.33183717727661133, 0.33043015003204346, 0.1860663890838623, 0.3351885676383972, 0.3279915750026703, 0.14414459466934204, -0.41377103328704834, -0.5732567310333252, 0.07829666882753372, 0.22600175440311432, -0.13146506249904633, 0.4979236423969269,...
Is it possible to create anonymous delegates in vb.net version 8 or earlier? If so, could someone provide an example of the syntax? Thanks. In VB 9.0 you can create single line lambda expressions ``` Dim del = Function (x) x + 42 ``` In VB 10.0 (not yet released). You will be able to create both multiline function ...
[ 0.24546752870082855, -0.24150924384593964, 0.7480164170265198, 0.2924121916294098, -0.2352064698934555, -0.19361262023448944, 0.2429981678724289, -0.1995178610086441, -0.3796904683113098, -0.424513041973114, -0.07634799182415009, 0.6964892148971558, -0.38600999116897583, -0.029684076085686...
for pre- VB 9.0 No, there is no way prior to VB 9.0 to create lambda expressions / anonymous delegates in VB.
[ 0.014356071129441261, 0.04663929343223572, 0.09242961555719376, 0.29200419783592224, -0.04976519197225571, -0.2006683051586151, 0.09006278216838837, -0.09110603481531143, -0.11738996207714081, -0.13570266962051392, -0.018282361328601837, 0.4195655882358551, -0.5132927298545837, -0.03445237...
I'm working with ASP.NET Webforms and I need to create an report as a Excel file. That should be easy, by changing the ContentType, but I need to dynamically add formulas to some cells. Any Ideas? PS: The format of the excel file should be XLS not XLSX. I recommend [SpreadsheetML](http://msdn.microsoft.com/en-us/li...
[ 0.5704143047332764, 0.17516972124576569, 0.21574170887470245, 0.20320506393909454, -0.1735699474811554, -0.22488035261631012, 0.022784758359193802, -0.011173492297530174, -0.033246658742427826, -0.8326698541641235, 0.06749974936246872, 0.3916970193386078, -0.2118760496377945, -0.3255330920...
SpreadSheetML with the new Xml format used for Excel in Office 2007. It's not. SpreadSheetML works as far back as OfficeXP, and even in a limited sense in Office 2000. If nothing else, the SpreadSheetML link at the beginning of this post also includes a short overview of other options for create Excel files.
[ -0.19291363656520844, 0.12425058335065842, 0.721958339214325, 0.23729920387268066, -0.17113523185253143, -0.6246094703674316, -0.0337703637778759, 0.15240614116191864, -0.1451687067747116, -0.6414692401885986, 0.18257145583629608, 0.22801734507083893, -0.12573754787445068, -0.0879478156566...
I'd like to create a routine that does some logging, takes some other actions, and then throws an Exception. I'd like this routine to be called from many different locations. However, creating Exceptions in this routine means they will have this routine in their stack trace. I would rather the stack trace not report th...
[ 0.5799597501754761, 0.10429052263498306, -0.14663664996623993, -0.23606476187705994, 0.06579619646072388, -0.19256223738193512, 0.2656886875629425, -0.2034372240304947, -0.09696764498949051, -0.5582410097122192, -0.08373717963695526, 0.567035973072052, -0.395963191986084, -0.07744210958480...
I **carp** in Java? You can set the stack trace of any exception you want to throw: ``` import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class CarpTest { public static void main(String[] args) { new CarpTest().run(); } public void run() { methodThatCarps(...
[ 0.3186858594417572, -0.047738660126924515, 0.09860067069530487, -0.05245109274983406, 0.1134854182600975, 0.5233772993087769, 0.3010849058628082, 0.08597423136234283, -0.39760032296180725, -0.8683239221572876, -0.06497737765312195, 0.634524941444397, -0.39400750398635864, 0.257069528102874...
new RuntimeException(message); e.fillInStackTrace(); List<StackTraceElement> stack = new ArrayList<StackTraceElement>(Arrays.asList(e.getStackTrace())); stack.remove(0); e.setStackTrace(stack.toArray(new StackTraceElement[stack.size()])); throw e; } } ``` This will print th...
[ -0.13622602820396423, -0.19611702859401703, 0.6323054432868958, -0.325970321893692, 0.21522538363933563, 0.19795742630958557, 0.44066864252090454, -0.4510829448699951, -0.506718099117279, -0.895945131778717, -0.3429528474807739, 0.566623330116272, -0.5299695134162903, 0.190861776471138, ...
done with greates care.
[ 0.02192254737019539, 0.3388787806034088, 0.020623749122023582, 0.05346328765153885, -0.18080729246139526, -0.3590410053730011, 0.29306188225746155, -0.1282838135957718, 0.4786817729473114, -0.6488564014434814, 0.10070410370826721, 0.4525044858455658, 0.09038948267698288, 0.2058554738759994...
I have a chicken-egg problem. I would like too implement a system in PHP in a OOP way, in which two classes would play important roles: Database and Log. My idea was to build up the connection by the Database class, which would have public methods eg. runQuery(sUpdateQuery), doInsert(sInsert), etc. The Log class would ...
[ 0.07331029325723648, 0.15928088128566742, -0.0281935166567564, 0.15401101112365723, -0.142432302236557, -0.05237768217921257, 0.04480082914233208, 0.15558016300201416, -0.26781904697418213, -0.49636152386665344, 0.4645775854587555, 0.3262006938457489, -0.32885825634002686, 0.14545433223247...
I would not like to use the Database class's doInsert(sInsert) method inside the logDatabaseQuery method. I would like to keep it simple - and just use one instance of the database connection object, and from the loggeras well, if it is possible. For many people Singleton model would be the first idea to choose, but ...
[ 0.15728479623794556, -0.06818580627441406, 0.13763853907585144, 0.19615375995635986, -0.18985319137573242, 0.018719738349318504, -0.07993955165147781, 0.06562290340662003, -0.16887520253658295, -0.8048120141029358, 0.3697027564048767, 0.6441044807434082, -0.3103529214859009, 0.166004970669...
the database, but to files or e-mails as well. Any ideas, how this should / could be done in the nicest, OOP friendly way? I was thinking about a common parent abstract class, or about using interfaces as well, but finally could not figure out the proper way :( What I would like to know is a suggestion for a correc...
[ 0.3552415072917938, 0.14403361082077026, -0.02783019095659256, 0.6055366396903992, 0.07162162661552429, -0.11569872498512268, 0.037425875663757324, 0.25982677936553955, -0.10792729258537292, -0.5197539925575256, 0.16282708942890167, 0.6030282378196716, -0.17445868253707886, 0.1682786494493...
depend on this lower-level class. It doesn't -- itself -- have raw SQL in it. It depends on a lower-level class. High-level access does application queries, it uses low-level access **and** the logger.
[ 0.15188206732273102, 0.08204642683267593, 0.2311416119337082, 0.5132488012313843, 0.1539892554283142, -0.10031022131443024, -0.14803965389728546, 0.08051025122404099, 0.07155504822731018, -0.5154975056648254, -0.04702937230467796, 0.47587862610816956, -0.35161906480789185, 0.04952219873666...
Below is code which includes a variadic function and calls to the variadic function. I would expect that it would output each sequence of numbers appropriately. It does when compiled as a 32-bit executable, but not when compiled as a 64-bit executable. ``` #include <stdarg.h> #include <stdio.h> #ifdef _WIN32 #define ...
[ -0.034002672880887985, -0.16404485702514648, 0.6410555839538574, -0.47487902641296387, -0.06874454766511917, 0.21371956169605255, 0.1700717955827713, -0.8333066701889038, -0.2560766041278839, -0.5904703140258789, -0.31944891810417175, 0.6200432777404785, -0.41248050332069397, 0.14538590610...
= va_arg(args, size_t); printf("Value=" SIZE_T_FMT "\n", val); } va_end(args); } int main(int argc, char** argv) { (void)argc; (void)argv; dumpargs(1, 10); dumpargs(2, 10, 20); dumpargs(3, 10, 20, 30); dumpargs(4, 10, 20, 30, 40); dumpargs(5, 10, 20, 30, 40, 50); retu...
[ -0.5327252745628357, 0.21121597290039062, 0.5725914239883423, -0.4574027955532074, -0.03173459693789482, 0.7094799280166626, 0.508044958114624, -0.427717000246048, -0.3522152304649353, -0.21399341523647308, -0.4020005464553833, 0.6151541471481323, -0.40352147817611694, 0.1128530353307724, ...
reason the variadic function pulls `size_t` out is because the real-world use of this is for a variadic function that accepts a list of pointers and lengths. Naturally the length argument should be a `size_t`. And in some cases a caller might pass in a well-known length for something: ``` void myfunc(size_t pairs, ......
[ 0.1785092055797577, -0.2775028944015503, 0.40566274523735046, -0.3696148693561554, -0.040224913507699966, 0.19476665556430817, 0.47983628511428833, -0.511461615562439, -0.31746137142181396, -0.4177537262439728, -0.39721518754959106, 0.6793665885925293, -0.40808412432670593, 0.3084796071052...
size_t); process(ptr, len); } va_end(args); } void user(void) { myfunc(2, ptr1, ptr1_len, ptr2, 4); } ``` Note that the `4` passed into `myfunc` might encounter the problem described above. And yes, really the caller should be using `sizeof` or the result of `strlen` or just plain put the number ...
[ 0.03893629461526871, -0.1373777538537979, 0.6723842620849609, -0.4298829138278961, 0.1621057689189911, 0.15888170897960663, 0.4681384265422821, -0.3673391044139862, -0.32416266202926636, -0.437423437833786, -0.3338615894317627, 0.9050504565238953, -0.42158690094947815, 0.336160272359848, ...
that provides type safety. However, I would like to document this problem, and collect more detailed information as to exactly why this problem exists on this platform and manifests as it does. So basically, if a function is variadic, it must conform to a certain calling convention (most importantly, the caller must cl...
[ 0.06053849682211876, 0.3029019832611084, 0.2094939649105072, 0.010891501791775227, -0.14599661529064178, 0.023534374311566353, 0.4898741543292999, -0.38792097568511963, -0.32024142146110535, -0.18305297195911407, -0.25960373878479004, 0.3643626272678375, -0.5088101625442505, 0.160024464130...
parameters, and then after that use the stack. I am guessing that this is the case even for variadic functions (which does strike me as odd since it would make the va\_\* macros more complicated). On x86, the standard C calling convention is the use the stack always.
[ 0.07831805944442749, -0.19114841520786285, 0.30143648386001587, -0.219450443983078, -0.06707261502742767, -0.26952341198921204, -0.1673235297203064, -0.09123460948467255, -0.2487909495830536, -0.08515110611915588, -0.16097690165042877, 1.0747066736221313, -0.47493067383766174, 0.0485820174...
I am trying to create a little growl like div for a site. It works great in Firefox, but not IE6 (haven't tried IE7, but I still need to support IE6). In Firefox: Centered text with image floated to right side of div In IE6: Centered text with image to the left of text. I've tried switching the img and span tag order...
[ 0.3456772267818451, -0.14854542911052704, 0.5570547580718994, -0.28008395433425903, -0.6117356419563293, -0.012176424264907837, 0.20791557431221008, -0.188729390501976, 0.0750238448381424, -0.7215587496757507, -0.07200933992862701, 0.7126064896583557, -0.29732969403266907, -0.3091157078742...
<span class="text">Grrrrrr.......</span> </div> ``` In css: ``` #growl { background-color:yellow; text-align:center; position:absolute; top:0; left:0; width:98%; padding:10px 0; margin-left:1%; z-index:10; border:1px solid #CCCCCC; } #growl > .text { font-size:120%; font-...
[ 0.04929344356060028, 0.08485893905162811, 0.7748396992683411, -0.3009977638721466, -0.31347426772117615, -0.014166210778057575, 0.48508697748184204, -0.2933485805988312, -0.05369159206748009, -0.6732262372970581, -0.503890872001648, 0.7547332644462585, -0.43470585346221924, -0.305936396121...
For context, we are storing most of our data as JSON strings. This works very well with Hadoop on the backend and is easy to handle in Ruby on the front end. My data types fit the natural pattern for inheritance. For simplicity, lets say I have a class Pet and a process FeedPet that feeds a pet. I also have a process ...
[ 0.47849464416503906, 0.07005558907985687, -0.016401560977101326, 0.10624554753303528, -0.04398130998015404, 0.09815029054880142, 0.20039062201976776, -0.2668777108192444, -0.07452798634767532, -0.6453779935836792, 0.13669916987419128, 0.3825381398200989, -0.38799697160720825, 0.10776551812...
is have Pet and Dog extends Pet, with Dog having an additional method "getLeash()", but I can't figure out how to map this to JSON. Instead, I have a class Pet with a species data hashmap, so the WalkDog process would call pet.getSpeciesData("leash") instead of dog.getLeash(). I can create a Dog extends Pet, and I ca...
[ 0.3322654068470001, -0.3733077943325043, 0.18442340195178986, -0.14441075921058655, 0.21788662672042847, -0.25786927342414856, 0.24947738647460938, -0.5620304942131042, 0.002225558739155531, -0.4808094799518585, -0.2008173167705536, 0.4016248285770416, -0.6906288862228394, 0.20898723602294...
field. The WalkDog process can do this because it knows all of its input is going to be Dogs, so it can read it as a Dog and write it back out as a Dog. Is there any way to serialize java objects to JSON such that I can preserve their type? I'm thinking something like Rails single table inheritance, but it would have...
[ 0.5699085593223572, -0.13144101202487946, -0.06689206510782242, -0.06038139387965202, -0.09365516155958176, -0.13865947723388672, -0.05284489691257477, -0.1881510317325592, -0.2633396089076996, -0.36042654514312744, 0.05764368921518326, 0.5089172124862671, -0.6590014696121216, -0.190833806...
be needed (like XML Schema for xml; since that's basically a generic type system). This has same problems as ORM has: Hibernate has to use ugly work-arounds (n+1 - way joins, "super tables" or discriminator fields). Or another way to put it: data mapping/binding is not quite the same as object serialization/deserializ...
[ 0.33050692081451416, -0.3772537112236023, 0.22702188789844513, 0.04484670236706734, -0.2126561999320984, -0.5443833470344543, 0.47783952951431274, -0.5297372341156006, -0.07181483507156372, -0.6872901320457458, -0.23929159343242645, 0.5671371221542358, -0.5781698226928711, 0.05254248529672...
dog = mapper.readValue(jsonString, Dog.class); ``` So anyway: Jackson project has [feature request for doing just this](http://jira.codehaus.org/browse/JACKSON-91), which allow you to do what (I think) you want. However, this solution will mostly work for Java, as there is no standard way of passing Object type info...
[ 0.29757431149482727, 0.0829956904053688, 0.03633258491754532, 0.046316858381032944, -0.1649840772151947, 0.08954936265945435, 0.3952082693576813, -0.39063718914985657, -0.25583386421203613, -0.46452760696411133, -0.1041928380727768, 0.18120025098323822, -0.6347153782844543, -0.153721615672...
of polymorphic types. It should work with non-Java systems too, given that you can fully configure details of how type information is to be included; and is NOT limited to using Java class names.
[ 0.040209367871284485, -0.029014626517891884, -0.04685305431485176, 0.19006066024303436, 0.0653446838259697, -0.17275868356227875, 0.00802719034254551, 0.007975866086781025, -0.21455754339694977, -0.5565124750137329, -0.14572641253471375, 0.2723443806171417, -0.6985206604003906, -0.18785190...
This came up while talking to a friend and I thought I'd ask here since it's an interesting problem and would like to see other people's solutions. The task is to write a function Brackets(int n) that prints all combinations of **well-formed** brackets from 1...n. For Brackets(3) the output would be ``` () (()) ()()...
[ 0.2901468873023987, 0.019341640174388885, 0.2832700312137604, -0.37664464116096497, -0.1398448497056961, -0.07389261573553085, 0.10219361633062363, -0.9530099630355835, -0.06873732060194016, -0.4719916880130768, 0.09221836179494858, 0.9259675741195679, -0.4790099561214447, 0.11042511463165...
} } private void Brackets(string output, int open, int close, int pairs) { if((open==pairs)&&(close==pairs)) { Console.WriteLine(output); } else { if(open<pairs) Brackets(output + "(", open+1, close, pairs); if(close<open) Brackets(output + ")", open, close+1, pa...
[ 0.21773481369018555, -0.0800996646285057, 0.44521743059158325, -0.3512416481971741, 0.009116621688008308, -0.2171255648136139, 0.30850791931152344, -0.6790355443954468, 0.06372032314538956, -0.42445239424705505, -0.2039453536272049, 0.8822410106658936, -0.2370295524597168, 0.19573849439620...
than the desired number of pairs, and you can never add more closing brackets than opening brackets..
[ 0.24931754171848297, 0.1935434639453888, 0.21072421967983246, -0.17015519738197327, -0.06105174869298935, 0.017523081973195076, 0.38069266080856323, -0.5416094064712524, -0.22637328505516052, -0.7180129289627075, -0.10142052173614502, 0.5894627571105957, 0.10232874751091003, 0.143912225961...
I have a php web page with 15 fields. The user will use it to upload images. I tested this by uploading 15 jpg images, each about 2 M, without any problems. On the day I launch, I will be moving this web page to another Linux shared hosting environment (still not sure which). Are there some web hosting environments tha...
[ 0.5238336324691772, 0.11971615254878998, 0.7450204491615295, -0.056103747338056564, -0.3095874488353729, 0.36830538511276245, -0.024317607283592224, -0.29202085733413696, -0.5332581400871277, -0.5280218720436096, 0.13679158687591553, 0.40057241916656494, -0.10138106346130371, -0.0746994316...
uploaded files * [`post_max_size`](http://www.php.net/manual/en/ini.core.php#ini.post-max-size), which limits the total size of posted data, including file data * [`max_input_time`](http://www.php.net/manual/en/info.configuration.php#ini.max-input-time), which restricts the length of time the script is allowed to proce...
[ 0.09485867619514465, -0.31815794110298157, 0.599624514579773, 0.250351220369339, -0.03379590064287186, 0.07606223970651627, 0.19215576350688934, -0.06473201513290405, -0.43942809104919434, -0.6898294687271118, -0.3675866723060608, 0.4430801570415497, 0.10774778574705124, -0.100744433701038...
I am having an issue when trying to destroy an active record instance. It involves the following AR ``` class Client < ActiveRecord::Base has_many :phone_numbers, :dependent => :destroy has_many :email_addresses, :dependent => :destroy has_many :user_clients , :dependent => :destroy has_many :users, :...
[ 0.1535022258758545, 0.41428759694099426, 0.23783013224601746, -0.2162291258573532, -0.03307734429836273, -0.19880050420761108, 0.5374904274940491, -0.405630886554718, -0.33305782079696655, -0.6261401176452637, 0.12401457875967026, 0.7704195976257324, -0.4028741121292114, 0.3028272092342376...
greatly appreciated! It's not finding your Instruction model. Make sure it's in the models directory, appropriately named, extends `ActiveRecord::Base`, etc. Also, you should remove the `:dependent => :destroy` from the `belongs_to :client` line in the UserClient model, unless you really want deletion of a user\_clien...
[ -0.17888934910297394, -0.20712721347808838, 0.045664798468351364, 0.17603452503681183, 0.32729634642601013, -0.3006942570209503, 0.41533634066581726, 0.2074085772037506, -0.056285347789525986, -0.7797170281410217, -0.41302981972694397, 0.6694971919059753, -0.15662647783756256, -0.132439807...
How do i get rid of the body in my tabControl? and how do i add and remove tabpages? I need to add/remove tabpages in code but hide the body in code or in the editor. I tried making the tabControl hight <20 but no matter what it has a line showing how wide it is. I tend to use the `strings` program (with the '`-a`' opt...
[ 0.665142297744751, 0.02470826730132103, 0.33667564392089844, 0.0039680288173258305, -0.35387736558914185, 0.000044410688133211806, 0.3230527341365814, -0.16867269575595856, -0.1856713443994522, -0.4238928258419037, -0.2125920057296753, 0.5726847648620605, -0.37738677859306335, -0.092066362...
been compiled with a variety of versions of GCC over a period of years (actually, I'm quite startled to find so many versions in a single library). Another library contains: ``` cg: Sun Compiler Common 11 Patch 120760-06 2006/05/26 acomp: Sun C 5.8 Patch 121015-02 2006/03/29 iropt: Sun Compiler Common 11 Patch 120760...
[ 0.16358159482479095, 0.37710705399513245, 0.2374035120010376, 0.03404718264937401, -0.0962846502661705, -0.28335654735565186, -0.03407662734389305, -0.10382477194070816, -0.38955187797546387, -0.45297977328300476, -0.29523059725761414, 0.5775851607322693, -0.3042660653591156, -0.1251129806...
does anyone know of a Java library to fetch webpages through https? Take a look at [HttpClient](http://hc.apache.org/httpcomponents-client-ga/)
[ 0.3038373589515686, -0.004169747233390808, 0.04817898944020271, 0.06097070500254631, -0.2279399037361145, -0.30105119943618774, 0.293894499540329, 0.18157492578029633, -0.5573750138282776, -0.4430260956287384, -0.025753265246748924, 0.31416574120521545, -0.07404262572526932, -0.08257312327...
I'm working on a game in OpenGL and here's what I'd like to do: 1. During an iteration of game logic, access texels of a texture for computations. 2. Still during the same logic interation, possibly modify the texels of the texture. 3. Render the game scene with the current version of the texture. 4. Start another ite...
[ -0.06970512121915817, 0.11934032291173935, 0.5609126091003418, -0.08142128586769104, 0.04787259176373482, -0.030294269323349, 0.14164850115776062, -0.03171108663082123, -0.1296442151069641, -0.7924466133117676, 0.08902043849229813, 0.8030601739883423, -0.15772645175457, 0.08314058184623718...
system memory with texel information that I can mess around with, and generate a new OpenGL texture from it every iteration. That seems like a bad move. Any help? There are several possible ways to do this. 1. If you don't need any non-textured data to modify your texture you could use a fragment shader. ([ping-pong ...
[ 0.058023709803819656, -0.13585682213306427, 0.6254045367240906, 0.08650420606136322, -0.23059910535812378, 0.02204662747681141, 0.04080457612872124, -0.07370074093341827, -0.1519663780927658, -0.9265821576118469, -0.004469066392630339, 0.9722825884819031, -0.2146477848291397, 0.00273450324...
infos about that can be found [here](http://developer.nvidia.com/object/fast_texture_transfers.html).
[ 0.12862306833267212, -0.30597031116485596, 0.4783395528793335, 0.35927510261535645, -0.0027525348123162985, -0.27397385239601135, -0.44930654764175415, 0.2974722981452942, -0.6627697944641113, -0.9296802878379822, -0.12648506462574005, 0.2709457576274872, 0.16264863312244415, 0.15713939070...
Consider such function: ``` function Test($foo, $bar) { ... } ``` We can call it: ``` Test -foo $null Test ``` How can I know when the -foo was omitted, and when it was $null? If you are using Powershell V2 or later, you can use the $PSBoundParameters variable which is a dictionary that lists all bound paramete...
[ 0.30104416608810425, 0.020034177228808403, 0.0560288242995739, -0.011526335030794144, -0.051469579339027405, -0.17280660569667816, 0.31174230575561523, -0.038805823773145676, 0.0053680757991969585, -0.420122891664505, 0.01747634820640087, 0.5460416078567505, -0.4241694509983063, 0.01235817...
What is the purpose of ObservableCollection raising a PropertyChange of "Item[]"? Is this something I should be doing if I have a class that implements INotifyCollectionChanged? Do WPF controls use this PropertyChange of "Item[]" somehow? `ObservableCollection` implements both `INotifyCollectionChanged` and `INotifyP...
[ -0.030475759878754616, -0.23429255187511444, 0.5585287809371948, -0.02238275483250618, 0.0608646534383297, -0.004460528492927551, -0.020874934270977974, -0.2735561728477478, -0.4292510449886322, -0.3432152271270752, 0.01728799194097519, 0.6280019879341125, -0.35661882162094116, 0.070076458...
method: ``` protected override void InsertItem (int index, T item) { CheckReentrancy (); base.InsertItem (index, item); OnCollectionChanged (new NotifyCollectionChangedEventArgs ( NotifyCollectionChangedAction.Add, item, index)); OnPropertyChanged (new PropertyChangedEventArgs ("Count")); ...
[ -0.2565942108631134, -0.11880172789096832, 0.41225743293762207, 0.024864787235856056, 0.3845903277397156, -0.056773871183395386, 0.22790397703647614, -0.4716844856739044, 0.041899729520082474, -0.19909361004829407, -0.2873390018939972, 0.6035373210906982, -0.36430805921554565, 0.2690676152...
I seem to have ran into a road block. We are using MVVM with Prism and have a View that requires an Ink Canvas. I've create a StrokeCollection that is being bound from my ViewModel to the View. I am able to set the collection from my viewmodel but changes are not coming up to the ViewModel while the user draws. Is ther...
[ 0.3614298701286316, -0.08999268710613251, 0.9327654838562012, -0.12395384162664413, 0.06870751082897186, 0.13325147330760956, -0.24301938712596893, -0.5384339094161987, -0.13618700206279755, -0.7954857349395752, 0.2775413691997528, 0.48966553807258606, -0.22539547085762024, 0.2778737246990...
} set { _strokes = value; OnPropertyChanged("Signature"); } } ``` Here is my XAML binding line: ``` <InkCanvas x:Name="MyCanvas" Strokes="{Binding Signature, Mode=TwoWay}" /> ``` For some reason apparently the InkCanvas never notifies the ViewModel of any change. The problem with y...
[ 0.04835880920290947, 0.26094716787338257, 1.0696903467178345, -0.1586304008960724, 0.06191138178110123, -0.10641583800315857, 0.09847122430801392, -0.5310983657836914, 0.09022007882595062, -0.659771740436554, -0.0930180698633194, 0.47214826941490173, -0.3416781723499298, 0.0151018444448709...
and the `InkCanvas` won't do *anything* with it. So: 1. You need to create a single `StrokeCollection` 2. You need to assume the contents of the collection will change, not the collection itself Example code: ``` public class ViewModel : INotifyPropertyChanged { private readonly StrokeCollection _strokes; p...
[ 0.03486659750342369, -0.38948172330856323, 0.8650190234184265, -0.026314090937376022, 0.27840518951416016, 0.11622151732444763, -0.21460266411304474, -0.5740017890930176, -0.16390444338321686, -0.8471382260322571, -0.09775170683860779, 0.533923864364624, -0.39484578371047974, 0.16175130009...
}; } public event PropertyChangedEventHandler PropertyChanged; public StrokeCollection Signature { get { return _strokes; } } private void OnPropertyChanged(string propertyName) { var handler = PropertyChanged; if (handler !=
[ 0.07748429477214813, -0.6195966005325317, 0.4329804480075836, -0.2002129852771759, 0.3697584569454193, 0.11834131181240082, 0.23515579104423523, -0.4375450015068054, -0.08105294406414032, -0.31525295972824097, -0.17627303302288055, 0.9011598825454712, -0.17709442973136902, 0.29276341199874...
null) { handler(this, new PropertyChangedEventArgs(propertyName)); } } } ``` And XAML: ``` <InkCanvas Strokes="{Binding Signature}"/> ```
[ 0.03793029859662056, 0.06724594533443451, 0.6524124145507812, -0.2679828107357025, 0.21420256793498993, -0.12758304178714752, 0.2893838584423065, -0.7495249509811401, -0.016420837491750717, -0.3800056576728821, -0.3846359848976135, 0.6279622316360474, -0.45263534784317017, 0.13305972516536...
Consider such function: ``` $missed = "{716C1AD7-0DA6-45e6-854E-4B466508EB96}" function Test($foo = $missed, $bar = $missed) { if(!$foo) { throw "error" } if(!$bar) { throw "error" } } ``` I whould like to call this function this way ``` Test -foo $foo -bar $bar ``` But if $foo or $bar is $n...
[ -0.03124987706542015, -0.042281851172447205, -0.11385221034288406, -0.007822588086128235, -0.08755233138799667, 0.08101248741149902, 0.6529831886291504, -0.3704532980918884, 0.21770718693733215, -0.5252341032028198, -0.05626834183931351, 0.290383905172348, -0.45706063508987427, 0.012379566...
this: ``` $params = @() if ($foo) { $params += "-Foo","`$foo" } if ($bar) { $params += "-Bar","`$bar" } Invoke-Expression "Test $params" ```
[ 0.12753121554851532, 0.33685004711151123, 0.2555648386478424, -0.006536057218909264, -0.070009745657444, 0.18363159894943237, 0.44296014308929443, -0.7459796071052551, -0.28270423412323, -0.08126644045114517, -0.28530728816986084, 0.3147958815097809, -0.4327249228954315, -0.133094519376754...
I have run into a problem attempting to [redispatch](http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/EventDispatcher.html#dispatchEvent()) mouse events in ActionScript 3, which I am admittedly a bit incredulous about. I have narrowed it down to the [`MouseEvent.clone()`](http://livedocs.adobe.com...
[ -0.11522102355957031, 0.2793978452682495, 0.43502017855644226, -0.5092098116874695, 0.11251191049814224, 0.1583007425069809, 0.5490541458129883, -0.6859917044639587, -0.03622332960367203, -0.4280969798564911, -0.035648830235004425, 0.5538827776908875, -0.44462624192237854, 0.00333851599134...
infinitum: ``` mousemove 167 206 mousemoveclone 0 0 ``` This matches what the code I was redispatching the MouseEvent to was receiving, hence my hypothesis of the broken clone function. This is directly contradictory to what the linked documentation indicates should happen, unless I have missed something. I am at ...
[ 0.315168172121048, 0.043014850467443466, 0.31949982047080994, -0.06499045342206955, 0.1640288233757019, -0.31733238697052, 0.4600115716457367, -0.11961367726325989, -0.2020839899778366, -0.5895336270332336, -0.13441938161849976, 0.6370196342468262, -0.28860223293304443, -0.0123584698885679...
localY members are being properly cloned it seems, which puts me at even more of a loss as to what is going on here. Thats a known bug. You can see the bug report here: <http://bugs.adobe.com/jira/browse/FP-343> Everything else should get cloned though. You can always just assign stageX and stageY manually until the b...
[ 0.38760897517204285, -0.043751947581768036, -0.09094378352165222, 0.18733704090118408, 0.02667546086013317, -0.22360259294509888, 0.33245301246643066, 0.405798077583313, -0.23306310176849365, -0.5768128037452698, -0.16790591180324554, 0.3367440104484558, -0.11561471223831177, 0.02389151975...
Can someone provide some rules of thumb regarding when to use Message Queueing and what practical real-world problems they are supposed to address? Thanks Asynchronous messaging allows systems to communicate in a disconnected manner. It is not necessary for both systems to be available simultaneously for work to get d...
[ 0.14098283648490906, -0.08071611821651459, 0.556897759437561, 0.356346994638443, 0.06991459429264069, -0.2973206639289856, 0.3105849027633667, 0.1890442818403244, -0.6145216226577759, -0.3965650200843811, -0.13758116960525513, 0.2511216402053833, -0.20747949182987213, -0.005858124233782291...
system crash. Message queues also provide a layer of indirection. The system that places a message on a queue does not necessarily know who, if anyone, is receiving the message. The receiver could change in subtle or drastic ways without affecting the sender at all. Loose coupling like this is usually desirable. Many...
[ 0.06610199809074402, -0.186872199177742, 0.31192439794540405, 0.3526826798915863, -0.056123122572898865, -0.02657262608408928, 0.12742504477500916, 0.1159435287117958, -0.6026405692100525, -0.5062596201896667, -0.417834997177124, 0.2070978432893753, -0.4764239192008972, 0.2554873526096344,...
I would like to make a free open-source C++ application for both Linux and Windows which will create live stock market charts (i.e. they're refreshed frequently). Please could you give me some pointers on these issues: * What should I use as the data source? Are there free services I can implement? I would like to us...
[ 0.6988760232925415, 0.07105538994073868, 0.09069415181875229, 0.29760661721229553, 0.10196503251791, -0.19513534009456635, -0.39386576414108276, 0.2818855345249176, -0.2321232259273529, -0.4812639653682709, 0.29352590441703796, 0.5347359776496887, 0.057616375386714935, -0.01193806622177362...
first attempt at both cross-platform C++ development, and a GUI application for Linux. * I'm based in the UK, so I'd like to use data sources that provide information for the London stock exchange (LON) as well as NASDAQ, etc. As of Nov 2014, these links are dead. ------------------------------------- * Google Finance...
[ 0.5241627097129822, -0.05083383247256279, 0.08018089085817337, 0.038222018629312515, -0.10162435472011566, 0.23398521542549133, -0.3869566023349762, -0.030711175873875618, -0.05740249902009964, -0.3336712718009949, -0.04020322114229202, 0.45098236203193665, -0.07296400517225266, 0.00338601...
Is there any select statement to return the list of columns in the table? The INFORMATION\_SCHEMA.COLUMNS view will provide the column names for a particular table name. ``` SELECT Column_Name + ', ' FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'Table_Name' ``` There are several other views as well as the one ...
[ -0.206126868724823, 0.23586803674697876, 0.5846377015113831, 0.055015482008457184, -0.06335873156785965, 0.4539390206336975, -0.2517161965370178, -0.15523561835289001, -0.29189467430114746, -0.6535926461219788, -0.02495754137635231, 0.5823167562484741, -0.25116100907325745, -0.190101206302...
Essentially, I want the user to be able to define a hierarchical model, but then I need to allow the user to store data within their defined model. Does this make sense? So the users will be able to create new "unit types" to be organised in a hierarchical way and decide how units of these types are allowed to be organ...
[ 0.07927420735359192, -0.15886090695858002, -0.1097082868218422, 0.4520694315433502, 0.13807383179664612, 0.157668799161911, -0.078314870595932, -0.07994107902050018, -0.32159170508384705, -0.34296029806137085, -0.024280356243252754, 0.06483177840709686, -0.1451633721590042, 0.4183087050914...
have a trunk as a parent. The user can then creates instances of these unit types (as units) and can organise them according the rules defined in their model... is there a good way of doing this in the database? This is an extremely broad question, but this may point you in the right direction. Note that you're only go...
[ 0.17951349914073944, 0.017633307725191116, -0.020580334588885307, 0.4257586598396301, 0.1777435690164566, -0.12844952940940857, 0.20344795286655426, 0.010354983620345592, -0.4032462239265442, -0.33040353655815125, -0.16060785949230194, 0.37289512157440186, 0.02912900038063526, 0.2716955542...
foreign unit id ``` You can then use your unit relationship table in the following way.. `unit id` relates to the unit it's describing. `foreign unit id` should be nullable. A `unit` with no relationship records can only exist at the root of the heirarchy. A `unit` with a `null` `foreign unit id` can have any othe...
[ -0.17298312485218048, 0.4325387477874756, 0.24983523786067963, 0.11879895627498627, -0.04867083579301834, -0.03938758373260498, -0.05930400267243385, -0.09623753279447556, 0.08964242786169052, -0.47060903906822205, -0.616050660610199, 0.1786724030971527, -0.12103720754384995, 0.82826614379...
id, parent instance_id ``` I'm sure there would be other fields you'd need (name, for instance), but I assume you get the drift.
[ 0.2889223098754883, 0.34706562757492065, -0.2837192118167877, 0.11827130615711212, -0.005649384576827288, -0.1912367045879364, -0.19579997658729553, 0.43596789240837097, -0.01031571626663208, -0.3993951678276062, -0.08737010508775711, 0.3942934274673462, -0.15880173444747925, 0.31366893649...
I'm trying to perform an Ajax query from within a Greasemonkey script, but I'm stuck with not being able to load data from a remote URL. The script only seems to function if the page being viewed is the same domain as the Ajax call. Example: ``` // ==UserScript== // @name Hello jQuery // @namespace http:/...
[ 0.42820271849632263, 0.20124533772468567, 0.42461952567100525, -0.15935072302818298, -0.053941965103149414, -0.07048353552818298, 0.1615309864282608, -0.09718076884746552, 0.11792813986539841, -0.7038448452949524, 0.14031586050987244, 0.5275312662124634, -0.24627193808555603, -0.1711136251...
alert("Data Loaded: " + data); }); }); // EOF ``` This user script works perfectly when visiting `google.com`, but it fails with no error or alert on any other domain. What is the solution? Only `GM_xmlhttpRequest` can do cross-site access, not the normal [XMLHttpRequest](http://en.wikipedia.org/wiki/XMLHttpRequ...
[ -0.12728214263916016, -0.08311077207326889, 0.4791450500488281, 0.0006513189873658121, -0.21390028297901154, -0.4070355296134949, 0.2994029223918915, 0.09214789420366287, -0.09028900414705276, -0.7385023236274719, -0.2747422456741333, 0.37182649970054626, -0.3394000232219696, 0.06301037967...
I am trying to execute a script from shared folder that I trust: ``` PowerShell -file "\\server\scripts\my.ps1" ``` But I get a security warning, and have to press 'R' to continue > Security Warning Run only scripts that > you trust. While scripts from the > Internet can be useful, this script > can potentially ...
[ 0.3135254979133606, 0.2651424705982208, 0.3433076739311218, -0.1743215024471283, 0.152657613158226, -0.21469365060329437, 0.9074857831001282, -0.08253750205039978, 0.09781619161367416, -0.7497755885124207, -0.2961537837982178, 0.6088950037956238, -0.4615711569786072, 0.0417364276945591, ...
Images" on Lee Holmes' Blog](http://www.leeholmes.com/blog/2008/07/24/powershell-execution-policies-in-standard-images/) and ["PowerShell’s Security Guiding Principles" on the *Windows Power Shell Blog*](http://blogs.msdn.com/powershell/archive/2008/09/30/powershell-s-security-guiding-principles.aspx). **Summary** Som...
[ 0.17256858944892883, 0.06260528415441513, 0.34778204560279846, 0.08299724012613297, 0.16449539363384247, -0.312453955411911, 0.33069613575935364, -0.1871214061975479, -0.4784913957118988, -0.4992125928401947, -0.28984206914901733, 0.5113939642906189, -0.6956971287727356, 0.0333013683557510...
How do you store a password entered by the user in memory and erase it securely after it is no longer need? To elaborate, currently we have the following code: ``` username = raw_input('User name: ') password = getpass.getpass() mail = imaplib.IMAP4(MAIL_HOST) mail.login(username, password) ``` After calling the `l...
[ 0.007567805238068104, 0.13628727197647095, 0.10104302316904068, 0.07410763204097748, 0.27530616521835327, -0.16593380272388458, 0.1376858949661255, -0.14325763285160065, -0.22855138778686523, -0.7861260771751404, -0.05068192258477211, 0.36286023259162903, -0.06445278227329254, -0.030980169...
done in Python? Python doesn't have that low of a level of control over memory. Accept it, and move on. The **best** you can do is to `del password` after calling `mail.login` so that no references to the password string object remain. Any solution that purports to be able to do more than that is only giving you a fals...
[ 0.3307301104068756, 0.1344975382089615, 0.13669750094413757, -0.07463903725147247, 0.021634159609675407, -0.47169941663742065, 0.46324270963668823, 0.09404569864273071, -0.3914259076118469, -0.47274067997932434, -0.5033553242683411, 0.6472040414810181, -0.09587100893259048, 0.0941427201032...
is technically possible with stupid ctypes tricks), there would still be other copies of the password that have been created in various string operations: * by the getpass module when it strips the trailing newline off of the inputted password * by the imaplib module when it quotes the password and then creates the co...
[ 0.28479647636413574, -0.17449858784675598, 0.2295740693807602, 0.1958894580602646, 0.0795079916715622, -0.15374520421028137, 0.5225544571876526, -0.11261679232120514, -0.015772705897688866, -0.539243757724762, -0.053518086671829224, 0.6648904085159302, -0.38370779156684875, 0.1118953600525...
While editing, building up, or cherry picking from SQL statements I can find myself interacting with one of four popular database tools. I have been resorting to single line commenting for [DB2](https://en.wikipedia.org/wiki/IBM_DB2) and [Informix](https://en.wikipedia.org/wiki/IBM_Informix). I have created macros in ...
[ 0.2457457333803177, 0.4198443293571472, 0.23814474046230316, -0.1494283527135849, -0.6253282427787781, -0.016306495293974876, 0.03519922494888306, 0.2255941927433014, -0.09368623048067093, -0.6166776418685913, -0.09078892320394516, 0.5441931486129761, -0.435382217168808, -0.037020117044448...
DBMS, but it is more or less every major SQL DBMS. (I'll willingly add notes about any other DBMS that does - or does not - support C style comments.) The SQL 2003 standard documents comment notations thus: ```none <comment> ::= <simple comment> | <bracketed comment> <simple comment> ::= <simple comment introduc...
[ -0.42743587493896484, 0.239084392786026, 0.5890030860900879, -0.27982422709465027, -0.5795460939407349, -0.3713887333869934, 0.09929580241441727, -0.2503069043159485, -0.12668541073799133, -0.49661126732826233, -0.35636982321739197, 0.36266741156578064, -0.5280594825744629, 0.1048871353268...
contents> ::= [ { <comment character> | <separator> }... ] <comment character> ::= <nonquote character> | <quote> ``` IBM Informix Dynamic Server (IDS or Informix) supports C style comments. It also supports '`{ ... }`' as potentially multi-line comments, except in contexts where it means something else - that somet...
[ -0.019734622910618782, 0.02749296836555004, 0.3746010661125183, 0.20347774028778076, -0.24194028973579407, -0.13218098878860474, -0.2667815685272217, 0.3961406648159027, -0.3219490647315979, -0.4036356508731842, -0.4728296995162964, 0.278281569480896, -0.1966690570116043, 0.080361187458038...
Another developer and I are experiencing different behavior in native C++ executables built with Microsoft Visual Studio 2008, Version 9.0.30729.1 SP on different machines. We are statically linking to the Standard Library so we don't think it's a DLL version issue. We have ruled out differences in our source code and...
[ 0.17811118066310883, 0.1914340704679489, 0.05853124335408211, 0.06403545290231705, -0.37318524718284607, -0.29394015669822693, 0.24078914523124695, -0.03252898529171944, -0.31487300992012024, -0.3398679792881012, 0.21596193313598633, 0.7995620369911194, -0.45572149753570557, 0.221651539206...
we found a few discrepancies. I have some hotfixes that my colleague does not. And he has a couple which are missing from my installation. Here's an example hotfix entry from the version info: *Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB953256) KB953256 This hotfix is for Microsoft Visual S...
[ 0.08300784230232239, 0.28297436237335205, 0.10856964439153671, 0.13034290075302124, -0.24145275354385376, 0.05013822391629219, 0.33773499727249146, -0.02013503760099411, -0.11091229319572449, -0.515169084072113, -0.34341961145401, 0.6877111196517944, -0.24076829850673676, 0.047425251454114...
<http://support.microsoft.com/kb/958357> (dead link) Does anyone out there know how to actually find more info about these kinds of mystery hotfixes? Any advice on these particular ones? Short of each fully reinstalling Visual Studio, does anyone have tips on how we might get our separate installations synchronized, p...
[ 0.27734658122062683, -0.13335321843624115, 0.19630777835845947, 0.16466587781906128, -0.09187967330217361, -0.2200087606906891, 0.2394382655620575, -0.06994546949863434, -0.44703420996665955, -0.11914321780204773, 0.1217888817191124, 0.8129796385765076, -0.5962015390396118, 0.0064816218800...
the Small Functor Optimization in VC9 > TR1 (the Feature Pack). This broke > vector> in VC9 SP1. > "Broken" meant "compiling but > crashing". > 2. vector> nonconformantly required X to have a > default constructor. (This is a > specific example of a general bug: > vector>, > vector>>, etc. > were also affecte...
[ -0.5085554122924805, -0.5434290170669556, 0.05433991551399231, 0.19328849017620087, -0.2657688558101654, -0.2617758512496948, 0.050626982003450394, -0.09364065527915955, -0.3711273670196533, -0.5504627227783203, -0.27670028805732727, 0.5313330292701721, -0.8038967251777649, -0.009164087474...
and emitting > bogus results. Those look like sufficient changes to cause differing behavior, but it all depends on your code. See if installing the latest version of that hotfix on each machine resolves the discrepancies you're seeing.
[ 0.5631773471832275, 0.19410502910614014, 0.14498649537563324, 0.3299524486064911, -0.010473750531673431, -0.11380030959844589, 0.42245838046073914, -0.05397086963057518, -0.07614704221487045, -0.4303711950778961, 0.050582487136125565, 0.5937413573265076, -0.36313101649284363, 0.03495958819...
I have a silverlight app that I want to support plugin development for. I'm thinking that the plugin developer would create a dll and my main silverlight app would have some sort of config file that you would list the dll and type of the plugin, and the main app would detect, download, and load the dll for the plugin. ...
[ 0.851082444190979, 0.1788492202758789, -0.04430504888296127, 0.05651189386844635, -0.212269589304924, 0.14198489487171173, -0.0014715432189404964, -0.17121949791908264, -0.33189699053764343, -0.5907163619995117, 0.4624038636684418, 0.5569366812705994, -0.4324517548084259, 0.048023514449596...
are familiar with the framework.
[ 0.7843084335327148, 0.32451748847961426, 0.21511110663414001, 0.09912622720003128, 0.3578777015209198, -0.37117910385131836, 0.11894743144512177, -0.04308415576815605, 0.14051872491836548, -0.6429398655891418, -0.31107503175735474, 0.5681185722351074, 0.5632343888282776, -0.108421750366687...
I have the following `ListView`: ``` <ListView Name="TrackListView"> <ListView.View> <GridView> <GridViewColumn Header="Title" Width="100" HeaderTemplate="{StaticResource BlueHeader}" DisplayMemberBinding="{Binding Name}"/>
[ 0.18743391335010529, -0.18180027604103088, 0.4217883348464966, -0.10867488384246826, 0.06426889449357986, 0.03844476863741875, -0.18057666718959808, -0.23865889012813568, 0.015868129208683968, -0.8942601680755615, 0.34560686349868774, 0.5265909433364868, 0.0032742260955274105, 0.2315290272...
<GridViewColumn Header="Artist" Width="100" HeaderTemplate="{StaticResource BlueHeader}" DisplayMemberBinding="{Binding Album.Artist.Name}" /> </GridView> </ListView.View> </ListView> ``` How can I attach an event to every bound item that will fi...
[ 0.16285263001918793, -0.16012537479400635, 0.46303117275238037, -0.07727820426225662, 0.016247697174549103, -0.0036237798631191254, 0.17064595222473145, -0.44316425919532776, -0.18745991587638855, -0.812983512878418, -0.028546525165438652, 0.4335784316062927, -0.24517486989498138, -0.13660...
here: <http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/3d0eaa54-09a9-4c51-8677-8e90577e7bac/> --- XAML: ``` <UserControl.Resources> <Style x:Key="itemstyle" TargetType="{x:Type ListViewItem}"> <EventSetter Event="MouseDoubleClick" Handler="HandleDoubleClick" /> </Style> </UserControl.Resourc...
[ -0.114333875477314, -0.09858119487762451, 0.5102335810661316, -0.00005278456228552386, -0.025324368849396706, -0.06209506466984749, -0.05374756455421448, -0.4861069917678833, -0.37866923213005066, -0.6046389937400818, -0.3071296513080597, 0.4746197760105133, -0.046980906277894974, -0.02596...
sender).Content as Track; //Casting back to the binded Track } ```
[ 0.20327799022197723, 0.11279749125242233, 0.2255527824163437, 0.11808140575885773, -0.0202752947807312, 0.12027821689844131, 0.25329944491386414, -0.02251640148460865, -0.16210201382637024, -0.2285890281200409, -0.3499264121055603, 0.5728101134300232, -0.47009941935539246, 0.56334239244461...
When I run a post in my Rails functional test ``` setup do post :create, :user => Factory.attributes_for(:user) end ``` and it fails, I don't get any feedback as to why. I know that it fails because my assertion to make sure that there's one additional record in the database fails. I tried to do ``` setup do p...
[ 0.17432591319084167, 0.165350079536438, -0.044042352586984634, -0.052086930721998215, -0.1617494821548462, 0.10363484919071198, 0.5569913387298584, -0.5332869291305542, 0.009181753732264042, -0.5372210741043091, 0.3096671402454376, 0.4234173893928528, -0.34526148438453674, 0.35477268695831...
errors saving your object (perhaps a validation), and show you the value of the errors object.
[ 0.2259691208600998, 0.44086113572120667, -0.0788877010345459, 0.28739118576049805, 0.08964429050683975, 0.4049978256225586, 0.27704504132270813, 0.2895355820655823, -0.15493537485599518, -0.4675416648387909, 0.0018234989838674664, 0.6997560262680054, 0.015805769711732864, -0.25328469276428...
I'm planning to do a C++ standalone desktop application which uses web / html as the main format of it's documents content. I need suggestions for a good application server that can generate dynamic contents and can be easily embedded in my desktop application. It doesn't matter what server side programming languages...
[ -0.270766019821167, 0.2320771962404251, 0.6293699741363525, 0.0340535007417202, 0.18639057874679565, -0.25786498188972473, 0.09695381671190262, -0.04433981329202652, -0.4049895405769348, -0.4193859100341797, -0.3954738676548004, 0.48099398612976074, -0.515937328338623, 0.056610219180583954...
I have a web service that returns me a JSON object that contains the string "Hello World". How do I pull this string out of the object? data = [object Object] Thanks Nick You have to know how is your object, what members the object have. You could try something like ``` for(var e in data) alert(e + ' : ' + da...
[ -0.038138583302497864, 0.31071439385414124, 0.4806901216506958, 0.2461206465959549, -0.13434934616088867, -0.0876615047454834, 0.6987074613571167, 0.18110162019729614, -0.10227731615304947, -0.7202072143554688, -0.31699270009994507, 0.3420371115207672, 0.031923484057188034, 0.2103232592344...
I have what seems to be a simple problem that I can't solve myself. I have a WinForm app, with main method modified to accept command line arguments like this: ``` [STAThread] static void Main(String[] args) { int argCount = args.Length; } ``` This code works fine and argCount is equals to 2 ...
[ 0.1771811991930008, 0.2535354793071747, 0.3836834728717804, -0.31974560022354126, -0.13700447976589203, 0.03589632734656334, 0.41333287954330444, -0.138105571269989, -0.11827079206705093, -0.5020188093185425, 0.14021582901477814, 0.8447095155715942, -0.1873270571231842, 0.25614023208618164...
line arguments. The only argument contains "-file test.txt". More than that it only happens if I run the compiled executable from obj/Release folder, but not from bin/Release. Unfortunately setup project takes executables from obj/Release so I can't change that. Is this a known issue and is there a way around this prob...
[ 0.17304758727550507, -0.1753988265991211, 0.4681943953037262, -0.08926116675138474, -0.021277017891407013, 0.06753851473331451, 0.3692108392715454, -0.12724937498569489, 0.10578370094299316, -0.5745306015014648, -0.2454977184534073, 0.5720882415771484, -0.25509655475616455, 0.1630666702985...
for (int i = 0; i < args.Length; ++i) { Console.WriteLine("{0}: {1}", i, args[i]); } } } ``` and then it from the various locations I get 100% consistent results, the only way of getting arguments "merged" is to enclose them in quotes on the command line (which is specifically there to allow y...
[ 0.03145972266793251, 0.036389440298080444, 0.784100353717804, -0.27101096510887146, -0.12362249195575714, 0.4160900115966797, 0.12135136872529984, -0.6412201523780823, -0.017577795311808586, -0.5868819355964661, -0.08344890177249908, 0.4166339337825775, -0.3190666437149048, 0.0728049352765...
three Have 3 arguments 0: one 1: two 2: three PS C:\...\bin\Release> pushd ..\..\obj\debug PS C:\...\obj\Debug> .\ConsoleApplication1.exe one two three Have 3 arguments 0: one 1: two 2: three PS C:\...\obj\Debug> pushd ..\release PS C:\...\obj\Release> .\ConsoleApplication1.exe one two three Have 3 arguments 0: one 1: ...
[ -0.07383762300014496, -0.10690820962190628, 0.8197621703147888, -0.15061429142951965, -0.2713570296764374, 0.7688392400741577, -0.0394950807094574, -0.5709288120269775, -0.11473886668682098, -0.6138616800308228, 0.020401857793331146, 0.43213126063346863, -0.21741558611392975, 0.14424325525...
tab).
[ -0.1353706270456314, 0.0453781895339489, 0.5578159093856812, -0.007535411510616541, -0.008930248208343983, 0.38019225001335144, 0.109937384724617, -0.3621501326560974, -0.09987403452396393, -0.06766119599342346, -0.4111517667770386, 0.48555025458335876, -0.3268047273159027, 0.3413445055484...
I have the developer toolbar for IE7, which is great when I want to inspect the page layout in a fashion similar to the functionality of firebug for firefox. However I am working with a web site that opens a new window with the toolbars disabled, and I cannot access my dev toolbar button! Is there a way to force IE7 t...
[ 0.038881611078977585, 0.08928531408309937, 0.4721319377422333, -0.16153296828269958, -0.3591582179069519, -0.021825095638632774, 0.6114893555641174, 0.07276414334774017, -0.15621621906757355, -0.710065484046936, 0.008858995512127876, 0.7586992979049683, -0.30883920192718506, -0.00739211961...
still doesn't give you access to the IE Developer Toolbar. What will sometimes work is to hit CTRL+N while the new, chromeless window has focus. Doing that will open a new chromed (toolbars, menus, etc) to the same URL as the chromeless window. The trick won't work very well if the chromeless window URL is the result ...
[ 0.29369935393333435, -0.1114741712808609, 0.6031614542007446, -0.01823609694838524, -0.09073185920715332, -0.0876963660120964, 0.6136433482170105, 0.18478234112262726, -0.06536561250686646, -0.7935028076171875, 0.09875553846359253, 0.6169652938842773, -0.09799371659755707, 0.03666118532419...
I can't get this CustomValidator working. In the <head>: ``` <script language="javascript" type="text/javascript"> function ValidateFile(sender, args){ alert("Hi"); args.IsValid = document.getElementById("fuFile").value != "" || document.getElementById("c101_c7").value != ""; } ...
[ 0.09212938696146011, 0.044145166873931885, 0.8673763275146484, -0.20927049219608307, 0.09253394603729248, -0.17720472812652588, 0.5430582165718079, -0.508890688419342, -0.10436409711837769, -0.5274405479431152, -0.31436681747436523, 0.5616299510002136, -0.2490869164466858, 0.08724009990692...
works ``` document.getElementById("ctl00_ContentPlaceHolder1_fuFile").value ```
[ 0.30273354053497314, 0.1177930235862732, 0.6541845798492432, 0.0759018212556839, 0.48755037784576416, -0.5459315180778503, 0.08339051157236099, -0.08552515506744385, 0.004320941399782896, -0.7611913084983826, -0.774448037147522, 0.6870200634002686, -0.19683204591274261, 0.15035377442836761...
I have a custom view that's not getting `layoutSubview` messages during animation. I have a view that fills the screen. It has a custom subview at the bottom of the screen that correctly resizes in Interface Builder if I change the height of the nav bar. `layoutSubviews` is called when the view is created, but never a...
[ 0.33267608284950256, -0.032255206257104874, 0.884447455406189, -0.3041813373565674, -0.19036902487277985, 0.30797889828681946, 0.38099390268325806, -0.15512871742248535, -0.3919713795185089, -0.9170796275138855, 0.10064882040023804, 0.5401829481124878, -0.15191884338855743, 0.4447183907032...
custom view. And in Interface Builder I have the top and bottom struts and the vertical arrow set. --- Another part of the puzzle is that the window must be made key: ``` [window makeKeyAndVisible]; ``` of else the subviews are not automatically resized. I tracked the solution down to Interface Builder's insistenc...
[ 0.20202462375164032, -0.22619545459747314, 0.66628098487854, -0.030979126691818237, -0.15532472729682922, 0.3627237379550934, 0.043790556490421295, -0.32306385040283203, -0.3136669099330902, -0.5414077639579773, 0.19960549473762512, 1.115264654159546, -0.29069963097572327, -0.0541044250130...
view and setting the springs correctly caused the animation to occur and my method to be called. An extra problem in debugging this is that the simulator quits the app when the in-call status is toggled via the menu. Quit app = no debugger.
[ 0.14385518431663513, 0.050527527928352356, 0.37137046456336975, 0.11007780581712723, 0.35156962275505066, 0.08980000019073486, 0.5675085186958313, -0.26235777139663696, -0.12976287305355072, -0.1261717677116394, -0.23402920365333557, 0.8782670497894287, -0.3677791357040405, -0.006965054664...