text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
application from sun](http://java.sun.com/developer/technicalArticles/J2EE/petstore/), and looking for 'petstore download' on Google, you can find stuff that seems interesting (to me anyway, i didn't give it a look :-), like this [spring petstore](http://code.google.com/p/spring-petstore/), "an Ajax based application w...
[ 0.24252581596374512, -0.322835236787796, -0.04412384703755379, 0.15504543483257294, 0.11025211215019226, 0.03891529515385628, 0.03842488303780556, 0.15038257837295532, -0.20173291862010956, -0.29224762320518494, -0.15923912823200226, 0.14671294391155243, -0.2442338913679123, -0.22777025401...
I've got a small git repo setup with the only real purpose to be able to develop locally on several machines (work, home, laptop). Thus I have one branch and I commit/push once I leave a computer, pull once I sit down at the next. Has worked fine, up to now that is. Now when I pull on my 'live test' machine, I get the ...
[ -0.10062813013792038, 0.051062602549791336, 0.40243107080459595, -0.16587765514850616, -0.14535747468471527, 0.5503238439559937, 0.45345526933670044, -0.33298400044441223, -0.4817330241203308, -0.6627917885780334, -0.006493656896054745, 0.30584681034088135, -0.16133061051368713, 0.16929724...
the net the only real answer I could find was the following: <http://marc.info/?l=git&m=122720741928774&w=2> which basically states that this is a bogus error that's on top of the pile and thus says nothing about what really is wrong. Where do I go from here to find out what is wrong? Edit: Removed the local copy and...
[ 0.5057379007339478, -0.39967799186706543, 0.2159600704908371, 0.19176295399665833, -0.32951560616493225, -0.13001714646816254, 0.5335591435432434, 0.23818254470825195, -0.16927258670330048, -0.616391122341156, 0.041205987334251404, 0.5030661225318909, -0.5552443861961365, 0.147698879241943...
no problem.
[ 0.3323603868484497, 0.12698543071746826, 0.43743178248405457, 0.1646474450826645, 0.1459866613149643, 0.07334037870168686, 0.3438515365123749, 0.5404200553894043, 0.018180785700678825, -0.3446296453475952, 0.312201589345932, 0.515767514705658, 0.11788342148065567, -0.30673137307167053, -...
As you know the format is like: ``` "YYYY-MM-DDTHH:NN:SS.ZZZ+XX:XX" (i.e. "2009-03-24T16:24:32.057+01:00") ``` I have to do it in a ActionScript3 class but any source will be appreciated, thanks. Have a look at this related question: [Actionscript 3 - Fastest way to parse yyyy-mm-dd hh:mm:ss to a Date object?](htt...
[ -0.02298685349524021, -0.08153803646564484, 0.7626949548721313, 0.12581822276115417, -0.20840193331241608, 0.0926985964179039, 0.17903129756450653, -0.04719780758023262, -0.35956713557243347, -0.393931120634079, -0.3202076256275177, 0.26216983795166016, -0.09042710065841675, -0.07215636223...
I have a table with 3 fields like this: ``` ProfessorID StudentID Mark P1 S1 9 P1 S2 8 P1 S3 10 P2
[ -0.30794987082481384, 0.38648462295532227, 0.46750012040138245, -0.23711687326431274, -0.24556760489940643, 0.15317481756210327, -0.08203985542058945, -0.2110273241996765, -0.37856411933898926, -0.3671216368675232, -0.32716500759124756, 0.1594349443912506, 0.05293688923120499, 0.2706404924...
S1 7 P2 S2 2 P2 S3 4 P3 S4
[ -0.5791179537773132, -0.015223868191242218, 0.44886884093284607, -0.3258572518825531, -0.5150629878044128, 0.6120972037315369, 0.7182626128196716, -0.1866218000650406, -0.47581183910369873, 0.03701262176036835, -0.29408589005470276, -0.12876954674720764, 0.0842965841293335, 0.1085010170936...
5 P4 S1 6 ``` A professor can teach many students, and vice versa, a student can learn from many professor. When a student learns from a professor, he gets his mark. My problem is showing list of professors who teach at least 2 students, and 2 students who get best marks from those professor...
[ -0.14072957634925842, 0.26253971457481384, 0.29585301876068115, -0.014260644093155861, -0.22079944610595703, -0.057857319712638855, 0.02991194650530815, -0.45073238015174866, -0.20491206645965576, -0.5783586502075195, -0.48281508684158325, 0.2693983316421509, 0.32474878430366516, 0.3858141...
S1 9 P1 S3 10 P2 S1 7 P2 S3
[ -0.6307496428489685, -0.1314442753791809, 0.4187743365764618, -0.2740464210510254, -0.4072709083557129, 0.6897404789924622, 0.5031102299690247, 0.08243314176797867, -0.42897337675094604, -0.14415177702903748, -0.39008980989456177, -0.11552485078573227, 0.01933327317237854, -0.0795448794960...
4 ``` I've tried some solutions but they don't work **right**. How can I do this correctly? ``` declare @table table (ProfessorID nvarchar(2), StudentID nvarchar(2),Mark int) insert into @table select 'P1', 'S1', 9 union all select 'P1', 'S2', 8 union all select 'P1', 'S3', 10 union all select 'P2', 'S1', 7 union ...
[ -0.25166651606559753, 0.1761314570903778, 0.7326112389564514, -0.0067114438861608505, 0.20606733858585358, 0.5156291127204895, -0.09090858697891235, -0.4642808139324188, -0.1594882309436798, -0.5176185965538025, -0.5747710466384888, 0.2234126180410385, -0.06816667318344116, 0.3038793504238...
I can't seem to get rid of these seemingly random compiles errors in one of my classes. I get about 4 errors such as: ``` multiple definition of `draw_line(float, float, float, float)' ``` and ``` multiple definition of `near_far_clip(float, float, float*, float*, float*, float*, float*, float*)' ``` that are fla...
[ 0.06220501661300659, 0.1430884152650833, 0.33531495928764343, 0.05630253627896309, 0.13844959437847137, 0.02354125864803791, 0.08662626892328262, 0.16302339732646942, -0.3121383786201477, -0.4678271412849426, 0.45954105257987976, 0.3747525215148926, -0.15014095604419708, 0.3782517313957214...
about the error changed... I don't have duplicate methods. I only have one `#include` of lines.h and there is an `#ifndef` clause at the beginning. All these errors appear in the .cpp file. Any ideas what it could be? Alright, I got the code up: * [lines.cpp](http://code.bulix.org/wrmmiw-70109) * [ThreeD.cpp](http:...
[ 0.42116373777389526, 0.24006055295467377, 0.46649691462516785, 0.04578037187457085, -0.1729380190372467, 0.13685356080532074, 0.6426357626914978, -0.18634071946144104, -0.334249347448349, -0.4928683340549469, 0.24940021336078644, 0.09723106771707535, -0.41074585914611816, 0.104418434202671...
file because it wasn't solving anything or helping. I believe it will be easier to find the mistake without it. Here is the requested [main.cpp file](http://code.bulix.org/9img79-70113) (there is no .h). --- I remade the lines.h file due to and I'm still receiving the: ``` multiple definition of `draw_line(float, f...
[ -0.003335569053888321, -0.2565869092941284, 0.8746569156646729, 0.04956233501434326, 0.1603565663099289, 0.18440689146518707, 0.018696963787078857, 0.15697471797466278, -0.2092616707086563, -0.6616032719612122, -0.06319743394851685, 0.12595205008983612, -0.230298712849617, 0.24230705201625...
[lines.cpp](http://code.bulix.org/en2iiq-70124) * [ThreeD.cpp](http://code.bulix.org/ec1l4c-70125) * [ThreeD.h](http://code.bulix.org/cm691a-70117) I messed around with labeling some the global variables extern, but it didn't seem to affect anything. Why do you #include lines.cpp in ThreeD.cpp? This is very unusual. ...
[ 0.08763238787651062, -0.2511824667453766, 0.7695576548576355, 0.08305005729198456, -0.31114163994789124, 0.29221901297569275, 0.2314702272415161, -0.1513058841228485, -0.24254299700260162, -0.5531021952629089, 0.03956726938486099, -0.007449878845363855, -0.5676964521408081, -0.126650571823...
*, float *, float *, float *, float *, float *); ``` I suspect that these two declarations are the only thing that should be in lines.h.
[ 0.3636309802532196, 0.34364357590675354, 0.6157094836235046, -0.03696638345718384, -0.3284332752227783, -0.030785908922553062, 0.00633908761665225, -0.13574819266796112, -0.05297175794839859, -0.3600897490978241, -0.3224768042564392, 0.08557599037885666, -0.17120176553726196, -0.0447161644...
I'm writing a WPF client app, using Linq to Sql with Sql Compact edition. The db is relatively small (3MB) and read-only. Bottom line is that The performance are not as good as I hoped them to be, and I'm looking for tips and practical ways to increase that. More facts: The schema contains around a dozen of entities ...
[ 0.36405327916145325, 0.027520151808857918, 0.5621552467346191, 0.12236978858709335, -0.23259040713310242, -0.1359843611717224, 0.3687039315700531, -0.41171401739120483, -0.1460535228252411, -0.4527490735054016, 0.14633795619010925, 0.5044587254524231, -0.10783931612968445, -0.2590862810611...
the DataContext got no choice but to build the objects graph in memory. I can provide additional information, if needed. EDIT: 1. As I mentioned the db is read-only so DataContext is not tracking changes. 2. We are making use of static queries on reoccurring queries. The problem is when the application is initializi...
[ 0.1264067441225052, -0.011361910961568356, 0.15561208128929138, 0.3030744194984436, -0.4900316596031189, -0.1392202526330948, 0.3151945173740387, -0.03212398663163185, -0.13408415019512177, -0.4724697172641754, 0.107594333589077, 0.6496289968490601, -0.12794288992881775, -0.136019349098205...
loading of the object graph) and instead they will be populated on demand. However, you'll need to be focused in your design to support this (otherwise you will simply move the performance bottleneck to become overly "chatty" with regard to SQL statements being executed against the SQL CE database. The DataContext ca...
[ 0.021879000589251518, -0.18792682886123657, 0.4610290229320526, 0.33466845750808716, -0.11907385289669037, -0.007996512576937675, 0.16364707052707672, 0.027392324060201645, -0.238111674785614, -0.6842028498649597, -0.10855162888765335, 0.42095649242401123, -0.4384218454360962, -0.063913971...
Are the Oracle ODP.NET libraries redistributable? As in, can I simply include the Oracle.DataAccess.dll with my application & reference it without getting into any legal hot water? The download license for the ODAC on OTN is fairly incomprehesible legalese that doesn't make it clear whether I can or can't include the d...
[ 0.29669153690338135, 0.01775941252708435, -0.0830097571015358, 0.34402722120285034, -0.18702881038188934, -0.38271430134773254, -0.23893095552921295, 0.151780903339386, -0.4062178432941437, -0.3915615379810333, -0.167729452252388, 0.4196832478046417, -0.2745000123977661, 0.1676529049873352...
on the Oracle website](http://www.oracle.com/technology/oramag/oracle/08-nov/o68odpnet.html). I have used the Instant Client for Java and Perl applications with no problems.
[ 0.17930923402309418, 0.10323231667280197, -0.015480444766581059, -0.13957221806049347, -0.18124724924564362, -0.3140440583229065, 0.11183928698301315, 0.4432786703109741, -0.19385795295238495, -0.38347941637039185, -0.2205987572669983, 0.7254731059074402, -0.18055018782615662, -0.176494419...
I want to use jQuery to detect clicks on a bunch of radio buttons. They have all been assigned a css class, foobar, to detect them. Easy, right? Still, this code doesn't work: ``` $("input.foobar").click(function () { alert(this.id); } ); ``` What wrong with the code above? Does `this.id` really return the id ...
[ 0.4036312997341156, 0.321108877658844, 0.41061314940452576, 0.0851583257317543, -0.14801378548145294, -0.5007715821266174, 0.6697294116020203, 0.002418945776298642, -0.27032119035720825, -0.46619564294815063, -0.05497615784406662, 0.8570812344551086, -0.3560021221637726, 0.0935849249362945...
it should work. But maybe the html would help, to understand where the problem lies. And to answer your second question, yes, 'this.id' is valid javascript.
[ 0.47838887572288513, 0.20094797015190125, -0.10260433703660965, 0.39328041672706604, 0.0863129049539566, -0.32653120160102844, 0.15804757177829742, 0.045539021492004395, -0.007577870972454548, -0.3732253909111023, 0.017106378450989723, 0.3726426064968109, -0.3685588240623474, -0.3585868477...
Any recomendations on a method to convert .doc, .ppt, and .xls to plain text on linux using python? Really any method of conversion would be useful. I have already looked at using Open Office but, I would like a solution that does not require having to install Open Office. I'd go for the command line-solution (and then...
[ 0.15986481308937073, 0.03671388328075409, 0.2572740912437439, -0.042070381343364716, -0.26764607429504395, -0.08813829720020294, 0.22032450139522552, -0.00533175328746438, -0.020949915051460266, -0.8211517930030823, -0.3357233703136444, 0.7635272741317749, -0.2519036829471588, -0.258064806...
search your distributions repositories... On ubuntu for example catdoc is just one fast apt-get away.
[ 0.14457450807094574, -0.5408033728599548, 0.008056298829615116, 0.566140353679657, -0.21159712970256805, -0.2584698796272278, -0.059484850615262985, 0.4012276530265808, -0.29835355281829834, -0.5959684252738953, -0.12518218159675598, 0.19925302267074585, -0.5423940420150757, -0.08102121204...
What are the possible solutions for finding the current active language which appears on the Windows language bar ? `CultureInfo.CurrentCulture`. This has information on the language and culture. If you just want the language name, try `CultureInfo.CurrentCulture.ThreeLetterISOLanguageName`.
[ 0.13084928691387177, 0.07616991549730301, 0.23675282299518585, 0.006931595038622618, 0.10316148400306702, 0.044541262090206146, 0.43883270025253296, 0.7810633778572083, -0.2531155049800873, -0.5023745894432068, -0.24037249386310577, 0.5099055171012878, -0.08215496689081192, 0.1657092869281...
When I first started working with object-oriented programming languages, I was taught the following rule: > When declaring a field in a class, don't initialize it yet. Do that in the constructor. An example in C#: ```cs public class Test { private List<String> l; public Test() { l = new List<Str...
[ 0.4832301735877991, 0.2015892118215561, -0.37656015157699585, -0.3532222509384155, -0.2657233476638794, -0.33033010363578796, 0.3033623993396759, -0.052099257707595825, -0.12929947674274445, -0.38065019249916077, -0.020791733637452126, 0.31198447942733765, -0.22328023612499237, 0.188816621...
believe this can be done in all OO languages). So why *is* this done? Is it security? Properties? * If you have multiple constructors, you might want to initialize a field to different values * When you initialize the field in the constructor, there can be no confusion over when exactly it is initialized in regard to ...
[ 0.43291720747947693, -0.012740536592900753, -0.16554071009159088, 0.39738500118255615, -0.19918334484100342, -0.1730424016714096, 0.3331826627254486, -0.23876452445983887, -0.14696425199508667, -0.3275744616985321, 0.0026393048465251923, 0.5494664311408997, -0.04158470779657364, 0.07020003...
I'm looking for a simple-to-learn php framework for an application that is being migrated from Access to PHP. The application has lots of forms (sometimes 50+ fields per page), and lots of the fields are inter-dependent (ie, you change one field, it updates some other fields or options). Is there any good php framewor...
[ 0.48377329111099243, 0.13751325011253357, 0.06232199817895889, 0.37799063324928284, -0.1525842249393463, -0.14108438789844513, 0.05403125658631325, -0.0604461207985878, -0.1703464537858963, -0.5586181879043579, 0.2268623560667038, 0.4849449396133423, -0.07243035733699799, 0.070338822901248...
least for now). The most important thing is really the ease of form design and fields correlation (ex: two list boxes where the values of the second depends of the selected value of the first) - I know most ajax libs have some support for this but I would like it out of the box. --- edit: As a clarification, the mos...
[ 0.33358660340309143, 0.11244826018810272, 0.15999117493629456, 0.22342152893543243, -0.4687380790710449, -0.7009143829345703, 0.2534838020801544, 0.004846021067351103, -0.0457930788397789, -0.6562682390213013, 0.017507249489426613, 0.6391226053237915, -0.0519416518509388, -0.31915980577468...
layer whith cascade deletes etc. If an ORM layer doesn't get in the way and simplifies the implementation so that's ok but i doubt this will ever be true. While I'll certainly add my support behind the excellent and simple to learn [CodeIgniter](http://codeigniter.com/) I fear everyone so far is missing the elephant in...
[ 0.26250919699668884, -0.003392611164599657, 0.6105871796607971, 0.0785614401102066, -0.37773987650871277, -0.3984110355377197, 0.6231276988983154, -0.2751419246196747, -0.19750405848026276, -0.7846236824989319, -0.11140493303537369, 0.36642202734947205, -0.17978528141975403, -0.22603183984...
you're looking for power and flexibilty I'd select Zend. If you're looking for straight simplicity I'd choose CodeIgniter.
[ 0.3882308006286621, -0.3672088384628296, -0.09813416749238968, 0.20651400089263916, -0.39338934421539307, 0.20263974368572235, 0.2680255174636841, -0.2771926820278168, -0.21441039443016052, -0.5922520160675049, 0.010693906806409359, 0.7697446346282959, -0.25239819288253784, -0.142074465751...
I am working on some legacy code and have come across something that I'm not sure of. We have a `class y` that is declared inside of another `class x`. `Class y` is only ever used inside of `class x` but my question is why wouldn't you create a separate class file and put `class y` in there instead of declaring it insi...
[ 0.6216285228729248, 0.20273534953594208, -0.2417033612728119, 0.24816733598709106, -0.007360189221799374, -0.2862197458744049, 0.06270602345466614, 0.3495330810546875, -0.2806585431098938, -0.4200047254562378, 0.17778918147087097, 0.09042172133922577, -0.1857338845729828, 0.855947494506835...
to separate `class y` out into it's own file. ``` namespace Library { public class x { // methods, properties, local members of class x class y { // methods, properties, local members of class y } } } ``` You create an inner class because it is only ever used within the sc...
[ -0.007374212611466646, -0.025512829422950745, -0.08598142117261887, 0.21282093226909637, 0.15287284553050995, -0.03375557065010071, 0.11196690052747726, -0.029336199164390564, -0.12964005768299103, -0.6384850740432739, -0.3057602345943451, 0.3398527204990387, -0.46338412165641785, 0.077449...
be privy to implementation details of class x that are not meant to be known to the public.
[ 0.48485270142555237, 0.2940181791782379, -0.479838103055954, 0.3719990849494934, -0.06873267143964767, -0.7466718554496765, 0.4226877987384796, 0.4536547064781189, 0.06250941008329391, -0.5139760375022888, -0.49249202013015747, 0.5029316544532776, 0.24575047194957733, -0.4071173071861267, ...
Is it possible to create an 'Entity' that will be an abstraction of a relationship between tables that live in two different tables, in two different databases, on two different machines, and even possibly using two different dbms? For example, if I have a SQL Server db on one machine that stores all my customers, and...
[ 0.14040477573871613, 0.09482748806476593, 0.2730598747730255, 0.42388999462127686, 0.18090926110744476, -0.07325783371925354, -0.11336980015039444, -0.14080139994621277, -0.30258864164352417, -0.12982326745986938, 0.16632726788520813, 0.3670145571231842, -0.15065714716911316, 0.08050485700...
far as I know. Unless you create a view and bind EF to the view, but then it would be read-only (obviously)?
[ 0.6270964741706848, 0.0004778912989422679, 0.3552776575088501, 0.16805575788021088, -0.0802941769361496, -0.18004508316516876, 0.021668866276741028, 0.24036811292171478, -0.005907163489609957, -0.3016281723976135, -0.04650038108229637, 0.5097647309303284, -0.22686292231082916, 0.0953747257...
We have a database currently sitting on 15000 RPM drives that is simply a logging database and we want to move it to 10000 RPM drives. While we can easily detach the database, move the files and reattach, that would cause a minor outage that we're trying to avoid. So we're considering using `DBCC ShrinkFile with EMPTY...
[ 0.4440462589263916, 0.13537423312664032, 0.2933422327041626, 0.4211348295211792, 0.19539940357208252, -0.14205053448677063, -0.17392843961715698, -0.2244187891483307, -0.14483176171779633, -0.5406243801116943, 0.1880071461200714, 0.7880008220672607, -0.17750665545463562, 0.336654394865036,...
and had mixed luck. I've had instances where the file couldn't be emptied because it was the primary file in the primary filegroup, but I've also had instances where it's worked completely fine. It does hold huge locks in the database while it's working, though. If you're trying to do it on a live production system th...
[ 0.6031490564346313, 0.21496088802814484, -0.14916570484638214, 0.24475333094596863, 0.24784749746322632, 0.0011737067252397537, 0.16927437484264374, 0.10001129657030106, -0.5082810521125793, 0.033294323831796646, 0.11558344960212708, 0.6532469391822815, 0.290168434381485, -0.08021874725818...
i'm trying to add a new headerrow to a Gridview. This row should appear below the original headerrow. As far as I know I have two events to choose from: 1.) Gridview\_RowDataBound 2.) Gridview\_RowCreated Option 1 is not an option as the grid is not binding the data on each postback. Option 2 does not work as expect...
[ 0.10609818249940872, -0.12059066444635391, 0.6593600511550903, -0.05264437943696976, -0.13148903846740723, -0.08026563376188278, 0.1554776281118393, -0.1772199124097824, -0.06527154892683029, -0.9507566690444946, -0.1448279768228531, 0.5722532868385315, -0.20476603507995605, 0.246960386633...
GridView1.RowDataBound If e.Row.RowType = DataControlRowType.Header Then Dim r As New GridViewRow(-1, -1, DataControlRowType.Header, DataControlRowState.Normal) For Each c As DataControlField In CType(sender, GridView).Columns Dim nc As New TableCell nc.Text = c.AccessibleHe...
[ -0.07987440377473831, -0.39091411232948303, 0.9240930676460266, 0.12324205785989761, -0.14920388162136078, 0.09243477135896683, 0.027063453570008278, -0.27785179018974304, -0.3427487015724182, -0.7139188051223755, -0.3095029890537262, 0.25589078664779663, -0.5023451447486877, 0.26283568143...
Next Dim t As Table = GridView1.InnerTable t.Controls.Add(r) End If End Sub ``` Since this is a custom GridView, why don't you consider overriding the CreateChildControls method? I.e (sorry, C#): ``` protected override void CreateChildControls() { base.CreateChildControls(); if (HeaderR...
[ 0.17144040763378143, -0.6793894171714783, 0.7732477784156799, -0.1763325184583664, 0.24033793807029724, -0.21034647524356842, 0.4015274941921234, -0.34185799956321716, 0.021138666197657585, -0.7211782932281494, -0.16850154101848602, 0.6667854189872742, -0.22110582888126373, 0.3077169358730...
{ TableCell cell = new TableCell(); cell.Text = Columns[i].AccessibleHeaderText; cell.ForeColor = System.Drawing.Color.Black; cell.BackColor = System.Drawing.Color.Cornsilk; header.Cells.Add(cell); } Table table = (Table)Controls[0]; t...
[ -0.46730491518974304, 0.03947777673602104, 0.6188412308692932, -0.24343442916870117, 0.09953072667121887, 0.24247440695762634, 0.10745048522949219, -0.4454721510410309, -0.361520916223526, -0.5088220238685608, -0.3728538453578949, 0.007147263735532761, -0.7094696760177612, 0.21125471591949...
} } ``` **UPDATE** As was mentioned by Ropstah, the sniplet above does not work with pagination on. I moved the code to a PrepareControlHierarchy and now it works gracefully with pagination, selection, and sorting. ``` protected override void PrepareControlHierarchy() { if (ShowHeader && HeaderRow != null) {...
[ 0.00945423822849989, -0.12257108837366104, 0.42798879742622375, -0.19039620459079742, 0.13486003875732422, 0.06414348632097244, 0.05145970359444618, -0.4232798218727112, 0.050070054829120636, -0.9190768003463745, -0.014151186682283878, 0.2306777536869049, -0.19368845224380493, 0.1786882132...
= new TableCell(); cell.Text = Columns[i].AccessibleHeaderText; cell.ForeColor = System.Drawing.Color.Black; cell.BackColor = System.Drawing.Color.Cornsilk; header.Cells.Add(cell); } Table table = (Table)Controls[0]; table.Rows.AddAt(1, header); ...
[ -0.3562149405479431, -0.06648766249418259, 0.7221934199333191, -0.21931691467761993, 0.18973727524280548, 0.11362770944833755, 0.1964177042245865, -0.42091530561447144, -0.4088907241821289, -0.5121756792068481, -0.34825628995895386, 0.1538594663143158, -0.7008882164955139, 0.11097276210784...
beginning just as well //but I prefer it here, since base does some style manipulation on existing columns base.PrepareControlHierarchy(); } ```
[ 0.16713447868824005, 0.3288070559501648, 0.5084806084632874, -0.3196702301502228, -0.09530393779277802, -0.012321561574935913, 0.17920294404029846, -0.08880823850631714, 0.039246249943971634, -0.8028873801231384, -0.1566815972328186, 0.3568403422832489, -0.16529542207717896, -0.05147827044...
I have hardly ever noticed a python program that uses else in a for loop. I recently used it to perform an action based on the loop variable condition while exiting; as it is in the scope. What is the pythonic way to use an else in a for loop? Are there any notable use cases? And, yea. I dislike using break statemen...
[ 0.1370132565498352, -0.08317232131958008, -0.20651042461395264, -0.14295250177383423, -0.20723235607147217, -0.08156795054674149, 0.18077775835990906, -0.09234616905450821, -0.437999963760376, -0.24476467072963715, 0.2529798746109009, 0.42065006494522095, -0.4969829022884369, -0.0600987188...
ever version. What could be more pythonic than PyPy? Look at what I discovered starting at line 284 in ctypes\_configure/configure.py: ``` for i in range(0, info['size'] - csize + 1, info['align']): if layout[i:i+csize] == [None] * csize: layout_addfield(layout, i, ctype, '_alignment') ...
[ 0.06540696322917938, -0.3779100775718689, 0.726934552192688, 0.16853274405002594, 0.2283429503440857, -0.009938285686075687, 0.1715468317270279, 0.0333339162170887, -0.0030584672931581736, -0.7521409392356873, -0.19438067078590393, 0.8090190291404724, -0.4412935972213745, -0.33059692382812...
info['align'],)) ``` And here, from line 425 in pypy/annotation/annrpython.py ([clicky](http://codespeak.net/pypy/dist/pypy/annotation/annrpython.py)) ``` if cell.is_constant(): return Constant(cell.const) else: for v in known_variables: if self.bindings[v] is cell: return v else: ...
[ -0.0422062873840332, -0.019092313945293427, 0.3368515074253082, -0.29428282380104065, 0.08175282180309296, 0.09579470008611679, 0.08872981369495392, -0.5568006038665771, -0.34883710741996765, -0.6312393546104431, -0.212128147482872, 0.2937884032726288, -0.6579290628433228, 0.19743946194648...
for desc in pbc1.descriptions: if desc in pbc2.descriptions: break else: s.const = False # no common desc in the two sets return s ``` A non-one-liner
[ -0.23372609913349152, 0.22098232805728912, 0.13692878186702728, -0.00945331808179617, -0.17363516986370087, -0.12338677048683167, 0.36261311173439026, -0.25696128606796265, 0.03647353872656822, -0.696815550327301, -0.4893413186073303, 0.49530354142189026, -0.2640344500541687, 0.18983106315...
in pypy/annotation/classdef.py, starting at line 176: ``` def add_source_for_attribute(self, attr, source): """Adds information about a constant source for an attribute. """ for cdef in self.getmro(): if attr in cdef.attrs: # the Attribute() exists already for this class (or a parent) ...
[ 0.023082619532942772, -0.12164467573165894, 0.5730447769165039, -0.23372015357017517, 0.14264598488807678, -0.0773681178689003, 0.0972335934638977, -0.20996828377246857, -0.2044539749622345, -0.3722747564315796, -0.4775139093399048, 0.5145739912986755, -0.2303941249847412, -0.0369418710470...
attrdef.add_constant_source(self, source) # we should reflow from all the reader's position, # but as an optimization we try to see if the attribute # has really been generalized if attrdef.s_value != s_prev_value: attrdef.mutated(cdef) # reflow from all
[ 0.0986766666173935, -0.1017334908246994, 0.8458226323127747, 0.01009740587323904, -0.32783713936805725, -0.05701500549912453, 0.26106634736061096, -0.26472824811935425, 0.0022634314373135567, -0.37178853154182434, -0.06590767949819565, 0.7430804967880249, -0.33578917384147644, 0.0434615463...
read positions return else: # remember the source in self.attr_sources sources = self.attr_sources.setdefault(attr, []) sources.append(source) # register the source in any Attribute found in subclasses, # to restore invariant (III) # NB. add_constant_sourc...
[ 0.013425233773887157, 0.017420200631022453, 0.2972426116466522, 0.012407890520989895, 0.007965737022459507, 0.05340849608182907, 0.3693110942840576, -0.27970442175865173, -0.058714140206575394, -0.6654334664344788, -0.04295212775468826, 0.6284485459327698, -0.23257987201213837, 0.251029789...
# right thing will happen to them because self.attr_sources # was already updated if not source.instance_level: for subdef in self.getallsubdefs(): if attr in subdef.attrs: attrdef = subdef.attrs[attr]
[ -0.179277703166008, -0.08516370505094528, 0.7644630074501038, -0.016928644850850105, 0.2204320877790451, 0.004184524994343519, 0.6074321269989014, -0.4823665916919708, -0.24328796565532684, -0.4797268211841583, -0.07096332311630249, 0.7427688241004944, -0.21057842671871185, -0.130054906010...
s_prev_value = attrdef.s_value attrdef.add_constant_source(self, source) if attrdef.s_value != s_prev_value: attrdef.mutated(subdef) # reflow from all read positions ``` Later in the same file, starting at line 307,
[ 0.1832730770111084, -0.1339196413755417, 0.7959223389625549, -0.48601818084716797, -0.07441321760416031, 0.12945960462093353, 0.374921590089798, -0.21061846613883972, -0.25026974081993103, -0.42797672748565674, -0.3573152720928192, 0.4550653100013733, -0.31581562757492065, 0.35785236954689...
an example with an illuminating comment: ``` def generalize_attr(self, attr, s_value=None): # if the attribute exists in a superclass, generalize there, # as imposed by invariant (I) for clsdef in self.getmro(): if attr in clsdef.attrs: clsdef._generalize_attr(attr, s_value) ...
[ -0.5175364017486572, -0.26576223969459534, 0.15420563519001007, -0.14395616948604584, -0.27775290608406067, -0.3025002181529999, 0.4001283645629883, -0.27558785676956177, -0.1408928781747818, -0.3897160291671753, -0.5079430937767029, 0.5692791938781738, -0.4160522222518921, 0.2289901673793...
I had a geek fight with someone over what the strategy pattern really is and I need a expert to settle the matter. We both agree that the strategy pattern allows for the guts of a class (e.g., the behavior) to be swapped out at runtime while maintaining the same interface. However, her contention is that "For [the alg...
[ 0.24371986091136932, -0.46200838685035706, -0.5260193347930908, 0.37515711784362793, 0.2679133713245392, 0.06845108419656754, 0.12266527861356735, -0.09147485345602036, -0.14204633235931396, -0.2888917326927185, 0.20813493430614471, 0.41061410307884216, -0.2245810329914093, -0.291385054588...
intent (and classification) of the strategy pattern. Her code example with comments: --- By your definition, any subclasses of a class would be a strategy. They have the same method definitions (signatures), and are therefore interchangeable. ``` Interface Strategy { DoArithmatic(int[] a) } Class A : Strategy ...
[ 0.2863371670246124, -0.5433235764503479, 0.1841566413640976, -0.24734275043010712, -0.05032225325703621, 0.11763659119606018, 0.32114219665527344, -0.6028470396995544, -0.0997486412525177, -0.8487948775291443, -0.07315061241388321, 0.7651800513267517, -0.3417365550994873, -0.17797940969467...
temp += a[i] } Class C : Strategy public int DoArithmatic(int[]a) { int temp = 0; for(int i =0; i< a.length; i++) temp -= a; } int[] a = { 1,2,3 } ClassA.DoArithmatic(a) = 6 ClassB.DoArithmatic(a) = 6 ClassC.DoArithmatic(a) = -6//This one is not interchangeable ``` The first two are strategies. ...
[ 0.15525491535663605, -0.2776828408241272, -0.12191258370876312, -0.0890347808599472, -0.135273277759552, 0.17920243740081787, 0.3607604503631592, -0.7417798638343811, -0.06392305344343185, -0.5365276336669922, -0.21621669828891754, 0.6251246333122253, -0.2721192240715027, -0.31264483928680...
You can't use a "higher" abstraction term just to make them a strategy. These all do "MATH" but they are not all doing the "same" thing in a different way. That is the essence of a strategy. So, who's right? You sir are correct and your coworker needs to read the GoF. "The strategy pattern lets the algorithms vary i...
[ 0.5172030329704285, -0.14502237737178802, 0.0829218178987503, 0.2508867681026459, 0.2680894732475281, 0.01957211084663868, 0.18481020629405975, -0.21907879412174225, -0.23876769840717316, -0.9845324754714966, 0.0037521168123930693, 0.5513373017311096, -0.3454433083534241, -0.29701450467109...
Does anyone know if there is a shortcut key for viewing the selected object (in the text editor) in the object browser? I am sure there was one, but I cannot find it, or anything that seems to work in the key bindings dialog. eg: string test = string.empty; ``` if (string.isnullorempty(test)) { ...
[ 0.14514777064323425, 0.18921951949596405, 0.40541207790374756, -0.0782909020781517, 0.23943103849887848, 0.03002460114657879, 0.40421411395072937, 0.13031458854675293, 0.004372635390609503, -0.6532302498817444, -0.18127071857452393, 0.8248236775398254, -0.09468095749616623, 0.0910200700163...
browser if it's in a referenced assembly.
[ -0.13959643244743347, 0.08613210171461105, 0.32202595472335815, -0.012068248353898525, -0.3373166620731354, -0.28446251153945923, -0.08335952460765839, 0.5117982029914856, -0.3966797888278961, -1.1472856998443604, -0.42086780071258545, 0.16426196694374084, 0.052193932235240936, 0.001733902...
I have a developer tool that I want to run from an internal site. It scans source code of a project and stores the information in a DB. I want user to be able to go to the site, chose their project, and hit run. I don't want the code to be uploaded to the site because the projects can be large. I want to be able to r...
[ 0.5524047017097473, 0.008426210843026638, -0.04833776503801346, -0.03027595952153206, -0.3414759635925293, -0.17810682952404022, 0.2476373165845871, -0.21044671535491943, -0.08674711734056473, -0.7618199586868286, -0.029892573133111, 0.4054074287414551, -0.2646971344947815, 0.0307724922895...
I am looking for similar functionality to [TrendMicro's Housecall](http://housecall.trendmicro.com/). I want the scan to run locally, but the result to be displayed in the web page You could use a ClickOnce project (winform/wpf) - essentially a regular client app, deployed via a web-server. At the client, it can do wha...
[ 0.5611733198165894, -0.30230867862701416, 1.1424521207809448, -0.1691260188817978, -0.07296349853277206, -0.11947329342365265, 0.14670926332473755, -0.23947973549365997, -0.2744041979312897, -0.7222977876663208, 0.19548410177230835, 0.4186879098415375, -0.2332363724708557, -0.0332090221345...
web-server to do all the db work on its behalf.
[ 0.20357103645801544, 0.13867723941802979, 0.09642763435840607, 0.14028772711753845, -0.6423076391220093, 0.049860503524541855, 0.03171412646770477, -0.06096038967370987, 0.1766420602798462, -0.26155856251716614, -0.25509753823280334, 0.3016311228275299, -0.03236548602581024, 0.161954089999...
I'm still learning some of the PL/SQL differences, so this may be an easy question, but... here goes. I have a cursor which grabs a bunch of records with multiple fields. I then run two separate SELECT statements in a LOOP from the cursor results to grab some distances and calculate those distances. These work perfect...
[ 0.44538119435310364, 0.28802135586738586, 0.35667088627815247, 0.3470173478126526, 0.061984382569789886, 0.27244171500205994, -0.2567696273326874, -0.41416803002357483, -0.38776901364326477, -0.7033463716506958, 0.2874235212802887, 0.2858071029186249, -0.03312702104449272, 0.17308364808559...
= test_kilo where lc = rm.lc AND ld = rm.ld AND le = rm.le AND lf = rm.lf AND code = rm.code AND lcode
[ 0.09925499558448792, -0.22787027060985565, 0.2876827120780945, 0.10866091400384903, 0.36663520336151123, 0.4753527343273163, -0.24894334375858307, -0.5538886785507202, -0.17305250465869904, -0.2526644170284271, -0.07920420914888382, 0.31490060687065125, -0.044370923191308975, 0.02963317185...
= rm.lcode and user_id = username; ``` My problem is that this rarely updating because rm.lf and rm.le have NULL values in the database. How can I combat this, and create the correct update. If I'm understanding you correctly, you want to match `lf` with `rm.lf`, including when they're both null? If that's wh...
[ 0.30454427003860474, 0.253484308719635, 0.5049871206283569, -0.3457939028739929, 0.2614966630935669, 0.10460756719112396, 0.3055121600627899, -0.568569540977478, -0.05096009001135826, -0.46923553943634033, -0.06566651910543442, 0.8095713257789612, -0.28781917691230774, 0.05128873884677887,...
if they're both null.
[ 0.2369409054517746, 0.016796624287962914, -0.45541226863861084, 0.3296241760253906, -0.062052901834249496, 0.10638922452926636, 0.38354724645614624, 0.29098719358444214, 0.04306936264038086, -0.5514196753501892, -0.04285135120153427, -0.2873784005641937, -0.2976832091808319, 0.027515267953...
I login in my system and set a cookie this way: ``` setcookie("hello",true,time()+3600); ``` Then I look in the cookie manager of firefox and see that my cookie is set. When I restart my browser and restart I see in the cookie manager that the cookie is ther but this code: ``` if(isset($_COOKIE['hello'])){ ...
[ 0.03128722682595253, 0.3934909403324127, 0.5656930208206177, -0.15265215933322906, 0.30034035444259644, -0.26763322949409485, 0.6043310165405273, 0.04597826302051544, -0.28598156571388245, -0.8049017190933228, -0.38666611909866333, 0.67002272605896, -0.40171948075294495, 0.2265463471412658...
memory once it's no longer reachable. If you want to free it explicitly you can use the managed Marshal.CoTaskFree() routine. In general the interop marshaler and CLR abide by COM conventions for freeing memory; the recipient is responsible for freeing memory. So the CLR/Interop marshaler will usually take care of fre...
[ -0.10226314514875412, 0.08284197002649307, 0.3872867226600647, 0.26258522272109985, 0.3703458309173584, -0.1888951063156128, -0.00853391271084547, -0.23769396543502808, -0.4101369082927704, -0.5753800272941589, -0.5367023944854736, 0.5748872756958008, -0.15772745013237, 0.08633206784725189...
from the rules that govern native C++. > > > Confusion can arise if you anticipate > native C++ behavior (no memory > freeing) when using platform invoke, > which automatically frees memory for > pointers. For example, calling the > following unmanaged method from a C++ > DLL does not automatically free any > ...
[ 0.036482810974121094, -0.13449157774448395, 0.05719178542494774, 0.23689408600330353, -0.03233310952782631, -0.18468712270259857, 0.27743053436279297, -0.35417091846466064, -0.30795958638191223, -0.7276780009269714, -0.3456164300441742, 0.6418207287788391, -0.4184189438819885, 0.0242378469...
appropriate method.
[ -0.005769290961325169, 0.2153690904378891, -0.06057394668459892, 0.199098140001297, 0.2748010754585266, -0.04862559959292412, 0.4131172299385071, -0.3411579728126526, 0.1300164759159088, -0.5517573356628418, -0.182933509349823, 0.570914089679718, -0.006299416068941355, -0.31831011176109314...
I have a lot of session state when programming - shell windows, ides, virtual machines, web browsers. This is all lost when the session ends i.e. when logging out or rebooting. Is there a way to save the desktop state on MS Windows XP and have it restored later? Ideally the solution would allow multiple sessions to be...
[ 0.3720681965351105, 0.34395748376846313, 0.30333223938941956, 0.21009573340415955, -0.013051898218691349, -0.2436334639787674, 0.7867679595947266, 0.1950622797012329, -0.31590527296066284, -0.6119293570518494, -0.08234947174787521, 0.7691332697868347, -0.16469690203666687, 0.35051375627517...
I can't find a way to do it on MS Windows. There's an application that does exactly that - [Twinsplay](http://www.twinsplay.com). It can save and load multiple window sessions. It also gives you "split screen" capabilities.
[ 0.41997474431991577, -0.37957412004470825, 0.344480037689209, 0.35291793942451477, -0.06780087202787399, -0.12165367603302002, 0.38584229350090027, 0.481034517288208, -0.20887327194213867, -1.1048030853271484, 0.20780381560325623, 0.5846761465072632, -0.31393155455589294, 0.232978940010070...
How can I check if a client disconnected through Winsock in C++? [Beej's Network Programming Guide](http://beej.us/guide/bgnet/) if you call recv in blocking mode and it returns with 0 bytes read, the socket has disconnected, else it wait for bytes to be received. Look in this [FAQ 2.12](http://tangentsoft.net/wskfa...
[ 0.18376430869102478, -0.13758991658687592, 0.336881548166275, 0.061384208500385284, -0.12576916813850403, -0.08508618921041489, 0.5046259760856628, -0.14844468235969543, -0.3881371319293976, -0.5917988419532776, -0.01943860948085785, 0.4921727776527405, -0.2747499346733093, 0.2612240314483...
this point, it should be checked whether the // socket is part of a set. if( FD_ISSET( s, &fdread )) { // A read event has occurred on socket s } } ```
[ 0.17104539275169373, 0.17996598780155182, 0.109012171626091, -0.20909790694713593, 0.14496265351772308, -0.17866790294647217, 0.21315760910511017, 0.1675286591053009, -0.0341067910194397, -0.5228686332702637, -0.39890816807746887, 0.4010664224624634, -0.14200937747955322, -0.01363581232726...
I'm looking for a list numeric type initalization identifiers for both C# and VB.Net. for example: ``` Dim x = 1D 'Decimal' Dim y = 1.0 'initializes to float' ``` Here's the list: The identifiers are case-insensitive **VB.Net** ``` Int32 = 1, I Double = 1.0, R, 1.0e5 Decimal = D Single = F, ! Int16 = S UI...
[ 0.17061014473438263, 0.22086162865161896, 0.4569968581199646, -0.17617949843406677, -0.21067944169044495, 0.3246733546257019, -0.015455803833901882, -0.2863655388355255, -0.14676706492900848, -0.46685725450515747, -0.23070992529392242, 0.22360262274742126, -0.18908701837062836, 0.240016564...
integer literal is > determined as follows: > > > * If the literal has no suffix, it has the first of these types in which > its value can be represented: int, > uint, long, ulong. > * If the literal is suffixed by U or u, it has the first of these types in > which its value can be represented: > uint, ulong. > ...
[ -0.3909972012042999, 0.07029172033071518, 0.439336359500885, -0.21665945649147034, -0.19652502238750458, 0.5669993758201599, -0.0355336032807827, 0.007846680469810963, -0.159626305103302, -0.15295284986495972, 0.07953125238418579, 0.514447033405304, -0.3828457295894623, -0.3356647789478302...
Ul, uL, ul, LU, Lu, lU, or lu, it is > of type ulong. [Section 2.4.4.3](http://msdn.microsoft.com/en-us/library/aa691085(VS.71).aspx) elaborates on this for Real types: > If no real type suffix is specified, > the type of the real literal is > double. Otherwise, the real type > suffix determines the type of the r...
[ -0.0005459411768242717, -0.24355313181877136, 0.4928327798843384, -0.10221370309591293, -0.43618473410606384, 0.5293173789978027, -0.19259881973266602, -0.08032752573490143, 0.11160562932491302, -0.44146984815597534, -0.3673744201660156, 0.18542388081550598, -0.5264033079147339, -0.0466685...
the > literals 1d, 1.5d, 1e10d, and 123.456D > are all of type double. > * A real literal suffixed by M or m is of type decimal. For example, the > literals 1m, 1.5m, 1e10m, and 123.456M > are all of type decimal. This literal > is converted to a decimal value by > taking the exact value, and, if > necessary, ro...
[ 0.10956856608390808, 0.01902613788843155, 0.25261154770851135, 0.12996163964271545, -0.09121272712945938, 0.15896524488925934, 0.18102504312992096, -0.10442459583282471, 0.19538626074790955, -0.3656221628189087, -0.2828020453453064, 0.4335477948188782, -0.14803574979305267, 0.1156201064586...
the sign and scale will be 0). Hence, > the literal 2.900m will be parsed to > form the decimal with sign 0, > coefficient 2900, and scale 3. VB -- Similarly, the VB specification contains details for both [Integer](http://msdn.microsoft.com/en-us/library/aa711649(VS.71).aspx) and [Floating point](http://msdn.micr...
[ -0.04245874285697937, 0.20408689975738525, 0.6783795356750488, 0.042325619608163834, -0.2247992753982544, 0.3237914741039276, 0.01104846689850092, -0.601588785648346, -0.029344432055950165, -0.4077947735786438, -0.0709962546825409, 0.233011394739151, -0.013927493244409561, 0.00419397559016...
I have two SqlDataSource controls on a page. One loads high level data and the other loads more details based on which high level item you choose. It is a part of a large search that has over 900,000 records and I am looking for ways to speed it up. Whether it is options I can add onto the SqlDataSource, things I can d...
[ 0.01747242361307144, -0.06234896183013916, 0.2745372951030731, 0.06420448422431946, -0.1750871241092682, -0.08443356305360794, 0.0798027366399765, 0.12781928479671478, -0.11142314970493317, -0.7141212224960327, 0.3771032989025116, 0.6241042017936707, -0.2149459421634674, 0.4019693434238434...
am doing the following from my this website, <http://mosesofegypt.net/post/2008/02/Building-a-grouping-Grid-with-GridView-and-ASPNET-AJAX-toolkit-CollapsiblePanel.aspx>, but obviously with my data which is over 900,000 records and I am unsure how I can add paging to the second gridview, because right now, it is only on...
[ 0.32698243856430054, 0.12949764728546143, 0.18858438730239868, -0.10530265420675278, -0.12156625837087631, -0.07176829129457474, 0.23763152956962585, -0.1827823668718338, -0.34955084323883057, -0.9641359448432922, 0.37608104944229126, 0.3861430883407593, -0.11264612525701523, 0.08580729365...
Forgive me if this is a slight mis-use of the system, but I'd like fellow StackOverflow users to settle a debate a colleague and I are having. As a general rule, I prefer each separate item of functionality to be encapsulated within a UserControl *even if I know it's only going to be used once*. My colleage will esch...
[ 0.4372990131378174, 0.29312950372695923, 0.25743168592453003, -0.10298566520214081, -0.0018518785946071148, -0.1823948621749878, 0.21158987283706665, 0.09229019284248352, -0.2361949235200882, -0.6001389622688293, 0.06894555687904358, 0.30416595935821533, -0.12845733761787415, 0.19666558504...
it makes for better-organised code, and who knows, you may re-use the functionality at some point in the future. **So who's right?** **Edit** It looks like I may get quite a few responses - my colleague and I have agreed that we'll count up the replies in a day and award the correct answer to whichever argument gets...
[ 0.3084988296031952, 0.1972973495721817, 0.6813819408416748, -0.059446755796670914, -0.460817813873291, 0.11650998890399933, 0.10433471947908401, -0.19512422382831573, -0.321777880191803, -0.4045700132846832, 0.02406649850308895, 0.43019890785217285, 0.128619983792305, -0.14689046144485474,...
organized, I'll always try to create separate user controls. This really makes communication easier to follow. Think SRP.
[ 0.2434617429971695, -0.03801325336098671, 0.22399947047233582, 0.13420388102531433, -0.1477779895067215, -0.19799278676509857, 0.10275573283433914, -0.054242875427007675, -0.40399253368377686, -0.6697953343391418, 0.10106715559959412, 0.3540519177913666, -0.28594970703125, -0.1975364536046...
How do you do it? I sit here and trying to make things simpler for myself and others. But I can't seem to decide what way would be the best. The issue is this: Start with a collection of something from a data context, and then start filtering out on a whole bunch of different criterias. If this, then those or perhaps...
[ 0.6054863333702087, 0.16757668554782867, -0.15478987991809845, 0.19017697870731354, 0.10193533450365067, 0.05517549440264702, 0.2682933807373047, -0.30094584822654724, -0.40144193172454834, -0.3149693012237549, 0.35057175159454346, 0.24194909632205963, -0.26727670431137085, -0.134286493062...
start | x | x / \ x x | | x x \ /
[ -0.03655487298965454, 0.4265390932559967, -0.10836724936962128, -0.3352486193180084, -0.10312478989362717, 0.12461278587579727, 0.28308117389678955, 0.044739317148923874, 0.3313976526260376, -0.6308711767196655, -0.7693838477134705, 0.21515199542045593, -0.5185534954071045, 0.1112410947680...
x / \ x x | | x | | | x x \ / x
[ 0.1002628281712532, 0.36556488275527954, 0.20876768231391907, -0.1838783323764801, -0.04973937198519707, 0.21969881653785706, 0.3113032877445221, 0.25196167826652527, 0.5605090856552124, -0.6432912349700928, -0.5975023508071899, 0.3269370496273041, -0.4390172064304352, 0.14051881432533264,...
| result ``` Where `|` represents `And` and the branches represents `Or`. Because of the `Or` alternative paths I can't use `data.Where(...).Where(...).Where(...)` all the way through. And using things like `Union` and `Concat` have a [tendency to crash](https://stackoverflow.com/questions/650847/linq2sql-hel...
[ -0.20772764086723328, -0.013141997158527374, 0.36065271496772766, -0.06351836770772934, 0.023431438952684402, -0.13519063591957092, 0.19208654761314392, -0.25018051266670227, -0.30680015683174133, -0.46990838646888733, -0.1833413988351822, 0.2916008234024048, -0.26066505908966064, 0.238477...
more simpler. Plan is to create chains of `And`-stuff, and then `Or` them together... kind of... :p Anyways, I just can't decide if these are good ideas or not. I think the road I have started down now, probably can end up with an ok "working environment" for me when I am coding these chains. But I am curious to know ...
[ 1.101959228515625, 0.15972800552845, -0.03325695917010307, 0.3779769837856293, -0.2496008723974228, -0.29441341757774353, 0.21168206632137299, 0.0971812829375267, -0.25933894515037537, -0.42064815759658813, 0.055807244032621384, 0.37008777260780334, -0.3562586009502411, 0.13523750007152557...
by [Predicate Builder](http://www.albahari.com/nutshell/predicatebuilder.aspx). Personally, I've always found it sufficient to mangle the `Expression`s manually - but maybe I'm just odd like that (and besides, I've been playing with the `Expression` API for quite a while). But as long as you have suitable unit tests in...
[ 0.7674160003662109, 0.2544321119785309, 0.0073708053678274155, -0.1229393258690834, -0.3685615658760071, -0.3676193356513977, 0.38415002822875977, -0.28910064697265625, 0.19020389020442963, -0.3682912290096283, -0.23405015468597412, 0.7245519161224365, -0.10740802437067032, 0.1875132620334...
I know how I can debug a remote Java VM with Eclipse, but how can I do it with a Java Web Start program. I have a problem that only occurs in Java Web Start. It must be security related. I need a solution that will work with a current Java VM like 1.6.0\_12. It's quite the same like with any other Java process you wan...
[ 0.3326573073863983, 0.08596781641244888, 0.23422686755657196, -0.03967307135462761, -0.1509736180305481, -0.27574488520622253, 0.29913803935050964, 0.035812392830848694, -0.23124222457408905, -0.7993310689926147, -0.1313401460647583, 0.5123001933097839, -0.4068894684314728, 0.3566906452178...
earlier version via environment variable JAVAWS\_VM\_ARGS. See details [here](http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/troubleshooting.03.06.html).
[ -0.2811109125614166, -0.16895972192287445, 0.1709141880273819, -0.35627269744873047, 0.01918894611299038, -0.048134591430425644, 0.5360767245292664, -0.1735444813966751, -0.5030109882354736, -0.3179996609687805, -0.27605167031288147, 0.4248223602771759, -0.6221550107002258, -0.400022000074...
We have a number of plugin applications that can all run independently but also can run within the same host container. Users can run one single host container or multiple ones with one or many plugins. We have a number of "integration" use cases where people want to either 1. Send data from one plugin to another 2. ...
[ 0.44279706478118896, -0.4135114848613739, -0.021644536405801773, 0.3340566158294678, 0.13568635284900665, -0.21983091533184052, -0.10073307156562805, -0.1372428983449936, -0.15506123006343842, -0.7428388595581055, -0.0986432358622551, 0.4369150698184967, -0.3308846652507782, -0.20668286085...
into another and call the API of one plugin from another 3. create integration plugins that know about the common integration points so each individual plugin is completely standalone and the integration plugin is the only thing that knows about the integration. This was we can ship each individual plugin without any e...
[ 0.2195720076560974, -0.2578185498714447, 0.03971383348107338, 0.10344897955656052, 0.10508405417203903, -0.18588754534721375, -0.04414287582039833, -0.22505789995193481, -0.05580594390630722, -0.7445741891860962, -0.048959556967020035, 0.27395865321159363, -0.3730243146419525, 0.0586945600...
links and documentation do a good job of covering how modules are separate, but can pass data through the common framework.
[ 0.4809524118900299, 0.19760318100452423, 0.17822210490703583, 0.29722344875335693, -0.002586407121270895, -0.35468748211860657, -0.11427783221006393, -0.24228894710540771, -0.4925089180469513, -0.7660947442054749, -0.44817668199539185, 0.16863316297531128, 0.1135878711938858, 0.06743650883...
**I imagine that no, they aren't, because every process has its own memory space, of course.** But how does the whole JVM thing actually work? Is there a separate JVM in a separate process for every Java program that I launch? Do Java programs running in a system share anything at all? Are there differences between OS...
[ 0.5593616366386414, 0.14749789237976074, -0.07068317383527756, 0.11013639718294144, -0.03749671205878258, -0.2615306079387665, 0.09102761000394821, 0.14442701637744904, -0.26523876190185547, -0.439724326133728, 0.04233891889452934, 0.22651627659797668, -0.07622842490673065, 0.2062750160694...
of some implementation? Websites? Books? > In Java, are static class members > shared among programs? A class is defined by its full name and the class loader that loaded it. If the same class is within the same JVM process and the two programs loaded the class through the same class loader then the static members ar...
[ -0.05957948416471481, 0.003774013603106141, -0.3405706286430359, 0.03728042170405388, -0.21800486743450165, -0.005850182380527258, -0.12051160633563995, 0.017869245260953903, -0.5261610150337219, -0.516470730304718, -0.4098181426525116, 0.10927226394414902, -0.550123929977417, -0.004324714...
containers such as tomcat: they load several apps through the same process (the tomcat host process). > But how does the whole JVM thing > actually work? Is there a separate JVM > in a separate process for every Java > program that I launch? Do Java > programs running in a system share > anything at all? Every t...
[ 0.24153544008731842, 0.15470761060714722, 0.0962044969201088, 0.10163271427154541, 0.04996953532099724, 0.02263898029923439, -0.09485745429992676, -0.020179657265543938, -0.40049120783805847, -0.654179036617279, 0.04807882010936737, 0.2312770038843155, -0.5230371952056885, 0.10955329239368...