text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
0.00 MINUTES EXECUTION TIME
[ 0.46972987055778503, 0.20098747313022614, -0.42321494221687317, 0.27335986495018005, -0.07000112533569336, 0.13845455646514893, 1.1124153137207031, -0.30511489510536194, 0.04684452712535858, -0.5262128114700317, 0.09415704011917114, 0.05471006780862808, -0.05298114940524101, -0.34134745597...
``` !! END OF JES SPOOL FILE !! 1 //KC03CEFA JOB ,'MATT R',MSGCLASS=H,TYPRUN=SCAN JOB07731 //\* 2 //STEP01 EXEC PGM=IGYCRCTL,&REGION=248K, // &PARM='TEST,APOST' 3 //STEPLIB DD DSN=IGY340.SIGYCOMP,DISP=SHR /\* 4 //SYSLIN DD &DSN=&&OBJSET,UNIT=DISK,SPACE=(TRK,(3,3)), // &DISP=(NEW,PASS,DELETE) ...
[ -0.4020102322101593, -0.02288363315165043, 0.6178315877914429, 0.09228776395320892, 0.14772018790245056, 0.3294687569141388, 0.4807240068912506, -0.4586339294910431, -0.23783129453659058, -0.6274648308753967, -0.6351303458213806, 0.36865296959877014, -0.33204004168510437, 0.228465214371681...
10 //SYSUT5 DD UNIT=DISK,SPACE=(CYL,(1,1)) 11 //SYSUT6 DD UNIT=DISK,SPACE=(CYL,(1,1)) 12 //SYSUT7 DD UNIT=DISK,SPACE=(CYL,(1,1)) //\* //\* 13 //STEP02 EXEC PGM=HEWL,&COND=,&REAGION=2048K, // &PARM= 14 //SYSLIB DD DSN=CEE.SCEELKED,DISP=SHR 15 //SYSLIN DD &DSN=&&OBJSET,&DISP=(OLD,DELETE) ...
[ -0.5580636262893677, -0.042135000228881836, 1.0069143772125244, 0.06741603463888168, 0.15642012655735016, 0.5308457612991333, 0.24210336804389954, -0.31596705317497253, -0.4884634017944336, -0.7540063261985779, -0.6777867078781128, 0.2588620185852051, -0.03767116367816925, 0.04668365418910...
23 //SYSUDUMP 24 //PRINTER DD SYSOUT=\* 25 //PRODUCTS DD DSN=KC02322.CSCI465.SP09(DATA1),DISP=SHR 26 //SYSIN DD \* !! END OF JES SPOOL FILE !! STMT NO. MESSAGE 2 IEFC630I UNIDENTIFIED KEYWORD &REGION 2 IEFC630I UNIDENTIFIED KEYWORD &PARM 4 IEFC630I UNIDENTIFIED KEYWORD &DSN 4 IEFC630I UNIDENTIFIED K...
[ -0.16678950190544128, 0.1613333374261856, 0.5265868902206421, -0.008300197310745716, -0.3477894961833954, 0.4742881953716278, 0.34957337379455566, -0.40696045756340027, -0.24211429059505463, -0.7952437400817871, -0.5710554718971252, 0.10859941691160202, -0.30772852897644043, 0.260083645582...
preceded by an ampersand. When used in a JCL statement, at runtime they get converted into the supplied value. One way of creating them (on z/OS) is using a `// SET name = value` declaration. If you use a PARM, you should design your program so that it can work with one. Perhaps the assignment is about how to do *tha...
[ 0.5156351327896118, 0.13068127632141113, 0.147135391831398, -0.21514597535133362, -0.20600487291812897, -0.19821050763130188, 0.028748048469424248, -0.21379399299621582, -0.11090008169412613, -0.49480900168418884, -0.1096624806523323, 0.4837687313556671, -0.45754870772361755, -0.0083290003...
this is a bit unusual to me, as we tend to compile and run our programs in separate JCL streams. But anyway. Taking your second statement: ``` 2 //STEP01 EXEC PGM=IGYCRCTL,&REGION=248K, // &PARM='TEST,APOST' ``` REGION and PARM are so-called positional parameters and they are keywords, not really meant to be pre...
[ -0.1750449389219284, -0.22284963726997375, 0.1443791687488556, 0.015054356306791306, 0.1277810037136078, 0.08920710533857346, 0.03499144688248634, -0.001279923366382718, -0.218517005443573, -0.3381262719631195, -0.2849423587322235, -0.062368519604206085, -0.023572461679577827, 0.1134472638...
//STEP01 EXEC PGM=IGYCRCTL,REGION=248K, // PARM=&OPTIONS ```
[ -0.45598894357681274, -0.3495944142341614, 0.542511522769928, 0.06723448634147644, 0.2541677951812744, 0.12043111026287079, 0.2525496482849121, -0.25763627886772156, -0.15762007236480713, -0.7582314610481262, -0.5063082575798035, 0.1435752809047699, -0.09169650077819824, -0.115632779896259...
Any code examples on how i must go about creating a folder say "pics" in my root and then upload a images from the file upload control in into that "pics" folder? If you don't want to give me all the code, i will be happy with a nice link also to show me how this will be done in VB.NET (C# is also ok). Try/Catch is on ...
[ 0.5146452188491821, -0.19238238036632538, 0.2987735867500305, 0.21199491620063782, 0.30910056829452515, -0.3816605508327484, 0.255670428276062, 0.3424049913883209, -0.14372266829013824, -0.8965216279029846, -0.07099646329879761, 0.8106951117515564, -0.26587074995040894, 0.00284430198371410...
- create it. if (!System.IO.Directory.Exists(Server.MapPath(@"~/pix/"))) { System.IO.Directory.CreateDirectory(Server.MapPath(@"~/pix/")); } } protected void Button1_Click(object sender, EventArgs e)
[ -0.11251860857009888, -0.30871328711509705, 0.5741266012191772, 0.2620792090892792, 0.19981695711612701, 0.021999694406986237, 0.1165146604180336, 0.15759697556495667, -0.06716510653495789, -0.8492702841758728, -0.45013558864593506, 0.19499020278453827, -0.18999259173870087, 0.422818630933...
{ if (FileUpload1.HasFile && Path.GetExtension(FileUpload1.FileName) == ".jpg") { // create posted file // make sure we have a place for the file in the directory structure
[ 0.2503577470779419, -0.011695247143507004, 0.5978705883026123, 0.07937739789485931, 0.3996385335922241, -0.2319362312555313, 0.2245759665966034, -0.1726921796798706, -0.025860777124762535, -0.8514246940612793, -0.24381567537784576, 0.49917349219322205, -0.10982875525951385, 0.0908089652657...
EnsureDirectoriesExist(); String filePath = Server.MapPath(@"~/pix/" + FileUpload1.FileName); FileUpload1.SaveAs(filePath); } else
[ 0.08409102261066437, -0.5383978486061096, 0.867732584476471, -0.13924729824066162, 0.7292258143424988, 0.012823663651943207, 0.26475435495376587, -0.08746655285358429, 0.0117131806910038, -0.8312298059463501, -0.18222683668136597, 0.6772481203079224, -0.5092059969902039, -0.170533761382102...
{ lblMessage.Text = "Not a jpg file"; } } ```
[ 0.16940180957317352, 0.030934372916817665, 0.07899634540081024, -0.1606891006231308, 0.11513923108577728, -0.2220791131258011, 0.08705946058034897, 0.11983314901590347, -0.28801921010017395, -0.19231849908828735, -0.62229323387146, 0.6158443689346313, -0.36812999844551086, 0.24749793112277...
I have a MySQL table with an auto increment primary key. I deleted some rows in the middle of the table. Now I have, for example, something like this in the ID column: 12, 13, 14, 19, 20. I deleted the 15, 16, 17 and 18 rows. I want to reassign / reset / reorder the primary key so that I have continuity, i.e. make the...
[ 0.12567587196826935, 0.12369704991579056, 0.4014568030834198, -0.02348051592707634, 0.15299372375011444, 0.38955843448638916, 0.32687288522720337, -0.0732031986117363, -0.33375445008277893, -0.5841658711433411, 0.10187084227800369, 0.3687395453453064, -0.17529383301734924, 0.14865924417972...
a bad idea in most situations. If you have other tables that have foreign keys to this table then it will definitely not work.
[ 0.040949515998363495, 0.2319495677947998, 0.14719605445861816, 0.28170502185821533, 0.4557788670063019, -0.08434807509183884, 0.1872507482767105, 0.08376286923885345, -0.3443702757358551, -0.22857053577899933, 0.1123962551355362, 0.28804588317871094, 0.06980450451374054, 0.2095640003681183...
I have the following two questions, I tried googling these, but didn't find any luck. Please help me. 1. I have integrated AdMob ad to my iphone application. when the admob view is clicked, safari gets opened, and if there is any error in loading the ad, it displays an error message saying "safari cannot open the page...
[ 0.1874396950006485, 0.16767410933971405, 0.41772669553756714, 0.17604920268058777, 0.057908330112695694, -0.15977896749973297, 0.44086191058158875, -0.10451367497444153, -0.2513757348060608, -0.5927029252052307, 0.0684109479188919, 0.7023279666900635, -0.5410985946655273, 0.058178827166557...
the application? 2. How to add auto-close functionality to the adMob ad? You could drop the primary key column and re-create it. All the ids should then be reassigned in order. However this is probably a bad idea in most situations. If you have other tables that have foreign keys to this table then it will definitely ...
[ 0.18847844004631042, 0.15540698170661926, 0.6095095872879028, 0.2121623009443283, -0.16343307495117188, -0.08980758488178253, 0.13778626918792725, -0.5034340620040894, 0.14863143861293793, -0.535621702671051, -0.05170990526676178, 0.6380025148391724, -0.6663546562194824, -0.076639719307422...
I have a table called 'movie2person' with 3 columns: movieID, personID and role. I use this table to connect betwen the 'movies' table and the 'persons' table... many-to-many relationship.. I have selected movieID and personID both as primary keys... The problem is that sometimes I need to enter the same personID for ...
[ -0.2796195149421692, -0.21267512440681458, 0.4605007469654083, 0.22470760345458984, -0.22791801393032074, 0.45440587401390076, -0.22402623295783997, -0.2932851016521454, 0.12340961396694183, -0.6629011034965515, 0.15776407718658447, 0.80560702085495, 0.10532744973897934, 0.3264540731906891...
which you wouldn't use outside of this table.
[ 0.18862320482730865, 0.2970964014530182, -0.1394631415605545, 0.1068226769566536, 0.1616431623697281, -0.0567009411752224, -0.006720620673149824, -0.015915393829345703, -0.318042516708374, -0.23667944967746735, 0.17337347567081451, 0.4735616445541382, 0.07841242104768753, -0.09370888769626...
What's the difference between XSLT and XSL-FO ? Every resource I've read deal with them as if they were 1, or at least very closely tied.. I was wondering about the basis of the question because I thought it was easy to answer, however as soon as you go here: <http://www.w3.org/TR/xsl/> it becomes clear that its actua...
[ 0.29265108704566956, -0.13722188770771027, 0.5009182691574097, 0.06122095510363579, -0.16767559945583344, -0.2573530375957489, -0.5322165489196777, -0.1088053286075592, 0.055283769965171814, -0.41072872281074524, -0.16016308963298798, 0.4481242597103119, -0.45994308590888977, -0.1866440623...
transforming XML > documents (XSLT), and > 2. an XML vocabulary for specifying > formatting semantics. However, back in the real world, XSLT (which is also what most people will assume you mean by XSL) is a means for transforming XML documents into something else - that something else more often than not being anoth...
[ 0.05713538080453873, -0.38829731941223145, 0.53590989112854, 0.22912850975990295, -0.33532142639160156, -0.4406108558177948, -0.1337236762046814, 0.02266179397702217, -0.11465021967887878, -0.8447285890579224, -0.29721105098724365, 0.4157313406467438, -0.46669599413871765, -0.2601760029792...
because it allows you to manage content that is spread across multiple pages, its relatively straightforward to specify the format of a page (or even and odd pages) including headers, footers, borders, columns, etc and have your content flow into that. One would therefore take a load of data in, say, an XML format and ...
[ 0.3103630542755127, 0.00769627233967185, 0.5312297344207764, 0.3581995368003845, -0.1965242326259613, -0.2934350073337555, -0.35294803977012634, -0.05163965001702309, -0.26111316680908203, -0.5903757810592651, -0.2509748339653015, 0.23954302072525024, -0.11522427946329117, 0.04662800580263...
that data as XML, render that into XSL-FO and from there to PDF which goes to a printer who turns said PDF into a 500 page directory. One specifies in the XSL-FO that one wants page numbers, page breaks in specific circumstances, that there is a table of contents and an index (each based on particular elements) and the...
[ 0.001960975117981434, 0.13883504271507263, 0.8482690453529358, 0.3932269215583801, 0.054136574268341064, -0.1873551309108734, -0.4793066084384918, -0.008339807391166687, -0.10074721276760101, -0.49512070417404175, -0.5708447694778442, 0.1958274245262146, -0.1788603663444519, -0.12389268726...
I have a Swing application, and even though I have everything in a `try`/`block`, the exception isn't caught. ``` public static void main(String[] args) { try { App app = new App(); app.setVisible(true); } catch (Throwable e) { System.err.println("never printed"); } } ``` all I g...
[ 0.07289391756057739, 0.1834070384502411, 0.5040333867073059, -0.26028677821159363, -0.22223661839962006, 0.32049107551574707, 0.36328691244125366, -0.700309157371521, -0.49897730350494385, -0.37865784764289856, -0.1207108348608017, 0.2781139016151428, -0.5143297910690308, -0.28730404376983...
javax.swing.JLayeredPane.paint(JLayeredPane.java:564) at javax.swing.JComponent.paintChildren(JComponent.java:864) at javax.swing.JComponent.paintToOffscreen(JComponent.java:5129) at javax.swing.BufferStrategyPaintManager.paint (BufferStrategyPaintManager.java:277) at javax.swing.RepaintManager.paint(RepaintManager.jav...
[ -0.18604323267936707, -0.0651581808924675, 0.5202199220657349, -0.2687924802303314, -0.1435568630695343, 0.6227096915245056, 0.3669862449169159, -0.474729984998703, -0.24766500294208527, -0.8483729362487793, -0.24775435030460358, 0.5698767304420471, -0.1631385236978531, -0.3526220321655273...
public void uncaughtException(Thread t, Throwable e) { // ... do something with exception here ... } }); ``` On a side-note, you should in principle but your UI startup code in a [SwingUtilities.invokeLater()](http://www.javamex.com/tutorials/threads/invokelater.shtml).
[ 0.165457621216774, -0.22742369771003723, 0.3784925043582916, -0.12388278543949127, 0.14893536269664764, -0.2930833697319031, 0.27230387926101685, -0.15519602596759796, -0.21827992796897888, -0.28100767731666565, -0.3080442547798157, 0.42060354351997375, -0.4310897886753082, 0.1905287653207...
> **Possible Duplicate:** > > [Qt equivalent of PathAppend?](https://stackoverflow.com/questions/13014145/qt-equivalent-of-pathappend) Is there a class that handles file paths in Qt? Particularly I'm looking for something like .NET's Path.Combine. I know there's one in boost::filesystem but I was wondering if ther...
[ 0.15618528425693512, -0.44084471464157104, 0.36134248971939087, 0.11426638811826706, -0.19037100672721863, -0.12476164847612381, 0.20209160447120667, -0.3170711398124695, 0.04179811105132103, -0.9784570336341858, 0.2781597077846527, 0.5816280841827393, -0.25183287262916565, -0.024028718471...
(Hopefully) Simple question: Is it possible to make the jQuery UI Datepicker draggable? If so, can someone give me some sample code? $(".ui-datepicker").draggable() does not work?
[ 0.3990744352340698, -0.2195098102092743, 0.4645255506038666, 0.4028686583042145, 0.380584716796875, -0.35403719544410706, 0.13543067872524261, 0.2441532164812088, 0.05452714487910271, -0.36577585339546204, -0.02696707844734192, 0.5419047474861145, -0.42966845631599426, -0.2748805582523346,...
Forgive me my C++ is incredibly rusty. But I am trying to take some old code and recompile it under Visual C++ 2008. It was originally written for Visual C++ 6.0 The error I am getting is this: > error C4430: missing type specifier - int assumed. Note: C++ does not support default-int Ok seems simple enough. But the...
[ -0.17441993951797485, 0.2381100207567215, 0.23383696377277374, -0.31948772072792053, -0.31675755977630615, 0.027179228141903877, 0.7533313632011414, -0.3812977373600006, 0.08550123125314713, -0.4914431571960449, 0.08624304831027985, 0.7514367699623108, -0.5239653587341309, 0.01073274109512...
Then I ran across this: ``` operator=(const CString& str); ``` There is no function body defined... what exactly does this mean? You need to have the `operator=()` method return something (it would assume int if the diagnostic weren't an error, as the error message somewhat confusingly indicates). Generally it woul...
[ 0.09381041675806046, -0.12673601508140564, 0.13453182578086853, -0.017943918704986572, -0.0963999554514885, -0.1877315789461136, 0.21916347742080688, -0.3390640914440155, -0.03601032868027687, -0.3672867715358734, -0.14807374775409698, 0.5669510364532471, -0.3538829982280731, -0.0095661496...
I am looking for a simple C++ library for extracting atom coordinates from a pdb file. Most I've come across do too much for my simple needs, making them unnecessarily complex. I always do your option 1, and as far as I can tell, all modern frameworks do. One thing that comes to mind that just sticks names together is...
[ 0.2483334094285965, 0.0788731649518013, -0.10642610490322113, 0.20398862659931183, 0.009625697508454323, -0.23402677476406097, 0.10564202070236206, 0.2802242636680603, -0.06692050397396088, -0.6309922337532043, -0.03306503966450691, 0.39141592383384705, -0.3440741002559662, -0.089108519256...
Background: ----------- I'm building a poetry site with user submitted content. The relevant user actions for my questions are that users can: * a. Go to fancysitename.com/view to see all poems so far * b. Go to fancysitename.com/submit to submit your own poem. * c. Go to fancysitename.com/apoemid to view a particula...
[ 0.3858657479286194, 0.1250866800546646, 0.5855100154876709, 0.05872697755694389, -0.14868979156017303, 0.3535074293613434, 0.15111850202083588, -0.011317537166178226, -0.059046655893325806, -0.6346021890640259, -0.006681433878839016, 0.17985087633132935, -0.06782181560993195, -0.1041895598...
up the text after getting the key from the url. Question: --------- * 1. The poems exist nowhere except in a database. My webapp is literally 4 html files. Will this approach affect my search engine rankings? 2. Is there a more efficient way to do 'd' rather than do a Select \* on the db and manually parsing the tex...
[ 0.2507627010345459, 0.1219203993678093, 0.6704500913619995, 0.2398015856742859, -0.4698196053504944, 0.0995248407125473, 0.4185068607330322, -0.2050369530916214, -0.161391943693161, -0.5820670127868652, 0.13472765684127808, 0.20139668881893158, -0.1774209439754486, -0.20686286687850952, ...
are pretty limited. So while I'd certainly be interested in hearing about the ideal way to do this, this is a pet side project so my budget is limited :( Thanks! Edit: Apparently I don't google so well at 7am. I've since found a solution for question 2 [here](http://www.kimchy.org/searchable-google-appengine-with-com...
[ -0.2964075207710266, -0.10227707028388977, 0.41374772787094116, 0.3460146188735962, -0.41605883836746216, 0.14727328717708588, 0.7807613015174866, -0.09888558089733124, -0.20589132606983185, -0.5558061003684998, -0.09278556704521179, 0.6001976132392883, -0.058027684688568115, -0.2802340388...
an article about how StackOverflow uses a sitemap to help its search ranking. <http://www.codinghorror.com/blog/archives/001174.html>
[ 0.42004960775375366, -0.13309374451637268, -0.14560359716415405, 0.1598421335220337, -0.006575318519026041, -0.11040761321783066, -0.10715147107839584, -0.23932014405727386, -0.463893860578537, -0.38200998306274414, -0.18257975578308105, -0.03736940771341324, -0.13765081763267517, 0.130577...
I have a method which needs to be as fast as it possibly can, it uses unsafe memory pointers and its my first foray into this type of coding so I know it can probably be faster. ``` /// <summary> /// Copies bitmapdata from one bitmap to another at a specified point on the output bitmapdata /// </summary> ...
[ 0.13126927614212036, -0.08160867542028427, 0.0338902547955513, 0.18148717284202576, -0.2908218204975128, 0.24053587019443512, 0.04938299208879471, -0.6546591520309448, -0.32719382643699646, -0.9058020710945129, 0.034608643501996994, 0.12919402122497559, -0.34330320358276367, 0.098472073674...
private static unsafe void CopyBitmapToDest(BitmapData sourcebtmpdata, BitmapData destbtmpdata, Point point) { // calculate total number of rows to draw. var totalRow = Math.Min( destbtmpdata.Height - point.Y, sourcebtmpdata.Height); //loop through each row on the so...
[ 0.013249748386442661, -0.017924724146723747, 0.16113117337226868, 0.06793472915887833, 0.06730354577302933, 0.2281171679496765, 0.6737073659896851, -0.2115480750799179, -0.12569628655910492, -0.31452199816703796, -0.005369509104639292, 0.6055870056152344, -0.3510327637195587, 0.15559382736...
bitmap for (int i = 0; i < totalRow; i++) { int destRow = point.Y + i; //get the pointer to the start of the current pixel "row" on the output image byte* destRowPtr = (byte*)destbtmpdata.Scan0 + (destRow * destbtmpdata.Stride); //get the
[ 0.01184289250522852, -0.46720778942108154, 0.593599259853363, -0.1473741978406906, -0.13471168279647827, 0.2907932698726654, 0.08185132592916489, -0.5487440824508667, -0.1381128430366516, -0.5741323828697205, -0.14766354858875275, 0.3453749716281891, -0.42003268003463745, -0.09157324582338...
pointer to the start of the FIRST pixel row on the source image byte* srcRowPtr = (byte*)sourcebtmpdata.Scan0 + (i * sourcebtmpdata.Stride); int pointX = point.X; //the rowSize is pre-computed before the loop to improve performance int rowSize = Math.Min(destbtmpdata.Wid...
[ -0.06300558894872665, -0.16863764822483063, 0.585854709148407, -0.15701039135456085, -0.21637563407421112, 0.30374038219451904, 0.14800891280174255, -0.33605387806892395, -0.12899184226989746, -0.8799787163734436, -0.02642069198191166, 0.33874571323394775, -0.21016792953014374, -0.24404819...
each set each pixel for (int j = 0; j < rowSize; j++) { int firstBlueByte = ((pointX + j)*3); int srcByte = j *3; destRowPtr[(firstBlueByte)] = srcRowPtr[srcByte];
[ 0.09092510491609573, -0.33718642592430115, 0.5908531546592712, -0.15446460247039795, -0.3578863739967346, 0.3234415054321289, 0.23451152443885803, -0.5840304493904114, 0.04089821130037308, -0.45400041341781616, -0.2210182547569275, 0.06642356514930725, -0.5770702362060547, 0.04467952623963...
destRowPtr[(firstBlueByte) + 1] = srcRowPtr[srcByte + 1]; destRowPtr[(firstBlueByte) + 2] = srcRowPtr[srcByte + 2]; } } } ``` So is there anything that can be done to make this faster? Ignore the todo for now, ill fix that later once I have some baseline performance measuremen...
[ 0.14068111777305603, -0.25463223457336426, 0.40819868445396423, -0.021924715489149094, -0.02209896221756935, -0.36292320489883423, 0.6478562355041504, -0.2369493544101715, -0.24618084728717804, -0.841478168964386, 0.049483153969049454, 0.697708249092102, -0.24301384389400482, 0.25616821646...
instead of Graphics.DrawImage is because im implementing multi-threading and because of that I cant use DrawImage. **UPDATE 2:** I'm still not satisfied with the performance and i'm sure there's a few more ms that can be had. There was something fundamentally wrong with the code that I cant believe I didn't notice unt...
[ -0.03873322159051895, 0.013759372755885124, 0.4433293342590332, -0.053218450397253036, -0.4237945079803467, -0.12635105848312378, 0.4565316438674927, -0.3768865466117859, -0.3001132309436798, -1.0123159885406494, 0.045391328632831573, 0.6138318777084351, -0.3788801431655884, -0.17169317603...
+ pointX * 3; ``` So now we have the correct pointer for the destination data. Now we can get rid of that for loop. Using suggestions from [Vilx-](https://stackoverflow.com/questions/740555/lockbits-performance-critical-code/857480#857480) and [Rob](https://stackoverflow.com/questions/740555/lockbits-performance-crit...
[ -0.2511580288410187, 0.1338091343641281, 0.5874355435371399, -0.20001567900180817, -0.14086097478866577, 0.001803216291591525, 0.2828802764415741, -0.25195568799972534, -0.3042755424976349, -0.6432385444641113, 0.006461079698055983, 0.26641491055488586, -0.19863489270210266, 0.281856894493...
sourcebtmpdata.Height) ? destbtmpdata.Height - point.Y : sourcebtmpdata.Height; //calculate the width of the image to draw, this cuts off the image //if it goes past the width of the destination image int rowWidth = (destbtmpdata.Width - point.X < sourcebtmpdata.Width) ? destbtmpdata.Width - poi...
[ 0.00011792759323725477, -0.016421491280198097, 0.5971728563308716, -0.24513891339302063, -0.040505554527044296, 0.3243844211101532, 0.36911526322364807, -0.45749345421791077, -0.21174420416355133, -0.6735304594039917, -0.10130862146615982, 0.42044177651405334, -0.2210431843996048, 0.042436...
for (int i = 0; i < totalRows; i++) { int destRow = point.Y + i; //get the pointer to the start of the current pixel "row" and column on the output image byte* destRowPtr = (byte*)destbtmpdata.Scan0 + (destRow * destbtmpdata.Stride) + point.X * 3;
[ 0.003030683845281601, -0.26169469952583313, 0.6288819313049316, -0.3169087767601013, -0.1655331403017044, 0.21727991104125977, 0.14605270326137543, -0.5619682669639587, -0.1024174913764, -0.6672263741493225, -0.15510421991348267, 0.37966594099998474, -0.4380488991737366, -0.103127568960189...
//get the pointer to the start of the FIRST pixel row on the source image byte* srcRowPtr = (byte*)sourcebtmpdata.Scan0 + (i * sourcebtmpdata.Stride); //RtlMoveMemory function CopyMemory(new IntPtr(destRowPtr), new IntPtr(srcRowPtr), (uint)rowWidth * 3); } } ``` Copyi...
[ 0.1399141103029251, -0.15996739268302917, 0.7665929794311523, -0.1562509834766388, 0.04802650958299637, 0.09547492116689682, 0.2433784157037735, -0.46131935715675354, -0.44870471954345703, -0.9168540835380554, 0.0809817686676979, 0.5535784959793091, -0.11945247650146484, -0.029711695387959...
00:00:01.8714263 secs. Much better.
[ 0.009486125782132149, 0.2197723537683487, 0.614658772945404, 0.2506071925163269, -0.04916525259613991, -0.20564362406730652, 0.6451472640037537, -0.21089233458042145, -0.03292769566178322, -0.4912277162075043, -0.04272856190800667, 0.40517374873161316, 0.6687405705451965, -0.03576256707310...
Now that Google allows Java on App Engine, I'm wondering what effect this has on a choice of web framework for App Engine. 1. I realize Google provides the webapp framework which is pretty barebones. 2. And the .96 version of django that's available for App Engine is restrictive. 3. web2py burns up resources, from wha...
[ 0.262183278799057, 0.28231194615364075, -0.09358125925064087, -0.03609910607337952, -0.4257130026817322, -0.14081157743930817, 0.31999412178993225, 0.03893189877271652, -0.3171442449092865, -0.6968100666999817, 0.14288997650146484, 0.8607874512672424, -0.4149429202079773, 0.012446407228708...
Furthermore, supporting Java was a good choice by Google since it will allow the GAE platform to potentially host many other languages. It's obviously a little early to expect all JVM based languages to run on GAE, but the future looks promising. For now we can look at what is and isn't working by taking a look at [thi...
[ 0.37425658106803894, 0.10704141855239868, 0.066172294318676, 0.004626094363629818, -0.21200339496135712, -0.08126134425401688, 0.07706324011087418, 0.014858705922961235, -0.3582112491130829, -0.37206098437309265, 0.06406114250421524, 0.6071343421936035, -0.5389519333839417, -0.173298478126...
few good reads on this. In any case, you will undoubtedly have restrictions in any of your choices since most web frameworks are designed with relational databases in mind ... which datastore/bigtable is not. Furthermore, the GAE platform has to be sandboxed for security reasons which also restrict you to some extent. ...
[ 0.26940715312957764, 0.08188953995704651, -0.0562884658575058, 0.3850003182888031, -0.06294195353984833, -0.5458468794822693, 0.20397162437438965, 0.2131827175617218, -0.20636364817619324, -0.6454111337661743, -0.034522704780101776, 0.5078702569007874, -0.14468201994895935, 0.2335972934961...
I am creating a service which receives some data from mobile phones and saves it to the database. The phone is sending the data every 250 ms. As I noticed that the delay for data storing is increasing I tried to run WireShark and write a log as well. I noticed that the web requests from mobile phone are being made wi...
[ 0.6284783482551575, -0.13948750495910645, 0.4333723187446594, 0.21322216093540192, 0.17922906577587128, -0.23270954191684723, 0.347109317779541, -0.09117899090051651, -0.3372339606285095, -0.7264719605445862, 0.32015112042427063, 0.27905282378196716, -0.03607049956917763, 0.051021561026573...
the cause of such delay? I am creating a service with WCF (webHttpBinding) and the database is MS SQL. By the way the log stores the time of http request and also the time of writing data to the database. As mentioned above the request is received every 1.5 - 2 seconds and after that it takes 50 ms to store data to th...
[ 0.32052576541900635, 0.027052991092205048, 0.36496299505233765, 0.11522606015205383, -0.152727872133255, -0.0022879147436469793, 0.3692610263824463, -0.08953137695789337, -0.27950042486190796, -0.494443416595459, 0.12114062905311584, 0.41950201988220215, -0.22272589802742004, 0.15751576423...
since it will allow the GAE platform to potentially host many other languages. It's obviously a little early to expect all JVM based languages to run on GAE, but the future looks promising. For now we can look at what is and isn't working by taking a look at [this GAE Java Group Page](http://groups.google.com/group/goo...
[ 0.42802193760871887, 0.06679560989141464, 0.07535533607006073, -0.05116291344165802, -0.25203466415405273, -0.18217548727989197, -0.042343318462371826, 0.043859951198101044, -0.3524448275566101, -0.3831992447376251, 0.08689408749341965, 0.5159217119216919, -0.4539935290813446, -0.157259911...
will undoubtedly have restrictions in any of your choices since most web frameworks are designed with relational databases in mind ... which datastore/bigtable is not. Furthermore, the GAE platform has to be sandboxed for security reasons which also restrict you to some extent. Hope this helps.
[ 0.3515511453151703, 0.14060859382152557, 0.027843939140439034, 0.33000966906547546, 0.011960520409047604, -0.4869522452354431, 0.05693754553794861, -0.012215503491461277, -0.247483491897583, -0.626569926738739, -0.19432303309440613, 0.5312023758888245, -0.26645806431770325, 0.1763688772916...
When I change a value in a DataGridViewComboBoxCell the new value is not immediately applied until that cell leaves focus. Is there a way to have the new value applied immediately? If you handle the `EditingControlShowing` event on the DataGridView, you can attach an event handler to the underlying ComboBox's `Select...
[ 0.10450688004493713, -0.37233707308769226, 0.5866181254386902, -0.04516984894871712, 0.09814275801181793, -0.218242347240448, 0.1431771218776703, -0.2745524048805237, -0.19861513376235962, -0.8637614846229553, -0.22685237228870392, 0.6972229480743408, -0.3040837049484253, 0.172720372676849...
I'm using this function to generate a hash for a password and then store it in the database (SQL Server). The code looks like this: ``` byte[] saltBytes = new byte[16]; new RNGCryptoServiceProvider ().GetBytes (saltBytes); string salt = Convert.ToBase64String (saltBytes); string saltedPasswordHash = FormsAuthenticati...
[ -0.17977629601955414, 0.18792378902435303, 0.4267853796482086, -0.3402881622314453, 0.004654472228139639, -0.18309807777404785, 0.26311272382736206, -0.3417653441429138, -0.33524927496910095, -0.6293225288391113, -0.037101611495018005, 0.488528311252594, -0.1862267553806305, 0.394125342369...
once. When looking for example at: <http://lkml.indiana.edu/hypermail/linux/kernel/0307.0/1258.html> there are two seperate queues, one syn queue and one established queue. Apparently it the first connection will remain in the syn queue (since it's in the SYN\_RCVD state), the second connection will be in the establi...
[ 0.01932322233915329, -0.6186156272888184, 0.32270556688308716, 0.1015159860253334, -0.1990033984184265, -0.06428173184394836, -0.10667634755373001, 0.1658981740474701, -0.42852863669395447, -1.0034655332565308, -0.10001324117183685, 0.1961425244808197, -0.40618717670440674, 0.4836666882038...
I'm implementing 'check' constraints that simply call a CLR function for each constrained column. Each CLR function is one or two lines of code that attempts to construct an instance of the user-defined C# data class associated with that column. For example, a "Score" class has a constructor which throws a meaningful ...
[ 0.37837228178977966, 0.3687896728515625, 0.39904356002807617, -0.049690086394548416, 0.012819381430745125, -0.009878411889076233, -0.028768764808773994, -0.23838572204113007, -0.09312842041254044, -0.4466148614883423, 0.029257265850901604, 0.2941325902938843, -0.4360204041004181, -0.116932...
manual edits in management studio that non-programmers may try to make. It's working well so far, although updating the assembly causes constraints to be disabled, requiring a recheck of all constraints (which is perfectly reasonable). I use `DBCC CHECKCONSTRAINTS WITH ALL_CONSTRAINTS` to make sure the data in all tabl...
[ 0.06844939291477203, 0.14464476704597473, 0.31164807081222534, -0.038243528455495834, -0.03957859054207802, -0.1821429282426834, 0.2620454430580139, -0.2443140298128128, -0.3270858824253082, -0.6252943873405457, -0.3663061857223511, 0.965353786945343, -0.3288984000682831, -0.15025921165943...
do I have to re-enable them table by table?** Finally, for the CLR functions used in the check constraints, I can either: 1. Include a try/catch in each function to catch data construction errors, returning false on error, and true on success, so that the CLR doesn't raise an error in the database engine, or... 2. Le...
[ 0.06093979626893997, 0.3434866666793823, 0.2329561710357666, -0.04691588878631592, -0.021416300907731056, 0.013252926990389824, 0.32366177439689636, -0.2565164268016815, -0.13992515206336975, -0.48984888195991516, 0.01610829494893551, 0.6593314409255981, -0.29098278284072876, -0.1813661009...
get the meaningful message from the CLR like `"Value for type X didn't match regular expression '^p[1-9]\d?$'"` instead of some generic SQL error like "constraint violated". **Are there any severe negative consequences of allowing CLR errors through to SQL Server, or is it just like any other insert/update failure resu...
[ 0.010498393326997757, 0.14140784740447998, 0.3816471993923187, 0.2963744103908539, 0.029314836487174034, -0.37891969084739685, 0.07588332146406174, 0.09315809607505798, -0.27767372131347656, -0.36518415808677673, -0.148286372423172, 0.6450369954109192, -0.19326931238174438, 0.0671712309122...
is relatively expensive. For each row inserted, you're calling a ctor *-- and only for its side-effects.* Also expensive are exceptions. They're great when you need them, but this is a case where you vould use them in a ctor context, but not in a check context. A refactoring could reduce both costs, by having the che...
[ 0.3328426480293274, 0.1520986557006836, 0.10398157685995102, 0.2325088530778885, 0.3004613518714905, 0.09547889232635498, -0.03488482907414436, -0.2507946491241455, 0.023556558415293694, -0.403816819190979, -0.10045503824949265, 0.5972398519515991, -0.02986820414662361, -0.0144164450466632...
0 ; } Score( int s ) { if( ! valid( s ) ) { throw InvalidParameter(); } score = s; } } ``` Check constraint calls Score::valid(), no construction or exception needed. Of course, you still have the overhead, for each row, of a CLR call. Whether that's acceptable is something you'll...
[ 0.07153260707855225, 0.025412542745471, 0.641014814376831, 0.01639609783887863, 0.24020685255527496, -0.06953617930412292, 0.16830430924892426, -0.4003397226333618, -0.2611648142337799, -0.23452343046665192, -0.2776756286621094, 0.5170108079910278, -0.2328919768333435, -0.02353521808981895...
them table by table? No, but you can do this to generate the commands: ``` select 'ALTER TABLE ' || name || ' WITH CHECK CHECK CONSTRAINT ALL;' from sys.tables ; ``` and then run the resultset against the database. Comments from the OP: > I use base classes called ConstrainedNumber and RegexConstrainedString for...
[ -0.05419526249170303, 0.1373993456363678, 0.7576643824577332, 0.05103091895580292, 0.054888416081666946, 0.27137765288352966, -0.08702843636274338, -0.460064172744751, -0.28478625416755676, -0.7607568502426147, -0.050623569637537, 0.7186781167984009, -0.3635830879211426, 0.150285542011261,...
updates will occur, I don't think the performance impact will anything to worry about for my system. > > > I still really want to raise exceptions for the information they'll provide to management studio users. I like the IsValueValid method, because it gives me the 'option' of not throwing errors. Within application...
[ 0.25401246547698975, -0.011443466879427433, 0.2108156383037567, 0.12111732363700867, 0.021866953000426292, 0.12380533665418625, 0.3601051867008209, 0.18797267973423004, -0.24483031034469604, -0.9504029750823975, 0.07373727858066559, 0.7128666639328003, -0.08214414119720459, -0.058897268027...
for parts you don't use. The ctor you don't use, because you were only calling it to get the side-effect. So we decomposed creation and checking. We can further decompose throwing: ``` class Score { private: int score; public: static bool IsValid( int score ) { return score > 0 ; } static che...
[ -0.10809990018606186, -0.259913831949234, 0.079841747879982, 0.18946883082389832, -0.10683482885360718, 0.10660620778799057, 0.3543284237384796, -0.5585795044898987, -0.2314692884683609, -0.48027992248535156, 0.0513104572892189, 0.24025198817253113, -0.1441408395767212, 0.1653589904308319,...
) { checkValid( s ) ; score = s; } } ``` Now a user can call the ctor, and get the check and possible exception and construction, call checkValid and get the check and exception, or isValid to just get the validity, paying the runtime cost for only what he needs.
[ 0.13352936506271362, -0.11438924819231033, 0.6389572620391846, 0.013938480988144875, 0.21080955862998962, -0.22437450289726257, 0.0860840231180191, -0.36943677067756653, -0.14285126328468323, -0.5756126046180725, -0.24299532175064087, 0.5795769691467285, -0.3496597111225128, 0.196859493851...
**EDIT: This was an old bug long since fixed in Scala 2.8 and later** During some experimentation around question [Pattern matching a String as Seq[Char]](https://stackoverflow.com/questions/740563/pattern-matching-a-string-as-seqchar), I ran across another weird matching phenomenon. Consider the following code that t...
[ 0.24165594577789307, -0.0613025464117527, 0.46905991435050964, -0.24209100008010864, -0.1336154043674469, 0.13014131784439087, 0.08182360976934433, 0.0800546184182167, -0.22143055498600006, -0.5302563309669495, -0.07052695006132126, 0.04225187003612518, -0.637983500957489, 0.18067248165607...
case _ => "Oh" } } ``` Calling input on the empty String `""` correctly yields `"Empty"`. However, if I rewrite the first match clause as ``` case Seq.empty => "Empty" ``` the matching of `""` fails and matches the default clause instead. Walking through the Scala library source code (which you shouldn't h...
[ -0.09855350852012634, -0.1488664746284485, 0.11937203258275986, -0.2535622715950012, -0.08365441858768463, -0.009632570669054985, 0.2055477648973465, -0.30630263686180115, -0.0917932391166687, -0.5875332951545715, -0.020035380497574806, 0.7122379541397095, -0.5219286680221558, 0.0673220902...
``` val list = List() >>> list2: List[Nothing] = List() val emptySeq = Seq.empty list == emptySeq >>> res1: Boolean = false ``` This basically means that an empty `Seq` does not automatically equal `Seq.empty` . So when matching against a constant (as opposed to using an extractor as suggested by starblue) this...
[ -0.02022424526512623, -0.1121186763048172, 0.42189574241638184, -0.3717155456542969, 0.16282953321933746, -0.008418319746851921, 0.424565851688385, -0.37027835845947266, -0.28406110405921936, -0.6651473641395569, -0.14639945328235626, 0.6334502100944519, -0.545741856098175, 0.1265795975923...
Seq() match {case Seq.empty => "yup"; case _ => "nope"} res1: java.lang.String = yup scala> ("" : Seq[Char]) match {case Seq() => "yup"; case _ => "nope"} res2: java.lang.String = yup scala> ("" : Seq[Char]) match {case Seq.empty => "yup"; case _ => "nope"} res3: java.lang.String = nope ```
[ 0.11105049401521683, 0.02192799001932144, 0.711402952671051, -0.23004721105098724, 0.1968337893486023, 0.05839712917804718, 0.29964038729667664, -0.51397305727005, -0.05078831687569618, -0.5460304021835327, -0.532789409160614, 0.44290465116500854, -0.1768629103899002, 0.2503063678741455, ...
Where I work we have an ecommerce system on an intranet set up to process customer's credit cards. Currently when we charge a customer's credit card using Authorize.net we are not sending the credit card info to Authorize.net over a secure connection. Instead it goes over regular http. I'd like to get other opinions of...
[ 1.1020231246948242, 0.2189500778913498, 0.17516198754310608, -0.15158773958683014, 0.24600519239902496, -0.10536856204271317, 0.04920034855604172, 0.0970640555024147, -0.16410063207149506, -0.5356540679931641, 0.2807669937610626, 0.3995133638381958, 0.12550872564315796, 0.22682629525661469...
than I originally described. Sorry about that. This seems very negligent. There have been too many leaks of credit card information to allow this sort of behavior. Even if the processing was handled internal to your intranet, and not being sent up to a 3rd party, I would recommend using secured connections. You don't ...
[ 0.21077628433704376, -0.17450657486915588, 0.012244157493114471, 0.46936485171318054, 0.565704345703125, -0.3066665530204773, 0.08680897951126099, -0.03245436027646065, -0.28785666823387146, -0.45389848947525024, 0.1981389969587326, 0.6127848029136658, -0.09584061801433563, 0.1576983779668...
I have a question concerning Python multiprocessing. I am trying to take a dataset, break into chunks, and pass those chunks to concurrently running processes. I need to transform large tables of data using simple calculations (eg. electrical resistance -> temperature for a thermistor). The code listed below almost wo...
[ 0.32427293062210083, 0.14167402684688568, -0.08247421681880951, -0.22689324617385864, -0.33564260601997375, 0.3551442623138428, 0.24645604193210602, -0.24671071767807007, -0.40517961978912354, -0.45390161871910095, -0.14970798790454865, 0.5144858956336975, -0.6674491167068481, 0.0702940598...
self.data = list self.result = map(self.process, self.data) super(Worker, self).__init__() if __name__ == '__main__': start = datetime.datetime.now() dataset = range(10000) # null dataset processes = 3 for i in range(processes): chunk = int(math.floor(len(dataset) / float(proce...
[ -0.08273590356111526, -0.02006259188055992, 0.44203391671180725, -0.21669748425483704, -0.14374902844429016, 0.470750629901886, 0.12094057351350784, -0.3069053292274475, -0.5736680626869202, -0.7116988301277161, 0.0187826044857502, 0.34722161293029785, -0.05895833671092987, 0.4696524739265...
else: remainder = 0 tmp = dataset[i * chunk : (i + 1) * chunk + remainder] exec('worker'+str(i)+' = Worker(tmp)') exec('worker'+str(i)+'.start()') for i in range(processes): exec('worker'+str(i)+'.join()') # just a placeholder to make sure the initial values of the set are ...
[ 0.14275099337100983, 0.02487557753920555, 0.48995065689086914, -0.21855135262012482, 0.03789379075169563, 0.4279901385307312, 0.2060053050518036, -0.48183128237724304, -0.2694939374923706, -0.37796229124069214, -0.2829388380050659, 0.21732519567012787, -0.1606699675321579, 0.17276364564895...
number of chunks to each process, just use get\_nowait() and handle the eventual Queue.Empty exception. Every process will get different amounts of CPU time and this should keep them all busy. ``` import multiprocessing, Queue class Worker(multiprocessing.Process): def process(self, x): for i in range(15...
[ 0.012406155467033386, 0.02710076794028282, 0.2841196358203888, -0.15180441737174988, 0.03125321865081787, 0.6131388545036316, -0.018051860854029655, -0.12281385064125061, -0.4928031265735626, -0.5390292406082153, -0.06027970090508461, 0.41026899218559265, -0.4825015068054199, 0.24943561851...
self.output = output super(Worker, self).__init__() def run(self): try: while True: self.output.put(self.process(self.input.get_nowait())) except Queue.Empty: pass if name == 'main': dataset = range(10) processes = multiprocessing.cpu_count()...
[ -0.121744304895401, -0.11829285323619843, 0.2022765576839447, -0.36769431829452515, -0.06764165312051773, 0.31828418374061584, 0.4668905735015869, -0.24806858599185944, -0.5055773258209229, -0.5718342661857605, -0.06963548809289932, 0.30665823817253113, -0.5083576440811157, 0.1899520158767...
output = multiprocessing.Queue() for obj in dataset: input.put(obj) for i in range(processes): Worker(input, output).start() for i in range(len(dataset)): print output.get() ```
[ -0.16071254014968872, -0.16569441556930542, 0.17699217796325684, -0.3008091151714325, -0.13751064240932465, 0.6597773432731628, 0.006563727278262377, -0.03365089371800423, -0.5922691226005554, -0.6704270243644714, -0.2846163213253021, 0.14724817872047424, -0.5172557234764099, 0.32520031929...
I have this ugly XML which has alot of namespaces on it, when I try to load it with simpleXML if i indicate the first namespace I'd get an xml object ,but following tags with other namespaces would not make it to the object. How can I parse this XML ? ``` <?xml version="1.0" encoding="UTF-8"?> <soap-env:Envelope xml...
[ -0.04325211048126221, 0.2553200125694275, 0.37876707315444946, -0.2597391605377197, -0.27042946219444275, 0.08136554807424545, 0.26539626717567444, -0.28783777356147766, -0.13793893158435822, -0.7516721487045288, 0.16378727555274963, 0.2675163149833679, -0.32806575298309326, 0.113684006035...
</eb:From> <eb:To> <eb:PartyId eb:type="URI">mysite.com</eb:PartyId> </eb:To> <eb:CPAId>something</eb:CPAId> <eb:ConversationId>moredata.com</eb:ConversationId> <eb:Service eb:type="compXML">theservice</eb:Service> <eb:Action>theact...
[ -0.08642173558473587, -0.29325947165489197, 0.6169472336769104, 0.0046056597493588924, -0.059566326439380646, 0.04285299405455589, 0.15662945806980133, 0.04059295356273651, -0.40212738513946533, -0.5789250135421753, -0.5400324463844299, 0.1703122854232788, 0.13701185584068298, -0.045125808...
<eb:MessageData> <eb:MessageId>a certain messageid</eb:MessageId> <eb:Timestamp>2009-04-11T18:43:58</eb:Timestamp> <eb:RefToMessageId>mid:areference</eb:RefToMessageId> </eb:MessageData> </eb:MessageHeader> <wsse:Security xmlns:wsse="http://sch...
[ -0.3828454911708832, -0.2150804102420807, 0.6513999700546265, 0.09409306198358536, -0.08838219195604324, -0.020527781918644905, 0.5447677373886108, 0.028189703822135925, -0.39191457629203796, -0.6338948607444763, -0.3881658613681793, 0.3891291618347168, -0.11607777327299118, -0.14475569128...
<wsse:BinarySecurityToken valueType="String" EncodingType="wsse:Base64Binary">an impresive binary security toekn</wsse:BinarySecurityToken> </wsse:Security> </soap-env:Header> <soap-env:Body> <SessionCreateRS xmlns="http://www.opentravel.org/OTA/2002/11" version="1" status="Approved"> ...
[ -0.2822946310043335, -0.10604284703731537, 0.8182806968688965, -0.013672344386577606, -0.03753916919231415, 0.025799134746193886, 0.32747331261634827, -0.7512859106063843, 0.001767499721609056, -0.330189973115921, -0.0981428474187851, 0.34245696663856506, 0.01883671246469021, -0.1599531918...
) [Body] => SimpleXMLElement Object ( ) ) ``` I think you need to register the namespacing and access with XPath. Something like the following should get you going (I haven't the facility to test this). ``` $xml = simplexml_load_string($res, NULL, NULL, "http://schemas.xmlsoap.org/soap/envelope/...
[ 0.18887506425380707, 0.13777261972427368, 0.6299322843551636, -0.04294104874134064, -0.1742771863937378, -0.04862966760993004, 0.1914181262254715, -0.5047417879104614, -0.13368454575538635, -0.6237910389900208, -0.046317700296640396, 0.566091775894165, -0.27303215861320496, -0.036670103669...
need to test. Hope this helps.
[ 0.7657700181007385, 0.40367600321769714, -0.009318352676928043, 0.4737812280654907, 0.3021170496940613, -0.2119091898202896, 0.41127678751945496, 0.06600210070610046, 0.17285631597042084, -0.4738999307155609, 0.46091559529304504, 0.0008603259338997304, 0.24980466067790985, 0.06210755184292...
I need a report that has office, date and order count. I need the total count of orders per month, but only 1 order count per day. e.g. > West 1/1/2009 1 order > > > West 1/1/2009 1 order > > > West 1/2/2009 1 order on my report I would see > West 1/1/2009 1 order > > > West 1/2/2009 1 order and my total ord...
[ -0.008702784776687622, 0.2625614106655121, 0.4505147337913513, -0.14899936318397522, -0.3440745174884796, 0.4966612756252289, 0.18356953561306, -0.3665919601917267, -0.20866958796977997, -0.7877219915390015, -0.1725616604089737, 0.2663065493106842, -0.1429889053106308, 0.1689171940088272, ...
footer and suppress the other sections. This will cause the report to show a new section for each day, but only show one row for each order. Then you can add your running total to the section. Set the running total up to sum the field you want, evaluate on change of day group and then reset on change of month (you'll n...
[ 0.4394521415233612, -0.2197471559047699, 0.401187002658844, -0.10459201782941818, -0.18068431317806244, 0.058798786252737045, 0.3714334964752197, -0.350668340921402, -0.4642942249774933, -0.4126643240451813, 0.2601722776889801, 0.07285569608211517, -0.3173777163028717, 0.13990025222301483,...
per month. Hope this helps.
[ 0.37524789571762085, 0.26585665345191956, 0.4357270896434784, -0.2344168871641159, -0.32441744208335876, -0.05570915341377258, 0.09056784957647324, 0.26590386033058167, -0.22076915204524994, -0.4759957194328308, -0.15676456689834595, -0.11554062366485596, 0.317306786775589, 0.1819122433662...
Is there a way to write a string directly to a tarfile? From <http://docs.python.org/library/tarfile.html> it looks like only files already written to the file system can be added. I would say it's possible, by playing with TarInfo e TarFile.addfile passing a StringIO as a fileobject. Very rough, but works ``` impor...
[ 0.3316533863544464, -0.11786602437496185, 0.0807972401380539, -0.1181756928563118, 0.13095872104167938, 0.17256379127502441, 0.16638267040252686, -0.08635257929563522, 0.04832550510764122, -0.2654988765716553, -0.091681107878685, 0.9408777952194214, -0.37076717615127563, -0.262676358222961...
I would like to implement a text box with a 140 character limit in Javascript such that when the 141st character is added that character is erased. I don't want to show any message or alert to user they have exceeded the limit. There is already a counter.re. Here is an example of what I want to do: <http://titletweet...
[ 0.3812604546546936, 0.14595496654510498, 0.06851822882890701, 0.05284586176276207, 0.2096056193113327, -0.3016931712627411, -0.006245801225304604, 0.20479853451251984, -0.5400078296661377, -0.5997063517570496, 0.42534929513931274, 0.2885705828666687, 0.0809621587395668, 0.09937509894371033...
number. This made the resulting account number invalid, however she didn't notice because the web-application silently erased her extra digit. So she entered something like ``` 1223300045 ``` but should have entered ``` 122330045 ``` and consequently account ``` 122330004 ``` received her money. **This is a ...
[ 0.20650510489940643, -0.1092473492026329, 0.3212131857872009, 0.19161167740821838, 0.06294617801904678, 0.21043384075164795, 0.08900558948516846, -0.37632855772972107, -0.4386221766471863, -0.28246667981147766, 0.28297582268714905, 0.5596479773521423, 0.08271690458059311, 0.049372579902410...
can say all you like. If your text box erases the user's text: * They may not notice it happening, if they type by looking at the keyboard * They have to erase text before they can add new, more concise wording * They will be annoyed Thus, my recommendation is to let the user type as much they want, but let them know...
[ 0.4156671464443207, 0.22207795083522797, 0.38828372955322266, -0.009119629859924316, -0.11628834903240204, 0.04574938118457794, 0.26534193754196167, 0.16023457050323486, -0.04706776142120361, -0.4819200932979584, -0.06836407631635666, 0.7485307455062866, -0.01651294156908989, 0.01655869558...
thing if the limit is wrong. This sample sets a class; the class attribute lets you change the colour of the textarea (or whatever). You might want to show a message or something. They key is to let the user keep typing. ``` function checkTALength(event) { var text = $(this).val(); if(text.length > 140) { $(th...
[ 0.25141096115112305, -0.3768550157546997, 0.5307791829109192, -0.2798987627029419, 0.13295382261276245, 0.062200877815485, 0.4437064826488495, -0.6128408908843994, 0.01999601349234581, -0.6283860802650452, -0.4335075914859772, 0.6273369193077087, -0.23722578585147858, 0.05241410806775093, ...
I am confused by the docs: > `\%(\)` A pattern enclosed by escaped > parentheses. `*/\%(\)* */\%(*` `*E53*` > Just like `\(\)`, but without counting > it as a sub-expression. This allows > using more groups and it's a little > bit faster. Can someone explain the reason for the difference? Is it because of backtr...
[ 0.20371992886066437, -0.04733963683247566, 0.13611938059329987, 0.3215634226799011, 0.06910775601863861, -0.27762413024902344, 0.24372203648090363, -0.13529282808303833, -0.361255943775177, -0.7436607480049133, -0.1478295475244522, 0.391274094581604, -0.17768019437789917, -0.00725388899445...
use `\3` (for the appropriate number) to refer to it in the replacement. The `%` notation means that `vim` does not have to keep track of the match - so it is doing a little less work. --- @SimpleQuestions asks: > What do you mean by "keep track of the match"? How does it affect speed? You can use escaped parenthes...
[ 0.32599470019340515, -0.19987665116786957, 0.25934264063835144, 0.07249558717012405, 0.04111691936850548, -0.3292153775691986, 0.09198218584060669, -0.49244606494903564, -0.03822432458400726, -0.3973124027252197, -0.048379916697740555, 0.8174377679824829, -0.4828210473060608, -0.1161528453...
an input line such as: ``` int simple_function(int a, char *b, double c) ``` The output will be: ``` int xyz_simple_function(int nargs) /* int a, char *b, double c */ ``` (Why might you want to do that? I'm imagining that I need to wrap the C function `simple_function` so that it can be called from a language com...
[ 0.009438924491405487, -0.14661960303783417, 0.3065888583660126, -0.13945436477661133, -0.15748952329158783, 0.030389554798603058, 0.1243167594075203, -0.11492886394262314, -0.10714017599821091, -0.5277302861213684, -0.43997615575790405, 0.5885287523269653, -0.4334074854850769, 0.0329269804...
the replacement text refer to the captured parts of the regular expression - the function name (a sequence of alphanumerics starting with an alphabetic character - counting underscore as 'alphabetic') and the function argument list (everything between the parentheses, but not including the parentheses). If I'd used th...
[ 0.1522202044725418, 0.19736722111701965, 0.5679206252098083, -0.0425335168838501, 0.10814301669597626, 0.1831539124250412, 0.22915293276309967, -0.09899742901325226, 0.07257100194692612, -0.3975653350353241, -0.5559232831001282, 0.8376189470291138, -0.23392298817634583, -0.083367258310318,...
of two captured parts. But, as I said, the difference is tiny; you could probably never measure it in practice. That's why the manual says 'it allows more groups'; if you needed to group parts of your regular expression but didn't need to refer to them again, then you could work with longer regular expressions. However...
[ 0.0025499851908534765, -0.15123596787452698, 0.12109367549419403, 0.347898006439209, -0.10244916379451752, 0.40834200382232666, 0.32468387484550476, -0.012184085324406624, -0.5222386121749878, -0.31970298290252686, -0.16436566412448883, 0.2951458692550659, 0.01470800582319498, -0.447856962...
for using the `\%(...\)` notation. It matches the Perl (PCRE) notation '`(?:...)`' for a non-capturing regular expression.
[ -0.1734365075826645, -0.023360872641205788, 0.3151961863040924, -0.2990533411502838, 0.26980316638946533, -0.021037928760051727, -0.07157988846302032, -0.07363024353981018, -0.030021296814084053, -0.21141086518764496, -0.4122839570045471, 0.4656045436859131, -0.4239675998687744, -0.2341513...
im trying to change the text of a label from a class but have been unsuccessful. what i have is that im updating a variable in the class using get{} and set{}. i understand that i need to put or do something within set{} to get it to send the update value from the class back into the form1 class so that it can update ...
[ 0.2648400664329529, 0.08433327823877335, 0.07461661100387573, 0.22743068635463715, -0.21068374812602997, 0.07356132566928864, 0.47877198457717896, -0.0047903829254209995, -0.09865611046552658, -0.6028792858123779, 0.23043496906757355, 0.5463277697563171, -0.18140242993831635, 0.20069691538...
advance. You might want to consider using delegates or events and having your classes raise events back to the form, that way your classes will have no knowledge of your form. **EXAMPLE** ``` class SomeClass { public delegate void UpdateLabel(string value); public event UpdateLabel OnLabelUpdate; public...
[ 0.17141616344451904, -0.36661505699157715, 0.204511821269989, -0.02841615304350853, 0.11056387424468994, -0.023907186463475227, 0.09767356514930725, -0.25919440388679504, -0.04967816174030304, -0.7133705615997314, -0.2857467234134674, 0.48647937178611755, -0.33627691864967346, 0.2000115811...