text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
function onto a stack. In fact, you are replacing the program stack by one of your own. ```js var stack = []; stack.push(firstObject); // while not empty while (stack.length) { // Pop off end of stack. obj = stack.pop(); // Do stuff. // Push other objects on the stack as needed. ... } ``` Not...
[ -0.0703408345580101, -0.12546075880527496, 0.5924941301345825, -0.4689079225063324, 0.011677835136651993, -0.07723233103752136, 0.2192576825618744, -0.44301286339759827, -0.259818971157074, -0.35590195655822754, -0.44418641924858093, 0.6902438402175903, -0.720436692237854, -0.0926725789904...
and Recursion Elimination](http://cs.saddleback.edu/rwatkins/CS2B/Lab%20Exercises/Stacks%20and%20Recursion%20Lab.pdf) (or [Article Backup link](https://web.archive.org/web/20120227170843/http://cs.saddleback.edu/rwatkins/CS2B/Lab%20Exercises/Stacks%20and%20Recursion%20Lab.pdf)) goes into more details on this subject.
[ -0.4658747911453247, 0.0032300162129104137, -0.2381732314825058, -0.08161565661430359, -0.01659466326236725, -0.008969851769506931, 0.07260700315237045, -0.253154456615448, -0.5081583857536316, -0.23259787261486053, -0.5232142210006714, 0.4229278266429901, -0.06310664862394333, -0.09751471...
I believe several of us have already worked on a project where not only the UI, but also data has to be supported in different languages. Such as - being able to provide and store a translation for what I'm writing here, for instance. What's more, I also believe several of us have some time-triggered events (such as ...
[ 0.3755091726779938, -0.062160175293684006, 0.3118707537651062, 0.34543052315711975, 0.09789850562810898, -0.29312050342559814, 0.0737483948469162, 0.18661974370479584, -0.3817812204360962, -0.7731587290763855, -0.09517557173967361, 0.3799234628677368, 0.1052643284201622, 0.0872417017817497...
when reading submitted data files (parsing text and excel data, for instance) Currently I'm storing all my translations for all my entities on a single table (not so pratical as it is very hard to find yourself when doing sql queries to look into a problem), setting UI translations mainly on satellite assemblies and n...
[ 0.6077412366867065, 0.1552838534116745, 0.29025790095329285, 0.3034118413925171, -0.3196087181568146, -0.1127336174249649, 0.41042011976242065, 0.18134066462516785, -0.159104123711586, -0.7748136520385742, -0.07954265922307968, 0.2691573202610016, -0.00439702020958066, -0.06730681657791138...
survey where: 1. Answers will collected only until midnight 2. Questionnaire definition and part of the answers come from a text file (in any language) as well as translations 3. Questions and response options must be displayed in several languages, according to who is accessing it 4. Reports also have to be shown and...
[ 0.5381931662559509, -0.17063774168491364, 0.5546938180923462, 0.4748307466506958, -0.048720695078372955, 0.055523600429296494, 0.16675187647342682, -0.3871229588985443, -0.54375821352005, -0.5531579256057739, 0.08060775697231293, 0.06718797981739044, 0.17528173327445984, 0.0285396650433540...
very cautious. From what you say about the i18n features you're trying to implement, I wonder if you're over-reaching. Notice that the big boy (e.g. eBay, amazon.com, yahoo, bbc) web applications actually deliver separate apps in each language they want to support. Each of these web applications do consume a common co...
[ 0.7012240886688232, 0.038167696446180344, -0.11409255117177963, 0.19350185990333557, 0.11961629241704941, -0.0757342278957367, 0.4001728594303131, 0.49679577350616455, -0.36045047640800476, -0.4034620523452759, -0.19763042032718658, 0.5240293741226196, 0.10596294701099396, -0.2198333442211...
It's difficult to deliver a successful web application in one language, much less many. You should not be afraid to favor one user population (say, your Asian-language speakers) over others if this makes sense for your web app's business needs.
[ 0.3364103436470032, 0.4238196015357971, -0.23173576593399048, 0.006909328978508711, 0.22412581741809845, 0.07319055497646332, 0.5932658314704895, 0.3858228027820587, -0.07287942618131638, -0.599190354347229, -0.4181862473487854, 0.3227100670337677, -0.02970443107187748, -0.3032269775867462...
We run an old Windows NT Machine, fully patched running IIS4.0. Today we were hit by "linuXploit\_crew", and they took down our websites for a minute or two. (luckily we were quick to notice a change on the websites and fix it within minutes of the attack). However -- After fixing the website, I'm left with trying to...
[ 0.44076746702194214, 0.16103032231330872, 0.3674861490726471, 0.0711132138967514, 0.2964930832386017, -0.11263249814510345, 0.44931310415267944, 0.4502146244049072, -0.304968923330307, -0.5829448103904724, -0.004099764861166477, 0.5271750688552856, -0.2665773928165436, -0.03079267963767051...
HTTP, and HTTPS (21,80,443) on a Cisco Firewall. NT/IIS4 no longer get security updates. Any *new* exploits will remain **unpatched**. Time to upgrade. Once you've been "owned" enough to change your site, you can't necessarily trust your logs anymore- they could have been "cleaned" by the attacker.
[ 0.5899480581283569, -0.15243327617645264, 0.4683147370815277, 0.17662832140922546, 0.19948436319828033, -0.200293630361557, 0.4959430992603302, 0.2904832065105438, -0.4023221433162689, -0.5666768550872803, -0.3298293650150299, 0.5153393149375916, -0.00562989292666316, 0.041196729987859726,...
Is there a way to determine who is logged on to a particular (remote) machine given the IP address (or the workstation name) of the machine? * The machines in question are on an Active Directory Domain * The user running the script probably won't have any special rights on either their local or the remote machine * Op...
[ 0.6278213262557983, 0.11545915901660919, 0.643921434879303, 0.29230889678001404, 0.3008320927619934, -0.35475054383277893, 0.25630322098731995, 0.4789551794528961, -0.3666211664676666, -0.6483994126319885, -0.034271080046892166, 0.4265945851802826, 0.14074184000492096, 0.11034401506185532,...
this information without Administrator access.
[ 0.22817003726959229, 0.19613304734230042, 0.3657473623752594, 0.34091833233833313, 0.1999923288822174, -0.9233473539352417, 0.24010178446769714, 0.2514417767524719, -0.3044627606868744, -0.7736103534698486, -0.24243393540382385, 0.17641225457191467, -0.1437826007604599, 0.2729402184486389,...
I'm writing some JNI code in C++ to be called from an applet on Windows XP. I've been able to successfully run the applet and have the JNI library loaded and called, even going so far as having it call functions in other DLLs. I got this working by setting up the PATH system environment variable to include the director...
[ 0.3566173315048218, -0.193496972322464, 0.22772052884101868, -0.011193707585334778, 0.1416744887828827, -0.03348315507173538, 0.36032673716545105, 0.04609045013785362, 0.051383521407842636, -0.5414716601371765, 0.07250344008207321, 0.7475444674491882, -0.5083036422729492, 0.111464925110340...
This doesn't seem to be a problem with a missing dependent DLL, because I can remove a dependent DLL and get a different message about dependent DLL missing. From what I've been able to find online, it appears that this message means that a native Java function implementation is missing from the DLL, but it's odd that ...
[ 0.294514000415802, -0.1244528740644455, -0.055950745940208435, 0.0954786017537117, -0.07161841541528702, -0.32993829250335693, 0.6370625495910645, 0.1316828429698944, -0.5251331329345703, -0.368723064661026, 0.17082756757736206, 0.3943590521812439, -0.4118705093860626, 0.3280729353427887, ...
message "The specified procedure could not be found" for UnsatisfiedLinkError indicates that a function in the root dll or in **a dependent dll** could not be found. The most likely cause of this in a JNI situation is that the native JNI function is not exported correctly. But this can apparently happen if a dependent ...
[ 0.016551293432712555, -0.46710360050201416, 0.02055414579808712, 0.18532127141952515, -0.03249907121062279, -0.1818215399980545, 0.3191123902797699, 0.18250127136707306, -0.13484588265419006, -0.6734398603439331, -0.2663913667201996, 0.39009779691696167, -0.4824449121952057, 0.135532781481...
always ran executables from the same directory as input.dll. However, there is another input.dll in the windows system directory (which is in the middle of the DLL search order). So when running this from a java applet, if I include the code described above in the applet, which causes input.dll to be loaded, it loads t...
[ 0.057462286204099655, -0.38381391763687134, 0.17609289288520813, -0.021625949069857597, -0.2533194124698639, -0.2730516493320465, 0.3087729215621948, 0.114300936460495, -0.3485995829105377, -0.5808879733085632, 0.015159551054239273, 0.7142274975776672, -0.5751805305480957, 0.07868973910808...
dependent DLL was loaded and it didn't have the expected functions in it.
[ -0.1451132893562317, -0.5966471433639526, 0.3010842502117157, 0.4735351502895355, -0.6284249424934387, -0.23210029304027557, 0.004621066153049469, 0.09427793323993683, 0.260208398103714, 0.03855385258793831, 0.4409036338329315, 0.6179062724113464, -0.5725952982902527, 0.025915665552020073,...
Our team would like to move from the Visual SourceSafe (VSS) to the Team Foundation Server (TFS). I know that the TFS is much more than just a version control system, but for the first time I would like to use it this way. Currently our projects are organized within the single solution that consists of the shared part...
[ 0.38752487301826477, -0.1844867765903473, 0.15663032233715057, 0.1657748967409134, -0.2405301034450531, -0.4196275770664215, -0.13912732899188995, 0.004394334275275469, -0.32688984274864197, -0.774322509765625, -0.19160869717597961, 0.23431538045406342, -0.04146246239542961, -0.02054294012...
it's quite understandable why you would want to migrate source control first. The migration utility of choice is generally [VSSConverter.exe](http://msdn.microsoft.com/en-us/library/ms253090(VS.80).aspx) which allows you to map VSS paths to Team Project source control paths and is pretty well documented in this walkth...
[ 0.14737199246883392, -0.2095469832420349, 0.35533952713012695, 0.05008184164762497, 0.08853703737258911, -0.06221935153007507, -0.2344602644443512, -0.09403632581233978, -0.4967820644378662, -0.7652202844619751, -0.016158245503902435, 0.2425510585308075, -0.17968617379665375, 0.05008593201...
are **really** asking is more about guidance on creating Team Projects and structuring? This is a little harder to answer without knowing more about your specific circumstance. Patterns and Practices published a [book on CodePlex called the TFS Guide](http://www.codeplex.com/TFSGuide) which might help - it describes ...
[ 0.8299645781517029, -0.35123780369758606, -0.07470675557851791, 0.3606761693954468, -0.14096631109714508, -0.24073775112628937, 0.3597608804702759, 0.10315399616956711, -0.46219730377197266, -0.5613150596618652, 0.057400625199079514, 0.3100908398628235, 0.09240955114364624, -0.065144054591...
through all that reading, you'll really be on top of most of the essential TFS groundwork!
[ 0.5227888226509094, -0.09934523701667786, 0.3554667830467224, -0.008957689628005028, 0.08211158961057663, -0.35260018706321716, 0.2897146940231323, 0.20835097134113312, -0.29640641808509827, -0.37084925174713135, 0.04339917004108429, 0.3826705813407898, 0.6702418327331543, -0.0062204613350...
Is there a way my program can determine when it's running on a Remote Desktop (Terminal Services)? I'd like to enable an "inactivity timeout" on the program when it's running on a Remote Desktop session. Since users are notorious for leaving Remote Desktop sessions open, I want my program to terminate after a specifie...
[ 0.14043325185775757, 0.02195722796022892, 0.4485102593898773, -0.001678916742093861, 0.3689078688621521, -0.5264114141464233, 0.5185844302177429, 0.18856146931648254, -0.30887576937675476, -0.5272448062896729, -0.2232304960489273, 0.47246843576431274, -0.028663314878940582, 0.4409117400646...
I'm slowly moving all of my `LAMP websites` from `mysql_` functions to `PDO` functions and I've hit my first brick wall. I don't know how to loop through results with a parameter. I am fine with the following: ``` foreach ($database->query("SELECT * FROM widgets") as $results) { echo $results["widget_name"]; } ```...
[ 0.3223643898963928, -0.0014720623148605227, 0.39283257722854614, -0.2594195008277893, -0.3146767318248749, -0.344340056180954, 0.3348725438117981, -0.16170011460781097, -0.3055990934371948, -0.6494196057319641, 0.17658022046089172, 0.4930306077003479, -0.43425264954566956, 0.11240264773368...
debugging), and using parameterised statements instead of substituting dynamic values into the query yourself (highly recommended): ``` // connect to PDO $pdo = new PDO("mysql:host=localhost;dbname=test", "user", "password"); // the following tells PDO we want it to throw Exceptions for every error. // this is far mo...
[ -0.206635981798172, 0.0922592282295227, 0.2659796178340912, -0.3470539152622223, -0.23660260438919067, 0.09635186195373535, 0.23226043581962585, -0.6368445158004761, -0.018143028020858765, -0.35494741797447205, -0.34249624609947205, 0.4518442153930664, -0.5470080971717834, 0.00002302960274...
I want to change/animate the Foreground property of a custom button control template depending on the control's state. Pre-RC0, I set the Foreground of the ContentPresenter, gave it an x:Name, and referenced it in the VisualStateManager transitions. Now, ContentPresenter no longer has a Foreground, since it doesn't i...
[ 0.5446434020996094, -0.23329955339431763, 0.7529522776603699, 0.0502423532307148, 0.013279994949698448, 0.24039578437805176, -0.043487947434186935, -0.04831806942820549, -0.07180486619472504, -0.924105703830719, 0.09535807371139526, 0.3348894715309143, -0.4377003610134125, 0.42345380783081...
Update: I can solve the problem for some of the removed properties with a Border, but not those relating to font/text, including Foreground. Since it doesn't seem possible, in my particular case I was able to replace the ContentPresenter with a TextBlock. There is a [post from Jesse Liberty](http://jesseliberty.com/2...
[ 0.6953436136245728, -0.043286580592393875, 0.43514227867126465, 0.18309137225151062, -0.007997329346835613, -0.36614927649497986, 0.20748963952064514, 0.08299312740564346, -0.5212151408195496, -0.4364737272262573, -0.13592985272407532, 0.27610307931900024, -0.3289031982421875, 0.0322765111...
dependency properties, which is using another property of the same type for what you want. It isn't a nice practice, but will certainly work.
[ 0.35412922501564026, -0.0010178025113418698, 0.07239479571580887, 0.2928773760795593, 0.0944323018193245, -0.1840464323759079, 0.005910096690058708, -0.026244116947054863, 0.08092054724693298, -0.4920889735221863, 0.03350301831960678, 0.7178532481193542, -0.34553244709968567, 0.18213550746...
I went to all the documentation, also I went to the IRC channel (BTW a great community) and they told me that is not possible to create a model and limit choices in a field where the 'current user' is in a ForeignKey. I will try to explain this with an example: ``` class Project(models.Model): name = models.CharFiel...
[ 0.11019215732812881, -0.07959312945604324, 0.2540279030799866, -0.031398750841617584, 0.20296764373779297, 0.14144539833068848, 0.16551542282104492, -0.1858084350824356, -0.2867642939090729, -0.5705342888832092, 0.07775436341762543, 0.5386471152305603, -0.08235888183116913, 0.3917025327682...
model to just limit the choices where the current user has projects, I don't want to see projects where I'm not in. Thank you very much if you can help me or give me any advice, I don't want to you write all the app, just a tip how to deal with that. I have 2 days with this in my head and I can't figure it out :( **U...
[ 0.2514819800853729, -0.164757639169693, 0.72845458984375, 0.04834755137562752, 0.048305824398994446, -0.24032579362392426, 0.20748268067836761, -0.1233489066362381, -0.23577290773391724, -0.6768684387207031, 0.3773146867752075, 0.48590371012687683, -0.4009149968624115, 0.1825166940689087, ...
middleware ``` from threading import local _thread_locals = local() def get_current_user(): return getattr(getattr(_thread_locals, 'user', None),'id',None) class ThreadLocals(object): """Middleware that gets various objects from the request object and saves them in thread local storage.""" def proces...
[ -0.03350188955664635, 0.17087574303150177, 0.40722909569740295, 0.03105105459690094, 0.4042346477508545, 0.049493469297885895, -0.025795651599764824, -0.020535357296466827, -0.05590679869055748, -1.0369873046875, -0.3113502860069275, 0.6196699142456055, -0.3480188548564911, 0.4951285719871...
Is there anyway to determine if a ResourceManager contains a named resource? Currently I am catching the MissingManifestResourceException but I hate having to use Exceptions for non-exceptional situations. There must be some way to enumerate the name value pairs of a ResourceManager through reflection, or something? *...
[ 0.0897078812122345, 0.01757069304585457, -0.2535296678543091, 0.10451342910528183, 0.009772798046469688, -0.1641428917646408, 0.4363085627555847, -0.07893769443035126, -0.5450870394706726, -0.6229175925254822, 0.07640989869832993, 0.6196240782737732, -0.266844242811203, -0.0112488940358161...
enumerate it. Here y'go: ``` // At startup. ResourceManager mgr = Resources.ResourceManager; List<string> keys = new List<string>(); ResourceSet set = mgr.GetResourceSet(CultureInfo.CurrentCulture, true, true); foreach (DictionaryEntry o in set) { keys.Add((string)o.Key); } mgr...
[ -0.09940188378095627, -0.051342155784368515, 0.7454229593276978, -0.21209685504436493, 0.3694750666618347, 0.22180038690567017, 0.2608117163181305, 0.029486138373613358, -0.0893239751458168, -0.6378490924835205, -0.39096659421920776, 0.4376984238624573, -0.2631210386753082, 0.2108953297138...
Here's a curious one. I have a class A. It has an item of class B, which I want to initialize in the constructor of A using an initializer list, like so: ``` class A { public: A(const B& b): mB(b) { }; private: B mB; }; ``` Is there a way to catch exceptions that might be thrown by mB's copy-constru...
[ 0.11677034944295883, 0.018484370782971382, -0.029231298714876175, 0.07440479844808578, -0.1608111709356308, 0.19092422723770142, 0.2449290007352829, -0.021946093067526817, -0.4045265316963196, -0.539970338344574, 0.025684289634227753, 0.25550174713134766, -0.4716951847076416, 0.09955836087...
these are called "Function try blocks". I confess I didn't know this either until I went looking. You learn something every day! I don't know if this is an indictment of how little I get to use C++ these days, my lack of C++ knowledge, or the often Byzantine features that litter the language. Ah well - I still like it...
[ 0.24981388449668884, 0.08848107606172562, -0.10789487510919571, -0.0671432688832283, -0.1649113893508911, -0.26920124888420105, 0.33865952491760254, -0.06497251242399216, -0.06359150260686874, -0.355074942111969, -0.44488009810447693, 0.46233370900154114, -0.3255845308303833, -0.1431179195...
I'm personally an advocate of the [ternary operator](https://en.wikipedia.org/wiki/%3F:): `() ? :` I do realize that it has its place, but I have come across many programmers that are completely against ever using it, and some that use it too often. What are your feelings on it? What interesting code have you seen u...
[ -0.022570762783288956, 0.20172366499900818, -0.0010258893016725779, -0.11934815347194672, -0.1502981036901474, -0.06255821883678436, 0.3339139223098755, 0.09311796724796295, -0.1695946753025055, -0.40332603454589844, -0.3902827501296997, 0.5425100326538086, -0.3004612624645233, 0.090985678...
when using ternary operator, consider formatting the code in a way that improves readability: ``` int a = (b > 10) ? some_value : another_value; ```
[ -0.16821837425231934, -0.14438769221305847, 0.07644761353731155, -0.2853938341140747, -0.2138809859752655, 0.18284498155117035, 0.2829866409301758, -0.33476102352142334, -0.03410695865750313, -0.40230870246887207, -0.38465967774391174, 0.2737339437007904, -0.5721480846405029, -0.2422848790...
I'm trying: ``` import commands print commands.getoutput("ps -u 0") ``` But it doesn't work on os x. os instead of commands gives the same output: USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND nothing more This works on Mac OS X 10.5.5. Note the capital **-U** option. Perhaps that's been your problem. ``...
[ -0.043982528150081635, 0.1962323635816574, 0.3981359899044037, -0.2458593249320984, -0.09679033607244492, 0.28064027428627014, 0.4364442825317383, -0.017255263403058052, -0.17585839331150055, -0.9103648066520691, -0.1833881139755249, 0.6590041518211365, -0.35390567779541016, -0.06896936893...
In svn, I have a branch which was created, say at revision 22334. Commits were then made on the branch. How do I get a list of all files that were changed on the branch compared to what's on the trunk? I do not want to see files that were changed on the trunk between when the branch was created and "now". This will do...
[ 0.01833748072385788, 0.07262250036001205, 0.5743624567985535, -0.015260985121130943, 0.10252305120229721, -0.32324346899986267, 0.20665568113327026, -0.01818655990064144, -0.4729085862636566, -0.5374482274055481, -0.015109267085790634, 0.5880779027938843, -0.09623915702104568, 0.4820510149...
``` Function FillAdminAccount() As Boolean FillAdminAccount = True Try SQLconn.ConnectionString = "connect timeout=9999999;" & _ "data source=" & DefaultIserver & ";" & _
[ -0.28881046175956726, -0.02546623907983303, 0.4277785122394562, -0.21831683814525604, 0.34905439615249634, 0.010419200174510479, 0.33188068866729736, -0.1131025031208992, -0.05836629122495651, -0.499521404504776, -0.22148622572422028, 0.49750280380249023, -0.3148239254951477, 0.23459315299...
"initial catalog=" & DefaultIdBase & "; " & _ "user id=userid;" & _ "password=userpass;" & _
[ -0.05433804541826248, 0.05874834582209587, 0.4020727872848511, 0.048223238438367844, 0.5377771854400635, 0.08162068575620651, 0.2320501059293747, -0.1955297291278839, -0.16959354281425476, -0.6315727829933167, -0.3079172372817993, 0.36341992020606995, -0.1518741101026535, 0.228683695197105...
"persist security info=True; " & _ "packet size=4096" SQLconn.Open() SQLcmd.CommandType = CommandType.Text SQLcmd.CommandText = "Select distinct username,
[ -0.10080452263355255, -0.16209888458251953, 0.6497148275375366, -0.2474266141653061, 0.4664323627948761, -0.1260981410741806, 0.5678519010543823, -0.2492504119873047, -0.2644404470920563, -0.08855102956295013, -0.2010021060705185, 0.3289283812046051, -0.27004313468933105, 0.456113755702972...
cast(convert(varchar,userpassword) as varchar) as 'userpassword' from " & tblUsersList & " where usertype='MainAdmin'" SQLcmd.Connection = SQLconn SQLreader = SQLcmd.ExecuteReader While SQLreader.Read = True CurrentAdminUser = SQLreader("username").ToString CurrentAdmin...
[ -0.41377535462379456, -0.001375432824715972, 0.5572193264961243, -0.10960221290588379, -0.08006348460912704, 0.28075626492500305, 0.3404850363731384, -0.5919473171234131, -0.2331136167049408, -0.285624235868454, -0.1370028704404831, 0.4262561500072479, -0.4277336895465851, 0.30181935429573...
Finally If SQLconn.State = ConnectionState.Open Then SQLconn.Close() If SQLreader.IsClosed = False Then SQLreader.Close() End Try End Function 'FillAdminAccount ``` Please see the line with the comment PROBLEM. On this code, the output is equal to *"userpassword*. As you can see, there is no q...
[ 0.034465376287698746, 0.11959043890237808, 0.3589961528778076, 0.027218781411647797, -0.18628154695034027, -0.3229019045829773, 0.31399834156036377, 0.05704754218459129, 0.2622987926006317, -0.6052724123001099, -0.019506031647324562, 0.6606736183166504, -0.3280630111694336, 0.4294706881046...
Now it looks like your passwords *might* not quite be plain text because of the convert/cast operations, but you still have a problem. At very least any encryption used is easily reversible, and if your sql server ever ends up on a different machine from the application then passwords will be traveling over the wire in...
[ 0.34136807918548584, 0.141034796833992, 0.34005674719810486, 0.20656324923038483, 0.140100359916687, -0.4932127296924591, 0.38832709193229675, 0.11768335849046707, -0.4118371605873108, -0.5547513365745544, 0.047367289662361145, 0.6502801179885864, -0.04936087131500244, 0.33287563920021057,...
Server 2005's HashBytes() function to only store a hash of the actual password. When someone tries to login, hash their attempted password and match up the hashes. As to your specific question, my guess is the cast or convert operation failed resulting in a NULL value coming back to the application. And do you have *b...
[ -0.4285549819469452, -0.1283392459154129, 0.28715378046035767, -0.11768077313899994, -0.4597319960594177, -0.18291577696800232, 0.5388954877853394, 0.08029474318027496, -0.17140577733516693, -0.3168516159057617, 0.10887911915779114, 0.31907224655151367, -0.38775521516799927, 0.054663021117...
So, in reading this site, it seems that the shop in which I work does a lot of things wrong and some things right. How can I improve the code that I work with from my colleagues? The only thing I can think of is to lead by example - start using Boost, etc. Any other thoughts? You probably have to look more closely at w...
[ 0.7971484661102295, 0.26763051748275757, -0.16983120143413544, -0.2294318974018097, -0.31293433904647827, 0.13031695783138275, 0.5800816416740417, 0.15762019157409668, -0.17820633947849274, -0.5273036956787109, 0.4365130662918091, 0.46302473545074463, 0.2063913345336914, 0.0096197640523314...
It can be difficult to realize change in an entrenched shop. Try proposing code reviews (on your code first), which could lead to discussion. For tangible items, I'd look at [Scott Meyers](http://www.aristeia.com/)' Effective C++, etc. Develop your skillset and you will either help improve others around you or move on...
[ 0.7979795336723328, 0.12925957143306732, -0.06540468335151672, 0.2920554578304291, -0.03721499815583229, 0.17490550875663757, 0.3588266372680664, -0.22435231506824493, -0.4562826156616211, -0.5796615481376648, -0.25242963433265686, 0.5653629302978516, 0.12084204703569412, -0.01936378329992...
``` using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace GenericCount { class Program { static int Count1<T>(T a) where T : IEnumerable<T> { return a.Count(); } static void Main(string[] args) { List<str...
[ 0.022470206022262573, -0.25680220127105713, 0.4318995475769043, -0.32095927000045776, 0.05031951889395714, 0.18041709065437317, 0.25189128518104553, -0.22522038221359253, -0.35761725902557373, -0.2728649973869324, -0.42238789796829224, 0.43766850233078003, -0.6598809957504272, 0.4727356731...
{ "rob","tx" }; int count = Count1<List<string>>(mystring);****** Console.WriteLine(count.ToString()); } } } ``` What do I have to change in the above indicated line of code to make it work. I am just trying to pass either List or array in
[ 0.48771917819976807, 0.07143692672252655, 0.5685454607009888, -0.4287419319152832, 0.3385796844959259, 0.021255122497677803, 0.4546220600605011, -0.2642405331134796, -0.12214663624763489, -0.506693959236145, -0.08372801542282104, 0.7014313340187073, -0.2992621958255768, -0.0045963316224515...
order to get the count. You want this ``` static int Count1<T>(IEnumerable<T> a) { return a.Count(); } ```
[ 0.21502362191677094, -0.17107489705085754, 0.20057839155197144, -0.2525692582130432, 0.04108602553606033, -0.1350087672472, 0.1266147643327713, -0.4800903797149658, -0.18472817540168762, -0.34924769401550293, -0.20366498827934265, 0.6443130373954773, -0.6431499719619751, -0.062199726700782...
I'm using subversion (TortoiseSVN) and I want to remove the .svn folders from my project for deployment, is there an automated way of doing this using subversion or do I have to create a custom script for this? TortoiseSVN has an export function. This will create the entire SVN tree elsewhere without the `.svn` folders...
[ 0.43137603998184204, 0.002908406313508749, 0.1871328204870224, -0.18293127417564392, -0.3054945170879364, -0.3047827482223511, 0.5410119295120239, 0.3697929382324219, -0.45443665981292725, -0.4390765130519867, -0.08343223482370377, 0.539458155632019, -0.5102440118789673, 0.3776843845844269...
Are there are good uses of Partial Classes outside the webforms/winforms generated code scenarios? Or is this feature basically to support that? It is in part to support scenarios (WebForms, WinForms, LINQ-to-SQL, etc) mixing generated code with programmer code. There are more reasons to use it. For example, if you ha...
[ 0.18699903786182404, -0.23551082611083984, -0.28691938519477844, 0.5362910032272339, -0.1450803279876709, -0.31993725895881653, -0.008870068937540054, 0.06539054214954376, -0.2091224491596222, -0.5910947918891907, -0.14075607061386108, 0.32103651762008667, -0.2612283527851105, 0.0875816941...
Can this be done w/ linqtosql? ``` SELECT City, SUM(DATEDIFF(minute,StartDate,Completed)) AS Downtime FROM Incidents GROUP BY City ``` It is in part to support scenarios (WebForms, WinForms, LINQ-to-SQL, etc) mixing generated code with programmer code. There are more reasons to use it. For example, if you have big c...
[ 0.18209341168403625, -0.2570790946483612, 0.1335042268037796, 0.41301900148391724, 0.04415934532880783, -0.3895917534828186, 0.05338781327009201, -0.22344717383384705, -0.19853615760803223, -0.6783580780029297, -0.20384156703948975, 0.15944361686706543, -0.1775110363960266, -0.115092739462...
I want to export the contents of several tables from MSAccess2003. The tables contain unicode Japanese characters. I want to store them as tilde delimited text files. I can do this manually using File/Export and, in the 'Advanced' dialog selecting tilde as Field Delimiter and the Unicode as the Code Page. I can stor...
[ -0.006243845913559198, 0.06509245932102203, 0.5314131379127502, -0.1812189370393753, -0.36016130447387695, -0.043906282633543015, 0.06714767962694168, -0.2108355611562729, -0.20216310024261475, -0.6409021019935608, -0.13745933771133423, 0.3957166075706482, -0.4115774929523468, 0.1952002495...
name is a temporary or system table then ignore it If Left(dBase.TableDefs(lTbl).Name, 1) = "~" Or _ Left(dBase.TableDefs(lTbl).Name, 4) = "MSYS" Then '~ indicates a temporary table 'MSYS indicates a system level table Else TableName = dBase.TableDefs(lTbl).Name DoCmd.TransferT...
[ -0.21702177822589874, -0.0261214766651392, 0.7050533294677734, -0.08662149310112, 0.23474253714084625, -0.16709685325622559, 0.4082678258419037, -0.08909878879785538, -0.15114803612232208, -0.7663363814353943, -0.6349421739578247, 0.2557021677494049, -0.4615318179130554, 0.4683467149734497...
'3011': The Microsoft Jet database engine could not find the object "Allowance1#txt'. Make sure the object exists and that you spell its name and the path name correctly. If I debug at this point, TableName is 'Allowance1', as expected. I guess my UnicodeTilde export specification is table specific, so I can't use it...
[ -0.06057804822921753, 0.08513229340314865, 0.21820096671581268, 0.13419480621814728, -0.4130089581012726, -0.10303210467100143, 0.1425638049840927, -0.2587432563304901, -0.06311924010515213, -0.8360199332237244, 0.2269638478755951, 0.4194192588329315, -0.5536906123161316, -0.50398778915405...
Row unicode and tilde delimited, even with a correctly formatted schema.ini. (No, I didn't put it all on one line, that was just a formatting issue with the html on stackoverflow.) ``` [MyTable.txt] CharacterSet = Unicode Format = Delimited(~) ColNameHeader = True NumberDigits = 10 Col1= "Col1" Char Width 10 Col2= "Co...
[ -0.6568785309791565, 0.13043972849845886, 0.6984158754348755, -0.15798476338386536, -0.23469410836696625, 0.4239431321620941, -0.23526620864868164, -0.08935282379388809, -0.27047473192214966, -0.5909664034843445, -0.09501644223928452, 0.373099684715271, -0.3498364984989166, -0.011494050733...
chech this as the select statement created a schema.ini file like this: ``` [MyTable.txt] ColNameHeader=True CharacterSet=1252 Format=CSVDelimited Col1=Col1 Char Width 10 Col2=Col2 Integer Col3=Col3 Char Width 2 ``` My eventual solution was to create my own schema.ini then use the select statement. My Module code lo...
[ -0.17494963109493256, 0.29030051827430725, 0.36268314719200134, -0.2089645266532898, -0.2018706202507019, 0.021181819960474968, 0.05375506728887558, -0.10495563596487045, 0.05262019485235214, -0.5443356037139893, -0.04140723496675491, 0.4723706841468811, -0.22382016479969025, 0.29441532492...
sSectionName As String, _ sTblQryName As String) As Boolean Dim Msg As String On Local
[ -0.26866766810417175, -0.4606235921382904, 0.4056573212146759, -0.055506590753793716, -0.14107613265514374, -0.04027855768799782, 0.15247997641563416, 0.06764122098684311, -0.3447383940219879, -0.35315704345703125, -0.48450443148612976, 0.6425853371620178, -0.2584739029407501, 0.4041464626...
Error GoTo CreateSchemaFile_Err Dim ws As Workspace, db As Database Dim tblDef As TableDef, fldDef As Field Dim i As Integer, Handle As Integer Dim fldName As String, fldDataInfo As String ' ----------------------------------------------- ' Set DAO objects. ...
[ -0.25054723024368286, 0.11588656157255173, 0.2594164311885834, 0.03726457059383392, -0.41595274209976196, 0.36921393871307373, 0.5272663831710815, -0.16602344810962677, -0.18379412591457367, -0.3343556821346283, -0.1861744225025177, 0.5972569584846497, -0.24848972260951996, 0.1016813442111...
Set db = CurrentDb() ' ----------------------------------------------- ' Open schema file for append. ' ----------------------------------------------- Handle = FreeFile Open sPath & "schema.ini" For Output Access Write As #Handle ' ---------------------------------...
[ 0.08600589632987976, -0.2435203492641449, 0.5712867379188538, 0.051498670130968094, -0.4716678559780121, -0.24157460033893585, 0.2531276345252991, -0.503438413143158, 0.2179875671863556, -0.4372645318508148, -0.3566149175167084, 0.39604175090789795, -0.5306711196899414, 0.30753397941589355...
' ----------------------------------------------- Print #Handle, "[" & sSectionName & "]" Print #Handle, "CharacterSet = Unicode" Print #Handle, "Format = Delimited(~)" Print #Handle, "ColNameHeader = " & _ IIf(bIncFldNames, "True", "False") Print #H...
[ -0.5719380974769592, 0.015505644492805004, 0.6151219010353088, -0.05899711698293686, 0.11832210421562195, 0.5679561495780945, 0.029503829777240753, -0.40262529253959656, -0.1258951723575592, -0.3823285400867462, -0.6097830533981323, 0.1963842213153839, -0.30008065700531006, -0.036886438727...
' ----------------------------------------------- ' Get data concerning schema file. ' ----------------------------------------------- Set tblDef = db.TableDefs(sTblQryName) With tblDef For i = 0 To .Fields.Count - 1 Set fldDef = .Fields(i)
[ -0.22368228435516357, -0.08770241588354111, 0.47597336769104004, 0.14693216979503632, -0.19383633136749268, -0.009093595668673515, 0.25531649589538574, -0.7918124198913574, -0.036205317825078964, -0.8333237767219543, -0.11421512812376022, 0.4142071306705475, -0.3045192360877991, 0.13253730...
With fldDef fldName = .Name Select Case .Type Case dbBoolean fldDataInfo = "Bit"
[ 0.28712379932403564, -0.32912904024124146, 0.07713665068149567, -0.013730271719396114, -0.19552679359912872, 0.18728007376194, 0.5577861666679382, -0.3435806930065155, 0.27227431535720825, -0.027318200096488, -0.6787212491035461, 0.5966033935546875, -0.23243774473667145, 0.3514105975627899...
Case dbByte fldDataInfo = "Byte" Case dbInteger fldDataInfo = "Short"
[ -0.05402781814336777, -0.028327977284789085, -0.19628778100013733, 0.18761159479618073, -0.46564018726348877, 0.1753251850605011, 0.11735215783119202, -0.11302561312913895, -0.11695674806833267, 0.22200964391231537, -0.2784642279148102, 0.5085669755935669, -0.12893176078796387, 0.130088776...
Case dbLong fldDataInfo = "Integer" Case dbCurrency fldDataInfo = "Currency"
[ 0.0009864728199318051, -0.17074820399284363, 0.11696621030569077, 0.0033641071058809757, -0.35220953822135925, 0.20313294231891632, -0.01744782365858555, -0.20517031848430634, 0.07021274417638779, 0.2725665271282196, -0.34920960664749146, 0.6544438600540161, -0.07688107341527939, 0.0274653...
Case dbSingle fldDataInfo = "Single" Case dbDouble fldDataInfo = "Double"
[ -0.061865221709012985, -0.032103393226861954, 0.044154584407806396, -0.18160974979400635, -0.6840944290161133, 0.22614337503910065, 0.3872212767601013, -0.25574415922164917, -0.20685990154743195, -0.07093396782875061, -0.3873215615749359, 0.644677996635437, -0.4300263524055481, -0.02913604...
Case dbDate fldDataInfo = "Date" Case dbText fldDataInfo = "Char Width " & Format$(.Size)
[ 0.3734341263771057, -0.40238475799560547, 0.2926355302333832, -0.05257153511047363, -0.24353167414665222, 0.0122966468334198, 0.18464064598083496, -0.2604558765888214, 0.23638662695884705, -0.20869998633861542, -0.18113678693771362, 0.2892182469367981, 0.08197982609272003, 0.31836828589439...
Case dbLongBinary fldDataInfo = "OLE" Case dbMemo fldDataInfo = "LongChar" Case
[ -0.3097865879535675, -0.1329476535320282, 0.19476762413978577, -0.2910992205142975, -0.3543055057525635, 0.03973565623164177, 0.09059738367795944, -0.09238763898611069, 0.06320212036371231, 0.1809711754322052, -0.2675352394580841, 0.6368384957313538, -0.3086433708667755, 0.2602023780345917...
dbGUID fldDataInfo = "Char Width 16" End Select Print #Handle, "Col" & Format$(i + 1) _
[ 0.0020962231792509556, 0.11339139193296432, 0.4559256136417389, -0.33020448684692383, -0.1462346464395523, 0.14876684546470642, 0.31938064098358154, -0.40072378516197205, -0.00989801250398159, -0.28026488423347473, -0.165619894862175, 0.6118389964103699, -0.22690922021865845, 0.16623236238...
& "= """ & fldName & """" & Space$(1); "" _ & fldDataInfo End With Next i End With CreateSchemaFile
[ 0.3957461714744568, 0.009015633724629879, 0.8662163019180298, 0.11659333109855652, 0.1611490547657013, -0.13533161580562592, 0.10719747841358185, -0.06375467777252197, -0.1904495358467102, -0.8291203379631042, -0.3952336013317108, 0.2313574105501175, 0.013105185702443123, 0.458970576524734...
= True CreateSchemaFile_End: Close Handle Exit Function CreateSchemaFile_Err: Msg = "Error #: " & Format$(Err.Number) & vbCrLf Msg = Msg & Err.Description MsgBox Msg Resume CreateSchemaFile_End End Function Public Function ExportATable(TableName As String) Di...
[ -0.056334011256694794, -0.08989358693361282, 1.0244596004486084, -0.35951337218284607, 0.1850215494632721, 0.14051343500614166, 0.041003428399562836, -0.017948361113667488, -0.1696447730064392, -0.297252357006073, -0.36820876598358154, 0.593878984451294, -0.3286169767379761, 0.217312201857...
".txt" CreateSchemaFile True, ThePath, FileName, TableName On Error GoTo IgnoreDeleteFileErrors FileSystem.Kill ThePath + FileName IgnoreDeleteFileErrors: TheQuery = "SELECT * INTO [Text;DATABASE=" + ThePath + "].[" + FileName + "] FROM [" + TableName + "]" Set Exporter = CurrentDb.CreateQueryDef("", TheQuery) Exporter...
[ 0.28468966484069824, -0.17918235063552856, 0.7672206163406372, -0.12966325879096985, -0.09611912071704865, -0.0013246523449197412, 0.5440975427627563, -0.3317505717277527, -0.365077406167984, -0.4205716550350189, -0.2724635899066925, 0.43102216720581055, -0.7642398476600647, 0.548675239086...
If Left(dBase.TableDefs(lTbl).Name, 1) = "~" Or _ Left(dBase.TableDefs(lTbl).Name, 4) = "MSYS" Then '~ indicates a temporary table 'MSYS indicates a system level table Else TableName = dBase.TableDefs(lTbl).Name ExportATable (TableName) End If
[ -0.5549584031105042, -0.2535996437072754, 0.8289539217948914, -0.29219090938568115, 0.29004785418510437, 0.03103574737906456, -0.09894587099552155, -0.0021635026205331087, -0.2743456959724426, -0.6808373332023621, -0.8454569578170776, 0.10417767614126205, -0.23734703660011292, 0.4608531296...
Next lTbl Set dBase = Nothing End Sub ``` I make no claims that this is elegant, but it works. Also note that the stackoverflow code formatter doesn't like my \", so it doesn't pretty print my code very nicely.
[ -0.27539217472076416, -0.275438517332077, 0.7708749771118164, -0.10419701784849167, -0.01377912424504757, -0.5458588600158691, 0.4582735002040863, -0.2352466732263565, -0.03914918005466461, -0.8058112859725952, -0.10755659639835358, 0.655296802520752, -0.2213306427001953, -0.24917517602443...
I need to get the "td" element of a table. I do not have the ability to add a mouseover or onclick event to the "td" element, so I need to add them with JQUERY. I need JQUERY to add the mouseover and onclick event to the all "td" elements in the table. Thats what I need, maybe someone can help me out? ``` $(function(...
[ 0.23645766079425812, -0.05877981707453728, 0.4384622871875763, 0.02709670178592205, 0.07362192869186401, -0.053668778389692307, 0.2178276926279068, -0.1412123441696167, -0.04085054248571396, -0.5874797701835632, 0.12877874076366425, 0.8996316194534302, -0.14171625673770905, 0.0828882530331...
I thought people would be working on little code projects together, but I don't see them, so here's an easy one: Code that validates a valid US Zip Code. I know there are ZIP code databases out there, but there are still uses, like web pages, quick validation, and also the fact that zip codes keep getting issued, so y...
[ 0.6311988830566406, 0.06574016809463501, 0.20437316596508026, 0.15953725576400757, -0.11293293535709381, -0.16460157930850983, 0.10039475560188293, -0.02843739651143551, -0.33080416917800903, -0.30210569500923157, 0.3283344805240631, 0.318825364112854, -0.21889743208885193, -0.124488689005...
see how many languages we can get here. **Javascript Regex Literal**: US Zip Codes: `/(^\d{5}$)|(^\d{5}-\d{4}$)/` ``` var isValidZip = /(^\d{5}$)|(^\d{5}-\d{4}$)/.test("90210"); ``` Some countries use [Postal Codes](http://en.wikipedia.org/wiki/Postal_code), which would fail this pattern.
[ 0.3120022416114807, 0.09400100260972977, -0.14712730050086975, -0.025035208091139793, 0.06442365795373917, 0.03422950208187103, 0.567348062992096, 0.25992950797080994, -0.03852224349975586, -0.6125865578651428, -0.43430277705192566, 0.06131738796830177, -0.5041921138763428, -0.177605435252...
I have a Selenium test case that enters dates into a date selector made up of three pulldowns (year, month, and day). ``` select validity_Y label=2008 select validity_M label=08 select validity_D label=08 ``` This part gets repeated a lot throughout the test case. I'd like to reduce it by defining my custom action ...
[ 0.24165354669094086, 0.146595761179924, 0.3694322407245636, -0.07533781230449677, -0.07562578469514847, 0.1764095276594162, 0.03766836225986481, -0.046609677374362946, 0.06846470385789871, -0.6340814232826233, 0.06661968678236008, 0.12691861391067505, -0.10771062225103378, 0.12179814279079...
UI thread). If you are in another thread, you are required to arrange for the call to change the GUI to be made in the UI thread. In .NET, the way to do that is to call Invoke (synchronous) or BeginInvoke (asynchronous). The equivalent Java Swing call is invokeLater() -- there are similar functions in almost every GUI ...
[ 0.10274845361709595, -0.5358577370643616, 0.5560746192932129, 0.06534337252378464, -0.17454710602760315, -0.1045016422867775, -0.13679659366607666, -0.23732198774814606, 0.032722342759370804, -0.7871490120887756, -0.13818678259849548, 0.46667712926864624, -0.2804093062877655, 0.00887112226...
objects created on UI thread can manipulate the UI - i.e the objects have thread affinity with the UI thread. Since, you are trying to update UI (show a notification) from a different thread than the UI thread. So in your worker thread define a delegate and make FormMain listen to this event. In the event handler (def...
[ 0.2152024209499359, -0.33037373423576355, 0.2930043339729309, 0.4104979932308197, -0.16164006292819977, -0.31148427724838257, 0.2218487709760666, -0.39150354266166687, -0.2305884212255478, -0.7855692505836487, -0.11238701641559601, 0.2603721022605896, -0.43008336424827576, 0.27850812673568...
often leads to unpredictable results. A common invalid thread activity is a call on the wrong thread that accesses the control's Handle property. Set CheckForIllegalCrossThreadCalls to true to find and diagnose this thread activity more easily while debugging. Note that illegal cross-thread calls will always raise an e...
[ 0.15425246953964233, 0.02907436713576317, 0.36424708366394043, 0.1261337250471115, 0.06216512247920036, -0.28312695026397705, 0.6773390769958496, -0.23157593607902527, -0.26025405526161194, -0.3941543698310852, -0.21858373284339905, 0.49854710698127747, -0.4130377173423767, 0.4055474996566...
I've been wondering whether there is a good "git export" solution that creates a copy of a tree without the `.git` repository directory. There are at least three methods I know of: 1. `git clone` followed by removing the `.git` repository directory. 2. [`git checkout-index`](http://www.kernel.org/pub/software/scm/git/...
[ 0.07200482487678528, 0.19958850741386414, 0.3208501636981964, -0.20344573259353638, -0.028355415910482407, -0.06898106634616852, 0.40511682629585266, 0.005062404554337263, -0.06220618635416031, -0.6324807405471802, -0.23102642595767975, 0.3237045705318451, -0.418305903673172, 0.17792874574...
one to `svn export` might be option 1, because both require the target directory to be empty first. But option 2 seems even better, assuming I can figure out what it means to read a tree into the index. Probably the simplest way to achieve this is with [`git archive`](https://git-scm.com/docs/git-archive). If you reall...
[ -0.07731171697378159, -0.26566624641418457, 0.15031714737415314, -0.1743220090866089, -0.14956650137901306, -0.13344018161296844, -0.08620468527078629, 0.12216272205114365, -0.5672615766525269, -0.5894735455513, -0.31052064895629883, 0.6501217484474182, -0.5282382369041443, -0.189859703183...
archive: ``` git archive --format zip --output /full/path/to/zipfile.zip master ``` [`git help archive`](https://git-scm.com/docs/git-archive) for more details, it's quite flexible. --- Be aware that even though the archive will not contain the .git directory, it will, however, contain other hidden git-specific f...
[ 0.3992122709751129, 0.3005557656288147, 0.33667951822280884, 0.23048613965511322, 0.020426128059625626, -0.4264122247695923, 0.23679964244365692, -0.10067365318536758, -0.4382757842540741, -0.6605620384216309, -0.5311621427536011, 0.24831272661685944, -0.36501044034957886, 0.09038085490465...
For my server app, I need to check if an ip address is in our blacklist. What is the most efficient way of comparing ip addresses? Would converting the IP address to integer and comparing them efficient? Depends what language you're using, but an IP address is usually stored as a 32-bit unsigned integer, at least at ...
[ 0.17572978138923645, 0.24346818029880524, 0.1722981333732605, 0.3110799193382263, -0.1135169118642807, 0.04196835309267044, 0.2977714240550995, 0.022970907390117645, -0.20716306567192078, -0.9489558339118958, 0.07539184391498566, 0.3562583923339844, -0.19621576368808746, 0.0369808822870254...
problems then you can use a profiler to see where the bottlenecks are. Edit: to clarify, IPv4 addresses are stored as 32-bit integers, plus a netmask (which is not necessary for IP address comparisons). If you're using the newer and currently more rare IPv6, then the addresses will be 128 bits long.
[ -0.1466975063085556, 0.07579365372657776, 0.28185954689979553, 0.2462921142578125, 0.06590376794338226, -0.0900406539440155, 0.09925499558448792, 0.02262982539832592, -0.535797119140625, -0.613972544670105, -0.2477460354566574, 0.4822111427783966, -0.39911600947380066, 0.06263181567192078,...
Maybe this is a dumb question, but I have the following behavior in Visual Studio 2005 while designing forms: 1 - Drop a control onto the form (suppose it's a Label, just for discussion) 2 - Drag that label to a specific location (aligning w/other controls, whatever) 3 - Release the mouse button 4 - The control is ...
[ 0.2953205704689026, -0.09575679153203964, 0.6215760707855225, -0.005473338533192873, -0.02705700881779194, -0.13644425570964813, 0.20820759236812592, -0.5211790204048157, -0.1466173380613327, -0.4371259808540344, 0.23183082044124603, 0.27822351455688477, -0.4416246712207794, -0.05105377733...
this behavior anywhere else in VS2005, nor do I observe it in the OS in general. I am running on Windows XP inside a Parallels Virtual Machine, hosted on OS X. I don't think there is a driver problem though, b/c as I already said, no other apps demonstrate anything like this. Please tell me there is some tiny checkbo...
[ 0.17918561398983002, 0.0024883768055588007, 0.5127917528152466, 0.2940608263015747, 0.05370158702135086, -0.15666504204273224, 0.5679579973220825, 0.43965402245521545, -0.3444187045097351, -0.77354496717453, 0.18985044956207275, 0.5648632645606995, -0.33781135082244873, 0.22182628512382507...
high performance packet switching application it's not likely to be a performance bottleneck. Avoid premature optimization - design your program for testability and scalability and if you have performance problems then you can use a profiler to see where the bottlenecks are. Edit: to clarify, IPv4 addresses are stored...
[ -0.06578154861927032, -0.17482556402683258, 0.2481115609407425, 0.41612115502357483, -0.022674812003970146, -0.30195578932762146, -0.07752487063407898, -0.0962923914194107, -0.24320365488529205, -0.5549201369285583, -0.2956033945083618, 0.482791006565094, -0.43279585242271423, -0.172112137...
I have an Open Source app and I have it working on Windows, Linux and Macintosh ( it's in C++ and built with gcc ). I've only tested it on a few different flavors of Linux so I don't know if it compiles and runs on all different Linux versions. Is there a place where I can upload my code and have it tested across a bun...
[ 0.7727698087692261, 0.30845966935157776, 0.06970785558223724, 0.34357020258903503, -0.0075347935780882835, -0.21057704091072083, 0.07204309850931168, 0.2292175590991974, -0.01568535715341568, -0.6625180244445801, 0.1815740019083023, 0.5464959740638733, -0.20543089509010315, 0.3139636516571...
the latest code and then email me back any compile errors generated and what the OS was that it had a problem with. I would be happy to just know it compiles as it is a GUI based app so I wouldn't expect it to actually be ran and tested. There are a few options but there don't appear to be many (any?) free services l...
[ 0.6263220310211182, 0.04088637977838516, 0.2192380130290985, 0.3924854099750519, 0.17281141877174377, -0.3401399254798889, 0.3041028380393982, 0.31012091040611267, -0.04341095685958862, -0.5473511219024658, 0.10637778788805008, 0.7507480382919312, -0.013143644668161869, 0.00385875930078327...
look into some of the following. If you're inclined to pay for a service or roll your own, then some of these links may be useful. If you're just looking for a free open source compile/build farm that covers multiple platforms it looks like you're pretty much out of luck. ### [OpenSuse Build Service](http://en.opensus...
[ 0.695216953754425, 0.03842966631054878, -0.0543486550450325, -0.12888726592063904, -0.5820059180259705, -0.0778941735625267, 0.031543534249067307, 0.01676979660987854, -0.4496110677719116, -0.37962183356285095, 0.16014717519283295, 0.47724205255508423, -0.23250389099121094, 0.1305650919675...
can take advantage of, though I don't see what OSes are in the compile farm (contains at least Linux and Solaris based on the page notes). ### [BuildLocker](http://www.projectlocker.com/site/build_locker) *BuildLocker is a Web-based continuous integration solution for Java and .NET projects. BuildLocker is a virtual ...
[ 0.48246151208877563, 0.12959198653697968, 0.052884507924318314, 0.147726371884346, 0.2917790710926056, -0.08945337682962418, 0.15078121423721313, 0.15832442045211792, -0.29986676573753357, -0.5933095216751099, 0.012633565813302994, 0.42407992482185364, -0.12057878822088242, 0.0337671041488...
test fails.* ### [CruiseControl](http://cruisecontrol.sourceforge.net/) *CruiseControl is a framework for a continuous build process. It includes, but is not limited to, plugins for email notification, Ant, and various source control tools. A web interface is provided to view the details of the current and previous b...
[ 0.17934127151966095, -0.14621374011039734, 0.4302269518375397, 0.01451446209102869, 0.4455471336841583, -0.018886351957917213, 0.49320363998413086, -0.3756466209888458, -0.24389228224754333, -0.27669256925582886, 0.12961558997631073, 0.5970646142959595, 0.02645212598145008, -0.124811679124...
is in Ruby, it might be worth keeping an eye on RunCodeRun. ### [CI Feature Matrix](http://confluence.public.thoughtworks.org/display/CC/CI+Feature+Matrix) *There are many Continuous Integration systems available. This page is an attempt to keep an unbiased comparison of as many as possible of them.*
[ 0.775953471660614, -0.12435618788003922, 0.0910431444644928, 0.012415485456585884, -0.10477810353040695, -0.14827682077884674, -0.0099905701354146, 0.12316802889108658, -0.2776363790035248, -0.6802399754524231, -0.04912213981151581, 0.19966456294059753, -0.51097172498703, -0.05837533250451...
I have a (from what I can tell) perfectly working Linux setup (Ubuntu 8.04) where all tools (nslookup, curl, wget, firefox, etc) are able to resolve addresses. Yet, the following code fails: ``` $s = new IO::Socket::INET( PeerAddr => 'stackoverflow.com', PeerPort => 80, Proto => 'tcp', ); die "Error: $!\n...
[ -0.06919840723276138, 0.048589322715997696, 0.7439076900482178, -0.08088401705026627, -0.01888355240225792, -0.08054279536008835, 0.4793359041213989, -0.23517164587974548, -0.16381004452705383, -0.8708376884460449, -0.16172346472740173, 0.6353508830070496, -0.3592821955680847, 0.2771966457...
to use this behavior (in fact I stumbled uppon the problem by trying to debug why LWP wasn't working for me) * Running the script doesn't emit DNS requests (so it doesn't even try to resolve the name). Verified with Wireshark From a quick look, the following code from IO::Socket::INET ``` sub _get_addr { my($sock,...
[ 0.36550256609916687, -0.18740861117839813, 0.42899638414382935, -0.10969408601522446, 0.08410969376564026, -0.25174838304519653, 0.7129754424095154, -0.3529587984085083, -0.29684504866600037, -0.5356359481811523, 0.10010477900505066, 0.49355655908584595, -0.3116013705730438, 0.298935145139...
$h = inet_aton($addr_str); push(@addr, $h) if defined $h; } @addr; } ``` suggests (if you look at the caller of this code) the work-around of adding `MultiHomed => 1,` to your code. Without that work-around, the above code appears to try to call `inet_aton("hostname.com")` using the inet\_aton() from...
[ -0.041496068239212036, 0.1749705672264099, 0.47254741191864014, -0.19812653958797455, -0.04881776496767998, -0.015314958989620209, 0.34448277950286865, -0.1337912678718567, -0.4359762668609619, -0.6075900793075562, -0.20664875209331512, 0.6949805021286011, -0.45672091841697693, 0.460021257...
struct in_addr ip_address; struct hostent * phe; if (phe = gethostbyname(host)) { Copy( phe->h_addr, &ip_address, phe->h_length, char ); } else { ip_address.s_addr = inet_addr(host); } ST(0) = sv_newmortal(); if(ip_address.s_addr
[ -0.23415221273899078, 0.12358474731445312, 0.9959940314292908, -0.3592168986797333, -0.11838343739509583, 0.14477477967739105, 0.39118072390556335, -0.3762139678001404, -0.11841759830713272, -0.7817015647888184, -0.44124412536621094, 0.34506648778915405, -0.2287682145833969, 0.429344862699...
!= INADDR_NONE) { sv_setpvn( ST(0), (char *)&ip_address, sizeof ip_address ); } } ``` It appears that the Perl gethostbyname() works better than the C gethostbyname() for you.
[ -0.024256262928247452, -0.16979415714740753, 0.6274939775466919, -0.3228965401649475, 0.05818581581115723, -0.26719680428504944, 0.4933120310306549, -0.2941775619983673, -0.23596234619617462, -0.5015662312507629, -0.3884357810020447, 0.8140952587127686, -0.22189803421497345, 0.144994542002...