text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
have kept in my mind is this:
* I dont stray *too* far from the current design (i.e. no massive "lets rip ALL of this out and make it ASP.NET magical!) due to the incredibly high amount of coupling that ASP classic tends to have, this would be very dangerous. Of course, if you are confident, fill your boots :) This ca... | [
0.6957867741584778,
0.011522631160914898,
0.4090781509876251,
0.12033101916313171,
0.030032051727175713,
-0.35401660203933716,
0.6641162037849426,
-0.2418559491634369,
0.07962162792682648,
-0.5763956904411316,
0.00708156218752265,
0.6757559180259705,
0.016611261293292046,
-0.07161857187747... | |
and replace with .NET, I ensure I have as much green-light tests backing me as possible.
* Research a lot, there are some MAJOR changes between classic and .NET and sometimes what can be many lines of code and includes in classic can be achieved in a few lines of code, *think* before coding.. I've learnt this the hard ... | [
0.31941062211990356,
-0.20103995501995087,
0.49311137199401855,
-0.11318323016166687,
-0.039025600999593735,
-0.3344772756099701,
0.3966459631919861,
-0.03556830435991287,
-0.23840586841106415,
-0.6153430342674255,
-0.13420775532722473,
0.7932437658309937,
-0.11491471529006958,
0.180252119... | |
I am using VMWare tools for Ubuntu Hardy, but for some reason `vmware-install.pl` finds fault with my LINUX headers. The error message says that the "address space size" doesn't match.
To try and remediate, I have resorted to `vmware-any-any-update117`, and am now getting the following error instead:
```
In file incl... | [
0.05434268340468407,
0.2506193220615387,
0.3270861506462097,
-0.17387378215789795,
0.06842609494924545,
0.07573535293340683,
0.409005731344223,
-0.36101260781288147,
-0.1117606908082962,
-0.716147780418396,
-0.11998779326677322,
0.5383695960044861,
-0.16166941821575165,
-0.0174005404114723... | |
some sense of this, please?
Check out this link as it helped me install the tools in one of my vms. <http://diamondsw.dyndns.org/Home/Et_Cetera/Entries/2008/4/25_Linux_2.6.24_and_VMWare.html> | [
0.7787718176841736,
0.3572986125946045,
0.17551985383033752,
-0.000004472216915019089,
0.11075890064239502,
-0.4284612238407135,
0.19396209716796875,
0.07815026491880417,
-0.3236336410045624,
-0.23925958573818207,
0.027114490047097206,
0.6355985403060913,
0.10164985805749893,
0.27742907404... | |
Is anyone using Virtual PC to maintain multiple large .NET 1.1 and 2.0 websites? Are there any lessons learned? I used Virtual PC recently with a small WinForms app and it worked great, but then everything works great with WinForms. ASP.NET development hogs way more resources, requires IIS to be running, requires a rid... | [
0.7052770256996155,
0.14295095205307007,
-0.11293705552816391,
0.21039587259292603,
-0.16383478045463562,
-0.29560989141464233,
0.23018158972263336,
0.4180842638015747,
-0.1530945897102356,
-0.457226037979126,
0.4475640654563904,
0.6811211705207825,
-0.04046948626637459,
0.2078596353530883... | |
web apps without much problem. Lots of RAM is important. I keep my VPCs on an external USB drive and they perform great from there. This gives me the flexibility to take the drive with me if I need to do work somewhere else... just install VPC on a host plug in the USB drive and start coding.
For servers, we use VMWar... | [
0.7307071685791016,
0.39038118720054626,
0.3620305359363556,
0.05689214915037155,
0.06497643887996674,
0.0479871891438961,
0.04975016042590141,
0.34802597761154175,
-0.5953916311264038,
-1.0717601776123047,
-0.04646007716655731,
0.7856462001800537,
-0.265756219625473,
-0.11330201476812363,... | |
used to. | [
0.6400466561317444,
-0.05120041221380234,
0.6319719552993774,
0.18791289627552032,
0.42797908186912537,
-0.10948650538921356,
0.21828840672969818,
0.3929781913757324,
-0.036723893135786057,
-0.526427149772644,
0.1862233281135559,
0.21867990493774414,
0.13202087581157684,
0.1734562814235687... | |
I have a bunch of **.NET** frameworks installed on my machine.
I know that with the **Java JDK**, I can use the **6.0** version to target **5.0** and earlier.
Can I do something similar with the **.NET** framework - target **1.0** and **2.0** with the **3.0** framework?
Visual Studio 2008 was the first to support ... | [
0.13776706159114838,
-0.001558678108267486,
0.1308274269104004,
-0.051734860986471176,
-0.8337708711624146,
-0.013327904045581818,
0.1795133799314499,
-0.07415950298309326,
-0.19291462004184723,
-0.6591168642044067,
0.3650369346141815,
0.8742507696151733,
-0.2952147424221039,
-0.1313161253... | |
The MediaElement doesn't support rounded corners (radiusx, radiusy). Should I use a VideoBrush on a Rectangle with rounded corners?
Yeah - In a way you're both asking and answering the question yourself... But that is one of the two options I can think of. The reasons that might be a problem is that you lose some of th... | [
0.02986367605626583,
-0.25312569737434387,
0.8535845875740051,
0.37312015891075134,
-0.12423541396856308,
-0.11949416995048523,
-0.21730831265449524,
-0.19197744131088257,
-0.015033331699669361,
-0.8578352332115173,
0.19425329566001892,
0.5561863780021667,
-0.2843000590801239,
0.0412048399... | |
the clipping path to your MediaElement
That way you're still using a MediaElement control, but you can "clip" away what ever you want to get the desired rounded effect.
This example shows a clipped MediaElement. I know it's not easy to picture the vector path, but if you open it open in Blend you will see a rounded M... | [
0.21359996497631073,
-0.1881866455078125,
0.850821316242218,
0.29575350880622864,
-0.252305269241333,
0.1358737200498581,
-0.4133414328098297,
-0.32120901346206665,
-0.22963634133338928,
-0.6183885931968689,
-0.053756408393383026,
0.6373052597045898,
-0.34558677673339844,
0.039261739701032... | |
120.75484 164.75484,131.5 151.5,131.5 L24.5,131.5 C11.245166,
131.5 0.5,120.75484 0.5,107.5 z"/>
``` | [
0.06668374687433243,
0.37271028757095337,
0.2942848801612854,
-0.022570619359612465,
0.08881856501102448,
0.5482999086380005,
-0.06406066566705704,
-0.30703625082969666,
-0.16323120892047882,
-0.40713974833488464,
-0.2540968060493469,
0.7899324893951416,
0.003446758259087801,
0.58036363124... | |
I currently use the following function to do a simple HTTP GET.
```
public static String download(String url) throws java.io.IOException {
java.io.InputStream s = null;
java.io.InputStreamReader r = null;
//java.io.BufferedReader b = null;
StringBuilder content = new StringBuilder();
try {
... | [
0.06673181802034378,
-0.03963092342019081,
0.7086809873580933,
-0.2516164779663086,
-0.12084110826253891,
0.20357781648635864,
0.38715660572052,
-0.22303764522075653,
-0.0675467997789383,
-0.7884160876274109,
-0.3368542194366455,
0.40546029806137085,
-0.24952282011508942,
0.410914480686187... | |
int n = 0;
while (n >= 0) {
n = r.read(buffer, 0, buffer.length);
if (n > 0) {
content.append(buffer, 0, n);
}
}
}
finally { | [
-0.07114085555076599,
-0.1832762509584427,
0.7739787697792053,
-0.256928950548172,
0.12874208390712738,
0.17721983790397644,
0.23185576498508453,
-0.31939390301704407,
-0.19074824452400208,
-0.43204280734062195,
-0.3652513325214386,
0.19158519804477692,
-0.2466369867324829,
0.2476562112569... | |
//if (b != null) b.close();
if (r != null) r.close();
if (s != null) s.close();
}
return content.toString();
}
```
I see no reason to use the `BufferedReader` since I am just going to download everything in sequence. Am I right in thinking there is no use for the `BufferedReader` in this case?... | [
0.1854652315378189,
-0.14062979817390442,
0.47106122970581055,
-0.20245525240898132,
0.16789375245571136,
-0.2222164273262024,
0.34018751978874207,
0.04766889661550522,
-0.12458668649196625,
-0.4819589853286743,
-0.3053753674030304,
0.6409323215484619,
-0.34997114539146423,
0.2094388902187... | |
exceptions, though. One place you see buffers (output this time) is in the servlet API. Data isn't written to the underlying stream until *flush()* is called, allowing you to buffer output but then dump the buffer if an error occurs and write an error page instead. You might buffer input if you needed to reset the stre... | [
0.12383083999156952,
-0.14913882315158844,
0.09487593173980713,
-0.0067487140186131,
-0.2428179830312729,
-0.3543560206890106,
0.1949883997440338,
0.01620316132903099,
-0.5562939643859863,
-0.7299782633781433,
0.020167550072073936,
0.310337632894516,
-0.409550279378891,
0.06531783938407898... | |
InputStream stream = new FileInputStream("in");
try { //no operations between open stream and try block
//work
} finally { //do nothing but close this one stream in the finally
stream.close();
}
```
If you are opening multiple streams, nest try/finally blocks.
Another thing your code is d... | [
0.18971551954746246,
-0.3237568140029907,
0.4464375674724579,
-0.037851523607969284,
0.07159142941236496,
-0.17526651918888092,
0.1869322806596756,
-0.08202622085809708,
-0.15750660002231598,
-0.8561314940452576,
-0.1760302186012268,
0.5053877830505371,
-0.22966761887073517,
0.150506019592... | |
I'm working in VS 2008 and have three projects in one solution. I'm debugging by attaching to a .net process invoked by a third party app (SalesLogix, a CRM app).
Once it has attached to the process and I attempt to set a breakpoint in one of the projects, it doesn't set a breakpoint in that file. It actually switche... | [
0.44021642208099365,
0.17958761751651764,
0.3589728772640228,
0.08170328289270401,
-0.06718680262565613,
-0.042436398565769196,
0.2528378963470459,
0.09924362599849701,
-0.06033259257674217,
-0.5067682266235352,
0.004330213647335768,
0.3532007932662964,
-0.211412712931633,
0.51566034555435... | |
Anyone seen such odd behavior? I wouldn't believe it if I wasn't seeing it myself.
A little more info: if I set a breakpoint before attaching, it shows the "red dot" and says no symbols loaded...no problem...I expect that. When I attach and invoke my .net code from SalesLogix and switch back to VS, my breakpoint is co... | [
0.5175154805183411,
0.08040262013673782,
0.5710570812225342,
-0.06813108921051025,
0.2578638792037964,
-0.16052445769309998,
0.41498705744743347,
0.07006163895130157,
-0.5585579872131348,
-0.5927603840827942,
-0.13518933951854706,
0.6419376134872437,
-0.35860884189605713,
0.165604189038276... | |
the same, so I'm stumped.
Anyone have any ideas?
Thx,
Jeff
I saw this functionality in older versions of VS.Net (2003 I think). It may still exist in current versions, but I haven't encountered it. Seems that files with the same name, even in different directories confuse VS.Net, and it ends up setting a break point... | [
0.6206952333450317,
0.058059126138687134,
-0.0784347876906395,
0.22900937497615814,
0.03303220868110657,
-0.3392241299152374,
0.33585211634635925,
0.2453054040670395,
-0.43869173526763916,
-0.70846027135849,
0.21053411066532135,
0.5227001309394836,
-0.07956670224666595,
0.2698605954647064,... | |
in debug mode. I know I've been caught a couple times when the configuration got changed somehow for the solution, and some projects weren't compiling in debug mode. | [
0.2981209456920624,
-0.03355272114276886,
-0.18462543189525604,
0.2185777723789215,
0.08411619067192078,
-0.38789328932762146,
0.3359721899032593,
0.3487747013568878,
-0.16392067074775696,
-0.1420048475265503,
-0.16411545872688293,
0.5312566161155701,
-0.5578840374946594,
-0.11187039315700... | |
I am developing a GPL-licensed application in Python and need to know if the GPL allows my program to use proprietary plug-ins. This is [what the FSF has to say](http://www.gnu.org/licenses/gpl-faq.html) on the issue:
> **If a program released under the GPL uses plug-ins, what are the requirements for the licenses of ... | [
0.5886732935905457,
0.5393730998039246,
0.1749831736087799,
-0.098898746073246,
-0.05876196548342705,
-0.3948405385017395,
-0.20624344050884247,
-0.1728159785270691,
-0.025797149166464806,
-0.35061681270599365,
-0.1544189304113388,
0.6165845990180969,
-0.2127121537923813,
0.134013742208480... | |
they make function calls to each other and share data structures, we believe they form a single program, which must be treated as an extension of both the main program and the plug-ins. This means the plug-ins must be released under the GPL or a GPL-compatible free software license, and that the terms of the GPL must b... | [
0.3154219686985016,
0.18088337779045105,
0.29899460077285767,
0.008003590628504753,
-0.018752120435237885,
-0.48160111904144287,
-0.02541489154100418,
-0.07373054325580597,
-0.035178836435079575,
-0.35115429759025574,
-0.4928925633430481,
0.7270505428314209,
-0.3826553225517273,
0.21225558... | |
case.
The distinction between fork/exec and dynamic linking, besides being kind of artificial, doesn't carry over to interpreted languages: what about a Python/Perl/Ruby plugin, which gets loaded via `import` or `execfile`?
(edit: I understand why the distinction between fork/exec and dynamic linking, but it seems li... | [
0.24500183761119843,
0.2479018270969391,
0.11023407429456711,
-0.015789084136486053,
-0.16341687738895416,
-0.37469935417175293,
0.2507254183292389,
0.22522185742855072,
-0.18996696174144745,
-0.3648665249347687,
0.016651654615998268,
0.6394594311714172,
-0.5674406886100769,
-0.03126779198... | |
[Qt](http://trolltech.com/products/qt)/[PyQt](http://www.riverbankcomputing.co.uk/software/pyqt/intro) which is GPL.
> he distinction between fork/exec and dynamic linking, besides being kind of artificial,
I don't think its artificial at all. Basically they are just making the division based upon the level of integra... | [
0.45756399631500244,
-0.009012151509523392,
0.16620907187461853,
0.00805632583796978,
-0.050114236772060394,
-0.15417201817035675,
0.08835280686616898,
0.2059752494096756,
-0.11894825100898743,
-0.24108082056045532,
-0.023242227733135223,
0.2939184308052063,
-0.5851739048957825,
0.53402447... | |
on the other hand, the code is deeply dependent upon the GPL'ed work, such as extensively calling APIs, or tight data structure integration, then things are more likely to be considered a derived work. Ie, the "plugin" cannot exist on its own without the GPL product, and a product with this plugin installed is essentia... | [
0.40393367409706116,
0.10707607120275497,
0.08037042617797852,
0.036821912974119186,
-0.12881800532341003,
-0.3382914662361145,
-0.11467691510915756,
-0.181573748588562,
-0.021533126011490822,
-0.3203590214252472,
-0.1349470019340515,
0.6730157732963562,
-0.470553457736969,
-0.005188647657... | |
just a script that executes on its own with extremely little integration, then it may not.
Does that make more sense? | [
0.47972363233566284,
-0.08177951723337173,
-0.25754600763320923,
0.28788435459136963,
0.06841813027858734,
-0.11202475428581238,
0.35141512751579285,
0.18853910267353058,
-0.014462164603173733,
-0.43159136176109314,
0.09696369618177414,
0.23954933881759644,
-0.23405899107456207,
-0.0993584... | |
What would be the easiest way to detach a specific JPA Entity Bean that was acquired through an EntityManager. Alternatively, could I have a query return detached objects in the first place so they would essentially act as 'read only'?
The reason why I want to do this is becuase I want to modify the data within the be... | [
-0.09427420794963837,
-0.10713660717010498,
0.3250441253185272,
0.17179380357265472,
-0.06625239551067352,
-0.20363831520080566,
-0.10184629261493683,
0.026731885969638824,
-0.2131558507680893,
-0.4363363981246948,
-0.022975215688347816,
0.479638010263443,
-0.28797614574432373,
0.143959701... | |
to exclude specific objects.
Unfortunately, there's no way to disconnect one object from the entity manager in the current JPA implementation, AFAIR.
EntityManager.clear() will disconnect *all* the JPA objects, so that might not be an appropriate solution in all the cases, if you have other objects you do plan to keep... | [
0.3338867723941803,
0.038509074598550797,
0.06633260846138,
0.17933833599090576,
0.06735851615667343,
-0.3296169340610504,
0.3643660545349121,
-0.07398670166730881,
-0.18324069678783417,
-0.5069122314453125,
-0.16890549659729004,
0.2712874412536621,
-0.4627658426761627,
0.32742074131965637... | |
from deep cloning any aggregated structures you might have). | [
0.43269601464271545,
-0.0071366629563272,
-0.0047338916920125484,
0.21667155623435974,
0.13481397926807404,
0.304737389087677,
0.014840793795883656,
-0.187955841422081,
-0.2920692265033722,
-0.5871449708938599,
-0.14873583614826202,
0.2414587289094925,
-0.0626056119799614,
0.18673855066299... | |
When you get a badge or aren't logged in to stack overflow there's a groovy little notification bar at the top of the page that lets you know there's something going on.
I know the SOflow team use JQuery, but I was wondering if anyone knew of an implementation of the same style of notification system in asp.net AJAX.
... | [
0.41458213329315186,
0.03356996551156044,
0.7351700067520142,
-0.11042569577693939,
-0.14469143748283386,
-0.442754864692688,
0.21085627377033234,
0.09145191311836243,
-0.35547202825546265,
-0.8275818228721619,
-0.21418879926204681,
0.2669561505317688,
-0.43252745270729065,
0.3716500997543... | |
scanner.close();
}catch ( Exception ex ) {
ex.printStackTrace();
}
System.out.println(content);
```
But not sure if there's a better way. | [
0.3038392961025238,
0.00173099001403898,
0.6875336170196533,
-0.2315569967031479,
0.28368452191352844,
-0.30437859892845154,
0.2655121684074402,
-0.18643729388713837,
-0.20013001561164856,
-0.5825266242027283,
-0.3656252324581146,
0.4425337314605713,
-0.31191158294677734,
0.261603474617004... | |
We just added an autoupdater in our software and got some bug report saying
that the autoupdate wouldn't complete properly because the downloaded file's sha1 checksum wasn't matching. We're hosted on Amazon S3...
That's either something wrong with my code or something wrong with S3.
I reread my code for suspicious st... | [
0.7047944664955139,
0.09288287907838821,
0.13752150535583496,
0.31787461042404175,
-0.008051502518355846,
0.06582508236169815,
0.6572284698486328,
0.23649492859840393,
-0.3819091320037842,
-0.3747214674949646,
-0.02194598875939846,
0.03416784852743149,
0.201657235622406,
-0.187743589282035... | |
than the downtime a few weeks ago. None that I heard of.
They did a good job considering the one time it was down was because of an obscure server error that cascaded throughout the cloud. They was very open about it and resolve it as soon as they found out.(it happened during a weekend, iirc)
So they are pretty re... | [
0.18704232573509216,
-0.14439542591571808,
0.3769902288913727,
0.27997085452079773,
0.37059348821640015,
-0.19347675144672394,
0.6807893514633179,
0.45485758781433105,
-0.24186408519744873,
-0.5471479296684265,
0.17997269332408905,
0.5608664751052856,
0.030247312039136887,
0.03183687850832... | |
How stable is WPF not in terms of stability of a WPF program, but in terms of the 'stability' of the API itself.
Let me explain:
Microsoft is notorious for changing its whole methodology around with new technology. Like with the move from silverlight 1 to silverlight 2. With WPF, I know that MS changed a bunch of s... | [
0.49649596214294434,
-0.07985660433769226,
0.2860405147075653,
0.14004696905612946,
0.023713186383247375,
-0.39210283756256104,
0.21224431693553925,
-0.2610829174518585,
-0.20925503969192505,
-0.14061862230300903,
0.19874261319637299,
0.3598955273628235,
-0.3859582841396332,
-0.15883998572... | |
that it is stable enough now that they won't change the bulk of the system. I hate to have to unlearn stuff with every release.
I hope that the question wasn't too long winded.
MS do have a history of "fire and movement" with regards to introducing new technology into their development stack, but they also have a str... | [
0.5475158095359802,
0.19830115139484406,
0.6114221811294556,
-0.09474018961191177,
0.20002183318138123,
-0.05422130599617958,
0.22529931366443634,
0.10468973219394684,
-0.4738924503326416,
-0.1777276247739792,
0.06902499496936798,
0.31736987829208374,
0.16035139560699463,
0.212703391909599... | |
my own WPF applications with a new release of the framework was one recently in 3.5 SP1, and that was because we were unknowingly relying on a bug to get a certain behaviour from our code. We adjusted the XAML to be more correct and it started working fine.
So yeah, I think WPF is pretty "stable" as a client-side deve... | [
0.4444820284843445,
-0.00629478320479393,
0.42278987169265747,
-0.242839515209198,
-0.27043136954307556,
-0.20411236584186554,
0.17169742286205292,
-0.18314586579799652,
-0.3621218204498291,
-0.4308726489543915,
0.31638532876968384,
0.5623695254325867,
-0.1633131355047226,
-0.1245271936058... | |
I have a generic class that should allow any type, primitive or otherwise. The only problem with this is using `default(T)`. When you call default on a value type or a string, it initializes it to a reasonable value (such as empty string). When you call `default(T)` on an object, it returns null. For various reasons we... | [
0.16143928468227386,
-0.15608344972133636,
-0.03889424726366997,
-0.1638917773962021,
-0.1748221218585968,
-0.15255632996559143,
0.334017276763916,
-0.1863502860069275,
0.034357018768787384,
-0.6275582313537598,
0.04655046388506889,
0.6158159971237183,
-0.6224583983421326,
0.42789965867996... | |
return default(T);
}
else
{
return Activator.CreateInstance<T>();
}
}
```
Problem - string is not a value type, but it does not have a parameterless constructor. So, the current solution is:
```
T createDefault()
{
if(typeof(T).IsValueType || typeof(T).FullName == "System.String")
{
... | [
-0.25363731384277344,
-0.24930785596370697,
0.48106804490089417,
-0.06763768196105957,
0.1743590086698532,
0.08347576856613159,
0.39042261242866516,
-0.1482481211423874,
-0.34199273586273193,
-0.5689045190811157,
-0.29968854784965515,
0.612017035484314,
-0.500015914440155,
0.45082446932792... | |
there a nicer way to handle the string case?
Keep in mind that default(string) is null, not string.Empty. You may want a special case in your code:
```
if (typeof(T) == typeof(String)) return (T)(object)String.Empty;
``` | [
0.015717394649982452,
-0.0038875157479196787,
0.043267715722322464,
-0.2237842082977295,
0.09488913416862488,
-0.0881044864654541,
0.37945401668548584,
0.008311067707836628,
-0.054122526198625565,
-0.5608190894126892,
-0.34382399916648865,
0.7585321068763733,
-0.4290131628513336,
0.0757176... | |
If I have a query like:
```
Select EmployeeId
From Employee
Where EmployeeTypeId IN (1,2,3)
```
and I have an index on the `EmployeeTypeId` field, does SQL server still use that index?
Yeah, that's right. If your `Employee` table has 10,000 records, and only 5 records have `EmployeeTypeId` in (1,2,3), then it will... | [
0.16986516118049622,
0.1570991575717926,
0.2788955867290497,
0.18546168506145477,
0.10051099210977554,
0.11162436753511429,
-0.011519953608512878,
-0.004828989040106535,
-0.35698339343070984,
-0.5570800304412842,
0.19437211751937866,
0.3062053918838501,
-0.12047909945249557,
0.461315423250... | |
of the index tree and look at the records individually.
SQL Server does a lot of stuff to try and optimize how the queries run. However, sometimes it doesn't get the right answer. If you know that SQL Server isn't using the index, by looking at the execution plan in query analyzer, you can tell the query engine to us... | [
-0.08024819195270538,
0.028696686029434204,
0.2544202208518982,
0.05833841860294342,
-0.04044855386018753,
0.1690400093793869,
-0.14578910171985626,
-0.20416554808616638,
-0.14634497463703156,
-0.719714343547821,
0.01724802702665329,
0.3646679222583771,
-0.5140388607978821,
0.4227961599826... | |
I'm trying to wrap my head around reflection, so I decided to add plugin capability to a program that I'm writing. The only way to understand a concept is to get your fingers dirty and write the code, so I went the route of creating a simple interface library consisting of the IPlugin and IHost interfaces, a plugin imp... | [
0.2937606871128082,
-0.010612087324261665,
0.09756416827440262,
0.05707096680998802,
-0.14413219690322876,
0.13770997524261475,
0.08742550015449524,
-0.09488604217767715,
0.01834244653582573,
-0.817780077457428,
0.43250375986099243,
0.4114578068256378,
-0.31022265553474426,
-0.016537252813... | |
create instances of types. I was able to sucessfully instantiate classes with this code, but I could not cast the created object to the interface.
I tried this code but I couldn't cast object o as I expected. I stepped through the process with the debugger and the proper constructor was called. Quickwatching object o ... | [
0.009266087785363197,
0.02474852278828621,
0.1607309877872467,
-0.14315685629844666,
-0.06252795457839966,
0.07232090085744858,
0.48262283205986023,
-0.286874383687973,
-0.09969792515039444,
-0.7804912328720093,
0.10705903172492981,
0.5733259916305542,
-0.5928803086280823,
0.05980094522237... | |
continue;
// This successfully created the right object
object o = Activator.CreateInstance(type);
// This threw an Invalid Cast Exception or returned null for an "as" cast
// even though the object implemented IPlugin
IPlugin i = (IPlugin) o;
```
I made the code work with this.
```
using S... | [
0.05396241694688797,
-0.01321374624967575,
0.5568574666976929,
0.002294138539582491,
0.2326326221227646,
0.13059857487678528,
0.6539373993873596,
-0.339370995759964,
-0.2645881772041321,
-0.5889427661895752,
-0.17822761833667755,
0.44257602095603943,
-0.539106547832489,
0.1585042029619217,... | |
that the object implemented. Why?
2. Should I have been using a different overload of CreateInstance()?
3. What are the reflection related tips and tricks?
4. Is there some crucial part of reflection that I'm just not getting?
I'm just guessing here because from your code it's not obvious where do you have definition o... | [
0.5461313128471375,
0.05925796553492546,
0.2640071213245392,
0.20910820364952087,
-0.6076005697250366,
-0.13439303636550903,
0.3356408178806305,
-0.2263134866952896,
-0.12565961480140686,
-0.824632465839386,
0.46338337659835815,
0.4107950031757355,
-0.3804914951324463,
0.36568301916122437,... | |
public in your host assembly and then have your Plugin assembly **reference host application assembly**, so both assemblies have access to **the very same interface**. | [
0.397947758436203,
0.00992676056921482,
0.11410946398973465,
0.010430635884404182,
-0.21739941835403442,
-0.21288079023361206,
-0.04657869040966034,
0.22730374336242676,
-0.1274423450231552,
-0.8864086270332336,
-0.3869237005710602,
0.5114567875862122,
-0.36466047167778015,
0.1153384149074... | |
For classes that have a long list of setters that are used frequently, I found this way very useful (although I have recently read about the [Builder pattern](http://en.wikipedia.org/wiki/Builder_pattern) in *Effective Java* that is kinda the same).
Basically, all setter methods return the object itself so then you ca... | [
0.36929264664649963,
-0.22784630954265594,
-0.20796369016170502,
0.09870186448097229,
-0.32258063554763794,
-0.25157856941223145,
0.3393634855747223,
-0.2295156866312027,
0.0982578843832016,
-0.6019802689552307,
-0.06089838594198227,
0.5760679841041565,
-0.5169095396995544,
-0.061177514493... | |
to as the [named parameter idiom](http://www.cs.technion.ac.il/users/yechiel/c++-faq/named-parameter-idiom.html) in c++.
@pek
Chained invocation is one of proposals for Java 7. It says that if a method return type is void, it should implicitly return **this**. If you're interested in this topic, there is a bunch of ... | [
0.5638791918754578,
-0.10684137791395187,
-0.06431514024734497,
-0.057493697851896286,
-0.31222155690193176,
-0.12999501824378967,
0.19596384465694427,
-0.2258971929550171,
-0.18982677161693573,
-0.05601689964532852,
-0.05101542919874191,
0.406985878944397,
-0.6240576505661011,
0.241975858... | |
I've been programming for 10+ years now for the same employer and only source code control we've ever used is VSS. (Sorry - That's what they had when I started). There's only ever been a few of us; two right now and we usually work alone, so VSS has worked ok for us. So, I have two questions: 1) Should we switch to som... | [
0.8899978995323181,
0.0636945515871048,
-0.16112050414085388,
0.2873629331588745,
-0.1014457568526268,
-0.11501454561948776,
0.2887909710407257,
0.5322603583335876,
-0.07739286124706268,
-0.503872275352478,
0.11023733764886856,
0.5587742924690247,
-0.041319552809000015,
0.35917484760284424... | |
great responses!
It sounds like I should clearify a few things. We are a MS shop (Gold parntner) and we mostly do VB, ASP.NET, SQL Server, sharepoint & Biztalk work. I have CS degree so I've done x86 assembly C, C++ on DEC Unix and Slackware Linux in a "time out of mind" ...
My concern with VSS is that now I'm work... | [
0.3852217197418213,
0.17800737917423248,
0.3354169428348541,
0.1212407797574997,
-0.3437362015247345,
-0.10024444013834,
0.3134332001209259,
0.19860483705997467,
-0.3577462136745453,
-0.5394728779792786,
0.05005200579762459,
0.5082153677940369,
0.25451725721359253,
0.2484092265367508,
0.... | |
never used it and I'm not sure it helps with corruption - has anyone used the VSS LAN service? (new with VSS 2005)
I'd probably go with Subversion, if I were you. I'm a total Git fanatic at this point, but Subversion certainly has some advantages:
* simplicity
* abundance of interoperable tools
* active and supportiv... | [
0.6239434480667114,
-0.02915996126830578,
0.14690731465816498,
0.18415901064872742,
-0.41999292373657227,
-0.4705941081047058,
0.43453720211982727,
0.5498532056808472,
-0.2820698618888855,
-0.5899917483329773,
0.06867480278015137,
0.6500551104545593,
-0.08142762631177902,
0.043779317289590... | |
I now work for is using VisualSVN server, which is free. It makes setting up a Subversion repository on a Windows server stupid simple, and on the client we're using TortoiseSVN (for shell integration) and AnkhSVN for Visual Studio support. It's quite good, and should be fairly easy for even VSS users to pick up.
**La... | [
0.7003532648086548,
-0.04375506564974785,
0.21306069195270538,
-0.4096052646636963,
-0.39825186133384705,
-0.26618897914886475,
0.37604308128356934,
0.2771899104118347,
-0.24749432504177094,
-0.4532376825809479,
-0.053611285984516144,
0.2689114212989807,
-0.03216685727238655,
0.44044095277... | |
over Git. The tooling for Git is superior to (and much more diverse) what it once was, and in particular, there's GitHub and other good Git hosting providers (BitBucket, Beanstalk, Visual Studio Online, just off the top of my head). Visual Studio now has Git support out-of-the-box, and it's actually pretty good. There ... | [
0.24034953117370605,
0.16825954616069794,
0.553006112575531,
0.1223301962018013,
-0.538265585899353,
-0.3975491523742676,
-0.03719361498951912,
0.5088737607002258,
-0.20945927500724792,
-1.125016689300537,
-0.3171190023422241,
0.6637112498283386,
-0.16858141124248505,
0.2400902956724167,
... | |
would only be cheating yourself to not use it (unless you just really want to use something not-Git). Don't misunderstand - this isn't me hating on Subversion, but rather me recognizing that it's a tool from another time, rather like a straight razor for shaving. | [
0.9616882801055908,
-0.027797739952802658,
-0.2273481786251068,
0.2501319944858551,
-0.20281828939914703,
0.035169344395399094,
0.27758312225341797,
0.15833601355552673,
-0.004411750007420778,
-0.3683849275112152,
0.44783538579940796,
0.535550057888031,
0.030047673732042313,
0.125267133116... | |
I'm interested in seeing a good diff algorithm, possibly in Javascript, for rendering a side-by-side diff of two HTML pages. The idea would be that the diff would show the differences of the *rendered* HTML.
To clarify, I want to be able to see the side-by-side diffs *as* rendered output. So if I delete a paragraph, t... | [
0.5208601951599121,
-0.041086796671152115,
0.2489202916622162,
0.1575118750333786,
-0.39213719964027405,
0.12325582653284073,
0.21076419949531555,
0.17548291385173798,
-0.12673170864582062,
-0.6727110147476196,
0.06802254170179367,
0.30543649196624756,
-0.044887907803058624,
-0.02098378911... | |
to HTML to do diffs. I want to do it with two WYSIWYG editors side by side maybe. Or at least display diffs side-by-side in an end-user friendly matter.
There's another nice trick you can use to significantly improve the look of a rendered HTML diff. Although this doesn't fully solve the initial problem, it will make a... | [
0.2652019262313843,
-0.14989066123962402,
0.49283844232559204,
0.10760653018951416,
-0.677416205406189,
-0.17151466012001038,
0.1965276002883911,
-0.03276296332478523,
-0.21461482346057892,
-0.8071141839027405,
0.05207536742091179,
0.43424364924430847,
-0.35108670592308044,
-0.148169115185... | |
you can insert invisible HTML elements in each version of the diff at "checkpoints" where the diff should be vertically aligned. Then you can use a bit of client-side JavaScript to add vertical spacing around checkpoint until the sides line up vertically.
Explained in a little more detail:
If you want to use this tec... | [
0.43015289306640625,
-0.2936936318874359,
0.3430429697036743,
0.04722965508699417,
-0.12342281639575958,
-0.026198748499155045,
0.3044501841068268,
-0.32798510789871216,
-0.10132846236228943,
-0.7724740505218506,
0.04850495234131813,
0.29405930638313293,
-0.43699395656585693,
-0.2358736991... | |
on the page. Now your rendered HTML diff will be vertically aligned up to that checkpoint, and you can continue repairing vertical alignment down the rest of your side-by-side page. | [
0.3901849687099457,
-0.12805035710334778,
0.9936545491218567,
-0.07458867132663727,
-0.24019967019557953,
-0.12270008772611618,
0.5057744383811951,
0.1710001677274704,
-0.2064487636089325,
-0.9000778794288635,
-0.17783834040164948,
0.1924525499343872,
-0.05030636861920357,
0.02732723951339... | |
In .net frameworks 1.1, I use
```
System.Configuration.ConfigurationSettings.AppSettings["name"];
```
for application settings. But in .Net 2.0, it says ConfigurationSettings is obsolete and to use ConfigurationManager instead. So I swapped it out with this:
```
System.Configuration.ConfigurationManager.AppSetting... | [
0.3104049563407898,
0.2050303816795349,
0.18373291194438934,
-0.3280816078186035,
-0.12960022687911987,
-0.2840493321418762,
0.3640085756778717,
-0.06597259640693665,
-0.3449198305606842,
-1.0853639841079712,
-0.009903047233819962,
0.7575777769088745,
-0.6930544376373291,
0.111537925899028... | |
I always forget to add the reference. | [
0.4945800006389618,
0.4391585886478424,
0.1541111320257187,
-0.184363454580307,
0.10648997873067856,
-0.11347261071205139,
0.28918400406837463,
0.3196612000465393,
-0.06677769124507904,
-0.03825915977358818,
0.04715453460812569,
0.05623587593436241,
0.1733800619840622,
0.09705515205860138,... | |
**NOTE: *XMLIgnore* is NOT the answer!**
OK, so following on from my question on [XML Serialization and Inherited Types](https://stackoverflow.com/questions/20084/xml-serialization-and-inherited-types), I began integrating that code into my application I am working on, stupidly thinking all will go well..
I ran into ... | [
0.04687336087226868,
0.10100587457418442,
0.31202226877212524,
-0.011352920904755592,
-0.1345319151878357,
-0.31489333510398865,
0.1607004553079605,
-0.03512350469827652,
-0.26990729570388794,
-0.6223947405815125,
-0.057734955102205276,
0.4192076027393341,
-0.09537526965141296,
0.276033312... | |
much putting us back to square one. You cannot decorate these methods with the **XmlIgnore** attribute either, so we cannot stop it that way.
My current solution is to remove the interface implementation (in this current application, its no real big deal, just made the code prettier).
**Do I need to swallow my pride ... | [
0.26169660687446594,
-0.0388374999165535,
0.7609743475914001,
0.035184331238269806,
-0.044301822781562805,
-0.3456803262233734,
0.3003585636615753,
-0.17159923911094666,
-0.04247474670410156,
-0.9225663542747498,
0.03536439687013626,
1.0095828771591187,
0.05286579579114914,
0.1331627517938... | |
I cannot actually do this, but I do know it will work. Since their have been no other suggestions, I ended up removing the interface implementation from the code.
you can get around this problem by getting hold of the System.RunTime.Serialization dll (it's a .net 3.x assembly) and referencing it from your .net 2.0 appl... | [
0.29444265365600586,
-0.015083268284797668,
0.38649633526802063,
0.14446726441383362,
0.07931866496801376,
-0.3045511245727539,
0.4207938313484192,
-0.1000671312212944,
-0.05319374054670334,
-0.8575928807258606,
0.15754956007003784,
0.5633212924003601,
-0.31130263209342957,
0.3415596485137... | |
webservice and the xmlserializer didn't know how to deal with it properly.
If you're cool with using the .net 3.x dll in your 2.x application you should be able to use the DataContractSerializer to solve this problem | [
0.12290343642234802,
-0.15304617583751678,
0.3508008122444153,
0.3722529411315918,
-0.14095082879066467,
-0.3660275340080261,
0.1059182658791542,
0.13888105750083923,
-0.08760126680135727,
-0.86989426612854,
0.15196532011032104,
0.5042892694473267,
-0.4956322908401489,
0.12984783947467804,... | |
I know this might be a no-brainer, but please read on.
I also know it's generally not considered a good idea, maybe the worst, to let a browser run and interact with local apps, even in an intranet context.
We use Citrix for home-office, and people really like it. Now, they would like the same kind of environment at ... | [
0.7680001854896545,
0.15267108380794525,
0.3269612491130829,
0.2492191195487976,
0.3397950530052185,
-0.40360936522483826,
-0.1538729965686798,
0.45462071895599365,
-0.45994770526885986,
-0.654850423336029,
0.029150934889912605,
0.27312687039375305,
-0.01560807041823864,
0.1666212379932403... | |
been asked if it's possible. Of course, it is, with IE's good ol' ActiveX controls. And I even made a working prototype (that's where it hurts).
But now, I doubt. Isn't it madness to allow such 'dangerous' ActiveX controls, even in the '*local intranet*' zone? People will use the same browser to surf the web, can I fu... | [
0.6837688684463501,
0.14884060621261597,
0.15036557614803314,
0.295396089553833,
0.01782420091331005,
-0.3559975028038025,
0.40297436714172363,
0.2181759476661682,
-0.022353122010827065,
-0.3795166313648224,
0.05409211292862892,
0.6210157871246338,
-0.1436762660741806,
-0.0618332177400589,... | |
every protection and just run amok 'till you got hanged by the IT dept.
I'm about to confront my superiors with the fact that, even if they saw it is doable, it would be a very bad thing. So I'm desperately in need of good and strong arguments, because "*let's don't*" won't do it.
Of course, if there is nothing to be... | [
0.7651579976081848,
0.1193515956401825,
0.5346152186393738,
0.08274886012077332,
0.12373867630958557,
-0.13479293882846832,
0.3228534162044525,
0.1142200157046318,
-0.6038724184036255,
-0.07581263780593872,
-0.2341747134923935,
0.5075517296791077,
-0.1716894954442978,
0.045854415744543076,... | |
nicely arranged and classified in an orderly fashion*
I haven't used Citrix very many times, but what's it got to do with executing local applications? I don't see how "People like Citrix" and "browser executing local applications" relate at all?
If the people are accessing your Citrix server from home, and want the ... | [
0.4362291097640991,
0.08678640425205231,
0.1539110541343689,
0.3431224822998047,
0.09986652433872223,
-0.08034370094537735,
-0.17738647758960724,
-0.04810149595141411,
-0.5823748707771301,
-0.5512491464614868,
-0.12533274292945862,
0.4175228476524353,
-0.2735585570335388,
0.001635599997825... | |
in the 'local intranet' zone ? People will use the same browser to surf the web, can I fully trust IE ?*
Put it this way. IE has built-in support for AX controls. It uses it's security mechanisms to prevent them from running unless in a trusted site. By default, no sites are trusted at all.
If you use IE *at all* the... | [
0.6276717782020569,
-0.04159935563802719,
0.27190324664115906,
0.1854526251554489,
-0.126078262925148,
-0.41024237871170044,
0.5353172421455383,
0.3047211468219757,
-0.2040870487689972,
-0.5913432836532593,
-0.10754766315221786,
0.47489771246910095,
-0.2655410170555115,
-0.1656475514173507... | |
security holes that require you to reboot your computer every few weeks when MS issues a patch will continue to exist and cause problems, regardless of whether you allow ActiveX in your local intranet.
> *Isn't there a risk that Microsoft would just disable those controls in future updates / versions ?*
Since XP-SP2,... | [
0.36480313539505005,
0.3134911060333252,
0.3024621307849884,
0.278328537940979,
0.14444108307361603,
-0.23431120812892914,
0.5993911027908325,
0.4964141249656677,
-0.5272924900054932,
-0.4950253963470459,
-0.1541012078523636,
0.6359705924987793,
-0.4078960418701172,
0.20964467525482178,
... | |
worse over time. | [
0.013393471017479897,
0.15249192714691162,
0.08897371590137482,
-0.1944105625152588,
-0.5056685209274292,
0.30508551001548767,
0.5242666006088257,
0.21270793676376343,
0.32873886823654175,
-0.8703822493553162,
0.3310372829437256,
0.3200564980506897,
0.04822263866662979,
0.89495450258255,
... | |
While I've seen rare cases where *private* inheritance was needed, I've never encountered a case where *protected* inheritance is needed. Does someone have an example?
People here seem to mistake Protected class inheritance and Protected methods.
FWIW, I've never seen anyone use protected class inheritance, and if I r... | [
0.2797771096229553,
0.15071432292461395,
-0.4801093339920044,
0.12000259757041931,
-0.1599959135055542,
-0.26971742510795593,
0.32690921425819397,
0.035037048161029816,
-0.42888593673706055,
-0.37751504778862,
0.16146965324878693,
0.6704277992248535,
-0.11184161901473999,
0.096330367028713... | |
What is the best way to upload a file to a Document Library on a SharePoint server through the built-in web services that version WSS 3.0 exposes?
**Following the two initial answers...**
* We definitely need to use the Web Service layer as we will be making these calls from remote client applications.
* The WebDAV m... | [
0.5546109676361084,
0.21079571545124054,
0.2629278004169464,
0.3310737609863281,
-0.08251065015792847,
-0.31099534034729004,
0.13984160125255585,
-0.14423368871212006,
-0.26322466135025024,
-0.6131908297538757,
0.16698786616325378,
0.8141893148422241,
-0.1400178223848343,
-0.06189414113759... | |
method. Would this be the recommended way to upload a file to Document Libraries using only the WSS web service API?
I have posted our code as a suggested answer.
Example of using the WSS "Copy" Web service to upload a document to a library...
```
public static void UploadFile2007(string destinationUrl, byte[] fileDa... | [
0.16602489352226257,
-0.1307765245437622,
0.5612586140632629,
0.23675252497196198,
0.20259925723075867,
-0.14176931977272034,
0.15282070636749268,
-0.4386892020702362,
-0.3806051015853882,
-0.6231973767280579,
-0.0034952019341289997,
0.43040066957473755,
-0.5248069167137146,
0.343677103519... | |
SharePoint2007CopyService.FieldInformation();
SharePoint2007CopyService.FieldInformation[] info = { information };
// To receive the result Xml.
SharePoint2007CopyService.CopyResult[] result;
// Create the Copy web service instance configured from the web.config file.
SharePoint2007CopyService.Cop... | [
-0.35368725657463074,
0.06522024422883987,
0.8445023894309998,
0.17765629291534424,
0.3499850928783417,
-0.0428481251001358,
0.25497716665267944,
-0.29393118619918823,
-0.34392818808555603,
-0.5874584913253784,
-0.48395952582359314,
0.5622183680534363,
-0.14349913597106934,
0.2767992615699... | |
// ...
}
}
``` | [
0.239921435713768,
0.4447285830974579,
0.18011538684368134,
-0.04044157266616821,
0.2135753333568573,
-0.06704652309417725,
0.06627634167671204,
0.43473273515701294,
0.2146759033203125,
-0.6227210760116577,
-0.23130059242248535,
0.5972385406494141,
-0.22988972067832947,
0.29021191596984863... | |
Ok, I have a strange exception thrown from my code that's been bothering me for ages.
```
System.Net.Sockets.SocketException: A blocking operation was interrupted by a call to WSACancelBlockingCall
at System.Net.Sockets.Socket.Accept()
at System.Net.Sockets.TcpListener.AcceptTcpClient()
```
MSDN isn't terribly... | [
0.3068101108074188,
0.4862804710865021,
-0.002897747326642275,
-0.10347569733858109,
-0.1325196921825409,
-0.07873103767633438,
0.4451422095298767,
0.09634222090244293,
-0.32281723618507385,
-0.5098128318786621,
-0.014975651167333126,
0.12137658894062042,
-0.2698878347873688,
0.35388261079... | |
prevent it.
The code runs in a separate background thread, the method starts :
```
public virtual void Startup()
{
TcpListener serverSocket= new TcpListener(new IPEndPoint(bindAddress, port));
serverSocket.Start();
```
then I run a loop putting all new connections as jobs in a separate thread p... | [
0.01669730804860592,
0.15112946927547455,
0.5940413475036621,
-0.05635850876569748,
0.4067036807537079,
0.06748054921627045,
0.42345157265663147,
-0.027047641575336456,
-0.39765265583992004,
-0.8785892724990845,
-0.2693905234336853,
0.4725586473941803,
-0.5095183253288269,
0.41002777218818... | |
pool.AddJob(connectionHandler);
}
}
```
From there, the `pool` has it's own threads that take care of each job in it's own thread, separately.
My understanding is that AcceptTcpClient() is a blocking call, and that somehow winsock is telling the thread to stop blocking and continue execution.. but why? And wha... | [
0.31479397416114807,
-0.00003323084456496872,
0.3828135132789612,
-0.12045946717262268,
0.1839897185564041,
-0.23030124604701996,
-0.0762140229344368,
0.10606306791305542,
-0.21999573707580566,
-0.514409601688385,
0.2057184875011444,
0.5787500739097595,
-0.5065630674362183,
0.3120561540126... | |
(on the other side of the socket) or is it closed by my server. Because as it is at this moment, whenever this exception occurs, it shutsdown my listening port, effectively closing my service. If this is done from a remote location, then it's a major problem.
Alternatively, could this be simply the IIS server shuttin... | [
0.18026284873485565,
0.40636956691741943,
0.4292370080947876,
-0.17429450154304504,
-0.020029431208968163,
-0.34111353754997253,
0.6691699624061584,
0.1845095008611679,
-0.25417351722717285,
-0.5344462990760803,
-0.17743782699108124,
0.631391704082489,
-0.24751301109790802,
0.6827586889266... | |
It seems to me obfuscation is an idea that falls somewhere in the "security by obscurity" or "false sense of protection" camp. To protect intellectual property, there's copyright; to prevent security issues from being found, there's *fixing those issues*. In short, I regard it as a technical solution to a social proble... | [
0.3320696949958801,
0.32446038722991943,
0.17351022362709045,
-0.02583882585167885,
0.0018568859668448567,
-0.2542588710784912,
0.38262325525283813,
0.07042892277240753,
0.03567352890968323,
-0.39657944440841675,
-0.002259759930893779,
0.446127325296402,
-0.357712984085083,
0.2609730958938... | |
.NET Reactor completely stops any decompiling by mixing any pure .NET assembly (written in C#, VB.NET, Delphi.NET, J#, MSIL...) with native machine code.
So, basically, you throw all advantages of bytecode away in one go?
Are there good *engineering* benefits to obfuscation?
I posted a question which might help you a... | [
0.5775319337844849,
0.11567845940589905,
0.06416653096675873,
0.07626821845769882,
-0.12510143220424652,
-0.3521694540977478,
0.1984855979681015,
-0.14304165542125702,
0.1611666977405548,
-0.5678443908691406,
0.14510099589824677,
0.4788179397583008,
-0.08291298151016235,
0.1199490129947662... | |
I had used Server Explorer and related tools for graphical database development with Microsoft SQL Server in some of my learning projects - and it was a great experience. However, in my work I deal with Oracle DB and SQLite and my hobby projects use MySQL (because they are hosted on Linux).
Is there a way to leverage ... | [
0.24561642110347748,
0.1860092729330063,
0.2165507674217224,
0.2199203222990036,
-0.14573973417282104,
-0.30987125635147095,
-0.07774713635444641,
0.3060993552207947,
-0.1546897292137146,
-0.6936642527580261,
0.16072876751422882,
0.480716735124588,
0.014417804777622223,
0.13464893400669098... | |
you need to install the MyODBC connector 3.51 (or latest) on
> the development machine (NB. you can
> find this at
> <http://www.mysql.com/products/connector/odbc/>
> )
> * Create a datasource in Control Panel/Administrative Tools with a
> connection to your database. This data
> source is going to be used purely... | [
0.33165839314460754,
0.19239214062690735,
0.6442892551422119,
0.23475761711597443,
0.05704512074589729,
-0.20382674038410187,
-0.1885816603899002,
0.09123007953166962,
-0.19570143520832062,
-1.046520471572876,
-0.051418136805295944,
0.3425845801830292,
-0.18461166322231293,
0.2300458252429... | |
For the purpose of this explanation I
> will pretend that you created a MyODBC
> data source called 'AADSN' to database
> 'noddy' on mysqlserver 'SERVER01' and
> have a root password of 'fred'. The
> server can be either the Computer Name
> (found in Control
> Panel/System/Computer Name), or
> alternatively it ... | [
0.34726718068122864,
-0.1423223465681076,
0.5468958020210266,
0.2831385135650635,
-0.25804319977760315,
-0.19898170232772827,
0.18789152801036835,
0.07338690757751465,
-0.08991694450378418,
-0.9119391441345215,
0.0789029523730278,
0.37575122714042664,
-0.22087335586547852,
0.45763230323791... | |
to the provider tab and select "Microsoft OLE
> DB Provider For ODBC drivers"
> * Click Next
> * If you previously created an ODBC data source then you could just select
> that. The disadvantage of this is that
> when you install your project
> application on the client machine, the
> same data source needs to be ... | [
0.10821273177862167,
-0.05829378589987755,
0.3964788317680359,
-0.0715443566441536,
-0.18194593489170074,
-0.06268063932657242,
0.005687125492841005,
-0.1419084519147873,
-0.12167041748762131,
-0.9060531854629517,
-0.11891629546880722,
0.5106896162033081,
-0.3314704895019531,
0.51727205514... | |
that the datasource you created
> (AADSN) contains a password. I am not
> going to describe what these mean, you
> can look in the documentation for
> myodbc for that, just ensure that you
> get a "Connection Succeeded" message
> when you test the datasource. | [
0.130548357963562,
0.006202059797942638,
0.18320921063423157,
0.17673128843307495,
0.1928785741329193,
-0.5595669150352478,
0.4933675229549408,
0.20444738864898682,
-0.15320371091365814,
-0.5515028238296509,
-0.13254135847091675,
0.7159197926521301,
-0.013872873969376087,
0.059946518391370... | |
I have done Java and JSP programming in the past, but I am new to Java Server Faces and want to know if there's a set of best practices for JSF development.
Some tips:
Understand the JSF request [lifecycle](http://www.java-samples.com/showtutorial.php?tutorialid=470) and where your various pieces of code fit in it. Esp... | [
0.8023120164871216,
0.07467103749513626,
-0.030017370358109474,
0.12667645514011383,
-0.09887263178825378,
-0.1764192134141922,
0.2457723617553711,
-0.26615747809410095,
-0.20540909469127655,
-0.7153722047805786,
0.22673463821411133,
0.49784988164901733,
-0.030800415202975273,
-0.264134079... | |
I need to decrement a Javascript date by 1 day, so that it rolls back across months/years correctly. That is, if I have a date of 'Today', I want to get the date for 'Yesterday'.
It always seems to take more code than necessary when I do this, so I'm wondering if there's any simpler way.
What's the simplest way of d... | [
0.37512707710266113,
-0.001820750767365098,
0.513153076171875,
-0.18977876007556915,
0.19441546499729156,
0.08503787219524384,
0.2739362418651581,
-0.23762452602386475,
-0.08264448493719101,
-0.805697500705719,
-0.16112613677978516,
0.22722959518432617,
-0.08364556729793549,
0.346435159444... | |
I have been working on a web services related project for about the last year. Our team found [soapUI](http://www.soapui.org) near the start of our project and we have been *mostly*(\*) satisfied with it (the free version, that is).
My question is: are there other tools/clients/frameworks that you have used/currently ... | [
0.4900466203689575,
0.20940345525741577,
-0.06162538379430771,
0.058390114456415176,
-0.09118730574846268,
-0.24214303493499756,
0.36751803755760193,
0.2947545647621155,
0.0655137225985527,
-0.7962490320205688,
0.33615851402282715,
0.4402620792388916,
0.07714807242155075,
0.000058315938076... | |
it will no longer save your project, so save regularly!
This is about the only hassle I have with it (other than the general ugliness that almost every Java application has!), and I can't live without it. | [
0.591046154499054,
0.2263718545436859,
-0.003606576705351472,
0.03828107565641403,
0.18797536194324493,
-0.12654417753219604,
0.20540423691272736,
0.40960225462913513,
0.08685284852981567,
-0.33045902848243713,
0.23408673703670502,
0.43797069787979126,
-0.056200847029685974,
0.245625361800... | |
I have a simple web service operation like this one:
```
[WebMethod]
public string HelloWorld()
{
throw new Exception("HelloWorldException");
return "Hello World";
}
```
And then I have a client application that consumes the web service and then calls the operation. Obviously it will ... | [
-0.055947981774806976,
0.11726323515176773,
0.38052064180374146,
-0.3963620364665985,
0.04959230124950409,
-0.20167827606201172,
0.5358452796936035,
0.016650373116135597,
0.008890067227184772,
-0.6802206039428711,
-0.29421764612197876,
0.5114883780479431,
-0.5532352328300476,
0.49724593758... | |
}
catch(Exception e)
{
Console.WriteLine(e.ToString());
}
```
In my catch-block, what I would like to do is extract the Message of the actual exception to use it in my code. The exception caught is a `SoapException`, which is fine, but it's `Message` property is like this...
```
System.Web.Servic... | [
-0.28294894099235535,
0.09821345657110214,
0.3410676121711731,
-0.24213537573814392,
0.10630708187818527,
-0.124117910861969,
0.2372007668018341,
-0.022555818781256676,
0.038556333631277084,
-0.3716222047805786,
-0.040281932801008224,
0.2633354961872101,
-0.3932507336139679,
0.168015643954... | |
`Message` property of the `InnerException` (the `HelloWorldException` text in my sample), can anyone help with that? If you can avoid it, please don't suggest parsing the `Message` property of the `SoapException`.
Unfortunately I don't think this is possible.
The exception you are raising in your web service code is b... | [
0.3108413815498352,
0.26043492555618286,
-0.09367615729570389,
0.018446292728185654,
-0.18427062034606934,
-0.21926110982894897,
0.611886739730835,
0.21628031134605408,
-0.0847599059343338,
-0.7224162220954895,
0.12014012783765793,
0.5471153259277344,
-0.40533891320228577,
0.26004967093467... | |
in error conditions then I recommend returning a custom class from your web service which can have an "Error" property which contains your information.
```
[WebMethod]
public ResponseClass HelloWorld()
{
ResponseClass c = new ResponseClass();
try
{
throw new Exception("Exception Text");
// The following... | [
-0.10745331645011902,
-0.08756576478481293,
0.4431424140930176,
-0.1297757476568222,
0.03654323145747185,
-0.14679096639156342,
0.7265968918800354,
-0.15583139657974243,
-0.14064280688762665,
-0.6529318690299988,
-0.2861763834953308,
0.6807217597961426,
-0.30818411707878113,
0.273352295160... | |
I want to know what are the options to do some scripting jobs in windows platform.
I need functionality like file manipulations, registry editing etc. Can files be edited using scripting tools?
What other functionality does windows scripting tools offer?
Can everything that can be done using the Windows GUI be done usi... | [
0.2705087661743164,
0.07011903077363968,
0.19876012206077576,
0.2606063187122345,
0.004618994425982237,
-0.20817634463310242,
-0.015969445928931236,
0.27805712819099426,
-0.23869584500789642,
-0.4272523820400238,
-0.049288298934698105,
0.7280182242393494,
0.11130423843860626,
0.02399213612... | |
Suppose that I have a form that contains three 10 fields: field1..field10. I store the form data in one or more database tables, probably using 10 database columns.
Now suppose a few months later that I want to add 3 more fields. And in the future I may add/delete fields from this form based on changing requirements.... | [
0.49787330627441406,
0.14990496635437012,
0.709687352180481,
-0.12947191298007965,
-0.038278158754110336,
0.14798346161842346,
0.08485947549343109,
-0.23380424082279205,
-0.30902940034866333,
-0.737401008605957,
0.16326695680618286,
0.2226315438747406,
-0.32267698645591736,
0.0157271698117... | |
how do I design a data model that is loosely coupled with my UI? A concrete use case is a CRM system that is extensible/customizable by users.
Unless you have a really good reason to do this, then this generally is a bad idea. It makes it very difficult to optimize and scale the database.
If you absolutely must do it,... | [
0.28965798020362854,
0.20355665683746338,
0.11807188391685486,
0.3629770278930664,
0.22852815687656403,
-0.14252202212810516,
-0.09685831516981125,
-0.2287951409816742,
-0.09860856831073761,
-0.38635215163230896,
0.2170727252960205,
0.4339253306388855,
-0.06103631481528282,
0.0156075237318... | |
[Using this question](https://stackoverflow.com/questions/32149/does-anyone-have-a-good-proper-case-algorithm) as the base is there an alogrithm or coding example to change some text to Pascal or Camel casing.
For example:
```
mynameisfred
```
becomes
```
Camel: myNameIsFred
Pascal: MyNameIsFred
```
I found a thr... | [
0.013778680935502052,
0.3377305865287781,
0.23092031478881836,
0.25020724534988403,
-0.25610116124153137,
-0.14810724556446075,
0.18919621407985687,
-0.10934653133153915,
-0.0775194987654686,
-0.3482723534107208,
-0.13258415460586548,
0.4238879084587097,
-0.3327030837535858,
0.087454862892... | |
to prefer. You could add some extra code to specify that you'd prefer more common words, but again misses would occur (Peter Norvig wrote a very small spelling corrector over at <http://norvig.com/spell-correct.html> which *might* help algorithm-wise, I wrote a [C# implementation](http://web.archive.org/web/20080930045... | [
0.03733283653855324,
0.20254072546958923,
0.41223016381263733,
-0.16313350200653076,
-0.3804023861885071,
0.15909132361412048,
0.5149457454681396,
-0.26879408955574036,
-0.0283762626349926,
-0.5906063914299011,
-0.09624438732862473,
0.2855122685432434,
-0.29085955023765564,
-0.282650977373... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.