text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I have a PHP application that will on occasion have to handle URLs where more than one parameter in the URL will have the same name. Is there an easy way to retrieve all the values for a given key? PHP $\_GET returns only the last value. To make this concrete, my application is an OpenURL resolver, and may get URL pa...
[ 0.014835469424724579, 0.37532925605773926, 0.7250315546989441, -0.13681036233901978, -0.0008642422617413104, -0.05350227653980255, 0.4667671024799347, 0.13187576830387115, -0.3202158808708191, -0.25297921895980835, -0.18403154611587524, -0.14360766112804413, -0.1380854696035385, 0.64606660...
having been overwritten. I'd like to get access to both values. Is this possible in PHP? If not, any thoughts on how to handle this problem? Something like: ``` $query = explode('&', $_SERVER['QUERY_STRING']); $params = array(); foreach( $query as $param ) { // prevent notice on explode() if $param has no '=' i...
[ 0.22602218389511108, 0.37062740325927734, 0.3137560784816742, -0.04046539217233658, -0.11143774539232254, 0.041951414197683334, 0.31444016098976135, -0.9219950437545776, -0.4684039056301117, 0.01263455580919981, -0.2550853192806244, 0.4181303381919861, -0.49125316739082336, 0.1643993109464...
array('At last: a Christmas in the West Indies.'), 'rft.place' => array('London'), 'rft.pub' => array('Macmillan and co.'), 'rft.aufirst' => array('Charles'), 'rft.aulast' => array('Kingsley'), 'rft.au' => array('Kingsley, Charles'), 'rft.pages' => array('1-352'), 'rft.tpages' => array('352...
[ -0.11722446233034134, 0.09715841710567474, 1.107715368270874, -0.11627387255430222, -0.03473307192325592, 0.38032639026641846, -0.016077952459454536, 0.06934593617916107, -0.5530616641044617, -0.487464964389801, -0.7203400135040283, -0.26347583532333374, -0.1663118153810501, 0.458202958106...
this is a more "can it be done" rather than a "how is it done" question. I'm looking at building a service (middle tier, .net, providing data abstraction and some business logic) that will be used by multiple internal client systems on different platforms. E.g. one client might be a web site, another client some java c...
[ 0.5349066853523254, -0.28869348764419556, 0.04273194447159767, 0.2372131645679474, 0.1407672017812729, -0.1404861956834793, 0.07896344363689423, -0.04136648401618004, -0.21608570218086243, -0.6748512983322144, -0.14194804430007935, 0.31908881664276123, -0.0905059203505516, -0.0729666128754...
implemented this using web services with a Tibco EMS channel for the notifications. My question is: Could I achieve the three requirements (synch, asynch, and pub/sub) by exposing a WCF service? Could this service by consumed by non WCF clients? Excuse the vagueness of this question - I can elaborate as needed. Than...
[ 0.23341499269008636, -0.1646885722875595, 0.25674813985824585, 0.008439726196229458, -0.06518353521823883, -0.527550458908081, 0.4609072804450989, -0.3452608585357666, 0.05632080137729645, -0.6028411388397217, -0.085349440574646, 0.802463948726654, -0.45285534858703613, -0.0658473744988441...
implementing this in other platforms) I don't have much experience with these, but they don't seem hugely complected(you can read more here <http://dotnetaddict.dotnetdevelopersjournal.com/wcf_alarmclock.htm>)
[ 0.3440934121608734, -0.34445270895957947, 0.3360762894153595, -0.01956547424197197, 0.12218175083398819, -0.3496195375919342, 0.46760034561157227, -0.43984347581863403, -0.36512231826782227, -0.4042007029056549, 0.2960372567176819, 0.5401948094367981, -0.47813278436660767, -0.4201384484767...
when calling a SSIS package (C# app) using LoadFromSqlServer, does the user account have to have any special permissions on the database or server? I can't seem to view the packages in EM at the moment ... You will need to grant some rights to the users which need to run the SSIS packages. [This page](http://sqljunki...
[ 0.15739883482456207, -0.07386764883995056, 0.220605731010437, 0.04541236534714699, -0.09312625229358673, -0.5347368717193604, 0.530822217464447, -0.10293295979499817, -0.40600499510765076, -0.3097478747367859, -0.29395726323127747, 0.49440011382102966, -0.399274617433548, 0.055105693638324...
So like many people, I'm excited about Ruby on Rails. Being a Windows user, I downloaded InstantRails, got it going, and followed along with the screencast on how to make a blog with RoR 2.0 in fifteen minutes. I used Notepad++ as my text editor, because that's what I've traditionally used for writing the PHP-based web...
[ 0.5620334148406982, 0.11612241715192795, 0.12239385396242142, 0.03747129440307617, -0.1833859533071518, -0.14850686490535736, 0.4182843863964081, 0.4716821610927582, -0.11254499852657318, -0.39676979184150696, 0.42131996154785156, 0.5962825417518616, 0.04581815004348755, -0.133708149194717...
of programming and scripting languages over the years - C++, JavaScript, PHP, HTML, and Lua just to name a few. I don't know Ruby, but I understand a lot of how it works, as far as the syntax is concerned, but I don't understand a lot of the logic behind why certain files do certain things, and that sort of thing. Als...
[ 0.3015921115875244, 0.16069960594177246, 0.0839913934469223, 0.14972013235092163, -0.164548859000206, -0.02082347869873047, 0.01003694161772728, 0.25901666283607483, -0.2307138592004776, -0.5085586309432983, 0.14557532966136932, 0.7061073780059814, -0.3415093421936035, -0.17310988903045654...
to come out before attempting to learn RoR? Or should I just plow on through and experiment until I figure it out? If you are really serious about learning Rails, my advice is to **get a good book and read it** (I know.. programmers don't read books, but you should!). A "*good book on Rails*" usually contain a chapter ...
[ 0.45713362097740173, -0.12159041315317154, -0.117132768034935, 0.14000776410102844, -0.28200867772102356, -0.35024410486221313, 0.7792495489120483, 0.1294955164194107, -0.11824514716863632, -0.5275532007217407, 0.03318267688155174, 0.6393317580223083, 0.21344633400440216, -0.23758006095886...
to follow what's > going on with a Rails application if > you understand basic Ruby syntax. > Rails isn't going to magically > revolutionize the way you write web > applications if you have no experience > with the language it uses. I'm personally using [Simply Rails 2](http://www.sitepoint.com/books/rails2/), w...
[ 0.41654083132743835, 0.04705372452735901, -0.02826857753098011, 0.106862872838974, -0.26996365189552307, -0.3577577769756317, 0.5034224390983582, 0.09676871448755264, -0.31810492277145386, -0.5698038935661316, 0.04288393259048462, 0.4298288822174072, 0.007189917378127575, 0.005344073288142...
Is it possible to post a description/comment variable to the facebook sharer url? It's only possible for url and title as far as I can figure out. The parameters that you can pass to the actual `sharer.php` are "u" and "t" which are `url` and `title`. You can add `meta` tags to your page to get more info to appear in t...
[ 0.6275227069854736, -0.13706925511360168, 0.37624743580818176, 0.21768823266029358, -0.13223913311958313, -0.1845020353794098, 0.19387538731098175, 0.10660594701766968, -0.12260793894529343, -0.5979407429695129, 0.1289931833744049, 0.5287554264068604, -0.16996558010578156, -0.0360437221825...
example news story could > have the following: > > > > ```html > <meta name="title" > content="Smith hails 'unique' Wable legacy"> > <meta name="description" > content="John Smith claims beautiful football ..." /> > <link rel="image_src" > href="http://www.onjd.com/design05/images/PH2/WableAFC...
[ 0.18561482429504395, 0.3686283826828003, -0.05457664653658867, -0.03903694450855255, -0.09765401482582092, -0.29388606548309326, 0.30294427275657654, 0.0783269926905632, -0.21728895604610443, -0.563865602016449, 0.057050012052059174, 0.30778780579566956, -0.44375282526016235, 0.12025202065...
For > consistency's sake, please use the > <meta> tag to provide text data for > the preview, and the <link> tag for > any source urls. > > > The title and summary tags are the > minimum requirements for any preview, > so make sure to include these two.
[ 0.17531979084014893, -0.0032565961591899395, 0.3691137731075287, 0.259858101606369, -0.2286895364522934, -0.37867769598960876, 0.10911693423986435, 0.0153570044785738, -0.06781628727912903, -0.4932578504085541, -0.19786131381988525, 0.5778312683105469, -0.16908365488052368, 0.0698649957776...
I have an html table ``` <table border="0" width="100%"> <tr class="headerbg"> <th width="5%"> No </th> <th width="30%"> Name
[ 0.05139248073101044, 0.0626908540725708, 0.6850208044052124, -0.15892869234085083, -0.022941676899790764, 0.04677942022681236, 0.11107589304447174, -0.0952494889497757, 0.17512603104114532, -0.6774227619171143, 0.0806761384010315, 0.19733694195747375, 0.006746992468833923, 0.15547910332679...
</th> <th width="20%"> Department or Division </th> <th width="25%"> Email </th> <th width="20%">
[ -0.09175752848386765, -0.05751942843198776, 0.43423905968666077, 0.11908306926488876, 0.022674890235066414, 0.07393574714660645, 0.05723883956670761, 0.016603048890829086, -0.2598664462566376, -0.7425401210784912, -0.5791013240814209, 0.19466689229011536, 0.24609404802322388, -0.1566178947...
Staff/Student </th> </tr> <tr class="bg2"> <td> 1 </td> <td>
[ 0.24789084494113922, -0.06699412316083908, 0.06104060262441635, 0.01062679011374712, -0.08719299733638763, 0.21766574680805206, 0.2813858985900879, -0.21041271090507507, -0.24681074917316437, -0.4137724041938782, -0.6112014651298523, 0.2245621383190155, 0.3239873945713043, 0.07172734290361...
<strong><a class="searchLink2" href="tel_search.php?fore=Dave&amp;sur=Rumber">Dave Rumber</a></strong> </td> <td> Medical School </td> <td> <a class="searchLink2" href="mailto:Dave.Rumber@Home.com">Dave.Rumber@Home.com</a>
[ -0.06081711873412132, 0.2870509922504425, 0.32210683822631836, -0.6154130697250366, -0.31483688950538635, 0.42378467321395874, 0.6903268098831177, -0.3551543354988098, -0.2472236305475235, -0.40661901235580444, -0.30021005868911743, 0.2779216766357422, 0.10994484275579453, 0.23778314888477...
</td> <td> Student&nbsp; </td> </tr> </table> ``` Sometimes there will be more than one row of people results. I would like to be able to go through each row and pluck out the name and e-mail information and do some other processing. Put the data in a datagrid,
[ 0.24559985101222992, -0.041575074195861816, 0.37631574273109436, 0.2799447476863861, 0.012991268187761307, 0.008814399130642414, -0.12306595593690872, -0.013542255386710167, -0.11298028379678726, -0.7884241938591003, -0.14437983930110931, 0.16086140275001526, 0.02447306178510189, 0.2014517...
and possibly into a database. I guess my question is how do I do this? ``` string table = GetContents(buffer); table = table.Replace("&nbsp;", ""); table = table.Replace("&", "&amp;"); XElement inters = XElement.Parse(table); ``` I can put it into an XElement but I am not quite sure where to go from here...
[ 0.1728002429008484, 0.09145021438598633, 0.21394819021224976, -0.05678374320268631, 0.22605347633361816, -0.282129168510437, 0.5425011515617371, -0.08907043933868408, -0.014551383443176746, -0.5961583256721497, -0.517552375793457, 0.20572708547115326, -0.45126891136169434, 0.34406560659408...
When designing a ASP.net WebForm application what are some important steps to take (or hacks if you like to use the term) to ensure the best possible performance (in terms of speed, stability, and scalability)? Here's a good Best Practices written by microsoft. Chapter 6 is specific to ASP.NET, but the whole document i...
[ 0.43715324997901917, 0.04828619956970215, 0.26165008544921875, 0.07786423712968826, -0.07779134064912796, -0.12239980697631836, 0.1572592556476593, -0.09874339401721954, -0.050432998687028885, -0.4697197377681732, -0.13989247381687164, 0.2261086106300354, -0.03138667345046997, -0.234105557...
I'm having trouble finding an open-source IDE with support for Git. Are there any that you could point me to or recommend? There's an [Eclipse plugin in progress](http://www.eclipse.org/egit/).
[ 0.7111371755599976, -0.0708230584859848, -0.15544845163822174, 0.13194046914577484, -0.40025150775909424, -0.2859050929546356, 0.03182568773627281, 0.359506219625473, -0.1344866156578064, -0.8157729506492615, 0.11090216785669327, 0.460482120513916, 0.13117918372154236, -0.096249058842659, ...
I need to be able to change a user's password from a cron task or from an ssh session. Is there an easy way to do that with a bash script? If not, what's the easiest way to do it in Cocoa? Use the `passwd` shell command.
[ 0.4311269223690033, 0.10871360450983047, 0.08471892029047012, 0.002398691838607192, -0.017521856352686882, -0.3998381495475769, 0.36467838287353516, -0.02399258315563202, -0.030426613986492157, -0.7971898913383484, -0.060549747198820114, 0.8474726676940918, -0.15907415747642517, -0.1072554...
I have a WebApplication project, a business logic project, and a WebDeployment project for the web app. When I build solution, the deployment "Release" bin contains 1 dll for each of the projects - so I get one for MyWeb.dll, MyWebBusiness.dll, and MyWebDeploy.dll. When I try to run the site, it sees the same type ...
[ 0.4388643801212311, 0.4601789116859436, 0.4155046343803406, -0.15011194348335266, -0.19304555654525757, 0.2858404517173767, 0.5210972428321838, -0.369843989610672, -0.44372087717056274, -0.6578159928321838, -0.15539920330047607, 0.5179650783538818, -0.24143342673778534, 0.15599137544631958...
instead of *CodeBehind*
[ 0.48936453461647034, 0.3731677234172821, -0.2561325430870056, 0.06257893145084381, -0.36728066205978394, -0.16926825046539307, 0.5783877968788147, 0.13396601378917694, -0.11118032038211823, -0.2200818508863449, -0.06309063732624054, 0.06911852955818176, -0.3844352662563324, 0.1021912693977...
This question deals with concurrency issues, for suggestions on how to display a busy icon see this question: [Javascript - loading/busy indicator or transparent div over page on event click](https://stackoverflow.com/questions/205631/javascript-loadingbusy-indicator-or-transparent-div-over-page-on-event-click) When a...
[ 0.004201406147330999, -0.014756756834685802, 0.4247359335422516, -0.17236974835395813, -0.10253527015447617, 0.05641188472509384, -0.014136203564703465, -0.26557308435440063, -0.41571348905563354, -0.5350939631462097, -0.25232449173927307, 0.4258838891983032, -0.2560201585292816, -0.162279...
hide_busy_icon(); }); } ``` However, if multiple asynchronous processes are running on the page, using on/off methods wouldn't work. The first process to finish switches off the icon even though there are additional processes running. So, **how do you handle displaying an indicator, on a web page, that is on when...
[ 0.4425794780254364, -0.005575457587838173, 0.35897594690322876, -0.18018220365047455, 0.048940520733594894, -0.0581962876021862, 0.34070083498954773, 0.16367825865745544, -0.3908810019493103, -0.5303633809089661, -0.01625289022922516, 0.5771918892860413, -0.5201584100723267, 0.101040557026...
a better/simpler way that I'm not seeing. Thanks for your ideas and suggestions! Edit: After working with the solution in the marked answer for a while, I'm happy to say it works very well. The only issue I've run into are cases where my own scripts call functions of scripts I don't control. Unless those functions al...
[ 0.3440375328063965, -0.10761187225580215, 0.07607149332761765, 0.2586212754249573, -0.0479702390730381, 0.1034296527504921, 0.43112048506736755, -0.08757401257753372, -0.1668557971715927, -0.8724550604820251, 0.2954283654689789, 0.369689404964447, -0.07991168648004532, -0.09465016424655914...
the markers are still being loaded. I'm not sure of a good way to handle this. If you want the same busy indicator for all actions, then use a counter. Instead of "show\_busy\_icon()", do a "increment\_busy\_count()", which calls "show\_busy\_icon()" if busy count goes from 0 to 1. Instead of "hide\_busy\_icon()", do...
[ 0.4153938591480255, -0.1984078288078308, 0.4621427059173584, -0.02071060985326767, 0.007132323458790779, 0.20824021100997925, 0.3259664475917816, -0.1769666075706482, -0.17682614922523499, -0.5824016332626343, 0.1350453495979309, 0.3474361300468445, -0.3325612545013428, -0.0896626561880111...
I've recently gotten charged with designing and implementing a source code version control, testing, and deployment scheme at the company I work. Personally I've worked with Subversion for a few years on my own projects. But I've never dealt with it at this big scale. Hence I thought I'd ask here if anyone has any com...
[ 0.5632973909378052, -0.03436673805117607, -0.03743591904640198, 0.19553881883621216, -0.017496004700660706, -0.055746011435985565, 0.09410072863101959, 0.315858393907547, -0.3192315399646759, -0.33884334564208984, -0.21943318843841553, 0.409346342086792, 0.19550968706607819, 0.070644594728...
is deemed ready for production, it's merged into two branches, "stable", and "production". * The stable branch is a stepping stone to the production branch. If bugs are found once the new code goes live on the production server, the stable branch is used for fixing the bugs, and also testing the bug fixes. * Once fixed...
[ 0.5594470500946045, -0.09495996683835983, 0.2585628032684326, 0.2855282425880432, 0.5629851222038269, 0.04802495613694191, -0.01774403639137745, 0.07996014505624771, -0.34038057923316956, -0.43688270449638367, -0.43690189719200134, 0.3982055187225342, 0.16521291434764862, 0.354019790887832...
release, as bug fixes aren't dependent on trunk. Also, there's always a "read-only" branch where the latest stable and most-bug free code is available, even in the middle of heavy bug fixing. If anybody has any suggestions, comments, or otherwise, I'd greatly appreciate it :) If you want the same busy indicator for al...
[ 0.01750977896153927, -0.1141771599650383, 0.4450269937515259, 0.03658801317214966, -0.011832145974040031, -0.27900293469429016, 0.30681130290031433, 0.1957884579896927, -0.6196738481521606, -0.4180047810077667, -0.5774355530738831, 0.6086094379425049, -0.551988959312439, 0.0637322291731834...
i have the following jquery code. basically i will have several overlapped divs and a list of links on the right of all those overlapped divs. when hovering over a link, the link's assigned div will fade in. I have the following code and it works (it uses the default windows' sample pictures), but if someone can thi...
[ 0.2928711473941803, -0.06546632945537567, 0.7275311350822449, -0.2534434199333191, -0.15532846748828888, -0.12129314243793488, 0.1969354897737503, -0.3076920211315155, -0.012452071532607079, -0.738189697265625, 0.16555055975914001, 0.5208088159561157, -0.3481520414352417, -0.20263826847076...
$(".contentdiv").addClass("inactive"); $("#divsunset").removeClass("inactive"); $(".inactive").fadeOut(500); $("#divsunset").fadeIn(500); }); $("#trigger2").mouseover(function() { $(".contentdiv").addClass("inactive"); $("#divwinter").rem...
[ 0.04089672118425369, -0.6282936334609985, 0.45052680373191833, -0.3611520826816559, 0.4989871382713318, 0.03231821954250336, 0.412463515996933, -0.08899114280939102, 0.10000907629728317, -0.3545890152454376, -0.5793246626853943, 0.8248810768127441, -0.5540790557861328, 0.17746348679065704,...
$(".inactive").fadeOut(500); $("#divwinter").fadeIn(500); }); $("#trigger3").mouseover(function() { $(".contentdiv").addClass("inactive"); $("#divbh").removeClass("inactive"); $(".inactive").fadeOut(500); $("#divbh").fadeIn(500); ...
[ 0.16988492012023926, -0.47981640696525574, 0.644687831401825, -0.39797231554985046, 0.5032588243484497, 0.034906160086393356, 0.4065733551979065, -0.05460057407617569, 0.12797077000141144, -0.4294832646846771, -0.5932539105415344, 0.6812900900840759, -0.6017048358917236, 0.2937949597835541...
$("#trigger4").mouseover(function() { $(".contentdiv").addClass("inactive"); $("#divwl").removeClass("inactive"); $(".inactive").fadeOut(500); $("#divwl").fadeIn(500); }); }); </script> <style> #divsunset {
[ 0.24725915491580963, -0.5836911201477051, 0.5556784868240356, -0.32663536071777344, 0.4688330292701721, 0.06119074672460556, 0.4087028205394745, 0.0038277057465165854, 0.16415585577487946, -0.49759477376937866, -0.49949216842651367, 0.8365455865859985, -0.3754628002643585, 0.17534627020359...
position: absolute; top: 5px; left: 5px; } #divwinter { position: absolute; top: 5px; left: 5px; }
[ -0.61988365650177, -0.1965501308441162, 0.5065670013427734, -0.04685321822762489, 0.2575037479400635, -0.2866338789463043, 0.24858702719211578, -0.11683426797389984, 0.30219948291778564, -0.2311669886112213, -0.47921428084373474, 0.9410781860351562, -0.019240083172917366, -0.06652458012104...
#divbh { position: absolute; top: 5px; left: 5px; } #divwl { position: absolute; top: 5px; left:
[ -0.20364047586917877, -0.2521395981311798, 0.645167350769043, -0.2078065276145935, 0.16946014761924744, -0.14982011914253235, 0.11064237356185913, -0.14935648441314697, 0.26048916578292847, -0.23038598895072937, -0.4573729336261749, 0.8413317799568176, -0.14035624265670776, -0.088065698742...
5px; } #links { position: absolute; top: 800px; left: 700px; } .inactive { } </style> </head> <body> <div id="divsunset" class="contentdiv"> <img
[ -0.04232017695903778, -0.42746496200561523, 0.7734492421150208, 0.03987639769911766, -0.025984296575188637, -0.22746005654335022, 0.23107542097568512, 0.035111021250486374, -0.2517581582069397, -0.7362707853317261, -0.4644373059272766, 0.3181207776069641, -0.14421993494033813, 0.2180467993...
src="Sunset.jpg" /> </div> <div id="divwinter" class="contentdiv"> <img src="Winter.jpg" /> </div> <div id="divbh" class="contentdiv"> <img src="bh.jpg" /> </div> <div id="divwl" class="contentdiv"> <img src="wl.jpg" /> </div> <br /> <div id="links"> <a href="#" id="trigger1">Show Sunset</a> <a ...
[ 0.5332189202308655, -0.004589828196913004, 0.48129594326019287, -0.028562676161527634, -0.1860664337873459, -0.27178871631622314, 0.49079081416130066, -0.44322001934051514, -0.288571834564209, -0.3726142644882202, -0.10557015985250473, 0.21273966133594513, 0.1829310953617096, -0.1730973869...
for me to alter my markup, just the jQuery code. Again, thanks a lot. Its amazing how quickly I got the answer. Keep up the great work. The first thing you can do, to make it cleaner is replace all those similar calls with something more generic. (note: assume all of this is inside of `document.ready()`) ``` $('#tr...
[ 0.18526822328567505, -0.23494172096252441, 0.5017547607421875, -0.23773691058158875, -0.005969877354800701, -0.0675705149769783, 0.3767589330673218, -0.37441784143447876, -0.0440380722284317, -0.5202398300170898, -0.1816750317811966, 0.6614728569984436, -0.39256659150123596, 0.010409168899...
some data on the element, in this case, the selector used to update the appropriate element. Also, just for a cleaner visual look, you can use the following in the place of `$(document).ready()`, if you prefer it. It's the exact same thing, just a different syntax. ``` $(function() { //DOM ready }; ```
[ 0.20259083807468414, -0.14307136833667755, 0.17975585162639618, -0.11428684741258621, 0.3059326112270355, -0.276931494474411, -0.09647554904222488, -0.32832562923431396, -0.07271184772253036, -0.4690451920032501, -0.4935500919818878, 0.8939741253852844, -0.32561415433883667, -0.03807331621...
How can I determine when the control key is held down during button click in a C# Windows program? I want one action to take place for Ctrl/Click and a different one for Click. And a little bit more: ``` private void button1_Click ( object sender, EventArgs e ) { if( (ModifierKeys & Keys.Control) == Ke...
[ -0.13200195133686066, -0.28419607877731323, 0.5508958101272583, -0.003216338809579611, 0.4782530665397644, -0.16051042079925537, 0.2167702168226242, -0.35224980115890503, -0.12508568167686462, -0.36762553453445435, -0.2450113445520401, 0.847560465335846, -0.3261552155017853, 0.044478539377...
ClickMethod(); } } private void ControlClickMethod() { MessageBox.Show( "Control is pressed" ); } private void ClickMethod() { MessageBox.Show ( "Control is not pressed" ); } ```
[ -0.0825328677892685, -0.23858945071697235, 0.3744160830974579, -0.25343918800354004, 0.33142614364624023, -0.029079224914312363, 0.1575649529695511, -0.06577242910861969, -0.02497919648885727, -0.32705116271972656, -0.2859562039375305, 0.7610403895378113, -0.5721515417098999, 0.18298220634...
How do I implement this method (see below)? I'm new to Objective-C and I'm just not getting it right. From: <http://lists.apple.com/archives/Webkitsdk-dev/2008/Apr/msg00027.html> > By default databases have a quota of 0; this quota must be increased before any database will be stored on disk. > > > **WebKit clients...
[ 0.25302740931510925, -0.05498082563281059, 0.5167927742004395, 0.011625134386122227, -0.1365327090024948, -0.2228657454252243, 0.20517610013484955, -0.4475124776363373, -0.3061019480228424, -0.6496713757514954, 0.25856009125709534, 0.36883506178855896, -0.3725583553314209, 0.36913406848907...
so that it is part of the official API. John In whatever class you've defined as the delegate for your WebView you need to implement that method, something like this: ``` - (void)webView:(WebView *)sender frame:(WebFrame *)frame exceededDatabaseQuotaForSecurityOrigin:(WebSecurityOrigin *)origin database:(NSString *)d...
[ 0.17260582745075226, -0.2092251479625702, 0.43526557087898254, 0.18794704973697662, 0.11163220554590225, 0.10926526039838791, 0.05746394395828247, -0.19771598279476166, -0.5207073092460632, -0.6936134099960327, 0.05487667769193649, 0.27495062351226807, -0.21928565204143524, 0.4088887274265...
I'm new to the forum and very new to silverlight. Myself and my coworker are working on a custom application. We are building a menu system that will only display buttons if that useris in an assigned role. A new property was created to allow roles to be defined, and for testing purposes we are simply trying to assign ...
[ 0.563556969165802, -0.14427395164966583, 0.6131159663200378, -0.25877052545547485, -0.07863803207874298, 0.07925458252429962, -0.00031040882458910346, -0.026111280545592308, -0.2748722434043884, -0.8001471161842346, 0.18418332934379578, 0.5261321067810059, -0.21205942332744598, 0.072836630...
x:Key="VerticalButtonsDS" d:IsDataSource="True"> <MenuButton:VerticalButton AllowedRoles="test, test2"> <TextBlock Text="{Binding AllowedRoles}"></TextBlock> </MenuButton:VerticalButton> </MenuButton:VerticalButtonCollection> Code for the allowed roles property Public Shared ReadOnly AllowedRolesProperty As Depe...
[ -0.11189551651477814, -0.05932917818427086, 0.6526511311531067, 0.10295795649290085, 0.102594293653965, 0.15131878852844238, 0.38509851694107056, -0.4529171288013458, 0.06084395572543144, -0.5916451215744019, -0.39127248525619507, 0.4654467701911926, -0.3053508400917053, 0.1995211839675903...
in easy to understand pieces. Thanks The question is really, do you want to *enforce* rules about how your classes should be used? Why? If a class doesn't have a virtual destructor, anyone using the class knows that it is not intended to be derived from, and what limitations apply if you try it anyway. Isn't that good...
[ 0.43613919615745544, 0.056219883263111115, -0.4698021113872528, 0.7682931423187256, -0.21651248633861542, -0.2733638882637024, 0.3108387291431427, -0.05090488865971565, -0.2589029371738434, -0.29956477880477905, 0.0050614201463758945, 0.5654472708702087, -0.14021435379981995, 0.04225489124...
enough to use your code correctly.
[ 0.5471526384353638, 0.3008935749530792, -0.12495509535074234, 0.10858980566263199, 0.005614860914647579, -0.06217895820736885, 0.20577259361743927, -0.1330609768629074, 0.06097843125462532, -0.35127031803131104, 0.04279192537069321, 0.362783819437027, 0.16352832317352295, -0.28165167570114...
In C#, I'm trying to build an extension method for StringBuilder called AppendCollection() that would let me do this: ``` var sb1 = new StringBuilder(); var sb2 = new StringBuilder(); var people = new List<Person>() { ...init people here... }; var orders = new List<Orders>() { ...init orders here... }; sb1.AppendColl...
[ -0.06630291789770126, -0.21520359814167023, 0.5911877155303955, -0.353031188249588, 0.02859661728143692, 0.24007119238376617, 0.16092926263809204, -0.4885982871055603, -0.3858112692832947, -0.26902902126312256, -0.24400681257247925, 0.5554012656211853, -0.6912190914154053, -0.0045999069698...
void AppendCollection<T>(this StringBuilder sb, IEnumerable<T> collection, Func<T, string> method) { foreach(T x in collection) sb.AppendLine(method(x)); } ```
[ 0.18991002440452576, -0.013542713597416878, 0.602564811706543, -0.3363071084022522, -0.012235792353749275, 0.23729157447814941, 0.30413493514060974, -0.6532070636749268, 0.025123393163084984, -0.3104861378669739, -0.2930085062980652, 0.43180251121520996, -0.7418913245201111, 0.200670048594...
I'm trying to search multiple attributes in XML : ``` <APIS> <API Key="00001"> <field Username="username1" UserPassword="password1" FileName="Filename1.xml"/> <field Username="username2" UserPassword="password2" FileName="Filename2.xml"/> <field Username="username3" UserPassword="password3" FileName="Fil...
[ 0.26112642884254456, 0.18528643250465393, 0.2525126039981842, -0.056618399918079376, -0.08587779849767685, -0.014669346623122692, 0.19612102210521698, -0.5424183011054993, -0.12628799676895142, -0.7185012698173523, 0.2622346878051758, 0.642799437046051, -0.13738912343978882, -0.06171555444...
what you want in the snippet of XML you provided, you would need the following XPath expression: ``` /APIS/API/field[@Username='username1' and @UserPassword='password1'] ``` This would either return something, if user name and password match - or not if they don't. Of couse the XPath expression is just a string - y...
[ 0.4138563871383667, 0.013278582133352757, 0.3922201991081238, 0.16715432703495026, -0.09111782908439636, -0.2721136808395386, -0.07888714969158173, 0.07691488415002823, 0.0838935598731041, -0.6285613179206848, -0.15440517663955688, 0.5667290687561035, -0.3327220678329468, -0.08762007951736...
new XmlDocument(); xmldoc.Load("your XML string or file"); string xpath = "/APIS/API/field[@Username='{0}' and @UserPassword='{1}']"; string username = "username1"; string password = "password1"; xpath = String.Format(xpath, username, password); XmlNode userNode = xmldoc.SelectSingleNode(xpath); if (userNode != null...
[ 0.14747320115566254, 0.030688665807247162, 0.5869215726852417, 0.11060288548469543, -0.01777452416718006, -0.18327847123146057, 0.12042909115552902, -0.27189376950263977, -0.10446096211671829, -0.550696849822998, -0.3850212097167969, 0.5932738184928894, -0.2298969179391861, 0.1260537058115...
I am calling an executable in C#. When the executable runs, it writes out to the console so the C# code is getting the console output and writing it to a text file. When the crash happens a couple of things occur. 1) The output of the text file is not completely written out. 2) The executable process seems to run comp...
[ 0.027796883136034012, 0.11449515074491501, 0.09907734394073486, -0.03987419232726097, -0.061401452869176865, -0.5054442286491394, 0.35275691747665405, 0.20592688024044037, -0.1910007894039154, -0.3687896430492401, -0.05791091546416283, 0.8200331330299377, -0.39704474806785583, 0.1669276952...
has encountered a problem and needs to close. We are sorry for the inconvenience." Then it has an OK button. When you click OK, there is a dialog that I have setup that asks if I want to start the manager again. * The manager application that is calling the executable is single threaded. The executable may run multi-t...
[ -0.055951956659555435, 0.04169195890426636, 0.5310942530632019, -0.20529767870903015, 0.13646109402179718, -0.14264999330043793, 0.4743056297302246, 0.06463072448968887, -0.22348733246326447, -0.6115076541900635, -0.309992253780365, 0.6480643153190613, -0.25603339076042175, 0.3148306608200...
process.StartInfo.RedirectStandardError = true; FileInfo ofi = new FileInfo(outputPath); FileStream ofs = ofi.OpenWrite(); StreamWriter sw = new StreamWriter(ofs); WriteToTextWriterEventHandler wtsweh = new WriteToTextWriterEventHandler(sw); DataReceivedEventHandler handler = wtsweh.HandleDataR...
[ -0.12254805862903595, -0.21334314346313477, 0.5986455678939819, -0.32843121886253357, 0.30491140484809875, 0.15932579338550568, 0.41584309935569763, -0.3302752375602722, -0.14195892214775085, -0.6518616676330566, -0.15258903801441193, 0.4589737355709076, -0.13524706661701202, 0.39049279689...
int processExitCode = process.ExitCode; process.Close(); sw.Close(); // private class WriteToTextWriterEventHandler { private TextWriter tw; public WriteToTextWriterEventHandler(TextWriter tw) { this.tw = tw; } public void HandleDataReceived(object sendingProc...
[ 0.12345089018344879, -0.15156352519989014, 0.6209773421287537, -0.3651120662689209, 0.18367068469524384, 0.37492895126342773, 0.6007298827171326, -0.49411773681640625, 0.2702167332172394, -0.5085641741752625, -0.09361676871776581, 0.3836858570575714, -0.169981449842453, 0.4436558783054352,...
// Collect the sort command output. if (!String.IsNullOrEmpty(outLine.Data)) { tw.Write(Environment.NewLine + outLine.Data); } } } ``` Try adding a flush after the tw.Write. That should cause the complete output up to the point of failure to be produced, which may in...
[ -0.004662653431296349, -0.25961077213287354, 0.3717482388019562, -0.3143872022628784, 0.3749310076236725, -0.2696833312511444, 0.34864988923072815, -0.126988485455513, -0.22475586831569672, -0.6708882451057434, -0.2902875244617462, 0.4331556260585785, -0.46123358607292175, -0.0725788101553...
A quick search for currency regex brings up [a lot of results](https://regexlib.com/Search.aspx?k=currency&c=-1&m=-1&ps=20). The problem I have in choosing one is that regex is difficult to verify without testing all the edge cases. Does anyone have a regex for U.S. currency that has been *thoroughly tested*? My only...
[ 0.1566210836172104, 0.05705259367823601, 0.32041144371032715, 0.3154272437095642, 0.11268185079097748, 0.07143161445856094, -0.10075170546770096, -0.20932483673095703, -0.2853245735168457, -0.36396488547325134, 0.1141916960477829, 0.2369527369737625, -0.13837307691574097, 0.036850493401288...
Optional white space. sign An optional sign. digits A sequence of digits ranging from 0 to 9. , A culture-specific thousands separator symbol. . A culture-specific decimal point symbol. fractional-digits A sequence of digits ranging
[ 0.29759910702705383, -0.008748590014874935, 0.1856939047574997, 0.23779164254665375, 0.05027175694704056, 0.3698485493659973, -0.1096482202410698, -0.008290279656648636, -0.07168073207139969, -0.29655390977859497, -0.3208216428756714, -0.07135354727506638, 0.09269533306360245, -0.128486678...
from 0 to 9. ``` here's some stuff from the makers of Regex Buddy. These came from the library so i'm confident they have been thoroughly tested. Number: Currency amount (cents mandatory) Optional thousands separators; mandatory two-digit fraction ``` Match; JGsoft: ^[+-]?[0-9]{1,3}(?:,?[0-9]{3})*\.[0-9]{2}$ ``` ...
[ -0.1404782235622406, 0.06089473515748978, 0.6751006245613098, 0.04888669773936272, 0.04612597078084946, 0.20297589898109436, 0.03863535076379776, -0.25714221596717834, -0.14193794131278992, -0.2824822962284088, -0.42612698674201965, 0.5232574939727783, -0.04877031594514847, -0.189327031373...
I am begging to use jquery. I have the following call that works in IE7 but not FF 3.0.4. But if I change the `null` to `{}` it works fine. Is null not valid for this case and I just got lucky that it worked in IE or is this an error with jquery. ``` $.post("complexitybar.ashx?a=init&vc=" + validationCode, null, loadI...
[ 0.13740907609462738, 0.04850761964917183, 0.44177669286727905, 0.10580107569694519, -0.46500349044799805, 0.46537166833877563, 0.5274694561958313, 0.13986976444721222, 0.10794557631015778, -0.804219663143158, -0.21178476512432098, 0.5957087874412537, -0.38428032398223877, 0.373750329017639...
I have an application that is using Windows Authentication and a SqlRoleProvider for user authentication and role management respectively. It is working fine with my test users that I have added to the database as defaults. The application requires users to login (using Windows credentials) and then be able to use this...
[ 0.059670958667993546, 0.16916751861572266, 0.1622275412082672, 0.0965537279844284, 0.2273128628730774, -0.006615870166569948, 0.08944515138864517, -0.03710165619850159, -0.00038127254811115563, -0.4793721139431, 0.05707673355937004, 0.6733609437942505, -0.11855058372020721, 0.0665821731090...
I know that I would need to call Roles.IsUserInRole() and then add them if they are not; however, where would I do this? I'm having trouble locating which event in the Global.asax to use. Thanks **EDIT:** To expand the scenario a bit, I'm not using a full membership provider system due to requirements on writing new...
[ 0.10093192756175995, -0.06364956498146057, 0.306257039308548, 0.007454914506524801, -0.1449803113937378, -0.26717546582221985, 0.5629303455352783, 0.16048379242420197, -0.3059992790222168, -0.8380367159843445, 0.18383872509002686, 0.4700635075569153, -0.12884020805358887, 0.125004917383193...
is working fine for users that I have setup roles via hard coded tests. I am just looking for a way to add new users (who would be authenticated by IIS) to be immediately added to a default "Users" role. I think I found it; however, am now examining ways to make it not fire upon every request for performance reasons. I...
[ -0.2320248931646347, -0.04111826419830322, 0.4325803816318512, -0.04270447790622711, 0.25535061955451965, -0.18409398198127747, 0.4247104823589325, 0.09057509899139404, 0.046354375779628754, -0.8890512585639954, -0.007169389631599188, 0.6437609791755676, -0.3032126724720001, 0.027977753430...
if (!Roles.IsUserInRole(e.Identity.Name, "Users")) { Roles.AddUsersToRole(new string[] { e.Identity.Name }, "Users"); } } ``` I'm concerned since this code fires with every page request. Is there a better way to limit when this occurs? Should I just add this code to the landing page's page\_load event...
[ -0.1650952398777008, -0.09971444308757782, 0.6531566381454468, -0.2214670330286026, 0.21438203752040863, -0.09299860894680023, 0.3941716253757477, -0.006138867698609829, -0.1476779580116272, -0.8046822547912598, -0.13505692780017853, 0.5221952199935913, -0.5249683260917664, -0.018476732075...
Is there an easy way to figure out, preferably from the command line, what profiles are available for a particular project. I've got a big, multi-module project I'm trying to figure out. [leeand00](https://stackoverflow.com/questions/354081/available-maven-profiles#354360) set me on the correct path. What I was looking...
[ 0.01720586232841015, 0.012909924611449242, 0.2587021291255951, 0.08181028813123703, 0.09815162420272827, -0.20072954893112183, 0.29273927211761475, -0.0645134374499321, -0.2703729569911957, -0.44819411635398865, -0.13423536717891693, 0.4259943962097168, -0.0006079823942855, -0.289616703987...
How do I create the default for a generic in VB? in C# I can call: ``` T variable = default(T); ``` 1. How do I do this in VB? 2. If this just returns null (C#) or nothing (vb) then what happens to value types? 3. Is there a way to specify for a custom type what the default value is? For instance what if I want the ...
[ 0.16168418526649475, -0.3346942067146301, 0.31506067514419556, -0.1924567073583603, -0.19872547686100006, -0.21253602206707, 0.25669020414352417, -0.13463249802589417, -0.09295712411403656, -0.44633543491363525, -0.13322830200195312, 0.78541100025177, -0.6219663619995117, 0.096722491085529...
you specify the `Structure` constraint for the generic type (for reference types, `New T()` in VB does something else than `default(T)` in C#). Question 2: ----------- For value types all members of the struct are “nulled” out, i.e. all reference type members are set to `null` (`Nothing`) and all value types are in t...
[ -0.1098986491560936, -0.09957903623580933, 0.18523910641670227, -0.1023387759923935, -0.05617515742778778, -0.3825201690196991, 0.23162519931793213, -0.1000901386141777, -0.4532553553581238, -0.17611518502235413, -0.38121315836906433, 0.4133276641368866, -0.4253396689891815, 0.033856160938...
this is.
[ 0.11802487820386887, 0.07392020523548126, 0.3265126049518585, 0.051801640540361404, 0.2572478950023651, -0.2208956480026245, 0.0820198729634285, 0.027769485488533974, 0.043447960168123245, -0.5665732622146606, -0.0374792218208313, 0.025636443868279457, 0.024386174976825714, 0.1865433007478...
In its enthusiasm to [stemm tokens into lexemes](http://www.postgresql.org/docs/current/interactive/textsearch-intro.html), PostgreSQL Full Text Search engine also reduce proper nouns. For instance: ``` essais=> select to_tsquery('english', 'bortzmeyer'); to_tsquery ------------ 'bortzmey' essais=> select to_tsquery...
[ -0.524981677532196, -0.018155615776777267, 0.360452800989151, 0.30780959129333496, -0.6035767197608948, 0.09781589359045029, 0.3768519163131714, 0.06858634948730469, -0.0402204655110836, -0.787204921245575, -0.39489105343818665, 0.4859348237514496, -0.055928267538547516, -0.272835880517959...
'ball' would both produce 'kjebnkkekaa' the algorithm is correct because it still sees 'balling' and 'ball' as generally concerning the same thing. Also beware that no stemming algorithm is absolutely perfect, for more info [look up the Porter Stemming algorithm](http://tartarus.org/~martin/PorterStemmer/)
[ -0.2369859665632248, -0.19115832448005676, 0.14273406565189362, -0.09683747589588165, -0.6172320246696472, -0.1355132758617401, 0.6110811233520508, -0.18210658431053162, -0.31012049317359924, -0.27424612641334534, -0.08513722568750381, 0.20299914479255676, -0.186285600066185, 0.03856329247...
In asp.net is there any benefit to including or not including an id property? Assume for this question that there is no programtic reason why we need an ID. (We are not manipulating the control in code behind, nor on the client). My personal preference is only to include an Id property when I have a reason to manipula...
[ 0.3480474650859833, -0.2333201766014099, 0.16012276709079742, 0.2159699946641922, 0.047411125153303146, -0.24519896507263184, 0.06856827437877655, -0.1510876566171646, -0.41642916202545166, -0.6238356828689575, -0.19344764947891235, 0.38035714626312256, -0.32710325717926025, 0.013010727241...
impact on bandwidth 4. Removing them keeps your intellisense cleaner (just added this one) Having ID properties are useful for testing your page with a tool like Quick Test Pro, etc. They're also useful for blind users who browse with a screen reading tool. There's a good Hanselminutes podcast where this is discussed:...
[ 0.34552261233329773, 0.01619873382151127, 0.522374153137207, 0.30828869342803955, -0.5455029606819153, -0.11856922507286072, 0.1522672325372696, -0.2056906670331955, -0.4105586111545563, -0.7843310236930847, 0.3349398076534271, 0.5353701114654541, -0.15873020887374878, -0.11633650213479996...
Unlike many of the ASP.NET documentation and examples, I'm doing a gridview list on one page, and it links to a 2nd page to do the edit/update view, sending the ID for the record in the GET string. On my edit/update view, I'm using an ASP:DetailsView for viewing, editing and inserting records. All of this works fine. ...
[ 0.45315930247306824, -0.06333860009908676, 0.18071338534355164, 0.27409547567367554, 0.1125524640083313, -0.25196656584739685, -0.12938536703586578, -0.15940669178962708, -0.36489200592041016, -0.8213480114936829, 0.13677674531936646, 0.8812645673751831, -0.025440623983740807, 0.0275761019...
external page. Am I missing something? I could have misunderstood your question but.... I don't believe you can 'link to the insert view', but what you can do is programmatically change the mode of the DetailsView once the page has loaded. Remember to check that the passed in ID has a value first. For example: ```...
[ 0.12729157507419586, -0.10406477749347687, 0.6931567192077637, 0.07461485266685486, -0.07188811898231506, -0.29395702481269836, 0.19359847903251648, -0.003226297674700618, -0.23506633937358856, -0.6930558085441589, -0.04437791183590889, 0.7187503576278687, -0.24990254640579224, 0.146266981...
I'm finding that hitting the "Refresh" button on my browser will temporarily screw up the ViewState for controls inside an UpdatePanel. Here's my situation : I made a custom WebControl that stores values in the ViewState. I put this control inside an UpdatePanel. When I hit the "refresh" button on my browser, it will ...
[ 0.15373319387435913, 0.02977444976568222, 0.6081163287162781, 0.23981790244579315, 0.17506267130374908, -0.08828224986791611, 0.6056856513023376, 0.1912030577659607, -0.2471936047077179, -0.6994873881340027, -0.00839740689843893, 0.823220431804657, -0.14827081561088562, 0.20395664870738983...
empty and IsPostBack is set to false. However, when I click on one of the postback controls within my WebControl, the WebControl will reload with the same values that were in ViewState before I hit "refresh." Strangely, this only happens when I'm using AJAX. When my control is outside of an UpdatePanel, Firefox gives...
[ -0.021708400920033455, 0.07201233506202698, 0.67934650182724, -0.07835116237401962, -0.17757190763950348, -0.23946578800678253, 0.46203580498695374, 0.09822194278240204, -0.17281855642795563, -0.6635629534721375, 0.04834580793976784, 0.6905207633972168, -0.28707078099250793, 0.024041386321...
for this project. So this is what I would like to do - I want to make the "refresh" behavior consistent. It would be best if hitting "refresh" didn't affect the ViewState at all. But if it has to wipe out the ViewState, that's fine, as long as the ViewState STAYS wiped out. None of this stuff with values disappearing ...
[ 0.2896662950515747, 0.2451411634683609, 0.3256206810474396, 0.016948053613305092, 0.0011375013273209333, -0.11058540642261505, 0.4174601137638092, -0.2235885113477707, -0.009487105533480644, -0.6564685702323914, -0.02589510940015316, 0.623726487159729, -0.27537843585014343, -0.094599947333...
_clickCount; bool _mustUpdate; protected override void LoadViewState(object savedState) { base.LoadViewState(savedState); _clickCount = ((int)ViewState["clickCount"]); _mustUpdate = ((bool)ViewState["mustUpdate"]); } protected override void ...
[ -0.12930062413215637, -0.23823688924312592, 0.6501438617706299, -0.4478960633277893, 0.33862707018852234, -0.028304457664489746, 0.5654052495956421, -0.22863933444023132, -0.06507229059934616, -0.40353327989578247, -0.6221649050712585, 0.7392047643661499, -0.4158036708831787, 0.18573038280...
base.OnLoad(e); Controls.Clear(); ControlCreator(); } private void ControlCreator() { Label tempLabel = new Label(); LiteralControl tempLiteral = new LiteralControl("<br/><br/>");
[ 0.08958162367343903, -0.20232373476028442, 0.29306459426879883, -0.19585902988910675, 0.21036522090435028, -0.08310496807098389, 0.3305298686027527, -0.35800424218177795, 0.1087699756026268, -0.2967941164970398, -0.4351097643375397, 0.6006409525871277, -0.466990202665329, 0.083510369062423...
LinkButton tempLink = new LinkButton(); tempLink.ID = "testLink"; tempLink.Text = "Click me!"; tempLink.Click += new EventHandler(tempLink_Click); tempLabel.ID = "testLabel"; tempLabel.Text = _clickCount.ToString(); Controls.Add(tempLabel);
[ 0.03072826936841011, -0.3446693420410156, 0.40828460454940796, 0.026196995750069618, -0.07503560185432434, 0.036319293081760406, 0.26957476139068604, -0.2910865545272827, -0.21404777467250824, -0.4151747226715088, -0.400258868932724, 0.32117921113967896, -0.5652745962142944, 0.077498167753...
Controls.Add(tempLiteral); Controls.Add(tempLink); } void tempLink_Click(object sender, EventArgs e) { _clickCount++; _mustUpdate = true; } protected override void OnPreRender(EventArgs e) {
[ -0.13850587606430054, -0.35049182176589966, 0.5639457106590271, 0.040057223290205, 0.2787807881832123, -0.07072066515684128, 0.3822896182537079, -0.35967040061950684, 0.024057436734437943, -0.49051281809806824, -0.33997005224227905, 0.662938117980957, -0.4127595126628876, 0.078926280140876...
base.OnPreRender(e); if (_mustUpdate) { Controls.Clear(); ControlCreator(); _mustUpdate = false; }
[ 0.14614036679267883, -0.3467932939529419, 0.415791779756546, -0.22385989129543304, 0.5515214800834656, -0.1489391028881073, 0.3856671452522278, -0.33831754326820374, 0.1376936435699463, -0.1988486498594284, -0.43578487634658813, 0.4108870327472687, -0.4628463387489319, 0.13455377519130707,...
} protected override object SaveViewState() { ViewState["clickCount"] = _clickCount; ViewState["mustUpdate"] = _mustUpdate; return base.SaveViewState(); } } } ``` I just re-read your question and realised I missed something... **You are hitting the *b...
[ 0.14238978922367096, -0.10900428891181946, 0.5940240025520325, -0.14995959401130676, 0.4137147068977356, -0.45468053221702576, 0.6742261052131653, -0.20252235233783722, -0.08215468376874924, -0.4515610635280609, -0.4169388711452484, 0.7421252131462097, -0.305510550737381, 0.067799799144268...
hit the refresh button on the browser? It refreshes the current page. If there was a postback, it will resend the post data. The AJAX callback may update the ViewState as far as the page is concerned but hitting the browser refresh button will re-post the old ViewState. There is a wealth is discussion on the matter w...
[ 0.2833746671676636, -0.04802783206105232, 0.6810628771781921, 0.27792778611183167, -0.179605171084404, -0.2985842525959015, 0.3879731595516205, 0.26803839206695557, -0.33315369486808777, -0.6299681663513184, 0.060766011476516724, 0.6437976956367493, -0.15789483487606049, 0.2215121984481811...
the re-post) is to redirect back to the same page again.
[ -0.013785087503492832, -0.14789992570877075, 0.6888211369514465, 0.016825294122099876, -0.3284754455089569, 0.10195685178041458, 0.5141552686691284, 0.24311740696430206, -0.3194117844104767, -0.6127399206161499, -0.5357011556625366, -0.3653145432472229, -0.36384737491607666, 0.248762503266...
Using Firebird, I want to combine the results of two queries using UNION ALL, then sort the resulting output on a given column. ``` (select C1, C2, C3 from T1) union all (select C1, C2, C3 from T2) order by C3 ``` The parentheses came from valid syntax for other databases, and are needed to make sure the arguments ...
[ -0.11700359731912613, 0.2977486848831177, 0.13918693363666534, -0.08827271312475204, 0.2574521005153656, 0.19781850278377533, -0.18142618238925934, -0.527012825012207, -0.43692120909690857, -0.43296536803245544, -0.26952052116394043, 0.4015474319458008, -0.6224604845046997, -0.107949003577...
C2, C3 from T1 union all select C1, C2, C3 from T2 ) order by C3 ```
[ -0.2969644069671631, 0.00669025257229805, 0.27800366282463074, -0.3916266858577728, -0.11073147505521774, 0.2578231394290924, 0.11127737909555435, -0.6927566528320312, -0.4093782603740692, -0.4703178405761719, -0.5309771299362183, 0.10293637216091156, -0.20257163047790527, 0.31033080816268...
So regular expressions seem to match on the longest possible match. For instance: ``` public static void main(String[] args) { String s = "ClarkRalphKentGuyGreenGardnerClarkSupermanKent"; Pattern p = Pattern.compile("Clark.*Kent", Pattern.CASE_INSENSITIVE); Matcher myMatcher = p.matcher(s); int i = 1; ...
[ 0.027331845834851265, -0.08638682216405869, 0.379863977432251, -0.22006821632385254, -0.3024693429470062, 0.28992751240730286, 0.38536879420280457, -0.2707258462905884, -0.15329910814762115, -0.6723859906196594, -0.15954652428627014, 0.25273987650871277, -0.6357581615447998, -0.13773402571...
want the string from Clark to Kent that doesn't contain any occurrences of Kent. This string: ClarkRalphKentGuyGreenGardnerBruceBatmanKent should generate output 1. ClarkRalphKent greedy vs reluctant is your friend here. try: `Clark.+?Kent`
[ -0.3003428876399994, -0.5222598910331726, 0.5183409452438354, 0.21794182062149048, -0.1612219661474228, 0.35903531312942505, -0.09557119011878967, -0.15408629179000854, -0.2743198573589325, -0.3077959716320038, 0.020257962867617607, 0.39645805954933167, -0.21479642391204834, 0.005516094155...
I am trying to do some simple formatting stuff with 'sed' in linux, and i need to use a regex to trim a string after the 15th character, and append a '...' to the end. Something like this: ``` before: this is a long string that needs to be shortened after: this is a long ... ``` Can anyone please show me how i could...
[ 0.06101781129837036, 0.03518296778202057, 0.37865912914276123, -0.01099393516778946, -0.028152626007795334, -0.13855697214603424, 0.13619238138198853, -0.14230293035507202, -0.15562129020690918, -0.5622642040252686, -0.00596645986661315, 0.5366979837417603, -0.11934895813465118, -0.0061716...
that we match any character ( `.`) 15 times (`{15}`). We capture the text so matched inside parentheses. The following part (`.+$`) matches all the rest, until the end of the line. We replace this by whatever we've captured inside the parentheses (`\1`), followed by the hyperbolic ellipsis. To satisfy `sed`'s regex di...
[ -0.0801735520362854, 0.29513972997665405, 0.5901991724967957, -0.3033015727996826, 0.135493203997612, 0.14030995965003967, 0.10604352504014969, -0.16946564614772797, 0.008092141710221767, -0.3373718559741974, -0.6674484610557556, 0.45265835523605347, -0.0627015233039856, -0.120346657931804...
When you run `git branch -r` why the blazes does it list `origin/HEAD`? For example, there's a remote repo on GitHub, say, with two branches: master and awesome-feature. If I do `git clone` to grab it and then go into my new directory and list the branches, I see this: ``` $ git branch -r origin/HEAD origin/master ori...
[ 0.5923504829406738, 0.01914350502192974, 0.43017470836639404, 0.04975711554288864, -0.018504586070775986, -0.17352643609046936, 0.04423199221491814, 0.2852367162704468, -0.16420778632164001, -0.0881437286734581, -0.2526592016220093, 0.18337838351726532, -0.09483279287815094, 0.308100134134...
was they `push`ed? `HEAD`s move around... why do I care what someone's `HEAD` pointed at on another machine? I'm just getting a handle on remote tracking and such, so this is one lingering confusion. Thanks! EDIT: I was under the impression that dedicated remote repos (like GitHub where no one will ssh in and work on...
[ 0.604136049747467, -0.07723339647054672, 0.37645021080970764, -0.002869471674785018, 0.21222710609436035, -0.08416413515806198, 0.15511073172092438, 0.34845268726348877, -0.279830664396286, -0.5286691784858704, -0.039777856320142746, 0.21729932725429535, -0.1786521077156067, 0.270369172096...
that. On GitHub, [You can change this](https://github.com/blog/421-pick-your-default-branch) in the Admin settings for your GitHub repo. You can also do it from the command-line via ``` git remote set-head origin trunk ``` or delete it altogether via ``` git remote set-head origin -d ``` [Example](https://github...
[ 0.041100554168224335, -0.21705764532089233, 0.25249361991882324, 0.07588811218738556, 0.3209303915500641, -0.16762174665927887, 0.1733124554157257, 0.36474505066871643, -0.3309957981109619, -0.46743297576904297, -0.4700150787830353, 0.30800455808639526, -0.1519608497619629, 0.2002610564231...
I'm trying to set an invalid value to -1.. But I don't like magic numbers.. Anyone know where to find a set of common constants. I'm working in VS6 (ish). I'm trying to read a file from across a network, and I need a bad value for the total file size,so I know if I got valid info on it.. 0 is a valid size so I can't ...
[ 0.6191985607147217, 0.46386921405792236, -0.024090386927127838, 0.554494321346283, 0.08473625779151917, -0.11051548272371292, 0.2413189858198166, 0.0017038984224200249, -0.5581836104393005, -0.13685864210128784, 0.20199814438819885, 0.4262586832046509, -0.35243141651153564, 0.5664560794830...
:) ``` #define BAD_VALUE -1 ``` EDIT: the original question had no context. The revised question indicates you want an invalid file size and are thus looking for the win32 constants. Look at [windows.h](http://en.wikipedia.org/wiki/Windows.h) i think the constant you seek may be in [windows.h](http://en.wikipedia.org...
[ 0.20255079865455627, 0.2671835422515869, 0.13810276985168457, -0.07784317433834076, 0.029256032779812813, 0.010447992943227291, 0.24447979032993317, -0.12443330138921738, -0.18960987031459808, -0.38948482275009155, -0.20922531187534332, 0.47949570417404175, -0.5654704570770264, 0.335780709...