text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
choose the path with the ideal priority.
In your situation, your values are the nodes and your relationships are the edges. | [
-0.08391313999891281,
-0.479139506816864,
0.0931197926402092,
0.4391900300979614,
0.22800180315971375,
0.297705739736557,
-0.0434582382440567,
-0.0428272970020771,
-0.030713612213730812,
-0.8928712606430054,
0.0831398144364357,
0.46345967054367065,
-0.17426437139511108,
-0.0983210951089859... | |
There is one aspect of TDD which I never fully understood.
Suppose somebody asked you to implement a simple Stack object. If you've done your design properly, you will come to a very minimal and clean API. Suppose: `push()`, `pop()` and `isEmpty()`. Anything more than that is over-killing the demand, and allowing the ... | [
0.6930422186851501,
-0.02481752634048462,
-0.05142851173877716,
0.18297699093818665,
-0.23379214107990265,
0.05122523382306099,
0.2993141710758209,
-0.32400938868522644,
-0.00036692238063551486,
-0.277589350938797,
0.17768652737140656,
0.6462173461914062,
-0.29861509799957275,
0.2047578096... | |
add private methods, which do not help you at all since they are not visible to your unit test case. Or you make those methods public and there goes your minimalistic API which you worked on so hard. Now the user is going to mess with your Stack and the bugs will be sure to come.
How do you handle this dilemma of open... | [
0.662680983543396,
0.20002444088459015,
-0.184111088514328,
0.41752251982688904,
-0.20318490266799927,
-0.2390388697385788,
0.19540733098983765,
0.04606437310576439,
-0.27465638518333435,
-0.49971601366996765,
0.17154161632061005,
0.7594602704048157,
-0.28471341729164124,
0.192239388823509... | |
am much more intrested in more generic answers as to what of the two concepts is more important, and how you approach this subject.
1. test the features; this usually means testing the public interface - for should not all features be accessible via the public interface? if they aren't, then they aren't features! There... | [
0.6346758604049683,
0.2055903524160385,
-0.23703165352344513,
0.35211411118507385,
-0.42805030941963196,
-0.25196683406829834,
0.5435128211975098,
-0.04742002859711647,
-0.03020559810101986,
-0.7214664220809937,
-0.128277987241745,
0.7052046656608582,
-0.051081251353025436,
-0.112187951803... | |
at all. | [
0.042714789509773254,
-0.1323527991771698,
0.19240611791610718,
0.4129837453365326,
-0.14555266499519348,
-0.24637803435325623,
0.17810960114002228,
0.5095330476760864,
-0.17838935554027557,
-0.3215966522693634,
-0.09381751716136932,
0.4378342032432556,
-0.3617188334465027,
-0.283918410539... | |
How do you determine if a letter is in the range from A-Z or Digit 0-9? We are getting some corrupted data "I\_999Š=ÄÖÆaðøñòòñ".
I thought I could use Char.IsLetterOrDigit("Š") to ID the corrupted data from "I\_999Š", but unexpectedly this is returning true. I need to trap this, any thoughts?
Well there are two quick ... | [
0.15868496894836426,
0.17943760752677917,
0.3647203743457794,
-0.00459022494032979,
-0.2160080373287201,
0.3950883746147156,
0.41893869638442993,
0.19677294790744781,
-0.2675386071205139,
-0.4580555558204651,
-0.2528766691684723,
0.3894139528274536,
-0.0437367781996727,
-0.1350463330745697... | |
Currently I`m using Visual Studio for writing code in C++. But it seems so weighty that I decided to switch for another one, preferably free, not so strict to system resources (I mean memory, of course) as VS to learn libraries, such as Boost and Qt. What compiler do you suggest?
Code::blocks is exactly what you are af... | [
0.44372615218162537,
0.21022199094295502,
-0.07105442881584167,
0.06424503773450851,
-0.28733009099960327,
-0.30705612897872925,
0.07994389533996582,
-0.06474894285202026,
-0.09532862156629562,
-0.9074203968048096,
-0.09919492155313492,
0.378984272480011,
-0.3148565888404846,
0.07591708749... | |
completion, class browser, todo list etc. etc. It even import visual C++ projects.
Don't use Dev C++ which has already been recommended. It's very very old and outdated. | [
0.2122368961572647,
0.014862878248095512,
0.3088443875312805,
0.13332320749759674,
-0.3691457211971283,
-0.38419705629348755,
0.3024581968784332,
0.18855132162570953,
-0.023419436067342758,
-0.909524142742157,
0.02331705391407013,
0.46005311608314514,
-0.1834001988172531,
0.067242786288261... | |
Just as the title says, I see a lot of editors touting macro recording as a feature but cannot find a way to take advantage of these functions myself. So what can you use it for? The type where you can record mouse movement and/or keystrokes? Is it really that helpful to people out there? Specifically, I deal with Ecli... | [
0.396879643201828,
-0.16259120404720306,
0.004535892512649298,
0.32406914234161377,
0.007410737220197916,
-0.3312792181968689,
-0.22099162638187408,
0.10248759388923645,
-0.5018149614334106,
-0.3152823746204376,
0.3377014994621277,
0.74970942735672,
-0.15702879428863525,
-0.156118765473365... | |
a "|\* ". In EMACS, I hit `C-x (` to start recording, do one example line to see that it's what I want, ending with `C-n C-a` to move to the next line, and end the macro with `C-x )`. Then `C-x e` repeats it line by line, and `C-u` *number* `C-x e` does it many times. | [
0.1876974105834961,
0.14329150319099426,
0.44996118545532227,
-0.2894333302974701,
0.09756405651569366,
0.378202348947525,
0.12823612987995148,
-0.07905882596969604,
-0.29260605573654175,
-0.3793947994709015,
-0.251392126083374,
0.42615219950675964,
-0.30782899260520935,
0.2731594145298004... | |
for a paper I'm looking for an *real-life* C function which uses volatile variables. That in itself is not hard to find, but I am looking for a function in which the value of the volatile variable must change **during** the course of the execution of the function, for a particular branch of the function to be reached. ... | [
0.10552266240119934,
-0.0009957202710211277,
0.26768991351127625,
-0.1463187336921692,
0.14580336213111877,
0.11224009841680527,
0.030346684157848358,
-0.3164094388484955,
-0.32312875986099243,
-0.36534374952316284,
-0.11008752882480621,
0.48640140891075134,
-0.4862879514694214,
0.12806788... | |
{};
//io_->FLAG1 is now 0
io_->FLAG2 = 1;
sleep(10);
if (io->FLAG1)
return 1; //io->FLAG1 has changed from 0 to 1
else
return 0; //io->FLAG1 has not changed
}
```
It would be sufficient if different bits of the structure changed during the execution of the function, but my ... | [
0.267912894487381,
-0.089298315346241,
0.28165650367736816,
-0.37182945013046265,
0.5073796510696411,
-0.0532500185072422,
0.4536541700363159,
-0.2469078004360199,
-0.4177141487598419,
-0.4300783574581146,
-0.33849355578422546,
0.5385435223579407,
-0.23550081253051758,
0.11683052033185959,... | |
of the function.
I'd be very grateful for any real-life examples. I haven't been able to find many examples using volatile on the web.
Some example of my teacher, which worked without volatile with one compiler (lcc), but breaked when i run it with my gcc port for that processor. I had to put volatile in.
```
static ... | [
-0.2288915514945984,
-0.08831104636192322,
0.15145032107830048,
-0.04608487710356712,
0.06409987062215805,
0.2242244929075241,
0.3807508051395416,
-0.30839505791664124,
-0.17444099485874176,
-0.09645800292491913,
-0.31309518218040466,
0.8547139763832092,
-0.6334635615348816,
-0.09110660105... | |
= (unsigned char *) 0xC0000000;
while (1) {
b = *ptr;
if (busTimeoutSeen) {
break;
}
ptr += (1 << 12);
}
setISR(16, oldService);
return (ptr - (unsigned char *) 0xC0000000) >> 12;
}
```
It reads continuously from all pages, until we get past the last page, which causes an interrupt, whic... | [
0.22603793442249298,
-0.004915662109851837,
0.459073543548584,
-0.050452932715415955,
0.42391663789749146,
0.05858853831887245,
0.4822429418563843,
-0.021158024668693542,
-0.4463740289211273,
-0.26034319400787354,
-0.45351505279541016,
0.5737095475196838,
-0.3346007168292999,
0.06916704773... | |
I need to delete a temporary file from my C++ windows application (developed in Borland C++ Builder). Currently I use a simple:
```
system("del tempfile.tmp");
```
This causes a console window to flash in front of my app and it doesn't look very professional. How do I do this without the console window?
It sounds li... | [
0.1983603984117508,
0.19825686514377594,
0.5233122706413269,
-0.14243021607398987,
0.16812892258167267,
-0.15099333226680756,
0.27424484491348267,
0.16646218299865723,
-0.19786961376667023,
-0.6263531446456909,
-0.2999851703643799,
0.8211618661880493,
-0.04677969589829445,
0.31651616096496... | |
This sure seems like a simple error to fix. However, I somehow can't figure it out. Found some posts here and went thru them and couldn't get it to work. Sure seems like a famous error.
The error I'm getting is : Unable to start debugging on the web server. An Authentication error occured while communicating with the ... | [
0.33025574684143066,
0.1635603904724121,
0.14029428362846375,
0.21659807860851288,
-0.23990923166275024,
-0.28275424242019653,
1.0458128452301025,
-0.07318602502346039,
-0.19146667420864105,
-0.594052791595459,
0.02311064302921295,
0.46490269899368286,
-0.34054064750671387,
0.2587462067604... | |
process. However, my breakpoints say that running code and current code doesn't match, even though I compiled the web and ran it..sounds like im attached to the wrong process but there is only 1 w3wp process there to attach to, which should be just my process.
I even did an aspnet\_regiis. Still notta.
Thoughts?
Afte... | [
0.15416084229946136,
0.20776495337486267,
0.48352527618408203,
0.24058787524700165,
0.26509255170822144,
0.1722639948129654,
0.43771201372146606,
-0.1829719841480255,
-0.5051508545875549,
-0.6856517195701599,
-0.0034696189686656,
0.5098500847816467,
-0.15002736449241638,
0.4111665487289428... | |
solved! Since it's a dev box on the inside, shouldn't be a security risk.
Thanks for the help!!! | [
-0.02493712119758129,
0.34189116954803467,
0.24877609312534332,
0.6343725323677063,
0.17159436643123627,
-0.2691294848918915,
0.6008172035217285,
0.3884817957878113,
0.07006005942821503,
-0.4214405119419098,
-0.1436542272567749,
0.45963364839553833,
0.06231481954455376,
-0.1266519576311111... | |
I have a program where I generate bitstreams, of about 80 to 150 bits or so, which I would like to compress, because I'm going to turn them into some kind of ASCII string so people can transmit them around.
Does anyone know of a good, free bit-aware compressor that might work on such a stream? My main problem with the... | [
0.526261031627655,
0.11315889656543732,
0.129287987947464,
0.44596239924430847,
0.03489178791642189,
0.1406354308128357,
-0.12405795603990555,
0.07215982675552368,
-0.15106448531150818,
-0.5752354264259338,
-0.11146298795938492,
0.257076233625412,
-0.07233566045761108,
0.1028285026550293,
... | |
probably using something like base64 encoding, so saving some data is helpful.
Here is an example, for those who would like to see it. I'll add formatting to make it easier to read:
```
110 110 - This is a 6x6 grid (the maximum is 7x7, so we only need 3 bits!)
000000
011110
010010
010010
011110
000000 - This is one ... | [
0.42589157819747925,
0.2379246950149536,
0.22431449592113495,
-0.19098949432373047,
-0.432566374540329,
0.3444945514202118,
-0.05276356264948845,
-0.4073471128940582,
-0.48980712890625,
-0.7803480625152588,
-0.20020370185375214,
-0.013985754922032356,
-0.3200128376483917,
0.045058231800794... | |
'as bits' is that there is obvious compression options when viewed as a bitstream (in particular, usually many 0s in the 'grid's), which disappear when you consider it as a byte-stream.
What are you hoping to accomplish by compressing 150 bits? Unless you aggregate several of this 19b messages, I'm not sure what you ho... | [
0.6124682426452637,
-0.14351698756217957,
0.36860546469688416,
0.1312265396118164,
-0.138350710272789,
0.19302354753017426,
0.2313557267189026,
-0.3855292797088623,
-0.43240514397621155,
-0.4769454598426819,
-0.4179397523403168,
0.4240582287311554,
-0.31253916025161743,
0.03497675433754921... | |
I'm having a hard time with the setup statement in Python's timeit.Timer(stmt, setup\_stmt). I appreciate any help to get me out of this tricky problem:
So my sniplet looks like this:
```
def compare(string1, string2):
# compare 2 strings
if __name__ = '__main__':
str1 = "This string has \n several new lines... | [
0.06980840861797333,
0.17527098953723907,
0.2629883885383606,
-0.34395939111709595,
-0.3015117645263672,
0.15679199993610382,
0.5301656723022461,
-0.072694793343544,
0.0012265179539099336,
-0.815216600894928,
0.02393297292292118,
0.42934370040893555,
-0.37973886728286743,
0.088992968201637... | |
the variable str1, str2 without changing their meaning in the setup statement:
```
"from __main__ import compare; p1=%s, p2=%s" % (str1,str2)
```
I tried various combination but always have the following errors:
SyntaxError: can't assign to literal
SyntaxError: EOL while scanning single-quoted string
SyntaxEr... | [
-0.1314888596534729,
0.1061309278011322,
0.349588006734848,
-0.3362118601799011,
-0.2520122528076172,
0.40453267097473145,
0.44983839988708496,
-0.31245389580726624,
-0.20379067957401276,
-0.2848704159259796,
-0.07261037081480026,
0.7817569375038147,
-0.3782382905483246,
0.1113797128200531... | |
Whats the other option we can use for multiple inheritance other than implementing interface
A direct answer is to use inner classes. That gives you two (or more) objects that are intimately linked but cover independent base classes.
In general, prefer composition over inheritance. It's a common mistake to use inherit... | [
0.10174977779388428,
-0.2959196865558624,
-0.2335137575864792,
0.3976355195045471,
-0.29049763083457947,
0.038918305188417435,
0.022164583206176758,
-0.00859128963202238,
-0.13454440236091614,
-0.8422507643699646,
0.13938769698143005,
0.5441369414329529,
-0.3664247989654541,
-0.13818261027... | |
In Java 1.4 you could use ((SunToolkit) Toolkit.getDefaultToolkit()).getNativeWindowHandleFromComponent() but that was removed.
It looks like you have to use JNI to do this now. Do you have the JNI code and sample Java code to do this?
I need this to call the Win32 GetWindowLong and SetWindowLong API calls, which can... | [
0.3672407567501068,
-0.11186318099498749,
0.0954442247748375,
-0.06969121098518372,
-0.5391237735748291,
-0.2701960504055023,
0.0504642017185688,
-0.4159165322780609,
-0.17786335945129395,
-0.7286366820335388,
0.2483733594417572,
0.5660005211830139,
-0.34471336007118225,
-0.309531956911087... | |
that a Component has a corresponding window handle call isLightWeight() on the Component and verify that it equals false. If it doesn't, try it's parent by calling Component.getParent().
Java code:
```
package win32;
public class Win32 {
public static native int getWindowHandle(Component c);
}
```
Header file m... | [
0.2766266465187073,
0.05459469184279442,
0.4939648509025574,
-0.00803827028721571,
-0.11396759748458862,
-0.0021424151491373777,
0.224909707903862,
-0.49013280868530273,
-0.17563262581825256,
-0.3082540035247803,
-0.2807707190513611,
0.6085540652275085,
-0.3098810911178589,
0.3066622018814... | |
0;
JNIEXPORT jint JNICALL Java_win32_Win32_getWindowHandle
(JNIEnv * env, jclass cls, jobject comp)
{
HWND hWnd = 0;
typedef jboolean (JNICALL *PJAWT_GETAWT)(JNIEnv*, JAWT*);
JAWT awt;
JAWT_DrawingSurface* ds;
JAWT_DrawingSurfaceInfo* dsi;
JAWT_Win32DrawingSurfaceInfo* dsi_win;
jboolean r... | [
-0.11800798773765564,
-0.17772747576236725,
0.494524747133255,
-0.43236255645751953,
-0.13923457264900208,
0.18198895454406738,
0.5142391324043274,
-0.35602208971977234,
-0.003926751669496298,
-0.5011085867881775,
-0.5022028684616089,
0.7136783599853516,
-0.16552816331386566,
0.16432921588... | |
1.3
_hAWT = LoadLibrary("awt.dll");
if(_hAWT)
{
PJAWT_GETAWT JAWT_GetAWT = (PJAWT_GETAWT)GetProcAddress(_hAWT, "_JAWT_GetAWT@8");
if(JAWT_GetAWT)
{
awt.version = JAWT_VERSION_1_4; // Init here with JAWT_VERSION_1_3 or JAWT_VERSION_1_4
//Get AWT API Interfa... | [
0.15379022061824799,
-0.26922959089279175,
0.6199924349784851,
-0.45491594076156616,
-0.22678273916244507,
0.25263649225234985,
0.549177348613739,
-0.3624069392681122,
-0.02831844426691532,
-0.5483179092407227,
-0.40482252836227417,
0.9251823425292969,
-0.38469597697257996,
0.0442582145333... | |
if(result != JNI_FALSE)
{
ds = awt.GetDrawingSurface(env, comp);
if(ds != NULL)
{
lock = ds->Lock(ds); | [
-0.38870304822921753,
-0.5110254287719727,
0.4494805932044983,
-0.264003723859787,
0.2327597588300705,
-0.04508468136191368,
0.682784914970398,
-0.6328317523002625,
0.13894660770893097,
-0.1256192922592163,
-0.5273457169532776,
0.6029249429702759,
-0.24254940450191498,
0.10731073468923569,... | |
if((lock & JAWT_LOCK_ERROR) == 0)
{
dsi = ds->GetDrawingSurfaceInfo(ds);
if(dsi) | [
-0.5559322237968445,
-0.3991405665874481,
0.8964284658432007,
-0.35262787342071533,
0.3347263038158417,
-0.21263715624809265,
0.5493600368499756,
-0.44571763277053833,
-0.03750751167535782,
-0.46556326746940613,
-0.3741273880004883,
0.702063798904419,
-0.2907101809978485,
-0.05103499069809... | |
{
dsi_win = (JAWT_Win32DrawingSurfaceInfo*)dsi->platformInfo;
if(dsi_win) | [
-0.6101076006889343,
-0.4620441496372223,
0.5239964723587036,
0.08570335060358047,
0.018937665969133377,
-0.04032517597079277,
0.44679006934165955,
-0.06709719449281693,
-0.077541783452034,
-0.6144957542419434,
-0.41317373514175415,
0.7275377511978149,
0.012541784904897213,
0.1717878878116... | |
{
hWnd = dsi_win->hwnd;
}
else { | [
-0.3840915858745575,
-0.382646769285202,
0.1733444482088089,
-0.08801739662885666,
0.0598720945417881,
-0.25086119771003723,
0.11148881912231445,
-0.1527685672044754,
0.11885417252779007,
-0.39053794741630554,
-0.5493950247764587,
0.694570779800415,
-0.041119907051324844,
0.228705242276191... | |
hWnd = (HWND) -1;
}
ds->FreeDrawingSurfaceInfo(dsi); | [
-0.40125584602355957,
-0.5542804598808289,
0.47962453961372375,
-0.056654755026102066,
-0.05440704897046089,
-0.2719095051288605,
0.4636373817920685,
-0.4763723611831665,
-0.003609261941164732,
-0.588089108467102,
-0.4802026152610779,
0.2953345775604248,
-0.5343236923217773,
0.277610927820... | |
}
else {
hWnd = (HWND) -2;
} | [
-0.14340856671333313,
-0.19916307926177979,
-0.011377946473658085,
-0.35153165459632874,
0.226297065615654,
-0.19046171009540558,
0.22469179332256317,
-0.14857235550880432,
0.08474741131067276,
-0.36726462841033936,
-0.40449240803718567,
0.7293148636817932,
-0.11816058307886124,
-0.1369288... | |
ds->Unlock(ds);
}
else {
hWnd = (HWND) -3; | [
-0.5627492666244507,
-0.39459601044654846,
0.36924999952316284,
-0.29736313223838806,
0.30591094493865967,
-0.2746528089046478,
0.7436217069625854,
-0.8603736162185669,
-0.09282702207565308,
-0.24681904911994934,
-0.7450852990150452,
0.4959276616573334,
-0.24197687208652496,
0.283184617757... | |
}
awt.FreeDrawingSurface(ds);
}
else {
hWnd = (HWND) -4;
} | [
-0.10577132552862167,
-0.5515683889389038,
0.21948710083961487,
-0.20333844423294067,
-0.08943221718072891,
0.07770837098360062,
0.6178023815155029,
-0.5527377724647522,
0.02355777658522129,
-0.4752848446369171,
-0.2835659980773926,
0.6479530334472656,
-0.37524762749671936,
0.0914831608533... | |
}
else {
hWnd = (HWND) -5;
}
}
else {
hWnd = (HWND) -6;
}
}
else { | [
-0.13861574232578278,
-0.16958896815776825,
0.07646200805902481,
-0.1995004564523697,
0.12278411537408829,
0.06474720686674118,
0.18461734056472778,
-0.31272947788238525,
-0.015774458646774292,
-0.34755998849868774,
-0.5693329572677612,
0.8057869076728821,
-0.07603083550930023,
0.145179122... | |
hWnd = (HWND) -7;
}
return (jint)hWnd;
}
``` | [
-0.02456030435860157,
-0.00809318944811821,
0.3526308536529541,
-0.30981889367103577,
0.09121830016374588,
-0.07894092053174973,
0.3946962356567383,
-0.11785728484392166,
-0.05279817059636116,
-0.40126293897628784,
-0.5966591835021973,
0.9461827874183655,
-0.10193163901567459,
0.4521252810... | |
I'm using LINQ to SQL to pull records from a database, sort them by a string field, then perform some other work on them. Unfortunately the Name field that I'm sorting by comes out of the database like this
```
Name
ADAPT1
ADAPT10
ADAPT11
...
ADAPT2
ADAPT3
```
I'd like to sort the Name field in numerical order. Righ... | [
-0.0688670426607132,
0.3172000050544739,
0.4621179401874542,
-0.16173698008060455,
0.07791175693273544,
0.40334248542785645,
-0.13210587203502655,
-0.6374009847640991,
-0.24759386479854584,
-1.1753778457641602,
0.14876341819763184,
0.39659032225608826,
-0.4454054534435272,
0.13030865788459... | |
where aun.EventID == iep.EventID
select new Adaptation
{ | [
-0.08504457771778107,
-0.4454803466796875,
0.1121683120727539,
-0.17749916017055511,
0.33819013833999634,
0.28579044342041016,
0.24286451935768127,
-0.2039119303226471,
0.04050641506910324,
-1.0852645635604858,
-0.0855841264128685,
0.534394383430481,
-0.5118253827095032,
0.1659563928842544... | |
StudentID = aun.StudentID,
EventID = aun.EventID,
Name = Regex.Replace(aun.Name, | [
-0.2451525330543518,
-0.24628333747386932,
0.32637593150138855,
0.10840250551700592,
0.06287375092506409,
0.23274560272693634,
-0.0977262482047081,
-0.038171637803316116,
-0.058418553322553635,
-0.6197571158409119,
-0.7286143898963928,
0.09348134696483612,
-0.2288840115070343,
0.2220287322... | |
@"ADAPT([0-9])$", @"ADAPT0$1"),
Value = aun.Value
}; | [
0.12815099954605103,
-0.03916819393634796,
0.4477657973766327,
-0.5051212310791016,
0.42714574933052063,
0.27009117603302,
0.30400222539901733,
-0.27210360765457153,
0.21645081043243408,
-0.7161713242530823,
-0.19654756784439087,
1.0085608959197998,
-0.5938394069671631,
0.2044430524110794,... | |
var adaptationsSorted = from ast in adaptationsUnsorted
orderby ast.Name
select ast;
foreach(Adaptation adaptation in adaptationsSorted)
{
// do real work
}
```
The problem I have is that the foreach loop throws | [
0.2047000676393509,
-0.03469604253768921,
0.05914200842380524,
-0.4853871762752533,
0.2715035378932953,
0.32034051418304443,
0.37141236662864685,
-0.629979133605957,
-0.034768640995025635,
-0.8344767689704895,
0.0002515666128601879,
0.5521090030670166,
-0.41535019874572754,
-0.038938879966... | |
the exception
```
System.NotSupportedException was unhandled
Message="Method 'System.String Replace(System.String, System.String,
System.String)' has no supported translation to SQL."
Source="System.Data.Linq"
```
I'm also wondering if there's a cleaner way to do this with just one LINQ query. Any suggestion... | [
-0.3437914252281189,
0.08362088352441788,
0.3620774447917938,
-0.21354438364505768,
0.053763698786497116,
0.07618889212608337,
0.446712464094162,
-0.4145495891571045,
-0.2924668788909912,
-0.6779800653457642,
-0.4573388993740082,
0.45566216111183167,
-0.5545793771743774,
0.0359820164740085... | |
I have to dump a large database over a network pipe that doesn't have that much bandwidth and other people need to use concurrently. If I try it it soaks up all the bandwidth and latency soars and everyone else gets messed up.
I'm aware of the --compress flag to mysqldump which help somewhat.
How can I do this withou... | [
0.2246830314397812,
0.07271508127450943,
0.023243596777319908,
0.14812099933624268,
-0.3198262155056,
-0.1759290099143982,
-0.012831294909119606,
0.16818557679653168,
-0.33521389961242676,
-0.6625381708145142,
0.3024638891220093,
-0.026441220194101334,
-0.27007031440734863,
0.2175873517990... | |
userspace bandwidth shaper
You don't mention how you are actually transffering the DB dump, but if the transfer happens over TCP/IP, trickle should work. For example, if you use `nc` (for example: `nc -L 1234 > backup.sql`) the following command will transfer the backup at no greater than 20KB/s:
```
mysqldump [datab... | [
0.04244406893849373,
-0.31955885887145996,
0.6211553812026978,
0.30037593841552734,
0.019033415243029594,
-0.25768083333969116,
-0.004303503781557083,
0.12868651747703552,
-0.41033029556274414,
-0.8702772259712219,
0.058203618973493576,
0.3443610370159149,
-0.364857941865921,
0.33993619680... | |
Does anyone know how to change the ReSharper color scheme in VS2008 SP1?
I've looked around and all the posts out there on the internet pointed to dead-ends.
JetBrains at one point told users to change the colors inside VS (Tools | Options | Fonts and Colors | Text Editor) but I don't see any ReSharper items in there.... | [
0.35774287581443787,
-0.3293212354183197,
0.7684192657470703,
0.25352105498313904,
0.1344149112701416,
-0.15481509268283844,
0.17564626038074493,
-0.18301834166049957,
-0.2834576964378357,
-0.8711947798728943,
-0.023000499233603477,
0.7993836402893066,
-0.368969202041626,
-0.19220712780952... | |
So I have the following code:
```
return from a in DBContext.Acts
join artist in DBContext.Artists on a.ArtistID equals artist.ID into art
from artist in art.DefaultIfEmpty()
select new Shared.DO.Act
{
ID = a.ID,
Name = a.Name, | [
0.11118588596582413,
-0.2740311920642853,
0.35257214307785034,
-0.16365943849086761,
-0.2746378183364868,
0.1959763914346695,
0.303878515958786,
-0.5758001208305359,
-0.08198129385709763,
-0.8412691354751587,
0.11186452209949493,
0.5470097064971924,
-0.4129030406475067,
0.174005389213562,
... | |
Artist = new Shared.DO.Artist
{
ID = artist.ID,
Name = artist.Name
},
GigId = a.GigID
};
```
This loads an act object | [
0.05444662645459175,
-0.5288507342338562,
-0.05115782842040062,
-0.13602665066719055,
-0.34922361373901367,
0.08577089011669159,
0.2912807762622833,
-0.24493853747844696,
-0.35173287987709045,
-0.8180574178695679,
-0.20344023406505585,
0.26386111974716187,
-0.7312732934951782,
0.0868924483... | |
and adapts it from a linq object to my domain act object.
As you can see I have defined an outer join on the artist to act relationship.
I have done this because I always want the act, irrespective of if it has an artist.
This works really well if the act does indeed have an artist.
If it doesnt then the code dies.... | [
0.19426195323467255,
-0.19180341064929962,
0.4596879780292511,
-0.05612301826477051,
0.11272475868463516,
-0.2181967943906784,
0.39032721519470215,
-0.07554960250854492,
-0.17420440912246704,
-0.7698706984519958,
0.018594855442643166,
0.41385769844055176,
-0.40517354011535645,
0.3416811525... | |
Name = artist.Name
},
```
If I remove it, its fine. Is it possible to do what I'm attempting?
```
Artist = new Shared.DO.Artist
{
ID = artist == null ? Guid.NewGuid() : artist.ID,
Name = artist == | [
0.19244635105133057,
-0.030342506244778633,
0.23428644239902496,
-0.2349049597978592,
0.10983192920684814,
0.01167980581521988,
0.22562740743160248,
-0.37847399711608887,
-0.35184699296951294,
-0.8066063523292542,
-0.09429865330457687,
0.5999113917350769,
-0.34391430020332336,
0.2762936055... | |
null ? string.Empty : artist.Name
}
```
Alternatively, add a constructor to Shared.DO.Artist that takes the Linq representation of Artist. The constructor can check for null and perform all initialization. | [
0.21511879563331604,
-0.02612118422985077,
0.035218529403209686,
-0.10599656403064728,
-0.12183006852865219,
-0.07050029933452606,
-0.04920380935072899,
-0.12845014035701752,
-0.0578383207321167,
-0.5768541693687439,
-0.0034009115770459175,
0.31628328561782837,
-0.5222041010856628,
0.15360... | |
I'm trying to use the library released by Novell (Novell.Directory.Ldap). Version 2.1.10.
What I've done so far:
* I tested the connection with an application ([LdapBrowser](http://www.mcs.anl.gov/~gawor/ldap/index.html)) and it's working, so its not a communication problem.
* It's compiled in Mono, but I'm working ... | [
0.5758348107337952,
0.17490240931510925,
0.14833413064479828,
-0.020095739513635635,
-0.10416704416275024,
-0.23307670652866364,
0.39978498220443726,
-0.11174799501895905,
-0.2899135649204254,
-0.805385410785675,
-0.029926523566246033,
0.5521981716156006,
-0.4443090260028839,
0.04752098768... | |
basics steps provided in the documentation by Novell (<http://www.novell.com/coolsolutions/feature/11204.html>).
// Creating an LdapConnection instance
LdapConnection ldapConn= new LdapConnection();
ldapConn.SecureSocketLayer = ldapPort == 636;
//Connect function will create a socket connection to the server
ldap... | [
0.1922752857208252,
-0.1688578575849533,
0.2644336223602295,
0.17689292132854462,
0.10300347208976746,
-0.33465132117271423,
0.2823166251182556,
-0.5815502405166626,
-0.11922091245651245,
-0.7327350378036499,
-0.07474066317081451,
0.630130410194397,
-0.5039349794387817,
0.09398241341114044... | |
but I don't want it to be installed on the server)?
(UPDATE)
The connection is on port 636, thus using SSL. I checked with WireShark the communication and compared with what I get from LDAP Browser. I've seen that the step where the SSL certicate is communicated, is not done by the LDAP library. So, what is the best w... | [
0.241031214594841,
-0.2744056284427643,
0.7854880094528198,
0.23492826521396637,
0.01414573285728693,
-0.6557247042655945,
0.4030771851539612,
-0.07802288234233856,
0.049804799258708954,
-0.8020884990692139,
-0.2761453688144684,
0.43825024366378784,
-0.30007204413414,
0.14893540740013123,
... | |
added.
But the documentation date from 2004, and since then, many updates have been made. And there is a parameter in the library to define if the connection uses SSL. So now I'm confused.
(UPDATE) Found a more up-to-date documentation : <http://developer.novell.com/documentation//ldapcsharp/index.html?page=/document... | [
0.2403666228055954,
-0.24576379358768463,
0.6894075274467468,
0.04858401417732239,
-0.2568545639514923,
-0.34595397114753723,
-0.031097562983632088,
-0.05096956342458725,
-0.5285720825195312,
-0.7921437621116638,
0.03960641846060753,
0.23266738653182983,
-0.4961106479167938,
0.400283575057... | |
dll of the Novell LDAP Library and used the Mono.Security.Dll.
The solution:
I added this function to the code
```
// This is the Callback handler - after "Binding" this is called
public bool MySSLHandler(Syscert.X509Certificate certificate, int[] certificateErrors)
{
X509Store store = ... | [
0.0783197209239006,
-0.1922151893377304,
0.5044937133789062,
0.05376867204904556,
-0.03595663979649544,
-0.3860619068145752,
0.44140809774398804,
-0.3315754234790802,
0.0007621467811986804,
-0.38651663064956665,
-0.3514277935028076,
0.7424411773681641,
-0.6421211361885071,
0.33633467555046... | |
//Import the details of the certificate from the server.
X509Certificate x509 = null;
X509CertificateCollection coll = new X509CertificateCollection();
byte[] data = certificate.GetRawCertData();
if (data != null)
x509 = new X509Certificate(data); | [
-0.05203290283679962,
-0.08633551001548767,
0.7065934538841248,
-0.07874765247106552,
-0.05246029794216156,
-0.0730549693107605,
0.4075462520122528,
-0.33144888281822205,
-0.028203438967466354,
-0.249659925699234,
-0.40882715582847595,
0.40505874156951904,
-0.20321492850780487,
0.331122487... | |
//List the details of the Server
//if (bindCount == 1)
//{
Response.Write("<b><u>CERTIFICATE DETAILS:</b></u> <br>");
Response.Write(" Self Signed = " + x509.IsSelfSigned + " X.509 version=" + x509.Version + "<br>");
Response.Write(" Serial Number: " + C... | [
-0.13716726005077362,
-0.038873348385095596,
0.7585467100143433,
-0.10583078116178513,
-0.14904655516147614,
0.08583953231573105,
0.479428768157959,
-0.4282906949520111,
-0.135747030377388,
-0.4916495680809021,
-0.2726758122444153,
0.257209837436676,
-0.12489482760429382,
0.132217228412628... | |
"<br>");
Response.Write(" Issuer Name: " + x509.IssuerName.ToString() + "<br>");
Response.Write(" Subject Name: " + x509.SubjectName.ToString() + "<br>");
Response.Write(" Valid From: " + x509.ValidFrom.ToString() + "<br>");
Response.Write(" Valid Until: " + x... | [
-0.19485142827033997,
-0.06600656360387802,
1.0202759504318237,
-0.3680662214756012,
-0.13369198143482208,
-0.22046110033988953,
0.2091492861509323,
-0.6059144735336304,
-0.36207789182662964,
-0.14235441386699677,
-0.9284945726394653,
0.502370297908783,
-0.20479531586170197,
0.110408723354... | |
Response.Write(" Unique Hash: " + CryptoConvert.ToHex(x509.Hash).ToString() + "<br>");
// }
bHowToProceed = true;
if (bHowToProceed == true)
{
//Add the certificate to the store. This is \Documents and Settings\program data\.mono. . . | [
0.17052993178367615,
0.018361272290349007,
0.21655163168907166,
-0.17620038986206055,
0.16762647032737732,
-0.05283878743648529,
0.5202485918998718,
-0.599522590637207,
-0.20949046313762665,
-0.26692259311676025,
-0.4120349884033203,
0.7477789521217346,
-0.36379092931747437,
0.259531825780... | |
if (x509 != null)
coll.Add(x509);
store.Import(x509);
if (bindCount == 1)
removeFlag = true; | [
-0.10378420352935791,
-0.24765966832637787,
0.3459911644458771,
-0.5475077629089355,
0.224456787109375,
-0.04988956078886986,
0.5107043981552124,
-0.2839648425579071,
0.15660762786865234,
-0.3156090974807739,
-0.4903045892715454,
0.5283817648887634,
-0.615889310836792,
-0.03195256739854812... | |
}
if (bHowToProceed == false)
{
//Remove the certificate added from the store.
if (removeFlag == true && bindCount > 1)
{ | [
0.0803365409374237,
0.14336970448493958,
0.10629723966121674,
-0.2693006992340088,
0.40750882029533386,
-0.2942157983779907,
0.6201906204223633,
-0.09966717660427094,
0.3497288227081299,
-0.09153448045253754,
-0.3985132873058319,
0.4954942762851715,
-0.3552044928073883,
0.21992802619934082... | |
foreach (X509Certificate xt509 in store.Certificates)
{
if (CryptoConvert.ToHex(xt509.Hash) == CryptoConvert.ToHex(x509.Hash))
{ | [
-0.00957286637276411,
0.36540722846984863,
0.2765272855758667,
-0.3347102403640747,
0.43765905499458313,
0.18889999389648438,
0.2654736638069153,
-0.31565308570861816,
0.23497124016284943,
-0.4248120188713074,
-0.25607916712760925,
0.5281735062599182,
-0.23477862775325775,
0.13155919313430... | |
store.Remove(x509);
}
}
}
Response.Write("SSL Bind Failed."); | [
-0.19988524913787842,
-0.21006570756435394,
0.09560032188892365,
-0.48789340257644653,
0.033595457673072815,
-0.08155757933855057,
0.8103067874908447,
-0.2467948943376541,
-0.01689576730132103,
-0.6871317625045776,
-0.35089021921157837,
0.4095204770565033,
-0.6140119433403015,
0.2868183255... | |
}
return bHowToProceed;
}
```
And i used it in the binding process
```
// Create Connection
LdapConnection conn = new LdapConnection();
conn.SecureSocketLayer = true;
Response.Write("Connecting to:" + ldapHost); | [
-0.30946314334869385,
-0.2707346975803375,
0.47203296422958374,
-0.30974406003952026,
0.06217976287007332,
-0.3031238913536072,
0.46873971819877625,
-0.30218705534935,
0.15103544294834137,
-0.5006216764450073,
-0.36519384384155273,
0.6024777293205261,
-0.628673791885376,
0.2919209003448486... | |
conn.UserDefinedServerCertValidationDelegate += new
CertificateValidationCallback(MySSLHandler);
if (bHowToProceed == false)
conn.Disconnect();
if (bHowToProceed == true) | [
-0.3791350722312927,
0.14407849311828613,
0.6378705501556396,
-0.1720629334449768,
0.23558703064918518,
-0.2603711485862732,
0.5209428668022156,
-0.2157752811908722,
-0.09158620238304138,
-0.16306255757808685,
-0.4781292676925659,
0.5125346779823303,
-0.19666363298892975,
0.373529821634292... | |
{
conn.Connect(ldapHost, ldapPort);
conn.Bind(loginDN, password);
Response.Write(" SSL Bind Successfull ");
conn.Disconnect(); | [
-0.3812674283981323,
-0.33411455154418945,
0.5152157545089722,
-0.2246524840593338,
0.10284893959760666,
-0.23469282686710358,
0.658500075340271,
-0.3019495904445648,
0.059859320521354675,
-0.6531363725662231,
-0.6747657656669617,
0.6248845458030701,
-0.7842370271682739,
0.2670165002346039... | |
}
quit = false;
```
The key elements are using the SSL Handler to dynamically obtain the Certificate, and using X509StoreManager.LocalMachine so that when the website is running its able to save and fetch the certificates. | [
0.45005249977111816,
-0.3123655915260315,
0.022435836493968964,
-0.014957384206354618,
0.21899963915348053,
-0.4973107874393463,
0.42324984073638916,
-0.1017608493566513,
-0.0045923287980258465,
-0.2716805636882782,
-0.2740297019481659,
0.739417552947998,
-0.41410544514656067,
0.1493541747... | |
I'm trying to use the MSBuild NUnit community task to force tests to run on each build, but I now see that when I use ReSharper's test runner and it builds the project I'm running the tests twice. It works but is not really desirable.
Does anyone know of a variable or condition I can check within MSBuild so that I can... | [
0.3892504572868347,
-0.055420659482479095,
0.24504141509532928,
-0.1110360324382782,
-0.21258625388145447,
-0.12939320504665375,
0.666046679019928,
-0.12106921523809433,
0.026011571288108826,
-0.6391054391860962,
0.26588883996009827,
0.8955561518669128,
-0.27306827902793884,
0.160260692238... | |
`SHIFT` + `B`, plus command-line, plus CI server.
I asked this question on the [Resharper community forums](http://www.jetbrains.net/devnet/message/5229453) and although I didn't get a direct yes or no to my question, I interpreted the answer to be no. If anyone wants to chime in with a confirmed yes or no, it would se... | [
0.39271101355552673,
-0.1667151004076004,
0.41098862886428833,
-0.08966652303934097,
-0.12170898914337158,
0.16858968138694763,
-0.038935042917728424,
-0.18637143075466156,
0.0515037402510643,
-0.5552980899810791,
-0.13935963809490204,
0.7270936369895935,
-0.3897368013858795,
0.25144550204... | |
Every time I add a reference to a web project in visual studio 2008 that is in my GAC, it adds the reference as a GAC reference and doesn't copy the file to my bin directory. But for deployment purposes, I would like to add the reference as a non-GAC reference so it adds the dll to my bin directory. I've tried using th... | [
0.3238326609134674,
0.09873144328594208,
0.46533191204071045,
0.26293009519577026,
-0.2511093020439148,
-0.1805594116449356,
-0.038728389889001846,
0.020775390788912773,
-0.2876637578010559,
-0.6013712882995605,
-0.021632187068462372,
0.5380459427833557,
-0.38755711913108826,
0.43917924165... | |
local in the properties of the file.
Any help please?!?
Chris, you're probably long past this problem, but I stumbled upon your question when trying to do the same thing in VS 2005. In case anyone else comes here looking for a solution....
You are correct, of course, that a web project does not give you the copy loca... | [
0.23921222984790802,
0.026015754789114,
0.07209504395723343,
0.4027520716190338,
-0.06756102293729782,
-0.4122956097126007,
0.35634925961494446,
0.4206749200820923,
-0.3678838908672333,
-0.6157107949256897,
0.1739056408405304,
0.665693998336792,
-0.27102041244506836,
0.4808633029460907,
... | |
if you rebuild the external file you'll have to manually refresh the local copy. | [
0.16650715470314026,
0.32055774331092834,
0.0852929875254631,
-0.04417606070637703,
0.40016648173332214,
-0.20937804877758026,
0.4657665193080902,
0.021623952314257622,
-0.18335111439228058,
-0.5427778363227844,
-0.29704055190086365,
0.7165476679801941,
0.04670847952365875,
0.2328854948282... | |
Recommended by the ASP.NET team to use cache instead of session, we stopped using session from working with the WebForm model the last few years. So we normally have the session turned off in the web.config
```
<sessionState mode="Off" />
```
But, now when I'm testing out a ASP.NET MVC application with this setting ... | [
0.09290890395641327,
0.0694732666015625,
0.28526583313941956,
-0.014939628541469574,
-0.18374602496623993,
-0.19637377560138702,
0.6232250332832336,
-0.07218527048826218,
-0.23524057865142822,
-0.6439118981361389,
-0.0232599638402462,
0.6285614967346191,
-0.27807801961898804,
0.22034925222... | |
am I missing?
========================================================
**Edit** Sorry didn't mean for this post to debate on session vs. cache, but rather in the context of the ASP.NET MVC, I was just wondering why session is used here. In this [blog post](http://scottw.com/asp-net-web-config-tips-part-two) also Scot... | [
0.35228410363197327,
0.1667623370885849,
0.28772038221359253,
-0.08197598904371262,
-0.033044666051864624,
-0.4576881229877472,
0.5700936913490295,
-0.13708998262882233,
-0.37015244364738464,
-0.27155688405036926,
-0.21756774187088013,
0.6007128357887268,
-0.34542185068130493,
0.2496765851... | |
it is next read.) The purpose of TempData is to store data, then do a redirect, and have the stored data be available to the action to which you just redirected.
Using Session for the TempData store means that any distributed caching system which already handles Session will work for TempData. Avoiding using Session d... | [
0.07393135875463486,
-0.2512059807777405,
0.3414795398712158,
0.15349452197551727,
-0.1909533143043518,
-0.43323570489883423,
0.4524557888507843,
-0.27214914560317993,
-0.2313058227300644,
-0.5387163758277893,
-0.14294098317623138,
0.6193968057632446,
-0.4223212003707886,
0.102535091340541... | |
My Hudson projects don't seem to properly aggregate downstream test results and I'm wondering if I've missed a configuration step somewhere. I have two projects, Foo and Foo-Tests, both of which are freestyle jobs.
On project Foo I have the following configuration:
* Checked "Aggregate downstream test results".
* Che... | [
0.34301242232322693,
0.09186455607414246,
-0.08896278589963913,
-0.3301736116409302,
0.12943369150161743,
0.5243661999702454,
-0.0009072584798559546,
-0.20198580622673035,
0.24746671319007874,
-0.7341169118881226,
0.6886422634124756,
0.9311860203742981,
-0.21569989621639252,
-0.33377361297... | |
successful and publishes the JUnit reports correctly. However, when I look for the aggregated test results in Foo, there's a "Latest Test Result (no tests)" link for the build which sends me to a 404.
Here's what I've tried that doesn't solve the problem:
* Tell Foo to "Publish JUnit test result report" with no param... | [
0.3307495713233948,
0.36933693289756775,
0.45033660531044006,
0.19048362970352173,
-0.025854943320155144,
-0.42127200961112976,
0.49526238441467285,
-0.26979759335517883,
0.08933737128973007,
-0.6034761071205139,
-0.055675532668828964,
0.8545964956283569,
-0.03796570003032684,
-0.057078849... | |
behind the scenes). This caused an error since I hadn't explicitly defined any artifacts to publish.
I'm using Hudson 1.266.
*Edit:*
I should note that I've found two questions on the Hudson Users mailing list that have no answers and would possibly help solve this:
* [Question 1 (Nabble)](http://www.nabble.com/Can-... | [
-0.06247204542160034,
0.011085471138358116,
0.29800355434417725,
-0.07917419075965881,
0.20469026267528534,
0.01984875090420246,
0.47749271988868713,
-0.28867003321647644,
-0.08733176440000534,
-0.6307756900787354,
0.5749943852424622,
0.7511921525001526,
-0.2857193350791931,
-0.31008026003... | |
for Foo is only showing the Latest Test Results link, which has a URL like <http://localhost:8080/hudson-1.266/job/Foo/lastBuild/testReport/>. Since Foo has no tests of its own, this link has no JUnit XML file to reference and returns the error you mentioned. This was fixed somewhere between 1.266 and 1.287 by redirect... | [
0.2205359786748886,
0.20132692158222198,
0.5719990730285645,
-0.3668575584888458,
-0.013092721812427044,
-0.08070335537195206,
0.3802300989627838,
-0.15336012840270996,
-0.03692197799682617,
-0.3741842806339264,
0.19822677969932556,
0.7158646583557129,
-0.46827542781829834,
-0.181139722466... | |
there you can click on Aggregated Test Result, which has a URL like <http://localhost:8080/hudson-1.266/job/Foo/lastBuild/aggregatedTestReport/>. On this page, all your test results from downstream projects will be available under the Drill Down section.
Unfortunately, there is still a problem with the Drill Down link... | [
0.30410394072532654,
0.21369892358779907,
0.17532584071159363,
-0.15137845277786255,
0.08926897495985031,
0.04012666642665863,
0.1819300353527069,
-0.024299534037709236,
-0.21078407764434814,
-0.4719161093235016,
0.42789220809936523,
0.6584414839744568,
-0.04387246444821358,
-0.25505083799... | |
to actually see the downstream test results.
I haven't had a chance to look through the Hudson source to find the error, but there's already an issue open for this. Its [issue 1574](https://hudson.dev.java.net/issues/show_bug.cgi?id=1574), and its been open for almost a year.
On a side note, I really love Hudson for... | [
0.17814147472381592,
-0.26755890250205994,
0.4671487510204315,
-0.2412414848804474,
0.0347612127661705,
-0.09335216879844666,
0.2544626295566559,
0.4834354817867279,
-0.2817786633968353,
-0.8221575021743774,
0.36489731073379517,
0.5059811472892761,
0.10204742103815079,
0.0851903185248375,
... | |
It seems that the trend in web design is to provide paged output, where long tables are displayed a page at a time. My customers don't like that, and have requested that the web sites I design for them show all entries in long tables. The arguments for paging seem to be mostly based on the performance hit of displaying... | [
0.23253124952316284,
0.1251843124628067,
0.14511919021606445,
0.17980057001113892,
-0.23527193069458008,
-0.1567581593990326,
-0.004046930931508541,
0.31159189343452454,
-0.4305807948112488,
-0.3784424662590027,
0.06210392713546753,
0.2947177588939667,
-0.27520471811294556,
0.0461258180439... | |
copying, etc. I've pointed out that these features can easily be added to paged web designs (e.g. a print button that prints the entire table, or a button that creates a CSV file of the the table), but the paged output still seems inconvenient to them. Our typical table is about 100 to 600 items. Obviously tables that ... | [
0.5426816940307617,
-0.05449230968952179,
0.35441017150878906,
0.2089039385318756,
0.004814216401427984,
0.14602544903755188,
-0.23479194939136505,
-0.06345339864492416,
-0.5078070163726807,
-0.65350341796875,
0.19417865574359894,
0.38145679235458374,
-0.034006550908088684,
0.1408408433198... | |
or are my customers unusual?
3. If you're thinking "It depends on the length of the table", what threshold would you use?
1. I love long one-page listings.
One of the few reasons I can see for paged
listing is the ones you point out about performance.
2. I think your customers are very usual and in-touch.
3. The thresh... | [
0.46677449345588684,
0.020698435604572296,
0.3054787218570709,
-0.07149235159158707,
-0.1928083449602127,
-0.04504555091261864,
0.040302351117134094,
-0.08110950887203217,
-0.34115150570869446,
-0.4431929588317871,
0.42427483201026917,
0.36333900690078735,
-0.08277265727519989,
-0.06463570... | |
the browser is IE.)
Give the users a powerful search function and they'll narrow down their page lists themselves. | [
0.1495589315891266,
0.06973713636398315,
0.5803468823432922,
0.20355069637298584,
-0.042614080011844635,
-0.3086608946323395,
0.2861408591270447,
0.22161518037319183,
0.030336514115333557,
-1.1780281066894531,
-0.2097977250814438,
0.20000812411308289,
-0.20850026607513428,
-0.0286442339420... | |
I've been a web developer for quite some time and what has helped me in learning is to visually see what is going on.
That's the reason for Tools like Aardvark, Web developer, Firebug and many others.
But when i saw the [Gecko Reflow Videos](http://redivide.com/blog/gecko-reflow-awesome-visualization-of-web-page-layo... | [
0.6009542942047119,
0.05207317695021629,
0.05698331445455551,
0.04741350933909416,
-0.5084522366523743,
-0.14346052706241608,
0.6252473592758179,
-0.1095271185040474,
-0.41790351271629333,
-0.6376293301582336,
0.14389508962631226,
0.4675232470035553,
-0.2794921100139618,
0.0293455272912979... | |
to write a good update for this question since it has left me thinking about it more. But since English isn't my primary language its been tough.
In the past years it's been the browsers who have had the task of being compatible with the standards. As they get closer to that goal, it is us who should be thinking about... | [
0.3587912619113922,
0.23751738667488098,
0.34111523628234863,
-0.014067163690924644,
-0.3637152910232544,
-0.0503593385219574,
0.398736834526062,
0.5818191766738892,
-0.26380980014801025,
-1.0438995361328125,
-0.09715380519628525,
0.5161676406860352,
0.06349752843379974,
-0.246629074215888... | |
was just to get the thing to work. Now we should be looking for techniques that speed up the current process. An example of this is in the video above where the Gecko engine is running through the code twice. Why is that? And are there other instances where its doing unnecessary things (even though they work and are co... | [
0.705460786819458,
0.08035293221473694,
-0.06262335926294327,
0.14824914932250977,
-0.265072226524353,
-0.5073946118354797,
0.8349685072898865,
0.021115519106388092,
-0.2213158756494522,
-0.3347052335739136,
0.02024328149855137,
0.6199086904525757,
-0.4537011682987213,
-0.07994984835386276... | |
agents (web browsers) to render HTML elements in a particular order, nor is there anything like an atomic unit of execution like a "statement".
For instance, when rendering a table, should a user agent reserve space for each `<tr>` before rendering their child `<td>s` (breadth-first)? Or should it render each child `<... | [
-0.18166372179985046,
-0.1350063979625702,
0.03004593215882778,
0.17571289837360382,
-0.10089880228042603,
0.1368008553981781,
0.4319353997707367,
-0.03822951018810272,
-0.2612241804599762,
-0.9721795320510864,
-0.40080636739730835,
0.025680596008896828,
-0.2407369762659073,
-0.12433530390... | |
an declarative language in this sense, in that it specifies what should be done (the page rendered to spec) but not exactly how to do it (exactly which order to render elements to the screen). In general, it's best to assume that everything happens at once, although the [W3C does give some tips](http://www.w3.org/TR/ht... | [
0.10595609992742538,
0.05433569848537445,
0.33574971556663513,
-0.06584832817316055,
-0.36566364765167236,
-0.050416190177202225,
0.27765342593193054,
-0.1574574112892151,
-0.03593176603317261,
-0.7112701535224915,
-0.4147931933403015,
0.5726126432418823,
-0.33221855759620667,
-0.378855526... | |
My objective is to get the answer from up to 6000 Urls in the shortest time. It was working very well (12 seconds for 5200 LAN Addresses) until some delay started to happen.
My code uses up to 20 simultaneous HttpWebRequest.BeginGetResponse with `ThreadPool.RegisterWaitForSingleObject` for timeout handling.
However s... | [
0.24043285846710205,
-0.05431339144706726,
0.40165016055107117,
0.1321064978837967,
0.0419437512755394,
0.2181433141231537,
0.6916349530220032,
-0.30328264832496643,
-0.12169130146503448,
-0.6764736771583557,
0.016657192260026932,
0.3643871545791626,
0.011379039846360683,
0.060155637562274... | |
is in portuguese(my native language) I couldn't Google it.
I wonder if I can reduce this time limit to 20 seconds for example. Anyone knows how? I've already tried:
```
<system.web>
<httpRuntime executionTimeout="20"/>
</system.web>
```
But as I'm running it as a Console Application, ASP.NET configurations don'... | [
-0.08829893171787262,
-0.14887060225009918,
0.7965285181999207,
-0.004621249623596668,
0.2627585828304291,
-0.0025473658461123705,
0.5176045894622803,
-0.2949492037296295,
-0.10544636845588684,
-0.716688334941864,
-0.038231607526540756,
0.5329148173332214,
0.04073905199766159,
-0.017518857... | |
raise an "time limit" web exception inside the callback function
The 4th possibility is the one is delaying my Application, and I don't know how to shorten that delay
**Update**
Is there a possibility that the method `GetResponseStream` instead of the `GetResponse` is who causes the timeout?
It sounds like you need t... | [
0.07143584638834,
-0.09371443092823029,
0.5973101854324341,
0.073915034532547,
0.29352813959121704,
-0.22510303556919098,
0.5442953109741211,
-0.16885359585285187,
-0.42872679233551025,
-0.25931334495544434,
-0.12994267046451569,
0.5734228491783142,
-0.12457390874624252,
0.3364633321762085... | |
How do I get started doing unit testing in C++ ?
I have used Junit when coding in Java and found it very useful.
Is there something similar in C++ ? What do you recommend ?
Here are similar questions that you may want to look at:
* [Unit testing for C++ code - Tools and methodology](https://stackoverflow.com/questio... | [
0.5827973484992981,
0.06938911229372025,
-0.008823824115097523,
0.2027539312839508,
-0.15106070041656494,
-0.2589000463485718,
-0.04370849207043648,
-0.09021372348070145,
0.22602735459804535,
-0.7420592904090881,
0.15230698883533478,
0.5837110280990601,
0.4477710425853729,
-0.2325711399316... | |
After peeking at the SO [source](http://view-source:), I noticed this tag:
```
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
```
Which after a quick Google [revealed](http://allinthehead.com/retro/319/how-to-set-an-apple-touch-icon-for-any-site) an Apple "favicon" type thing for display on your homepa... | [
-0.06456221640110016,
-0.0634821206331253,
0.6604567170143127,
-0.04687287658452988,
0.20261825621128082,
-0.10682877898216248,
0.19632019102573395,
-0.2163502275943756,
-0.39887070655822754,
-0.34631142020225525,
-0.29075273871421814,
0.3387685716152191,
-0.20412063598632812,
-0.067415438... | |
user-scalable=no">
```
Allows you to set the width, height and scale values
```
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
```
Set the status bar style, pretty self explanatory.
```
<meta name="apple-mobile-web-app-capable" content="yes" />
```
As Marc mentioned above, and is explaine... | [
0.05322388932108879,
0.011906631290912628,
0.3535717725753784,
-0.12276110798120499,
-0.15907585620880127,
-0.13122227787971497,
0.5830960869789124,
-0.08363992720842361,
-0.1465996652841568,
-0.6196374297142029,
-0.11564449965953827,
0.6211171746253967,
-0.25443926453590393,
-0.2873906493... | |
I am working on a Windows utility program which communicates with some custom hardware using a standard COM port. The communication protocol (which is out of my control) requires me to transmit and receive raw 8-bit data bytes.
I am currently using the following Windows API function to send data to the COM port:
```
... | [
0.3243727684020996,
0.22782382369041443,
0.6403475403785706,
-0.20006148517131805,
0.11564210802316666,
0.23241721093654633,
-0.06838961690664291,
-0.011539711616933346,
-0.21983543038368225,
-0.9721827507019043,
-0.06582348793745041,
0.7029284238815308,
-0.1749216467142105,
0.128631487488... | |
soon as it detects the null character because it assumes that it has reached the end of the string. This happens even though I set `numberOfBytesToWrite` properly.
How can I send raw data to the COM port using the Windows API? I would prefer to use a standard API call similar to `WriteFile`, but I am open to suggestio... | [
0.22072258591651917,
-0.11799046397209167,
0.5024243593215942,
-0.03403032198548317,
0.4134294390678406,
0.08735787868499756,
0.10836268216371536,
-0.053586095571517944,
-0.16785146296024323,
-1.0390594005584717,
-0.04037900269031525,
0.5853992104530334,
0.034714680165052414,
0.18118281662... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.