text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
nothing. ```
[ 0.8011807799339294, 0.5979443788528442, 0.034602969884872437, -0.08984141796827316, 0.29430535435676575, -0.4407607316970825, 0.16036264598369598, 0.35198020935058594, -0.19587618112564087, -0.21139922738075256, -0.023426413536071777, 0.511616051197052, -0.281299352645874, 0.14168442785739...
Is there an event like onLoad? just at closing the Site (onClose)? Not in the sense that I suspect you're thinking. All your code in ASP.net runs on the server which doesn't inherently "know" when the site is closed by the user. To achieve what you're after, you'd need to use Javascript to handle the window.onunload ...
[ 0.34526482224464417, -0.1472465991973877, -0.04550473764538765, -0.036979615688323975, -0.2948281168937683, -0.32364198565483093, 0.28539547324180603, 0.18208377063274384, -0.4312508702278137, -0.6936258673667908, -0.19628985226154327, 0.4568180441856384, -0.3330789804458618, 0.05158440396...
to the server-side page lifecycle. There's a pretty decent tutorial from Stephen Walther [on his blog](http://weblogs.asp.net/stephenwalther/archive/2008/03/07/asp-net-ajax-in-depth-application-events.aspx).
[ -0.2568068206310272, -0.07593518495559692, 0.06708619743585587, 0.12072854489088058, -0.1328652799129486, -0.3070943355560303, 0.4054062068462372, 0.21517333388328552, -0.35049664974212646, -0.5298203825950623, -0.2643200159072876, 0.43877869844436646, 0.15702807903289795, -0.2636235058307...
Which is the best timer approach for a C# console batch application that has to process as follows: 1. Connect to datasources 2. process batch until timeout occurs or processing complete. "Do something with datasources" 3. stop console app gracefully. related question: [How do you add a timer to a C# console applicat...
[ 0.2336849719285965, -0.015226593241095543, 0.43069687485694885, -0.15870831906795502, 0.13232310116291046, -0.0989457368850708, 0.04962481930851936, -0.5078222751617432, -0.2131243795156479, -0.4554925858974457, -0.08396005630493164, 0.6059566736221313, -0.14004093408584595, -0.08245364576...
class Program { static List<RunningProcess> runningProcesses = new List<RunningProcess>(); static void Main(string[] args) { Console.WriteLine("Starting..."); for (int i = 0; i < 100; i++) { DoSomethingOrTimeOut(30);
[ -0.004710059147328138, -0.3127826452255249, 0.5139755606651306, -0.5064457058906555, 0.3188325762748718, 0.36920085549354553, 0.23448655009269714, -0.45883557200431824, 0.11995021253824234, -0.5293757915496826, -0.2473367154598236, 0.7166430950164795, -0.41466888785362244, 0.16485863924026...
} bool isSomethingRunning = false; do { foreach (RunningProcess proc in runningProcesses) {
[ -0.08115196228027344, 0.11251166462898254, 0.20199283957481384, -0.5636848211288452, 0.3620896339416504, 0.12661154568195343, 0.7528000473976135, -0.21643361449241638, 0.0939781591296196, -0.15200026333332062, -0.05384111776947975, 0.5270383358001709, -0.3890330493450165, 0.097599171102046...
// If this process is running... if (proc.ProcessThread.ThreadState == ThreadState.Running) { isSomethingRunning = true;
[ 0.1017284095287323, -0.15380434691905975, 0.5303943157196045, -0.3690371811389923, 0.38648101687431335, 0.11551599949598312, 0.6245409250259399, -0.19551809132099152, -0.13916069269180298, -0.4588868319988251, 0.03387746959924698, 0.44610753655433655, -0.2734115421772003, 0.009552733972668...
// see if it needs to timeout... if (DateTime.Now.Subtract(proc.StartTime).TotalSeconds > proc.TimeOutInSeconds) { proc.ProcessThread.Abort();
[ -0.19212335348129272, -0.3201172649860382, 0.4496193826198578, -0.32960572838783264, 0.7497913837432861, 0.09536061435937881, 0.18053673207759857, -0.2090691775083542, -0.2937372028827667, -0.30103904008865356, -0.21952538192272186, 0.22536957263946533, 0.036245036870241165, 0.142170399427...
} } } } while (isSomethingRunning); Console.WriteLine("Done!");
[ -0.21284636855125427, -0.003072136314585805, 0.3875561058521271, -0.4593167006969452, 0.5650397539138794, -0.2697455585002899, 0.6461786031723022, -0.020688463002443314, 0.15670058131217957, -0.3799208104610443, -0.35848551988601685, 0.7779034972190857, -0.11528614163398743, 0.108774602413...
Console.ReadLine(); } static void DoSomethingOrTimeOut(int timeout) { runningProcesses.Add(new RunningProcess { StartTime = DateTime.Now, TimeOutInSeconds = timeout,
[ -0.012046849355101585, -0.2950742542743683, 0.45840054750442505, -0.19277063012123108, 0.7787739038467407, 0.1396978795528412, 0.1855889856815338, -0.21762928366661072, 0.05860403552651405, -0.7905203104019165, -0.14013521373271942, 0.6799784898757935, -0.2333562821149826, 0.38411232829093...
ProcessThread = new Thread(new ThreadStart(delegate { // do task here... })), }); runningProcesses[runningProcesses.Count - 1].ProcessThread.Start();
[ -0.10549037158489227, -0.1842787116765976, 0.5375458598136902, -0.3308231234550476, 0.3716927170753479, 0.21985968947410583, 0.3073027729988098, -0.3015729784965515, -0.6162049174308777, -0.57786625623703, -0.2763456106185913, 0.21726194024085999, -0.41643351316452026, 0.8205280303955078, ...
} } class RunningProcess { public int TimeOutInSeconds { get; set; } public DateTime StartTime { get; set; } public Thread ProcessThread { get; set; } } } ```
[ 0.16838382184505463, -0.27276167273521423, 0.34450221061706543, -0.06683322787284851, 0.47786515951156616, -0.1229521632194519, 0.21440057456493378, 0.3932758867740631, -0.20107926428318024, -0.5193156599998474, -0.2014080286026001, 0.5004868507385254, -0.362111359834671, 0.606843709945678...
Many database systems don't allow comments or descriptions of tables and fields, so how do you go about documenting the purpose of a table/field apart from the obvious of having good naming conventions? (Let's assume for now that "excellent" table and field names are not enough to document the full meaning of every ta...
[ 0.3600141108036041, 0.1724534034729004, -0.015226575545966625, 0.4223981499671936, -0.15611572563648224, -0.22275952994823456, -0.03673411160707474, 0.1446889340877533, -0.2709479033946991, -0.6613516807556152, 0.04857473447918892, 0.39666983485221863, -0.20634210109710693, 0.0349840931594...
the `.sql` files to be manually kept up-to-date as the database structure changes over time—but if you do, you can also have it under version control. Some other techniques I have seen are separate document describing database structure and relationships and manually maintained comments inside ORM code or other databa...
[ 0.4456430673599243, 0.24874532222747803, 0.16690275073051453, 0.3524559438228607, -0.028925474733114243, -0.32186129689216614, 0.29735878109931946, 0.2800939679145813, -0.21353954076766968, -0.5093568563461304, -0.09615061432123184, 0.5416480898857117, -0.265216588973999, 0.275967776775360...
great. Oddly enough, people don't seem to be using these features much. At least not on the projects I have been involved with in the past. MySQL [allows](http://dev.mysql.com/doc/refman/5.0/en/create-table.html) comments on tables and rows. PostgreSQL [does](http://www.postgresql.org/docs/7.4/interactive/sql-comment.h...
[ -0.014809682965278625, 0.12169650942087173, 0.11771537363529205, 0.23566845059394836, -0.225363627076149, -0.20062555372714996, -0.19644378125667572, 0.22515985369682312, -0.39930739998817444, -0.6252191066741943, -0.029996132478117943, 0.5456164479255676, -0.07435796409845352, 0.115915253...
Given a week number, e.g. `date -u +%W`, how do you calculate the days in that week starting from Monday? Example rfc-3339 output for week 40: ``` 2008-10-06 2008-10-07 2008-10-08 2008-10-09 2008-10-10 2008-10-11 2008-10-12 ``` **PHP** ``` $week_number = 40; $year = 2008; for($day=1; $day<=7; $day++) { echo dat...
[ -0.14712004363536835, 0.12130766361951828, 0.22567883133888245, -0.12583626806735992, -0.315353125333786, 0.2522783577442169, 0.3483428657054901, -0.2000301629304886, -0.46127429604530334, 0.10034668445587158, -0.34075871109962463, 0.3758449852466583, -0.3628276288509369, 0.363335281610488...
// Get the weekday of the given date $wkday = date('l',mktime('0','0','0', $month, $day, $year)); switch($wkday) { case 'Monday': $numDaysToMon = 0; break; case 'Tuesday': $numDaysToMon = 1; break; case 'Wednesday': $numDaysToMon = 2; break; case 'Thursday': $numDaysToMon = 3; b...
[ -0.02761075645685196, -0.3100452423095703, 0.3885270059108734, 0.03443637862801552, 0.37775513529777527, 0.3030209243297577, 0.5389946699142456, 0.2812068462371826, -0.3376163840293884, -0.4459819495677948, -0.4727388918399811, 0.22083266079425812, -0.03276081755757332, 0.2808561623096466,...
= 5; break; case 'Sunday': $numDaysToMon = 6; break; } // Timestamp of the monday for that week $monday = mktime('0','0','0', $month, $day-$numDaysToMon, $year); $seconds_in_a_day = 86400; // Get date for 7 days from Monday (inclusive) for($i=0; $i<7; $i++) { $dates[$i]...
[ 0.08745958656072617, -0.19681644439697266, 0.726219892501831, -0.37459704279899597, 0.047326236963272095, 0.2010917365550995, 0.5081847310066223, -0.010342303663492203, -0.5527836680412292, -0.22016170620918274, -0.36375680565834045, 0.4157598912715912, 0.01159985177218914, 0.4145202338695...
[1] => 2008-10-07 [2] => 2008-10-08 [3] => 2008-10-09 [4] => 2008-10-10 [5] => 2008-10-11 [6] => 2008-10-12 ) ```
[ 0.24620051681995392, 0.4327344000339508, 0.34356600046157837, 0.006325967144221067, -0.3222699761390686, -0.24093428254127502, 0.3567644953727722, -0.32868629693984985, 0.09969083219766617, -0.41497424244880676, -0.4058206379413605, 0.6562069058418274, -0.05343792960047722, 0.2151369452476...
I have a function which parses one string into two strings. In C# I would declare it like this: ``` void ParseQuery(string toParse, out string search, out string sort) { ... } ``` and I'd call it like this: ``` string searchOutput, sortOutput; ParseQuery(userInput, out searchOutput, out sortOutput); ``` The c...
[ -0.13116395473480225, 0.09941153228282928, 0.2794334292411804, -0.230472132563591, -0.01718270592391491, 0.16771884262561798, 0.17733226716518402, -0.11587484180927277, -0.20777522027492523, -0.8268941044807434, -0.057798538357019424, 0.48316043615341187, -0.5851494669914246, 0.08649237453...
error at runtime. How should I declare and call my function? C++/CLI itself doesn't support a real 'out' argument, but you can mark a reference as an out argument to make other languages see it as a real out argument. You can do this for reference types as: ``` void ReturnString([Out] String^% value) { value = "Re...
[ -0.22257450222969055, 0.27290523052215576, 0.41079965233802795, -0.38272589445114136, -0.22156068682670593, 0.3062661290168762, 0.2913137376308441, -0.3198830485343933, 0.04498189315199852, -0.21758632361888885, 0.041436415165662766, 0.7127388119697571, -0.5303057432174683, 0.1414106339216...
I've seen second one in another's code and I suppose this length comparison have been done to increase code productivity. It was used in a parser for a script language with a specific dictionary: words are 4 to 24 letters long with the average of 7-8 lettets, alphabet includes 26 latin letters plus "@","$" and "\_". ...
[ -0.02562672644853592, -0.03651230409741402, 0.1541019082069397, -0.10196710377931595, -0.41800007224082947, 0.4636002480983734, 0.3941081166267395, -0.3716052174568176, -0.011715666390955448, -0.7611014246940613, 0.20233537256717682, 0.3499749004840851, 0.08143433928489685, -0.168106868863...
first letters of comparing strings will be generally more often different, than the sizes of that strings. That makes length comparison unnecessary. I've ran some tests and that is what I've found out: While testing two random strings comparison million times, second way is much faster, so length comparison seems to b...
[ 0.08418233692646027, -0.07405925542116165, 0.23016613721847534, 0.08715008199214935, -0.44513949751853943, 0.1521436721086502, 0.09014783799648285, 0.013223751448094845, -0.2221059650182724, -0.8019700050354004, 0.22721314430236816, 0.2950378954410553, -0.2135249823331833, 0.17846018075942...
done for a reason, I suppose, and I wonder, what is this reason. UPD2: Seriously, the question is not how to do best. I'm not even using STL strings in this case anymore. There's no wonder that length comparison is unnecessary and wrong etc. The wonder is - it really tends to work slightly better in one certain test. ...
[ 0.4609053134918213, -0.13509385287761688, 0.0016317354748025537, 0.10504329949617386, -0.2276475727558136, -0.18264390528202057, 0.2545572817325592, -0.20941828191280365, -0.36993658542633057, -0.2646186649799347, 0.17544128000736237, 0.47655776143074036, 0.14938275516033173, -0.1605664342...
in not performing the string comparison part of the test.
[ -0.032668713480234146, -0.08773540705442429, -0.14821450412273407, 0.07790721207857132, 0.08426988124847412, -0.05061847344040871, 0.4451903700828552, -0.2261250615119934, -0.21271315217018127, -0.09711248427629471, -0.16227276623249054, 0.34088608622550964, -0.01743043027818203, -0.269073...
Lets assume my classes are loaded from a compressed .war file or loaded elsewhere, how can I discover all the resources in a given package? Enumerating files will not really work, since this is a war file. Most likely this will involve using the current classloader? Is there a library out there that does something li...
[ 0.32275819778442383, -0.07241600006818771, -0.2882023751735687, 0.22355177998542786, -0.18888047337532043, -0.2257690578699112, 0.2281513214111328, -0.16152380406856537, -0.3824792206287384, -0.6538357734680176, -0.07682366669178009, 0.48827749490737915, -0.11034566909074783, 0.20178103446...
I have some problems on a site with the concurrent access to a list. This list keeps a cart of items, and multiple deletes are crashing the site. **Which is the best method to sync them?** Is a lock enough? The lock option seems to be ugly because the code is spread all over the place and is pretty messy. Update: Thi...
[ 0.37137943506240845, 0.046329960227012634, 0.24528978765010834, 0.1669333130121231, -0.02011527493596077, -0.1879153996706009, 0.41981643438339233, -0.01787281036376953, -0.6737399697303772, -0.6917941570281982, 0.12533721327781677, 0.29708704352378845, -0.18875977396965027, 0.400887519121...
this in-memory list shared between requests? That sounds like a potential cause of problems even when you've got locking. Mutable shared collections should generally be avoided, IME. Note that if you *do* decide to synchronize, you'll need to do things like locking the list for the whole course of iterating over it an...
[ 0.22678425908088684, 0.0650508850812912, -0.14716126024723053, 0.47628194093704224, -0.08146151155233383, -0.1412106156349182, 0.27347779273986816, -0.06418710947036743, -0.6093845367431641, -0.46070581674575806, -0.004264799878001213, 0.3629891574382782, -0.18675453960895538, 0.4044673740...
I need to profile a java application for a customer. It's an eclipse/maven project, so I decided on using eclipse TPTP ( <http://www.eclipse.org/tptp> ). I tried to install eclipse TPTP through the update manager from a standard eclipse installation, but I gave up because of the unbelievable complex setup and download...
[ 0.6663227081298828, 0.07391777634620667, 0.2387949377298355, -0.3176226019859314, -0.48941662907600403, -0.12567302584648132, 0.21798306703567505, -0.06958283483982086, -0.05298306792974472, -0.8147727251052856, 0.03262658789753914, 0.5861170887947083, -0.44748011231422424, -0.045060876756...
"eclipse.exe" in the unpacked eclipse TPTP installation. What do I need to do to get eclipse TPTP running? An alternative is to use Netbeans to profile an Eclipse Application. I have a blog post on the link below that explains how to configure both applications: <http://www.jroller.com/ortegon/entry/on_profiling_ecl...
[ 0.6779304146766663, -0.041202642023563385, 0.32440513372421265, 0.0966196358203888, -0.6311203837394714, -0.43027499318122864, 0.08863606303930283, -0.04311716929078102, 0.051355309784412384, -0.710152804851532, 0.4565163254737854, 0.8642576932907104, -0.13924425840377808, -0.0514160729944...
learn and to get up to speed. In the newer versions, it is also possible to import the source code of the Eclipse Projects using a special netbeans plugin (albeit it needs to be downloaded separately).
[ 0.5823771953582764, -0.17977279424667358, -0.08099912852048874, 0.16752400994300842, -0.02641410566866398, -0.40190863609313965, 0.2115185707807541, 0.09577924758195877, 0.03089047037065029, -0.9601787328720093, -0.27172863483428955, 0.5484262704849243, 0.09936867654323578, -0.294336408376...
I have a class hierarchy as such: ``` +-- VirtualNode | INode --+ +-- SiteNode | | +-- AbstractNode --+
[ -0.38695165514945984, -0.008000566624104977, 0.45259714126586914, -0.15753011405467987, -0.055900849401950836, -0.011053666472434998, -0.18474386632442474, 0.022019218653440475, 0.03828601539134979, -0.7957132458686829, 0.009137562476098537, 0.013926027342677116, -0.2692970335483551, 0.487...
| +-- SiteSubNode ``` And a corresponding `NodeCollection` class that is build on `INode`. In order to display a `NodeCollection` I need to know the final type of each member. So I need a function like this ``` foreach (INode n in myNodeCollection) { switch(n.GetType()) { c...
[ -0.24750658869743347, -0.16397219896316528, 0.5687761306762695, -0.423454612493515, 0.29604262113571167, -0.0942893698811531, 0.04761628434062004, 0.026030849665403366, -0.09045930206775665, -0.7965371608734131, 0.06952265650033951, 0.028432857245206833, -0.2982003390789032, 0.440888524055...
} } ``` Now, this is really not an object oriented way of doing it. **Are there any patterns or recommended ways of doing the same thing, in your opinion?** **EDIT** I already thought of adding a `Display` or `Render` method to the INode interface. That has the side effect of coupling the view to the model, which...
[ 0.1953168362379074, -0.03714365139603615, -0.017483476549386978, -0.2206425964832306, -0.09015440940856934, -0.26680025458335876, -0.047519996762275696, 0.505739688873291, -0.20610687136650085, -0.9237001538276672, 0.08127707242965698, 0.641283392906189, -0.34532517194747925, 0.15703818202...
Mobile Safari is a very capable browser, and it can handle my website as it is perfectly. However, there are a few elements on my page that could be optimized for browsing using this device; such as serving specific thumbnails that are smaller than the desktop counterparts to help fit more content into the screen. I w...
[ 0.0209156833589077, 0.440639853477478, 0.7063816785812378, -0.3483148217201233, -0.24348244071006775, 0.028757063671946526, 0.33213910460472107, 0.0031256743241101503, -0.279601514339447, -0.7290892004966736, 0.14300009608268738, 0.5901204347610474, -0.37012872099876404, -0.104181811213493...
Agent String](http://developer.apple.com/library/safari/#documentation/AppleApplications/Reference/SafariWebContent/OptimizingforSafarioniPhone/OptimizingforSafarioniPhone.html#//apple_ref/doc/uid/TP40006517-SW3)
[ -0.5340806245803833, -0.30075791478157043, 0.38517749309539795, -0.20341074466705322, 0.11760871112346649, 0.10618703812360764, 0.5716117024421692, -0.23209363222122192, -0.3373269736766815, -0.32141998410224915, -0.3827289044857025, 0.5009269118309021, -0.6840503215789795, -0.418326914310...
I need to configure a website to access a webservice on another machine, via a proxy. I can configure the website to use a proxy, but I can't find a way of specifying the credentials that the proxy requires, is that possible? Here is my current configuration: ``` <defaultProxy useDefaultCredentials="false"> <proxy...
[ 0.2227606177330017, 0.42555323243141174, 0.45793408155441284, 0.17047253251075745, 0.28800204396247864, -0.2802324891090393, 0.5067836046218872, -0.0933682769536972, -0.1044548973441124, -0.785210132598877, 0.14716550707817078, 0.5954042077064514, -0.06161751598119736, 0.36219489574432373,...
modifying the current code. It requires a small piece of code from your part though. Create an assembly called *SomeAssembly.dll* with this class : ``` namespace SomeNameSpace { public class MyProxy : IWebProxy { public ICredentials Credentials { get { return new NetworkCredential(...
[ 0.3220296800136566, -0.21750685572624207, 0.5472647547721863, 0.18389181792736053, 0.2570461332798004, -0.16671817004680634, 0.09721064567565918, 0.3219606578350067, -0.18981480598449707, -0.8211596012115479, 0.11218540370464325, 0.4861083924770355, -0.18552260100841522, 0.3861769139766693...
set { } } public Uri GetProxy(Uri destination) { return new Uri("http://my.proxy:8080"); } public bool IsBypassed(Uri host) { return false; } } } ``` Add this to
[ 0.027805278077721596, -0.10151012241840363, 0.5276485681533813, -0.09687770158052444, 0.17459438741207123, -0.15664976835250854, 0.1121605858206749, 0.08091359585523605, -0.012494193390011787, -0.7270478010177612, -0.25162357091903687, 0.37456321716308594, -0.4384244382381439, 0.4388888478...
your config file : ``` <defaultProxy enabled="true" useDefaultCredentials="false"> <module type = "SomeNameSpace.MyProxy, SomeAssembly" /> </defaultProxy> ``` This "injects" a new proxy in the list, and because there are no default credentials, the WebRequest class will call your code first and request your own cr...
[ -0.011558795347809792, 0.15815602242946625, 0.6755529046058655, 0.0602530762553215, 0.21875116229057312, -0.12008197605609894, 0.053540464490652084, 0.042028795927762985, -0.2474697083234787, -0.9562634825706482, -0.24625910818576813, 0.5163143873214722, -0.09865941107273102, 0.16460332274...
The following works in Firefox, but breaks in IE7 & 8: ``` $("#my-first-div, #my-second-div").hide(); ``` so I have to do this: ``` $("#my-first-div").hide(); $("#my-second-div").hide(); ``` Is this normal? EDIT: ok, my actual real-life code is this: ``` $("#charges-gsm,#charges-gsm-faq,#charges-gsm-prices").ht...
[ -0.03547617048025131, 0.19033725559711456, 0.7307661771774292, -0.11482686549425125, 0.1872531771659851, -0.2054351419210434, 0.23888500034809113, -0.208685964345932, -0.2388041466474533, -0.6476690769195557, -0.42912039160728455, 0.7435261607170105, -0.5424486398696899, -0.235430911183357...
ask, if you do a "View source" or its IE equivalent, are there any other occurrences of the string "nodeName" that could be interfering with the jQuery one. Can you also test the following by creating an xx.html file and opeing it in IE7/8? It works fine under Firefox 3 in Ubuntu, with or without the spaces following ...
[ 0.18376755714416504, -0.0785762369632721, 0.5155332684516907, 0.04977160692214966, 0.028422599658370018, -0.20462676882743835, -0.04275432601571083, -0.5051981210708618, -0.07975910604000092, -0.5065001249313354, -0.12769724428653717, 0.8734274506568909, -0.3677162528038025, -0.31965446472...
}); }); </script> </head> <body> <a href="http://jquery.com/">jQuery</a> <hr> <div id="charges-gsm">CHARGES-GSM</div> <div id="charges-gsm-faq">CHARGES-GSM-FAQ</div> <div id="charges-gsm-prices">CHARGES-GSM-PRICES</div> </body> </html> ```
[ -0.04340656101703644, 0.08193092793226242, 0.8532217741012573, -0.03284643962979317, 0.15817691385746002, -0.16230115294456482, -0.3888314366340637, -0.4328792691230774, -0.491953581571579, -0.10178796947002411, -0.45368149876594543, 0.8249626755714417, -0.25133705139160156, -0.00720657827...
Is there a way in Visual Studio (a hotkey) to automatically import a type (or choosing between known namespaces) like the `Ctrl` + `O` in Eclipse? When the red caret appears at the end of your member, just hit `Shift` + `Alt` + `F10`, then use arrows keys to choose the right option: [![Enter image description here](ht...
[ 0.26646775007247925, -0.17834919691085815, 0.48855534195899963, -0.09455374628305435, -0.21280637383460999, 0.2337666153907776, -0.06975724548101425, -0.166205033659935, -0.2111772894859314, -0.5135319232940674, -0.2195538431406021, 0.7033926844596863, -0.33763983845710754, -0.434616357088...
How do I define the Assembly folder for an Application correctly? I tried to use the registry Key: HKLM/SOFTWARE/Microsoft/.NET Framework/AssemblyFolders/App-Name and use the (Default) to set this to the path where the assemblies are located. Some time ago this worked fine, but as I compiled a new Version and deployed...
[ 0.5057719945907593, 0.016933567821979523, 0.29865801334381104, -0.1619662195444107, 0.052540626376867294, -0.20593637228012085, 0.2598000764846802, -0.3211333453655243, -0.4006231129169464, -0.7322293519973755, -0.10296562314033508, 0.4294178783893585, -0.3391483426094055, 0.02838684804737...
I'm writing server-side programs in PHP for an iPhone app. And I have no iPhone. :P The iPhone app requests XML files from the site whenever a user runs the iPhone app. You may visit <http://www.appvee.com/iphone/ads> or <http://www.appvee.com/iphone/latest> for the XML files. And a message box will show up with the ...
[ 0.31720882654190063, 0.5700355768203735, 0.3222264349460602, 0.023234983906149864, -0.019099775701761246, 0.07530902326107025, 0.5992248058319092, 0.11884324997663498, -0.17140980064868927, -0.5345631241798401, -0.08922480791807175, 0.3996010422706604, -0.21123568713665009, -0.175367549061...
[axTLS](http://axtls.cerocclub.com.au/) which works great on both our server (.NET) and our embedded systems (Linux and uClinux). We had problems getting OpenSSL to work well on uClinux. axTLS is not as feature complete as OpenSSL yet so make sure it meets your requirements before using it.
[ 0.32495731115341187, 0.1051037609577179, 0.26931506395339966, 0.29277947545051575, -0.19349560141563416, -0.6107125878334045, -0.2181422859430313, 0.2841256856918335, -0.17269787192344666, -0.5159735679626465, -0.21086618304252625, 0.5220605134963989, -0.08543626964092255, 0.15623290836811...
My project is split up into a typical 3 layer structure for a Silverlight app. That is: * A base layer, which is a class library that contains all my business objects, logic, data access etc. * A middle layer which is a WCF service which communicates with; * My Silverlight front end The problem I have is that current...
[ 0.3359799087047577, 0.30097687244415283, 0.36356857419013977, -0.03973470628261566, -0.3370339870452881, -0.052188076078891754, 0.43635863065719604, -0.14507462084293365, 0.049623262137174606, -0.6489654779434204, -0.0355839841067791, 0.2806757986545563, -0.3086223602294922, 0.148794859647...
used in the WCF service which you have marked as DataContracts to be exported as .NET objects to your client code (the Silverlight UI). WCF does not support this capability. A class marked as a DataContract is just that, a data structure with no methods. If you need a good resource for undestanding WCF, try [Learning W...
[ 0.3078281581401825, -0.133970707654953, 0.00047644798178225756, 0.16232141852378845, -0.2545804977416992, -0.2970868647098541, 0.2210463583469391, -0.1523725837469101, -0.37627631425857544, -0.6921204328536987, -0.07191187888383865, 0.3189944624900818, -0.3262128531932831, 0.24213136732578...
services from Silverlight.
[ -0.04082930460572243, -0.061225973069667816, -0.08457928895950317, -0.40600329637527466, 0.060548726469278336, 0.47098639607429504, 0.48626041412353516, 0.46369796991348267, -0.23610201478004456, -0.040653616189956665, -0.6249617338180542, 0.0020676555577665567, -0.025859251618385315, 0.28...
In a page, on the load event, I am dynamically creating controls for display on the page. This is all working properly. the trouble I am having is when adding extenders from the AJAX control toolkit, specifically I am trying to add rounded corners to a button control. No errors are thrown, but the AJAX Extension functi...
[ 0.022696875035762787, -0.15735965967178345, 0.5577977299690247, 0.07882185280323029, -0.39451363682746887, -0.16134963929653168, 0.15811927616596222, -0.0802798643708229, -0.2978014349937439, -0.6685482859611511, 0.030077876523137093, 0.5922831296920776, -0.16024230420589447, -0.0310717355...
container = New HtmlGenericControl("div") container.ID = "container_" & item.code edit = New Button() edit.ID = "edit_" & item.code edit.Text = "Edit" edit.Style("padding") = "0 0 0 4px" edit.SkinID =
[ -0.039016421884298325, -0.362104594707489, 0.6317857503890991, -0.019299481064081192, 0.09069253504276276, 0.17084433138370514, -0.314146488904953, -0.3173471987247467, -0.4886058270931244, -0.9378500580787659, -0.04083970561623573, 0.36160993576049805, -0.34318676590919495, 0.277298808097...
"smallEditButton" editRoundedCorners = New AjaxControlToolkit.RoundedCornersExtender() editRoundedCorners.BorderColor = edit.BorderColor editRoundedCorners.ID = edit.ID & "_RoundedCorners" editRoundedCorners.Corners = AjaxControlToolkit.BoxCorners.All editRou...
[ -0.07141682505607605, -0.19396404922008514, 0.31143492460250854, 0.0867975726723671, -0.32013842463493347, 0.19895048439502716, 0.07001015543937683, -0.16248029470443726, -0.42654362320899963, -0.5674744248390198, -0.14638175070285797, 0.29635804891586304, -0.135074183344841, -0.0529590658...
container.Controls.Add(edit) pageContainer.Controls.Add(container) Next ``` (pageContainer is a div on the page) You cannot apply a RoundedCornersExtender to input elements such as TextBox or Buttons.
[ -0.32250508666038513, -0.15594324469566345, 0.6608465909957886, -0.03195052593946457, -0.16567812860012054, -0.07528188079595566, -0.3096366226673126, -0.03936546668410301, -0.2992737293243408, -0.8306107521057129, -0.14594338834285736, 0.24900920689105988, -0.39109259843826294, 0.23300988...
I Have an old vbs script file being kicked off by an AutoSys job. Can I, and how do I, return an int return value to indicate success or failure? I found the answer :0) ``` DIM returnValue returnValue = 99 WScript.Quit(returnValue) ``` This seems to work well.
[ 0.2318914532661438, 0.019304782152175903, 0.29749149084091187, -0.15476800501346588, -0.07653620094060898, -0.051427777856588364, 0.4586660861968994, -0.40202128887176514, 0.2695944309234619, -0.44714590907096863, -0.18870671093463898, 0.7306768298149109, -0.12499812245368958, 0.2369667738...
I want to know how the glBlendFunc works. For example, i have 2 gl textures, where the alpha is on tex1, i want to have alpha in my final image. Where the color is on tex1, i want the color from tex2 to be. Sadly, this is for openGL ES on the iPhone, so no shaders, but point taken. My problem was a very simplified vers...
[ 0.012963476590812206, 0.03076702542603016, 0.7225101590156555, -0.20117774605751038, -0.359529972076416, 0.049455899745225906, 0.13824541866779327, -0.0461944080889225, 0.04006066918373108, -0.6349614858627319, -0.1248830258846283, 0.6775285601615906, -0.4768593907356262, -0.09148824214935...
the framebuffer. The solution was to insist that the artist makes the "action bit" of the texture white, and then assigning a color to the vertices that i render. Something like this. ``` glTexCoordPointer( 2, GL_FLOAT, 0, sprite->GetTexBuffer() ); glVertexPointer( 3, GL_FLOAT, 0, sprite->GetVertexBuffer() ); glColorP...
[ 0.033284030854701996, -0.10056108981370926, 0.7423482537269592, -0.23449553549289703, -0.19255676865577698, 0.36770302057266235, 0.36877140402793884, -0.45364901423454285, -0.04403416067361832, -0.6685779690742493, -0.05075886473059654, 0.379915714263916, -0.4421708881855011, 0.08440227061...
at the point.
[ -0.049353502690792084, 0.09626323729753494, 0.039768822491168976, 0.11206395924091339, -0.03509509935975075, -0.08504243940114975, -0.14800311625003815, -0.0024030643980950117, 0.03654998913407326, -0.28011810779571533, -0.0052154832519590855, 0.1720115840435028, -0.09251419454813004, 0.15...
I have a page with a tab control and each control has almost 15 controls. In total there are 10 tabs and about 150 controls in a page (controls like drop down list, textbox, radiobutton, listbox only). My requirement is that there is a button (submit) at the bottom of the page. I need to check using JavaScript that at...
[ 0.008204744197428226, 0.04081933572888374, 0.6944560408592224, 0.2530204951763153, -0.13882848620414734, 0.4499446153640747, 0.11318252980709076, -0.30938535928726196, -0.12265709042549133, -0.6704428195953369, -0.15267430245876312, 0.4861457943916321, -0.047874707728624344, -0.03488486260...
on the page (if more then loop through forms and nest the below loop within). ``` var selectedCount = 0; var element; for (var i = 0; i < document.forms[0].elements.length; i++) { element = document.forms[0].elements[i]; switch (element.type) { case 'text': if (element.value.length ...
[ -0.1278286725282669, -0.08393235504627228, 0.6776924133300781, -0.21865470707416534, 0.028489975258708, -0.040685173124074936, 0.30811649560928345, -0.5586177706718445, -0.05447553098201752, -0.7229043245315552, -0.5862168073654175, 0.17364917695522308, -0.23337940871715546, -0.10896717011...
break; case 'select-one': if (element.selectedIndex > 0) { selectedCount++; } break; //etc - add cases for checkbox, radio, etc. } } ```
[ -0.05574661120772362, -0.37634730339050293, -0.01822061277925968, -0.07765103131532669, 0.3466424345970154, -0.2648753225803375, 0.03256349265575409, -0.3501547574996948, -0.15730004012584686, -0.26786336302757263, -0.5223270058631897, 0.4486912786960602, -0.4470839500427246, 0.16170540452...
I have a CSV file that holds about 200,000 - 300,000 records. Most of the records can be separated and inserted into a MySQL database with a simple ``` $line = explode("\n", $fileData); ``` and then the values separated with ``` $lineValues = explode(',', $line); ``` and then inserted into the database using the...
[ 0.3313233554363251, 0.3043022155761719, 0.5396720767021179, 0.12301509827375412, 0.24679279327392578, 0.2128121703863144, -0.0370180606842041, -0.26055583357810974, -0.007053577806800604, -0.6402623057365417, -0.058929163962602615, -0.0791252925992012, -0.1774982064962387, 0.32108998298645...
has a record with a \n in the string. However, each time a \n is found in the line it is enclosed between a pair of single quotes (') each line is set up in the following format: ``` id,data,data,data,text,more data ``` example: ``` 1,0,0,0,'Hello World,0 2,0,0,0,'Hello World',0 3,0,0,0,'Hi',0 4,0,0,0,,0 ``` ...
[ 0.05303746089339256, 0.09781873971223831, 0.4458985924720764, 0.06828200072050095, 0.08212089538574219, 0.1303548365831375, -0.07390740513801575, 0.055550623685121536, -0.41949787735939026, -0.5232586860656738, -0.30447790026664734, -0.10841494053602219, -0.3671380877494812, 0.361181259155...
others have pointed out. fgetcsv handles embedded newlines correctly. However if your csv data is in a string (like $fileData in your example) the following method may be useful as str\_getcsv() only works on a row at a time and cannot split a whole file into records. You can detect the embedded newlines by counting ...
[ 0.3627103269100189, -0.11747623980045319, 0.27446064352989197, 0.10921385884284973, -0.0622749850153923, -0.14823704957962036, 0.24181580543518066, -0.19574669003486633, -0.41839495301246643, -0.6569013595581055, -0.11285407096147537, 0.18637871742248535, -0.2920088768005371, 0.26209685206...
quotes (again using explode()). Odd-numbered fields are quoted (thus embedded commas are not special), even-numbered fields are not. Example: ``` # Split file into physical lines (records may span lines) $lines = explode("\n", $fileData); # Re-assemble records $records = array (); $record = ''; $lineSep = ''; foreac...
[ 0.05763809382915497, -0.14979855716228485, 0.434335321187973, 0.08921467512845993, 0.03446219861507416, 0.06822411715984344, 0.1715398132801056, -0.5833437442779541, -0.4895137548446655, -0.1508016586303711, -0.33562713861465454, 0.12139280885457993, -0.5665992498397827, 0.0857355669140815...
that uses no special characters $line = str_replace("\\'", '@q', $line); $line = str_replace('\\', '@b', $line); $record .= $lineSep . $line; $lineSep = "\n"; # Must have an even number of quotes in a complete record! if (substr_count($record, "'") % 2 == 0) { $records[] = $record; $record = ''; ...
[ -0.06047070026397705, -0.11036468297243118, 0.4098112881183624, -0.06693261861801147, 0.13607513904571533, 0.29434719681739807, 0.35316896438598633, -0.3366454839706421, -0.3979848027229309, -0.06575565785169601, -0.49107521772384644, 0.2664947509765625, -0.41915422677993774, 0.04619815200...
# Decode field-separating commas (unless quoted) foreach ($chunks_in as $i => $chunk) { # Unescape quotes & backslashes $chunk = str_replace('@q', "'", $chunk); $chunk = str_replace('@b', '\\', $chunk); if ($i % 2 == 0) { # Unescape commas $chunk = str_replace('@c', ',', $chunk); } ...
[ -0.0022089865524321795, 0.07572406530380249, 0.26515811681747437, -0.17945484817028046, -0.08460818976163864, 0.25002598762512207, 0.3153282701969147, -0.28538528084754944, -0.1375870257616043, -0.06828348338603973, -0.6180607676506042, 0.6118754744529724, -0.641562819480896, 0.02839048206...
(); foreach ($chunks_in as $chunk) { $chunk = str_replace('@c', ',', $chunk); $chunk = str_replace('@a', '@', $chunk); $row[] = $chunk; } $rows[] = $row; } ```
[ -0.09456022828817368, 0.3395959734916687, 0.25868746638298035, -0.5499303936958313, 0.1640368402004242, 0.1907656490802765, 0.20382128655910492, -0.231448695063591, -0.24204732477664948, -0.29603150486946106, -0.7715485095977783, 0.6280080676078796, -0.4050351679325104, 0.26437801122665405...
I have an object that needs a test if the object data is valid. The validation itself would be called from the thread that instatiated the object, it looks like this: ``` { if (_step.Equals(string.Empty)) return false; if (_type.Equals(string.Empty)) return false; if (_setup.Equals(string.Empty)) return false; ...
[ 0.3339616656303406, 0.09809830039739609, 0.023478949442505836, -0.08399910479784012, 0.06236774101853371, -0.31418514251708984, 0.3320465385913849, -0.3647514283657074, -0.010085362009704113, -0.4043128788471222, 0.08800346404314041, 0.4741456210613251, -0.20467469096183777, 0.291339248418...
your example doesn't) then make it a method. * If the object remains un-changed after validation, make it a property.
[ 0.537382185459137, 0.10844830423593521, 0.016345595940947533, 0.08920334279537201, -0.06342862546443939, -0.14835089445114136, 0.6541658639907837, -0.34769076108932495, -0.04801773652434349, -0.35240522027015686, -0.11316636204719543, 0.4522615671157837, -0.25054511427879333, 0.25301080942...
Is there a FOSS batch compiling solution for Delphi that takes version as an input parameter? I am using Delphi 7 and this remains the most tedious operation. Are there any other solutions, workarounds to make this easy. Not really sure on your question, but I'm going to assume you are asking how to set the version nu...
[ 0.3852250277996063, -0.004364246502518654, 0.24244555830955505, -0.05095619335770607, -0.1458015888929367, -0.23829329013824463, -0.1315837800502777, 0.22874762117862701, -0.4995979964733124, -0.3815748989582062, 0.10719460994005203, 0.5496273636817932, -0.2966947555541992, -0.137899294495...
would be [FinalBuilder](http://www.finalbuilder.com), which also has the ability to manipulate the version information in an executable as well as compile your Delphi application.
[ 0.11715031415224075, -0.34040436148643494, 0.2509324848651886, -0.10673221945762634, -0.060185231268405914, -0.022274335846304893, 0.005834805779159069, 0.2418067753314972, 0.04209524765610695, -0.35917457938194275, -0.19351929426193237, 0.3119334876537323, 0.060477688908576965, 0.13683590...
Trying to create a user account in a test. But getting a Object reference is not set to an instanve of an object error when running it. Here's my MemberShip provider class, it's in a class library MyCompany.MyApp.Domain.dll: ``` using System; using System.Collections.Generic; using System.Web.Security; namespace MyC...
[ -0.04562981054186821, 0.04689782112836838, 0.35625484585762024, -0.022083673626184464, 0.20610804855823517, 0.19533593952655792, 0.6143395900726318, -0.28770214319229126, -0.14349885284900665, -0.7098375558853149, -0.05360953509807587, 0.5851826071739197, -0.3324277698993683, 0.22468371689...
resetPasswordLength = defaultPasswordLength; string resetPasswordLengthConfig = config["resetPasswordLength"]; if (!String.IsNullOrEmpty(resetPasswordLengthConfig)) { config.Remove("resetPasswordLength"); if (!int.TryParse(resetPasswordLengthConfig, o...
[ -0.45376360416412354, -0.32783615589141846, 0.5245845317840576, -0.4400397539138794, 0.5066701769828796, 0.08983729779720306, 0.5251907706260681, -0.36528876423835754, -0.02875365875661373, -0.5467017292976379, -0.5114290118217468, 0.5127974152565002, -0.5440733432769775, 0.151393443346023...
{ resetPasswordLength = defaultPasswordLength; } } base.Initialize(name, config); } public override string GeneratePassword() {
[ -0.13717912137508392, -0.4548646807670593, 0.25699949264526367, -0.25760045647621155, 0.22413212060928345, -0.08106203377246857, 0.6745328307151794, -0.46229374408721924, 0.15071815252304077, -0.44431400299072266, -0.33829182386398315, 0.6533740758895874, -0.39050981402397156, 0.0336294546...
return Utils.PasswordGenerator.GeneratePasswordAsWord(resetPasswordLength); } } } ``` Here's my App.Config for my seperate Test Class Library MyCompany.MyApp.Doman.Test.dll that references my business domain library above: ``` <?xml version="1.0" encoding="utf-8" ?> <configuration> <connectionStrings...
[ -0.19803078472614288, 0.12060616910457611, 0.6553049683570862, 0.05447909235954285, 0.04779820516705513, 0.03977571800351143, 0.30438414216041565, -0.3024241328239441, -0.2492184340953827, -0.9598799347877502, -0.2876439690589905, 0.459263414144516, -0.04282664135098457, 0.2527996301651001...
<add name="MyMembershipProvider" type="MyCompany.MyApp.Domain.MyMembershipProvider,MyCompany.MyApp.Domain" connectionStringName="SqlServer" applicationName="MyApp"
[ -0.1280013620853424, 0.1908295750617981, 0.5302796363830566, 0.042070768773555756, -0.05373624339699745, 0.18713702261447906, 0.05848044902086258, -0.13220423460006714, -0.3068772852420807, -0.6556779742240906, -0.0837203785777092, 0.249948650598526, -0.013426433317363262, 0.47801691293716...
minRequiredNonalphanumericCharacters="0" enablePasswordRetrieval="false" enablePasswordReset="true" requiresQuestionAndAnswer="false" requiresUniqueEmail="true"
[ 0.015304001048207283, 0.15787917375564575, 0.42591601610183716, -0.026069197803735733, 0.22433070838451385, -0.23537954688072205, 0.9583236575126648, -0.8363364934921265, 0.1040770635008812, -0.48344603180885315, -0.4021117687225342, 1.2015212774276733, -0.07881520688533783, -0.27225428819...
passwordFormat="Hashed"/> </providers> </membership> </system.web> </configuration> ``` Here's my method that throws "Object reference is not set to an instanve of an object" ``` public class MemberTest { public static void CreateAdminMemberIfNotExists() { Memb...
[ -0.09977832436561584, 0.03694412112236023, 0.15378136932849884, 0.014166169799864292, 0.17650215327739716, -0.36334940791130066, 0.4321587383747101, -0.0749494805932045, -0.12281053513288498, -0.5588989853858948, -0.2569379210472107, 0.5057888627052307, -0.13940531015396118, 0.341208070516...
MyMembershipProvider provider = new MyMembershipProvider(); provider.CreateUser("Admin", "password", "someone@somewhere.co.uk", "Question", "Answer", true, Guid.NewGuid(), out status); } } ``` it throws on the provider.CreateUser line I'm quite sure you should call provider.Initialize(...) in...
[ 0.25396761298179626, 0.09191855043172836, 0.5834821462631226, -0.29535385966300964, 0.0960192084312439, -0.18635021150112152, 0.23790498077869415, 0.13913297653198242, 0.01861773058772087, -0.9160435199737549, -0.21819069981575012, 0.34637054800987244, -0.09939749538898468, 0.4521028399467...
This is my query: ``` $query = $this->db->query(' SELECT archives.id, archives.signature, type_of_source.description, media_type.description, origin.description FROM archives, type_of_source, media_type, origin WHERE archives.type_of_source_id =...
[ 0.24487720429897308, 0.5176443457603455, 0.5379816889762878, -0.050843704491853714, 0.18945971131324768, -0.281545490026474, 0.05581489950418472, -0.24303168058395386, 0.07876280695199966, -0.6261493563652039, -0.09312224388122559, 0.3528290092945099, -0.2758770287036896, 0.685839533805847...
AND type_of_source.media_type_id = media_type.id
[ 0.22183795273303986, 0.19948525726795197, 0.2562223970890045, 0.042802222073078156, 0.10087410360574722, -0.11323229223489761, -0.19035190343856812, -0.021911008283495903, -0.01808890327811241, -0.5044199228286743, -0.20649397373199463, 0.47257357835769653, -0.34226280450820923, 0.55909562...
AND archives.origin_id = origin.id
[ 0.7510150671005249, 0.25680914521217346, -0.2502882778644562, 0.14886417984962463, 0.8381144404411316, 0.06144748628139496, -0.21177172660827637, 0.057147227227687836, -0.4952009320259094, -0.2808535397052765, -0.5209978818893433, -0.3139050006866455, 0.19823984801769257, 0.518543958663940...
ORDER BY archives.id ASC '); ``` But how to output the result? This works, but only gets the last description (origin.description): ``` foreach ($query->result_array() as $row) { echo $row['description']; } ``` This doesn't work: ``` foreach ($query->result_array() as $row) { echo $row['type_of_source.de...
[ -0.06565207988023758, 0.2379111647605896, 0.4432813227176666, -0.17054949700832367, 0.11392548680305481, 0.1310175508260727, 0.12156038731336594, -0.45447954535484314, -0.21830202639102936, -0.5675156712532043, -0.28735750913619995, 0.33039700984954834, -0.38631659746170044, 0.367848277091...
How would you store formatted blocks of text (line breaks, tabs, lists - etc.) in a database (nothing specific) to be displayed on the web (XHTML) while maintaining a level of abstraction so that the data can be used in other applications or if the structure of the website were to change in the future? This actually ha...
[ 0.2962910532951355, 0.09298638254404068, 0.35937127470970154, 0.22110311686992645, -0.13266751170158386, -0.07366479188203812, -0.06319546699523926, -0.018742479383945465, -0.2899547815322876, -0.6794722080230713, -0.11581382155418396, 0.21818870306015015, -0.4007595181465149, 0.2852597832...
Why is the order of tables important when combining an outer & an inner join ? the following fails with postgres: ``` SELECT grp.number AS number, tags.value AS tag FROM groups grp, insrel archiverel LEFT OUTER JOIN ownrel ownrel ON grp.number = ownrel.dnumber LEFT OUTER JOIN tags tags ON tags...
[ -0.4400801360607147, 0.04628204554319382, 0.49423152208328247, -0.15331344306468964, -0.0878840759396553, 0.15488144755363464, 0.05340489745140076, -0.5384513139724731, -0.46390366554260254, -0.3375017046928406, -0.1822064369916916, 0.2278854250907898, -0.33193379640579224, -0.015070734545...
5: LEFT OUTER JOIN ownrel ownrel ON grp.number = ownrel.d... ^ HINT: There is an entry for table "grp", but it cannot be referenced from this part of the query. ``` when the groups are reversed in the FROM it all works: ``` SELECT grp.number AS number, tags.value AS tag FROM insrel archiverel, ...
[ -0.3074724078178406, 0.01529078558087349, 0.749113142490387, -0.17896156013011932, -0.0521027110517025, 0.12049191445112228, -0.0565747432410717, -0.48808422684669495, -0.5378180742263794, -0.3919674754142761, -0.26478704810142517, 0.25785550475120544, -0.039071224629879, 0.418553411960601...
archiverel.snumber = 11128188 AND archiverel.dnumber = grp.number ``` I believe that you can think of this as an operator precedence issue. When you write this: ``` FROM groups grp, insrel archiverel LEFT OUTER JOIN ownrel ownrel ON grp.number = ownrel.dnumber LEFT OUTER JOIN tags tags ON tags...
[ -0.09577888250350952, 0.14576038718223572, 0.44686153531074524, -0.08620362728834152, -0.01767890527844429, -0.31237393617630005, -0.062366072088479996, -0.5138652920722961, -0.3733065724372864, -0.36237579584121704, -0.10668255388736725, 0.3375946283340454, -0.4613248109817505, -0.1287368...
ownrel.dnumber ) LEFT OUTER JOIN tags tags ON tags.number = ownrel.snumber ) ``` If so, then in the innermost join "grp" is unbound. When you reverse the lines with "groups" and "insrel", the innermost join applies to "groups" and "ownrel", so it works. Probably this would work as well: ``` FROM groups gr...
[ -0.34407344460487366, 0.14761896431446075, 0.7298824787139893, -0.06024863198399544, -0.08592834323644638, -0.08773969113826752, -0.08970189839601517, -0.6303293108940125, -0.5231916904449463, -0.4168348014354706, -0.2051634043455124, 0.282646119594574, -0.26014283299446106, -0.16172975301...
My InstallShield 2009 basic MSI project installs pretty slowly. We have a 65MB .msi and a 110MB .cab. The project was upgraded from IS12, using which it took about half as long to install. Did the 2009 upgrade make some default modifications that I can reverse? Are there any general optimizations that can speed up bas...
[ 0.11592905223369598, 0.11517669260501862, 0.6599462628364563, -0.12089075893163681, 0.041390929371118546, 0.029554737731814384, 0.8237479329109192, -0.09282250702381134, 0.1084284707903862, -0.7118597626686096, 0.017860088497400284, 0.7194414138793945, -0.3694917559623718, -0.1620476096868...
compressing files that were streamed into the Setup.exe file or the ISSetup.dll file at build time. Thus, if you compare a release that was built in InstallShield 2008 or earlier with the same release that is built with the default compression level in InstallShield 2009, you may notice that the file size of Setup.exe ...
[ 0.18221312761306763, -0.29194924235343933, 0.4209984242916107, -0.1312391459941864, -0.2248273491859436, -0.08305424451828003, 0.10814805328845978, -0.010841879062354565, -0.3957560062408447, -0.6958584189414978, 0.026612164452672005, 0.8174843192100525, -0.4941769540309906, 0.028649894520...
Most developers and engineers that have experience writing software and deploying with the packaged Visual Studio Setup Project know about its many shortcomings. Usually in regards to installation customization, upgrade paths, etc. What are some good alternatives for software deployment? In particular I'm interested in...
[ 0.5356801152229309, -0.1182456836104393, -0.07569032907485962, -0.07173134386539459, -0.06450320035219193, -0.17014959454536438, 0.1004038080573082, 0.3198545575141907, -0.14565804600715637, -0.9501399993896484, -0.3524574041366577, 0.613369882106781, -0.01941804774105549, -0.2005434632301...
We are hosting a site for a client and they want us to include the header they have on their server into the pages we are hosting. So whenever they change it, it will automatically change on our site. We are attempting to use the "include" tag in our JSP code. The code we are using is as follows: `<%@ include file="w...
[ 0.6678447723388672, 0.11665888875722885, 0.2354685366153717, -0.2254333347082138, -0.035706307739019394, -0.3769114017486572, 0.1928335428237915, 0.04939854145050049, -0.2221517115831375, -0.64650559425354, -0.20749928057193756, 0.36906638741493225, -0.36906594038009644, 0.2370300441980362...
to pull the header into our page when we use an iframe but because of the way the header is constructed/coded the mouse over drop-down menus aren't working as they should when we use the iframe. The drop-down menus are "cascading" underneath the rest of the content on the page and we weren't able to bring them to the ...
[ 0.40923890471458435, -0.0931473895907402, 0.36095505952835083, -0.011856982484459877, -0.21647526323795319, -0.13369615375995636, 0.08903433382511139, -0.1615104079246521, -0.14458496868610382, -0.5670060515403748, 0.02414434589445591, 0.3337569832801819, -0.40299856662750244, 0.0753585696...
{ HttpClient httpClient = new HttpClient(); GetMethod getMethod = new GetMethod( urlString ); getMethod.setFollowRedirects( true ); int httpStatus = httpClient.executeMethod( getMethod ); if (httpStatus >= 400) { return ""; } String sourceHtml = getMethod.getResponseBodyAsString(); ...
[ 0.09224099665880203, -0.34523195028305054, 0.6750915050506592, 0.05365097150206566, 0.03624675050377846, -0.03339700773358345, 0.38881272077560425, -0.4579157531261444, -0.04818100482225418, -0.6255592107772827, -0.21334010362625122, 0.6559010744094849, -0.6473972797393799, -0.002006372902...
to call the method if you prefer. You may want to change the time-out and retry mechanism for HttpClient. By default it will automatically try up to a maximum of 3 times with each attempt timing out after 30s. However, you probably want to look into caching the strings for a suitable period of time. You really don't ...
[ 0.33321571350097656, -0.3013674318790436, 0.6059382557868958, -0.0645846351981163, -0.1937723606824875, -0.3210122585296631, 0.5916560888290405, -0.3195818364620209, -0.2348119616508484, -0.6546590924263, 0.07796353101730347, 0.5570074319839478, -0.20868416130542755, -0.005484928376972675,...
Assume the following code: ``` using (SqlConnection conn = new SqlConnection(connectionString)) { ... using (SqlCommand comm = new SqlCommand(...)) { .. do stuff .. if(condition) Response.Redirect("somepage.aspx"); } } ``` Will the Response.Redirect() exit from the using blocks cause it to d...
[ 0.0912717804312706, 0.055406708270311356, 0.24123315513134003, 0.014628713950514793, 0.3455613851547241, -0.32622039318084717, 0.2886098325252533, -0.10332947969436646, -0.273933470249176, -0.5737729668617249, -0.3194544017314911, 0.43302688002586365, -0.44692325592041016, 0.15132823586463...
pretty sure all objects are disposed --the hard way-- in that situation I've accepted an answer, which essentially says "I don't know" but it's a very well researched "I don't know" For the mean time, I'm going to assume that Response.Redirect aborts the using statement and code with that in mind. -- Until proven oth...
[ 0.1448294073343277, -0.06035787612199783, 0.23680244386196136, 0.08544792979955673, -0.047903742641210556, -0.06089306250214577, 0.21519362926483154, -0.11146767437458038, -0.26693111658096313, -0.3030826449394226, -0.2899070084095001, 0.43538370728492737, -0.3496423363685608, 0.2311444878...
aware of. Also, that article refers to SharePoint, but as SP is built on ASP.NET 2.0, I think it is still relevant.
[ 0.26098886132240295, -0.113202303647995, 0.39461836218833923, 0.331469863653183, -0.37799376249313354, -0.6780327558517456, 0.016607534140348434, -0.06681134551763535, -0.4975733160972595, -0.5053595900535583, -0.026283681392669678, 0.17275778949260712, -0.4111865162849426, -0.143152609467...
I was thinking earlier today about an idea for a small game and stumbled upon how to implement it. The idea is that the player can make a series of moves that cause a little effect, but if done in a specific sequence would cause a greater effect. So far so good, this I know how to do. Obviously, I had to make it be mor...
[ 0.15220366418361664, 0.02727927826344967, 0.0322050079703331, 0.05822492018342018, 0.21655884385108948, 0.01762874238193035, 0.22163182497024536, -0.1935490518808365, -0.5985917448997498, -0.5994521975517273, 0.2831496596336365, 0.18160933256149292, -0.037565939128398895, -0.11028481274843...