text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
1 3 Benjamin 2 Table Name - UserRoles UserRoleID Desc 1 Admin 2 Moderator ``` You can see that Users.UserRoleID is a foreign key which points to the primary key UserRoles.UserRoleID The use of foreign keys makes setting up relationships on other tables simple, allowing you to ...
[ -0.28866130113601685, 0.31651708483695984, 0.22777429223060608, -0.006277873180806637, -0.6335263848304749, -0.17726615071296692, 0.24113333225250244, -0.6358940005302429, -0.08194829523563385, -0.40072986483573914, -0.21516062319278717, 0.23019982874393463, -0.4534494876861572, -0.0814936...
b.Desc as [UserRole] FROM Users a INNER JOIN UserRoles b ON a.UserRoleID = b.UserRoleID ``` Output would then be: ``` UserID UserName User Role 1 JohnD Admin 2 CourneyC Admin 3 Benjamin Moderator ```
[ -0.25020578503608704, 0.23904147744178772, 0.28481540083885193, -0.12470139563083649, -0.39536234736442566, 0.16448618471622467, 0.24036355316638947, -0.3215579688549042, -0.06357742846012115, -0.6154534816741943, -0.48409974575042725, 0.5759109258651733, -0.5690794587135315, -0.0908289849...
both seems to be pretty cool which is to be in used in what scenario ? GWT: <http://code.google.com/webtoolkit/> > Faster AJAX than you'd write by hand > > > With Google Web Toolkit (GWT), you > write your AJAX front-end in the Java > programming language which GWT then > cross-compiles into optimized > JavaScr...
[ 0.0984710305929184, 0.30140528082847595, 0.12656544148921967, -0.04329214245080948, -0.5847373008728027, -0.36021098494529724, -0.1323244571685791, 0.09517205506563187, -0.19556432962417603, -0.7570109963417053, 0.17861220240592957, 0.6498704552650452, -0.16287390887737274, -0.482288062572...
help you write javascript. It helps you write the server-side of the application. Django helps you write the HTML pagess (with templates). If the page includes, or relies on Javascript, Django doesn't care very much at all.
[ 0.20915184915065765, 0.25546374917030334, 0.20051486790180206, 0.11274755001068115, -0.3520979881286621, -0.47072359919548035, 0.09020776301622391, 0.1592986136674881, -0.31387612223625183, -0.6258174180984497, 0.12976667284965515, 0.5406104922294617, -0.28613367676734924, -0.3690266609191...
I've heard before that including project and workspace/solution files in source control is generally bad practice anyhow but I wanted to get feedback on the best way to handle this situation. My work has requested I set up a source control service for my department (which i've been asking for since day 1, 3 years ago)...
[ 0.4891076385974884, 0.12389601022005081, 0.4161374270915985, 0.08300939947366714, 0.19130335748195648, -0.37948304414749146, 0.1355651617050171, 0.15416626632213593, -0.35463568568229675, -0.6147727370262146, -0.030264291912317276, 0.4292561411857605, -0.11837898939847946, 0.35434117913246...
"project" files (containing file manifests, build info, etc.) uses absolute paths. This is a real pain if I use c:\myproject and a co-worker uses c:\MaiPrjLolKeke I've heard various arguments against the usage of putting project files under source control anyhow, but then if a new file gets added to the project what's ...
[ 0.5454714298248291, 0.19766803085803986, 0.25748586654663086, 0.038114916533231735, 0.10512858629226685, -0.20296251773834229, 0.6681968569755554, -0.1834777444601059, 0.05400362238287926, -0.8700833916664124, -0.17080549895763397, 0.8012548089027405, -0.1484156996011734, -0.11438767611980...
be up and running immediately. If you can't do that, you're doing something wrong. (Yeah, you may also need to set up the operating system, the database server, the web server, the programming language, and the IDE, first. But once the global infrastructure is already there, you should be able to hit the ground runnin...
[ 0.6741408705711365, 0.017062438651919365, 0.4523329734802246, 0.4246644377708435, 0.33078107237815857, -0.497585266828537, 0.2572968304157257, 0.33883020281791687, -0.15976816415786743, -0.5696691274642944, -0.2159857600927353, 0.6778725981712341, -0.1698860377073288, -0.18857339024543762,...
I'll admit I'm new to xslt and I'm going through various tutorials and documentation as I go, but I have a situation that I'm not sure how to look up the answer for. Basically it is this. I have an xml document that looks like so... ``` <tag1> <tag2> foo </tag2> <tag3> bar </tag3> <tag2> goo ...
[ 0.1323135942220688, 0.4874252378940582, 0.3149077296257019, -0.27971142530441284, -0.12045896798372269, -0.003539338009431958, -0.21052668988704681, -0.3354265093803406, -0.27113786339759827, -0.36017709970474243, -0.0813034400343895, 0.3450162410736084, -0.5092604160308838, 0.092710033059...
"bar" need to be processed together, as do "goo" and "mar". I don't know how to capture that in a construct. That is, I can match tag2 and tag3, but I don't know how to get them in order, together. Any ideas? Here's a straightforward way to do grouping if your source data is already ordered the way you expect: ``` ...
[ 0.2078646421432495, 0.23454034328460693, 0.32056617736816406, -0.27895888686180115, 0.13787494599819183, 0.24238470196723938, -0.08622360974550247, -0.742434561252594, -0.06058494746685028, -0.646030843257904, -0.006847323849797249, 0.4565858542919159, -0.45829591155052185, 0.0526137501001...
use the `following-sibling` search axis to get the next node. This gives you something like: ``` <xsl:template match="*" mode="group"> <xsl:variable name="next" select="following-sibling::*[1]"/> <group> <xsl:copy-of select="."/> <xsl:copy-of select="$next"/> </group> </xsl:template> ``` It's ev...
[ -0.4187615215778351, -0.3622257709503174, 0.4323519766330719, 0.080908864736557, 0.056409068405628204, -0.10859363526105881, 0.07794396579265594, -0.5175058245658875, -0.22384430468082428, -0.6760675311088562, -0.031219327822327614, 0.2355707585811615, -0.41133952140808105, 0.0092925615608...
with: ``` <xsl:variable name="list" select=". | following-sibling::*[position() &lt; $n]"/> ```
[ -0.38330569863319397, -0.12260716408491135, 0.5967159271240234, -0.24517934024333954, 0.05825110524892807, -0.064829982817173, -0.0498744398355484, -0.27498099207878113, -0.23450212180614471, -0.23479677736759186, -0.234517902135849, 0.5978315472602844, -0.2576439380645752, 0.3010162413120...
I have a php script which is executed over a URL. (e.g. www.something.com/myscript?param=xy) When this script is executed in a browser it gives a coded result, a negative or positive number. I want to execute this script from Java code(J2EE) and store that result in some object. I'm trying to use `httpURLConnection`...
[ 0.2588655650615692, 0.2261059582233429, 0.2849911153316498, -0.20755887031555176, -0.22150979936122894, -0.02090476267039776, 0.3753696084022522, 0.08279626071453094, -0.044244397431612015, -0.6307185292243958, -0.10874336957931519, 0.19523410499095917, -0.40419626235961914, 0.512129604816...
URLConnection yc = yahoo.openConnection(); BufferedReader in = new BufferedReader( new InputStreamReader( yc.getInputStream())); String inputLine; while
[ -0.25886523723602295, -0.1579226553440094, 0.5952503681182861, 0.001810624497011304, 0.11261949688196182, 0.2346009463071823, 0.19473671913146973, 0.19088347256183624, 0.09145154803991318, -0.6299444437026978, -0.4719277322292328, 0.22552524507045746, -0.45428740978240967, 0.55540263652801...
((inputLine = in.readLine()) != null) System.out.println(inputLine); in.close(); } } ``` This snippet is from the offical Java tutorial (<http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html>). This should help you.
[ 0.05296655744314194, -0.007079129107296467, 0.5020791292190552, -0.18750032782554626, 0.07270587235689163, -0.3406488001346588, 0.18993236124515533, 0.24003319442272186, -0.1641058474779129, -0.6199796199798584, -0.1365424245595932, 0.43414050340652466, -0.19611933827400208, 0.107020787894...
I want to be able to switch between a UITableView and a standard UIView in a Parent View. Basically I have a UITableView that shows on load displaying a log of information. I want to have a segment control in the header of the Window that when the user taps, transitions to a Graph View which is a standard UIView. The ...
[ 0.4201120138168335, -0.15505090355873108, 0.4955417811870575, 0.012754831463098526, -0.19434316456317902, 0.017004525288939476, 0.05118326097726822, 0.023461489006876945, -0.11309760808944702, -0.7655805945396423, 0.13335660099983215, 0.47912222146987915, -0.022880803793668747, 0.390552461...
could be done? Do you have examples of articles that are too simple? Are these too simple: [devshed](http://www.devshed.com/c/a/Multimedia/Game-Programming-using-SDL-Getting-Started/) or [gpwiki](http://gpwiki.org/index.php/C:SDL_tutorials) ? You might consider studying the topics separately. For example Bruce Eckels...
[ 0.13647381961345673, 0.04925984516739845, -0.3323867619037628, 0.06559857726097107, -0.01977251097559929, -0.13671112060546875, 0.19371262192726135, -0.47967997193336487, -0.15489324927330017, -0.490791380405426, 0.012936286628246307, 0.5625714063644409, 0.31960463523864746, -0.31408464908...
### Exact duplicate: > [Why does one often see “null != variable” instead of “variable != null” in C#?](https://stackoverflow.com/questions/271561/why-does-one-often-see-null-variable-instead-of-variable-null-in-c) I have seen senior developers using syntaxes mentioned in the title. Is there a need for specifying ...
[ 0.04681786522269249, 0.1512497216463089, -0.013249690644443035, 0.026041686534881592, -0.10006456077098846, -0.23445284366607666, 0.16812513768672943, 0.09507826715707779, -0.2981221079826355, -0.2882178723812103, 0.004519275389611721, 0.6795976758003235, -0.4928286671638489, -0.1044960990...
but the better way to fix this is to avoid the constant: ``` if (something) if (!something) ``` If you have developers bringing over idioms like this from other languages without thinking about whether they're appropriate in C#, you should keep an eye for them doing more of the same. If you try to write C# as if it'...
[ 0.38536351919174194, 0.24268333613872528, 0.0022099753841757774, -0.024758590385317802, -0.21077799797058105, -0.33321961760520935, 0.5793780088424683, 0.12213368713855743, -0.4302447736263275, -0.4063011109828949, -0.3091110587120056, 0.6066785454750061, -0.37219205498695374, 0.0498572438...
the error can still occur - but then we're outside the realm of comparing with a constant anyway :) I'd say this crops up incredibly rarely, and isn't worth too much time spent worrying about it.
[ 0.5866509079933167, 0.2839871048927307, 0.1532341092824936, 0.06535235047340393, 0.06334009021520615, 0.2345283329486847, 0.35347121953964233, 0.1834019273519516, -0.010334901511669159, -0.49070003628730774, 0.3585874140262604, 0.5133422613143921, 0.03602895513176918, 0.14170745015144348, ...
And if so, what does it do? I've noticed it in some html written by a former co-worker (so I can't ask the author). I'd guess it was a typo, except that it's in a couple different places in a couple different templates, used as the source attribute for an image. For example: `<IMG height="6" src="ihttp://www.ourdoma...
[ 0.6547938585281372, -0.06023908033967018, 0.16541840136051178, 0.1655290126800537, 0.021761495620012283, 0.009341742843389511, 0.05116827413439751, 0.26101091504096985, -0.20152787864208221, -0.7318267226219177, 0.04043067246675491, 0.018525198101997375, -0.21554496884346008, 0.27027210593...
`i` was previously the leading `i` in `images/f2f3f4.gif`.
[ -0.13712456822395325, 0.046593405306339264, 0.23962949216365814, -0.11237076669931412, -0.4536800682544708, -0.05790024623274803, -0.0717938244342804, -0.013876012526452541, -0.12446166574954987, -0.6636443734169006, -0.28408631682395935, 0.22795917093753815, -0.2320735603570938, 0.0807827...
I want to add logging to the ASP.NET 2.0 web site that I've inherited from a previous developer. The application just spits out exceptions when they occur, and there's no record of financial transactions that have executed. I've been looking at Log4net, which I've used in the past, as well as NLog and BitFactory. Wha...
[ 0.7745321393013, 0.020230544731020927, -0.009144582785665989, 0.13519589602947235, -0.12021587044000626, -0.32700926065444946, 0.03670381009578705, 0.0846676453948021, -0.80253005027771, -0.3905438184738159, 0.33810558915138245, 0.5653973817825317, -0.23255056142807007, -0.0251558218151330...
site? The system that I use in a lot of my ASP.NET applications is [ELMAH](http://www.raboof.com/projects/Elmah/) (Error Logging Modules And Handlers). Don't know if it will offer all of the features you want, but what I really like about it is getting the Yellow Screen of Death and stack trace via email whenever an un...
[ 0.40771692991256714, 0.1274607926607132, -0.14333170652389526, 0.039028290659189224, -0.05544152855873108, -0.5590010285377502, 0.4063529670238495, 0.21553845703601837, -0.526244044303894, -0.5329673886299133, 0.3761850893497467, 0.15035541355609894, -0.2610969543457031, 0.1042330563068389...
I have some code to delete user profiles over the network using a service that runs on the client computers that looks like this: ``` public static void DeleteProfiles() { ConsoleWrapper.WriteLine("We're in DeleteProfiles()"); try { string[] users = GetUsers(); ConsoleWrapper.WriteLine("Us...
[ 0.23288024961948395, -0.014083579182624817, 0.7426430583000183, -0.15897983312606812, 0.3965294063091278, -0.09904412180185318, 0.6109961867332458, -0.10168208181858063, 0.14472167193889618, -0.7420700788497925, -0.20717637240886688, 0.5462772250175476, -0.2324381321668625, 0.4480613470077...
ConsoleWrapper.WriteLine("Null or no user loaded"); return; } DirectoryInfo oInfo = new DirectoryInfo("C:/Users"); if (!oInfo.Exists) oInfo = new DirectoryInfo("C:/Documents and Settings"); ConsoleWrapper.WriteLine("Profile folder gotten."); ConsoleWrapp...
[ -0.2287890762090683, -0.03490210697054863, 0.9821341633796692, -0.30253273248672485, 0.41515442728996277, -0.07226480543613434, 0.15507765114307404, 0.0702843889594078, 0.204932302236557, -0.8262928128242493, -0.6382903456687927, 0.7354793548583984, -0.20321111381053925, 0.4780317544937134...
ConsoleWrapper.WriteLine("\nDirectories to be deleted:"); DirectoryInfo[] SubDirectories = oInfo.GetDirectories(); foreach (DirectoryInfo oSubDir in SubDirectories) { bool match = false; foreach (string user in users) { if (user == null)
[ -0.5306054949760437, -0.028939787298440933, 0.6947476267814636, -0.26103487610816956, 0.4641861915588379, 0.05795760825276375, 0.3209264278411865, -0.031005868688225746, 0.327487587928772, -0.4899980127811432, -0.41534897685050964, 0.7789968848228455, -0.3524925112724304, 0.306178420782089...
continue; if (oSubDir.Name.ToLower() == user.ToLower()) { ConsoleWrapper.WriteLine("Matched: " + oSubDir.FullName); match = true;
[ -0.34470438957214355, -0.15739059448242188, 0.9007338881492615, -0.3323943316936493, 0.8663250207901001, -0.014111340045928955, 0.5421454906463623, -0.20774316787719727, 0.1445566713809967, -0.36216506361961365, -0.7206220030784607, 0.8373588919639587, -0.08634403347969055, 0.2793931663036...
break; } } if (match) continue; try {
[ -0.24681958556175232, -0.2757300138473511, 0.1752500683069229, -0.42538565397262573, 0.4770152270793915, -0.47241368889808655, 0.5998013615608215, -0.03708473592996597, 0.05611885339021683, -0.30959033966064453, -0.6053160429000854, 0.6443087458610535, -0.3860282003879547, 0.05628924816846...
ConsoleWrapper.WriteLine(oSubDir.FullName); DeletePath(oSubDir.FullName); } catch (Exception ex) { ConsoleWrapper.WriteLine(ex.StackTrace); }
[ -0.4336439371109009, -0.11551107466220856, 0.6885069608688354, -0.23117046058177948, 0.3062889873981476, 0.17227262258529663, 0.45666149258613586, -0.08078491687774658, 0.07763896882534027, -0.4212622046470642, -0.4214121103286743, 0.5801524519920349, -0.30624762177467346, 0.21298132836818...
} } catch (Exception dirEx) { ConsoleWrapper.WriteLine(dirEx.Message); } } ``` The WriteLine method from the ConsoleWrapper actually appends data to a txt file, because that's the easiest way I can think of to debug on a different machine. This exact code works when I use it in a command-lin...
[ 0.2816922068595886, 0.12001616507768631, 0.25546741485595703, -0.3566301465034485, 0.4115889370441437, -0.11097123473882675, 0.5125236511230469, 0.14878495037555695, 0.09043025970458984, -0.5432047843933105, -0.056900545954704285, 0.706240713596344, -0.4958803951740265, 0.22830359637737274...
what's going on. All the client computers are exhibiting this problem, but it works well on both my desktop and laptop. What am I doing wrong? For the DeletePath code, see <http://www.vbdotnetforums.com/windows-services/16909-deletedirectory-throws-exception.html#post51470>. I practically lifted it and converted it t...
[ 0.2579077482223511, 0.09439737349748611, 0.7274721264839172, -0.015545854344964027, -0.06292404234409332, -0.1145063042640686, 0.9152596592903137, 0.11006173491477966, -0.48440515995025635, -0.5019978880882263, -0.1161276325583458, 0.656498372554779, -0.22702166438102722, 0.290123134851455...
We have an FBA SharePoint implementation using a .NET Membership database. We would like to use this same database and collection of users for a new application. Has anyone tried this? I know in theory that it should work, but SharePoint can be finicky. I would normally worry a bit too, but it is similar to worrying if...
[ 0.6399329304695129, 0.06639771908521652, 0.029108159244060516, 0.10043525695800781, 0.28828006982803345, -0.4003296494483948, -0.03263889253139496, 0.01997889205813408, -0.020696651190519333, -0.46423089504241943, 0.3931119740009308, 0.40120312571525574, -0.32614609599113464, 0.03334166482...
Does anyone know the legality of using sampled sound clips (specifically spoken words) from movies as part of an iPhone app? If you give it away for free, US law MAY support it as fair use. I'd give it good odds. If you sell it, it is NOT EVER fair use under US law. (Edit - see below) AFAIK, even if you do not live o...
[ 0.9181903004646301, 0.26423656940460205, 0.23316803574562073, 0.34362342953681946, 0.4684782922267914, -0.14307522773742676, 0.0656648501753807, 0.0016739575657993555, -0.24543140828609467, 0.15894442796707153, -0.05457528308033943, 0.4832594096660614, -0.022768709808588028, -0.05811543390...
use, including whether such use is of a commercial nature or is for nonprofit educational purposes; 2. the nature of the copyrighted work; 3. the amount and substantiality of the portion used in relation to the copyrighted work as a whole; and 4. the effect of the use upon the potential market for or value of the copyr...
[ 0.7036291360855103, 0.4084693193435669, 0.32016152143478394, 0.013677786104381084, 0.23309801518917084, -0.3335416316986084, 0.1516101360321045, -0.18745146691799164, -0.20620650053024292, -0.29415276646614075, -0.4135361313819885, 0.6376727819442749, -0.08374647051095963, 0.17961129546165...
massive damages and an injunction against selling your product. Even if you win, it'll be a long fight, and likely expensive (even if you do eventually get court costs paid by the rights holder). Thus, while it may not be true that it's not ever fair use, in any case such as this, I act as though it is true. Allowing ...
[ 0.6591687202453613, 0.36259976029396057, 0.2358269840478897, 0.1748201996088028, 0.3199571371078491, -0.434455931186676, -0.04447035863995552, -0.15230020880699158, -0.21393448114395142, 0.10445784777402878, 0.16219602525234222, 0.7020323276519775, 0.18220342695713043, 0.4184969961643219, ...
movie and your product in the mind of the user, linking their existing opinions of the movie to your product. It substantially enhances your product, allowing it to stimulate another sense group. The odds of getting pegged for infringement may be very low, depending on your app's visibility. The odds of defending fair...
[ 0.9708791971206665, 0.14587344229221344, 0.674548864364624, 0.39236828684806824, 0.25891587138175964, -0.2357039749622345, -0.3298145532608032, -0.42021748423576355, -0.12939046323299408, -0.3409057855606079, 0.019089998677372932, 1.0868710279464722, 0.15504607558250427, 0.1215940862894058...
``` <ProgressBar Foreground="Red" Background="Transparent" Value="{Binding NumFailed, Mode=OneWay}" Minimum="0" Maximum="{Binding NumTubes, Mode=OneWay, Converter={x:Static wpftools:DebuggingConverter.Instance}, ConverterParameter=Failedprogressbar}" Flow...
[ -0.17199155688285828, -0.08088435977697372, 0.9859059453010559, -0.08267490565776825, 0.148577481508255, 0.008820269256830215, 0.26801979541778564, -0.4272499084472656, -0.2625361382961273, -0.8526439070701599, -0.11082179844379425, 0.5610580444335938, -0.35839223861694336, 0.1429328769445...
style came from <http://mattserbinski.com/blog/look-and-feel-progressbar> and the DebuggingConverter is a no-op converter that prints the value, type and parameter to the Console. I have verified that the converter for the Maximum is being called when my NumTubes property is changed. Basically, the ProgressBar won't r...
[ 0.3948986828327179, 0.03459394723176956, 0.6916877031326294, -0.0505979061126709, -0.08517514914274216, 0.2094758152961731, 0.020597754046320915, -0.1613696962594986, -0.07614527642726898, -0.6119655966758728, 0.3386933505535126, 0.47121262550354004, -0.12283778190612793, 0.126287013292312...
the bar size is calculated in the private method `ProgressBar.SetProgressBarIndicatorLength`. It's only called from `OnValueChanged`, `OnTrackSizeChanged`, and `OnIsIndeterminateChanged`. You could call `SetProgressBarIndicatorLength` through reflection, or cycle one of the properties that causes it to be called. This...
[ -0.13780467212200165, 0.08193612098693848, 0.9458023905754089, -0.37991201877593994, 0.1396513283252716, 0.2250417023897171, 0.19935020804405212, -0.5843015909194946, -0.4994526505470276, -0.5509740710258484, -0.05391760915517807, 0.5007026195526123, -0.1559910774230957, 0.2612569034099579...
}); } ```
[ -0.021051988005638123, 0.2668358087539673, 0.3705363869667053, -0.4691636562347412, 0.3760703206062317, -0.2627323567867279, 0.2119927555322647, 0.10825841128826141, 0.2634750008583069, -0.3890021741390228, -0.36508485674858093, 0.8346177935600281, -0.47098344564437866, 0.24482795596122742...
I've edited and trimmed this to try and get it closed because the site is prompting me to accept an answer or add a bounty. I did an experiment which had calls to GetUserStoreForAssembly and GetUserStoreForDomain in a library referenced by a console app but didn't understand why I was getting more stores than I expec...
[ 0.6039888262748718, -0.013747165910899639, 0.2540874779224396, 0.10201918333768845, 0.22063754498958588, 0.2972855865955353, 0.1621009260416031, -0.14206409454345703, -0.4025021493434906, -0.5520851016044617, 0.0981464684009552, 0.3734074532985687, -0.2308053970336914, 0.4270957410335541, ...
copy when I expected them to share * when I loaded my library into multiple domains within the console app they all still used the same user/assembly/domain store when I expected them to not share By then, the question was cold. I did my own reading and I thought I found the answers so answered the question myself hop...
[ 0.7609421610832214, 0.19034242630004883, 0.22178278863430023, 0.39419475197792053, -0.1334914118051529, 0.20980584621429443, -0.17107227444648743, 0.0049663810059428215, -0.31360337138175964, -0.5005460977554321, 0.42486777901649475, 0.18872788548469543, -0.13487282395362854, 0.40992742776...
some helpful comment either confirming or correcting so I can accept it and know that this will actually be useful to anyone else wanting to better understand isolated storage: **Possible answer to first question:** Strong named assemblies are of course identified by their strong name. Weakly named (not sure if that'...
[ 0.2690073847770691, 0.23570455610752106, 0.1643647402524948, 0.13468311727046967, -0.21448016166687012, 0.05374757945537567, 0.3119097650051117, -0.030468430370092392, -0.21300280094146729, -0.5312562584877014, -0.26481035351753235, -0.05966426059603691, -0.30492162704467773, 0.34555909037...
and assembly, specifically that assembly running within a specific application. My experiment created multiple additional domains but they are all in the same application. Therefore, they are all using the same domain store. Therefore, to simulate domain isolation, I actually need to reference the library from two di...
[ 0.28152212500572205, -0.05066324770450592, -0.07052049040794373, 0.15621523559093475, -0.016326112672686577, 0.09209435433149338, 0.02775230072438717, -0.30204126238822937, -0.18200261890888214, -0.6558796167373657, 0.1343032568693161, 0.29584911465644836, -0.718673586845398, 0.59491634368...
and 1 assembly store as expected. You can create multiple app domains in a single program/process. Inside the appdomain you can load the assembly. The call the methods in each app domain/assembly There are examples [here (appdomains)](http://msdn.microsoft.com/en-us/library/system.appdomain.aspx) and [here (AssemblyId...
[ 0.25457799434661865, 0.2444409728050232, 0.3591168224811554, 0.009024851955473423, 0.039770957082509995, 0.4660508632659912, 0.04549076408147812, -0.5979316830635071, -0.4855256974697113, -0.6810534596443176, -0.25801077485084534, 0.2011701464653015, -0.7591511607170105, 0.0386567153036594...
If I need generate a fairly large dataset using LINQ and it may take a while (say a few seconds) and I need to (would like to) generate feedback to the use as to %'age done, is there an easy/ preferred way to do this? Example, say I have list A with 1000 cars and list B with 1000 trucks and I want to select all possib...
[ 0.626091480255127, 0.1725381314754486, 0.2847518026828766, 0.10502602905035019, 0.00913575291633606, 0.3766182065010071, -0.22092142701148987, -0.43191245198249817, -0.21958914399147034, -0.5517566204071045, -0.0511905699968338, 0.4304868280887604, -0.010031340643763542, 0.2372387945652008...
where car.color==truck.color select new {car, truck}; ``` Now at some point this will be evaluated as a set of nested foreach loops. I would like to be able to report %'age complete as it interates and ideally update a progressbar or something. EDIT: Just after my query, I store the result in a member ...
[ 0.26186272501945496, 0.2263418436050415, 0.5675448775291443, -0.2311525046825409, 0.4276144206523895, 0.5156661868095398, 0.07341070473194122, -0.4155321419239044, -0.2717845141887665, -0.5750494599342346, -0.07921204715967178, 0.31422892212867737, -0.1257651001214981, 0.3988317847251892, ...
as I do not want the UI thread to freeze up as it evaluates the LINQ expression on demand on the UI thread (this is in Silverlight BTW). Hence why I would like to report progress. The UX is basically this: 1. A user drags an item onto the workspace 2. The engine then kicks up on a background thread to determine the (m...
[ 0.11029690504074097, -0.10388850420713425, 0.5951052308082581, -0.13824336230754852, -0.1543322503566742, -0.13413406908512115, -0.14342929422855377, -0.3298680782318115, -0.306209534406662, -0.7257940769195557, -0.017489440739154816, 0.2801290452480316, -0.311828076839447, 0.0976198166608...
items (all the possible connection paths not already in use have been determined via LINQ). 4. When the engine completes the calculation (query), the item is connectable in the UI and the possible connection paths are stored in a local variable for future use (e.g. when the user clicks to connect the item all the possi...
[ -0.1490299552679062, -0.054793041199445724, 0.6484155654907227, 0.21625395119190216, 0.0007666901801712811, -0.11065151542425156, 0.14033877849578857, -0.08918452262878418, -0.3189423084259033, -0.8272244334220886, -0.20677869021892548, 0.3844543397426605, -0.20695500075817108, 0.229297757...
ProgressArgs : EventArgs { public ProgressArgs(int count) { this.Count = count; } public int Count { get; private set; } } public class ProgressContext<T> : IEnumerable<T> { private IEnumerable<T> source; public ProgressContext(IEnumerable<T> source) { this.source = source...
[ -0.21777597069740295, -0.28746458888053894, 0.6000756621360779, -0.19152657687664032, -0.05126934126019478, 0.4134503901004791, 0.29807931184768677, -0.2921168804168701, -0.14784575998783112, -0.5575908422470093, -0.45239490270614624, 0.12693269550800323, -0.5357998013496399, 0.07108389586...
= this.UpdateProgress; if (handler != null) handler(this, new ProgressArgs(count)); } public IEnumerator<T> GetEnumerator() { int count = 0; foreach (var item in source) { // The yield holds execution until the next iteration,
[ 0.13005836308002472, -0.5375347137451172, 0.5587149262428284, -0.23975326120853424, 0.2591497600078583, 0.31997784972190857, 0.6343483924865723, -0.5819330811500549, -0.055312201380729675, -0.3188633918762207, -0.16863879561424255, 0.5097278952598572, -0.039449624717235565, 0.1410395503044...
// so trigger the update event first. OnUpdateProgress(++count); yield return item; } } IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } } ``` Usage ``` var context = new ProgressContext( from car in A from truck in B select ne...
[ -0.12052112817764282, -0.1405256986618042, 0.7175712585449219, -0.21102291345596313, 0.27189698815345764, 0.34560832381248474, 0.33896005153656006, -0.4330955743789673, -0.03741062805056572, -0.7440651059150696, -0.4688928723335266, 0.6815993189811707, -0.1654871255159378, 0.08772663027048...
=> { // Do your update here }; var query = from item in context where item.car.color==item.truck.color; // This will trigger the updates query.ToArray(); ``` The only issue is you can't easily do a percentage unless you know the total count. To do a total count often requires processing the entire l...
[ 0.12410728633403778, -0.019017957150936127, 0.39795544743537903, -0.020898673683404922, -0.16710427403450012, 0.205535888671875, 0.2800446152687073, -0.3090357780456543, -0.13567548990249634, -0.5366681814193726, -0.0002875784120988101, 0.6611691117286682, -0.039697807282209396, 0.19852297...
I have an array of "Range" objects with properties "Offset" and "Length", as shown below. Assume that it'll be sorted by "Offset" ascending. Range array contains: ``` Offset Length Index ------- ------- ------- 100 10 0 110 2 1 112
[ 0.25616225600242615, 0.3261725902557373, 0.6646906137466431, -0.1693565994501114, 0.0712394192814827, 0.2602337896823883, -0.3401964604854584, -0.65302973985672, 0.24617217481136322, -0.5139074921607971, -0.012583623640239239, 0.795333206653595, -0.0564812496304512, -0.0778687596321106, ...
5 2 117 3 3 300 5 4 305 5 5 400 5 6 405
[ 0.2557767629623413, 0.3057086765766144, 0.26758456230163574, 0.022741833701729774, -0.15957647562026978, 0.7574591636657715, 0.62541264295578, -0.1338856816291809, -0.2734015882015228, -0.47210726141929626, 0.1410558670759201, 0.23117685317993164, 0.1902928352355957, 0.44003546237945557, ...
10 7 415 2 8 417 4 9 421 7 10 428 1
[ -0.08538294583559036, 0.545909583568573, 0.12755779922008514, -0.10876969248056412, -0.18439628183841705, 0.8263003826141357, 0.2927420735359192, 0.07610312849283218, -0.27763229608535767, -0.3476737141609192, 0.006213342770934105, 0.23489300906658173, -0.07178263366222382, 0.0543223768472...
11 429 6 12 500 4 13 504 9 14 ``` The contiguous subsequences in this case would be: ``` Sequence #1 indices: 0, 1, 2, 3 Sequence #2 indices: 4, 5 Sequence #3 indices: 6, 7, 8, 9, 10, 11, 12 <-- (longest!!) Sequence #4 indices: 13, 14 ``` Assume
[ -0.05445433035492897, 0.2863132953643799, 0.4123961627483368, 0.029128458350896835, 0.23357143998146057, 0.29515427350997925, -0.05236174911260605, -0.3084653913974762, -0.02564164064824581, -0.6483256220817566, -0.1619405299425125, 0.047919660806655884, -0.21555224061012268, 0.27614641189...
that there will only be one longest sequence. Iterating through the items, i thought to create a new array for each contiguous sequence and return the biggest array, but that seem sub-optimal. Is there a better way to do this? I'm implementing in C# 2.0. The function should either return an array containing the element...
[ 0.10075434297323227, -0.013468376360833645, 0.010671203956007957, 0.13318490982055664, -0.03757178410887718, 0.2480076402425766, 0.2099035084247589, 0.009827694855630398, -0.3498234748840332, -0.45351386070251465, 0.04670676589012146, 0.5101147890090942, -0.40273717045783997, 0.25796598196...
O(n) time. It seems to me that the "strings" represented by the array are not overlapping, so there is a very simple algorithm: put left index finger on the first row, and then run the right index finger downwards as long as you are within a contiguous sequence. When the sequence ends, store the length and the starting...
[ -0.03424595296382904, 0.07102981954813004, 0.5248277187347412, -0.4243523180484772, 0.3576931357383728, 0.30162620544433594, -0.004542473237961531, -0.23708418011665344, -0.562764048576355, -0.47859981656074524, 0.16044732928276062, 0.21831363439559937, -0.09849017858505249, 0.323879599571...
If I had the following string "Blue Box", how could I get the bits that make up the string in c# and what datatype would I store it in. If I do just the letter "o", I get 111 as the bytes and 111 as the bits. Is it chopping off the 0's and if I do "oo", I get 111 for each o in the byte array, but for the bits, I get t...
[ 0.2728782892227173, 0.22441068291664124, 0.18962493538856506, -0.3605986535549164, -0.1099262535572052, 0.2565726041793823, 0.1518174260854721, -0.5177785158157349, -0.27106696367263794, -0.4612552225589752, 0.2143946886062622, 0.2536885738372803, -0.3253973126411438, 0.04684047773480415, ...
StringBuilder(); foreach (byte b in Encoding.Unicode.GetBytes(input)) { sb.Append(Convert.ToString(b, 2)); } return sb.ToString(); } ``` If you use your "Blue Box" example you get: ``` string bitString = GetBits("Blue Box"); // bitString == "100001001101100011101010110010101000000100001001101...
[ 0.008250824175775051, 0.010135455057024956, 0.30691292881965637, -0.3913225531578064, 0.07239469885826111, 0.0840565413236618, 0.3344106078147888, -0.2545459270477295, -0.3128010928630829, -0.5717019438743591, -0.3715978264808655, 0.23517578840255737, -0.5123627185821533, 0.174659177660942...
**Background** I am a bit of a newbie with asp, I worked on a classic asp intranet application in 1999 which I hated, I hated it so much I was convinced that smart clients was the future especially for intranet apps. I am more of a db guy and have a lot of access / sql server databases that I want to expose to the web ...
[ 0.38046154379844666, 0.2541341185569763, 0.017029158771038055, -0.06542011350393295, -0.3187086582183838, -0.15520378947257996, 0.47564634680747986, 0.5089638829231262, -0.42687663435935974, -0.6878879070281982, 0.2697733938694, 0.6856588125228882, -0.14323480427265167, -0.0206446219235658...
laptop. My laptop runs XP Pro and has VS 2008, SQL Server 2005, .Net 3.5 SP1, MVC RC2. **Problem** I have a client that has a classic asp vb6 com, vb script sql server 2000 application that I’m trying to debug. I can get to this app through remote desktop and I also have a copy of the database locally. The debugging c...
[ 0.1647697240114212, 0.44370225071907043, 0.15588761866092682, -0.04081738367676735, 0.03946517035365105, 0.10671775043010712, 0.47144201397895813, 0.37541255354881287, -0.31750965118408203, -0.6695509552955627, 0.18970578908920288, 0.786575198173523, -0.06895220279693604, 0.478152006864547...
that? Here’s what I have 1. A copy of all the asp files and others that are found under inetput\wwwroot. 2. A copy of the sql server 2000 db. I have the database setup up so that SQL Server 2005 can look at the database 3. A copy of the applications dll files found under a com directory a. I also have a copy of ...
[ 0.518751859664917, 0.4264844059944153, 0.28867071866989136, -0.1072743833065033, -0.2618114650249481, -0.2574087977409363, 0.1456342339515686, -0.17705242335796356, -0.25417137145996094, -0.5019233822822571, 0.46738752722740173, 0.5176505446434021, -0.12085642665624619, 0.12018609791994095...
do this relatively painless what are the necessary steps .. here is what I am guessing 1. Unzip the wwwroot.zip file and preserver the file structure (c:\inetpub\wwwroot) 2. Change the database connection settings to reflect my laptop. I don’t know where this global connection setting is located so that I can change i...
[ 0.3198467791080475, 0.015574764460325241, 0.4918784201145172, -0.14681020379066467, 0.13698555529117584, -0.011876996606588364, 0.5131165981292725, -0.2856053411960602, -0.17897681891918182, -0.8285970687866211, -0.1700713038444519, 0.5684129595756531, -0.3301316201686859, 0.16889275610446...
sb.Append(Convert.ToString(b, 2)); } return sb.ToString(); } ``` If you use your "Blue Box" example you get: ``` string bitString = GetBits("Blue Box"); // bitString == "100001001101100011101010110010101000000100001001101111011110000" ```
[ 0.08105213195085526, 0.03949185833334923, 0.06251222640275955, -0.45047783851623535, 0.18255333602428436, 0.12498918175697327, 0.47931402921676636, -0.44990646839141846, -0.219546839594841, -0.7618241906166077, -0.1951320916414261, 0.2720944583415985, -0.6850664615631104, 0.106042347848415...
The 1st example below illustrates the working code. I want to take the working code a step further and store the SQL in an XML file. However, once I read it from an XML file I can't seem to get groovy to treat the SQL statement as a GString anymore. Here is the working example: ``` private void testRefCursors(){ ...
[ 0.27876904606819153, 0.14923149347305298, 0.11362046748399734, -0.03567943722009659, -0.08181113004684448, -0.08600948750972748, 0.2715252935886383, -0.6645194888114929, -0.2610982358455658, -0.3054196536540985, -0.1716165542602539, 0.8008866906166077, -0.45322385430336, 0.0052554081194102...
type crsr is ref cursor; tables crsr; objects crsr; begin select count(*) into ${Sql.INTEGER} from all_tables where owner= ${owner} ; open tables for select * from all_tables where owner= ${owner} ; ${Sql.resultSet OracleTypes.CURSOR} := tables; select count(*) into $...
[ -0.5736002326011658, 0.0881362333893776, 0.7880624532699585, -0.3622269630432129, -0.4891491234302521, 0.3548192083835602, 0.022509559988975525, -0.5052000880241394, -0.18035610020160675, -0.2007959932088852, -0.3004910945892334, 0.33490806818008423, -0.3982324004173279, 0.2150703817605972...
open objects for select * from all_objects where owner= ${owner}; ${Sql.resultSet OracleTypes.CURSOR} := objects; end; """ //note the order below, is the order of the 'types' //in the SQL block used in the closure as parameters. sqlSEDREF.call(sqlBlock){ t,user_tables,o,user_objects -> ...
[ -0.47400379180908203, 0.1391150802373886, 0.6497057676315308, -0.14382345974445343, -0.13645987212657928, 0.09449401497840881, -0.03121720626950264, -0.20260708034038544, -0.3464202582836151, -0.4669821858406067, -0.3472541868686676, 0.3214045464992523, -0.5776931047439575, 0.3853277564048...
} } ``` Now When I change the example to read the block of SQL from an XML file; I don't know how (or if it is possible) to treat that value as a GString: ``` private void testRefCursors(){ //object owner paramter String owner = 'HR'; def configFile = new File("config.xml"); config = new XmlSlurper(...
[ 0.13876904547214508, 0.30500850081443787, 0.36479175090789795, -0.12531308829784393, 0.11467260122299194, -0.22295278310775757, 0.38729628920555115, -0.5068310499191284, -0.2516345977783203, -0.4429352283477783, -0.3548213839530945, 0.883431613445282, -0.3344103693962097, 0.101154394447803...
closure as parameters. sqlSEDREF.call(sqlBlock){ t,user_tables,o,user_objects -> println "found ${t} tables from a total of ${o} objects" user_tables.eachRow(){x ->println "table:${x.table_name}"} user_objects.eachRow(){println "object:${it.object_name}"} } } ``` The error returned...
[ -0.41466107964515686, 0.17370858788490295, 0.6845535039901733, -0.22537672519683838, -0.17826159298419952, 0.17429572343826294, 0.046245139092206955, 0.08127887547016144, -0.5371439456939697, -0.5141190886497498, 0.05852503329515457, 0.3958674669265747, -0.511985719203949, 0.38859069347381...
file and read the GStrings from the .groovy file instead of an XML. Any suggestions greatly appreciated. The XML file will not return a GString since the GString is constructed by the groovy compiler at compile time. When you parse the XML file you get a String, not a compiled Groovy executable. If you really want to ...
[ 0.47455155849456787, 0.23843300342559814, 0.3164609670639038, 0.10748953372240067, -0.24955150485038757, -0.27247729897499084, 0.14035958051681519, -0.02213217131793499, -0.15297168493270874, -0.5713366866111755, -0.05407373979687691, 0.6746628880500793, -0.592775821685791, -0.087123967707...
that I adopted when faced with a similar problem) is to use MessageFormat to substitute values in the XML. ``` def s = '<sql><query-name>Some SQL</query-name> <query> select * from {0} </query> </sql>' ``` And then after using XmlSlurper on the xml you can substitute va...
[ 0.17934124171733856, -0.1004028469324112, 0.23224613070487976, -0.04304405301809311, -0.16233175992965698, 0.026755068451166153, 0.04925281181931496, -0.3606548011302948, 0.0013828269438818097, -0.4387241303920746, 0.18193456530570984, 0.7057623863220215, -0.3794201612472534, -0.0569488815...
== 'select * from dual' ```
[ -0.044561270624399185, 0.04833013936877251, -0.18673203885555267, -0.1274852305650711, -0.20951762795448303, -0.029053520411252975, 0.238477423787117, -0.14659038186073303, -0.05978173017501831, -0.25239548087120056, -0.28724974393844604, 0.4467945396900177, -0.33082255721092224, 0.1119678...
What is the best practice for right-justifying a numeric in TSQL? I have to format a fixed length extract file and need to have the Numeric fields right justified. (I am using SQL Server 2005) I found [this](http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=104823), which seems pretty straight forward. ``` right(' ...
[ 0.12318532913923264, 0.15316423773765564, 0.34025827050209045, -0.07003089040517807, -0.2517939805984497, -0.012718737125396729, -0.11810631304979324, -0.4642670452594757, -0.06051679328083992, 0.1302015632390976, -0.03561891242861748, 0.49262598156929016, -0.15455031394958496, -0.11311995...
num = 2400.00 union all select num = 385.00 union all select num = 123454.34 ) a Results: num fixed_number ---------- ------------ 2400.00 2400.00 385.00 385.00 123454.34 123454.34 (3 row(s) affected) ``` I am asking this question because I found this line of code at w...
[ -0.013320045545697212, 0.2751375138759613, 0.041447050869464874, 0.08077480643987656, 0.07446125149726868, 0.21964479982852936, 0.3084173798561096, -0.1743050366640091, -0.2647660970687866, -0.43718835711479187, 0.04034857451915741, 0.2577474117279053, -0.03544025495648384, 0.3902512490749...
AS VARCHAR),'.','') AS VARCHAR(12)) ``` **Updated:** Daniel Pratt's idea of using a function got me looking at [SQL#](http://www.sqlsharp.com/) (which we own). It has a function called [PadLeft](http://www.sqlsharp.com/features/), which surprisingly enough had the same parameters and functionality as Daniel Pratt's ...
[ 0.06827007979154587, 0.12606880068778992, 0.38675054907798767, -0.05306825414299965, -0.2646024227142334, 0.3239690363407135, -0.005131288431584835, -0.36328360438346863, -0.38735783100128174, -0.2709123492240906, 0.142353355884552, 0.5014199018478394, -0.3572613000869751, 0.05759223923087...
,@NewLength int ,@PadChar nchar(1) = ' ' ) RETURNS nvarchar(4000) AS BEGIN DECLARE @ValueLength int SET @ValueLength = LEN(@Value) IF (@NewLength > @ValueLength) BEGIN SET @Value = @Value + REPLICATE(@PadChar, @NewLength - @ValueLength) END RETURN @Value END GO CREATE FUNCTION [dbo].[...
[ -0.020550858229398727, -0.006019544322043657, 0.5677503943443298, -0.2293325960636139, 0.03583023324608803, 0.1675647795200348, 0.19632014632225037, -0.8273096680641174, -0.3717077076435089, -0.27093538641929626, -0.18307377398014069, 0.6489396095275879, -0.2638768255710602, 0.479077190160...
Does anyone have an example of implementing Orbital Mechanics (preferably in XNA)? The code I am currently using is below, but it doesn't "feel right" when it executes. The object just bends ever so slightly to the planet, and no matter how much I tweak the variables I cant get it to enter an orbit, or even a partial o...
[ 0.034418735653162, 0.008793660439550877, 0.8244808316230774, 0.187460795044899, -0.060265135020017624, 0.09451784193515778, -0.13832049071788788, -0.23401400446891785, -0.44215309619903564, -0.6018089056015015, 0.34554779529571533, 0.5013129711151123, 0.026068076491355896, 0.15194548666477...
(planet.Mass * shot.Mass) / distance) + planet.gravityField; shot.Position += new Vector2(directionToPlanet.X * gPull, directionToPlanet.Y * gPull); } ``` **Edit** Marking Mendelt's answer correct for pointing out that I need to update the velocity, not the position. I also needed to change the calculation of ...
[ -0.12785384058952332, 0.3497875928878784, 0.8782972693443298, 0.1639302372932434, -0.1069481298327446, 0.14977344870567322, -0.23708462715148926, -0.3840009272098541, -0.4645001292228699, -0.5939360857009888, 0.05720612034201622, 0.5144150853157043, -0.013218464329838753, 0.162373796105384...
screen-flicker)
[ 0.34077635407447815, -0.03291240334510803, 0.329438716173172, 0.20621143281459808, 0.18814118206501007, 0.12883290648460388, 0.29609400033950806, -0.0018743915716186166, -0.2917846739292145, -0.33362191915512085, -0.14997197687625885, 0.4032609462738037, -0.2801496386528015, 0.337433338165...
I hope I'm not writing a duplicate, but I haven't found anything that answers my question. (Although it seems to me to be quite common problem.) The problem occurs in nearly every web project: You have a table with many many entries and want them to be displayed on single pages. Now I wonder what's the best way to c...
[ 0.31989625096321106, 0.4082639217376709, 0.14857256412506104, 0.32131972908973694, -0.16850616037845612, -0.07253515720367432, 0.18605193495750427, 0.24462656676769257, -0.7548120021820068, -0.8268616199493408, 0.3966062366962433, 0.159703329205513, -0.13337109982967377, 0.1054676547646522...
other languages. 1. The probably best way is to save the number of pages statically and modify the value every time a new entry is added. (Nevertheless... I'm looking for a dynamic solution :-) ) 2. Do a `SELECT COUNT(*)` over the rows of interest and compute the page number every time the page is displayed. 3. Do a o...
[ -0.07725775241851807, -0.14536574482917786, 0.23704670369625092, -0.1351432502269745, -0.2821505069732666, -0.045009203255176544, 0.2525651454925537, 0.24591514468193054, -0.3324097990989685, -0.6077153086662292, -0.1951914280653, 0.6692842841148376, -0.599637508392334, -0.5779130458831787...
or not. Anyone who knows?) Then I could comfortably move the result set pointer. (For `mysqli` there is `mysql_data_seek`, but the native MySQL extension has no similar function. Therefore I assume that this is just some buffering behaviour of `mysqli`) Can anyone say how to count the number of rows (number of pages) ...
[ -0.06615383923053741, 0.021384209394454956, 0.5754629969596863, 0.0435720719397068, -0.27479416131973267, 0.08508408069610596, 0.06925486028194427, -0.3722717761993408, -0.3508667051792145, -0.7581587433815002, -0.1587018370628357, 0.405488520860672, -0.3147302567958832, -0.348944544792175...
conventions for caching certain parts of this data in the session which you may or may-not want to do depending on you expected table sizes, volatility of data, etc.
[ 0.12109947204589844, -0.15866459906101227, 0.1847676932811737, 0.2681528925895691, 0.3307907283306122, -0.4609573483467102, -0.18363036215305328, -0.20328709483146667, -0.5300310850143433, -0.5216440558433533, -0.20106694102287292, 0.39508116245269775, -0.08470004051923752, -0.097015045583...
I'm writing a netscape iplanet plugin (on solaris/C using eclipse) which is basically a shared object with specific entry points, and I'd like to be able to debug the shared object with eclipse's debugger (gdb). I remember doing something similar in AIX where you could make xldb attach to a running process. Is it possi...
[ 0.3440707325935364, 0.15585651993751526, -0.01231377199292183, -0.08426343649625778, -0.2247086614370346, -0.25869786739349365, -0.12596121430397034, -0.03983110189437866, -0.1974482238292694, -0.6244189143180847, -0.061940740793943405, 0.5365017652511597, -0.5223014950752258, 0.1855935603...
your Eclipse version there may be only one or more "C++ Attach to ..." variants available.
[ 0.5207019448280334, -0.25450050830841064, 0.3810708522796631, 0.08913519978523254, -0.11417488008737564, -0.08325579017400742, -0.11963246017694473, 0.1674031764268875, 0.10480067878961563, -0.4388478398323059, -0.17346836626529694, 0.7097226977348328, -0.4158748388290405, -0.5068523883819...
I'm using LINQ-to-XML to query a file for a list of objects. They all have the same structure (a set number of options, a list of parameters of indeterminate length). Based on their name in the XML file, I want to use the parameters for entirely different things - so I made subclasses of this object. My question is -...
[ -0.14732369780540466, -0.1997319757938385, 0.3698611557483673, 0.02610725723206997, 0.035149212926626205, 0.00348275457508862, -0.05261119455099106, -0.22808440029621124, -0.06547138839960098, -0.2742071747779846, -0.30302906036376953, 0.6258975863456726, -0.4663069248199463, -0.0414248183...
List<Param> parameters; } class sonOfObject : Object1 { public void ExecuteSomething() { //do something with the parameters } } class secondSonOfObject : Object1 { public void ExecuteSomething() { //do something entirely different with the parameters } } var query = from x i...
[ 0.20536240935325623, -0.4370211660861969, 0.3744639754295349, 0.06224774941802025, 0.14417897164821625, 0.2108725607395172, 0.35545918345451355, -0.5747384428977966, -0.44429367780685425, -0.43713662028312683, -0.1975289285182953, 0.22584064304828644, -0.35445812344551086, 0.08499040454626...
bit of code I could use a copy constructor to make a sonOfObject from the more generic query object. But how do I do that dynamically, based on the name of the child class? I know that you can get MethodInfo from a type and invoke it ala... ``` MethodInfo m = t.GetMethod(someName); m.Invoke(yourObj, null); ``` But...
[ 0.46380576491355896, -0.09985373914241791, 0.10378384590148926, 0.27791550755500793, -0.06774519383907318, 0.21171951293945312, 0.6655831933021545, -0.1781361699104309, 0.031410399824380875, -0.26880353689193726, -0.0775562971830368, 0.4951407313346863, -0.22102808952331543, 0.424150735139...
a class to participate in this scheme, I'd mark it with a custom attribute, which gives it an "XML name". Then use reflection to find all the `Type`s marked with that attribute and put them in a `Dictionary<string, Type>`. At this point you need to decide how you're going to find other assemblies that might contribute...
[ 0.48235490918159485, -0.09669456630945206, -0.09462481737136841, 0.08674758672714233, -0.3374786972999573, -0.13288205862045288, 0.1834917664527893, -0.0971582755446434, -0.14831006526947021, -0.7025219798088074, 0.17972885072231293, 0.4877910614013672, -0.49662765860557556, 0.196884319186...
up in the `Dictionary` by name and call `Type.GetConstructor` and `ConstructorInfo.Invoke`. The advantage of this is that the identifier in the XML is separated from the physical layout of your code - you can move types around in assemblies or rename them without invalidating old XML files.
[ 0.3979595899581909, 0.19593727588653564, 0.1716892123222351, 0.10406845062971115, -0.19663088023662567, -0.2547975182533264, -0.25907421112060547, -0.24000227451324463, -0.12805737555027008, -0.7591274976730347, -0.15702040493488312, 0.17179648578166962, -0.26958584785461426, 0.20115987956...
I'm building something that requires a simple HTML frontend for editing some properties in CSS. However, I need to get the value specified by a CSS file. The only parser I can find is [CSS Parser Project](http://cssparser.sourceforge.net/) , and it is in Java. It implements both [Document Object Model Level 2 Style](h...
[ 0.3403695225715637, 0.27327483892440796, 0.10570618510246277, -0.09715753048658371, -0.26543018221855164, -0.23540672659873962, 0.15377511084079742, -0.028887875378131866, -0.1868225485086441, -0.8063271641731262, 0.08456795662641525, 0.4303456246852875, -0.18099889159202576, -0.0266204923...
expression does not seem to be the right tool for fishing out properties from CSS. Anyone has a better/simpler solution? Thanks! <http://sourceforge.net/projects/cssparser/>
[ 0.052933670580387115, 0.10270240157842636, 0.20289547741413116, 0.33108454942703247, -0.26157182455062866, 0.02621752768754959, 0.36719340085983276, 0.06154201179742813, -0.2312524914741516, -0.757596492767334, -0.1367749124765396, 0.3391237258911133, -0.05711215361952782, -0.3110367357730...
I have the following XML that I'm running in SQL Server, and it breaks, why? ``` declare @xml varchar(max) declare @hDoc int set @xml = '<transaction> <item itemId="1" value="Hello World" /> <item itemId="2" value="Hello &World" /> <item itemId="3" value="Hello <World" /> <item itemId="4" value="Hello >World" ...
[ 0.011118385940790176, 0.11110298335552216, 0.6292374134063721, 0.06713210046291351, -0.08433103561401367, 0.07621658593416214, 0.15393775701522827, -0.4759836792945862, -0.12643256783485413, -0.6233308911323547, -0.21662108600139618, 0.4319912791252136, -0.23060061037540436, 0.392158061265...
value varchar(max) ) item ``` The values in the XML contain invalid characters. For XML in general you must escape the less than sign and the ampersand like so: &lt; and &amp; ``` declare @xml varchar(max) declare @hDoc int set @xml = '<transaction> <item itemId="1" value="Hello World" /> <item itemId="2" ...
[ -0.0063842181116342545, 0.21895958483219147, 0.8096453547477722, -0.11933775991201401, -0.11850348114967346, 0.11461824923753738, 0.04966963827610016, -0.79072505235672, -0.018024951219558716, -0.25373926758766174, -0.35475853085517883, 0.5769888758659363, -0.2568036913871765, 0.1125666722...
itemId int, value varchar(max) ) item ``` However when using openxml certain values won't work in general, specifically that curly apostrophe. I'm not sure what values are invalid, but I know that is one of them. So the solution is to use the native XML type in SQL Server 2005. ``` declare @xml xml s...
[ -0.39096444845199585, -0.24606183171272278, 0.7593439221382141, 0.07746301591396332, -0.3602302074432373, 0.0761399045586586, 0.19886840879917145, -0.4704829156398773, -0.27022963762283325, -0.4649285078048706, -0.19616958498954773, 0.4825820326805115, -0.40833669900894165, 0.3013467490673...
</transaction>' select item.value('@itemId', 'int') , item.value('@value', 'varchar(max)') from @xml.nodes('/transaction/item') [transaction](item) ```
[ 0.07258084416389465, 0.10542604327201843, 0.537617564201355, 0.07927796244621277, -0.07520988583564758, 0.2539879381656647, -0.09758763760328293, -0.4292818307876587, -0.26060622930526733, -0.48000991344451904, -0.2894151210784912, 0.43520504236221313, -0.3285430073738098, 0.37891271710395...
Here is the code. A Few notes about it. DStr is an string class that is internal to our company. It functions much like CString. I can connect to the database and run non-parameterized queries. Also this insert works fine if I do not use parameters. The cmd->Execute statment throws an exception. This is where I am g...
[ 0.3097667098045349, 0.09494024515151978, 0.23618973791599274, -0.0843358114361763, 0.017294781282544136, 0.10256050527095795, 0.3124190866947174, -0.22869765758514404, 0.14970585703849792, -0.484523206949234, 0.1392604112625122, 0.3977039158344269, -0.32782697677612305, 0.498676598072052, ...
vUser.vt = VT_BSTR; vUser.bstrVal = username.AllocSysString(); vDisp.vt = VT_BSTR; vDisp.bstrVal = displayname.AllocSysString(); _CommandPtr cmd = NULL; _ConnectionPtr conn = NULL; _ParameterPtr prm = NULL; DStr connStr = "driver={SQL Server};server=DEMETER\\SQLEXPRESS;database=ExtractoMun...
[ -0.38809332251548767, -0.16929642856121063, 0.9652053117752075, -0.21085329353809357, -0.02772824838757515, 0.24800990521907806, 0.45438888669013977, -0.20600387454032898, -0.25390955805778503, -0.6690518260002136, -0.41282737255096436, 0.668404757976532, -0.4120011627674103, 0.52234822511...