text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
things center aligned, and both safari/chrome and opera are more standards compliant than ie and even firefox.
[ 0.0014214481925591826, -0.046415477991104126, 0.711637556552887, 0.135171040892601, -0.06536441296339035, -0.38502395153045654, 0.006310232449322939, -0.028887927532196045, -0.028201689943671227, -0.6382176280021667, -0.3595205545425415, 0.6056393980979919, -0.04035291075706482, -0.2108168...
I plan on making a multi comparison program. It will compare multiple files by displaying N number of files in a grid where N = X \* Y. X and Y are the width and height of the grid elements. Easy enough, I know how to do this pretty much. The question: How do and in what way is best to highlight individual characters ...
[ 0.346357524394989, -0.1251915544271469, 0.39184993505477905, 0.08297089487314224, -0.4251551628112793, 0.20466096699237823, 0.027677135542035103, -0.37080007791519165, -0.03388660028576851, -0.8754705786705017, 0.2835468649864197, 0.5224118828773499, -0.1377435028553009, 0.0259945746511220...
sorts of options.
[ 0.3273355960845947, -0.01942833513021469, -0.3943065106868744, 0.32764169573783875, 0.016661712899804115, 0.4941052198410034, -0.2671576142311096, 0.18991263210773468, -0.4168565571308136, -0.3953620493412018, 0.07240458577871323, 0.4915648102760315, -0.2936822175979614, 0.2772460579872131...
Does anyone know where I might find a PHP matrix math library which is still actively maintained? I need to be able to do the basic matrix operations like reduce, transpose (including non-square matrices), invert, determinant, etc. This question was asked in the past, then closed with no answers. Now I need an answer...
[ 0.39907321333885193, 0.34569987654685974, 0.10772045701742172, 0.13259257376194, -0.012330472469329834, 0.012785838916897774, 0.32973361015319824, -0.11617539077997208, -0.20858868956565857, -0.495683878660202, 0.2573128342628479, 0.5469752550125122, -0.09592165797948837, -0.07148765772581...
myself, but I would make me happier to see that there is a library for this somewhere. You might do better to do your matrix manipulations in another language and call that code from PHP. The PHP community isn't typically concerned with matrix computation, so I imagine it will be challenging to find what you want. But ...
[ 0.7729483842849731, 0.2443334460258484, -0.14332588016986847, 0.19171303510665894, 0.05814507231116295, -0.10572374612092972, -0.09726294875144958, 0.44271475076675415, -0.41359972953796387, -0.39437344670295715, 0.36246809363365173, 0.6588302850723267, -0.1316303014755249, -0.231976956129...
C you could call the Gnu Scientific Library, for example. By the way, there's hardly ever a reason to invert a matrix. Most problems that appear to require matrix inversion actually require solving linear systems. The latter is more stable. Also, some libraries may not have a matrix inversion routine per se because t...
[ 0.27194973826408386, 0.15728294849395752, 0.085086889564991, 0.28396767377853394, -0.07834114134311676, -0.4471203684806824, -0.1280730664730072, 0.03191458806395531, -0.45175406336784363, -0.008685614913702011, -0.27524369955062866, 0.4582102298736572, -0.5954473614692688, 0.0985195413231...
In my Java app I need to get some files and directories. This is the program structure: ``` ./main.java ./package1/guiclass.java ./package1/resources/resourcesloader.java ./package1/resources/repository/modules/ -> this is the dir I need to get ./package1/resources/repository/SSL-Key/cert.jks -> this is the file...
[ -0.2111033946275711, 0.1782749891281128, 0.42747193574905396, -0.47697997093200684, -0.10707567632198334, 0.2047942876815796, 0.39406490325927734, -0.21739646792411804, -0.12383759021759033, -0.9000887870788574, -0.1609121412038803, 0.7230619788169861, -0.607321560382843, -0.13916029036045...
I'm doing some [Project Euler](http://projecteuler.net/) exercises and I've run into a scenario where I have want arrays which are larger than 2,147,483,647 (the upper limit of `int` in C#). Sure these are large arrays, but for instance, I can't do this ``` // fails bool[] BigArray = new BigArray[2147483648]; // a...
[ 0.19326940178871155, -0.135787233710289, 0.11956576257944107, -0.09402824193239212, -0.05914892256259918, 0.0802524983882904, 0.3821680247783661, -0.40142256021499634, -0.5168507695198059, -0.6617662906646729, -0.15328916907310486, 0.41052529215812683, -0.247357577085495, 0.029322547838091...
problem. But that being said I'll still attempt to answer your question. As mentioned in this [article](http://msdn.microsoft.com/en-us/library/ms241064(VS.80).aspx) there is a 2 GB limit on any object in .Net. For all x86, x64 and IA64. > As with 32-bit Windows operating > systems, there is a 2GB limit on the > ...
[ -0.09022417664527893, -0.07422557473182678, 0.2734428942203522, 0.05715768039226532, -0.011229801923036575, -0.25796228647232056, 0.29835736751556396, -0.08098950982093811, -0.727127194404602, -0.6172003746032715, -0.07614944875240326, 0.5901041626930237, -0.37612056732177734, 0.2415711134...
it all in one big continuous block. It would be better to use an ArrayList which has implicit dynamic allocation on the heap. This will not allow you to get past the 2GB, but will probably allow you to get closer to it. I think the stack size limit will be bigger only if you are using an x64 or IA64 architecture and ...
[ 0.00459621986374259, -0.1833021342754364, -0.02407032996416092, 0.1378013789653778, -0.2930620312690735, 0.14277152717113495, -0.025952646508812904, -0.27048856019973755, -0.745185136795044, -0.4225345253944397, -0.03482477366924286, 0.0823536142706871, -0.40046778321266174, 0.155490890145...
array list and adding 1 object at a time on an x64 Windows 2008 machine with 6GB of RAM, the most I can get the ArrayList to is size: 134217728. So I really think you have to find a better solution to your problem that does not use as much memory. Perhaps writing to a file instead of using RAM.
[ 0.09608332067728043, 0.03350742906332016, 0.32046419382095337, -0.127175435423851, -0.4255520701408386, 0.11370191723108292, 0.006879922468215227, -0.2962058186531067, -0.8065095543861389, -0.47804513573646545, 0.41426369547843933, 0.5074752569198608, -0.27212005853652954, -0.0267065241932...
**Outside of benefiting from Adaptive Rendering for alternate devices, does it ever make sense to write all of this code:** ``` writer.WriteBeginTag("table"); writer.WriteBeginTag("tr"); writer.WriteBeginTag("td"); writer.Write(HtmlTextWriter.TagRightChar); writer.WriteEncodedText(someTextVariable); writer.WriteEndTag...
[ 0.15576495230197906, -0.08825016021728516, 0.6362825036048889, -0.15605607628822327, -0.22633378207683563, -0.042755477130413055, 0.6298044919967651, -0.36312243342399597, -0.19986365735530853, -0.8773294687271118, -0.07715307921171188, 0.45885169506073, -0.3074565529823303, -0.13599303364...
are enough to convince me to use the writer when efficiency is needed, or if I am writing a base control that will be reused and should be as professional as possible. Your mileage may vary :-).
[ 0.57101970911026, 0.34864842891693115, 0.08329635113477707, 0.43606653809547424, 0.29929250478744507, 0.10278162360191345, 0.13440178334712982, -0.04484698176383972, 0.09493676573038101, -0.5566093921661377, 0.36872440576553345, 0.7091076970100403, 0.0645318478345871, -0.47057798504829407,...
I am writing Eclipse plugins for Java, and have the following problem: Given an IEditorPart, I need to check if it is a java editor. I could do (IEditor instanceof JavaEditor), but JavaEditor is an org.eclipse.jdt.internal.ui.javaeditor.JavaEditor, which falls under the JDT's "internal" classes. Is there a smarter a...
[ 0.17675232887268066, 0.26021715998649597, 0.1692088097333908, -0.36578699946403503, -0.29002436995506287, -0.28874471783638, 0.39700084924697876, -0.351693332195282, 0.1396409273147583, -0.8431140184402466, 0.13609951734542847, 0.7169545292854309, -0.39840447902679443, -0.01770847663283348...
|| JavaUI.ID_CU_EDITOR.equals(id); } ``` Testing the instance was [only needed in eclipse3.1](https://bugs.eclipse.org/bugs/show_bug.cgi?id=84862). [alt text http://blogs.zdnet.com/images/Burnette\_DSCN0599.JPG](http://blogs.zdnet.com/images/Burnette_DSCN0599.JPG) [`JavaUI`](https://bugs.eclipse.org/bugs/show_bug.c...
[ 0.018085837364196777, 0.16797515749931335, 0.23365139961242676, -0.09515397995710373, -0.6602522730827332, -0.15004290640354156, 0.3740195333957672, -0.138783797621727, -0.16190524399280548, -0.3370204269886017, 0.24907195568084717, 0.1549546718597412, -0.2829749584197998, 0.02313311211764...
errors in plugins development](http://blog.eclipse-tips.com/2009/01/top-10-mistakes-in-eclipse-plug-in.html) ;) .
[ 0.19637255370616913, 0.6151511073112488, -0.18633082509040833, -0.0013907125685364008, -0.03195895999670029, -0.0050521777011454105, 0.3262459635734558, 0.2843919098377228, -0.10184405744075775, -0.10209739208221436, -0.021405844017863274, 0.7448819875717163, -0.3002961277961731, -0.162744...
I need to access an environment variable remotely. To do this, I think the best way is to read it from registry. Where are environment variables stored in the Windows Registry? Here's where they're stored on [Windows XP](https://en.wikipedia.org/wiki/Windows_XP) through [Windows Server 2012](https://en.wikipedia.org/w...
[ -0.00863658171147108, 0.5402821898460388, 0.44823968410491943, -0.07297589629888535, 0.30842360854148865, 0.10698375850915909, 0.2801145315170288, -0.017136987298727036, -0.283273309469223, -0.7007856369018555, -0.21248658001422882, 0.6643094420433044, -0.030795179307460785, 0.301330685615...
I'm looking for an alternative to Google Apps for sending email from my rails app. (Google limits the number of messages you can send). Do most people roll their own, or is their a preferred provider? I'd love to be able to dynamically create addresses for my customers: customer\_name@myapp.com We use AuthSMTP which ...
[ 0.7420889735221863, 0.13282769918441772, 0.40092337131500244, -0.01679883524775505, -0.0467364527285099, 0.16154640913009644, 0.2727706730365753, 0.460677832365036, -0.2517854869365692, -0.5568503737449646, 0.37729793787002563, 0.4966617226600647, 0.13398438692092896, 0.18431799113750458, ...
I'm working on a change on my laptop. It's not ready to be submitted to repository yet but I'd like to keep working on my desktop too. My change set is quite big and not only it contains modifications, it also contains new files and deleted files as well. I could copy the complete local working copy to another machine...
[ 0.6566347479820251, 0.24439814686775208, 0.39743801951408386, -0.03308335319161415, 0.26319393515586853, 0.002892978023737669, 0.19577452540397644, -0.16054175794124603, -0.19981403648853302, -0.864773154258728, 0.42520245909690857, 0.44967561960220337, -0.019024642184376717, 0.31893089413...
to an older revision" (not true and why do you care?) or "lines do not match" (yeah they don't because i changed them). I didn't like "continuous error popups" experience at all. I don't want to install Cygwin, so command-line patch is out of question. I guess the last option would be forking a new branch for this ...
[ 0.45418232679367065, -0.17700694501399994, 0.2832562029361725, 0.10588507354259491, 0.2756058871746063, -0.23604483902454376, 0.4066833257675171, 0.44836196303367615, -0.16596782207489014, -0.574689507484436, 0.2246924638748169, 0.625933051109314, -0.3591611683368683, 0.18850190937519073, ...
this huge change. Not to mention, easy synchronization of future changes between machines. But, you can probably get away with just zipping up the whole working directory and dumping it somewhere on the other machine.
[ 0.18226222693920135, -0.07853076606988907, 0.21258124709129333, 0.370107501745224, 0.3503968417644501, -0.19419074058532715, -0.03991050645709038, 0.272031307220459, -0.5361006855964661, -0.5606926679611206, 0.0634298250079155, 0.37893620133399963, -0.14562773704528809, 0.17251670360565186...
I'm trying to write some STL data out of matlab and I'm trying to do this by writing a MEX File (a matlab DLL written in C) At the moment I have a loop just going through my data writing out the stl syntax with the floats. ... ``` for(m=0;m<colLen;m++) { res = m % 3; if(res == 0) { fprintf(fp,...
[ -0.031005719676613808, -0.32317081093788147, 0.7188830971717834, -0.3164742887020111, 0.11322197318077087, 0.09119965136051178, 0.4023306965827942, -0.36588001251220703, 0.11213865876197815, -0.5380017161369324, -0.44184526801109314, 0.8229378461837769, -0.38145333528518677, -0.00539136631...
fprintf(fp,"\t\touter loop\n" ); flag = 0; x++; } fprintf(fp, "\t\t\tvertex "); for(n=0;n<rowLen;n++) { fprintf(fp, "%f ", xValues[m*rowLen+n]); } fprintf(fp,"\n"); flag++; if (flag == 3) { fprintf(fp, "\t\tendloop\n\tendfacet\n"); flag =...
[ 0.045341916382312775, -0.5357567071914673, 0.762106716632843, -0.33770373463630676, 0.20366621017456055, -0.06779543310403824, -0.09741736948490143, -0.48054710030555725, -0.19732417166233063, -0.2573218047618866, -0.5220127701759338, 0.4551070034503937, -0.6314752101898193, -0.31006672978...
} } ``` ... The main reason why I want to do this in a MEX file is because things are way quicker since its compiled. I was reading a C++ book, "Sams Teach Yourself C++ in One our a day" and in page 645 they talk about using a buffers to speed up writing to the disk. Once the buffer fills up, write the data, flush ...
[ 0.18620283901691437, 0.21753831207752228, 0.016826791688799858, -0.09696725010871887, 0.17803622782230377, -0.08002804219722748, 0.14408014714717865, 0.18778249621391296, -0.2650725245475769, -0.7008246183395386, 0.09992662817239761, 0.5334421992301941, -0.09808918088674545, -0.02337938919...
buffer with a fixed size, and then somehow check when its full and write it to a file with fwrite(), flush it, start over?? This is currently not possible through the OpenOffice.org API. You can create menus, toolbars and dialogs. You cannot create dockable windows or panels via UNO. See: [GUI Chapter in the Dev Guide]...
[ 0.4358425736427307, -0.0992870107293129, 0.39547184109687805, 0.055175039917230606, -0.03089720942080021, -0.06584996730089188, 0.15519818663597107, 0.05854880064725876, -0.5497223138809204, -0.7681026458740234, -0.05272827297449112, 0.6451242566108704, -0.1717585027217865, -0.012739033438...
future update to OpenOffice 3.0. See [post in the list archive](http://api.openoffice.org/servlets/ReadMsg?list=dev&msgNo=20716).
[ -0.07903130352497101, -0.2747661769390106, 0.5819876790046692, 0.04163820669054985, 0.007609340362250805, -0.4692629277706146, 0.44918352365493774, 0.006675600539892912, -0.3746783435344696, -0.8608829379081726, -0.8887602686882019, 0.24843177199363708, -0.3564748466014862, -0.056125771254...
Is it possible to change the height of UIPickerView? Some applications seem to have shorter PickerViews but setting a smaller frame doesn't seem to work and the frame is locked in Interface Builder. It seems obvious that Apple doesn't particularly invite mucking with the default height of the `UIPickerView`, but I have...
[ 0.24722468852996826, -0.25310587882995605, 0.7965802550315857, 0.07845085114240646, -0.08375653624534607, -0.06685546785593033, 0.34449708461761475, -0.21790994703769684, -0.21852847933769226, -0.6442648768424988, 0.14502742886543274, 0.6717852354049683, -0.023934099823236465, 0.1496748030...
would either need to be worked around somehow, or choose another size that doesn't exhibit them.
[ 0.5973276495933533, -0.13085654377937317, -0.22523193061351776, 0.27005869150161743, 0.6352259516716003, 0.43420517444610596, 0.03169966861605644, -0.08838389068841934, -0.43566805124282837, -0.5877764821052551, 0.2100641280412674, 0.2763606905937195, -0.03237474337220192, 0.11788062006235...
I see a lot of code, particularly in Apple example code, that resembles the following: ``` EditingViewController *controller = [[EditingViewController alloc] initWithNibName:@"EditingView" bundle:nil]; self.editingViewController = controller; [controller release]; ``` Is there any reason in particular tha...
[ 0.10222432017326355, 0.3383622467517853, 0.31306707859039307, -0.1209002137184143, 0.05951181426644325, -0.34327736496925354, 0.2547599673271179, -0.12224344164133072, -0.3726840615272522, -0.5356701612472534, -0.27309033274650574, 0.5937824845314026, -0.029301749542355537, -0.009578012861...
count of one. You are responsible for calling `[someClassInstance release]` when you're done with your new instance, typically in your `dealloc` method. Where this gets tricky is when you assign your new object to a property instead of an instance variable. Most properties are defined as `retain` or `copy`, which mean...
[ 0.39563313126564026, -0.1520484983921051, 0.5836933255195618, -0.037535279989242554, 0.039625342935323715, -0.5238269567489624, -0.017765097320079803, -0.4992617964744568, -0.34364053606987, -0.5380982756614685, -0.09258977323770523, 0.7386537194252014, -0.3422046899795532, 0.4213455319404...
created with retain count of 1 self.editingViewController = controller; // (2) equivalent to [self setEditingViewController: controller]; // increments retain count to 2 [controller release]; // (3) decrements retain count to 1 ``` But for your second example: ``` // (2) property setter increments retain count to ...
[ 0.2648884356021881, -0.21433326601982117, 1.141055941581726, 0.08909628540277481, 0.08386150002479553, -0.1817227602005005, 0.06362127512693405, -0.5347496867179871, -0.24416278302669525, -0.402630478143692, -0.2093837857246399, 0.7767593264579773, -0.07244520634412766, 0.23019078373908997...
for a while the object has two owners to match its retain count and everything is hunky dory. ``` // (3) property setter increments retain count to 2 self.editingViewController = // (1) new object created with retain count of 1 [[[EditingViewController alloc] initWithNibName:@"EditingView" bundle:nil] ...
[ 0.24121038615703583, -0.088375523686409, 0.7859956622123718, -0.17474325001239777, 0.17678256332874298, -0.18902809917926788, 0.2692606747150421, -0.1393556445837021, -0.28006914258003235, -0.13501757383346558, -0.10282270610332489, 0.8787265419960022, 0.019563984125852585, 0.1569605618715...
setter. Assuming your code named the underlying instance variable `editingViewController`: ``` // (2) assignment to an instance variable doesn't change retain count editingViewController = // (1) new object created with retain count of 1 [[EditingViewController alloc] initWithNibName:@"EditingView" bundle:ni...
[ -0.13956844806671143, 0.29216983914375305, 0.44710469245910645, -0.18180343508720398, 0.021046997979283333, 0.009290997870266438, 0.4432206451892853, -0.4119434356689453, -0.07702475041151047, -0.3434084355831146, -0.12148342281579971, 0.6408764123916626, -0.4349040687084198, -0.1023057997...
We implement the majority of our business rules in the database, using stored procs. I can never decide how best to pass data constraint violation errors from the database back to the user interface. The constraints I'm talking about are tied more to business rules than data integrity. For example, a db error such as...
[ 0.4125315546989441, 0.6254671812057495, 0.15414264798164368, -0.005779114086180925, 0.0825297087430954, -0.21246814727783203, 0.3880753815174103, -0.16235388815402985, 0.014070737175643444, -0.5063565373420715, 0.0399591438472271, 0.405224084854126, -0.530595064163208, 0.1348060965538025, ...
such as "You're only allowed 100 Foos per day" do not cause errors per-say, since they're gracefully handled by custom code such as `return empty dataset` that the application code checks for and passes back to the ui layer. And therein lies the rub. Our ui code looks like this (this is AJAX.NET webservices code, but ...
[ 0.3136027157306671, 0.09530378133058548, 0.6539263129234314, -0.3361707925796509, 0.05408158525824547, -0.1233496442437172, 0.1502814143896103, -0.07417692244052887, -0.3034020960330963, -0.6184406280517578, -0.24356931447982788, 0.6589956879615784, -0.29735374450683594, -0.211882337927818...
} // update ui as normal here } function onError(e) { if(e.get_message().indexOf('duplicate key')) { alert('A Foo with that name already exists'); return; } // REAL error handling code here } ``` (As a side note: I notice this is what stackoverflow does when you submit comments too qu...
[ 0.06950034201145172, -0.04323618486523628, 0.37058818340301514, -0.14477188885211945, 0.01782049611210823, -0.38861358165740967, 0.3192192316055298, -0.2242446094751358, -0.31379908323287964, -0.41865813732147217, -0.15068285167217255, 0.6748166084289551, -0.2818814218044281, -0.0320730209...
the unique constaint error) is being handled as a special case to the code that is supposed to handle *real* errors (not business rule violations), since .NET propagates Exceptions all the way up to the `onError()` handler. This feels wrong. My options I think are: 1. catch the 'duplicate key violation' exception at ...
[ 0.09141848981380463, 0.18765471875667572, 0.33892616629600525, 0.004192311316728592, -0.006567637901753187, -0.12868553400039673, 0.437412828207016, -0.14473435282707214, -0.13362495601177216, -0.3552338182926178, -0.020327912643551826, 0.7052627801895142, -0.4643588364124298, 0.2334994077...
in the same ballpark as 2): leverage the unique constraint built into the db layer and blindly `insert into Foo`, catching any exceptions and convert it to whatever it is the app server expects as the "business rule violated" flag 4. blindly `insert into Foo` (like 3) and let that Exception propagate to the ui, *plus* ...
[ 0.12267273664474487, 0.3029572665691376, 0.3244880139827728, -0.10939157009124756, -0.0950901210308075, -0.5386162400245667, 0.2734428942203522, -0.41418981552124023, 0.037197310477495193, -0.5631834864616394, 0.07448853552341461, 0.5947936177253723, -0.42229023575782776, -0.25364419817924...
are implemented*: in the stored proc. What I don't like about 1) and 3) is I *think* they involve stupid checks like `"if error.IndexOf('duplicate key')"`, just like what is in the ui layer currently. **Edit**: I like 4), but most people say to use `Exception`s only in *exceptional* circumstances. **So, how do you pe...
[ 0.309835821390152, 0.18614381551742554, 0.5160338282585144, 0.022027822211384773, 0.09191341698169708, -0.4465504288673401, 0.3931717872619629, -0.375000923871994, -0.13350246846675873, -0.48515579104423523, -0.43206164240837097, 0.7729809284210205, -0.49278807640075684, -0.194674193859100...
to provide the details of the error. RAISERROR can be called with a *msg\_id*, severity and state, and with a set of error arguments. When used this way, a message with the given *msg\_id* must have been entered into the database using the sp\_addmessage system stored procedure. This *msg\_id* can be retrieved as the ...
[ 0.09445131570100784, 0.3851483166217804, 0.6279755234718323, -0.2444956749677658, -0.6224226355552673, 0.2591692805290222, 0.20969299972057343, -0.45085608959198, -0.282218873500824, -0.25161242485046387, 0.17422237992286682, 0.7466390132904053, 0.08423889428377151, -0.1265832781791687, ...
statement works in C. However, if you want to just pass the arguments back to the UI so that the UI can decide how to use them, simply make the error messages have no text, just placeholders for the arguments. One message might be '"%s"|%d' to pass back a string argument (in quotes), and a numeric argument. The .NET co...
[ 0.12908238172531128, -0.04020963981747627, 0.29729828238487244, 0.002878103870898485, -0.6157275438308716, 0.11630646884441376, 0.25483694672584534, -0.2367599755525589, -0.1254275143146515, 0.0736866146326065, 0.0013772984966635704, 0.5093252062797546, -0.2167903631925583, -0.093077287077...
with your own error number that means "duplicate key on insert" to your code, and it can include the actual key value(s). Your UI could use this to display "Order number already exists", where "x" was the key value supplied.
[ 0.16505511105060577, -0.012256581336259842, 0.16488014161586761, 0.05986541137099266, 0.2629569470882416, 0.20737265050411224, 0.11542007327079773, -0.07372508943080902, -0.2914402186870575, -0.428536981344223, -0.2876087725162506, 0.3072464168071747, -0.2763887643814087, 0.113753572106361...
Is it possible to call a vbscript from a ruby script? Bascially, I am creating a temp folder with a random name in my ruby script and I would like to call the vbscript and pass the name of this folder to carry out the next action. Try calling the Windows Scripting Host (`cscript`) with your script: ``` system "cscrip...
[ 0.3163795471191406, 0.07305551320314407, 0.3172282874584198, -0.050639666616916656, -0.2192084789276123, -0.25783154368400574, 0.14961715042591095, 0.18745191395282745, -0.27773013710975647, -0.7322840094566345, 0.007236733101308346, 0.3403994143009186, -0.4152197539806366, 0.2142305672168...
Is there a way to extract HTML page title using Perl? I know it can be passed as a hidden variable during form submit and then retrieved in Perl that way but I was wondering if there is a way to do this without the submit? Like, lets say i have an HTML page like this: ``` <html><head><title>TEST</title></head></html>...
[ 0.11711454391479492, -0.15696127712726593, 0.6319774389266968, 0.23131361603736877, -0.19455136358737946, -0.22918930649757385, -0.05219684913754463, -0.034631360322237015, -0.3236420154571533, -0.36484912037849426, -0.18580995500087738, 0.3244732916355133, -0.1270149052143097, -0.00937597...
is similar: ``` $title->html('New Title'); say "The entirety of google.com with my new title is: ", $page->html; ``` You can pass an HTML string to the `pQuery` constructor, which it sounds like you want to do. Finally, if you want to use arbitrary HTML as a "template", and then "refine" that with Perl commands, yo...
[ 0.33935782313346863, 0.03223579749464989, 0.8365339040756226, 0.16209964454174042, 0.05975886061787605, -0.12545157968997955, -0.027541667222976685, -0.009123237803578377, -0.23926137387752533, -0.4186207354068756, -0.2659784257411957, 0.43503451347351074, -0.11324544250965118, 0.280434340...
I'm not talking about the vista glass feature, I already know how to accomplish that. The feature that I'm talking about is add controls to the titlebar, like office 2007 does with the logo and toolbar. You need to do some Win32 interop to achieve that effect. Depending on whether you are using Winforms or WPF, the way...
[ 0.19992610812187195, -0.10437221825122833, 0.4952583909034729, 0.13769939541816711, 0.12581081688404083, -0.33078905940055847, 0.029737133532762527, -0.1445324867963791, -0.09859167039394379, -0.6074439287185669, -0.13489052653312683, 0.8146120309829712, -0.40219825506210327, -0.0439473427...
to inherit from [`HwndSource`](http://msdn.microsoft.com/en-us/library/system.windows.interop.hwndsource.aspx) and modify the [`HwndSourceParameters`](http://msdn.microsoft.com/en-us/library/system.windows.interop.hwndsourceparameters.aspx) in order to achieve this. You need WS\_OVERLAPPEDWINDOW, WS\_CLIPSIBLINGS and W...
[ 0.31580987572669983, -0.4090178608894348, 0.7304185032844543, 0.14921078085899353, 0.2454269528388977, -0.19891297817230225, 0.09425432235002518, -0.6255559921264648, -0.35858240723609924, -0.5546655654907227, -0.09484724700450897, 0.6119228601455688, -0.0829748883843422, -0.11431825160980...
care of the actual painting) * [`WM_NCHITTEST`](http://msdn.microsoft.com/en-us/library/ms645618(VS.85).aspx) - to process the moving of the window, minimizing and maximizing. 4. Once you do the above, your client area where WPF is going to paint your visual tree is going to span the whole area of the window. You will...
[ 0.5566546320915222, -0.2471318393945694, 0.9515992403030396, -0.07384365797042847, 0.012598210014402866, 0.21589861810207367, 0.2094716727733612, -0.5183635354042053, -0.5220188498497009, -0.4966699182987213, -0.056182291358709335, 0.751793384552002, -0.07031788676977158, 0.015000199899077...
painting when glass is enabled and switch to your custom logic when glass is not. 6. You might want to look at the Win32 Theme APIs if you want go get the standard Win32 assets for borders, caption, close, mininmize and maximize buttons to use in your 'non-client" area. 7. If you want to extend Glass into your window, ...
[ 0.3537396490573883, -0.21013887226581573, 0.9090777635574341, -0.10836731642484665, 0.015730353072285652, 0.08204211294651031, 0.27877533435821533, -0.4290676712989807, -0.42155173420906067, -0.7240797281265259, -0.008689739741384983, 0.6029568910598755, -0.1301507204771042, 0.077208071947...
when Glass is enabled. If Glass is not enabled, you need to do your own drawing of the NC area. You can find the proper C# definitions of all messages, styles and corresponding Win32 APIs you need on [P/Invoke](http://pinvoke.net). You could also achieve similar effect by using standard WPF window with a `WindowStyle...
[ 0.258157879114151, -0.2012336552143097, 0.7049806118011475, 0.13358427584171295, -0.010729476809501648, -0.04797318950295448, 0.5309317708015442, -0.06791888922452927, -0.3856376111507416, -0.7931230664253235, -0.08171581476926804, 0.4610197842121124, -0.3658040463924408, 0.009629032574594...
of this functionality. I have not used any (as you can see, I am not scared of Win32 interop :-)), so I can't recommend you any particular.
[ 0.17326460778713226, 0.058171894401311874, -0.3536527752876282, 0.09761007130146027, 0.0662330836057663, -0.4824448525905609, 0.20674215257167816, 0.4298481047153473, -0.07452861219644547, -0.390836626291275, -0.07228856533765793, 0.6972914934158325, -0.23257963359355927, 0.019768133759498...
I have been trying to figure out how to retrieve (quickly) the number of files on a given HFS+ drive with python. I have been playing with os.statvfs and such, but can't quite get anything (that seems helpful to me). Any ideas? **Edit:** Let me be a bit more specific. =] I am writing a timemachine-like wrapper arou...
[ 0.526127815246582, 0.09620559215545654, 0.23347234725952148, 0.1056307777762413, 0.13394002616405487, -0.2735409140586853, -0.11697431653738022, 0.24385744333267212, -0.42533376812934875, -0.6576835513114929, 0.016188165172934532, 0.5448549389839172, -0.31789904832839966, 0.035780981183052...
--progress`, or with the `-P` option) as it builds its initial file list, and report a percentage and/or ETA back to the user. This is completely separate from the actual backup, which is no problem tracking progress. But with the drives I am working on with several million files, it means the user is watching a count...
[ 0.33555904030799866, -0.06352534145116806, 0.6562774777412415, 0.22221294045448303, 0.08918406069278717, 0.012433025985956192, -0.29033780097961426, -0.3196566700935364, -0.41221368312835693, -0.6650190949440002, -0.12387902289628983, 0.698178231716156, -0.19647204875946045, 0.001940043410...
- os.statvfs('/').f_ffree 64171205L ``` The more portable way gives me around 1.1 million on this machine, which is the same as every other indicator I have seen on this machine, including rsync running its preparations: ``` >>> sum(len(filenames) for path, dirnames, filenames in os.walk("/")) 1084224 ``` Note tha...
[ 0.25471770763397217, -0.19204649329185486, 0.5364766716957092, 0.0488235168159008, -0.1104583740234375, 0.06784716248512268, 0.45389628410339355, -0.19509056210517883, -0.5599845051765442, -1.0118739604949951, 0.13730181753635406, 0.647773265838623, -0.048070795834064484, 0.031513884663581...
portable, and for `10**6` files and any reasonable backup strategy it will give you `1%` or better precision.
[ -0.09115150570869446, 0.26209625601768494, 0.5513408780097961, 0.35025522112846375, 0.2893161475658417, -0.24647662043571472, -0.13425931334495544, -0.13437335193157196, -0.17313404381275177, -0.9074782133102417, -0.19536486268043518, 0.5065164566040039, 0.11434551328420639, -0.16860564053...
Can any one tell me the advantage of synchronized method over synchronized block with an example? > *Can anyone tell me the advantage of the synchronized method over the synchronized block with an example? Thanks.* There is not a clear advantage of using synchronized method over the block. Perhaps the only one ( but...
[ 0.18442469835281372, 0.11386343836784363, -0.050935715436935425, 0.31082600355148315, -0.09315371513366699, -0.18164251744747162, 0.17838944494724274, -0.11381091922521591, -0.32613110542297363, -0.6402074694633484, 0.07730761915445328, 0.6026970148086548, -0.16777774691581726, -0.04629226...
synchronized( this ) { // blocks "this" from here .... .... .... .... } // to here... } ``` See? No advantage at all. Blocks **do** have advantages over methods though, mostly in flexibility because you can use another object as lock whereas syncing the method would lock the entire obj...
[ 0.6171834468841553, -0.27769142389297485, 0.2691670060157776, 0.21973048150539398, 0.006739113945513964, -0.21310174465179443, 0.04413872957229614, -0.3119121789932251, -0.4532710611820221, -0.18184413015842438, 0.23261824250221252, 0.5427920818328857, -0.6259416937828064, 0.24834378063678...
Using specific locks Object inputLock = new Object(); Object outputLock = new Object(); private void someInputRelatedWork() { synchronized(inputLock) { ... } } private void someOutputRelatedWork() { synchronized(outputLock) { ... } } ``` Also if the method grows you can still kee...
[ 0.44755083322525024, -0.21954818069934845, 0.5272427201271057, 0.2035689353942871, 0.1546940803527832, -0.03629108890891075, 0.28554749488830566, -0.4936029314994812, -0.5335310697555542, -0.22546163201332092, 0.019648026674985886, 0.43117231130599976, -0.6170000433921814, 0.55160129070281...
... very few lines of code here } ... code here ... code here ... code here ... code here } ```
[ -0.14044319093227386, 0.6011189222335815, -0.03411705419421196, 0.1687062531709671, 0.14294986426830292, 0.20953375101089478, 0.44821789860725403, 0.05215579271316528, 0.1799284666776657, -0.8105903267860413, -0.34272027015686035, 0.15980586409568787, -0.14434736967086792, 0.01372168026864...
This is a follow up on a question asking for an [explanation of REST](https://stackoverflow.com/questions/551933/can-you-explain-the-web-concept-of-restful/). As you can see from the comments to my answer, we've had a small argument with [Darrel Miller](https://stackoverflow.com/users/6819/darrel-miller) on the best m...
[ 0.08824989944696426, 0.11035016179084778, 0.17226366698741913, 0.059016257524490356, -0.024505402892827988, -0.11619535088539124, 0.1865270882844925, -0.1276783049106598, -0.19040845334529877, -0.3128025531768799, -0.23725290596485138, 0.5254298448562622, -0.12931452691555023, 0.1773956865...
should reflect it. Thus, a proper REST API should choose either: * a well-known media like ATOM to represent the data, so that as many clients could understand the semantic of the resource natively; * an app-specific media type like application/vdn.mycomany.mymedia and expect the client to understand this media type t...
[ 0.2678148150444031, -0.11985224485397339, 0.41608279943466187, 0.36994558572769165, -0.07273317873477936, -0.15924446284770966, -0.017576921731233597, 0.04461235553026199, -0.1673526018857956, -0.6757596135139465, -0.3916100859642029, 0.5209914445877075, -0.0725041851401329, -0.09663016349...
representation. The media type exposed by the API is just a container to transfer the resource data. The actual semantic of the data is treated separately. Thus, a client that does not understand the data, can still consume the REST API. Application/xml is a really good data representation, as it allows tight coupling ...
[ 0.22261996567249298, -0.10185491293668747, 0.3087806701660156, 0.5785843133926392, -0.014780677855014801, 0.021268615499138832, -0.11529266834259033, 0.008731212466955185, -0.3838246762752533, -0.8066664338111877, -0.04605253040790558, 0.7589524388313293, -0.3221518397331238, -0.0251018963...
semantic of the data as well? I would appreaciate if people post in their answers some citations, preferably from the Roy man himself. :-) Let's start at the beginning: media types are there to provide the client with a format it can use to decide what to do next. Without an html page, the browser has no links to go t...
[ 0.09570439159870148, -0.08799702674150467, 0.43058890104293823, 0.35942041873931885, -0.2458806335926056, -0.1279572695493698, 0.2692360281944275, -0.021228913217782974, -0.012078280560672283, -0.6838127374649048, -0.09860124439001083, 0.4271834194660187, -0.33364447951316833, 0.1225652694...
the headers specifying application/xml, it has no knowledge of what to do beyond get an xml parser. So the question really is, should the client be able to make a decision based on the http message without having a look inside the message, or should it go and peek inside the message (or worse, parse the message first)...
[ 0.14089588820934296, -0.15034598112106323, 0.4052302837371826, 0.4709116220474243, 0.09764020144939423, -0.32065775990486145, 0.1668376326560974, -0.21525736153125763, -0.3248075842857361, -0.6900925636291504, -0.054393220692873, 0.5615219473838806, -0.18555380403995514, -0.105318114161491...
add a lot of custom behavior for each of your formats you may want to process, and you loose a bit of coupling in the process. It's also an http fundamental that intermediaries should be able to process the requests without inspecting the body, and there as well application/xml is problematic. Now when you say that t...
[ 0.5412328243255615, -0.07745171338319778, 0.38133224844932556, 0.42278721928596497, -0.12690651416778564, -0.13580170273780823, -0.10603080689907074, -0.1419200450181961, -0.2803383469581604, -0.7546762824058533, -0.06129831075668335, 0.6202280521392822, -0.4522842466831207, 0.038354802876...
indeed where the client gets the information it requires to navigate the "API", and as such there can be no API without representations. Furthermore, a client should have only three bits of knowledge: a bootstrap location, the HTTP protocol and the media types. The first is only a URI and doesn't convey much beyond th...
[ 0.19560767710208893, 0.12158095836639404, 0.6142199635505676, 0.3563172519207001, 0.11209087818861008, -0.05696030333638191, 0.4040340781211853, 0.011108962818980217, -0.2273777276277542, -0.759122908115387, -0.09835045039653778, 0.403377503156662, -0.2342597395181656, 0.05057015269994736,...
to add a customer, send a application/vnd.acme.customer+xml to /customers using a POST. Hence my answer: designing a REST architecture relies on two steps: resource modeling (at the conceptual level) and media type building. Anything else and you're likely doing it wrong.
[ 0.2546943128108978, 0.01038198173046112, 0.331059992313385, -0.06833578646183014, 0.1483866274356842, 0.1674434244632721, -0.04363277181982994, 0.07205918431282043, 0.07312715798616409, -0.6382191777229309, -0.20499518513679504, 0.44356653094291687, -0.12502513825893402, 0.0160695854574441...
How can I enable users to resize a panel at runtime by dragging a corner? You could intercept the mouse location and the click.. if it's in a corner then set a resizing boolean and then on the mousemove event you could implement something like this.. ``` if (_resizing) { this.Height = top + e.Y; this.Width...
[ 0.12451446056365967, -0.24682959914207458, 0.6018574833869934, -0.1005362719297409, 0.06504495441913605, 0.0836978554725647, -0.00871823076158762, -0.47297126054763794, -0.09601127356290817, -0.9191542863845825, -0.0574556328356266, 0.5704595446586609, -0.2345697432756424, 0.24894425272941...
I have been using 'bash' since the time I have been using Unix- Linux/Solaris. Now, I am interested to know what do shells like 'ksh','zsh' offer better? *What do 'geeks' use?* I'm partial to zsh (it's like a blend of ksh and bash). The [guide](http://zsh.sunsite.dk/Guide/zshguide.html) has a nice overview of its featu...
[ 0.44853708148002625, 0.26625147461891174, 0.022298665717244148, -0.1727379411458969, -0.28407377004623413, -0.31439027190208435, -0.07983818650245667, 0.22803504765033722, -0.08893110603094101, -0.8259162306785583, 0.07908229529857635, 1.0508356094360352, 0.13605020940303802, 0.04577938467...
I was wondering if there were any simple examples that did the following ``` * A right and a left fixed column with a fluid center. With full height and width and a header and footer. * A single left fixed column with a fluid content column 2. With full height and width and a header and footer. ...
[ 0.17914915084838867, 0.08545036613941193, 0.8661895990371704, 0.373319149017334, -0.31792664527893066, 0.34447768330574036, -0.401083767414093, -0.0013610261958092451, -0.1997530609369278, -0.2719859182834625, 0.11389200389385223, 0.3638556897640228, -0.17053139209747314, 0.137887552380561...
a header and footer. ``` I've tried some methods (such as the ones listed on listapart) but they seemed really complicated and they used a lot of divs, or they just didn't support padding. Thanks in advance The examples you found in alistapart.com are as complicated as they need to be, and every serious example that...
[ 0.650821328163147, 0.02134975790977478, 0.21115794777870178, 0.12279195338487625, -0.11282321065664291, -0.14365778863430023, 0.06852458417415619, -0.13324585556983948, -0.07917368412017822, -0.5983937978744507, 0.3099706768989563, 0.33485230803489685, -0.47104012966156006, -0.230982199311...
good demo layout similar to the second you are looking for, here: <http://www.meiaweb.com/test/BMS_DM_NI/> Basically, the html is this: ``` <body> <div id="head"> <h1>Title</h1> </div> <div id="main"> <div id="navigation"> <!-- navigation content --> ...
[ 0.21254795789718628, -0.2593027949333191, 0.12055034190416336, 0.05185311287641525, 0.22664101421833038, -0.27095481753349304, -0.2135394662618637, -0.10248792171478271, -0.028964586555957794, -1.1338987350463867, 0.09121224284172058, 0.6899814605712891, 0.14025862514972687, -0.21237422525...
<div id="content"> <h2>Content Title</h2> <p> <!-- main content here --> </p> </div>
[ -0.055702801793813705, -0.08240415900945663, 0.3893301486968994, 0.09182898700237274, -0.42845475673675537, -0.27969858050346375, -0.187801793217659, -0.0672738328576088, -0.1119476854801178, -0.3298526704311371, -0.6865668296813965, 0.192330002784729, -0.030994417145848274, 0.360251486301...
</div> </body> ``` And the css is: ``` html { overflow: auto; height: 100%; } body { margin: 0; padding: 0; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; width: 100%; height: 100%; line-height: 1.5em; } #head { height: 20px; background-color: #666; color...
[ -0.27292823791503906, 0.13161568343639374, 0.877541184425354, 0.12139172852039337, -0.16505557298660278, 0.6880061626434326, 0.1812770962715149, -0.2898642122745514, -0.2206478714942932, -0.6863327026367188, -0.6253916025161743, 0.006737982854247093, -0.0304789450019598, -0.233438223600387...
border-right: solid 1px #AAA; float: left; overflow: auto; } #content { margin-left: 250px; padding: 20px 20px; } ``` I think it's simple enough, and it works in all modern browsers.
[ 0.1236586943268776, 0.07433890551328659, 0.9682544469833374, 0.13504958152770996, 0.06325923651456833, -0.24359600245952606, 0.010527818463742733, -0.08305210620164871, -0.14065536856651306, -0.6171053647994995, 0.053753577172756195, 0.38361451029777527, -0.12045756727457047, -0.0745814144...
Does anyone know of a good Perl unit test generator? Not sure what you're asking, but most people write tests with [Test::More](http://search.cpan.org/perldoc?Test::More) or [Test::Class](http://search.cpan.org/perldoc?Test::Class). You then run these tests with the `prove` command included with Perl (actually, with Te...
[ 0.5829252600669861, 0.10030783712863922, 0.012553910724818707, 0.12316667288541794, -0.0811346247792244, -0.22281673550605774, 0.4324687123298645, -0.5415310859680176, 0.031179428100585938, -0.24821040034294128, 0.01001620665192604, 0.7239936590194702, -0.02277202345430851, -0.027145309373...
So I've been working on this all day and I can't figure out how to get it to work. I have a table with TD's filled with content which is drawn from a database using a JQuery "getJSON" command. I have an event handler set-up so that when you double click a TD element, its contents become a INPUT element with the default...
[ 0.3399497866630554, -0.08469592779874802, 0.44059547781944275, -0.025934040546417236, -0.05066985636949539, -0.02697822079062462, 0.29846617579460144, -0.4970862567424774, 0.07207239419221878, -0.5684273838996887, -0.13724108040332794, 0.7877636551856995, -0.5313430428504944, 0.09420432895...
of this is working so far. My problem is, I want the user to be able to hit the RETURN key while the INPUT is selected to signify they've finished editing that field. I've tried something like the following: ``` $(obj.docElement).bind('keydown', function(e) { if(e.which == 13) { // do something } } ``...
[ 0.10262013226747513, 0.08856883645057678, 0.3170013427734375, -0.2589564323425293, -0.08433956652879715, -0.03306562453508377, 0.35968321561813354, -0.5120540261268616, 0.06779308617115021, -0.6281484365463257, 0.06450909376144409, 0.8610727190971375, -0.37651318311691284, 0.19925363361835...
INPUT element stops registering any type event, as if the "bind" no longer existed on it. I've done lots of googling and determined that the regular JQuery "bind" handler placed on an INPUT element is unreliable. Therefore I decided to attach the event handler to the document object instead using the following: ``` $...
[ -0.04388643056154251, -0.1440572589635849, 0.26385238766670227, -0.13120043277740479, -0.035515740513801575, -0.13531608879566193, 0.2090599238872528, -0.32166600227355957, 0.09803126007318497, -0.5913130640983582, -0.2493024617433548, 0.44145017862319946, -0.4420104920864105, -0.087729662...
in the first place? I need to be able to execute functions contained within the corresponding "Input" class that was used to create the INPUT element. I need to call these functions from within the "$(document).bind" function. So basically I need to be able to get an INPUT element's parent/creator Input object. If I h...
[ 0.7861276268959045, 0.18617762625217438, -0.2835633158683777, 0.20512133836746216, -0.10818389058113098, -0.22008508443832397, 0.24612125754356384, -0.3105349838733673, -0.06077837198972702, -0.39983710646629333, 0.11308379471302032, 0.5233569741249084, -0.025461800396442413, 0.14586284756...
command included with Perl (actually, with Test::Harness). Example test: ``` # foo.t use strict; use warnings; use Test::More tests => 1; ok( 1 == 1, 'is one one?' ); ``` Running this: ``` $ prove foo.t foo....ok All tests successful. Files=1, Tests=1, 0 wallclock secs ( 0.01 usr 0.01 sys + 0.03 cusr 0.00 cs...
[ -0.009306015446782112, -0.1616307944059372, 0.22294184565544128, -0.08933558315038681, 0.09277892112731934, -0.27919816970825195, 0.5878212451934814, -0.47628530859947205, 0.013211713172495365, -0.2361394613981247, -0.2999297082424164, 0.6860174536705017, -0.07751338183879852, -0.094138510...
When I try to start a service I created in Visual Studio I receive the following error: ``` System error 5 has occurred. Access is denied. ``` I am running the command line with elevated privileges, so it's not that problem. Is there any place I can look to see what error is occuring. To get it to work I needed to ...
[ 0.37293899059295654, 0.31837859749794006, 0.045055605471134186, -0.4083043336868286, 0.015873940661549568, -0.06629418581724167, 0.5502117276191711, 0.28160354495048523, -0.1772712618112564, -0.7946139574050903, -0.19500133395195007, 0.6119391918182373, -0.15720605850219727, 0.347937405109...
Whenever I call the doSomething function my program crashes. The actual code as a bit of array bounds checking, so I know that's not an issue. myClass.h ``` #import <Foundation/Foundation.h> @interface myClass : NSObject { BOOL **myMatrix; } @property(readwrite) BOOL **myMatrix; -(myClass*)initWithWidth: (int)...
[ 0.05087165907025337, -0.12924735248088837, 0.5801008939743042, -0.19797933101654053, -0.19043603539466858, -0.029121117666363716, 0.6775005459785461, -0.8856005072593689, -0.008175372146070004, -0.8776467442512512, 0.012391875497996807, 0.9376481771469116, -0.4671988785266876, 0.1325799077...
= malloc(w * sizeof(BOOL *)); int i; for(i = 0; i < w; i++){ newMatrix[i] = malloc(h * sizeof(BOOL)); } return newMatrix; } @end ``` To get it to work I needed to add permissions to the output bin\debug folder for my service project. The Local Service account didn't have permissions to the o...
[ 0.07440365850925446, -0.08717600256204605, 0.39819324016571045, -0.47250720858573914, 0.21620942652225494, 0.2471383959054947, 0.6596288681030273, -0.5268477201461792, -0.059329140931367874, -0.5804676413536072, -0.3004007041454315, 0.46982914209365845, -0.28142306208610535, 0.364888310432...
I have this table ID | Category | Subcategory | ``` 1 | Books | Comic | 2 | Books | Fiction | 3 |
[ -0.11551500856876373, 0.531865119934082, 0.482180655002594, -0.159969300031662, -0.22365479171276093, -0.16758951544761658, -0.020387062802910805, -0.10419616103172302, 0.23101235926151276, -0.5223655700683594, -0.21726176142692566, 0.21052485704421997, 0.008126203902065754, 0.341093808412...
Cars | New | 4 | Books | Non- fiction | 4 | Cars | Second hand | ``` and I want to select
[ 0.16443273425102234, 0.2804884612560272, 0.5696849822998047, 0.491329550743103, 0.24266782402992249, 0.4167214035987854, 0.17153126001358032, 0.029020581394433975, -0.11191026121377945, -0.21517670154571533, -0.03249817341566086, 0.5778434872627258, 0.22197307646274567, 0.12477631866931915...
only unique entries from the column 'Category'. That is, I want 'Books' and 'Cars' to be selected only once. How can I write a query ?? Help please. You mean distinct ? ``` SELECT Distinct Category FROM Table ```
[ 0.1660786122083664, 0.4740082919597626, 0.28845304250717163, 0.26487794518470764, -0.10400854051113129, 0.010102684609591961, -0.271711528301239, -0.052891455590724945, -0.09544363617897034, -0.4516160488128662, -0.07245813310146332, 0.5244978070259094, -0.08546463400125504, 0.360345214605...
I'm having a problem setting up an event on a form. Here's the setup: I was given a page with two controls, two different versions of a form for the end-user to fill out- standard and advanced. The two forms have different code and javascript, so the original dev put them in separate web user controls. Aside from the ...
[ -0.01860240288078785, -0.16576912999153137, 0.6533244252204895, -0.11800515651702881, -0.15241147577762604, -0.21607090532779694, 0.12358374893665314, -0.22007347643375397, 0.052015408873558044, -0.7606297731399536, -0.09592808783054352, 0.5048277378082275, -0.28280580043792725, -0.1882585...
bosses wants the 'Go to Advanced' button inside the standard form, but the .Visible code is on the page. So I thought it could be done using an event, but it doesn't seem to be working. I tried to set up the event like this: ``` public event EventHandler AdvanceClick; protected void lnkAdvanced_Click(object sender, ...
[ -0.3500501811504364, -0.18167731165885925, 0.49469685554504395, -0.24148941040039062, 0.29201260209083557, -0.055941350758075714, 0.013955377042293549, -0.17609567940235138, -0.29247182607650757, -0.6116507053375244, -0.20383399724960327, 0.4930886924266815, -0.4898597300052643, 0.12308022...
seem to recognize any events within the control! I get an error: "Standard does not contain a definition for 'AdvanceClick' and no extension method 'AdvanceClick accepting a first argument of type 'Standard' could be found" It finds the other properties just fine, am I going about this the wrong way? If the standard fo...
[ -0.06672002375125885, -0.17052333056926727, 0.7317320108413696, 0.4146389365196228, 0.35108867287635803, -0.39675384759902954, 0.1864098310470581, -0.1437949538230896, -0.14471809566020966, -0.22136317193508148, -0.07859032601118088, 0.45023244619369507, -0.11875156313180923, -0.1399482786...
of the standard form then... or better yet, merge them into one control. If you don't like these options you might want to create a third controls which hosts the button and the two forms, along with the logic to move data between them and toggle their visibility. I personally recommend the single control option. Hav...
[ 0.28254446387290955, -0.16896848380565643, 0.46347635984420776, 0.3296176493167877, -0.26859161257743835, -0.13231943547725677, -0.20423942804336548, -0.38105106353759766, -0.12119506299495697, -0.8111555576324463, -0.11917539685964584, 0.42743197083473206, -0.33698609471321106, 0.05278087...
and search results being split up into multiple controls, but then in the end needing each others instances to function properly. As I said earlier, I wont reccomend this path.
[ 0.11609767377376556, 0.2910499572753906, 0.11615932732820511, 0.22796590626239777, 0.009368072263896465, -0.23534029722213745, 0.261302649974823, -0.3912189304828644, 0.10088992863893509, -0.7593889236450195, 0.10110201686620712, 0.5600703954696655, -0.2717021703720093, 0.02849777042865753...
G'day all, I am coding a main menu for a project. The menu displays properly. I have also set up ActionListeners for the three buttons on the menu. What I wish to do is reuse the JPanel for a new set of radio buttons when the user chooses "Start a New Game". However, coding ActionPerformed to remove the existing ...
[ 0.2532457411289215, 0.053174469619989395, 0.41363778710365295, -0.231694757938385, -0.21895895898342133, -0.009514424949884415, 0.33701610565185547, 0.08583705872297287, -0.13538758456707, -0.6016499996185303, -0.10329996794462204, 0.954014241695404, -0.26251399517059326, 0.166979834437370...
it in so you can see what I am trying to do. Your thoughts or hints are appreciated. Here is my main code: ``` public class Main { public static void main(String[] args) { MainMenu menu = new MainMenu(); menu.pack(); menu.setVisible(true); } } ``` Here is my mainMenu code: ``` im...
[ 0.197371706366539, -0.3585975766181946, 0.327253133058548, -0.5085349082946777, -0.045670561492443085, -0.022228967398405075, 0.30102574825286865, -0.5473771691322327, -0.0309574156999588, -0.6285067200660706, -0.4463289976119995, 0.6750511527061462, -0.5092722773551941, -0.010569115169346...
JButton loadOldGame = new JButton("Load an Old Game"); JButton seeInstructions = new JButton("Instructions"); public MainMenu() { super("RPG Main Menu"); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel mainMenu = new JPanel(); mainMenu.setLayout(ne...
[ -0.1302502453327179, -0.27218905091285706, 0.6921803951263428, -0.4281313717365265, 0.12404640763998032, -0.010032049380242825, 0.5389934182167053, -0.32582101225852966, -0.039259836077690125, -0.42605504393577576, -0.6963671445846558, 0.7401211261749268, -0.34217581152915955, 0.2974554002...
startNewGame.setMnemonic('n'); loadOldGame.setMnemonic('l'); seeInstructions.setMnemonic('i'); startNewGame.addActionListener(this); loadOldGame.addActionListener(this); seeInstructions.addActionListener(this); mainMenu.add(startNewGame); ...
[ -0.36562487483024597, -0.16947317123413086, 0.4587195813655853, -0.6322364211082458, -0.030561374500393867, 0.25497132539749146, 0.3635266423225403, -0.37112563848495483, -0.14955425262451172, -0.6645676493644714, -0.8607285022735596, 0.42286044359207153, -0.3730767071247101, -0.0544591136...
setContentPane(mainMenu); } public void actionPerformed(ActionEvent evt) { Object source = evt.getSource(); if (source == startNewGame) { // StartNewGame code goes here // mainMenu.removeAll();
[ 0.0378689207136631, -0.3174721300601959, 0.4229446351528168, -0.2371300756931305, 0.26455119252204895, -0.043645672500133514, 0.6660851240158081, -0.4053787887096405, 0.042151179164648056, -0.46609222888946533, -0.6515976786613464, 0.5519600510597229, -0.38953885436058044, 0.11116287857294...
} if (source == loadOldGame) { // LoadOldGame code goes here } if (source == seeInstructions) { // Quit code goes here
[ 0.06332363188266754, -0.374158650636673, 0.12829944491386414, -0.2472480982542038, 0.3166384696960449, -0.2114497423171997, 0.36958396434783936, -0.10827895253896713, -0.1117347851395607, -0.6692864298820496, -0.1284794956445694, 0.9992214441299438, -0.5419297218322754, -0.0688642635941505...
} } } ``` You need mainMenu to be a member variable: ``` public class MainMenu extends JFrame implements ActionListener { JButton startNewGame = new JButton("Start a New Game"); JButton loadOldGame = new JButton("Load an Old Game"); JButton seeInstructions = new JButton("Instructi...
[ -0.007504652254283428, -0.24970221519470215, 0.27696266770362854, -0.37381112575531006, 0.18179138004779816, -0.06952321529388428, 0.34217584133148193, -0.34922194480895996, -0.1566394418478012, -0.5384764075279236, -0.40114739537239075, 0.5309621095657349, -0.5402149558067322, 0.294111669...
I have a datagrid defined in an mxml file (flex 3): I am using an external class to connect to a sqlite database and generate some results (this is working and I can trace the results). How can I target the datagrid generated in the mxml from the external class? I have tried: Application.application.resultsGrid.data...
[ 0.0848890021443367, 0.01511406246572733, 0.3606549799442291, -0.0863880068063736, -0.26734262704849243, -0.04978528246283531, 0.19198094308376312, -0.4405280351638794, -0.20726600289344788, -0.5842427015304565, 0.021015984937548637, 0.7493188381195068, -0.3946744203567505, 0.05800433456897...