text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
is not a function means that you named your submit button or some other element `submit`. Rename the button to `btnSubmit` and your call will magically work. When you name the button submit, you override the `submit()` function on the form.
[ 0.7103290557861328, -0.33158567547798157, 0.425479531288147, -0.012149916961789131, 0.10740672051906586, -0.09794211387634277, 0.3912111222743988, -0.009601812809705734, 0.03379744663834572, -0.46121811866760254, -0.4778851568698883, 0.3471528887748718, -0.40442606806755066, 0.177043557167...
can any body tell me how to conver const char\* to char\*? ``` get_error_from_header(void *ptr, size_t size, size_t nmemb, void *data) { ErrorMsg *error = (ErrorMsg *)data; char* err = strstr((const char *)ptr,"550"); //error cannot convert const char** to char* if(err) { strncpy(error->data,(...
[ 0.21316544711589813, 0.05932459607720375, 0.6656447052955627, -0.048220064491033554, 0.005479968152940273, 0.11315595358610153, 0.6433007717132568, -0.4593595862388611, 0.1801932007074356, -0.5296843647956848, -0.01211344264447689, 0.6655089259147644, 0.12520112097263336, -0.26215901970863...
function, so why bother creating it? ``` if (NULL != strstr((const char *)ptr, "550")) { ``` If you do need it, will you really need to modify whatever it points to? If not, then declare it as `const` also: ``` const char* err = strstr((const char *)ptr, "550"); ``` Finally, as casts are such nasty things, it is ...
[ 0.046419937163591385, -0.07788020372390747, 0.21316848695278168, -0.2247162163257599, 0.24834828078746796, 0.17428606748580933, 0.41270095109939575, -0.33859243988990784, 0.21829545497894287, -0.33054471015930176, -0.2810417115688324, 0.678270161151886, -0.3677506446838379, -0.091330245137...
When inside a class you have a private fiels and expose that field on a public property, which one should I use from inside the class? Below you is an example on what I am trying to find out. Should manioulate the Private Field \_Counter or the Property Counter? Public Class Test ``` Private _Counter As Integer Pub...
[ -0.0009964487981051207, -0.24268978834152222, 0.13317373394966125, 0.04426063597202301, -0.03410688415169716, 0.035377662628889084, 0.32776641845703125, -0.4951147139072418, -0.11189684271812439, -0.49348944425582886, -0.24469831585884094, 0.7108108997344971, -0.17683081328868866, 0.235163...
'What is the best practice? 'Direct access to private field or property? 'On SET _Counter += 1 'OR Me.Counter += 1 'On Get Console.WriteLine(_Counter) Console.WriteLine(Me.Counter) End Sub ``` End Class Thanks in advance for the help. Edu In my opinion, using a public accessor inte...
[ 0.04304739832878113, 0.012776748277246952, 0.09602119028568268, -0.10198935121297836, 0.16927166283130646, -0.1889173835515976, 0.396911084651947, -0.08637691289186478, -0.25720736384391785, -0.528427243232727, -0.40905240178108215, 0.5071060657501221, -0.09191596508026123, 0.2081211358308...
rarely had a situation when it would help much. Instead, I prefer to access fields directly, and only if it's really needed, to abstract the access by creating a *private* accessor, which can be used by both the public accessor and other functions. The rationale is that if you need to attach some special logic in the p...
[ 0.2624306380748749, 0.05620831251144409, -0.03870896250009537, 0.18366187810897827, -0.2022746056318283, -0.24237921833992004, 0.10381761193275452, 0.09747299551963806, -0.08243345469236374, -0.4632265269756317, -0.28255894780158997, 0.6570219993591309, -0.17066672444343567, 0.079343326389...
a direct access.
[ -0.08892764151096344, -0.007488091941922903, 0.17568367719650269, 0.2924942076206207, -0.04089313745498657, -0.10400351881980896, 0.18477551639080048, 0.168934166431427, -0.05187958478927612, -0.5185847878456116, -0.2878652513027191, 0.01515144482254982, -0.1128656268119812, 0.111210830509...
I wonder, does there exist something like [Velocity](http://msdn.microsoft.com/en-us/data/cc655792.aspx), but for internal use? Essentially a .net Object Cache that I'll install at a server and that speaks WCF (or something more appropriate?) with my applications - mainly ASP.net, but possibly WinForms as well. Objec...
[ 0.08020731061697006, -0.09120524674654007, 0.43766361474990845, 0.4596635401248932, 0.12045343965291977, -0.07850860804319382, 0.12316976487636566, -0.060423944145441055, -0.28144389390945435, -0.5824833512306213, -0.0956922397017479, 0.3733287751674652, 0.2106805443763733, 0.0370829515159...
method I found: ``` /* Example calculates the sum of the prime factors of the first 32 Fibonacci numbers */ #include <stdio.h> typedef enum{false=0, true=1}bool; /* the following line is the only time I have ever required "auto" */ #define FOR(i,iterator) auto bool lambda(i); yield_init = (void *)&lambda; iterat...
[ 0.20135128498077393, -0.3467036485671997, 0.414366751909256, -0.3716469407081604, 0.2833268344402313, 0.13439036905765533, 0.32268497347831726, -0.7195073366165161, -0.1402634233236313, -0.11117980629205704, 0.05349959805607796, 0.6108766198158264, -0.565587043762207, -0.049146462231874466...
from stack, and may terminate early */ typedef void iterator; /* hint at procedure purpose */ static volatile void *yield_init; #define YIELDS(type) bool (*yield)(type) = yield_init iterator fibonacci(int n){ YIELDS(int); int i; int pair[2] = {0,1}; YIELD(0); YIELD(1); for(i=2; i<n; i++){ pair[i%...
[ 0.04656687378883362, -0.4707379937171936, 0.4083279073238373, -0.46555864810943604, 0.15484721958637238, 0.3746728003025055, 0.1413474678993225, -1.0416772365570068, -0.0037475323770195246, -0.3216712474822998, -0.27994704246520996, 0.7273879647254944, -0.3169526159763336, 0.20677679777145...
} } YIELD(n); } main(){ FOR(int i, fibonacci(32)){ printf("%d:", i); int sum = 0; FOR(int factor, factors(i)){ sum += factor; printf(" %d",factor); CONTINUE; } printf(" - sum of factors:
[ -0.24746739864349365, -0.40083232522010803, 0.2627512514591217, -0.5438680648803711, 0.3552645444869995, 0.44866710901260376, 0.32005298137664795, -0.6577073931694031, -0.06128174439072609, -0.4924269914627075, -0.25051388144493103, 0.6203795075416565, -0.4673991799354553, 0.23596224188804...
%d\n", sum); CONTINUE; } } ``` Got the idea from <http://rosettacode.org/wiki/Prime_decomposition#ALGOL_68> - but it reads better in C
[ -0.03521640598773956, 0.051640454679727554, 0.1951696127653122, -0.28096386790275574, 0.20201605558395386, -0.22155681252479553, 0.10544738918542862, -0.054957274347543716, 0.17284518480300903, -0.2453378438949585, -0.3727574050426483, 0.40461310744285583, -0.48973187804222107, 0.134773761...
Can I use System.Threading to simulate user connection speed or is there a better way or tool. Thanks in advance. [Fiddler2](http://www.fiddler2.com/fiddler2/) is an HTTP proxy that allows you to simulate modem speeds. (I don't know about throttling tools for TCP, much less UDP) edit for comment: It sets itself as ...
[ -0.08587045967578888, -0.15473788976669312, 0.5480713844299316, 0.21115075051784515, -0.06614980846643448, -0.15356017649173737, 0.23022593557834625, -0.10004082322120667, -0.18870200216770172, -0.7260147929191589, 0.33283495903015137, 0.5215693712234497, 0.1253022998571396, 0.259821861982...
Is it possible to know which processes are running using Qt 4? I'm looking for a way to wait until an application is closed by the user to make an operation. I don't know a Qt solution either. But doing it is not that hard using the`CreateToolhelp32Snapshot()`, `Process32FirstW()` and `Process32NextW()` functions. Just...
[ 0.3124731481075287, -0.09515909105539322, 0.12956498563289642, 0.01471954956650734, 0.20596931874752045, -0.2336907684803009, 0.3575531840324402, -0.02395087294280529, -0.17385157942771912, -0.7137467861175537, 0.046799033880233765, 0.6908974051475525, -0.28073057532310486, 0.0865082070231...
Collectively check space of files in linux... I have nearly more than 100 of files ...to check the size collectively... --- *Edit*: What I need is: I have a folder containing 1000 files and I need something so that I can calculate the total sum [*of what?*] of 100 files only which I need...not all 1000 files..... Th...
[ 0.4272476136684418, 0.19304609298706055, 0.08626837283372879, -0.13125744462013245, -0.38492080569267273, -0.046001236885786057, 0.12327839434146881, -0.34942808747291565, -0.42328694462776184, -0.6037337183952332, 0.13055101037025452, 0.52400141954422, -0.17238137125968933, 0.193040832877...
prints a single line showing the "total" number, with a friendly "human-readable" (that's the `-h` option to ls) unit even. Note that this does not work with wildcards, since then ls suppresses its "total"-line.
[ -0.13271351158618927, -0.44294026494026184, 0.27696844935417175, 0.24765966832637787, -0.07788953930139542, -0.050641633570194244, -0.08625202625989914, -0.085235595703125, -0.1817367970943451, -0.15883611142635345, -0.5659316778182983, -0.0797213762998581, -0.490975946187973, -0.047203686...
I could grep through /etc/passwd but that seems onerous. 'finger' isn't installed and I'd like to avoid that dependency. This is for a program so it would be nice if there was some command that let you just access user info. You don't specify a programming language, so I'll assume you want to use the shell; here's **an...
[ 0.41787198185920715, 0.21207885444164276, 0.3108274042606354, -0.1502682864665985, -0.20835070312023163, 0.17853577435016632, 0.4279630780220032, -0.09138885140419006, -0.2851511240005493, -0.11019673198461533, 0.15998049080371857, 0.596452534198761, -0.44169676303863525, 0.138664379715919...
of the user is recorded in a field called the **[“GECOS” field](http://en.wikipedia.org/wiki/Gecos_field)**; to complicate matters, this field often has its own structure with the **full name as just one of several optional sub-fields**. So anything that wants to get the full name from the account record needs to parse...
[ -0.07174164056777954, 0.4529001712799072, 0.37463587522506714, -0.21860124170780182, 0.3884318172931671, 0.0729214996099472, 0.181423619389534, -0.07415812462568283, -0.11133094877004623, -0.5590065121650696, -0.3531898558139801, 0.5582762956619263, -0.01455644890666008, -0.128419518470764...
When using std::map in c++, is it possible to store inherited classes as their "base class" in the map and still being able to call their overloaded methods? See this example: ``` #include <iostream> #include <map> class Base { public: virtual void Foo() { std::cout << "1"; } }; class Child : public Base { ...
[ 0.04224986955523491, 0.028933150693774223, 0.19440197944641113, -0.2629745602607727, 0.34908902645111084, 0.24910041689872742, 0.15325431525707245, -0.2752280831336975, -0.08363047242164612, -0.6469208002090454, -0.2028835117816925, 0.41717907786369324, -0.45853477716445923, 0.122248306870...
me that polymorphism doesn't work when you use std::map. Polymorphism doesn't work in that case because the std::map stores the Base as a value type, so the [objects get sliced](http://en.wikipedia.org/wiki/Object_slicing). If you want to have polymorphism on stored objects, you need to store pointers or use one of th...
[ 0.10330978035926819, -0.06410571187734604, -0.11254096776247025, -0.10567177087068558, 0.004207998514175415, -0.22172822058200836, 0.28642597794532776, -0.03659527376294136, -0.1499721258878708, -0.5978884696960449, 0.018619177863001823, 0.4249795973300934, -0.5832241773605347, 0.339942127...
If I want to allocate a char array (in C) that is guaranteed to be large enough to hold any valid absolute path+filename, how big does it need to be. On Win32, there is the MAX\_PATH define. What is the equivalent for Unix/linux? There is a `PATH_MAX`, but it is a bit problematic. From the bugs section of the [realpa...
[ -0.2652195692062378, -0.0886785015463829, 0.47959262132644653, -0.1888064295053482, 0.0722334012389183, -0.18131233751773834, 0.14904236793518066, -0.27521777153015137, -0.3967863917350769, -0.7468406558036804, 0.18005214631557465, 0.8496260643005371, -0.3921527564525604, -0.26216128468513...
need not be a defined > constant, and may have to be obtained using [pathconf(3)](http://man7.org/linux/man-pages/man3/pathconf.3.html). And > asking [pathconf(3)](http://man7.org/linux/man-pages/man3/pathconf.3.html) does not really help, since, on the one hand > POSIX warns that the result of [pathconf(3)](http://...
[ -0.14629173278808594, -0.19617150723934174, 0.24226149916648865, 0.03380388393998146, 0.2354351133108139, -0.24703623354434967, 0.04217004403471947, -0.3637416362762451, -0.27559152245521545, -0.6327565312385559, -0.28199365735054016, 0.5424728393554688, -0.2575521469116211, 0.150706082582...
I'm working on a couple of C projects and I'd like to use automated theorem proving to validate the code. Ideally I'd just like to use the ATP to validate the functions contracts. Is there any functionality in C/gcc or external software/packages/etc that would enable design-by-contract style coding? If not then thats ...
[ 0.7544977068901062, 0.18720702826976776, -0.10250575095415115, 0.3562154471874237, -0.02295755408704281, -0.33989202976226807, -0.16015313565731049, -0.057715948671102524, 0.07587406784296036, -0.49338874220848083, 0.00827259011566639, 0.7830732464790344, -0.18957428634166718, -0.223754882...
going. Most of them are beta - but you might consider contributing to them rather than starting your own. The one at RubyForge, [Design by Contract for C](http://rubyforge.org/projects/dbc/), looks very promising. [GNU Nana](http://www.gnu.org/software/nana/) has been around for a long time and will probably suit you...
[ 0.3765924572944641, -0.11493543535470963, -0.25156673789024353, -0.07440202683210373, -0.4060494899749756, -0.016904713585972786, 0.20964869856834412, -0.3101179897785187, -0.06703849881887436, -0.2975386381149292, 0.1942848563194275, 0.2761402130126953, -0.22893820703029633, 0.02476449869...
Java [1](http://rubyforge.org/projects/dbc/) I decided to > use a subset of the Object Constraint > Language to express contracts [4]. > Using Ruby and Racc, I created Design > by Contract for C, a code generator > that turns contracts embedded in C > comments into C code to check the > contracts.
[ 0.2920922338962555, 0.03573537617921829, -0.2640543282032013, -0.3165494203567505, -0.42156580090522766, 0.18082481622695923, 0.037390004843473434, -0.5579950213432312, 0.05610760673880577, -0.6102439761161804, 0.11173521727323532, 0.4727863669395447, -0.5768569707870483, -0.11902827024459...
I need to remove a single character from a string, eg in the text block below I would need to be able to remove ONE of the j's. djriojnrwadoiaushd leaving: driojnrwadoiaushd *You can also use str\_relpace with the $count parameter: $str = 'djriojnrwadoiaushd'; echo str\_replace('j', '', $str, 1);* Ups, sorry.. my...
[ -0.019534355029463768, 0.2679895758628845, 0.22638046741485596, -0.5064390897750854, 0.12304916232824326, 0.19837743043899536, 0.7023273706436157, -0.29669374227523804, -0.14810453355312347, -0.3359374701976776, -0.2885996103286743, 0.4830153286457062, -0.3993765115737915, 0.00452306028455...
i have a mdb access which is password protected but that can be easily cracked by a free tool found in google within like 1second. Besides paying for some expensive tools, is there a good way in how to protect a ms access databse file? I'm thinking of encrypting it then via a dll to decrypt it, get some data, and pass ...
[ 0.30130359530448914, 0.3835847079753876, 0.353339284658432, 0.16964463889598846, 0.05997209623456001, -0.32175084948539734, 0.3543160557746887, 0.4704705774784088, -0.18213924765586853, -0.7031543850898743, 0.0541975200176239, 0.3798919916152954, -0.08060932159423828, 0.24312546849250793, ...
:) Access is an old database, why not SQL Express 2005 (witch is for free)? you will get plenty more about security and inside your application you use a user/pwd in the connection that no one will know and can't see it... if they try to open SQL, they will only see the Database Name, and nothing else (remember to use ...
[ -0.013911213725805283, 0.3127668797969818, 0.49390533566474915, 0.306479275226593, -0.29227668046951294, -0.3525618016719818, 0.48847752809524536, -0.20751555263996124, -0.2684328258037567, -0.20279164612293243, 0.2489679455757141, 0.4500081539154053, -0.03494356945157051, 0.44404628872871...
same... :) you idea "struggles" me when I thing that... Access has start to have poor response time with more than 30k rows in one table (quote from Microsoft), and if you going to create a Layer to encrypt / decrypt data ... your app will just go from slow to not working at all ... will this be a good idea?
[ -0.19612354040145874, 0.2427641749382019, 0.21007102727890015, 0.4855194389820099, 0.12969624996185303, 0.18449576199054718, 0.3607284724712372, 0.26056087017059326, -0.3955208361148834, -0.6945701837539673, -0.058491241186857224, 0.41402488946914673, -0.025860274210572243, 0.0422971360385...
I have an ASP. Net 2.0 website with C# 2005 as the programming language. I am using CSS for the layout. Currently I am using a plain/static .Gif image as my header. I would like to enhance the look by using some animation in the header. I used some flash utilities to design my required animated banner. But since I was ...
[ 0.5838763117790222, 0.04592665657401085, 0.3784422278404236, -0.4135105609893799, -0.5518869757652283, -0.17976123094558716, 0.010322906076908112, 0.24296395480632782, -0.23138678073883057, -0.8248803615570068, -0.12678232789039612, 0.03369178622961044, -0.20876428484916687, -0.04542431607...
is huge (around 4.5 Mb). I want to display the original .swf file to improve speed. I have used the CSS stylesheet to display the .Gif animated banner. I don't know how can I use the .Swf file directly. Kindly guide me. Thank You. Lalit Kumar Barik anirudhsasikumar mark a point : Improvement of the Flex4 SDK have ...
[ 0.4409298300743103, -0.06271959096193314, 0.4144955277442932, -0.0892874151468277, -0.08321473002433777, 0.017606988549232483, 0.1252942830324173, -0.39318928122520447, -0.4666394591331482, -0.4111323058605194, -0.2849847376346588, 0.48037242889404297, -0.060181763023138046, 0.006424491293...
building is to use FCSH, to avoid compile the same file two time. It's improve the performance drasticly. <http://wildwinter.blogspot.com/2008/04/fcsh-wrapper-for-ant.html>
[ 0.30019885301589966, -0.21991923451423645, -0.18841445446014404, 0.17804022133350372, 0.01338452473282814, -0.07511618733406067, 0.6413704752922058, -0.6492323279380798, -0.03604018688201904, -0.4749179780483246, 0.3503691256046295, 0.11022727936506271, -0.39949411153793335, -0.15495659410...
I have this piece of Javascript code, which takes about 600 ms on every call in Internet Explorer. The time taken in other browsers is negligble. ``` var _nvs_currentTab; var _nvs_zoomfield; var _nvs_centerfield; var _nvs_globsearch; var _nvs_category; var _nvs_favsonly; var _nvs_wishonly; var _nvs_friendfavsonly; var...
[ -0.3305467367172241, 0.05031416565179825, 1.178641438484192, -0.27766555547714233, 0.1521417200565338, -0.1104033961892128, 0.4857805073261261, -0.45454442501068115, 0.1046702116727829, -0.7795858383178711, -0.3302924931049347, 0.6097620725631714, -0.15514737367630005, 0.10949168354272842,...
= f("globsearch"); _nvs_category = f("category"); _nvs_favsonly = f("favsonly"); _nvs_wishonly = f("wishonly"); _nvs_friendfavsonly = f("friendfavsonly"); _nvs_newitemsonly = f("newitemsonly"); _nvs_globsearchOld = f("globsearchOld"); _nvs_catOld = f("categoryOld"...
[ -0.6645961403846741, -0.047590259462594986, 1.1293485164642334, -0.47181233763694763, 0.049985162913799286, 0.023720817640423775, 0.2737637460231781, -0.27381205558776855, -0.44071027636528015, -0.42356255650520325, -0.619536280632019, 0.39532148838043213, -0.22941628098487854, 0.520298302...
= f("friendFavsonlyOld"); _nvs_newItemsOnlyOld = f("newItemsOnlyOld"); } // get all state vars var navState= new Object(); navState.page = currentPage; navState.currentTab = _nvs_currentTab.value; navState.zoomfield = _nvs_zoomfield.value; navState.centerfield = _nvs_centerfield.val...
[ -0.5328410863876343, -0.05449879541993141, 1.0953385829925537, -0.32564640045166016, 0.2030661404132843, -0.038547441363334656, 0.47989368438720703, -0.25743740797042847, -0.3246798515319824, -0.40488719940185547, -0.6042903661727905, 0.630219578742981, -0.22201956808567047, 0.291397273540...
navState.catOld = _nvs_catOld.value; navState.favsonlyOld = _nvs_favsonlyOld.value; navState.wishonlyOld = _nvs_wishonlyOld.value; navState.friendFavsonlyOld = _nvs_friendFavsonlyOld.value; navState.newItemsOnlyOld = _nvs_newItemsOnlyOld.value; // build new url with state var url = new StringBuf...
[ -0.17160727083683014, -0.019471868872642517, 0.7374352216720581, -0.404987096786499, -0.078516885638237, 0.2617650330066681, 0.7265735864639282, -0.4043639302253723, -0.22332382202148438, -0.6477419137954712, -0.5260350108146667, 0.2708572745323181, -0.2666172683238983, 0.5172920227050781,...
it window.location.href = url.toString(); } ``` This is what the call tree looks like, from the IE8 profiler: ``` saveState 1 615,00 ms f 15 1,00 ms String.split 1 0,00 ms Array
[ -0.12873980402946472, -0.20353813469409943, 0.5637582540512085, -0.2261030673980713, 0.22808311879634857, -0.08756858855485916, 0.1429746150970459, 0.03972717002034187, -0.004893480334430933, -0.6793531775474548, -0.36047759652137756, 0.5487993955612183, -0.203682541847229, 0.2251691371202...
1 0,00 ms Object 1 0,00 ms StringBuffer 1 0,00 ms append 64 0,00 ms Array.push 64 0,00 ms
[ -0.23257037997245789, -0.4757327139377594, 0.7647881507873535, -0.23637160658836365, -0.440287709236145, 0.2734704315662384, 0.30566495656967163, -0.3991333842277527, -0.18339543044567108, -0.36981824040412903, -0.21061424911022186, 0.11599311232566833, -0.5081441402435303, 0.0684913247823...
toString 1 0,00 ms Array.join 1 0,00 ms Object.valueOf 63 0,00 ms Function.toString 63 0,00 ms ``` The StringBuffer implementation I'm using: ``` function StringBuffer() { this.buffer = []; } StringBuffer.prototype.append = function append(string) { ...
[ -0.2661559581756592, -0.117486372590065, 0.7497016787528992, -0.6234747767448425, 0.04089341685175896, 0.3200368583202362, 0.4493858516216278, -0.4656052887439728, -0.03759123384952545, -0.6197562217712402, 0.015774188563227654, 0.21501843631267548, -0.6504284739494324, 0.1936119794845581,...
return this; }; StringBuffer.prototype.toString = function toString() { return this.buffer.join(""); }; ``` **Edit:** Updated code, takes 397 ms on average to run. ``` var _nvs_currentTab; var _nvs_zoomfield; var _nvs_centerfield; var _nvs_globsearch; var _nvs_category; var _nvs_favsonly; var _nvs_wishonly...
[ -0.5124655961990356, -0.09139303863048553, 1.0533690452575684, -0.4302295446395874, 0.2328169196844101, 0.1387988179922104, 0.5461171865463257, -0.4922723174095154, -0.2290133237838745, -0.5449876189231873, -0.5343742370605469, 0.7505843639373779, -0.25411921739578247, 0.19387230277061462,...
= _f.globsearch; _nvs_category = _f.category; _nvs_favsonly = _f.favsonly; _nvs_wishonly = _f.wishonly; _nvs_friendfavsonly = _f.friendfavsonly; _nvs_newitemsonly = _f.newitemsonly; _nvs_globsearchOld = _f.globsearchOld; _nvs_catOld = _f.categoryOld; _nvs_...
[ -0.7697243690490723, 0.147239550948143, 1.139559268951416, -0.3477790653705597, -0.08092129975557327, 0.18572773039340973, 0.3738846480846405, -0.35072624683380127, -0.3873220980167389, -0.4668996334075928, -0.6424352526664734, 0.4881925880908966, -0.11209405213594437, 0.36971303820610046,...
= _f.friendFavsonlyOld; _nvs_newItemsOnlyOld = _f.newItemsOnlyOld; } // build new url with state var url = new StringBuffer(); url.append("#"); url.append('currentPage=').append(currentPage); url.append('&currentTab=').append(_nvs_currentTab.value); url.append('&zoomfield=').append(...
[ -0.45629048347473145, 0.22304850816726685, 1.1201245784759521, -0.2435598075389862, 0.12314463406801224, 0.18402327597141266, 0.46346527338027954, -0.30636364221572876, -0.06236641854047775, -0.4814779460430145, -0.7572302222251892, 0.4594392478466034, -0.1928701549768448, 0.46739837527275...
url.append('&newItemsOnlyOld=').append(_nvs_newItemsOnlyOld.value); // set it window.location.href = url.toString(); } ``` Okay, you're not going to believe this. I just tried removing the following line: `window.location.href = url.toString();` And it reduced the average runtime to two third of a millisecon...
[ 0.10920543968677521, 0.17285919189453125, 0.735711932182312, -0.11070051789283752, -0.06018965691328049, -0.1928785890340805, 0.8584533929824829, 0.0012451494112610817, -0.11838637292385101, -0.9308496117591858, -0.035823266953229904, 0.5889420509338379, 0.03957640007138252, 0.422693908214...
I'm trying generics for the first time and am having a problem. I have a dll that sends messages in batches * there is a "Message" class and a "Batch" class in that dll * on the batch class, I have some public properties * on of the batch class's public properties is a property called "Messages" which is a list of th...
[ 0.18002483248710632, 0.1904556304216385, 0.3332364559173584, -0.41333267092704773, -0.169294536113739, 0.2953472435474396, 0.6108642816543579, -0.2255730777978897, -0.14567795395851135, -0.9280708432197571, -0.09543021768331528, 0.4891006648540497, -0.5479183793067932, 0.2709936797618866, ...
reference not set to an instance of an object." **Method 2** After playing around a bit, I see that I can successfully do the following in the test exe: ``` List<MyNameSpace.Message> myMessages = new List<MyNameSpace.Message>(); myBatch.Messages.Add( new MyNameSpace.Message(txtToAddress.Text, txtMessage.Text)); myB...
[ 0.2931461036205292, -0.0908098816871643, 0.6063552498817444, -0.11297093331813812, 0.0271457526832819, -0.21241433918476105, 0.3145647644996643, -0.5017510652542114, -0.10973887890577316, -0.6674712896347046, 0.0049569993279874325, 0.8153042197227478, -0.3847883641719818, 0.204031988978385...
expected. Note that if you are using `XmlSerializer` you'll need to keep the public set too... In some ways, the long-hand property code is easier here: ``` private List<Message> messages = new List<Message>(); public List<Message> Messages { get {return messages; } } ``` (no messing with constructors, etc)
[ -0.011521906591951847, -0.19791223108768463, 0.07752656191587448, -0.054935622960329056, -0.19544555246829987, -0.41517314314842224, 0.21416880190372467, -0.16750870645046234, -0.2980479896068573, -0.7045350670814514, -0.23821739852428436, 0.764005184173584, -0.33711549639701843, -0.086290...
At work we run vista for all the laptop. I dont like it very much. XP is not an option because of licence ( and money ) issues. The boss and the team is ok to whatever, since the work is done. So i wish to switch my developement plateform to a linux ( i dont care wich one ). Problem : we are building something in Ad...
[ 0.607638418674469, 0.11148250848054886, 0.25060003995895386, 0.08928649872541428, 0.007886769250035286, -0.13894398510456085, 0.14521096646785736, -0.1838621199131012, -0.07765652239322662, -0.848457396030426, 0.03618998825550079, 0.8571240305900574, 0.042116452008485794, -0.21687662601470...
Or at least eclipse + flexSDK compiler ) thanks for your advice. Try the [AXDT](http://axdt.org/) plugin for a gratis alternative to FlexBuilder.
[ 0.6171192526817322, -0.3771761953830719, -0.22215324640274048, 0.5416700839996338, -0.22089901566505432, -0.3266547620296478, 0.23101332783699036, 0.19043904542922974, -0.08898574858903885, -0.8902045488357544, -0.10674124956130981, 0.6600234508514404, -0.13305315375328064, -0.403009831905...
Is there a way to rename fields when executing a select statement in SubSonic? I am using the *ExecuteTypedList<MyClass>* method to fill my *List<MyClass>* object but the properties of MyClass are not all the same as the column names from the DB table. In SQL I can do *select col1 as 'FirstColumn', col2 as 'SecondColum...
[ 0.15516707301139832, -0.33707836270332336, 0.1431272327899933, 0.004736353177577257, -0.531058669090271, -0.05643446370959282, 0.028168652206659317, -0.07636108249425888, -0.08782456070184708, -0.48373526334762573, 0.17420917749404907, 0.6155896782875061, -0.41251340508461, -0.140275999903...
Merely out of interrest: do you think Java would have been a better language if static variables would have been excluded, effectively replacing Singletons with singletons? [Definition here.](http://googletesting.blogspot.com/2008/08/root-cause-of-singletons.html) If you think so: could you elaborate on what motivatio...
[ 0.33960628509521484, -0.05687496066093445, -0.3334110379219055, 0.1275307834148407, -0.21279160678386688, -0.0484033077955246, 0.3175477683544159, -0.20664210617542267, -0.4021635353565216, -0.3408013880252838, 0.056895188987255096, 0.23822946846485138, -0.38031452894210815, 0.218482568860...
article that calls for "let's-get-rid-of-all-singletons". The argument the author provides is interesting. He states that having global state is the real problem with Singletons, and as long as there is a one-way communication between your program and the Singleton you are in the clear. And definitively Java would be...
[ 0.15926964581012726, -0.027402250096201897, -0.17856153845787048, 0.293855220079422, -0.2961392104625702, -0.29197654128074646, 0.47452446818351746, 0.37901070713996887, -0.3215189576148987, -0.4731540083885193, -0.15859301388263702, 0.5316299200057983, -0.47346389293670654, 0.532184064388...
need to get rid of them.
[ 0.422460675239563, 0.6632817983627319, -0.06639301776885986, 0.2933071255683899, -0.07144869118928909, -0.011446547694504261, 0.08042885363101959, -0.09168079495429993, 0.024147039279341698, -0.47243455052375793, -0.09447184950113297, 0.30301162600517273, -0.20561373233795166, 0.2689737379...
I'm trying to get an ASP.NET 3.5 GridView to show a selected value as string when being displayed, and to show a DropDownList to allow me to pick a value from a given list of options when being edited. Seems simple enough? My gridview looks like this (simplified): ``` <asp:GridView ID="grvSecondaryLocations" runat="s...
[ 0.07740046083927155, -0.2202606201171875, 0.529062032699585, -0.15839385986328125, -0.23069922626018524, 0.0891203060746193, 0.029709918424487114, 0.045720357447862625, -0.2889006733894348, -0.9513630270957947, 0.1755986511707306, 0.4687526524066925, -0.2422974556684494, 0.0798805877566337...
OnRowDeleting="grvSecondaryLocations_RowDeleting" OnRowEditing="grvSecondaryLocations_RowEditing" OnRowUpdating="grvSecondaryLocations_RowUpdating" > <Columns> <asp:TemplateField> <ItemTemplate> <asp:Label ID="lblPbxTypeCaption" runat="server"
[ -0.07129815965890884, -0.09086349606513977, 0.6373491287231445, -0.12795354425907135, -0.3868115544319153, 0.31037503480911255, -0.0783616304397583, -0.16511325538158417, -0.6654366850852966, -0.46843957901000977, -0.21688908338546753, 0.1301099956035614, -0.32190898060798645, 0.2328658401...
Text='<%# Eval("PBXTypeCaptionValue") %>' /> </ItemTemplate> <EditItemTemplate> <asp:DropDownList ID="ddlPBXTypeNS" runat="server" Width="200px"
[ -0.14659056067466736, -0.30189985036849976, 0.616395890712738, -0.07532171159982681, -0.19985724985599518, 0.3193739354610443, 0.24330972135066986, -0.18631252646446228, -0.3930141031742096, -0.4995437264442444, -0.44109225273132324, 0.09597016125917435, -0.0045718480832874775, -0.12465026...
DataTextField="CaptionValue" DataValueField="OID" /> </EditItemTemplate> </asp:TemplateField> </asp:GridView> ``` The grid gets displayed OK when not in editing mode - the selected PBX type shows its value in the asp:Label control. No surprise there. I load the list of va...
[ -0.0652189552783966, -0.1328611820936203, 0.6102311611175537, -0.13989907503128052, -0.22036553919315338, -0.1375921666622162, 0.05037388578057289, -0.09579584747552872, -0.17812590301036835, -0.7875943779945374, -0.45640119910240173, 0.40516406297683716, -0.1737467497587204, -0.1266078948...
of the form. I verified this - it works, the values are there. Now my challenge is: when the grid goes into editing mode for a particular row, I need to bind the list of PBX's stored in `_pbxTypes`. Simple enough, I thought - just grab the drop down list object in the `RowEditing` event and attach the list: ``` pro...
[ 0.0028544438537210226, -0.18718719482421875, 0.7058596014976501, -0.009349626488983631, -0.09923069179058075, 0.10321471095085144, 0.09755058586597443, -0.4374282956123352, -0.2900516986846924, -0.7813497185707092, -0.14727847278118134, 0.5919429659843445, -0.4594762325286865, 0.2271144837...
ddlPbx.DataSource = _pbxTypes; ddlPbx.DataBind(); } .... (more stuff) } ``` Trouble is - I never get anything back from the `FindControl` call - seems like the `ddlPBXTypeNS` doesn't exist (or can't be found). What am I missing?? Must be something really stupid.... but so far, all my Googling, readi...
[ -0.026093343272805214, -0.015881037339568138, 0.45580434799194336, -0.06477620452642441, 0.047812506556510925, -0.2635206878185272, 0.6016863584518433, 0.1168498620390892, -0.3726562559604645, -0.6027907729148865, -0.24790802597999573, 0.6695985198020935, -0.4674602150917053, 0.30545538663...
== DataControlRowType.DataRow && (e.Row.RowState & DataControlRowState.Edit) == DataControlRowState.Edit) { // Here you will get the Control you need like: DropDownList dl = (DropDownList)e.Row.FindControl("ddlPBXTypeNS"); } } ``` That is, it will only be valid for a `DataRow` (the a...
[ -0.027164608240127563, -0.34699490666389465, 0.8595723509788513, 0.17531447112560272, 0.25283217430114746, 0.010315902531147003, 0.008682601153850555, -0.333150178194046, -0.13242372870445251, -0.365212082862854, -0.31756389141082764, 0.6499211192131042, -0.3194260895252228, 0.103754036128...
How do I attach an onclick event to a `link_to_function` such that clicking on the event refreshes an element on the page (using partials)? When the user clicks the generated link, I'd like to refresh the partial containing the code so that `i` gets updated. ``` def add_step_link(form_builder) logger.info 'ADD_...
[ -0.05923726037144661, -0.2122778743505478, 0.7800976037979126, -0.07137875258922577, 0.1512645035982132, 0.024070588871836662, 0.20742331445217133, -0.6776163578033447, -0.03821792080998421, -0.7353343367576599, -0.24315491318702698, 0.4801044762134552, -0.28521135449409485, -0.15646986663...
=> f, :i=>@i+=1}) page << "$('steps').insert({ bottom: '#{escape_javascript(html)}'.replace(/NEW_RECORD/g, new Date().getTime()) });" end end end ``` I have a partial in a larger form that contains just: ``` <%= add_step_link(technique_form) %> ``` I am attempting keeping track of the number o...
[ 0.11259076744318008, -0.27453362941741943, 0.7802465558052063, -0.27960678935050964, 0.13554784655570984, 0.05055435001850128, 0.5951473712921143, -0.763759434223175, -0.07191553711891174, -0.8241610527038574, -0.23131728172302246, 0.2142994999885559, -0.2664772868156433, -0.12040232121944...
the "Multiple child models in a dynamic form" tutorial in <http://railsforum.com/viewtopic.php?id=28447> for my own purposes. Ok, I'm a little confused about what you are doing, but I'm going to try and make some suggestions. Rather than use **link\_to\_function**, use **link\_to\_remote**. Link to function calls java...
[ 0.1835767924785614, -0.46124929189682007, 0.33690622448921204, 0.36109572649002075, 0.0480070486664772, 0.26460734009742737, 0.18490058183670044, -0.12411849200725555, -0.30713269114494324, -0.7715461254119873, 0.022777283564209938, 0.46211275458335876, -0.3097003400325775, 0.1693680733442...
to the end of their blog comments (expect using link\_to\_remote rather than remote\_form\_for) see 3/4 of the way through <http://media.rubyonrails.org/video/rails_blog_2.mov> You can see the docs for link\_to\_remote here: <http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html>
[ 0.37775248289108276, -0.040239620953798294, -0.23213572800159454, 0.10793067514896393, -0.08860273659229279, 0.24832916259765625, 0.559221625328064, 0.017338799312710762, -0.3987138867378235, -0.46541815996170044, -0.0684005543589592, 0.15551410615444183, 0.03557799383997917, 0.28776827454...
I'm wondering what the declaration of the data type in [`bindParam()`](http://php.net/manual/en/pdostatement.bindparam.php) (or [`bindValue()`](http://php.net/manual/en/pdostatement.bindvalue.php)) is used for... I mean, I thought that if I define an integer argument (`PDO::PARAM_INT`), the argument must be converted ...
[ 0.10634338855743408, 0.16786736249923706, 0.33224087953567505, -0.33028027415275574, -0.15328137576580048, 0.05698021873831749, 0.24153879284858704, -0.4215644299983978, -0.2656732201576233, -0.6221755146980286, -0.16597621142864227, 0.5698686838150024, -0.4133825898170471, 0.1912666559219...
type of the value ? But > when I try : > > > > ``` > $sql = "INSERT INTO produit (idproduit, nom, marque) VALUES (NULL, :nom, :marque)"; > $stmt = $dbh->prepare($sql); > $nom = 'Testarossa'; $marque = 'Ferrari' ; > $stmt->BindValue(':marque',$marque) ; > $stmt->BindParam(':nom',$nom,PDO::PARAM_INT) ; > > $stmt->ex...
[ -0.022586453706026077, 0.016533486545085907, 0.5020123720169067, 0.1483759582042694, -0.16344183683395386, 0.5575754046440125, 0.23160654306411743, -0.5298640131950378, 0.23729422688484192, -0.20096063613891602, 0.252164751291275, 0.3559406101703644, -0.244222030043602, 0.05211814865469932...
third parameter or not. Or > perhaps I miss something. Can someone > tole me more ? Or just can someone > told me where I can find information > about it. > > > Regards, > > > Cyruss That is exactly my situation. Where are my thoughts going wrong? In other DB abstraction frameworks in other languages it can be...
[ -0.13581019639968872, -0.4146469235420227, 0.12047090381383896, 0.16130253672599792, -0.24747104942798615, -0.08822504431009293, 0.2346506267786026, -0.2733067572116852, -0.17064659297466278, -0.5850897431373596, 0.16927273571491241, 0.40888354182243347, -0.40773260593414307, -0.0319939553...
it doesn't do much. ``` if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_STR && param->max_value_len <= 0 && ! ZVAL_IS_NULL(param->parameter)) { if (Z_TYPE_P(param->parameter) == IS_DOUBLE) { char *p; int len = spprintf(&p, 0, "%F", Z_DVAL_P(param->p...
[ -0.16914084553718567, -0.31380924582481384, 0.7184291481971741, -0.06112898141145706, -0.12526266276836395, 0.3683992028236389, 0.27579042315483093, -0.2575396001338959, -0.08961521834135056, -0.5212264657020569, -0.1068357303738594, 0.25899937748908997, -0.3575808107852936, -0.21743825078...
ZVAL_STRINGL(param->parameter, p, len, 0); } else { convert_to_string(param->parameter); } } else if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_INT && Z_TYPE_P(param->parameter) == IS_BOOL) {
[ -0.3293469548225403, -0.13874241709709167, 0.6688878536224365, -0.40293946862220764, -0.060747116804122925, 0.4123981297016144, 0.1695452183485031, -0.7530590295791626, -0.20626093447208405, -0.4806721806526184, -0.4437922537326813, 0.4810686409473419, -0.493213951587677, -0.04289722815155...
convert_to_long(param->parameter); } else if (PDO_PARAM_TYPE(param->param_type) == PDO_PARAM_BOOL && Z_TYPE_P(param->parameter) == IS_LONG) { convert_to_boolean(param->parameter); } ``` So, if you say it is a STR (or if you say nothing at all as that is the default) and your data's int...
[ 0.30135783553123474, -0.2190561592578888, 0.31480228900909424, -0.14127086102962494, -0.27795055508613586, 0.18910712003707886, 0.06386461853981018, -0.5177304148674011, -0.21680036187171936, -0.38631537556648254, -0.319868803024292, 0.22646638751029968, -0.6468448638916016, 0.049814969301...
convert it to a string using a different method. If you say it's an int but it is really a bool then it will convert it to a long. If you say it's a bool but it's really a number then it will convert it to a true boolean. This is really all I saw (quickly) looking at the stmt source, I imagine once you pass the para...
[ 0.4187670350074768, -0.40041041374206543, 0.12175366282463074, 0.07084988057613373, -0.31259915232658386, 0.16392828524112701, 0.27855345606803894, -0.14934784173965454, 0.2081027328968048, -0.40008744597435, 0.360411673784256, 0.7725184559822083, -0.2212703973054886, 0.13863545656204224, ...
I am building a Winforms C# 2.0 application. I have successfully been able to connect to my SLQ Server database using the following: m\_connexion = new SqlConnection("server=192.168.xxx.xxx;uid=...;pwd=...;database=..."); Because my company wanted to be able to use any database, I went on to use the Odbc driver and m...
[ 0.02134452760219574, 0.15746067464351654, 0.5954846739768982, -0.13870543241500854, 0.061426304280757904, -0.2360571324825287, 0.27760693430900574, -0.09861131012439728, -0.1688217967748642, -0.5996501445770264, -0.08547072857618332, 0.528115451335907, -0.49564895033836365, 0.5748039484024...
to. In this case Provider=SQLSERVER I believe. **UPDATE:** Should have been Provider=SQLOLEDB
[ 0.4246491491794586, 0.23057039082050323, 0.3394271433353424, -0.010844861157238483, -0.15643392503261566, -0.32444462180137634, 0.47781452536582947, -0.021957743912935257, -0.02209094911813736, -0.4195960462093353, 0.08164726942777634, 0.4958675801753998, -0.2710607349872589, 0.13228851556...
I have a database which is 6GB in size, with a multitude of tables however smaller queries seem to have the most problems, and want to know what can be done to optimise them for example there is a Stock, Items and Order Table. The Stock table is the items in stock this has around 100,000 records within with 25 field...
[ 0.6860353350639343, 0.27421170473098755, 0.05223637819290161, 0.0661480724811554, 0.056496258825063705, 0.377444863319397, -0.4458976089954376, -0.2259567528963089, -0.06370960175991058, -0.6569118499755859, 0.23430515825748444, 0.2376897931098938, 0.16612717509269714, 0.630525529384613, ...
product in question. The Orders table stores the Orders of Stock Items, which is the when the order was placed plus the price sold for and has around 50,000 records. Here is a query from this Database: ``` SELECT Stock.SKU, Items.Name, Stock.ProductCode FROM Stock INNER JOIN Order ON Order.OrderID = Stock.OrderID...
[ 0.317804217338562, 0.1723952293395996, 0.20589834451675415, -0.2316744327545166, 0.037312641739845276, 0.7968063354492188, -0.3041434586048126, -0.4089842140674591, -0.25832536816596985, -0.4342155456542969, -0.04438181594014168, 0.33485549688339233, -0.022524671629071236, 0.60195958614349...
further however, so if general optmisation tricks and methods are given these will be fine, or anything which applies generally to databases. The Database is MS SQL 2000 on Windows Server 2003 with the latest service packs for each. DB Upgrade / OS Upgrade are not options for now. --- **Edit** Indices are Stock.S...
[ -0.21695348620414734, 0.2067599594593048, 0.47901710867881775, 0.2247461974620819, -0.21718943119049072, -0.04810381308197975, 0.06914430856704712, -0.014714724384248257, -0.22127604484558105, -0.5299491882324219, 0.17580850422382355, 0.4950268864631653, -0.0055005610920488834, 0.154470235...
with the query, but this has helped me a lot some of these queries have run quicker but combined with the index suggestions I think I might be on the right path now - thanks for the quick responses - has really helped me and made me consider things I did not think or know about before! --- Indexes ARE my problem adde...
[ 0.016230538487434387, 0.058002762496471405, 0.38918930292129517, 0.2284238487482071, -0.5122250914573669, 0.05822431668639183, 0.5627925992012024, -0.14343713223934174, -0.21867217123508453, -0.4136578142642975, 0.1106114536523819, 0.6061602830886841, -0.13255159556865692, -0.2403146475553...
years now, but this has been very helpful. However thanks for all the query examples they are combinations and features I had not considered may be useful too! The most important (if not already done): define your primary keys for the tables (if not already defined) and add indexes for the foreign keys and for the colu...
[ 0.12399294227361679, 0.15110436081886292, 0.5704471468925476, 0.16968072950839996, 0.10960671305656433, -0.2893562614917755, 0.07804322987794876, -0.006002113688737154, -0.2949051856994629, -0.6035321354866028, 0.020171737298369408, 0.45480650663375854, -0.06243983283638954, 0.090568259358...
Is they say that sun's java is opensource now - then can I compile all the patform from sources ? I used gentoo and I found a great performance inmrovement wnen I compiled the system myself, so can it be done with java (both vm runtime and library classes ) ? Is it possible to do under windows/linux ? Did anyone do ...
[ 0.1654675006866455, 0.21060526371002197, 0.2991417348384857, -0.05478182062506676, -0.2559867203235626, -0.24844969809055328, 0.2051454782485962, -0.16237492859363556, -0.1902068704366684, -0.6004422903060913, 0.07848379760980606, 0.61070317029953, -0.11538836359977722, -0.2737881541252136...
of translating java to bytecode and the fact that most optimizations are done at runtime, that seems unlikely.
[ -0.1661221832036972, 0.2282663732767105, 0.07443425804376602, -0.042373400181531906, -0.15227963030338287, -0.22600872814655304, 0.46316778659820557, 0.018703894689679146, 0.016910729929804802, -0.6241745948791504, -0.1601434051990509, 0.3023318648338318, -0.23603251576423645, -0.306852281...
Does anybody know how to (easily) "rename" an existing grails application? I'm running into this because my PaaS provider does not allow me to delete a subscription... So I want to deploy my application under a different name. Of course, I can do this manually, but I think it might be a useful 'top-level' script (i.e....
[ 0.36270061135292053, 0.3645172417163849, 0.39929303526878357, 0.03831660747528076, 0.04820874705910683, 0.07028719782829285, 0.6359025239944458, -0.029322559013962746, -0.27669426798820496, -0.4677541255950928, -0.005840068217366934, 0.6755843758583069, -0.08559627830982208, -0.00074296223...
not trivial to do a rename. ``` ./.project: <name>myappname</name> ./application.properties:app.name=myappname ./build.xml:<project xmlns:ivy="antlib:org.apache.ivy.ant" name="myappname" default="test"> ./ivy.xml: <info organisation="org.example" module="myappname"/> ./myappname-test.launch:<stringAttribute key="or...
[ -0.04096008092164993, 0.21561762690544128, 0.554233968257904, -0.05091184750199318, -0.24484354257583618, -0.06277428567409515, 0.39133161306381226, -0.41528573632240295, -0.16925036907196045, -0.6407858729362488, -0.20606394112110138, 0.5326436161994934, -0.26338353753089905, 0.0445629954...
I wrote a Java program to download a HTML page. But CPU usage is near to 100%, while network usage is lower than 3%. It seems like that CPU became my bottleneck. How do I cut my CPU usage? Use a profiler (I like [VisualVM](https://visualvm.dev.java.net/)), identify the bottleneck and fix it!
[ 0.48476508259773254, 0.02256612665951252, 0.18109270930290222, -0.05132376402616501, -0.04046689346432686, 0.15169163048267365, 0.4643603563308716, 0.15185734629631042, -0.3066115379333496, -0.7307310104370117, 0.2526977062225342, 0.47544029355049133, -0.23064258694648743, -0.1942570805549...
I'd like to send an action to another object using cocoa. Ideally i would also like it to appear in the Interface builder. I've tried the apple documentation, but there is something i'm missing. Adding the following, the interface building only shows the action as a received one. ``` - (IBAction)setTarget:(id)anObjec...
[ 0.09527168422937393, -0.26744019985198975, 0.3571903109550476, 0.049283530563116074, -0.42891374230384827, 0.20976980030536652, -0.03002680465579033, -0.1513170301914215, -0.443889856338501, -0.653829038143158, 0.09576497972011566, 0.4230593740940094, -0.5089553594589233, -0.26198410987854...
control that should receive the signal. This functionality can't be limited to just apple objects there, must be a way to do it. controller1 and controller2 are a subclasses of NSControl. ``` [controller2 sendAction:@selector(receiveAction:) to:controller1]; ```
[ -0.2214869111776352, -0.5255639553070068, 0.4036548435688019, 0.21805821359157562, 0.07167456299066544, -0.19584797322750092, -0.07534265518188477, -0.047723621129989624, -0.13088950514793396, -0.5160414576530457, -0.25847145915031433, 0.3393295109272003, -0.46772047877311707, 0.0774964466...
I have a number data-driven web based applications that serve both internal and public users and would like to gauge how fast you would expect a page to be created (in milliseconds) in order to maintain user satisfaction and scalability. So, how fast does a page have be created to maintain a fast site? The sites are ...
[ 0.6178447604179382, 0.33970916271209717, 0.49066537618637085, 0.19396089017391205, -0.050303153693675995, -0.10190898925065994, 0.2296675741672516, -0.02085874043405056, -0.11442553251981735, -0.8243246078491211, -0.040712784975767136, 0.22795148193836212, 0.07853414118289948, 0.1118558496...
complexity of the page. Slower pages are due to the database running bigger and more complex queries. Even if I re-wrote all the ASP classic to ASP.NET there will not be any significant improvement to the overall page render speed. I've often heard Jeff say he wants SO to be [the fastest site](https://blog.stackoverfl...
[ 0.11556989699602127, 0.027320288121700287, 0.4526752531528473, -0.014034689404070377, -0.18016214668750763, 0.02812589704990387, 0.4428764581680298, -0.14526543021202087, -0.37970057129859924, -0.9247710704803467, 0.10303931683301926, 0.5124451518058777, -0.04919356107711792, -0.2986866533...
think "This page is taking too long to create?". Is it over 20ms, over 200ms or is it OK for a page to take over a second to build? What are your "target times?" This depends entirely on your audience and targets - I've worked on apps with a target 'onload' event at <4secs, and on apps where the time on server is expec...
[ 0.21339350938796997, -0.12003971636295319, 0.7358151078224182, 0.026798689737915993, 0.07461685687303543, -0.05571095272898674, 0.5170804262161255, 0.03383803740143776, -0.36673033237457275, -0.9630139470100403, 0.1349983662366867, 0.2851296067237854, 0.18532302975654602, -0.29619088768959...
still the major bottleneck with the web, and perceptive load times. Yahoo has some [excellent guidelines](http://developer.yahoo.com/performance/rules.html) for general website performance, especially on the perceptive load area. Hopefully you're already smart enough to be caching what you can and doing the little th...
[ 0.18925213813781738, 0.1656908243894577, 0.22623379528522491, 0.2107776254415512, -0.08190418034791946, -0.27200841903686523, 0.2589430809020996, 0.1857776641845703, -0.27061063051223755, -0.6281842589378357, -0.046583253890275955, 0.600212037563324, 0.2858930826187134, -0.2158496975898742...
Properties `document.body.clientHeight` and `document.body.clientWidth` return different values on IE7, IE8 and Firefox: IE 8: ``` document.body.clientHeight : 704 document.body.clientWidth : 1148 ``` IE 7: ``` document.body.clientHeight : 704 document.body.clientWidth : 1132 ``` FireFox: ``` document.bo...
[ -0.04357992857694626, 0.38623955845832825, 0.46331486105918884, -0.031368229538202286, -0.03365882858633995, -0.08901409804821014, 0.2720685303211212, -0.6382961273193359, -0.13708767294883728, -0.578871488571167, 0.04305568337440491, 0.6756303906440735, 0.001437486382201314, 0.12964579463...
This has probably been answered else where but how do you get the character value of an int value? Specifically I'm reading a from a tcp stream and the readers .read() method returns an int. How do I get a char from this? If you're trying to convert a stream into text, you need to be aware of which encoding you want ...
[ 0.19880568981170654, 0.12116950750350952, 0.28232768177986145, -0.08353947103023529, -0.26417577266693115, 0.31672245264053345, 0.15933305025100708, -0.23270761966705322, -0.08618248999118805, -0.6422786116600037, -0.0619092732667923, 0.5799742937088013, -0.17884346842765808, -0.0737007185...
bytes from a stream directly. EDIT: If you *are* already using a `Reader`, then casting the return value of `read()` to `char` is the right way to go (after checking whether it's -1 or not)... but it's normally more efficient and convenient to call `read(char[], int, int)` to read a whole block of text at a time. Don'...
[ 0.17179328203201294, -0.08907649666070938, 0.11166098713874817, 0.10890734195709229, -0.25485214591026306, 0.14595216512680054, -0.0002821733651217073, 0.07588831335306168, -0.10000377148389816, -0.5288529396057129, -0.16672632098197937, 0.43201324343681335, -0.03588859736919403, 0.1107105...
Is it possible to send a status code other than 200 via a python cgi script (such as 301 redirect) via cgi script? ``` print "Status:301\nLocation: http://www.google.com" ```
[ 0.5749495029449463, 0.007584503851830959, 0.31504878401756287, 0.06966143846511841, 0.09419041126966476, -0.13174858689308167, -0.07064022868871689, -0.1829567700624466, -0.12320872396230698, -0.6262879967689514, 0.020433085039258003, 0.4304458498954773, -0.11268789321184158, -0.5631157755...
I am using combobox which contains three value-NSW,TIC,VIA. in page load i m setting selectedindex = 1 for the combobx , the value shown as TIC which is correct but it is not getting highlighted. I can see that when user selects different value (i mean the index gets change for combobox from UI) then the particular tex...
[ 0.2537093758583069, -0.14068137109279633, 0.3639565408229828, 0.01251381915062666, -0.044702671468257904, 0.1516503542661667, 0.413913756608963, -0.37556886672973633, -0.10531933605670929, -0.6768254041671753, -0.01602993719279766, 0.3880698084831238, -0.41212931275367737, -0.1760754138231...
has [previously stated](http://almaer.com/blog/anders-hejlsberg-and-aop) that they'were in wait & see mode about AOP. We can only hope that with the managed rewrite of csc, and a «Compiler as a Service», one could plug into the compiler, and inject aspects there.
[ 0.3010479807853699, 0.2937927544116974, 0.0015816747909411788, 0.04989524930715561, -0.08974022418260574, -0.2607109844684601, 0.24574650824069977, 0.1994866579771042, -0.3134096562862396, -0.4122626483440399, -0.41644352674484253, 0.06949859857559204, -0.1107131615281105, -0.1276407539844...
I'm new to this, so sorry if my question has been asked before. I have searched but have not been able to find, or perhaps recognise, an answer. I am using visual studio 2008 and creating an app in vb.net. I have 4 arrays named:- account1 account2 account3 account4. They all have 4 elements. I want to assign values to...
[ 0.4433402121067047, 0.27552518248558044, 0.3342364430427551, -0.07116283476352692, -0.0010871285339817405, 0.3704058825969696, 0.23703919351100922, -0.18792930245399475, -0.4812246859073639, -0.6006912589073181, 0.29138895869255066, 0.4094686806201935, -0.24715609848499298, -0.197848588228...
account(i)(c)= 'mydata' /so account(i) would be account1 etc and c the element next c next i ``` and thus all the elements of all the arrays are populated without me having to set up a fornext loop for each individual array name. How can I achieve this please. Hope I have provided enough info to be of use, and t...
[ 0.08477158844470978, 0.2614652216434479, 0.2928062975406647, -0.07709445059299469, 0.1383724808692932, 0.1742773801088333, 0.10146459937095642, -0.12042296677827835, -0.18877167999744415, -0.6729137301445007, 0.21807250380516052, 0.4026630222797394, -0.12164635211229324, -0.027557939291000...
account4(i) = "Account4" Next ``` Edit VB.Net for **Qua**'s answer: ``` dim accounts(4,4) as integer for i as integer = 0 To accounts.GetUpperBound(0) for j as integer = 0 To accounts.GetUpperBound(1) accounts(i, j) = new integer 'not needed for intergers, but if you had a class in here' accounts(i, j) ...
[ 0.3030491769313812, -0.010933655314147472, 0.7503139972686768, -0.06725707650184631, -0.17071843147277832, 0.25210678577423096, 0.40542542934417725, 0.006114827003329992, -0.4480246603488922, -0.34230437874794006, -0.022637512534856796, 0.7189408540725708, -0.2618670165538788, 0.0598446354...
C# noob question... I'm taking a few arguments in a class constructor to initialize some private variables. What should I do when the data passed in is not what I expect (wrong string length, numbers out of expected range, nonexisting path, stuff like that..)? Throw an exception? Add "everything went ok" flag? how is...
[ 0.04081820696592331, 0.07027485966682434, 0.2306671291589737, -0.09143640100955963, -0.14508028328418732, -0.3429064154624939, 0.44411957263946533, 0.09689165651798248, -0.29727616906166077, 0.1740804761648178, -0.3602294623851776, 0.7418389320373535, -0.36170971393585205, -0.2792464196681...
I have Java desktop application that works with CSV files. And i want add some functionality. At this moment i need to open selected file with default system text editor. When i run my program on Windows i have no problems, just by calling notepad.exe, but what to do with \*nix systems? One way of solution is to custom...
[ 0.31675317883491516, 0.24497240781784058, 0.3781737983226776, -0.1347004622220993, -0.14789384603500366, -0.04404129832983017, 0.2937399744987488, -0.03335444629192352, -0.25895336270332336, -0.9743489027023315, 0.13749776780605316, 0.5192198157310486, -0.23394151031970978, 0.0699957534670...
it will launch whatever the OS thinks the file should be edited with, which in the case of CSV is usually a spreadsheet app rather than a text editor - maybe you can rename the files to TXT temporarily or permanently.
[ 0.48117128014564514, -0.2688225507736206, 0.7282332181930542, 0.1661098450422287, -0.14665621519088745, -0.28489625453948975, -0.13636820018291473, 0.5809041857719421, -0.39877215027809143, -0.6036064624786377, -0.5430172085762024, 0.3368974030017853, -0.5073257088661194, 0.245294809341430...