text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I have some code that has a dynamic-class system in C++ that has a member called GetClassName(), a rather harmless name one would imagine. However when included in a large project with Windows headers all hell broke loose. Apparently Windows uses a #define GetClassName (GetClassNameA or GetClassNameW) which screws up e...
[ 0.36156320571899414, 0.16861632466316223, -0.16559617221355438, 0.06337972730398178, -0.2612827718257904, -0.2940821647644043, 0.5659350156784058, 0.31798112392425537, -0.06408241391181946, -0.4615318775177002, 0.1705337017774582, 0.47623080015182495, -0.19163008034229279, 0.34421569108963...
someone should honestly be shot for this!) I'm asking for 3 purposes. 1. What's another good name for GetClassName() ? 2. Is there anyway to fix this, so in the future, other developers of my code base won't suffer similar fate 3. And for posterity when someone else encounters this similarly inexplicable error I would...
[ 0.37408143281936646, 0.09495759755373001, -0.045346908271312714, 0.022776246070861816, -0.40890297293663025, -0.20307719707489014, 0.4849890172481537, -0.23518775403499603, -0.08085743337869644, -0.48346200585365295, 0.2032785266637802, 0.5887167453765869, -0.3037605583667755, 0.0061286678...
functions in the subsystem, f.e TI\_ (for type info): ``` TI_GetClassName() TI_GetBaseClass() TI_IsDerivedFromClass() etc ``` 2) or put them into some IClass interface ``` interface IClass { GetName(); GetBase(); IsDerivedFrom(); etc ``` and return that interface from single method, so that GetClassName...
[ -0.19726641476154327, -0.22466492652893066, 0.3992644250392914, 0.04023118317127228, -0.0435466542840004, -0.00019272415374871343, 0.1020546481013298, -0.2897815406322479, 0.208982914686203, -0.8413888812065125, -0.24114371836185455, 0.4712132513523102, -0.5056673884391785, -0.058723825961...
Is there a command to determine which configuration file MySQL 5.0 is currently using? If you are on Linux, then start the 'mysqld' with `strace`, for eg `strace ./mysqld`. Among all the other system calls, you will find something like: ``` stat64("/etc/my.cnf", 0xbfa3d7fc) = -1 ENOENT (No such file or directo...
[ 0.09903600066900253, -0.1571873128414154, 0.5763041973114014, -0.1145031750202179, 0.13252167403697968, -0.12647485733032227, -0.08615478128194809, 0.286700040102005, -0.2555113732814789, -0.9372642636299133, -0.15200528502464294, 0.48561757802963257, -0.2418041080236435, 0.306028097867965...
How to implement posix threads in linux c++.The smme program when saved as ".c and run using c compiler is ok. but in c++ it is giving error .. I think i made mistake when compiling is there any tag to be included like "-lpthread" for c++ Can someone pls send a valid code...? Actually this is my code ``` int coo...
[ 0.027978932484984398, -0.12382858991622925, 0.5511728525161743, -0.00804847851395607, 0.15170690417289734, -0.42672765254974365, 0.41483739018440247, -0.2700025141239166, -0.13331694900989532, -0.791126549243927, -0.11207593977451324, 0.5207581520080566, -0.5378510355949402, -0.03322314098...
return -1; } return 1; ``` and the error i am getting is ``` cooperbussman.cpp: In member function âint cooperbussman::startlistenthread()â: cooperbussman.cpp:76: error: invalid conversion from âvoid* (*)()â to âvoid* (*)(void*)â cooperbussman.cpp:76: error: initializing argument 3 of âint pthrea...
[ 0.05968976765871048, 0.08890403062105179, 0.4046575725078583, -0.060021162033081055, -0.19793879985809326, -0.11052415519952774, 0.44241052865982056, -0.6465108394622803, -0.3569628894329071, -0.5435378551483154, 0.041128333657979965, 0.7210109233856201, -0.7002976536750793, 0.461900681257...
something like this: ``` void *packetreadertask(); ``` where it must be: ``` void *packetreadertask(void *); ```
[ 0.11990329623222351, -0.052268411964178085, 0.2914475202560425, -0.012097964994609356, 0.09797995537519455, -0.5292472243309021, 0.16219517588615417, 0.03072306327521801, -0.0976664274930954, -0.6025165915489197, -0.3663075268268585, 0.42354628443717957, -0.34075435996055603, 0.14366512000...
I'm using Visual Studio C++ 2008 Express to learn a native API for a new project. What I'm wondering is: what productivity features present in the full version that you take for granted are missing from Visual Studio Express? I'm not referring to large "paid" features like MFC support - I'm thinking of small features (...
[ -0.02080085501074791, 0.05890938639640808, 0.21344824135303497, -0.22134897112846375, -0.2707955241203308, -0.10584234446287155, 0.28163039684295654, 0.06450055539608002, -0.04762070253491402, -0.38516154885292053, 0.0641312450170517, 0.7762137055397034, -0.1548100709915161, -0.30543068051...
that's just for reference - I'm not looking to compare VS vs. IDEA). EDIT: Revised to include Add Ins that enhance the experience. If you plan to develop a C/C++ *WIN32 GUI* application then the major component that is missing is the *resource editor* (i.e. the GUI builder tool). The express version will still compil...
[ -0.2024574875831604, -0.16845744848251343, 0.21853594481945038, 0.14808307588100433, -0.039884328842163086, -0.06698047369718552, 0.20386607944965363, -0.05183780938386917, -0.18502981960773468, -0.7959619164466858, 0.0043782019056379795, 0.6679937243461609, -0.1865040808916092, -0.2160926...
I'm trying to insert nodes into a tree in order. My function works fine... when there's only three nodes. I have this code: ``` typedef struct _Tnode Tnode; struct _Tnode { char* data; Tnode* left; Tnode* right; }; ``` Along with this: ``` Tnode* add_tnode(Tnode* current_node, char* value) { Tnode* ret...
[ -0.15940538048744202, 0.04982201009988785, 0.589908242225647, -0.37375012040138245, 0.3029657006263733, 0.4595852196216583, 0.40122896432876587, -0.5027900338172913, -0.15146909654140472, -0.6335209012031555, -0.091995470225811, 0.4786073863506317, -0.4288753569126129, 0.10136564821004868,...
} else printf("no memory"); } else { if(strcmp(current_node->data,value)) { //left for less than ret_value = add_tnode((current_node->left), value); current_node -> left = (Tnode*) malloc(sizeof(Tnode)); (current_node -> left) -> data = value; } else if(strcmp(cu...
[ -0.3012336492538452, -0.16695711016654968, 0.7040627002716064, -0.38250118494033813, 0.5910656452178955, 0.12930750846862793, 0.01021522842347622, -0.46597152948379517, -0.17669469118118286, -0.500447154045105, -0.5658884644508362, 0.7503018975257874, -0.17134366929531097, 0.09583234041929...
current_node -> right = (Tnode*) malloc(sizeof(Tnode)); (current_node -> right) -> data = value; } else { printf("duplicate\n"); ret_value = current_node; } } return ret_value; ``` } I know what's wrong here, I just don't know how to fix it. This just overwrites the two nodes at...
[ -0.20990251004695892, 0.173225998878479, 0.3594558835029602, -0.006455129478126764, 0.5882023572921753, 0.09117136895656586, 0.3142381012439728, 0.05981433019042015, -0.4921783208847046, -0.4713623821735382, -0.027872005477547646, 0.41415756940841675, -0.43469998240470886, 0.44333460927009...
\ |node_2| |node_3| ``` I can't add a node four. It just overwrites node 2 or 3 depending on the input. After debugging and a little research, I'm not quite sure where to go from here... If anyone can help, I'd really appreciate it. You should leave the mallocing only to the case where the insertion reac...
[ -0.028626080602407455, 0.2523971498012543, 0.24791471660137177, -0.20669060945510864, 0.31155845522880554, 0.031548719853162766, 0.2102079689502716, -0.07024014741182327, -0.11113161593675613, -0.7744525671005249, -0.16053685545921326, 0.30610278248786926, -0.4009552299976349, 0.1341656744...
level, and then killing it with a new malloc. Because of this you're never getting past the first level. eg. ``` if (current_node == NULL) // Do initialization stuff and return current_node if (strcmp(current_node->data, value) < 0) { current_node->left = add_tnode((current_node->left), value); } else if (strcmp...
[ -0.04707537218928337, -0.27472880482673645, 0.8212596774101257, -0.015256342478096485, 0.4714263081550598, -0.27508631348609924, 0.03573288396000862, -0.36715632677078247, -0.17250683903694153, -0.7236931324005127, -0.20222920179367065, 0.5985854864120483, -0.18956291675567627, 0.351262629...
in AS3, I'm making this dynamic textfield that is populated from an XML file based on where the user clicks. The dynamic textfield has a custom scrollbar to it. My problem is that if the text inserted into the textfield is less than the previously displayed text, you can still scroll the dynamic textfield as far as t...
[ 0.17070041596889496, -0.3228212893009186, 0.5727542638778687, -0.1749977022409439, -0.27005627751350403, -0.23850545287132263, 0.36837124824523926, -0.4421841502189636, -0.30633485317230225, -0.7329080700874329, -0.0301448255777359, 0.8050150871276855, -0.23512081801891327, -0.518464624881...
to the string length + some space (by binding the width to the string's length/event handling etc). [This](http://livedocs.adobe.com/flex/3/html/help.html?content=Working_with_Text_08.html) may be of interest. Of course,
[ 0.46802812814712524, -0.21942812204360962, 0.28301185369491577, -0.04945884272456169, -0.13242439925670624, -0.05217514559626579, 0.07343694567680359, -0.3898840844631195, -0.3440847098827362, -0.39134451746940613, -0.2188650369644165, 0.5066661238670349, -0.09672893583774567, -0.279125243...
I have a bunch of long-running scripts and applications that are storing output results in a directory shared amongst a few users. I would like a way to make sure that every file and directory created under this shared directory automatically had `u=rwxg=rwxo=r` permissions. I know that I could use `umask 006` at the ...
[ 0.639129638671875, 0.31356149911880493, 0.23655030131340027, 0.13263383507728577, -0.0076721771620213985, -0.19737780094146729, 0.08757804334163666, -0.011585214175283909, -0.31355440616607666, -0.47975870966911316, -0.05472955480217934, 0.7080831527709961, -0.04108752682805061, 0.35942053...
certain folder. Is this at all possible? **Update**: I *think* it can be done with [POSIX ACLs](http://www.vanemery.com/Linux/ACL/POSIX_ACL_on_Linux.html), using the Default ACL functionality, but it's all a bit over my head at the moment. If anybody can explain how to use Default ACLs it would probably answer this q...
[ 0.45988747477531433, -0.0005876327631995082, 0.24328336119651794, 0.3197736442089081, -0.07367704808712006, -0.4311235547065735, 0.0454404279589653, 0.08823410421609879, -0.18198224902153015, -0.41255730390548706, -0.33982735872268677, 0.522393524646759, -0.5994840264320374, 0.122313342988...
and many other linux systems are configured with per-user groups by default. I don't know of a way to force the permissions you want if the user's umask is too strong.
[ 0.20095358788967133, -0.10238257795572281, 0.15796814858913422, 0.19496750831604004, 0.10097430646419525, -0.22822119295597076, -0.09449903666973114, 0.31194189190864563, -0.31804776191711426, -0.2389417588710785, -0.1443372219800949, 0.6112658381462097, -0.30702435970306396, 0.13385458290...
Is there any free software to package a powershell script into a standalone WIN32 executable? It seems it was possible to get the powershell beta's to run on win2000 and winNT, is there any known way to get the final powershell to run on it? I don't think there is any software that will package a PowerShell script int...
[ 0.12488007545471191, 0.1276794821023941, 0.2369804084300995, 0.2855178415775299, -0.04221349209547043, -0.43654337525367737, 0.028829794377088547, 0.34235650300979614, -0.13766399025917053, -0.5910307168960571, 0.06034768372774124, 0.6296355128288269, -0.1334274411201477, 0.136543050408363...
Every time I try to run any class from my rails 2.2 app's lib directory using "script/runner -e production ClassName.run" I get the following error: ``` /usr/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/runner.rb:47: /usr/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:89:in `const_m...
[ 0.2814446687698364, 0.1046716645359993, -0.06981641054153442, -0.3579961061477661, -0.09753774106502533, -0.19583247601985931, 1.017951488494873, -0.3194025158882141, -0.041563328355550766, -0.6219985485076904, -0.13192370533943176, 0.806846022605896, -0.4614761471748352, -0.08994375169277...
disable each of your plugins in dev, does any plugin suddenly cause that error? 4. if the code is in a lib add the lib require statement to your production.rb to force the lib to be loaded in production. Hope that helps. **update** Just to summarise the comments it was option 4. Unless you only want to load the lib ...
[ 0.7088121175765991, -0.036472566425800323, 0.07384932041168213, -0.11818259954452515, -0.18131375312805176, -0.18129576742649078, 0.46995726227760315, -0.665866494178772, 0.10058559477329254, -0.7081142067909241, -0.1807212233543396, 0.8683985471725464, -0.7314128875732422, -0.375363349914...
modifying the config.load\_paths variable.
[ 0.2132551521062851, -0.0362088605761528, 0.01145993173122406, 0.03872443735599518, 0.028575601056218147, -0.4656706750392914, 0.2970985174179077, 0.0034487606026232243, 0.14987152814865112, -0.6218141913414001, -0.253053218126297, 0.36465850472450256, -0.7115102410316467, 0.082959271967411...
I'm using Perl's [Archive::Tar](http://search.cpan.org/dist/Archive-Tar) module. It preserves the file permissions but doesn't preserve the sticky bit. At the other end where I extract the archive, all the sticky bits are gone. I think UNIX/LINUX operating system stores these sticky bits somewhere else. How can I make ...
[ 0.2971426546573639, 0.09814562648534775, 0.265610933303833, -0.10598772019147873, -0.2722843289375305, -0.08793838322162628, 0.4041423797607422, -0.1449672430753708, -0.002798723988234997, -0.34363415837287903, -0.12523555755615234, 0.6376039981842041, -0.00007716189429629594, -0.163719967...
(before anything might have referenced Archive::Tar) and see if that subverts it: ``` use Archive::Tar::Constant (); BEGIN { local $SIG{__WARN__} = sub{}; *Archive::Tar::Constant::STRIP_MODE = sub(){ sub {shift} }; } ... use Archive::Tar; ... ``` Brief explanation: STRIP\_MODE is a constant that contains a s...
[ 0.5892078280448914, -0.4262126386165619, 0.3765791356563568, -0.33573225140571594, 0.1595437079668045, -0.12764404714107513, 0.12966494262218475, -0.007390609476715326, -0.07087292522192001, -0.5523146986961365, -0.370903879404068, 0.859571635723114, -0.5617638826370239, 0.0887923464179039...
before it is inlined, that is, before Archive::Tar::File ever gets loaded. N.B. Because changing an inlinable constant is prone to error (changing it after it is too late to have any effect), it normally generates a severe warning that can't be disabled by usual means.
[ 0.3904438316822052, -0.04441390559077263, 0.27534645795822144, -0.10704505443572998, 0.3790109157562256, -0.2505447566509247, 0.3451237082481384, -0.01856258139014244, -0.19313840568065643, -0.2812577784061432, -0.323166161775589, 0.4360511600971222, -0.2610929608345032, 0.4003809094429016...
It seems like a dumb question, and yet. It could be my IDE that's goofing me up. Here's the code (this is generated from DbLinq): ``` SELECT pics$.Caption, pics$.Id, pics$.Path, pics$.Public, pics$.Active, portpics$.PortfolioID FROM main.Pictures pics$ inner join main.PortfolioPictures portpics$ on pics$.Id = po...
[ 0.025308551266789436, 0.05865775793790817, 0.7501564621925354, -0.06985458731651306, -0.13692563772201538, 0.40740203857421875, 0.039456482976675034, -0.4638107717037201, -0.27804920077323914, -0.39161416888237, 0.10565465688705444, 0.7611087560653687, -0.3741181492805481, -0.1153719946742...
'TRUE' pics$.Active = 't' pics$.Active = boolean(1) ``` It doesn't work. Either errors or no results. I've googled for this and found a dearth of actual SQL queries out there. And here we are. So: how do I use a boolean field in a where clause in SQLite? IDE is SQLite Administrator. **Update**: Well, I found th...
[ 0.5967625975608826, 0.24389143288135529, 0.4411604404449463, 0.12773627042770386, -0.17440639436244965, -0.0962904691696167, 0.5826607942581177, -0.4190158545970917, 0.07687121629714966, -0.4326986074447632, 0.01566069759428501, 0.7203292846679688, -0.4334116280078888, 0.03926593437790871,...
'1' NOT NULL) ``` The fix for the query is ``` AND pics$.Active = 'Y' AND pics$.Public = 'Y' ``` The real issue here is, as the first answerer pointed out, there is no boolean type in SQLite. Not an issue, but something to be aware of. I'm using **DbLinq** to generate my data layer; maybe it shouldn't allow mappi...
[ 0.07201850414276123, 0.2527952194213867, 0.47821611166000366, -0.03623166307806969, -0.21255874633789062, -0.2217983454465866, 0.12997493147850037, 0.030309394001960754, -0.055257055908441544, -0.5286743640899658, -0.01803063228726387, 0.4646718502044678, -0.5687193870544434, 0.15606431663...
and 0 in your data to represent a boolean.
[ 0.15335536003112793, -0.09576814621686935, 0.16412821412086487, -0.07010331749916077, -0.024481214582920074, -0.06599372625350952, -0.0516149178147316, 0.05548467859625816, 0.08783232420682907, -0.2123388648033142, -0.018560508266091347, 0.24264395236968994, -0.07065525650978088, 0.1745162...
``` table name:id col1:owner-name col2:book-id1 col3:book-id2 table name:book-name col1:id col2:name ``` Can anyone get me a query to get following result owner-name,book1-name,book2-name using above 2 table ``` SELECT id.owner-name, b1.name "book1-name", b2.name "book2-name" FROM id LEFT JOIN book-name "b1" ON b1.i...
[ -0.4975195527076721, 0.541110098361969, 0.692165732383728, 0.19525547325611115, -0.08896958827972412, 0.02857416309416294, -0.2653771638870239, -0.31638213992118835, -0.28199324011802673, -0.3769114315509796, -0.20707443356513977, 0.12952068448066711, -0.20111559331417084, -0.1497433334589...
I have a website that consists of 2 applications: 1. Front end application 2. Backend application The front end has the www domain, whereas the backend has the job subdomain. For example, my front end application has the domain `www.example.com/*`, whereas my backend as the `job.example.com/*`. **My front end applica...
[ 0.42398911714553833, 0.23231762647628784, 0.4840700924396515, -0.17287655174732208, -0.34497079253196716, 0.018842408433556557, 0.21932584047317505, 0.10773812234401703, -0.07468001544475555, -0.8084095120429993, -0.025910930708050728, 0.38325026631355286, -0.17199154198169708, 0.577481687...
I retrieve the same \_Sesssion["SessionID"] from `job.example.com/*`? Do I need to do special configuration to work? For using the same sessions on multiple domains/servers, you have to take care of two aspects: * where the session data is stored so that both domains/servers can access it, and * how the session identi...
[ 0.5660699605941772, 0.03416610136628151, 0.374639093875885, 0.06387624144554138, -0.06590291857719421, -0.1428118497133255, 0.31955263018608093, -0.27819913625717163, -0.19554820656776428, -0.9358890652656555, 0.09517195075750351, 0.5618489980697632, -0.05489475652575493, 0.197655394673347...
be on the same server or different) and want to use cookies to transport the session ID, you have to [modify the session ID cookie settings](http://docs.php.net/session_set_cookie_params) so that the cookie is valid for both domains. But this is only possible if both domains share the same higher level domain. For `www...
[ 0.25176557898521423, 0.12484050542116165, 0.4243066608905792, 0.12320173531770706, 0.02453930675983429, -0.06455110013484955, 0.2340937703847885, -0.2348865568637848, -0.6701747179031372, -0.6597355604171753, -0.10454820096492767, 0.570682168006897, -0.10164299607276917, 0.0863386243581771...
I cannot create new dynamic web application in eclipse.If i click new project from file menu it is not displaying "dynamic web application" option.It is not showing the option "web".I am running eclipse 3.4.0. Can anyone give help on this? For me this works fine in Ganymede on OS X. Two ideas: * Maybe your install of...
[ 0.26220273971557617, 0.3670937716960907, 0.16237373650074005, -0.13430559635162354, -0.4343966245651245, -0.2859252095222473, 0.39263448119163513, 0.04122953489422798, -0.19768477976322174, -0.592292845249176, 0.07417541742324829, 0.9302271604537964, -0.20835845172405243, 0.132283866405487...
here's my shop.html snippet: ``` <li><a id="linkShop" href="shop.html">shop</a></li> <div id="paneMiddle"></div> ``` and here's my main.js snippet: ``` $("a[id=linkShop]").click(function(){ $.get("data1.html", function(response){ $("div[id=paneMiddle]").html(response); alert("hi"+ response); ...
[ 0.5296952128410339, 0.019065378233790398, 0.7502595782279968, -0.1768207550048828, -0.08278658986091614, -0.037407778203487396, 0.47782862186431885, 0.016996514052152634, -0.19348540902137756, -0.4603515863418579, -0.20920687913894653, 0.6138187646865845, -0.41806304454803467, -0.115933634...
the page before the $.get gets any response. Try ``` $("a[id=linkShop]").click(function(){ $.get("data1.html", function(response){ $("div[id=paneMiddle]").html(response); alert("hi"+ response); }); return false; }); ``` or ``` $("a[id=linkShop]").click(f...
[ 0.0788850337266922, -0.11777137964963913, 0.9937933683395386, -0.21405774354934692, -0.1235496997833252, 0.1869855523109436, 0.43093666434288025, -0.291238933801651, -0.066007100045681, -0.6076857447624207, -0.7688835263252258, 0.5739480257034302, -0.6086035966873169, -0.17570272088050842,...
alert("hi"+ response); }); evt.preventDefault(); }); ```
[ 0.05675690993666649, -0.27010026574134827, 0.6279871463775635, -0.46223023533821106, 0.357207715511322, -0.3346240520477295, 0.621739387512207, -0.37719523906707764, 0.11120637506246567, -0.35281097888946533, -0.6926856637001038, 0.8112931251525879, -0.6080848574638367, 0.1570253074169159,...
We're debugging a GWT app. Runs ok in Firefox, in IE6.0 starts working ok but after some time, it gets on its knees and starts to crawl. After doing some tests we're suspecting some memory problems ( too much memory used, memory leaks, etc ) Besides using taskmanager and processxp to watch the memory usage grow :)....¿...
[ 0.10575110465288162, 0.022373434156179428, 0.2885518968105316, 0.044768478721380234, -0.12701676785945892, -0.2867933213710785, 0.38305631279945374, -0.078843854367733, -0.1569148600101471, -0.7512335181236267, -0.1674949675798416, 0.6417526006698608, -0.23983855545520782, -0.0314407236874...
I have a requirement from a customer that only DNS aliases may be used in application connection strings when connecting to SQL Server. Is there any way to enforce this from the server side? The point of doing this is to prevent hardcoding of IP addresses in applications, which may change with time. Rather than enforce...
[ 0.7072119116783142, 0.20629751682281494, 0.13542203605175018, 0.2750750780105591, 0.23328179121017456, -0.6811286807060242, 0.31520360708236694, 0.12576079368591309, -0.3175523579120636, -0.48306170105934143, 0.18863466382026672, 0.41928550601005554, -0.21106448769569397, 0.321212321519851...
happens that uses something other than a DNS alias. This resources may help in terms of tracing this : <http://blogs.msdn.com/sqlprogrammability/archive/2006/08/16/703079.aspx> Cheers
[ 0.1576131284236908, 0.2332080900669098, 0.49224886298179626, 0.02758045867085457, 0.20775747299194336, -0.5591194033622742, 0.6149779558181763, 0.12315161526203156, -0.23344533145427704, -0.3327687382698059, 0.1094444990158081, 0.16368858516216278, -0.0014340548077598214, 0.185199394822120...
Simple question: How do i tell which bits in the byte are set to 0 and which are set to 1 for example: ``` //That code would obviously wont work, but how do i make something similar that would work? byte myByte = 0X32; foreach(bool bit in myByte) { Console.WriteLine(bit); } //Part 2 revert bool[] bits = new bool...
[ 0.07698524743318558, 0.08990287780761719, 0.4749111235141754, -0.17858919501304626, 0.12776294350624084, -0.0027218640316277742, 0.4327915608882904, -0.4143165349960327, 0.11721285432577133, -0.6344606280326843, -0.28364184498786926, 0.6768501400947571, -0.09278915077447891, -0.03197003528...
= (bits & i) != 0; k = bits = 0; for (i = 1; i < 256; i <<= 1) if (bool[k++]) bits |= i; ```
[ -0.10952191054821014, 0.27568644285202026, 0.3744821548461914, -0.37437358498573303, 0.022249272093176842, -0.09768033027648926, 0.6560840010643005, -0.5368026494979858, 0.08233126997947693, -0.06408746540546417, -0.591590940952301, 0.23315729200839996, -0.27751752734184265, 0.368022680282...
i need to show in my web application document that is in pdf or rtf format in some kind of none edible format that can't be changed and cant be downloaded the perfect candidate is the flash player , but i know the tool that converting pdf or rdf to swf is not free. im looking for free solutions , does not have to be...
[ 0.34864163398742676, -0.03319642320275307, 0.35267242789268494, 0.10130403935909271, -0.10509390383958817, -0.5081202387809753, -0.11102288216352463, 0.04670504108071327, -0.0839439183473587, -0.750984787940979, -0.1816106140613556, 0.7261533141136169, -0.173073872923851, -0.09400331974029...
It is well known that comparing floats by `==` is usually a mistake. In a 3D-vector class (with float components X, Y, Z) i wrote, two vectors are considered equal if their distance is considered zero. ``` public override bool Equals(object obj) { if (obj == null) { return false; } if (GetType () ...
[ 0.026111304759979248, 0.08324091136455536, 0.6148160696029663, -0.03641919419169426, -0.04120432585477829, 0.040274254977703094, 0.07561076432466507, -0.6457654237747192, 0.09233267605304718, -0.4310259222984314, -0.008244053460657597, 0.48342636227607727, -0.33139508962631226, 0.235674053...
DistSq(Vec p) { Vec d = this - p; return d.LengthSq (); } public float LengthSq() { return X * X + Y * Y + Z * Z; } private const float VEC_COMPARE_EPSILON_ABS = 1E-05f; public static bool IsConsideredZero(float f) { return Math.Abs (f) < VEC_COMPARE_EPSILON_ABS; } ``` So far, everything worked fine...
[ -0.07762006670236588, -0.17853452265262604, 0.5646727085113525, -0.11825395375490189, -0.10168476402759552, 0.2081814855337143, 0.21497392654418945, -0.4256495535373688, 0.05428294464945793, -0.561913013458252, -0.04376744106411934, 0.7679949402809143, -0.21709202229976654, 0.1113198250532...
there any way to get a reasonable hashcode? NaNs and other special values are possible, but unlikely, in case that is important. It's impossible assuming you want to have the normal hashcode/equality properties: * If X = Y and Y = Z then X = Z (transitivity) * If X = Y then Y = X (commutivity) * X = X for all X (refle...
[ -0.28925350308418274, -0.024922609329223633, 0.06909698247909546, 0.16581805050373077, -0.3400517404079437, -0.10781364142894745, 0.1612364947795868, -0.344700425863266, -0.1847536265850067, -0.42695704102516174, -0.05667387321591377, 0.4693073332309723, -0.4158881902694702, 0.050552655011...
0.1: 0 equals 0.08 0.08 equals 0.16 0.16 equals 0.24 => 0 equals 0.16 by the transitivity rule => 0 equals 0.24 by the transitivity rule (etc) If you ignore the transitivity rule, then you still (presumably) want "equal" values to have equal hashcodes. This effectively enforces the transitivity rule - in the abo...
[ -0.00552028464153409, 0.23744367063045502, 0.3292572796344757, -0.2262912392616272, -0.040880877524614334, 0.02922144904732704, 0.22053121030330658, -0.38181108236312866, 0.010387837886810303, -0.4406815469264984, -0.10140600055456161, 0.4465712010860443, -0.2867482602596283, 0.14552335441...
I am looking for a way to identify primitives types in a template class definition. I mean, having this class : ``` template<class T> class A{ void doWork(){ if(T isPrimitiveType()) doSomething(); else doSomethingElse(); } private: T *t; }; ``` Is there is any way to "implement" isPrimitiveType()....
[ 0.6872095465660095, 0.03619159013032913, 0.16635875403881073, -0.12307479232549667, 0.046706922352313995, -0.4275601804256439, 0.22241182625293732, -0.596381664276123, 0.18843914568424225, -0.8930485844612122, 0.05941491201519966, 0.66303551197052, -0.11840907484292984, 0.31919628381729126...
primitive template<class T> bool isPrimitiveType() { return false; } // Now, you have to create specializations for **all** primitive types template<> bool isPrimitiveType<int>() { return true; } // TODO: bool, double, char, .... // Usage: template<class T> void test() { if (isPrimitiveType<T>()) { ...
[ 0.340031236410141, -0.19000910222530365, -0.08980126678943634, 0.0004033893928863108, 0.13852956891059875, -0.03092300519347191, 0.16028828918933868, -0.8122557401657104, 0.29214316606521606, -0.7439420223236084, -0.10553982108831406, 0.6783298254013062, -0.4064963161945343, 0.000537021609...
enum { VALUE = 1 }; }; // ... template<class T> void test() { if (IsPrimitiveType<T>::VALUE) { // ... } else { // ... } } ``` As others have pointed out, you can save your time implementing that by yourself and use is\_fundamental from the Boost Type Traits Library, which seems to do exa...
[ 0.32932746410369873, -0.4913829565048218, -0.16851508617401123, -0.0774436742067337, 0.044684164226055145, -0.3629429340362549, 0.21801504492759705, -0.502840518951416, 0.3392195403575897, -0.5413461327552795, 0.002696068724617362, 0.8592891097068787, -0.2131711095571518, -0.08272162824869...
Class completion in Delphi is a big time-saver, but I haven't found a way to customize it. 1. I would like a getter and setter for a property to be grouped together instead of being thrown all over my unit; The interface part is generated properly, but the implementation section becomes a mess if you leave things up t...
[ -0.01996288076043129, -0.36331936717033386, -0.18636426329612732, -0.10169824212789536, -0.14192591607570648, -0.2135290950536728, 0.14987951517105103, -0.571541428565979, 0.04786725342273712, -0.43938758969306946, -0.20274381339550018, 0.5420219302177429, -0.6004931926727295, -0.293887108...
the same order as the interface; 3. I want the body of a generated method to look something like this: . ``` procedure TMyClass.MyProc; begin { TODO -oWouter -cimplement autogenerated stuff : implement Procedure MyProc() } raise Exception.create('procedure TMyClass.MyProc() is not yet implemented'); end; ``...
[ -0.13469654321670532, -0.1985948234796524, 0.12833891808986664, -0.0672488808631897, 0.032602984458208084, -0.076444610953331, -0.026813264936208725, -0.2444043755531311, -0.31271299719810486, -0.6055141091346741, -0.17163272202014923, 0.502902090549469, -0.2487054318189621, 0.013847839087...
The tool sorts class members in the interface and the implementation. The 4.05 version, I'm using, does **not** support your kind of sorting. However, the Modelmaker website contains a [page that shows the most up to date sorting functionality](http://www.modelmakertools.com/articles/sort-rearrange-code.html) and it ap...
[ 0.2720612585544586, -0.15873341262340546, 0.4937173128128052, 0.01339668221771717, 0.0027133324183523655, 0.05293835699558258, -0.04876469820737839, -0.08285701274871826, -0.41354167461395264, -0.8163273930549622, 0.11572001874446869, 0.19662462174892426, -0.23971685767173767, 0.1096792295...
your default sorting template > Question 2: I want the implementation section to be in the same order as the interface. The MMX sort functionality will do that. After you execute the sort, the interface and implementation will be in the same order. > Question 3: I want the body of a generated method to look somethin...
[ 0.29317158460617065, -0.19857001304626465, 0.4912149906158447, -0.3027036488056183, -0.09752419590950012, 0.13909202814102173, -0.12904684245586395, -0.5442196130752563, -0.001392668578773737, -0.7355129718780518, -0.07633111625909805, 0.29146626591682434, -0.5514548420906067, -0.214670687...
I would like to print the "object reference" of an object in Java for debugging purposes. I.e. to make sure that the object is the same (or different) depending on the situation. The problem is that the class in question inherits from another class, which has overriden both toString() and hashCode() which would usuall...
[ 0.2789977788925171, -0.0009120134636759758, -0.30422261357307434, -0.02727997675538063, 0.10411195456981659, -0.3168899416923523, 0.07861799746751785, -0.12439461797475815, -0.324532687664032, -0.627138614654541, 0.1500846892595291, 0.39335381984710693, -0.40167638659477234, 0.113191574811...
will need to call). [`hashCode`](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--), as defined in the JavaDocs, says: > As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by conve...
[ -0.2341804951429367, 0.2093994915485382, 0.2918820083141327, -0.13292467594146729, 0.1469603031873703, -0.1140793114900589, 0.06432595103979111, -0.531533420085907, -0.24233201146125793, -0.35872209072113037, -0.2847100794315338, 0.2738698422908783, -0.21673886477947235, -0.029582973569631...
default method hashCode(), whether or not the given object's class overrides hashCode(). The hash code for the null reference is zero. Which, for what you are doing, sounds like what you want... but what you want to do might not be safe depending on how the library is implemented.
[ -0.2062930017709732, -0.32074785232543945, 0.15783512592315674, 0.14423821866512299, 0.07075981050729752, -0.2232903689146042, 0.2943180501461029, -0.07624147087335587, 0.03923705965280533, -0.1969752311706543, 0.14194978773593903, 0.33781325817108154, -0.4463040828704834, 0.15282799303531...
I have the following code: what i want is using css put the "MYIMAGE" on the most right side. [alt text http://igurr.com/resized-image.ashx/\_\_size/500x400/\_\_key/CommunityServer.Components.PostAttachments/00.00.00.01.73/OneContact.JPG](http://igurr.com/resized-image.ashx/__size/500x400/__key/CommunityServer.Componen...
[ 0.05837070941925049, 0.1864234209060669, 0.5704188942909241, -0.26343899965286255, 0.0003290718887001276, 0.16305316984653473, 0.07004672288894653, -0.3159492313861847, 0.04140319302678108, -0.8112680912017822, -0.12545442581176758, 0.34303298592567444, -0.2126111388206482, 0.1522540301084...
Amr ElGarhy </span> <img id="MYIMAGE" src="Images/Common/Motiva.png" alt="" class="contactItem"/> <br/> </div> ``` CSS: ``` .contactChk { margin-left:10px; } .contactItem { display:inline; vertical-align:middle; } .contactName { display:inline; vertical-al...
[ -0.49234113097190857, 0.1750522255897522, 0.8421471118927002, -0.23375096917152405, -0.16418448090553284, 0.2446717917919159, -0.07236259430646896, -0.46506810188293457, 0.35040852427482605, -0.6289917826652527, -0.19240093231201172, 0.7395921349525452, -0.14666782319545746, 0.034694641828...
far from the right edge you desire). Absolute positioning will ignore anything else in the div, though, so if you do that be sure to set the rest of the contents to not overlap.
[ 0.07820089906454086, -0.3375455439090729, 0.7456270456314087, 0.04506384953856468, 0.14841687679290771, -0.4063856601715088, -0.11819637566804886, -0.07861974090337753, 0.13605588674545288, -0.6195783019065857, 0.07258056849241257, 0.32060688734054565, 0.16102243959903717, -0.0006678627687...
I'm trying to tell someone his code is not "coherent" in the sense that it serves multiple purposes. I don't think I can explain it very well, so I'm looking for a good reference and/or definition. I think the correct term is [cohesion](http://en.wikipedia.org/wiki/Cohesion_(computer_science)). > In computer programmi...
[ 0.3189513087272644, 0.1336723417043686, -0.0548306442797184, 0.2433169037103653, -0.2644360065460205, -0.1240350753068924, 0.2934443950653076, -0.34357622265815735, -0.17526967823505402, -0.5260421633720398, -0.3218279778957367, 0.50496506690979, -0.3061119019985199, -0.014909779652953148,...
traits of software including robustness, reliability, reusability, and understandability whereas low cohesion is associated with undesirable traits such as being difficult to maintain, difficult to test, difficult to reuse, and even difficult to understand.
[ -0.291371613740921, 0.34803247451782227, -0.14158830046653748, 0.3529698848724365, 0.00898510031402111, 0.022068291902542114, 0.7736504077911377, 0.06514359265565872, 0.3051791489124298, -0.7143185138702393, -0.5656664371490479, 0.4672181308269501, -0.2458324283361435, 0.2705649435520172, ...
I'm at a stage where I am forced to learn Lua, so do you have any suggestions on how I do this? I don't have a lot of experience with any other scripting languages than PHP. So, some suggestions on "head start Lua"-pages? **EDIT** As an addition to the wonderful tutorial pages, could you please suggest any "programs...
[ 0.41603466868400574, 0.11891903728246689, 0.02490684762597084, 0.14027588069438934, -0.08656936883926392, -0.15909115970134735, 0.006704348139464855, 0.38716772198677063, -0.13477635383605957, -0.7034270763397217, 0.2228870540857315, 0.38410866260528564, 0.038440823554992676, -0.2622209787...
the [Programming in Lua](http://www.lua.org/pil/), it should take you a day or two to get the gist of Lua. However I can tell you right away on your first time through ignore coroutines and metatables, they are very powerful, but take a while to grasp. First learn the syntax, scoping (same as PHP luckily for you) and ...
[ 0.40201234817504883, -0.0022006691433489323, 0.363961786031723, -0.11868607997894287, -0.13987953960895538, -0.13493789732456207, -0.07728441059589386, 0.40721529722213745, -0.1096343845129013, -0.604736864566803, 0.11070705950260162, 0.29997530579566956, -0.2957063317298889, -0.2131470441...
is the best tutorial out there on Lua, everyone learns Lua with it. **Also:** If you're purpose is Lua for World of Warcraft (probably not but just in case) you can check out [this tutorial](http://wow.gamegate2k.com/viewwow/wowuiscriptingtutorial) **And:** Here is a [tips and tricks](http://www.stackprinter.com/expo...
[ 0.1574169546365738, -0.17240484058856964, 0.35138174891471863, 0.12951616942882538, 0.03455067798495293, -0.28534215688705444, -0.024666761979460716, -0.10263770073652267, -0.261048287153244, -0.4671224355697632, 0.041021667420864105, 0.5653802752494812, 0.17223528027534485, -0.21259160339...
with the [Data Structures](http://www.lua.org/pil/11.html) chapter, although Lua has a single complex data-type, the Table, that chapter will show you Lua-like ways to make a table do anything you need. Finally once you begin to grok metatables you should design a class system (yes with Lua you decide how your class ...
[ 0.24427472054958344, 0.15272487699985504, 0.09283279627561569, -0.030895216390490532, -0.21429210901260376, 0.22478094696998596, -0.10685714334249496, 0.10727252066135406, -0.3710840344429016, -0.5558183193206787, 0.06232382357120514, 0.13837875425815582, -0.4441787898540497, -0.0841815322...
that'll take a week or two to do
[ 0.41938167810440063, 0.40925395488739014, 0.20829923450946808, -0.08680186420679092, 0.18470579385757446, -0.09358995407819748, 0.18782110512256622, 0.033806055784225464, 0.03357860445976257, -0.3125704526901245, 0.2783224880695343, 0.3291446268558502, 0.3894353210926056, -0.19539189338684...
Whenever a web request is made by Visual Studio to TFS, Fiddler will show a 401 Unauthorized error. Visual Studio will then try again with a proper Authorization Negotiate header in place with which TFS will respond with the proper data and a 200 status code. How can I get the correct headers to be sent the first time...
[ 0.31960809230804443, -0.01689017191529274, 0.6127654910087585, 0.11043264716863632, 0.07413100451231003, -0.12416312843561172, 0.6038327217102051, -0.30442845821380615, -0.3938189744949341, -0.4848150312900543, -0.13300523161888123, 0.7294912934303284, -0.07235501706600189, -0.158462822437...
that this handshake is done in the most efficient way possible. It will keep the authenticated connection open for a period of time to avoid this hand-shake where possible. It will also do the initial authentication using a HTTP payload with minimal content and then send the real message if the message you were going t...
[ 0.2692282497882843, 0.00040304448339156806, 0.6198121309280396, 0.2117880880832672, -0.12613092362880707, -0.35094860196113586, 0.22038105130195618, 0.004231562372297049, 0.22008474171161652, -0.34565868973731995, 0.2776099741458893, 0.2816152572631836, 0.03276031091809273, -0.180839836597...
I'm trying to gain some memory saving in a C++ program and I want to know if I can use blocks as a scope for variables (as in Perl). Let's say I have a **huge** object that performs some computations and gives a result, does it makes sense to do: ``` InputType input; ResultType result; { // Block of code MyH...
[ 0.3974774479866028, 0.21056590974330902, 0.4131041467189789, -0.07809548079967499, 0.18536533415317535, -0.12521155178546906, 0.414075642824173, -0.17873801290988922, -0.32885679602622986, -0.5257537364959717, -0.12488648295402527, 0.4609534442424774, -0.4715438485145569, 0.254211485385894...
out of scope** and it should release the heap-allocated memory.
[ 0.264205664396286, 0.005583728197962046, 0.27496713399887085, -0.1818092167377472, 0.041333384811878204, -0.3080669343471527, 0.3370775282382965, 0.02278061769902706, -0.17937339842319489, -0.39266571402549744, -0.2616042494773865, 0.09867994487285614, -0.20758485794067383, 0.2633486688137...
I'm just working into the Microsoft Sync Framework. It looks quite easy to sync a local SQL CE 3.5 Database with a remote SQL Server 2008 using the SqlSyncAdapterBuilder and SqlServerChangeTracking. Unfortunately, syncing two SQL CE 3.5 Databases doesn't look that easy... The documentation is very sparse, and I don...
[ 0.12685933709144592, 0.20029255747795105, 0.376783162355423, 0.09050387144088745, -0.1213977038860321, -0.025145776569843292, 0.24607013165950775, 0.2921915650367737, 0.04207390174269676, -0.6720901131629944, 0.3362125754356384, 0.37367159128189087, -0.2938079833984375, 0.31996479630470276...
clients with the central server should be no problem. Syncing the multiple applications on an offline-client is where I've thought of using multiple SQL CE databases (one as a server, and one for every application-instance). I'd really appriciate being able to use the same conflict-resolution mechanisms when syncing th...
[ -0.09540193527936935, -0.04376199468970299, 0.5545730590820312, 0.24851000308990479, -0.32749107480049133, -0.09849481284618378, 0.26509901881217957, 0.06583616137504578, -0.0317469984292984, -0.7765070796012878, -0.01487644575536251, 0.4390999376773834, -0.37998148798942566, 0.10596773028...
SQL Server Compact > databases. > > > This provider can be used to > synchronize with a central server but > also has the ability to synchronize > with other clients, which is not > possible with SqlCeClientSyncProvider. > This ability enables developers to > target new scenarios such as a > collaboration sce...
[ -0.07807168364524841, -0.06565883010625839, 0.39041849970817566, 0.30734682083129883, -0.20559634268283844, -0.4240756332874298, 0.023711463436484337, -0.07169009000062943, -0.1621936857700348, -0.6941854953765869, -0.017934493720531464, 0.3412408232688904, -0.21112485229969025, 0.28813636...
Is it possible to create multiple view or window in a (Window based) iPhone app? Yes kind of possible. Just create a new view using a view controller and create an instance of that view in your class. Then in an ibaction you could do some removing and adding subviews. That's just a quick and easy way tho, you can get i...
[ 0.1242034062743187, -0.21054460108280182, 0.20416022837162018, 0.42003849148750305, -0.054695211350917816, 0.1729251593351364, 0.17849139869213104, 0.17286323010921478, -0.14058007299900055, -0.7926978468894958, -0.003914758563041687, 0.39212751388549805, -0.14724788069725037, -0.078400224...
or awakeFromNib method) ``` Then make an instance of the app delegate in the ibaction like this: ``` MyAppDelegate *myAppDelegate = (MyAppDelegate *)[[UIApplication sharedApplication] delegate]; ``` And then you can do this to switch from one view to another: ``` [self removeFromSuperView]; (or self.view in case ...
[ -0.06753344088792801, -0.009812777861952782, 0.689478874206543, -0.01972784474492073, -0.013168019242584705, 0.08639764785766602, 0.3383849859237671, -0.1875489205121994, -0.04156819358468056, -0.7470083236694336, -0.47293442487716675, 0.7593766450881958, -0.28850704431533813, 0.0823056325...
I am trying to numerically integrate an arbitrary (known when I code) function in my program using numerical integration methods. I am using Python 2.5.2 along with SciPy's numerical integration package. In order to get a feel for it, i decided to try integrating sin(x) and observed this behavior- ``` >>> from math im...
[ -0.14660467207431793, -0.012316497042775154, 0.07645000517368317, -0.3014499843120575, -0.44806936383247375, 0.18187686800956726, 0.5692914724349976, -0.47702983021736145, 0.11188700050115585, -0.6133044362068176, 0.2943713068962097, 0.3434646725654602, -0.4904465973377228, 0.0170347746461...
this (1) isn't necessarily the case, because you may just be approximating the total area under the curve. In any case, either assuming 1 is True or assuming 2 is True, I find the behavior to be inconsistent. Either both integrations (-pi to pi and 0 to 2\*pi) should return 0.0 (first value in the tuple is the resul...
[ -0.28529053926467896, -0.05623184144496918, 0.061937179416418076, -0.2041967213153839, -0.11540930718183517, 0.02322472259402275, 0.21282066404819489, -0.3814631998538971, 0.0914631187915802, -0.5031393766403198, 0.024074910208582878, 0.41747862100601196, -0.16122689843177795, 0.1045979261...
application, I plan to use the above method to find the arc length of a function. If someone has experience in this area, please advise me on the best policy for doing this in Python. **Edit** **Note** I already have the first differential values at all points in the range stored in an array. Current error is...
[ 0.07747700810432434, 0.23264141380786896, 0.5770580172538757, -0.06651021540164948, -0.27093809843063354, 0.052784524857997894, 0.31176385283470154, -0.4604441523551941, -0.0673934817314148, -0.5952807068824768, 0.06398269534111023, 0.7841430306434631, -0.34868329763412476, -0.149373039603...
way to do this. If more context is needed, I'll post it separately/ post context here, as you wish. The `quad` function is a function from an old Fortran library. It works by judging by the flatness and slope of the function it is integrating how to treat the step size it uses for numerical integration in order to maxi...
[ -0.09088185429573059, -0.12972290813922882, 0.22930973768234253, 0.324903279542923, -0.15076422691345215, 0.1880795955657959, 0.1677546501159668, -0.32349538803100586, -0.1260940134525299, -0.7960600852966309, 0.10909051448106766, 0.36297932267189026, -0.009737555868923664, -0.020613690838...
zero! The slight differences are due to the way `quad` is rolling over `sin` and changing its step sizes. For your planned task, `quad` will be all you need. EDIT: For what you're doing I think `quad` is fine. It is fast and pretty accurate. My final statement is use it with confidence unless you find something that r...
[ 0.5734845399856567, -0.22886015474796295, 0.0681379958987236, 0.25890031456947327, -0.1512073129415512, -0.12230801582336426, 0.6066267490386963, 0.012563657015562057, 0.11388092488050461, -0.4919975697994232, 0.4121626317501068, 0.8675763607025146, -0.043188270181417465, -0.13164365291595...
I have a fairly deep object graph (5-6 nodes), and as I traverse portions of it NHProf is telling me I've got a "Select N+1" problem (which I do). The two solutions I'm aware of are 1. Eager load children 2. Break apart my object graph (and eager load) I don't really want to do either of these (although I may break...
[ -0.47594892978668213, -0.029395736753940582, 0.2710220217704773, 0.06522418558597565, -0.08658631891012192, 0.387655645608902, 0.1711631417274475, -0.05842079967260361, -0.3000980019569397, -0.7548449635505676, -0.023288559168577194, 0.30823710560798645, -0.019600072875618935, -0.021587565...
"unbounded results set"s, which is presumably the same problem (or rather, will be solved by the above solution if possible). Each child collection (throughout the graph) will only ever have about 20 members, but 20^5 is a lot, so I don't want to eager load everything when I get the root, but simply get all of a child...
[ -0.09572961926460266, -0.12258543819189072, 0.20733532309532166, 0.33954474329948425, -0.17035996913909912, 0.3253127932548523, 0.36966535449028015, -0.1409483551979065, -0.43346017599105835, -0.6822572350502014, -0.15359829366207123, 0.022984523326158524, -0.16015703976154327, 0.124851338...
sounds to me that you want to pursue the approach of using your domain model rather than creating a specific nhibernate query to handle this scenario. Given this, I would suggest you take a look at the batch-size attribute which you can apply to your collections. The Fluent NHibernate fluent interface does not yet supp...
[ 0.10085340589284897, -0.1810697615146637, 0.049114566296339035, 0.14551863074302673, -0.06108136102557182, 0.0497158020734787, 0.1763462871313095, -0.06822708994150162, -0.1296447068452835, -0.5853591561317444, -0.1830969750881195, 0.5376598238945007, -0.03760802373290062, 0.10709670931100...
already, I suggest you read these: <http://www.nhforge.org/wikis/howtonh/lazy-loading-eager-loading.aspx> <http://nhibernate.info/doc/nhibernate-reference/performance.html> The NHibernate performance documentation will explain how batch-size works. Edit: I am not aware of any way to page from your domain model. I r...
[ -0.027852516621351242, -0.15427668392658234, 0.3935273587703705, 0.09537236392498016, -0.37104976177215576, -0.1685294210910797, 0.12060897052288055, -0.17575950920581818, -0.2580035626888275, -0.47878846526145935, 0.08403395116329193, 0.5736821293830872, -0.09295055270195007, -0.062830209...
How do I check if a user has local admin privileges in win32 from c++ Just found [IsUserAnAdmin()](http://msdn.microsoft.com/en-us/library/windows/desktop/bb776463%28v=vs.85%29.aspx "IsUserAnAdmin()quot;") in shlobj.h which does the job for me.
[ -0.053881049156188965, 0.26797887682914734, 0.6793432235717773, -0.08219069987535477, 0.01884370483458042, -0.2876107692718506, 0.37421947717666626, 0.01587596721947193, -0.3272075355052948, -0.6177745461463928, -0.005573696456849575, 0.3855134844779968, 0.02717435359954834, 0.036883417516...
I bind some collection to a **DataGridView**. Collection contains **KeyValuePair** objects where key is a string and value is an object of my class **Field**. **DataGridView** displays two columns - one containing the key and the other one containing the value. The value (**Field** object) is displayed with its **ToStr...
[ 0.06614696234464645, -0.08717542886734009, 0.6713027954101562, 0.007218239828944206, -0.26102808117866516, -0.11473046243190765, 0.26192453503608704, -0.3699418306350708, -0.11982878297567368, -0.746186375617981, 0.026074348017573357, 0.4442514181137085, -0.2382545918226242, 0.374953091144...
common with most direct list-based bindings) can only bind to immediate properties of the row item. You could perhaps create a facade object for this? i.e. a class that accepts the instance and returns the name as a direct property: ``` public string Name { get {return innerObject.Name;} set {innerObject.Name ...
[ 0.16140104830265045, -0.24088633060455322, 0.3456225097179413, 0.08474259078502655, -0.20308049023151398, -0.22611309587955475, 0.24657775461673737, -0.3427835702896118, -0.17496204376220703, -0.532407283782959, -0.14959685504436493, 0.7392202615737915, -0.557848334312439, 0.29148358106613...
model at runtime, but it **really** isn't worth it just for this.
[ 0.5507977604866028, -0.08138124644756317, 0.33970901370048523, 0.37757888436317444, 0.2561451494693756, 0.2516566812992096, 0.2638249099254608, -0.11925248801708221, 0.07679805904626846, -0.43201538920402527, 0.4221974313259125, 0.42495042085647583, 0.19972428679466248, 0.00915895495563745...
I want to known who is locking a file on a network share. Here is the problem : the network share is on a NAS, so I can't log on. I need a tool to find out remotely who is locking the file. It is not practical to reboot the NAS every time, because there are several users. [Handle.exe](https://stackoverflow.com/questi...
[ 0.15491090714931488, 0.1420159637928009, 0.2963722050189972, 0.16194353997707367, 0.3832376301288605, -0.5122633576393127, 0.2830173969268799, -0.24845953285694122, -0.5072771906852722, -0.605743944644928, -0.02377479337155819, 0.6596946120262146, 0.13174846768379211, 0.2409253567457199, ...
shows you what files on the local computer are open/locked by remote computer (which has the file open through a file share): * Select "Manage Computer" (Open "Computer Management") * click "Shared Folders" * choose "Open Files" There you can even close the file forcefully.
[ -0.12542490661144257, 0.035593096166849136, 0.370839387178421, 0.27907004952430725, 0.07974644750356674, -0.5927494764328003, 0.2894824147224426, 0.025243375450372696, -0.41156694293022156, -0.5947762727737427, -0.4598587155342102, 0.5090464353561401, 0.08607757836580276, 0.203959807753562...
I have a software app and I've hit an important milestone, version 2.0. I decided I want to tag this version as "Version-2.0" so I have named this snapshot. I also created a "Version-2.0" branch in case I need to fix anything and merge it back into my trunk. After reading through the Tortoise SVN help file, it inform...
[ 0.4053429663181305, -0.26589545607566833, 0.3610014021396637, -0.09319869428873062, 0.2706534266471863, -0.045269496738910675, 0.25008609890937805, 0.2515105903148651, -0.6101999282836914, -0.5124466419219971, -0.11356692761182785, 0.5690070390701294, -0.01854649744927883, 0.19481219351291...
go to my /trunk folder and do my work. And when I made my tag and branch, it created folders in my /Tags/ and /Branches/ folder after I did an update. Why wouldn't I just go to /Branches/Experiemental-v3.0/ and do my work there if I wanted to? **Can someone explain the concept of "Working Copy" and "Switching" to me?...
[ 0.8300248384475708, -0.09261169284582138, 0.07277650386095047, 0.32925084233283997, 0.22161267697811127, -0.12940330803394318, -0.007168027106672525, 0.12205885350704193, -0.5585422515869141, -0.4143182933330536, -0.09412497282028198, 0.39585041999816895, 0.1418938785791397, 0.044727168977...
what you are working on. You can switch between branches (or more correctly copies) of the same parent with svn switch. This will basically say, what's different between the current working copy and the branch I am switch to. It then performs an update on your current working copy to the revision of branch you switch ...
[ 0.5290698409080505, -0.3472888469696045, 0.3986351490020752, 0.32766908407211304, 0.3982253670692444, 0.07197807729244232, -0.1768452674150467, 0.08160985261201859, -0.3125482499599457, -0.6629686951637268, 0.11528938263654709, 0.47143784165382385, -0.10073710232973099, 0.39254555106163025...
to your work area.
[ 0.4083479344844818, 0.25871542096138, -0.07058417052030563, -0.3244261145591736, 0.26148056983947754, -0.14284875988960266, 0.08278676867485046, 0.11691927909851074, -0.32284045219421387, -0.5723425149917603, -0.3958756625652313, 0.2583177089691162, 0.05114758014678955, -0.3165750503540039...
I have backend code written in Java. The code has about 12 classes. However my partner on this project who is writing the interface (which uses Ajax) is more familiar with C# and .net. What would be quicker to learn Ajax with Java or to rewrite it in C#. That's a big subject area you are opening up and you should go bu...
[ 0.5881420969963074, 0.281867116689682, -0.15120141208171844, -0.20461726188659668, -0.4479834735393524, 0.06191953271627426, 0.02844526432454586, 0.14153218269348145, 0.004292489029467106, -0.8915173411369324, 0.32877498865127563, 0.5413210391998291, -0.06436438858509064, -0.11692989617586...
smooth. Edit: Holy crap you completely changed the question!
[ 0.16391417384147644, 0.036370377987623215, -0.05947205796837807, 0.18565957248210907, 0.2043038159608841, -0.18388867378234863, 0.24075113236904144, 0.29717934131622314, -0.3184828758239746, -0.1613897830247879, 0.07230842113494873, 0.404988169670105, 0.22590278089046478, -0.06401738524436...
How costly is databinding a collection of objects to a grid (telerik gridview to be specific) vs a regular datatable, I wouldnt have thought it was an issue but I am doing the databinding via a webservice AJAX callback and if the grid has more than 20 rows it starts to take a noticable time to bind, I read somewhere ...
[ 0.5684980154037476, -0.1421019583940506, 0.22635018825531006, 0.4305364489555359, -0.23851238191127777, -0.2789685130119324, -0.06872233003377914, -0.33383944630622864, -0.03245982900261879, -0.9161096811294556, 0.39327272772789, 0.46786272525787354, -0.09310903400182724, -0.22069248557090...
sub-objects. During the evaluation I found an example and a help topic that explain how to fine-tune the binding to collections and I am pasting them here: [Demo](http://demos.telerik.com/aspnet-ajax/grid/examples/programming/binding/defaultcs.aspx) [Help topic](http://www.telerik.com/help/aspnet-ajax/grdtipswhenbind...
[ -0.027737805619835854, -0.21745648980140686, 0.33228185772895813, 0.33279940485954285, -0.1731032282114029, -0.17319610714912415, 0.031797781586647034, -0.3552800118923187, -0.47094157338142395, -0.5263424515724182, -0.1583479791879654, 0.11342847347259521, 0.06013902276754379, 0.123825952...