text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
the decoding. You will probably get away with passing Encoding.Default as the second parameter to this static method. Your are seeing the result of a HTML form POST which encodes the values as if they were being appended to a URL as a search string. Hence it is a & delimited set of name=value pairs. Any out-of-band c...
[ 0.18757542967796326, -0.16372518241405487, 0.2164044827222824, 0.23760557174682617, -0.32606083154678345, -0.11393790692090988, 0.3781530261039734, 0.017364798113703728, -0.10187757760286331, -0.6373688578605652, -0.1673927903175354, 0.4253155589103699, -0.32200297713279724, 0.134637668728...
If present you need to ensure the character encode you pass to UrlDecode is appropriate to that CharSet (e.g., if CharSet=UTF-8 then use Encoding.UTF8).
[ -0.09543731808662415, 0.16716258227825165, 0.37949156761169434, -0.1512705534696579, -0.010862172581255436, -0.1648605763912201, 0.0989856943488121, 0.015315650962293148, 0.06185721233487129, -0.7275789976119995, -0.510231614112854, 0.4693627953529358, -0.17914719879627228, 0.3239603042602...
I have written a library that exposes references to several related object types. All of these objects have their lifetimes managed by the library internally via `boost::shared_ptr` A user of the library would also be able to know, by nature of the library, the lifetimes of any of the exposed objects. So they could st...
[ 0.42625173926353455, 0.3128342032432556, -0.02407996729016304, 0.13965517282485962, -0.11246593296527863, -0.1691586673259735, 0.40788397192955017, 0.008729753084480762, -0.1909072995185852, -0.4410657286643982, -0.05014676973223686, 0.4234565198421478, -0.20240499079227448, 0.341609507799...
other libraries done this?** I have profiled this library's usage in apps and have found it to be too mission-critical to expose `weak_ptr` exclusively. **Would it be wiser to have matching API functions expose either a reference *or* a weak\_ptr or to make any object capable of exposing a `weak_ptr` to itself?** If ...
[ 0.4656960368156433, 0.09492933005094528, -0.11660397052764893, 0.16180749237537384, -0.20244263112545013, -0.11267013847827911, 0.15708725154399872, 0.22521881759166718, -0.3544278144836426, -0.5755186676979065, -0.13385818898677826, 0.3379189670085907, -0.3116320073604584, 0.1352589726448...
in addition to any other access your library offers. That gives the users the most flexibility: if they need a `weak_ptr`, they've got immediate access to it; if they need a `shared_ptr`, they can easily get it; and if they just need access to the object itself, they can ignore the smart pointers entirely. Of course, ...
[ 0.1783759444952011, -0.10308881849050522, -0.06156741455197334, 0.243835911154747, 0.09500966221094131, -0.14733880758285522, 0.08119584619998932, 0.14196377992630005, -0.27594080567359924, -0.6305225491523743, -0.003642681520432234, 0.46020233631134033, -0.25216010212898254, 0.18870650231...
I want 1 PHP file to "run" (include?) another PHP file on the same server, and access its echo'ed output as a string. How do i do this in PHP? Any inbuilt functions to do this? Or any better way of executing another PHP file and getting its output? You can use PHP's [output buffering](http://ca2.php.net/manual/en/boo...
[ 0.3769228756427765, 0.15937604010105133, 0.4258493185043335, -0.3128356337547302, -0.10004562139511108, 0.05097416788339615, 0.39297768473625183, -0.21911190450191498, -0.10183606296777725, -0.46327951550483704, -0.10155151039361954, 0.35730594396591187, -0.47341388463974, -0.0700834766030...
I've an ASCII file that contains an EM Dash (— or `—` in HTML). The hex value is 0x97. When we pass this file through one application it arrives as UTF-8, and it converts the character to 0xC297, which is `—` in HTML. However, when we pass this file through a different application it converts the character t...
[ 0.18740688264369965, 0.4031729996204376, 0.8920983672142029, -0.05702879652380943, 0.01885829120874405, 0.2927777171134949, 0.16082222759723663, -0.14639654755592346, -0.0647730603814125, -0.8390735387802124, -0.15185299515724182, -0.07007766515016556, -0.12072737514972687, 0.2837971746921...
as the codepoint in ISO-8859-1. In 8859-1, character 151 is amongst the “C1 control codes”, and not a dash or any other visible character. The confusion arises because character 151 is a dash in Windows code page 1252 (Western European). Many people think cp1252 is the same thing as ISO-8859-1, but in reality it's not...
[ -0.29840087890625, 0.19081823527812958, 0.38488227128982544, -0.13418549299240112, -0.2759801745414734, 0.1918938159942627, -0.026961417868733406, 0.15005551278591156, -0.6226233243942261, -0.5726149678230286, -0.33802279829978943, -0.05383644253015518, -0.09059356153011322, 0.074006609618...
if there are top-bit-set characters in the file. You probably mean “ANSI”, which is really also a misnomer, but one which has stuck in the Windows world to mean “text encoded in the current system-default code page”.)
[ 0.18332384526729584, -0.018464716151356697, 0.06497912108898163, 0.11145445704460144, 0.2803015410900116, -0.12966696918010712, 0.19625122845172882, 0.33507707715034485, -0.3977107107639313, -0.21688076853752136, -0.6164323091506958, 0.33839190006256104, -0.0535881370306015, -0.09879010915...
I have several `UIButton`s which I use to set the current action when tapping in the main area. I would also like to allow the user to drag from the button directly into the main area and take the same action; essentially, the touchesBegan and touchesMoved should be passed on to the main view when touching the UIButton...
[ 0.08714170753955841, -0.1036006361246109, 1.1057515144348145, -0.18845070898532867, 0.0064984033815562725, 0.1590774953365326, -0.12893152236938477, -0.23171447217464447, -0.013768045231699944, -0.6818709969520569, 0.11751201748847961, 0.7125511169433594, -0.025571031495928764, -0.10944493...
touching operation. However, at this point, the touchesMoved and touchesEnded are obviously not being called, because the touches originated on the UIButton. Is there a way to half-ignore the touches so they're passed to the main area, but also allow me to set the control first? In the documentation, look for [Respon...
[ -0.3138490915298462, -0.09672234952449799, 0.8856361508369446, -0.06948310881853104, -0.23082056641578674, 0.08878994733095169, 0.0060665481723845005, -0.44493481516838074, -0.11742885410785675, -0.5711026191711426, -0.13443145155906677, 0.3313754200935364, -0.19244639575481415, -0.0109039...
Apple suggests something like this (based on the type of touch of course): `[self.nextResponder touchesBegan:touches withEvent:event];` Rather than disposing of the touch event it is passed on. Sub classed UIButton: **MyButton.h** ``` #import <Foundation/Foundation.h> @interface MyButton : UIButton { } - (v...
[ -0.3163256347179413, 0.24810226261615753, 0.775027334690094, -0.415463387966156, 0.38398197293281555, 0.4211421310901642, 0.052127011120319366, -0.14514367282390594, -0.2745574414730072, -1.0668821334838867, -0.14671044051647186, 0.4090023934841156, -0.32108578085899353, 0.0283359810709953...
**Is there any way to wait for termination of a thread, but still intercept signals?** Consider the following **C** program: ``` #include <signal.h> #include <stdio.h> #include <sys/types.h> #include <unistd.h> #include <pthread.h> #include <stdlib.h> void* server_thread(void* dummy) { sleep(10); printf("Se...
[ 0.40874016284942627, -0.39836645126342773, 0.23547370731830597, -0.4803002178668976, 0.11268159002065659, 0.23560599982738495, 0.348131000995636, -0.3947170674800873, -0.3880644738674164, -0.5331569910049438, -0.3647412657737732, 0.26221394538879395, -0.5880127549171448, 0.2779220342636108...
pthread_create(&servth, NULL, server_thread, NULL); pthread_create(&killth, NULL, kill_thread, NULL); pthread_join(servth, NULL); printf("Main thread finished\n"); return 0; } ``` It ends after one second and prints: ``` Killing Handling 10 ``` In contrast, here's my attempt to write it in **Pyth...
[ 0.18806256353855133, -0.023588653653860092, 0.6843550205230713, -0.33692291378974915, 0.29181623458862305, 0.11003199219703674, 0.399610698223114, -0.3623637855052948, -0.281576931476593, -0.4895302653312683, -0.24500030279159546, 0.5489025115966797, -0.36431196331977844, 0.210801079869270...
signal.SIGUSR1) killth = threading.Thread(target=kill_thread) killth.start() servth.join() print("Main thread finished") ``` It prints: ``` Killing Served Handling 10, frame:<frame object at 0x12649c0> ``` **How do I make it behave like the C version?** Jarret Hardie already [mentioned it](https://stackoverflow....
[ 0.0065599773079156876, -0.01724175177514553, 0.4318864345550537, -0.21256177127361298, 0.08074250817298889, -0.050073735415935516, 0.7013642191886902, -0.39716649055480957, -0.46602898836135864, -0.4781634509563446, 0.0569143183529377, 0.5066218376159668, -0.361127644777298, 0.117481559514...
= 0 (Timeout) select(0, NULL, NULL, NULL, {0, 4000}) = 0 (Timeout) select(0, NULL, NULL, NULL, {0, 8000}) = 0 (Timeout) select(0, NULL, NULL, NULL, {0, 16000}) = 0 (Timeout) select(0, NULL, NULL, NULL, {0, 32000}) = 0 (Timeout) select(0, NULL, NULL, NULL, {0, 50000}) = 0 (Timeout) select(0, NULL, NULL, NULL, {0, 5000...
[ 0.21477535367012024, -0.1078147143125534, 0.016828319057822227, -0.45153775811195374, 0.1715780794620514, 0.3396214544773102, 0.7573735117912292, -0.317137748003006, -0.5929310321807861, -0.32705482840538025, -0.2936532199382782, 0.29759204387664795, -0.28458884358406067, -0.06079999729990...
I'm trying to decompress about 8000 files in gzip format in Java. My first try was to use GZIPInputStream but the performance was awful. Anyone know any alternative to decompress gzip archives? I tried ZipInputStream but it's not recognizing the gzip format. Thank you in advance. You need to use buffering. Writing sm...
[ 0.0037187866400927305, 0.20002029836177826, 0.039662253111600876, -0.12118834257125854, -0.22786186635494232, 0.019105732440948486, 0.2954789996147156, -0.29682132601737976, -0.17035195231437683, -1.0596997737884521, -0.14911387860774994, 0.4646727442741394, -0.5718039870262146, -0.0130514...
the decompression/compression algorithm, be very careful to close the stream (and not just the underlying stream) after use. I've found having loads of `Deflaters' hanging around is **very** bad for performance. `ZipInputStream` deals with archives of files, which is a completely different thing from compressing a str...
[ 0.28598499298095703, -0.06601135432720184, 0.1515512615442276, 0.24015817046165466, 0.14797483384609222, -0.43396446108818054, 0.07595706731081009, 0.19503869116306305, -0.13203680515289307, -0.5349850058555603, -0.3003183901309967, 0.43131184577941895, -0.408368855714798, 0.03665108978748...
We are migrating several old mainframe applications for a customer to newer ASP.NET + SQL Server 2005 applications. Each application is generally thought of as standalone with no shared data between them, and do things like manage specialized inventory needs or vacation policy. The data is small and shouldn't outgrow a...
[ 0.1803656369447708, 0.18269509077072144, 0.32411518692970276, 0.21736609935760498, -0.006594383157789707, 0.06961415708065033, 0.025007881224155426, -0.2816084027290344, -0.2142011821269989, -0.5355797410011292, -0.04365091025829315, 0.19246165454387665, -0.42236754298210144, -0.0018395269...
backups and security. What factors should be considered in making this decision? I'd highly recommend the small db per app approach. If one application crashes and corrupts its tables, you don't want to have to piece through and do a selective restore of only certain tables. Being able to drop and load is far better fo...
[ -0.005026554223150015, 0.02881190925836563, 0.16068126261234283, 0.40438663959503174, -0.0336284376680851, -0.05997446924448013, 0.2886524200439453, -0.0023773324210196733, -0.3421555459499359, -0.3258133828639984, -0.3402691185474396, 0.8293190598487854, -0.2590625584125519, -0.1582614183...
Supposing that while debugging with VWD the ASP .NET Development server runs at port 4754. (tray icon). The page for debug is opening at <http://localhost:4750> and every time i have to type in the address bar the correct address. <http://localhost:4754> In other words the <http://localhost> port, is always the ASP ...
[ 0.4019034504890442, 0.013264616020023823, 0.3226079046726227, 0.11452846229076385, -0.18683691322803497, -0.02032664231956005, 0.4853997826576233, -0.004709181375801563, -0.2876558303833008, -0.5501388907432556, -0.03741539642214775, 0.7162431478500366, -0.04186692088842392, 0.117525935173...
be sure to check the comments on that page in case the main article didn't resolve the issue.
[ 0.23991326987743378, 0.22986063361167908, 0.0702284723520279, 0.2689044177532196, 0.20081727206707, -0.36355167627334595, 0.3319718539714813, 0.5505017042160034, -0.31949806213378906, -0.29248279333114624, 0.09851078689098358, 0.3407413363456726, 0.19632650911808014, -0.1822233498096466, ...
I have a FlowPanelControl and a custom user control (contains a label and button). I am adding instances of the custom user control to the controls collection of the panel, which flow beneath each other as expected; showing the vertical scroll bar fine too. When a user clicks a button within one of the added user cont...
[ 0.5069370269775391, 0.11396486312150955, 0.7326052784919739, -0.15908657014369965, 0.17142055928707123, 0.5589593052864075, -0.16646578907966614, -0.32470348477363586, -0.14016251266002655, -0.8068451285362244, 0.5792768597602844, 0.5048699975013733, -0.05358175188302994, 0.034898068755865...
problem is that writing to the labels is changing the scroll bar location of the containing flow panel. If you scroll to the bottom and the last user control to be started was first in the list, it moves focus back up to the top. I have tried preventing focus on the buttons but don't think this is the problem. Does a...
[ 0.2668100595474243, -0.017573121935129166, 0.2758411467075348, 0.10799989849328995, -0.12334220856428146, -0.1260170191526413, 0.469865620136261, 0.16129522025585175, -0.3281711935997009, -0.4513011574745178, 0.20883436501026154, 0.5697054862976074, -0.1819484680891037, 0.2565860450267792,...
be sure to check the comments on that page in case the main article didn't resolve the issue.
[ 0.23991326987743378, 0.22986063361167908, 0.0702284723520279, 0.2689044177532196, 0.20081727206707, -0.36355167627334595, 0.3319718539714813, 0.5505017042160034, -0.31949806213378906, -0.29248279333114624, 0.09851078689098358, 0.3407413363456726, 0.19632650911808014, -0.1822233498096466, ...
How do you test methods that fire asynchronous processes with JUnit? I don't know how to make my test wait for the process to end (it is not exactly a unit test, it is more like an integration test as it involves several classes and not just one). IMHO it's bad practice to have unit tests create or wait on threads, et...
[ 0.3703896403312683, -0.18158118426799774, -0.3602549731731415, 0.23651166260242462, -0.38918453454971313, -0.08859999477863312, 0.07606374472379684, -0.32334190607070923, 0.02135932445526123, -0.7405726909637451, 0.30153724551200867, 0.5880151391029358, -0.14673085510730743, -0.05633408576...
and make sure that the submitted job has correct properties, etc. 2. Test that your async callbacks are doing the right things. Here you can mock out the originally submitted job and assume it's initialized properly and verify that your callbacks are correct.
[ 0.21699731051921844, -0.006615969352424145, -0.08014087378978729, 0.2636367678642273, -0.08818979561328888, -0.37617960572242737, 0.07470746338367462, -0.2185957282781601, 0.20159003138542175, -0.6853727102279663, -0.20448707044124603, 0.8192594051361084, -0.015839818865060806, -0.38735845...
I have a table like so: ``` object_id | vote 1 | 2 1 | -1 1 | 5 2 | 3 2 | 1 3 | 4 3 | -2 ``` I want this result (for this particular example, object\_ids 1 and 2 are part of a group, defined elsewhere, and I'm looking for the normalized\_score so that the sum always = 1. object\_id 3 is part of an unused group.): `...
[ -0.25097018480300903, 0.099582239985466, 0.4698988199234009, 0.013733153231441975, -0.019773293286561966, 0.22221818566322327, -0.03955572471022606, -0.49984505772590637, -0.29562678933143616, -0.521552324295044, 0.07758377492427826, 0.4351916015148163, -0.15169797837734222, -0.16245631873...
cleanest question so people don't have to worry about that part. [added 3:10PM] As pointed out in the comments, if the score for one of the objects is below 0, a problem arises. Here is the rule, "IF the score for any outcome\_id is -x, AND that is the minimum score for the set, ADD x to all scores in order to zero-ou...
[ 0.38311415910720825, 0.05137595534324646, 0.3497006297111511, 0.16975964605808258, -0.15611623227596283, -0.26559221744537354, 0.3605451285839081, -0.2634778320789337, -0.06838016211986542, -0.546493411064148, -0.029038868844509125, 0.6128746271133423, 0.08921177685260773, -0.1366369575262...
I can get the sum. I can't figure out how to get the normalized sum. Ideally this will work in both MySQL 5.x and Sqlite3. Otherwise, I can do this with two separate queries and just do the work in post-processing. I agree - try to identify Aggregate roots. If you are not familiar with aggreagate roots: [read here](htt...
[ 0.16572368144989014, -0.0038255893159657717, 0.48736056685447693, 0.13866175711154938, -0.17747093737125397, 0.1772114485502243, 0.21862880885601044, -0.31093087792396545, -0.054438941180706024, -0.6466705799102783, 0.6675143837928772, 0.2954464554786682, -0.04144355654716492, 0.2611127793...
loosely couple them with interfaces. You can then use some kind of dependency injection to allow for easier testing etc. Another option is to have a factory give you the right repository.
[ 0.6950896382331848, -0.07309499382972717, -0.1377827674150467, 0.3584829866886139, 0.015903649851679802, -0.3006165623664856, 0.048438724130392075, -0.12497171014547348, -0.3548599183559418, -0.6469336748123169, 0.20193512737751007, 0.4406500458717346, -0.36686402559280396, 0.0309118553996...
According to [this site](http://www.opengroup.org/onlinepubs/000095399/functions/erf.html) the error function erf(x) comes from math.h. But actually looking in math.h, it isn't there, and gcc cannot compile the following test program while g++ can: ``` #include <math.h> #include <stdio.h> int main(int argc, char* arg...
[ -0.13363561034202576, 0.4867435693740845, 0.25881049036979675, -0.18948209285736084, -0.01734965667128563, 0.3945085406303406, 0.6219800710678101, -0.2561414837837219, -0.149672269821167, -0.24593107402324677, -0.07320200651884079, 0.5038188695907593, -0.34716516733169556, 0.05870606005191...
be grabbing different headers than gcc, but which ones? EDIT: I wasn't linking in libm with gcc, hence the link error. However, I still don't understand why erf() is not in math.h. Where is it coming from? 'erf' is actually declared in bits/mathcalls.h, which is #included by math.h. The actual declaration is heavily o...
[ 0.4490955173969269, 0.13128696382045746, 0.43353697657585144, -0.17257218062877655, -0.2595145106315613, -0.007362778298556805, 0.22425775229930878, -0.18616890907287598, -0.15300121903419495, -0.3384213149547577, -0.030828937888145447, 0.48683926463127136, -0.3252549171447754, -0.20988543...
I use code like this to dynamically create some link-based controls: ``` <script type="text/javascript"> function BuildControls (id, ...) { var div = document.getElementById (id); /* some stuff with var sp=document.createElement('span'); */ var a = document.createElement ('a'); ...
[ 0.32157790660858154, -0.19416578114032745, 0.6419006586074829, -0.16680891811847687, 0.1336779147386551, -0.12082228809595108, 0.2987178564071655, -0.4579123556613922, -0.21317651867866516, -0.4360581040382385, -0.20409028232097626, 0.490906298160553, -0.407408207654953, 0.0253275558352470...
? '' : 'none'; a.id = 'iAccept'+id+'_'+i+'Control'; div.appendChild (sp); div.innerHTML+='<br />'; div.appendChild (a); a.onclick = function () {alert ('wtf')}; div.innerHTML+='<br />'; } </script> ... <div id="someid"></div> <script type="text/javascript"> Bu...
[ 0.183643639087677, -0.11975373327732086, 0.46381956338882446, -0.29214319586753845, -0.017347104847431183, 0.020367378368973732, 0.632624089717865, -0.13543397188186646, -0.1102370098233223, -0.6078312397003174, -0.27464309334754944, 0.5530402660369873, -0.4780573546886444, -0.090205982327...
is syntactical sugar for: > div.innerHTML= div.innerHTML+'<br />'; Which makes it clearer what is happening: you just serialised the entire contents of the div to HTML, added a tiny string, and parsed the results back into HTML. Even if it worked flawlessly, that'd be really inefficient. When you serialise an elemen...
[ -0.16301676630973816, -0.015325039625167847, 0.44346606731414795, 0.070492684841156, -0.1898576319217682, -0.0024526582565158606, 0.5391080379486084, 0.06871524453163147, -0.09587711095809937, -0.5236005187034607, -0.18218642473220825, 0.2910134196281433, -0.36564260721206665, 0.0120414309...
want it. But for something this simple, you should just be using the standard DOM methods: ``` div.appendChild(document.createElement('br')); ```
[ 0.4759524464607239, 0.20385636389255524, 0.5744464993476868, -0.07309893518686295, 0.46950384974479675, -0.20564647018909454, -0.15110580623149872, -0.23255883157253265, -0.04455273225903511, -0.4075935184955597, -0.3130933940410614, 0.9665418863296509, -0.03683951497077942, 0.166473940014...
We have a Coverity bug for this line of code: ``` snprintf( tempStr, size, testStrings[testID], A2DtoV(testResults[testID].value), A2DtoV(testResults[testID].min),A2DtoV(testResults[testID].max)); ``` The error says: ``` non_const_printf_format_string: "format string is not a string literal, potential security vul...
[ 0.48439982533454895, 0.1983371526002884, 0.4066106379032135, -0.06354176253080368, 0.13917258381843567, -0.30824747681617737, 0.5013906955718994, -0.07819665223360062, -0.1830092966556549, -0.2991009056568146, -0.3606901466846466, 0.44374340772628784, -0.6003531813621521, 0.207509085536003...
at a random address on the stack, which could result in a crash. printf will try to pop additional parameters off the stack, resulting in a stack corruption. Denial of service attack like this is probably the best case, information can be disclosed by getting printf to dump out values on the stack and there are even wa...
[ 0.06790266931056976, -0.1353791505098343, -0.026301207020878792, -0.007424936164170504, 0.00029370785341598094, -0.31955012679100037, 0.5008851885795593, 0.1841995120048523, -0.2012004554271698, -0.5840798020362854, -0.20716282725334167, 0.35811951756477356, -0.509225070476532, 0.392700791...
not appear to help in your case because the const strings appear to contain format strings. Wikipedia has more on format string vulnerabilities here: <http://en.wikipedia.org/wiki/Format_string_vulnerabilities>
[ 0.6423699855804443, 0.1368238478899002, 0.218460813164711, 0.061199698597192764, -0.2274194359779358, -0.3565807044506073, 0.42395851016044617, 0.2975079119205475, -0.40285855531692505, -0.13845640420913696, -0.13813497126102448, 0.7569902539253235, -0.18482047319412231, 0.2481319159269333...
In SQL Server 2005, I'm trying to use a User Defined Function in a indexed view that will be used in a full-text index. I have been able to get the UDF to work with a stored procedure and the view in question. But, when I try to create an index on the view I get the following error... **Cannot create index on view "De...
[ -0.17979519069194794, 0.11801010370254517, 0.26896512508392334, -0.2662714421749115, -0.35389357805252075, -0.4240543842315674, 0.1474345326423645, -0.03386518359184265, -0.11047492921352386, -0.5387961864471436, 0.2642478048801422, 0.6431477665901184, -0.4651104509830475, 0.24738578498363...
possible? *User Defined Function* ``` SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER FUNCTION [dbo].[GetCurrentImage](@Person_ID int) RETURNS int WITH SCHEMABINDING AS BEGIN -- Declare the return variable here DECLARE @Img_ID int SET @Img_ID = (**sql that selects image** ) RETURN @Img_ID ...
[ -0.45594432950019836, 0.010423249565064907, 0.3023485541343689, 0.18785512447357178, -0.05127338692545891, 0.2526642978191376, -0.02309211902320385, -0.408285528421402, 0.014864970929920673, -0.7101691365242004, -0.12326840311288834, 0.23952965438365936, -0.408581018447876, -0.111833833158...
ON [View_PersonSearch](Person_ID) GO ``` According to [this page](http://blog.sqlauthority.com/2007/04/28/sql-server-restrictions-of-views-t-sql-view-limitations/): > Any functions referenced in an indexed > view must be deterministic; > deterministic functions return the > same value each time they’re invoked > ...
[ -0.09719519317150116, -0.5032923817634583, 0.5870248675346375, 0.09696641564369202, -0.1827104389667511, 0.0322607159614563, -0.032213155180215836, -0.07670272886753082, -0.031195374205708504, -0.3839929699897766, -0.1567172408103943, 0.6687357425689697, -0.41615575551986694, 0.02740611322...
This regular expression: ``` <IMG\s([^"'>]+|'[^']*'|"[^"]*")+> ``` seems to process endlessly when given this text ``` <img src=http://www.blahblahblah.com/houses/Images/ single_and_multi/roof/feb09/01_img_trrnjks_vol2009.jpg' /> ``` I would expect it to - not find a match (quickly) - because there is only on...
[ 0.4326571822166443, 0.2437155842781067, 0.5963247418403625, 0.1001679003238678, -0.12975403666496277, -0.1946997195482254, 0.22999101877212524, -0.12974748015403748, -0.17856146395206451, -0.5266379117965698, -0.2214737981557846, 0.30164748430252075, -0.35369643568992615, -0.05026029795408...
still valid HTML variations that this regex won't catch. Like a closing `/` (required in xhtml), or whitespace before the closing bracket. And it will pass some invalid cases, like unsupported attribute names.
[ 0.2017756849527359, -0.1065559834241867, 0.6549690961837769, 0.08092024177312851, -0.05300284922122955, -0.3151819705963135, 0.30288779735565186, 0.2101210057735443, -0.3072872757911682, -0.37746408581733704, -0.4164876341819763, 0.06776823103427887, -0.142959326505661, 0.12275908887386322...
I'm running IntelliJ IDEA 8.0.1 and would like to upgrade my Grails installation to Grails 1.1 which was released today (March 10, 2009). When the upgrade is complete and I try to "run-app" my application I get the error message > "Grails Are Not Configured". It seems to be a known problem - but is there any work-ar...
[ 0.11936110258102417, -0.017971452325582504, 0.44960036873817444, -0.0886080265045166, -0.03743930906057358, -0.0053425682708621025, 0.4366791546344757, 0.10779637843370438, -0.13396047055721283, -0.5676301717758179, 0.181407168507576, 0.6875249147415161, -0.29426705837249756, -0.0240711867...
Is it possible to use a different diff program with CVS? I'd like to use something like meld to give me a side-by-side graphical view of the repository and my changes. It's out of my control to use a different CMS. What would be ideal is some undocumented command line argument that would work like this: ``` cvs diff -...
[ 0.5340327024459839, 0.10577937215566635, 0.20817814767360687, -0.002031047362834215, -0.014529639855027199, -0.07730056345462799, -0.3787873387336731, -0.10263914614915848, -0.2200319617986679, -0.46213996410369873, 0.3471692204475403, 0.8967903256416321, -0.3011700510978699, 0.25780701637...
works for me. I finally found the [cvsmenu plugin](http://www.vim.org/scripts/script.php?script_id=1245) for Vim. It works like a charm for me.
[ 0.49966248869895935, -0.3136012554168701, 0.63088458776474, 0.19533224403858185, -0.06870759278535843, -0.21944870054721832, 0.1376308649778366, 0.23201122879981995, 0.048233408480882645, -0.5936833620071411, 0.06643778085708618, 0.9393648505210876, 0.2113463431596756, 0.1990407109260559, ...
What is the use of having destructor as private? Basically, any time you want some other class to be responsible for the life cycle of your class' objects, or you have reason to prevent the destruction of an object, you can make the destructor private. For instance, if you're doing some sort of reference counting thin...
[ 0.2696632742881775, -0.23386985063552856, -0.024076396599411964, 0.5007995963096619, -0.40857887268066406, -0.17982666194438934, 0.25620386004447937, 0.1770821213722229, -0.3559110760688782, -0.11770682781934738, 0.03129907697439194, 0.6631015539169312, -0.3804279863834381, 0.5404921174049...
instance, what if you have an object that has a manager (or itself) that may destroy it or may decline to destroy it depending on other conditions in the program, such as a database connection being open or a file being written. You could have a "request\_delete" method in the class or the manager that will check that ...
[ 0.0010856202570721507, -0.36270835995674133, -0.31657305359840393, 0.17002083361148834, 0.024763746187090874, -0.10992377996444702, 0.2639849781990051, 0.05431593582034111, -0.3661055862903595, -0.39033740758895874, -0.15884588658809662, 0.4220370054244995, -0.4085766077041626, 0.250702261...
I have a website in Sharepoint 2007. I need to do a query of documents in a document library in a SPWeb/site and to know the KBs of the document. In fact, i have to extract which is the url of the document from a linkfield and then look for the KBs? Anyone can provide the query? or the method? Can i do this with a SP...
[ -0.22719992697238922, -0.08643250167369843, 0.4745408892631531, 0.10755359381437302, -0.2625562250614166, -0.3730737268924713, 0.1479453146457672, -0.07424770295619965, -0.39605122804641724, -0.512572169303894, 0.40727412700653076, 0.46562737226486206, -0.1430702805519104, 0.23786194622516...
if I create ``` typedef double (MyClass::*MemFuncGetter)(); ``` in a header file, do I need to include "MyClass.h" or would **forward declaring** suffice? Header file: ``` #ifndef _TEST_ #define _TEST_ #include "MyClass.h" //do I need this? //or I can just say class MyClass; typedef double (MyClass::*MemFuncGett...
[ 0.24354732036590576, -0.05290234088897705, 0.18818175792694092, -0.17229411005973816, -0.07784222066402435, -0.13005223870277405, 0.413006991147995, -0.4470011293888092, -0.09778986126184464, -0.642402708530426, -0.15605686604976654, 0.3761850893497467, -0.2242700159549713, 0.0201148875057...
bytes of memory. Whereas if you had defined the whole, each function pointer would only take 4. (Of course the sizes are all compiler-dependant).
[ 0.008193301036953926, -0.09870979934930801, 0.18887954950332642, 0.20227748155593872, -0.0901949480175972, 0.29710957407951355, 0.07801797240972519, -0.2946203649044037, -0.2719719409942627, -0.18449775874614716, -0.1182313859462738, 0.2211044430732727, -0.12950313091278076, -0.06268918514...
I have a need to include `*/` in my JavaDoc comment. The problem is that this is also the same sequence for closing a comment. What the proper way to quote/escape this? Example: ``` /** * Returns true if the specified string contains "*/". */ public boolean containsSpecialSequence(String str) ``` **Follow up**: I...
[ -0.18101856112480164, -0.057133279740810394, 0.29793232679367065, -0.07785678654909134, -0.2817525863647461, -0.18145354092121124, 0.5618022084236145, -0.011107724159955978, -0.24503213167190552, -0.6094914674758911, -0.32064157724380493, 0.7269969582557678, -0.3021867275238037, -0.0453157...
boolean containsSpecialSequence(String str) ``` `&#47;` escapes as a "/" character. Javadoc should insert the escaped sequence unmolested into the HTML it generates, and that should render as "\*/" in your browser. If you want to be very careful, you could escape both characters: `&#42;&#47;` translates to `*/` ...
[ -0.07450245320796967, 0.11717475950717926, 0.3327639698982239, -0.19581802189350128, -0.04353771358728409, -0.2653745114803314, 0.49339696764945984, -0.08086718618869781, -0.11992824822664261, -0.48693567514419556, -0.2188742458820343, 0.3020518124103546, -0.4120651185512543, -0.0283587947...
explaination. Hell, C#'s equivalent offers a complete XML tag library. I've seen some pretty intricate structures in there, let me tell you. **Edit 2:** If it bothers you too much, you might embed a non-javadoc inline comment that explains the encoding: ``` /** * Returns true if the specified string contains "*&#47...
[ 0.3477622866630554, 0.008626893162727356, -0.179407998919487, 0.10182981938123703, -0.09995098412036896, -0.35118064284324646, 0.33895620703697205, 0.10799980163574219, 0.14745473861694336, -0.4795227348804474, -0.1829514503479004, 0.4001004099845886, -0.6980791687965393, 0.002679019235074...
Given the following file/directory structure: ``` /photos/1/original/filename1.jpg /photos/1/thumb/filename1.jpg /photos/2/original/filename2.jpg /photos/2/thumb/filename2.jpg /photos/3/original/filename3.jpg /photos/3/thumb/filename3.jpg ``` ...etc. I'm looking for the regexp to convert the file/directory structure...
[ -0.0751987025141716, 0.2075268030166626, 0.7222989201545715, -0.18877798318862915, -0.00958307646214962, -0.06605948507785797, 0.2604793906211853, -0.3979920446872711, -0.32525062561035156, -0.5663179755210876, -0.5518975853919983, 0.4084128439426422, -0.24877364933490753, 0.15904693305492...
How do you encode a png image into base64 using python on Windows? ``` iconfile = open("icon.png") icondata = iconfile.read() icondata = base64.b64encode(icondata) ``` The above works fine in Linux and OSX, but on Windows it will encode the first few characters then cut short. Why is this? [Open the file in binary m...
[ 0.18178826570510864, 0.23343706130981445, 0.26689401268959045, -0.2166297286748886, -0.0997304916381836, 0.04287451505661011, 0.2547113597393036, -0.12512311339378357, -0.2973865568637848, -0.48837345838546753, -0.27912575006484985, 0.4925743043422699, -0.4411671459674835, 0.03811829909682...
on Windows will cause line endings to be rewritten, which will generally break binary files where those characters don't actually indicate the end of a line.
[ -0.17285621166229248, -0.13931505382061005, 0.2690069377422333, 0.06374061852693558, 0.2346574068069458, -0.080531544983387, 0.7100101709365845, 0.44365179538726807, -0.19033996760845184, -0.5160049200057983, -0.7047531604766846, 0.07725140452384949, -0.10076193511486053, 0.337772876024246...
In CodeGear Delphi 2007, how can I turn specific warnings and hints off? I am attempting to turn off H2077 - Value assigned to 'varname' never used. Hints? [No specific](https://stackoverflow.com/questions/444443/can-specific-delphi-hints-be-disabled). You'll have to disable them all: ``` {$HINTS OFF} ``` Warnings...
[ -0.3757445812225342, -0.03753510117530823, 0.2267225682735443, -0.19970522820949554, -0.2595702111721039, -0.06029222533106804, 0.3086567521095276, -0.29286181926727295, -0.005998451728373766, -0.5260189771652222, -0.13596667349338531, 0.5667953491210938, -0.5729110836982727, -0.1180042400...
I'm trying to write my first Cocoa app, and Core Data is making it difficult to model my data objects. I have two entities that I want to manipulate: `Account` and `Transaction`. `Account` has a human-readable name and that's about it. `Transaction` stores a monetary value, and references to two accounts called `debitA...
[ 0.0846109613776207, 0.3276826739311218, 0.11209385842084885, 0.05481987074017525, -0.02867310121655464, 0.21926429867744446, -0.05195963382720947, 0.11016915738582611, -0.261282742023468, -0.4428948760032654, 0.2126341313123703, 0.6724429726600647, -0.08557543158531189, 0.07600762695074081...
binding? The solution that worked best (and made the most sense) to me was to create a subclass of `NSManagedObject` to use as my `Account` entity: ``` @interface Account : NSManagedObject { } -(NSArray*)getTransactions; @end ``` I have the actual lookup logic inside `-getTransactions`, which wasn't too hard to do ...
[ 0.19472360610961914, 0.010710340924561024, 0.4554324150085449, 0.06699631363153458, -0.4550125002861023, -0.28241387009620667, 0.318617045879364, -0.48676788806915283, 0.04213981702923775, -0.4450012743473053, 0.3074180781841278, 0.44212111830711365, -0.40052172541618347, 0.362565547227859...
I am using a 3rd party library that has a declaration like this: ``` typedef struct {} __INTERNAL_DATA, *HandleType; ``` And I'd like to create a class that takes a *HandleType* in the constructor: ``` class Foo { Foo(HandleType h); } ``` **without** including the header that defines *HandleType*. Normally, I...
[ -0.05591227114200592, 0.2664392292499542, 0.2607386112213135, -0.206382155418396, -0.26149675250053406, -0.08001583814620972, 0.13750773668289185, -0.21859517693519592, 0.042360201478004456, -0.6419538259506226, 0.061814986169338226, 0.5315307378768921, -0.27593958377838135, 0.251045525074...
the library. That is to say, it uses the name \_\_INTERNAL\_DATA, which is an implementation detail. It seems like it should be possible to forward-declare HandleType (part of the public API) without using \_\_INTERNAL\_DATA (part of the implementation of the library.) Anyone know how? EDIT: Added more detail about w...
[ 0.18462391197681427, 0.21523362398147583, 0.3715978264808655, -0.0326128713786602, -0.1938403993844986, -0.2307356894016266, 0.2028973400592804, -0.19484327733516693, -0.15520071983337402, -0.5944390892982483, 0.08301202952861786, 0.6167238354682922, -0.30103814601898193, 0.140672951936721...
declaring that. Use that header. Your problem is still a vague one. You are trying to protect against something you cannot. You can add the following line to your client library: ``` typedef struct INTERNAL_DATA *HandleType; ``` but, if the name/structure changes you may be in for some casting nastiness. Try tem...
[ 0.3724644184112549, 0.07024949789047241, 0.2056645303964615, -0.12601855397224426, -0.25668880343437195, -0.3135177493095398, 0.34193500876426697, -0.13699178397655487, -0.19197605550289154, -0.5823458433151245, -0.05366414785385132, 0.700449526309967, -0.4477193355560303, 0.30813819169998...
I'm using the MSIE `WebBrowser` control in a C# desktop application and am looking for a way to build and maintain trees of `HtmlElement` objects outside of this control. I am trying to quickly switch between multiple complex pages without incurring the overhead of re-parsing the HTML each time (and I don't want to mai...
[ 0.17050281167030334, 0.3560774028301239, 0.560810923576355, 0.09516146034002304, -0.146710604429245, -0.25291311740875244, 0.509092390537262, 0.23263025283813477, -0.09689445793628693, -0.5877400636672974, -0.036896929144859314, 0.3076445460319519, -0.35684868693351746, 0.3981298506259918,...
to the root element. How can I do this? P.S. I am willing to consider alternative browser controls (e.g. Gecko) if they allow me to accomplish the above. This will do it ``` // On screen webbrowser control webBrowserControl.Navigate("about:blank"); webBrowserControl.Document.Write("<div id=\"div1\">This will change</...
[ -0.046593666076660156, -0.04275684431195259, 0.8645381927490234, -0.11896119266748428, 0.3942207396030426, -0.12168552726507187, 0.5554365515708923, -0.5496416687965393, -0.20407210290431976, -0.701662003993988, -0.27461880445480347, 0.835532546043396, -0.1909918189048767, 0.18601006269454...
same if you have one large page with hidden div's or have multiple div's in memory in other objects?
[ 0.29791727662086487, -0.12777428328990936, -0.10978662967681885, 0.31262311339378357, 0.04635171964764595, -0.07889247685670853, 0.15267449617385864, -0.07022076100111008, -0.6511499285697937, -0.49744296073913574, 0.051490217447280884, 0.326080858707428, -0.08208903670310974, -0.087146013...
I tend to develop my apps in 'setup.py develop' -mode. I'd want the configuration to switch automagically on production mode when the program gets 'setup.py install'ed. This can be done by poor hacks, like checking whether installation directory contains 'setup.py', but I wonder whether pkg\_resources can do this for ...
[ 0.7148705720901489, 0.16629211604595184, 0.3519480526447296, -0.04915335029363632, 0.17104469239711761, -0.19990015029907227, 0.4302327632904053, -0.10343248397111893, -0.21247227489948273, -0.6144018769264221, -0.464518666267395, 0.8652245998382568, -0.28391170501708984, -0.20035688579082...
I have the following T-SQL to display all the permissions granted to principals on my SQL server 2005: ``` select dp.NAME AS principal_name, --1 dp.type_desc AS principal_type_desc, --2 o.NAME AS object_name, --3 p.permission_name, --4 p.state_desc AS permission_state_desc --5 from sys.database_permissions ...
[ -0.5506778359413147, 0.082310751080513, 0.4297409951686859, 0.16688905656337738, -0.13700652122497559, -0.04989379644393921, 0.47744613885879517, -0.06178857013583183, -0.10881657898426056, -0.08090581744909286, -0.10851701349020004, 0.41778814792633057, 0.14543837308883667, 0.661947131156...
3 4 5 ... public DATABASE_ROLE system_views SELECT GRANT .... ``` I think object\_name system\_views is for all the views in my database Views|system\_views folder. I tried the following T-SQL (just to see if it works by GRANT again): ``` GRANT SELECT ON system_views TO public ``` I got error "C...
[ -0.03372719883918762, 0.03469858691096306, 0.6296858191490173, -0.14174455404281616, -0.3676871657371521, -0.020025629550218582, 0.15320073068141937, -0.5554538369178772, -0.0799560546875, -0.5342252850532532, 0.022034866735339165, 0.297511488199234, -0.3076470196247101, 0.4918164312839508...
public (user or principal?) and roll permission back if I have to. The second question is if the revoke on system\_views for public have any side-effect for other users? There's no reason to revoke rights to view the system views. Users can only see the objects that they already have access to, so they already know tho...
[ 0.3442879319190979, 0.03224613890051842, 0.40045681595802307, 0.2452484369277954, 0.0015459589194506407, -0.23481309413909912, 0.026492051780223846, 0.10958826541900635, -0.34018149971961975, -0.20132304728031158, -0.11826130002737045, 0.5827321410179138, -0.17902083694934845, 0.4043012559...
If I have an XML document like ``` <root> <element1> <child attr1="blah"> <child2>blahblah</child2> <child> </element1> </root> ``` I want to get an XML string with the first child element. My output string would be ``` <element1> <child attr1="blah"> <child2>blah...
[ 0.3411436676979065, -0.028082644566893578, 0.16217662394046783, -0.010029386729001999, 0.09545300900936127, 0.5226169228553772, -0.24379390478134155, -0.4366512596607208, 0.04983057081699371, -0.7880451679229736, -0.030899180099368095, 0.2644765079021454, -0.06293070316314697, -0.083377093...
but it's not clear that there is a good way to do this. thanks You're right, with the standard XML API, there's not a good way - here's one example (may be bug ridden; it runs, but I wrote it a long time ago). ``` import javax.xml.*; import javax.xml.parsers.*; import javax.xml.transform.*; import javax.xml.transform...
[ 0.14510378241539001, 0.062379661947488785, 0.35187825560569763, -0.23972409963607788, 0.03461167961359024, 0.07483657449483871, 0.6537558436393738, -0.4176548421382904, -0.09851466864347458, -0.6908358335494995, -0.40249472856521606, 0.4006188213825226, -0.6591456532478333, 0.0760726779699...
Document doc = builder.parse(new File("in.xml")); //Set up the transformer to write the output string TransformerFactory tFactory = TransformerFactory.newInstance(); Transformer transformer = tFactory.newTransformer(); transformer.setOutputProperty("indent", "yes"); StringWriter...
[ -0.13282810151576996, -0.3970455527305603, 0.7426899671554565, -0.06955952942371368, 0.19787642359733582, 0.3575940728187561, 0.32939669489860535, -0.4454726576805115, 0.27644848823547363, -0.7940208911895752, -0.2725265324115753, 0.4755852222442627, -0.17384278774261475, 0.270194560289382...
as well NodeList nl = doc.getDocumentElement().getChildNodes(); DOMSource source = null; for(int x = 0;x < nl.getLength();x++) { Node e = nl.item(x); if(e instanceof Element) {
[ -0.37906673550605774, -0.42105111479759216, 0.63840651512146, -0.045334115624427795, 0.2689794898033142, 0.08779636025428772, 0.3571983873844147, -0.3503127992153168, -0.4020077586174011, -0.5482662916183472, -0.4167017340660095, 0.5030509233474731, -0.16120973229408264, 0.3337023258209228...
source = new DOMSource(e); break; } } //Do the transformation and output transformer.transform(source, result); System.out.println(sw.toString()); } } ``` It would seem like you could get the first child just by using doc.getDocumentElement().getFirstCh...
[ -0.09091790020465851, -0.2820012867450714, 0.41443151235580444, -0.16919149458408356, 0.5964488983154297, 0.0852888822555542, 0.34777960181236267, -0.37871894240379333, 0.06973673403263092, -0.8433369994163513, -0.29444634914398193, 0.6939852237701416, -0.19323386251926422, 0.4617827832698...
root and the child element, that will create a Text node in the tree, and you'll get that node instead of the actual element node. The output from this program is: ``` D:\home\tmp\xml>java Proc <?xml version="1.0" encoding="UTF-8"?> <element1> <child attr1="blah"> <child2>blahblah</child2> </...
[ -0.25311559438705444, 0.09072863310575485, 0.2822961211204529, -0.11280664801597595, 0.5174599289894104, 0.21979564428329468, 0.04525354132056236, -0.13645288348197937, -0.12852391600608826, -0.8252958059310913, -0.15593814849853516, 0.2929352819919586, -0.0012097071157768369, 0.1721349805...
I was re-reading Joel's [Strategy Letter II: Chicken and Egg problems](http://www.joelonsoftware.com/articles/fog0000000054.html) and came across this fun quote: > In fact, WordStar was ported to DOS > by changing one single byte in the > code. (Real Programmers can tell you > what that byte was, I've long since > ...
[ -0.07023832947015762, -0.03527555614709854, 0.11213125288486481, 0.17275868356227875, -0.368003249168396, 0.10025176405906677, 0.3481563329696655, 0.3185761272907257, -0.13327553868293762, -0.5068976283073425, 0.1283896118402481, 0.4087904989719391, -0.1355525255203247, 0.2153932899236679,...
> Apr 1982 > > > In one single all-night session Jim Fox patched the CP/M-86 version of WordStar to make it run under MS-DOS on the IBM PC so that it could be demonstrated to Rubenstein. The actual port was done by a group of Irish programmers using Intel development systems, which ran the ISIS II operating system. T...
[ 0.39901003241539, 0.1974634826183319, 0.015005603432655334, 0.17923036217689514, 0.11684834957122803, 0.3382475972175598, 0.3951502740383148, -0.1503082811832428, 0.2316395342350006, -0.35117805004119873, -0.05608893930912018, 0.5274838209152222, -0.29131197929382324, -0.03719315677881241,...
System), which Microsoft bought from a Seattle company, appropriately named Seattle Computer Products, in July 1981. QDOS had been developed as a clone of the CP/M eight-bit operating system in order to provide compatibility with the popular business applications of the day such as WordStar and dBase. CP/M (Control Pro...
[ -0.3494703471660614, 0.18272791802883148, 0.22615602612495422, 0.2931487560272217, 0.4065893590450287, 0.14079149067401886, 0.1206609457731247, 0.20435495674610138, 0.020148511976003647, -0.17647790908813477, -0.10852736979722977, 0.2866690158843994, -0.4571422338485718, 0.4061873853206634...
I am using Jörn Zaefferer's jquery autocomplete plugin, and I can't seem to figure out how to make it work when I clone an autocomplete field. It almost works, in that the cloned autocomplete field displays the choices when the I type in text, but I cannot select items. At first I thought it was a browser-compatibility...
[ 0.11300640553236008, 0.11218587309122086, 0.17303510010242462, -0.13603192567825317, -0.19789545238018036, 0.04521125555038452, 0.1262858808040619, -0.3177017867565155, -0.1002892553806305, -0.8892061114311218, -0.1426994949579239, 0.5973143577575684, -0.25348082184791565, -0.1342329084873...
function setAutocomplete() { var users = [ { name: "Fred", id: "1" }, { name: "Barney", id: "2" }, { name: "Wilma", id: "3" } ]; $(".user_selector").autocomplete(users, {
[ 0.5084932446479797, -0.49822998046875, 0.41538485884666443, -0.13191260397434235, 0.26768162846565247, 0.13173475861549377, 0.14691859483718872, -0.3605191707611084, -0.02054697461426258, -0.47123774886131287, -0.273444265127182, 0.6182475090026855, -0.7717981338500977, -0.1246970444917678...
mustMatch: true, matchContains: true, minChars: 2, formatResult: function(row) { return row.name; }, formatItem: function(row, i, max) { return row.name; } }
[ -0.35911738872528076, -0.06672152131795883, 0.28447696566581726, -0.045732077211141586, 0.2763848304748535, 0.12617461383342743, 0.19991323351860046, -0.35980314016342163, 0.39204296469688416, -0.38177043199539185, -0.24030962586402893, 0.6191481351852417, -0.3236773610115051, 0.0211897976...
); } var current= 0; var addParticipantFields = function() { current++; $newParticipant = $("#template").clone(true); $newParticipant.removeAttr("id"); $newParticipant.removeClass("hide_element"); $prefix = "extra" + current; $newParticipant.children("d...
[ 0.17505483329296112, -0.3377455174922943, 0.6482806205749512, -0.2945742905139923, 0.6010338068008423, 0.4384757876396179, 0.26226523518562317, -0.5626239776611328, -0.23445133864879608, -0.30867820978164673, -0.3081195652484894, 0.3935314118862152, -0.4390600323677063, 0.47916194796562195...
$currentElem.attr("name",$prefix+$currentElem.attr("name")); }); $newParticipant.appendTo("#participantsField"); setAutocomplete(); } $(document).ready(function() { setAutocomplete(); $("#addParticipant").live("click", addParticipantFields); }); </script> </head> <...
[ 0.03834444656968117, -0.452665239572525, 0.47900450229644775, 0.05621187761425972, 0.25385481119155884, 0.30232518911361694, -0.22094108164310455, -0.5542988777160645, -0.3013414442539215, -0.6353287696838379, -0.21352653205394745, 0.504098653793335, -0.242731511592865, 0.0331413671374321,...
value="Add Another Participant"></p> <p><input class="button" type="submit" value="Submit"/></p> </form> </body> </html> ``` Make ``` $newParticipant = $("#template").clone(true); ``` like so ``` $newParticipant = $("#template").clone(); ``` Your example works for me in FF when you don't clone events on #templat...
[ 0.3019523024559021, -0.3522929549217224, 0.0768287405371666, 0.014803034253418446, 0.024566562846302986, 0.05535015091300011, 0.24232010543346405, -0.42801642417907715, -0.3415260314941406, -0.808576762676239, 0.13359235227108002, 0.4450571835041046, -0.327728807926178, 0.17924612760543823...
I have a report with one group (Office Name) which page breaks between each group - so the data for only one Office can appear on a given page. How do I get that Office Name to appear in the page header? I tried creating a hidden textbox in the details section of the report which has the Office Name value and then re...
[ 0.4186710715293884, 0.4246754050254822, 0.5249062180519104, 0.10989177972078323, 0.0707983672618866, 0.09678617864847183, 0.055690620094537735, -0.2968096137046814, -0.30000394582748413, -0.4482817053794861, -0.07287196815013885, -0.017324082553386688, -0.14370319247245789, 0.1845833510160...
someone else runs across this issue. For some reason referencing the text box did not work, but when I put a hidden column in the table with the same value, I could then reference that in the Page Header.
[ 0.25552693009376526, 0.22241482138633728, 0.18718871474266052, 0.191663920879364, -0.2264581024646759, -0.09329191595315933, 0.2960895895957947, -0.07347425073385239, -0.16365550458431244, -0.5032944083213806, 0.30431067943573, 0.2390241026878357, -0.14797979593276978, 0.13061487674713135,...
I've got a list of email addresses belonging to several domains. I'd like a regex that will match addresses belonging to three specific domains (for this example: foo, bar, & baz) So these would match: 1. a@foo 2. a@bar 3. b@baz This would not: 1. a@fnord Ideally, these would not match either (though it's not crit...
[ 0.27971577644348145, 0.21097058057785034, 0.3783116936683655, -0.26594656705856323, 0.010616070590913296, -0.004476524889469147, 0.05237141251564026, -0.2754351496696472, -0.07339222729206085, -0.5515603423118591, 0.11278115957975388, 0.33900031447410583, -0.7393829226493835, 0.04834033921...
front of the email address! You should replace that with a suitable regex.)
[ 0.10307184606790543, -0.06610681861639023, 0.42257529497146606, 0.12724484503269196, -0.016985319554805756, 0.11144593358039856, 0.21616987884044647, 0.20590253174304962, -0.1292700469493866, -0.30215418338775635, -0.25316521525382996, 0.2720670700073242, -0.11654562503099442, 0.1283569037...
I want to run a cron job that does cleanup that takes a lot of CPU and Mysql resources. I want it to run only if the server is not relatively busy. What is the simplest way to determine that from PHP? (for example, is there a query that returns how many queries were done in the last minute? ...) ``` if (function_exist...
[ 0.4012773334980011, 0.16394120454788208, 0.3664737939834595, -0.18078187108039856, 0.1358506679534912, -0.025779718533158302, 0.3326025903224945, -0.027840295806527138, -0.11845318228006363, -0.6419410705566406, -0.0428876131772995, 0.5192650556564331, -0.4342879354953766, 0.17772364616394...
later.'); } } ``` Try to update this function to your needs
[ 0.18160797655582428, 0.004441063851118088, 0.5517494082450867, -0.07271680235862732, 0.48670321702957153, -0.1523134708404541, 0.29161375761032104, -0.019162699580192566, 0.327247679233551, -0.9311612844467163, -0.3013288378715515, 0.7827135920524597, -0.2884790301322937, 0.067755535244941...
title speaks for itself, ``` db.ExecuteCommand("INSERT INTO tCSVFile(fileName, fileContent, mimetype, timeCreated) VALUES({0}, {1}, {2}, {3})", filename, EncodeTo64(CreateCSVFile(header, rows)), "text/csv", DateTime.Now ); ``` this works fine from the virtual server but on iis inserting causes nothing to happen. A...
[ 0.13175557553768158, -0.06441204994916916, 0.47859716415405273, 0.16176074743270874, 0.18215830624103546, -0.36441153287887573, 0.31801745295524597, -0.16927839815616608, -0.013986581936478615, -0.43602508306503296, -0.20772063732147217, 0.6304814219474792, 0.008985023014247417, 0.60439115...
mimetype = "text/csv", timeCreated = DateTime.Now }; db.tCSVFiles.InsertOnSubmit(c); db.SubmitChanges(); ``` again works on virtual server but on iis no luck. any help would be greatly appreciated as i have looked on the web and havent found anything of use. My selects work fine and can...
[ -0.07586620002985, 0.001059851492755115, 0.09722098708152771, 0.14564062654972076, 0.3083084225654602, 0.09243372082710266, 0.39178332686424255, -0.21688665449619293, 0.13990487158298492, -0.4672924280166626, -0.12847130000591278, 0.5429571270942688, -0.22192472219467163, 0.413574337959289...
view and is done through ajax.beginform() After finally spending couple hours looking for some sort of exception I saved the stack trace in an event log and found this error ``` System.Data.SqlClient.SqlException: Failed to update database "(database directory)" because the database is read-only. ``` So with some f...
[ 0.23597946763038635, -0.06809752434492111, 0.7170724272727966, -0.15457415580749512, -0.12611174583435059, -0.28392183780670166, 0.3480776250362396, -0.2205587923526764, -0.339032918214798, -0.8624213337898254, -0.08752574771642685, 0.8782294392585754, -0.17297354340553284, 0.1667710691690...
returned...I had to do so much to access the stack trace, I don't want to even begin... Anyways the link is this just follow the steps and it should point you in the right direction. <http://social.msdn.microsoft.com/forums/en-US/sqldataaccess/thread/2e776fb4-6df9-4a11-96f1-948b8a2f839a/#page:2>
[ -0.23112690448760986, -0.09004803746938705, 0.6457767486572266, 0.07209146022796631, 0.16762690246105194, -0.11532914638519287, 0.3338624835014343, -0.12038711458444595, -0.19333232939243317, -0.6401159763336182, 0.04102900251746178, 0.2739231586456299, 0.049588825553655624, 0.146745264530...
I have a library I'm writing unit tests for. The library is used by two applications: one a Windows service, the other a command-line application that does some registry read-writes. Each has a slightly different App.config file that is loaded from the library at start-up. For example: ``` public RetentionService(...
[ 0.6760756969451904, 0.0012438034173101187, 0.4439377784729004, 0.12522955238819122, 0.3423226773738861, 0.036590058356523514, 0.12095365673303604, -0.33964669704437256, -0.04792005568742752, -0.5011394619941711, -0.048621635884046555, 0.3165726363658905, -0.2413037121295929, 0.220715388655...
asr.GetValue(@"blocking-process-list", Type.GetType(@"System.String")); string appsList = appsListObj.ToString(); _BlockingAppNames = RetentionService.ListFromList(appsList); string targetList = asr.GetValue(@"target-files", Type.GetType(@"System.String")).ToString(); _TargetLogs = Rete...
[ 0.20006634294986725, -0.10914350301027298, 0.6832147240638733, -0.2326708287000656, 0.1150989755988121, 0.111026331782341, 0.4380206763744354, -0.521518349647522, -0.32404786348342896, -0.692878007888794, -0.2020031362771988, 0.7331723570823669, -0.38042598962783813, -0.10919254273176193, ...
but from a third location if running a unit test. If your unit tests are designed to test the code, then don't depend on the config file at all. Extract your dependency out of your classes and use dependency injection to inject the data in. That way, you can stub your configuration class. If you *are* actually just te...
[ 0.8180970549583435, -0.08134769648313522, 0.062018491327762604, 0.0480906181037426, 0.11069744825363159, -0.3824138641357422, 0.3236290514469147, -0.16812941431999207, -0.06817637383937836, -0.7078521847724915, -0.005390424281358719, 0.47280752658843994, -0.10392289608716965, -0.0339875891...