text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
control on this HTML code. However, I want to display my list of elements in 2 columns. In others words, the HTML code of my table will be something like that: ``` <table id="myTable"> <tr> <td>A</td> <td>B</td> </tr> <tr> <td>C</td> <td>D</td> </tr> ... </table> ``` How can I do that usin...
[ -0.23382598161697388, -0.06503313779830933, 0.5250162482261658, 0.18634507060050964, -0.10517629235982895, -0.03035554476082325, -0.03041071817278862, -0.24091631174087524, -0.3463873863220215, -0.8131662011146545, 0.15786372125148773, 0.33998602628707886, -0.34359630942344666, -0.09817595...
the table moving the cells from every second row into the previous row... ``` var idx = 1; var row, next; while((row = $('#myTable tr:nth-child(' + idx++ + ')')).length) { if((next = $('#myTable tr:nth-child(' + idx + ')')).length) { row.append(next.find('td')); next.remove(); } } ```
[ -0.335977166891098, 0.008609697222709656, 0.5263533592224121, -0.34992480278015137, 0.41102108359336853, 0.37490206956863403, -0.04191669449210167, -0.5620800256729126, -0.2149468958377838, -0.5588958859443665, -0.20962104201316833, 0.3846096992492676, -0.44336119294166565, 0.1423139125108...
I am an advocate of ORM-solutions and from time to time I am giving a workshop about Hibernate. When talking about framework-generated SQL, people usually start talking about how they need to be able to use "hints", and this is supposedly not possible with ORM frameworks. Usually something like: "We tried Hibernate. ...
[ 0.4254024028778076, 0.3074961006641388, -0.23250116407871246, -0.20968754589557648, -0.29962611198425293, -0.18895523250102997, 0.4723077118396759, -0.030210422351956367, 0.018514376133680344, -0.3175465762615204, 0.38196098804473877, 0.19311517477035522, -0.22757591307163239, -0.109400615...
feel intimidated, because the whole "hints"-topic sounds like voodoo to me... So can anybody enlighten me? What is meant by SQL-hints or DB-Hints? The only thing I know, that is somehow "hint-like" is SELECT ... FOR UPDATE. But this is supported by the Hibernate-API... A SQL statement, especially a complex one, can ac...
[ 0.38729938864707947, 0.0924389585852623, 0.13662350177764893, -0.015770280733704567, -0.33988359570503235, -0.1525978147983551, 0.31187736988067627, -0.0659165307879448, 0.1550304889678955, -0.37086600065231323, 0.07921921461820602, 0.42081958055496216, -0.11168121546506882, -0.14468511939...
plan. You would only normally need to do this after extensive testing and analysis of the specific queries (because the DB engines are usually pretty darn good at figuring out the optimum execution plan). Some MSSQL-specific discussion and syntax here: <http://msdn.microsoft.com/en-us/library/ms181714.aspx> Edit:...
[ 0.16267678141593933, -0.6903050541877747, -0.11623761057853699, 0.21115317940711975, 0.14437521994113922, -0.14423134922981262, 0.07870419323444366, -0.19917307794094086, -0.27450308203697205, -0.4809839129447937, -0.10538452863693237, 0.22520853579044342, -0.3557392954826355, -0.467073470...
I need to modify a (xml-)file from Apache Ant. "loadfile" task allows to load the file's content in a property. But how to store the property's value back to a file after its (property) modification? Of course I could write custom task to perform this operation but I would like to know if there's some existing impleme...
[ 0.580488920211792, -0.03168795630335808, 0.13149650394916534, -0.06619007140398026, -0.03424275293946266, -0.09409058839082718, 0.15210632979869843, -0.5228769779205322, -0.20806796848773956, -0.40195387601852417, 0.031461022794246674, 0.5030468702316284, -0.21189992129802704, 0.1190120577...
Ok, the more I use LINQ, the more I like it! I recently found myself working in some legacy code at work. It is your classic DataSet and DataTable rich application. Well, when adding a bit of functionality I found myself *really* wanting to just query the rows of a DataTable for the results I was looking for. Let me r...
[ 0.444525808095932, 0.13469865918159485, 0.4508152902126312, -0.1086742952466011, 0.11979089677333832, -0.22342132031917572, -0.11981038749217987, 0.14761647582054138, -0.5654777884483337, -0.4933922588825226, 0.08814676851034164, 0.7381401658058167, -0.3566332161426544, 0.16669364273548126...
(string)x["CUSTOMER_ID"] == customerId) .Select(x => (string)x["CUSTOMER_ORDER_ID"]) .Distinct(); ``` **My question is whether or not this is a good thing, or am getting carried away with LINQ?** It does seem to me that this declarative style of pulling a subset of data out of a collection is a good thing and m...
[ 0.035308945924043655, 0.058329857885837555, 0.6225948929786682, -0.1624075323343277, 0.017331168055534363, -0.08751709759235382, 0.0010761847952380776, 0.0028631817549467087, -0.17989881336688995, 0.0014498645905405283, -0.2314988076686859, 0.48024675250053406, -0.37234562635421753, 0.1787...
== customerId) .Select(x => x.Field<string>("CUSTOMER_ORDER_ID")) .Distinct(); ``` Or using the query syntax: ``` var customerOrderIds = ( from row in table.Rows.Cast<DataRow>() where row.Field<string>("CUSTOMER_ID") == customerId select row.Field<string>("CUSTOMER_ORDER_ID")...
[ -0.3684665262699127, 0.11806757748126984, 0.4571886658668518, -0.32839930057525635, -0.09203504025936127, 0.304056316614151, 0.20412613451480865, 0.010419397614896297, -0.09347371757030487, -0.6026396751403809, -0.12325388193130493, 0.5776656270027161, -0.3045637905597687, 0.15478454530239...
This will require a little setup. Trust me that this is for a good cause. The Background -------------- A friend of mine has run a non-profit public interest website for two years. The site is designed to counteract misinformation about a certain public person. Of course, over the last two years those of us who suppo...
[ 0.6376978158950806, 0.04368893429636955, 0.09230632334947586, 0.14825865626335144, 0.10402921587228775, -0.24152249097824097, 0.14588284492492676, 0.5419870018959045, -0.171004518866539, -0.009310338646173477, 0.4245654344558716, 0.3313806653022766, 0.07759980112314224, 0.05670890584588051...
*not* have the support of this public person, but what he is doing is in the public interest and good. The friend had a stroke recently. Coincidentally, the domain name came up for renewal right when he was in the hospital and his wife missed the email about it. A domain squatter snapped up the domain, and put up cont...
[ 0.6061010956764221, 0.004238415975123644, 0.44118767976760864, 0.21390394866466522, -0.1848490983247757, -0.30275970697402954, 0.31969696283340454, 0.1640164852142334, -0.2620435953140259, -0.38809075951576233, 0.08313305675983429, 0.0970357358455658, -0.20213289558887482, 0.59969443082809...
redirect (I'm not sure which) to send people to the right site. We reconfigured one of the alias domains to point directly to the original content. We have publicized this new name for the site and the community has now created thousands of links to the new domain, and is fixing all the old links. We can see from the...
[ 0.49805736541748047, 0.08136332035064697, 0.3080597221851349, 0.3778800070285797, -0.0656614601612091, -0.09481468796730042, 0.4788270592689514, 0.4376008212566376, -0.4392120838165283, -0.6185144186019897, -0.12835393846035004, 0.044790931046009064, -0.4097290635108948, 0.4790887534618377...
URL! It appears to me that Google remembers the old redirect between the two names (probably because someone linked to the new domain back when it was an alias). It is treating the two sites as if they are the same site in all results. The results for the site name, and using the "link:" operator to find sites that li...
[ 0.5115705728530884, 0.3435158431529999, 0.3904820382595062, 0.11851682513952255, -0.225370392203331, -0.5182148814201355, 0.19736222922801971, 0.0190508384257555, -0.16985847055912018, -0.3688456416130066, -0.18631379306316376, 0.3419666886329651, -0.11269356310367584, 0.5363645553588867, ...
that these sites relate to. **How can we convince the Googlebot that domain "a" and domain "b" are now two different sites and should be treated as such in results?** EDIT: Forward was probably DNS, not HTTP based. Google will detect the decrease in links to the old domain and that will hurt it. Include some new int...
[ 0.5630455017089844, 0.24875572323799133, 0.5470386743545532, 0.042545441538095474, -0.4647718369960785, -0.23024475574493408, 0.3861023485660553, -0.0705963745713234, -0.30092236399650574, -0.3388746678829193, 0.2131117284297943, 0.17382903397083282, -0.2517179548740387, 0.6595199108123779...
pages within the site, not just the homepage, as these URLs will not be in the old redirected set. Set up Google Webmaster Tools and submit an XML sitemap. Thoroughly check everything in Webmaster Tools about once per week. Good luck.
[ 0.5030404925346375, 0.09004431962966919, 0.7570308446884155, 0.13667939603328705, -0.061756931245326996, -0.8666318655014038, 0.6160435080528259, 0.13381928205490112, -0.22858302295207977, -0.8949769735336304, -0.3608831465244293, 0.34216368198394775, 0.11670758575201035, -0.08336441218852...
I have a html string held in memory after transforming to my desired template with XSLT. What is the best mechanism to the send this to the client printer? In previous projects I have shamelessly cheated and created a print preview screen, which was essentially an ASPX page with white background that I then printed u...
[ 0.5229271650314331, 0.13088791072368622, 0.3816312253475189, -0.05974886193871498, -0.38518089056015015, -0.04906901717185974, 0.29243502020835876, 0.18696057796478271, -0.07892245799303055, -0.9021000862121582, 0.23242944478988647, 0.265694797039032, -0.20062735676765442, 0.11828248947858...
access a client's printers. However you may be able to streamline things using a few tips: -use @media tags in CSS to provide a printable style for your page. In many cases, you can use this to hide any navigation, etc. and not have a need for a 'print preview'. I usually add something like the following to my .css fi...
[ 0.23637263476848602, -0.17943096160888672, 0.7636268138885498, 0.15710961818695068, -0.14679567515850067, -0.35213181376457214, 0.21296118199825287, -0.1214035302400589, -0.2562195956707001, -1.0952764749526978, 0.0038963581901043653, 0.37977334856987, -0.18899422883987427, 0.0877264365553...
to simply click 'print' as they normally would in the browser. The drawbacks are that some older browsers do not support it, and in some cases it does not give you enough control over the layout (for example if you want page headers/footers). -if the above doesn't give you the output you need (for example, you don't w...
[ 0.36181944608688354, 0.09290509670972824, 0.4014355540275574, 0.2965529263019562, -0.29005223512649536, -0.47406983375549316, 0.12961478531360626, 0.21951071918010712, -0.2802140414714813, -0.7339282631874084, -0.06818495690822601, 0.5322292447090149, -0.25938281416893005, -0.1169420182704...
add a hidden iframe to the page, populate it with your "printable" HTML, and call print() in it. This may work, but would require some javascript to pull off, so you would need to take care to make it cross-browser. This would have the same drawbacks of option #1, but be more difficult to get right.
[ 0.4929726719856262, -0.13553321361541748, 0.3755852282047272, -0.06881227344274521, -0.12296383082866669, -0.24917979538440704, 0.12190157920122147, 0.03588707372546196, -0.02917819656431675, -0.8380013108253479, -0.2127051055431366, 0.29792261123657227, -0.3475564122200012, -0.34643220901...
I try to get rounded corners on a UIImage, what I read so far, the easiest way is to use a mask images. For this I used code from TheElements iPhone Example and some image resize code I found. My problem is that resizedImage is always nil and I don't find the error... ``` - (UIImage *)imageByScalingProportionallyToSiz...
[ 0.1947631686925888, -0.10574895143508911, 0.6461955308914185, -0.056417129933834076, -0.09581723064184189, 0.19450117647647858, 0.26747265458106995, -0.28031671047210693, -0.11919412761926651, -0.8525770902633667, 0.29899999499320984, 0.677209734916687, -0.09245096147060394, -0.15128569304...
we shrink // an image by half, scaleFactor will be 0.5. the // scaledWidth and scaledHeight will be the original, // multiplied by the scaleFactor. // // IMPORTANT: the "targetHeight" is the size of the space // we're drawing into. The "scaledHeight" is the height that // the image actually ...
[ 0.32311010360717773, -0.09144972264766693, 0.9068000316619873, -0.22257208824157715, 0.01830362342298031, 0.2704448401927948, -0.1873904913663864, -0.6981531381607056, -0.023078596219420433, -0.6330388784408569, 0.14286132156848907, 0.6453111171722412, 0.2375371903181076, 0.139375299215316...
scaledWidth = targetSize.width; float scaledHeight = targetSize.height; CGPoint thumbnailPoint = CGPointMake(0,0); // since not all images are square, we want to scale // proportionately. To do this, we find the longest // edge and use that as a guide. if ( CGSizeEqualToSize(imageSize, target...
[ 0.0463104248046875, -0.2944582998752594, 0.8614732623100281, -0.057487498968839645, -0.06359401345252991, 0.1087460070848465, -0.0060194567777216434, -0.4526785910129547, -0.2713814675807953, -0.623374879360199, 0.20863983035087585, 0.3312327265739441, 0.22209922969341278, -0.0019926740787...
figure out // the scale factor by dividing it by the // intended width. Otherwise, we'll use the // height. float widthFactor = targetSize.width / width; float heightFactor = targetSize.height / height; if ( widthFactor < heightFactor ) scaleFactor = widthFa...
[ 0.20876479148864746, -0.17730465531349182, 0.9317469596862793, -0.4258008301258087, 0.16248424351215363, 0.20903581380844116, -0.12927460670471191, -0.6813080906867981, -0.030045321211218834, -0.49600693583488464, -0.04935130849480629, 0.5900713205337524, 0.10591442883014679, -0.1226346418...
else scaleFactor = heightFactor; // ex: 500 * 0.5 = 250 (newWidth) scaledWidth = width * scaleFactor; scaledHeight = height * scaleFactor; // center the thumbnail in the frame. if // wider than tall, we need to adjust the // vertical drawing point (y axis)
[ 0.1720350980758667, -0.1404258757829666, 1.0185056924819946, -0.052483245730400085, 0.0904705598950386, 0.47324731945991516, 0.1411411166191101, -0.6608765721321106, -0.27825579047203064, -0.5810940265655518, 0.23555712401866913, 0.7154579162597656, 0.37001004815101624, 0.01486446615308523...
if ( widthFactor < heightFactor ) thumbnailPoint.y = (targetSize.height - scaledHeight) * 0.5; else if ( widthFactor > heightFactor ) thumbnailPoint.x = (targetSize.width - scaledWidth) * 0.5; } CGContextRef mainViewContentContext; CGColorSpaceRef colorSpace; colorSpac...
[ -0.20438992977142334, -0.29110899567604065, 0.8002074956893921, -0.05015954002737999, -0.06789635121822357, 0.2554517388343811, -0.008619311265647411, -0.3359595239162445, -0.19659574329853058, -0.5553032755851746, -0.2202637791633606, 0.6341120004653931, -0.16545140743255615, -0.066021993...
= CGBitmapContextCreate (NULL, targetSize.width, targetSize.height, 8, 0, colorSpace, kCGImageAlphaPremultipliedLast); // free the rgb colorspace CGColorSpaceRelease(colorSpace); if (mainViewContentContext==NULL) return NULL; //CGContextSetFillColorWithColor(mainViewContentContext, [[UICo...
[ 0.1429576724767685, -0.050027284771203995, 0.912153422832489, -0.12637516856193542, -0.22879554331302643, 0.2856738269329071, 0.3438846468925476, -0.4821765124797821, -0.10892017185688019, -0.5344718098640442, -0.42605656385421753, 0.6025010943412781, -0.279742032289505, 0.0252255965024232...
maskImage = [[UIImage imageNamed:@"Mask.png"] CGImage]; CGImageRef resizedImage = CGImageCreateWithMask(mainViewContentBitmapContext, maskImage); CGImageRelease(mainViewContentBitmapContext); // convert the finished resized image to a UIImage UIImage *theImage = [UIImage imageWithCGImage:resizedImage...
[ -0.030327534303069115, -0.4121350347995758, 0.5046854615211487, -0.108460433781147, -0.2105896770954132, 0.393515020608902, 0.4432780146598816, -0.5190037488937378, 0.09169170260429382, -0.760998547077179, -0.25348547101020813, 0.7750362753868103, -0.32492774724960327, 0.08032312244176865,...
= CGColorSpaceCreateDeviceRGB(); // create a bitmap graphics context the size of the image mainViewContentContext = CGBitmapContextCreate (NULL, targetSize.width, targetSize.height, 8, 0, colorSpace, kCGImageAlphaPremultipliedLast); // free the rgb colorspace CGColorSpaceRelease(colorSpace); if (mainViewContentC...
[ 0.041907716542482376, -0.1850028783082962, 0.8961363434791565, -0.11188527941703796, -0.07144869118928909, 0.39196276664733887, 0.20684871077537537, -0.6098794341087341, -0.10006751120090485, -0.6001347899436951, -0.6166189908981323, 0.676533579826355, -0.14976340532302856, 0.0844059437513...
The simple HTML below displays differently in Firefox and WebKit-based browsers (I checked in Safari, Chrome and iPhone). In Firefox both border and text have the same color (`#880000`), but in Safari the text gets a bit lighter (as if it had some transparency applied to it). Can I somehow fix this (remove this trans...
[ 0.0834086537361145, 0.08301761746406555, 0.6249030232429504, -0.10485540330410004, -0.17400729656219482, -0.0613858699798584, 0.40922999382019043, -0.3492675721645355, -0.514618992805481, -0.723919153213501, -0.10482177138328552, 0.4161290228366852, -0.4551395773887634, -0.1117418184876442...
background-color:#ffffff; color:#880000; } </style> </head> <body> <form action=""> <input type="text" value="disabled input box" disabled="disabled"/> </form> </body> </html> ``` ``` -webkit-text-fill-color: #880000; opacity: 1; /* required on iOS */ ...
[ -0.06437832862138748, -0.2827703654766083, 0.27321043610572815, -0.05960027873516083, 0.38135990500450134, 0.3984260559082031, -0.014101563021540642, -0.011323646642267704, -0.34241753816604614, -0.3663155734539032, -0.4833203852176666, 0.5622591972351074, -0.39766642451286316, -0.73739933...
Sooo...it's only sort of programming related, but I figure it's election day, right? Is there a single good reason why they aren't, not necessarily open source in that anyone can contribute, but open source in that anyone could inspect the source? Voting machines aren't open-source because lobbyists for the "electrical...
[ 0.9526471495628357, 0.2562437057495117, -0.1596887707710266, 0.7220247387886047, 0.03347840905189514, -0.24151772260665894, 0.07580529898405075, 0.37369951605796814, -0.047008540481328964, 0.023221727460622787, 0.459593802690506, 0.1618688553571701, 0.01528836227953434, -0.1212559044361114...
free to add your own. (Pro-OSS–only: "the man" can make his own post!) * [Interesting Email from Sequoia](http://freedom-to-tinker.com/blog/felten/interesting-email-sequoia "Ed Felten's blog")
[ 0.2863366901874542, -0.10832953453063965, 0.0787549614906311, 0.43765977025032043, 0.046619731932878494, -0.47074684500694275, 0.19491854310035706, 0.25731268525123596, -0.4644370675086975, -0.07911136001348495, 0.005697145126760006, 0.1067594438791275, -0.16219793260097504, 0.002946719061...
Let's say there is a report to compare charges with adjustments that outputs to excel, such that each row has the following fields: * Account Number * charge date * Original item number * Adjusted Item number * Original Qty * Adjusted Qty * Original amount * Adjusted amount * Original Post date * Adjusted Post date I...
[ 0.36797526478767395, 0.17893370985984802, 0.5777456164360046, 0.030550429597496986, 0.15841257572174072, 0.28442469239234924, -0.4751186668872833, -0.15815147757530212, -0.3262244164943695, -0.5562087893486023, 0.3974541127681732, 0.4296019971370697, 0.03886544704437256, 0.1239411830902099...
Post | | A. Item | A. Qty | A. Amount | A. Post ``` Is there anything built into Excel to allow you to group records like this? VBA is not an option in this case. It's okay if the cells under account and date duplicate those values, if that makes it easier. Bonus points if you ca...
[ 0.16505640745162964, 0.025566842406988144, 0.10396349430084229, 0.2528496980667114, -0.13938158750534058, 0.03213663026690483, 0.010815232060849667, -0.22856935858726501, -0.35556942224502563, -0.31791576743125916, 0.07517217844724655, 0.19895774126052856, -0.24513329565525055, 0.001302130...
helps delimit each record (that part I can do on my own in vba later if I have to). It is a little tricky, but doable. I'm looking into this currently, stand by. Okay, the idea is this. You have the following layout: ``` /| A | B | C | D | F | -+---------+---------+---------+---------+...
[ -0.31255677342414856, -0.20935486257076263, 0.5155438184738159, 0.03539019823074341, 0.0461563840508461, 0.03232910856604576, -0.38335809111595154, -0.3205718994140625, -0.536645770072937, -0.5365794897079468, 0.3161472678184509, 0.4492169916629791, -0.3149733245372772, -0.0827702581882476...
1 | 10 | 11 | a | b | 3| 2 | 100 | 108 | a | a | 4| 3 | 50 | 55 | f
[ -0.3752293884754181, 0.292104572057724, 0.2451203614473343, -0.2749422788619995, 0.1472989022731781, 0.3977230489253998, 0.45293158292770386, -0.5796686410903931, -0.10577759891748428, -0.05627023056149483, -0.31944501399993896, 0.1939665973186493, -0.30422884225845337, 0.01022167876362800...
| g | ``` Make a second Sheet: ``` /| A | B | C | D | -+-----+-----+-----------------------------+-----------------------------+ 1| A/O | Ref | Data1
[ -0.3285290598869324, 0.21147093176841736, 0.6964510083198547, 0.04668717086315155, 0.1895531415939331, 0.040285103023052216, -0.09287002682685852, -0.545438289642334, -0.10396971553564072, -0.44081103801727295, -0.4801470935344696, 0.3374495804309845, -0.31500062346458435, 0.01528984680771...
| Data2 | 2| A | 2 | =INDIRECT("Sheet1!B" & $B2) | =INDIRECT("Sheet1!D" & $B2) | 3| O | 2 | =INDIRECT("Sheet1!C" & $B3) | =INDIRECT("Sheet1!E" & $B3) | 4| A | 3 | =INDIRECT("Sheet1!B" & $B4) | =INDIRECT("Sheet1!D" & $B4) | 5| O | 3 | =INDIRECT("Sheet1!C" & $B5) | =INDIRECT("Sheet1!...
[ -0.11492877453565598, 0.3039882183074951, 0.4596216678619385, 0.050457436591386795, -0.09323278069496155, 0.22214269638061523, 0.26087403297424316, -0.364899605512619, -0.16545890271663666, -0.43746501207351685, -0.39125919342041016, 0.32562023401260376, -0.16471733152866364, -0.1584520637...
model. Probably there is a way to automate them but I wanted to keep it simple. Filling down to cover an arbitrarily long input table in Sheet1 would work.
[ 0.13245032727718353, -0.11052270978689194, 0.21178247034549713, 0.27064642310142517, 0.06888901442289352, 0.3481992185115814, -0.06506587564945221, -0.44781139492988586, -0.1740497499704361, -0.6862006187438965, 0.3958677649497986, 0.43865954875946045, -0.10164593160152435, -0.029859116300...
I have a debug app I've been writing which receives data from a C-based process via UDP. One of the strings sent to me contains a `°` character - [Unicode U+00B0](http://en.wikipedia.org/wiki/Degree_symbol) (which incidentally breaks the StackOverflow search function!). When my wxPython application tries to append that...
[ 0.7907209992408752, 0.5347263216972351, 0.5850520133972168, 0.03896821662783623, 0.0005212253890931606, -0.04071156308054924, 0.6109885573387146, -0.3322242200374603, 0.12028109282255173, -0.4751874506473541, -0.21535742282867432, -0.21013982594013214, 0.0174880214035511, 0.551800370216369...
the source app is out of my control, so how can I detect and decode those symbols into something the `wxTextCtrl` can display? pdc got it right, the following works fine (but fails without the `decode`): ``` #!/usr/bin/env python # -*- coding: utf-8 -*- import wx app = wx.PySimpleApp() app.TopWindow = wx.Frame(None) ...
[ 0.032975733280181885, 0.22489924728870392, 0.6958445906639099, -0.11414819955825806, 0.2822873890399933, 0.18665535748004913, 0.6380203366279602, -0.47565513849258423, -0.21396926045417786, -0.6766551733016968, -0.48689958453178406, 0.7400870323181152, -0.479064404964447, -0.29626163840293...
In the iPhone is there a way I can use JavaScript to close the browser and return to the home screen? After the last page a wizard I am calling out to another iPhone app (ex: maps) and I do NOT what the user to come back to the browser screen when they are done. My backup plan is to have a "Complete" page but that is n...
[ -0.02841804176568985, 0.2673910856246948, 0.5457128286361694, -0.21681542694568634, -0.04094046354293823, -0.10911399126052856, 0.5528350472450256, 0.16345514357089996, -0.3749293386936188, -0.8534691333770752, -0.140231654047966, 0.6383262872695923, -0.22374480962753296, -0.23858870565891...
the browser on the iPhone.
[ -0.21386410295963287, 0.15256495773792267, -0.11443288624286652, 0.2697921097278595, -0.10078486055135727, 0.05721874162554741, -0.09806735813617706, 0.45690256357192993, -0.24669651687145233, -0.6134731769561768, -0.3469942808151245, 0.49699509143829346, -0.20299743115901947, 0.0945296064...
Model Driven Software Development. As I understand it it raises the abstraction level of the design to better reflect the domain the software will attempt to run in. That's alot to say in just one sentence. The communication between the domain experts (customer) and the developers is crucial to make this methodology ...
[ 0.3040981590747833, -0.05161304399371147, 0.3117322623729706, 0.1763458400964737, -0.09449529647827148, -0.14236025512218475, -0.03267435356974602, 0.09537918120622635, -0.10692137479782104, -0.6475397944450378, 0.1675165444612503, 0.910510778427124, -0.12639030814170837, 0.215145811438560...
of MDSD and DSL so any constructive ideas or comments will be appriciated. If you are developing on Microsoft platforms, you might want to check out Oslo also. There is a nice overview here: <http://www.pluralsight.com/community/blogs/aaron/archive/2008/11/03/introducing-quot-oslo-quot.aspx> Here's a ton of links fro...
[ 0.6534730792045593, 0.16917186975479126, 0.1433384269475937, -0.1369665563106537, -0.5915951728820801, -0.4420396387577057, 0.23470084369182587, 0.03276059776544571, -0.09965714067220688, -0.32080522179603577, 0.015078119933605194, 0.24787840247154236, 0.17677974700927734, 0.02363438345491...
maintenance (and debugging) happen at. My test of available books would be how they make the pipeline understandable and how well one can comprehend the path from modeling through deployment and back again.
[ 0.5317659974098206, 0.3675383925437927, -0.026113810017704964, 0.14991891384124756, 0.23438502848148346, 0.2497365027666092, 0.26406747102737427, 0.046394653618335724, 0.07555221766233444, -0.5512765645980835, -0.13183043897151947, 0.9274007081985474, 0.28181686997413635, -0.01478181686252...
Do you know of software which is capable of emulating networking conditions such as constrained bandwidth, latency, closed ports, congestion, collision? Platform-specific is fine, but I'd like to be able to emulate hundreds or thousands of nodes under varying network conditions. Fiddler can do constrained bandwidth an...
[ 0.17494569718837738, 0.024672139436006546, 0.3594971299171448, 0.36776384711265564, 0.2750241756439209, -0.050378262996673584, 0.11704690009355545, 0.18841148912906647, -0.31467685103416443, -0.550827145576477, 0.3753613531589508, 0.48300623893737793, 0.062498789280653, -0.1286174058914184...
I've been tasked with deploying an application built by a third party on an Oracle Application Server, version 10.1.3.0. I've deployed it on Oracle Application Server version 10.1.2.0 without much difficulty. I'm getting the following error: ``` javax.naming.NamingException: Lookup error: javax.naming.AuthenticationEx...
[ -0.007835328578948975, 0.23186950385570526, 0.19274039566516876, -0.006874426268041134, 0.1558750867843628, 0.02066338248550892, 0.30920112133026123, -0.41114550828933716, 0.1457296907901764, -0.5499760508537292, -0.02035268396139145, 0.4236297905445099, -0.18810880184173584, 0.04908836260...
an InitialContext Object and performs the lookup method call. The value it passes is just a String with the value of the fully qualified name of the class being requested (com.ntc.tracing.app.security.EtraceAuthenticatorService). Looking at the InitialContext object, I know it has the following parameters set in the en...
[ -0.35618165135383606, 0.02434079349040985, 0.353220671415329, -0.010968580842018127, 0.17388878762722015, -0.027604440227150917, 0.10402281582355499, 0.02913707308471203, 0.21500976383686066, -0.555210292339325, -0.2098228931427002, 0.2879836857318878, -0.14885073900222778, 0.5515154004096...
but it's not saying it can't find the class. Any suggestions would be greatly appreciated. Right now I'm stumped. Fiddler can do constrained bandwidth and latency simulations.
[ 0.01086293812841177, 0.0017052219482138753, 0.13311827182769775, 0.15870817005634308, -0.055954791605472565, -0.10558689385652542, 0.16406302154064178, 0.26455625891685486, -0.03998808190226555, -0.33626872301101685, 0.11111529916524887, 0.5252698063850403, 0.3095189929008484, 0.1601815670...
I have several identical elements with different attributes that I'm accessing with SimpleXML: ``` <data> <seg id="A1"/> <seg id="A5"/> <seg id="A12"/> <seg id="A29"/> <seg id="A30"/> </data> ``` I need to remove a specific **seg** element, with an id of "A12", how can I do this? I've tried loopi...
[ -0.07247664034366608, 0.1455278843641281, 0.33774250745773315, -0.3381958603858948, 0.01907183788716793, 0.008516497910022736, 0.45034587383270264, -0.5059425830841064, -0.21473684906959534, -0.47837236523628235, -0.12534287571907043, 0.3371969759464264, -0.31844791769981384, 0.05833792313...
[a way to remove](https://stackoverflow.com/a/16062633/367456) XML nodes, its modification capabilities are somewhat limited. One other solution is to resort to using the [DOM](http://de.php.net/manual/en/book.dom.php) extension. [dom\_import\_simplexml()](http://de.php.net/manual/en/function.dom-import-simplexml.php) ...
[ 0.5665602684020996, -0.08432313799858093, 0.8105948567390442, -0.31487804651260376, 0.212391659617424, 0.05009922385215759, 0.04752698540687561, -0.42910006642341614, -0.2865805923938751, -0.4604578912258148, -0.3691467046737671, 0.6627058982849121, -0.33672937750816345, 0.1614458858966827...
id="A29"/><seg id="A30"/></data> ``` By the way: selecting specific nodes is much more simple when you use XPath ([SimpleXMLElement->xpath](http://de.php.net/manual/en/function.simplexml-element-xpath.php)): ``` $segs=$doc->xpath('//seq[@id="A12"]'); if (count($segs)>=1) { $seg=$segs[0]; } // same deletion proc...
[ -0.4380458891391754, -0.19119998812675476, 0.48007848858833313, -0.2818293571472168, 0.08905692398548126, 0.056940652430057526, 0.15692687034606934, -0.35045966506004333, -0.25954553484916687, -0.7159135937690735, -0.3534109890460968, 0.1359352469444275, -0.45678314566612244, 0.00454519363...
Our application defines a URL scheme whose resolution is context-sensitive: The content of the URL depends on the state of an in-progress database transaction. As such, to retrieve the content I cannot, for example, open a new database connection. However, I can't see a way to get at external context from the `URLStrea...
[ 0.1139766201376915, 0.23883439600467682, 0.28541868925094604, -0.0883670523762703, -0.09640099108219147, -0.27863040566444397, 0.36236852407455444, -0.3403286039829254, -0.07933752238750458, -0.785968542098999, -0.09012861549854279, 0.4434187412261963, -0.20786389708518982, 0.0313651710748...
my question is, what is the best way to have context-sensitive URL resolution? Is there any better way than to have a `ThreadLocal` class variable on my `URLStreamHandler` implementation, that is set before the calls? It turns out that for our purposes, at least, the thread-local context object works best.
[ -0.13402238488197327, -0.06865903735160828, 0.4082997441291809, 0.24481633305549622, -0.11742523312568665, -0.00002671887523320038, 0.05297136306762695, 0.10550062358379364, -0.1269349306821823, -0.53041011095047, 0.11698095500469208, 0.6629104614257812, -0.0045127407647669315, 0.341932117...
After "check-in" of a `.docx` file to `SharePoint` and editing it the `RevNum` property is set to `2`. This does not make sense, can someone explain why this is? Well, first of all, you're wasting memory with the new `HashMap` creation call. Your second line completely disregards the reference to this created hashmap,...
[ -0.10588924586772919, 0.011085757054388523, 0.03246188908815384, -0.06653538346290588, 0.061028387397527695, -0.5686131119728088, 0.3529549241065979, -0.046610333025455475, -0.14837367832660675, -0.674384593963623, -0.39768701791763306, 0.5907688736915588, -0.4644697904586792, 0.0287575349...
private Map<String, String> someMap = (HashMap<String, String>)getApplicationContext().getBean("someMap"); } ``` You would probably still get this warning. The problem is, `getBean` returns `Object`, so it is unknown what the type is. Converting it to `HashMap` directly would not cause the problem with the second cas...
[ -0.21406054496765137, -0.06821344047784805, 0.23855029046535492, -0.005810888018459082, -0.19796575605869293, -0.4018884599208832, 0.3617136478424072, 0.09585685282945633, -0.02009003795683384, -0.8603671193122864, -0.1664714217185974, 0.507031261920929, -0.5428770184516907, 0.056060191243...
Thus, there is no guarantee that when you get your bean that it can be represented as a `HashMap<String, String>` because you could have `HashMap<Date, Calendar>` because the non-generic representation that is returned can have any objects. If the code compiles, and you can execute `String value = map.get("thisString"...
[ 0.045440029352903366, -0.2373965084552765, 0.19539369642734528, 0.08454003185033798, -0.029876112937927246, -0.38912466168403625, 0.372039258480072, 0.20524397492408752, -0.23922979831695557, -0.964387834072113, -0.028833169490098953, 0.5449884533882141, -0.3854311406612396, 0.069919317960...
I need to put the image from an NSProgressIndicator into an NSOutlineView Cell. I have written up code that does this for a determinate indicator and it works just great: ``` NSProgressIndicator *progressIndicator = [[NSProgressIndicator alloc] initWithFrame:NSMakeRect(0, 0, 16, 16)]; [progressIndicator setStyle:NSPro...
[ 0.20316502451896667, 0.1647004634141922, 0.6902613639831543, -0.14011655747890472, -0.133296400308609, 0.2953364849090576, 0.2834281623363495, -0.3695521354675293, -0.19853925704956055, -0.9220468401908875, -0.012364380992949009, 0.31588590145111084, -0.285410076379776, 0.06538531184196472...
this by writing the image to a file in each case, the determinate case gives me the progress indicator image, the indeterminate case is always 16x16 white square). The modified code is: ``` if(self.lengthUnknown) { NSProgressIndicator *progressIndicator = [[NSProgressIndicator alloc] initWithFrame:NSMakeRect(0, 0...
[ -0.0776129737496376, 0.028074223548173904, 0.7423032522201538, -0.2987973988056183, -0.2622643709182739, 0.3730294704437256, 0.13089510798454285, -0.5955142974853516, -0.20015928149223328, -0.8387060165405273, -0.07212761044502258, 0.23808816075325012, -0.44018396735191345, -0.108511380851...
some type of drawing that causes -dataWithPDFInsideRect: to be unable to capture their image? --- More information: I tried setting the progress indicator to not use threaded animation as well as trying to grab the contents through NSImage's lockFocus method as suggested below but neither of those attempts made a dif...
[ 0.17746961116790771, 0.044844649732112885, 0.2885550856590271, -0.03875657543540001, -0.19338881969451904, -0.16777104139328003, 0.33050182461738586, -0.10436785966157913, -0.46595335006713867, -0.5853882431983948, 0.3928678035736084, 0.11204735934734344, -0.5339752435684204, 0.08861216157...
drawing, but it's a pretty good replica, IMO. [![alt text](https://i.stack.imgur.com/KcXmM.png)](https://i.stack.imgur.com/KcXmM.png) (source: [harmless.de](http://www.harmless.de/images/progressindicator.png?harmless=e55652fb0a6b5e2d88a22e9b37c9bbc1))
[ 0.13330434262752533, -0.0955963060259819, 0.35669994354248047, 0.2500617206096649, -0.31723666191101074, 0.1403399109840393, 0.32094481587409973, -0.2380422055721283, -0.5832276940345764, -0.4583069980144501, 0.1413699984550476, -0.09705143421888351, -0.541060745716095, 0.07357347756624222...
Is anyone aware of a way of sftp'ing from Unix to Windows Thanks Damien You setup a server with, for instance [freeSSHd](http://www.freesshd.com/). Then you can use the regular unix client that comes with OpenSSH, which is a bit on the no feature side of the spectrum, or choose among many of the other SFTP supporting ...
[ 0.39145052433013916, 0.07123303413391113, 0.30972567200660706, -0.03603473678231239, -0.32945626974105835, -0.48046839237213135, 0.06314147263765335, 0.18388399481773376, -0.23778784275054932, -0.436904639005661, -0.09632977098226547, 0.3813413679599762, -0.14061339199543, -0.0139824058860...
This is a strange one... In a windows forms app (VB.NET/VS 2005) I have the need to occasionally check if the application DVD is inserted. In my production machine (and in the majority of our clients) this code takes less than an second to execute. But in some machines, it takes about 8 to 10 seconds. I couldn't fin...
[ 0.22541169822216034, -0.0102251460775733, 0.2759634256362915, 0.07391022145748138, 0.1573086678981781, -0.4355861246585846, 0.4088369905948639, -0.016997570171952248, -0.3688962757587433, -0.44307464361190796, 0.17336247861385345, 0.2847351133823395, -0.31753671169281006, 0.051102384924888...
by now:) ) Since this funcion it is only called once, I can live with it. But the strange thing, and we stumbled upon this on pure luck, is that if a VMWare Virtual Machine is running, the code (running in the host OS ) will take the expected less than a second!!! Has anyone ever encountered anything similar to th...
[ 0.43362051248550415, 0.07293903082609177, 0.6552254557609558, 0.35137903690338135, -0.09844036400318146, -0.505696713924408, -0.01891917921602726, 0.30105775594711304, -0.34918907284736633, -0.587523877620697, 0.005678543355315924, 0.7700099349021912, -0.1481427699327469, 0.498480558395385...
New DriveInfo(i_DrivesArray(i_DriveNumber)) If (i_DriveInformation.DriveType = i_DriveTargetType And i_DriveInformation.IsReady = True) Then If File.Exists(i_DriveInformation.Name.ToString & ci_CDIdentifiers(i_Counter).ToString) = True Then ci_IsCDInserted = True ci...
[ 0.23198053240776062, -0.32717201113700867, 0.838361382484436, -0.041511908173561096, 0.27603405714035034, -0.16941499710083008, -0.11706533282995224, -0.13648901879787445, -0.1573294699192047, -0.8713570237159729, -0.2767983078956604, 0.8374056816101074, -0.4463866353034973, 0.587671518325...
End If End If Next ``` Where's the cost in this code? Profiling would really help on a *bad* machine I'd imagine the cost is somewhere in those DriveInfo calls - looking in reflector at the code behind DriveInfo: .cctor seems pretty innocuous - just validates letter constraints. .GetDriveType calls str...
[ 0.21165797114372253, 0.13382351398468018, 0.33269545435905457, 0.11898616701364517, -0.13637679815292358, -0.277570903301239, 0.19796787202358246, -0.1529441475868225, -0.109374038875103, -0.615911066532135, -0.0911903828382492, 0.6748203635215759, -0.228468120098114, 0.4920661449432373, ...
GetDriveType - possibly expensive. Both the latter API's have the potential to try and touch the drive filesystem. From there on down you're dependent on the behaviour of the device and it's drivers for the volume as to what "unmounted", "ready, "not ready" etc. means. e.g. trying to spin up a disk. Since the delays ...
[ 0.40085282921791077, -0.3967864513397217, 0.6685773730278015, 0.3402325510978699, -0.011368397623300552, -0.19737130403518677, 0.012249547056853771, -0.2792968451976776, -0.08121514320373535, -0.4060031771659851, -0.032494403421878815, 0.991463303565979, 0.07913341373205185, 0.262804985046...
From the [Mozilla Developer Network](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map): ``` [1,4,9].map(Math.sqrt) ``` will yield: ``` [1,2,3] ``` Why then does this: ``` ['1','2','3'].map(parseInt) ``` yield this: ``` [1, NaN, NaN] ``` I have tested in Firefox 3.0....
[ -0.11637047678232193, 0.21393218636512756, 0.44496428966522217, -0.30571460723876953, -0.13456079363822937, 0.08256605267524719, 0.2869179844856262, -0.5145657062530518, -0.11381895840167999, -0.6087609529495239, -0.34946173429489136, 0.8885683417320251, -0.483781635761261, -0.180715158581...
`parseInt` which actually expects *two* arguments, the second argument will be the index of the element. In this case, you ended up calling `parseInt` with radix 0, 1 and 2 in turn. The first is the same as not supplying the parameter, so it defaulted based on the input (base 10, in this case). Base 1 is an impossible...
[ -0.2916821241378784, 0.43351051211357117, 0.1253545731306076, -0.23344385623931885, -0.1190745159983635, 0.2522898316383362, 0.38581669330596924, -0.5461776852607727, 0.025494473055005074, -0.19634820520877838, -0.4944398105144501, 0.40945085883140564, -0.4238179922103882, -0.3699324429035...
need the wrapper function: ``` ['1','2','3'].map(function(num) { return parseInt(num, 10); }); ``` or with ES2015+ syntax: ``` ['1','2','3'].map(num => parseInt(num, 10)); ``` (In both cases, it's best to *explicitly* supply a radix to `parseInt` as shown, because otherwise it guesses the radix based on the input...
[ -0.27087754011154175, -0.06321913748979568, 0.08622536808252335, -0.07664774358272552, 0.060568917542696, 0.015407184138894081, 0.3279828131198883, -0.3071327209472656, 0.2289140820503235, -0.6175311207771301, -0.5769349336624146, 0.6285985112190247, -0.30321675539016724, -0.29819360375404...
What are the best algorithms for sorting data in C#? Is there one sorting algorithm that can handle 80% of sorts well? Please give code examples if applicable. Check out this site: [Sorting Comparisons with Animations](http://www.sorting-algorithms.com/) Short answer: Quick Sort Longer answer: The above site will...
[ -0.19214597344398499, -0.0647503137588501, 0.10226030647754669, 0.33346977829933167, -0.3803291916847229, 0.2616369426250458, 0.09888441860675812, 0.08145168423652649, -0.33891454339027405, -0.7440847754478455, -0.15011020004749298, 0.10049528628587723, -0.13339124619960785, -0.29902887344...
default for Lists in .Net, so you can just call `.Sort` if what you have is already in a list. There is pseudo-code on the website I pointed you to above if you want to see how to implement this.
[ 0.3858606219291687, -0.32505765557289124, 0.019869379699230194, 0.030741404742002487, 0.1328972727060318, -0.5179198980331421, 0.22152043879032135, 0.35296618938446045, -0.49672931432724, -0.772594153881073, -0.11319614201784134, 0.36422696709632874, -0.3666415214538574, -0.082744531333446...
Castle Active Record? Plain NHibernate? Subsonic? Entity? Something like Nettiers? I'd like to use one, but I don't know enough to decide. Nhibernate seems over kill and complex, but widely used. Subsonic seems neat and easy. But is it stable? I have CodeSmith, and I was pointed to Nettiers, which seems neat as well, ...
[ 0.08540450036525726, -0.28422659635543823, 0.49248766899108887, 0.46605923771858215, -0.23516295850276947, -0.01886570267379284, 0.1257638782262802, 0.07430954277515411, -0.31148993968963623, -0.37419289350509644, -0.09610509127378464, 0.6240174770355225, -0.015987049788236618, 0.068477272...
complicated as it first appears. You can go a long way without having to know all of its features. However, you should always pick the right tool for the job at hand. If you're building an app that has something approaching a true domain model then NHibernate would IMO be the automatic choice. The others you mention a...
[ -0.09598811715841293, -0.12956658005714417, 0.07082142680883408, 0.23018090426921844, -0.1177818551659584, -0.002219064626842737, -0.07403352111577988, 0.11012188345193863, -0.4370519518852234, -0.4348328113555908, -0.14158251881599426, 0.4894133508205414, -0.23379847407341003, 0.304076075...
Quick add on requirement in our project. A field in our DB to hold a phone number is set to only allow 10 characters. So, if I get passed "(913)-444-5555" or anything else, is there a quick way to run a string through some kind of special replace function that I can pass it a set of characters to allow? Regex? Definit...
[ 0.13378366827964783, -0.2744663953781128, 0.42006024718284607, -0.09209441393613815, 0.2517754137516022, 0.1343030035495758, 0.488741934299469, -0.24441783130168915, 0.032530948519706726, -0.5071590542793274, -0.1793147325515747, 0.705582857131958, -0.4136967360973358, -0.2326073795557022,...
static string CleanPhone(string phone) { return digitsOnly.Replace(phone, ""); } ``` Depending on your real-world inputs, you may want some additional logic there to do things like strip out leading 1's (for long distance) or anything trailing an x or X (for extensions).
[ 0.2757238745689392, -0.5760999917984009, 0.15404774248600006, -0.05488380044698715, 0.2823774814605713, -0.21055275201797485, 0.312059223651886, -0.1526089310646057, 0.040145717561244965, -0.21099664270877838, -0.3105635941028595, 0.5048310160636902, -0.49233847856521606, -0.15429244935512...
I need to programmatically enable READ COMMITTED SNAPSHOT in SQL Server. How can I do that? ``` ALTER DATABASE [dbname] SET READ_COMMITTED_SNAPSHOT ON WITH ROLLBACK AFTER 20 SECONDS ```
[ 0.2782065272331238, 0.17204193770885468, 0.47062039375305176, 0.0018663457594811916, 0.10729356110095978, -0.5201011896133423, 0.3611278235912323, -0.17154845595359802, 0.014494153670966625, -0.7240108251571655, -0.05659462511539459, 0.7179351449012756, -0.1348557472229004, 0.1073948591947...
In C# some of default name space such as System.Collections are listed without typing in using blah. In visual basic, they are not imports for you. Is there a way to force vb to auto imports some of default name space or VB work differently than C#? I think the first item posted by John Rudy is what you're looking for-...
[ 0.6053851246833801, 0.03258635103702545, 0.007240954786539078, 0.03967961668968201, -0.284911185503006, -0.23682551085948944, 0.06665286421775818, 0.06642845273017883, -0.5148272514343262, -0.5877664685249329, -0.19087408483028412, 0.6663835048675537, -0.4687870442867279, -0.14608994126319...
brings child namespaces 'in scope', in a manner of speaking. Take the `System` namespace, for example, which is imported by default. Because the System namespace is imported, you don't have to first type `System.` to reference a child namespace like `IO`, like you would in C#. So, right out of the box you can say som...
[ 0.2821114957332611, 0.16106168925762177, 0.17301516234874725, 0.152602419257164, 0.10349517315626144, 0.29819533228874207, -0.10272819548845291, 0.2764080762863159, -0.2530522644519806, -0.8258885145187378, -0.10049024224281311, 0.46182772517204285, -0.07420922070741653, 0.2793627977371216...
get used to this VB feature after a while, and it comes in handy more than you'd think. I bring all this up because the end result of this feature is that you often don't want to import as many namespaces in VB as you do in C#.
[ 0.6205570697784424, 0.293362557888031, -0.0032190580386668444, -0.2635783553123474, -0.179984450340271, -0.2751087248325348, 0.23817896842956543, 0.3413112163543701, -0.23322361707687378, -0.5625243186950684, -0.13038314878940582, 0.44734498858451843, -0.20166519284248352, -0.0290701389312...
Can someone recommend a secure FTP implementation that works well on Windows Server 2000? I'm uploading files into virtual directories and web applications under IIS and the existing provider, obviously, isn't secure or encrypted. Did you try filezilla server? <http://filezilla-project.org/> It supports FTP over SSL/T...
[ 0.321185827255249, -0.1556674987077713, 0.13323745131492615, 0.1136012077331543, 0.130705326795578, -0.33678582310676575, 0.174560084939003, 0.18914994597434998, -0.4550713002681732, -0.5721356868743896, 0.008730444125831127, 0.4427739977836609, -0.34801867604255676, -0.018748290836811066,...
I'm doing an AutoLisp project which uses long associative structures to do heavy geometrical processing - so I'm curious about the associative list intense use timing results. How simple/complex is the implementation? It uses some data structure or a normal list of dotted pairs? The are any extension for b-tree or some...
[ -0.24198129773139954, -0.29644718766212463, -0.029529565945267677, 0.11590583622455597, -0.28618407249450684, -0.08526445925235748, 0.034334342926740646, -0.10991629958152771, -0.4820730686187744, -0.5917133092880249, -0.20497402548789978, 0.5019403696060181, -0.6382196545600891, -0.490948...
list. For example, an alist with 100 elements will, on average, need 50 accesses to find the thing that you are after.
[ 0.28331801295280457, -0.3939194679260254, -0.05238185077905655, 0.3552296757698059, 0.10122933983802795, -0.0045900531113147736, 0.341548889875412, -0.22963853180408478, -0.3808029592037201, -0.45204663276672363, -0.14913223683834076, 0.0535881333053112, -0.2582493722438812, 0.181665197014...
We currently use VSS 6, this is not going to change I am afraid. I am attempting to write a script that will allow a user to quickly copy all files that they have checked out to another directory tree. In order to do this I need to get a list of all the files that the user has checked out, and the directory that the f...
[ 0.5971206426620483, 0.10559989511966705, 0.49326175451278687, 0.12184041738510132, 0.08562492579221725, -0.36297622323036194, 0.6477227210998535, 0.1052960455417633, -0.10703504085540771, -0.9960697889328003, 0.06450769305229187, 0.7836163640022278, -0.17673957347869873, 0.2271314561367035...
of use: [VSS CommandLine Commands](http://msdn.microsoft.com/en-us/library/003ssz4z(VS.80).aspx) [VSS CommandLine Options](http://msdn.microsoft.com/en-us/library/hsxzf2az(VS.80).aspx) To expand on Panos reply ``` ss.exe Status $/ -R -U<Username> ``` Will get you the files of a particular user.
[ 0.10347436368465424, -0.15250264108181, 0.1931355893611908, 0.15234550833702087, 0.3018035590648651, 0.014127050526440144, 0.2790771722793579, 0.10916175693273544, -0.46400922536849976, -0.691451370716095, -0.6469124555587769, 0.32438698410987854, -0.22550034523010254, 0.10305558890104294,...
I'm working on a project and I want to store some easily enumerated information in a table. MySql's enum data type does exactly what I want: <http://dev.mysql.com/doc/refman/5.0/en/enum.html> . Is there an equivalent in SQL Server 2005? I know I could store the possible values in a type table with a key, but I'd rathe...
[ 0.028127672150731087, 0.30638912320137024, 0.2695424556732178, 0.08564718812704086, -0.06329653412103653, 0.037267349660396576, 0.08314140886068344, -0.03431699424982071, -0.1318683624267578, -0.6687279939651489, 0.14232057332992554, 0.29602518677711487, -0.13789185881614685, 0.06744605302...
DEFAULT 'open' ``` **SQL Server:** ``` ColumnName varchar(10) CHECK(ColumnName IN ('upload', 'open', 'close', 'delete', 'edit', 'add')) DEFAULT 'open' ```
[ -0.616174042224884, 0.13176555931568146, 0.5918505191802979, -0.2835027575492859, 0.1028675064444542, 0.10678093880414963, 0.17497235536575317, 0.019728707149624825, -0.06780466437339783, -0.5987842082977295, -0.4603687524795532, 0.6669002175331116, -0.4441823363304138, -0.0576013624668121...
Have you ever worked on a (full-time) project where using Agile methodologies actually allowed you to accomplish a 40-hour work-week? If so, what were the most valuable agile practices? Yes, I'm on a 40 hour (actually it's 37.5 hours or so, that's what my contract says) on a project that was run with SCRUM from the beg...
[ 0.48724502325057983, 0.05431079864501953, -0.16949565708637238, 0.04478900507092476, 0.135751411318779, 0.04586529731750488, -0.10242732614278793, 0.3820265531539917, -0.546755313873291, -0.5518646240234375, 0.513258159160614, 0.6433683037757874, 0.36456298828125, -0.31475844979286194, -...
shipping an open beta on Friday. We have learned a lot since then about SCRUM and agile. The single most valuable lesson from my point of view is: pod sizes must be reasonable ... we started out with pods with 12-20 members, that didn't work out well at all. A maximum of 10 should not be exceeded. It's too easy to agr...
[ 0.49547410011291504, -0.2654670476913452, 0.30171918869018555, 0.1431168168783188, -0.006306337658315897, -0.10918819904327393, -0.3948219120502472, 0.07523894309997559, 0.036864880472421646, -0.4794280230998993, -0.029814643785357475, 0.34707799553871155, -0.13403716683387756, 0.016729490...
work on the task. Also, with a bi-weekly task planning schedule you have to get every Product Owner to agree on the task list and priorities for the current sprint, and new task requests should be issued before that planning meeting or else it will be ignored for the current sprint. This forced us to improve on inter-...
[ 0.09988885372877121, -0.1785331815481186, 0.1639726310968399, 0.24479098618030548, 0.19821485877037048, 0.029795944690704346, -0.3322189152240753, -0.00943440105766058, -0.25034093856811523, -1.0708547830581665, -0.13643822073936462, 0.6037537455558777, -0.1268235445022583, -0.522294580936...
I am trying to set the background color of a DataGridView row to red. I tried with the following line: dgvActiveCalls.Rows[1].DefaultCellStyle.BackColor = Color.Red; but it doesn't work. Then just to see if something is wrong with update I tried to paint the column instead of row: dgvActiveCalls.Columns[1].DefaultCe...
[ 0.21089619398117065, -0.3040291368961334, 0.5264211893081665, -0.22841356694698334, -0.09127715229988098, -0.04192115366458893, 0.39550772309303284, 0.1851574331521988, -0.09213069081306458, -0.7395995855331421, 0.10048699378967285, 0.7190252542495728, -0.453896164894104, 0.223261401057243...
dynamically adding columns, your DefaultCellStyle can be ignored and be overridden by the RowsDefaultCellStyle. Sorting can also override styles you've set. You might want to check in which order you're setting these styles and google for some articles regarding style inheritence. P.S. Interestingly enough, I google...
[ 0.30805131793022156, -0.25662973523139954, 0.12026742845773697, 0.011527555994689465, -0.4346620738506317, -0.16600041091442108, 0.19470959901809692, -0.14340506494045258, -0.35371148586273193, -0.4060833156108856, 0.12218205630779266, 0.45623987913131714, -0.38641035556793213, 0.203254133...
A PHP array can have arrays for its elements. And those arrays can have arrays and so on and so forth. Is there a way to find out the maximum nesting that exists in a PHP array? An example would be a function that returns 1 if the initial array does not have arrays as elements, 2 if at least one element is an array, an...
[ 0.15122129023075104, -0.08524388074874878, 0.2603013515472412, 0.008636974729597569, -0.1750262975692749, -0.05217484012246132, 0.30123522877693176, -0.6229726672172546, -0.04406287521123886, -0.14645244181156158, 0.028138071298599243, 0.44156286120414734, -0.3665343225002289, -0.097907289...
$depth = array_depth($value) + 1; if ($depth > $max_depth) { $max_depth = $depth; } } } return $max_depth; } ?> ``` Edit: Tested it very quickly and it appears to work.
[ 0.23908677697181702, -0.12400280684232712, 0.4538539946079254, -0.28607386350631714, 0.342320054769516, -0.1951293796300888, 0.3982742428779602, -0.37933629751205444, 0.03776860982179642, -0.44688519835472107, 0.0029870469588786364, 0.6889378428459167, -0.22268278896808624, -0.005629902705...
**What Delphi coding standards document(s) do you follow?** Our company is looking at putting some better coding standards in place, to improve our code’s readability, reviewability, and maintainability. We’ve come across CodeGear’s “Object Pascal Style Guide”, but it hasn’t been touched in quite a while and I imagine...
[ 0.7427815198898315, 0.16670559346675873, 0.1452322155237198, 0.03495698794722557, -0.2374223917722702, -0.2757904529571533, 0.09230062365531921, 0.3731437623500824, -0.3656644821166992, -0.48939794301986694, -0.041589003056287766, 0.592978835105896, 0.15147879719734192, -0.2278607040643692...
to be the clear winner! Thanks! **Project JEDI Delphi Language Style Guide With JCL Additions** (An extension of CodeGear’s “Object Pascal Style Guide”) <https://wiki.delphi-jedi.org/wiki/Project_JEDI_Delphi_Language_Style_Guide> (Thanks to Jeroen Pluimers and AmigoJack for reporting that the old links had died. An...
[ -0.22751055657863617, -0.04180026799440384, 0.1559712290763855, 0.054792169481515884, -0.3191069960594177, 0.10495148599147797, 0.026871543377637863, 0.0489208847284317, -0.3558994233608246, -0.3573824465274811, -0.3493293523788452, 0.3788309693336487, 0.12579399347305298, -0.1187745705246...
I don't find the oft-used "\*" to be very nice looking - can anyone suggest a nicer-looking method or point me to an example? I tried making the field highlighted in red as one person suggested but I did not like the look. Bold labels might do the trick. But I really like the idea of "Required" being shown in grey i...
[ 0.6774731278419495, 0.0762849971652031, 0.22486622631549835, 0.23889918625354767, -0.10983704030513763, -0.24977651238441467, 0.37429919838905334, 0.1573251634836197, -0.07007139921188354, -0.61696457862854, -0.24343498051166534, 0.2865680754184723, -0.13424977660179138, -0.184590697288513...
next to them. Sometimes the asterisk is red to help it stand out a bit. Why fight the standard? Don't make your users think too much. Go with the standard and keep your creativity for more important things.
[ 0.7855606079101562, 0.07744098454713821, -0.18678490817546844, 0.41596341133117676, -0.2537927031517029, -0.2353849560022354, 0.04677005112171173, 0.1335931271314621, -0.15807770192623138, -0.47574537992477417, 0.17428648471832275, 0.42239153385162354, 0.0005717737949453294, -0.28670081496...
I have a RegEx that is working for me but I don't know WHY it is working for me. I'll explain. ``` RegEx: \s*<in.*="(<?.*?>)"\s*/>\s* ``` Text it finds (it finds the white-space before and after the input tag): ``` <td class="style9"> <input name="guarantor4" id="guarantor4" size="50" type="text" tabindex="10...
[ -0.10658521205186844, -0.00024915701942518353, 0.24682806432247162, 0.056537315249443054, 0.1467917263507843, 0.014117525890469551, 0.20989102125167847, -0.45423781871795654, 0.04300655797123909, -0.5300999879837036, -0.09886523336172104, 0.6945236921310425, -0.2985847294330597, -0.1863609...