text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
};
foreach(var row in qry)
{
Console.WriteLine("{0}: {1}", row.ID, row.Name);
}
}
```
And here's the TSQL - pretty much what we want (it isn't `ISNULL`, but it | [
0.018980592489242554,
0.09580937772989273,
0.6214351654052734,
-0.26572200655937195,
0.14354866743087769,
-0.18244017660617828,
-0.03368741273880005,
-0.047865208238363266,
0.09234264492988586,
-0.37239140272140503,
-0.11857420951128006,
0.42676329612731934,
-0.24473509192466736,
0.0060432... | |
is close enough):
```
SELECT [t0].[EmployeeID] AS [ID],
(CASE
WHEN [t2].[test] IS NULL THEN CONVERT(NVarChar(10),@p0)
ELSE [t2].[FirstName]
END) AS [Name]
FROM [dbo].[Employees] AS [t0]
LEFT OUTER JOIN (
SELECT 1 AS [test], [t1].[FirstName], [t1].[ReportsTo]
FROM [dbo].[Employees] AS [... | [
-0.07528095692396164,
0.0805187076330185,
0.38482701778411865,
-0.14403606951236725,
-0.08270346373319626,
0.1725420206785202,
0.240333691239357,
-0.48405349254608154,
0.024666614830493927,
-0.3935490548610687,
-0.3107195794582367,
0.42323511838912964,
-0.28352484107017517,
0.2387761175632... | |
In .NET I have already tried the configuration below successfully:
```
<system.net>
<connectionManagement>
<add address="*" maxconnection="100"/>
</connectionManagement>
</system.net>
```
Using 100 concurrent HttpWebRequest they answered almost simultaneously (less than a second).
I wonder why som... | [
0.07877232134342194,
-0.34773555397987366,
0.5935418605804443,
0.11988291889429092,
-0.2791488468647003,
-0.11871297657489777,
0.3039364814758301,
-0.27413278818130493,
-0.5284733176231384,
-0.87633216381073,
0.03289195895195007,
0.3103099763393402,
-0.2331700325012207,
-0.0423964262008667... | |
in Windows Client OSes.
<http://support.microsoft.com/kb/328459> | [
0.005575722083449364,
-0.010649762116372585,
0.10835130512714386,
-0.011568683199584484,
0.30745959281921387,
0.20389465987682343,
0.2074669450521469,
0.1723862737417221,
-0.2433544397354126,
-0.42435142397880554,
-0.6072929501533508,
0.3689040243625641,
-0.2467365860939026,
0.102154210209... | |
Is there a viable alternative to Hibernate? Preferably something that doesn't base itself on JPA.
Our problem is that we are building a complex (as in, many objects refer to each other) stateful RIA system. It seems as Hibernate is designed to be used mainly on one-off applications - JSF and the like.
The problem is ... | [
0.04514707624912262,
-0.13158732652664185,
0.2083403617143631,
0.2254505604505539,
-0.37064680457115173,
-0.2740989029407501,
0.4505380392074585,
0.02303243800997734,
-0.11243731528520584,
-0.3521845042705536,
-0.028174830600619316,
0.32540133595466614,
-0.5085507035255432,
0.1455439329147... | |
and throws an exception, the whole session is invalidated, thus the lazy loaded objects break. Then there's all kinds of stuff that just don't work for us (like implicit data persisting of data from outside an initialized transaction).
My poor explanations aside, the bottom line is that Hibernate does magic we don't l... | [
0.392874151468277,
0.03150457888841629,
0.2362447828054428,
0.2610284388065338,
-0.2449711561203003,
-0.31603115797042847,
0.5053985714912415,
0.29820218682289124,
-0.09046375751495361,
-0.5863004326820374,
0.10250496119260788,
0.33218052983283997,
-0.22788065671920776,
0.15508684515953064... | |
terminology, and thank you all for your corrections and insightful answers. Those who corrected me, you are all correct, I meant JPA, not EJB.
As mentioned, JPA <> EJB, they're not even related. EJB 3 happens to leverage JPA, but that's about it. We have a bunch of stuff using JPA that doesn't even come close to runnin... | [
0.38583117723464966,
0.22925058007240295,
0.13276685774326324,
0.33735695481300354,
-0.42338865995407104,
-0.39673149585723877,
0.26008617877960205,
0.054030146449804306,
-0.1400781273841858,
-0.5682368874549866,
0.04389370232820511,
0.42127862572669983,
-0.320901483297348,
0.2073840647935... | |
is in itself one or more transactions, rather than each request being a portion of a larger transaction.
There is also obvious confusion when you used the term "stateless" and "transaction" in the same discussion, as transactions are inherently stateful.
Your big issue is simply managing your transactions manually.
... | [
0.000483588723000139,
-0.03477362543344498,
0.12197218090295792,
0.3120161294937134,
0.014720574021339417,
-0.24538521468639374,
0.27858200669288635,
0.019022265449166298,
-0.42704522609710693,
-0.5991044044494629,
-0.08307486772537231,
0.2533339858055115,
-0.23751282691955566,
0.209762796... | |
Databases transaction facility.
That is, in simple terms, you get a connection to the DB, stuff it in the session, and make sure that for the duration of the transaction, all of your HTTP requests go through not only that same session, but in such a way that the actual Connection is still valid. Specifically, I don't ... | [
0.4254244863986969,
0.05506071448326111,
0.14118029177188873,
0.43296414613723755,
0.08612604439258575,
-0.4057663381099701,
-0.09247936308383942,
0.052999962121248245,
-0.4743458926677704,
-0.49567103385925293,
0.0223721694201231,
0.3650878071784973,
-0.16023816168308258,
0.49795368313789... | |
running transaction has "user interactions" within it, i.e. you start the DB transaction and wait for the user to "do something", then, quite simply, that design is all wrong. You DO NOT want to do that, as long lived transactions, especially in interactive environments, are just simply Bad. Like "Crossing The Streams"... | [
0.27191615104675293,
-0.1512274444103241,
-0.05962758511304855,
0.2720218002796173,
-0.06431692093610764,
-0.3095216453075409,
0.22238200902938843,
0.41092047095298767,
-0.3647713363170624,
-0.5913796424865723,
0.06538058817386627,
0.27409133315086365,
-0.5813361406326294,
0.22567637264728... | |
to implement your own transactions. That means you get to design your system and data flows as if you have no transactional capability on the back end.
That essentially means that you will need to come up with your own mechanism to "commit" your data.
A good way to do this would be where you build up your data increm... | [
0.37859833240509033,
0.02747434936463833,
0.09328608959913254,
0.33090823888778687,
0.19516894221305847,
0.12487137317657471,
-0.035026345402002335,
-0.22866715490818024,
-0.597101628780365,
-0.5296444892883301,
0.14910604059696198,
0.4694494605064392,
-0.4119729995727539,
0.07444993406534... | |
and finally call a routine that runs through all of the data you just stored, and marks it all as "saved" in a single transaction mini-batch process.
Meanwhile, all of your other SQL "ignores" data that is not "saved". Throw in some time stamps and have a reaper process scavenging (if you really want to bother -- it m... | [
0.3829771876335144,
0.037766192108392715,
-0.018342964351177216,
0.30183619260787964,
0.018208744004368782,
-0.21957725286483765,
0.25333738327026367,
0.17516633868217468,
-0.3861159682273865,
-0.6209991574287415,
0.18592998385429382,
0.440263032913208,
-0.23194998502731323,
0.171382546424... | |
like to me, then you'll need to do something like this.
Mind, in all of this the persistence tech really has nothing to do with it. The problem is how you use your transactions, rather than the tech so much. | [
0.3950674831867218,
0.06660912930965424,
0.2894037067890167,
0.426886647939682,
0.1053449958562851,
-0.11328426003456116,
0.11143087595701218,
0.3843059837818146,
-0.30607882142066956,
-0.32190677523612976,
0.5486578345298767,
0.7968316674232483,
-0.04498184472322464,
0.05976277217268944,
... | |
### Duplicate:
> [How to indent a selection in gvim (win32)?](https://stackoverflow.com/questions/318923/how-to-indent-a-selection-in-gvim-win32)
>
>
> [How do I indent multiple lines quickly in vi?](https://stackoverflow.com/questions/235839/how-do-i-indent-multiple-lines-quickly-in-vi)
Using vim under linux I can... | [
-0.0337858609855175,
-0.04258934035897255,
0.643187403678894,
-0.11935361474752426,
-0.05285368859767914,
0.11116340756416321,
0.29289597272872925,
-0.15278169512748718,
-0.569948136806488,
-0.7815850377082825,
-0.21416054666042328,
0.46608299016952515,
-0.43051984906196594,
0.090407535433... | |
the VISUAL mode. | [
0.07880565524101257,
-0.11231809109449387,
-0.10902974754571915,
0.23074215650558472,
-0.4597072899341583,
-0.2404339462518692,
0.1629759520292282,
0.39730405807495117,
0.1845245659351349,
-0.5142601132392883,
-0.20932728052139282,
0.9429287910461426,
-0.4596277177333832,
-0.14691688120365... | |
I've created a web deployment project using the template for Visual Studio 2008 for a ASP.NET 3.5 web application (not web site).
I compiled the project which created the files needed for deployment. I copied the resulting folders (bin, static files and all folders with the aspx placeholders etc.) to a staging server ... | [
0.37668201327323914,
0.18951979279518127,
0.3521604537963867,
-0.2010970413684845,
-0.03869103267788887,
-0.06154949963092804,
0.3077237010002136,
-0.31694158911705017,
-0.2911911606788635,
-0.7004427909851074,
-0.07159744948148727,
0.4368264675140381,
-0.19813667237758636,
-0.086787343025... | |
VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp,
Boolean allowBuildInPrecompile) +8756366
```
If I check the option, everything is fine (I guess because the actual aspx/ascx are still there in their original form).
Any idea what I am missing here? Is there some setting or special file I forgot to ... | [
0.20674477517604828,
-0.45793744921684265,
0.4165254235267639,
0.19935336709022522,
-0.04568446800112724,
-0.08804423362016678,
0.3794231414794922,
0.20099930465221405,
-0.38385292887687683,
-0.9258345365524292,
0.22184857726097107,
0.5936949253082275,
-0.36687663197517395,
0.0088112400844... | |
tool, and should
> not be deleted!
Delete everything in your bin folder and publish the web again.
Make sure you take the files from the directory where you did the publishing.
Make sure you copy the `.compiled` files contained in the bin folder too. | [
0.37045732140541077,
-0.1525503247976303,
0.14373630285263062,
0.14032308757305145,
0.018719324842095375,
-0.6906495094299316,
0.578697144985199,
0.1546679139137268,
-0.0363859087228775,
-0.9042299389839172,
-0.3905639052391052,
0.758256196975708,
-0.3646520972251892,
0.03465709835290909,
... | |
Has anyone got any suggestions on how I can create a very simple graph for a web application? It is to show energy consumption levels per month for a year at a time.
So basically I want it to look like (assuming my ASCII works)
> --
> \ --
Yeah it doesn't so I've changed my open id image to the sample
<http://mrb... | [
0.6912190914154053,
0.004147973842918873,
0.5918759107589722,
0.08807828277349472,
-0.2158278524875641,
-0.06776145100593567,
0.008968121372163296,
0.03024221397936344,
-0.40044528245925903,
-0.7173606157302856,
0.43420010805130005,
0.2748411297798157,
-0.08660819381475449,
0.0882912501692... | |
I have a problem with uninitialized proxies in nhibernate
**The Domain Model**
Let's say I have two parallel class hierarchies: Animal, Dog, Cat and AnimalOwner, DogOwner, CatOwner where Dog and Cat both inherit from Animal and DogOwner and CatOwner both inherit from AnimalOwner. AnimalOwner has a reference of type A... | [
0.1388319879770279,
-0.09450607001781464,
-0.08230076730251312,
0.17821824550628662,
-0.07281682640314102,
0.3042890727519989,
-0.037749916315078735,
-0.11886019259691238,
-0.04132235422730446,
-0.45675718784332275,
0.13522537052631378,
0.4377104938030243,
-0.2448028326034546,
0.6401764750... | |
DogOwner : AnimalOwner
{
// even more properties
}
public class CatOwner : AnimalOwner
{
// even more properties
}
```
The classes have proper nhibernate mapping, all properties are persistent and everything that can be lazy loaded is lazy loaded.
The application business logic only let you to set a Dog in a ... | [
0.050533559173345566,
0.26878735423088074,
0.1853981763124466,
0.03809858858585358,
0.24523669481277466,
-0.038078948855400085,
0.09990812838077545,
-0.34495818614959717,
-0.2700970768928528,
-0.6087289452552795,
-0.2578786313533783,
0.5892760753631592,
-0.33600306510925293,
0.608704447746... | |
already in memory - in this case I get an nhibernate "uninitialized proxy" but the cast throws an exception because nhibernate genrates a proxy for Animal and not for Dog.
I understand that this is how nhibernate works, but I need to know the type without loading the object - or, more correctly I need the uninitialize... | [
-0.13349434733390808,
0.02391909807920456,
0.3763107359409332,
0.1957637518644333,
-0.1647321730852127,
0.07939427345991135,
0.11960463225841522,
-0.0420425608754158,
-0.11901229619979858,
-0.7339487671852112,
0.14772097766399384,
0.2990554869174957,
-0.155438631772995,
0.4443703591823578,... | |
is much more complicated then the example and the classes have many references between them, using eager loading or adding joins to the queries is out of the question for performance reasons.
* I have full control of the source code, the hbm mapping and the database schema and I can change them any way I want (as long ... | [
0.5047658681869507,
0.13523879647254944,
-0.13416148722171783,
0.05908232927322388,
-0.21620391309261322,
-0.03524312749505043,
0.359527587890625,
0.0011795309837907553,
-0.2432767152786255,
-0.575369656085968,
0.15367268025875092,
0.8509289026260376,
-0.17757970094680786,
-0.0067276651971... | |
say it's mostly in memory anyway.
```
<class name="Animal" lazy="false">
<!-- ... -->
</class>
```
As a variant of that, you could also use `no-proxy`, see [this post](http://ayende.com/blog/4378/nhibernate-new-feature-no-proxy-associations):
```
<property name="OwnedAnimal" lazy="no-proxy"/>
```
As far as I can ... | [
0.017727764323353767,
0.2506493628025055,
0.049073848873376846,
0.1627558022737503,
0.0455135703086853,
0.07850475609302521,
0.019097810611128807,
-0.17896920442581177,
-0.19217205047607422,
-0.617757260799408,
-0.01657557301223278,
0.5359300971031189,
-0.21137890219688416,
0.3838864564895... | |
class="Dog"/>
</class>
```
**OR**
You mess a little around with NHibernate, as proposed in [this blog](http://guildsocial.web703.discountasp.net/dasblogce/2009/07/24/NHibernateProxyCastingWithSubclasses.aspx). NH is actually able to return the real object behind the proxy. Here a bit simpler implementation as propos... | [
-0.15999795496463776,
-0.1447259485721588,
0.49471887946128845,
-0.28834134340286255,
-0.271891325712204,
0.019954580813646317,
0.34169554710388184,
-0.0429266057908535,
-0.09418298304080963,
-0.5373848676681519,
-0.116326242685318,
0.3534511625766754,
-0.47454607486724854,
0.5268250107765... | |
}
else
{
return entity as T;
}
}
```
which can be used like this:
```
Dog dog = dogOwner.OwnedAnimal.CastEntity<Dog>();
``` | [
0.35650935769081116,
0.08899146318435669,
-0.0610358864068985,
-0.12328290939331055,
0.32950347661972046,
0.09454727172851562,
0.07896318286657333,
-0.29568225145339966,
-0.000398448173655197,
-0.40742969512939453,
-0.17915236949920654,
0.5809981226921082,
-0.3100253939628601,
0.5448057055... | |
How do you size your form in vb6 so that form lower border is at top of taskbar
It depends what you mean by jailbreak. In the simple case, you should be able to see if Cydia is installed and go by that - something like
```
NSString *filePath = @"/Applications/Cydia.app";
if ([[NSFileManager defaultManager] fileExistsA... | [
0.3225748836994171,
-0.3226495385169983,
0.19080457091331482,
0.1026725098490715,
-0.26721057295799255,
-0.2885247468948364,
0.16844002902507782,
-0.02072252333164215,
-0.4228551387786865,
-0.7699952125549316,
-0.12616674602031708,
0.6934778690338135,
-0.2569601833820343,
-0.03961050137877... | |
I need to retrieve, in my Win32 standalone program, **a list of currently installed Internet Explorer add-ons** (Browser Helper Objects), and - if possible - their enabled/disabled status.
Since anti-spyware programs (or e.g. [Autoruns](https://technet.microsoft.com/cs-cz/sysinternals/bb963902)) can get this list from... | [
0.163617804646492,
0.3479941487312317,
0.5746800303459167,
-0.14815518260002136,
0.06227508932352066,
0.12354043871164322,
0.18138566613197327,
0.01353884395211935,
-0.31604084372520447,
-0.5943427681922913,
-0.34636515378952026,
0.28174206614494324,
-0.359470933675766,
0.3719833493232727,... | |
Learning from my [last question](https://stackoverflow.com/questions/413311/c-do-method-names-get-compiled-into-the-exe), most **member names** seem to get included in the Project Output.
Looking at some decompilers like [9rays](http://www.9rays.net/products/Spices.Decompiler/), [Salamander](http://www.remotesoft.com/... | [
0.3804551064968109,
0.030792640522122383,
0.17521291971206665,
0.34852349758148193,
0.1762079894542694,
-0.14169713854789734,
0.35303279757499695,
-0.16714796423912048,
-0.18661972880363464,
-0.3487187325954437,
-0.12853825092315674,
0.4977673888206482,
-0.04229052737355232,
0.263353377580... | |
that you control
* Code it in a language so not easy to decompile such as C/C++ | [
0.23448151350021362,
0.043964777141809464,
-0.364135205745697,
0.2980004549026489,
0.04500861465930939,
-0.36306920647621155,
0.1443689465522766,
-0.1287834644317627,
-0.0019564980175346136,
-0.22223292291164398,
-0.31394657492637634,
0.281891793012619,
-0.5398293733596802,
0.0749970525503... | |
Made solution change: I am trying to display a html table of data.. In my controller I start an object as null and then pass the object as a reference to update the object based on the info in the DB like so "user control named(Indexcontrol.ascx)":
```
List<dataob> data = null;
dataManager target = new... | [
0.14737442135810852,
-0.11444548517465591,
0.6900321841239929,
-0.1162763312458992,
-0.22816607356071472,
-0.023300740867853165,
0.23298613727092743,
-0.2807583212852478,
-0.0659598559141159,
-0.792203962802887,
-0.02570449374616146,
0.31759917736053467,
-0.5484213829040527,
0.375957608222... | |
this.ViewData.Model =data;
return View("Index");
```
I am trying to see how to display a table once the information is in the data object using a similar route all this is in the user control
```
<tbody >
<% foreach (businesslayer.dataob m in ViewData.Model)
{ %>
<tr>
<td><%= m.ID%></td>
<td><%= m.Date... | [
-0.048606205731630325,
0.006550591439008713,
0.6835816502571106,
-0.22368304431438446,
0.03222852572798729,
-0.001749467453919351,
0.2922825217247009,
-0.21248988807201385,
-0.4551006555557251,
-0.946433424949646,
-0.0466524213552475,
0.5682649612426758,
-0.5311886072158813,
0.331199914216... | |
can see in this case, why:
```
ViewData["data"] = data;
```
is preferrable to
```
ViewData.Model = data;
```
If you used a strongly typed View page, you could then avoid the need to cast the Model as well. Then you could simply do:
```
<% foreach (dataob m in ViewData.Model) { %>
<tr>
<td><%= m.... | [
-0.24991369247436523,
-0.21718688309192657,
0.45368871092796326,
0.06974785774946213,
0.04748045280575752,
0.06408493220806122,
0.07534078508615494,
-0.478669673204422,
-0.14409147202968597,
-0.6427217125892639,
-0.2217564433813095,
0.6924505829811096,
-0.24106982350349426,
0.0971894040703... | |
I've read a number of good articles about the Model-View-ViewModel pattern and my team intends to implement this pattern in the latest version of our app. I still don't quite get ALL the bits that go together to make this work. I'd like to find a good example of this pattern that I can work through. Something on a smal... | [
0.8336564898490906,
0.024177715182304382,
0.06181896850466728,
0.0890854001045227,
0.3777032196521759,
-0.002488301135599613,
0.19947510957717896,
0.1723395437002182,
-0.3911507725715637,
-0.704967737197876,
0.3041203022003174,
0.14510203897953033,
-0.13957373797893524,
-0.0735254958271980... | |
might not be very helpful yet :-) Think of the model as the data your application works with, say a person. Now a person has a birthday and you might want to have a form to enter the person's birthday. Suppose we are just using a simple TextBox the date shows up something like 01-02-2009 12:00:00AM. For starters we don... | [
0.15979841351509094,
-0.45844167470932007,
0.7202975749969482,
0.09497343748807907,
-0.12735268473625183,
0.0630340650677681,
0.0911315456032753,
0.20826119184494019,
-0.34433773159980774,
-0.53262859582901,
0.20373395085334778,
0.3548583388328552,
0.22593611478805542,
0.2675100862979889,
... | |
values, year, month and day. In the property set it tries to build a date from the different values and displays any errors that might occur.
So simply said a ViewModel is a Model wrapper specifically geared towards a particular view (display). It eliminates most IValueConvertors at the same time.
Josh Smith has a ni... | [
0.1915505826473236,
-0.10187356919050217,
0.37859201431274414,
0.18038468062877655,
-0.2695179879665375,
0.04466089978814125,
0.21315205097198486,
-0.2421717643737793,
-0.23184607923030853,
-0.15044920146465302,
0.004584347363561392,
0.2722865045070648,
-0.24423949420452118,
0.084574654698... | |
There is a directed graph (not necessarily connected) of which one or more nodes are distinguished as sources. Any node accessible from any one of the sources is considered 'lit'.
Now suppose one of the edges is removed. The problem is to determine the nodes that were previously lit and are not lit anymore.
An analogy... | [
-0.08451550453901291,
-0.11805115640163422,
0.45591408014297485,
0.1346031278371811,
-0.17662404477596283,
-0.3072225749492645,
0.06897932291030884,
-0.12380710989236832,
-0.2654546797275543,
-0.6004515886306763,
-0.25763654708862305,
0.2613706886768341,
-0.570643961429596,
0.0715520679950... | |
O(m \* sqrt(n))-time updates (*amortized*) and O(sqrt(n))-time queries on a possibly-cyclic graph (where m is the number of edges and n the number of nodes). If the graph is acyclic, this can be improved to O(m)-time updates (*amortized*) and O(n/log n)-time queries.
It's always possible you could do better than this ... | [
-0.10564100742340088,
-0.13001129031181335,
0.3418084979057312,
0.05001755431294441,
0.1775989681482315,
0.4891069829463959,
0.06554834544658661,
-0.29169970750808716,
-0.4051438271999359,
-0.7066200971603394,
-0.3387031555175781,
0.5831248164176941,
-0.24947631359100342,
0.068719923496246... | |
I've been trying to collect analytics for my website and realized that Google analytics was not setup to capture data for visitors to www.example.com (it was only setup for example.com). I noticed that many sites will redirect me to www.example.com when I type only example.com. However, stackoverflow does exactly the o... | [
0.4926041066646576,
0.2839896082878113,
0.2710803151130676,
-0.15786176919937134,
-0.10257725417613983,
0.09162010252475739,
0.3543795943260193,
0.0972905308008194,
-0.5817713737487793,
-0.4196244776248932,
0.2648293077945709,
0.27466320991516113,
-0.24465081095695496,
0.3260880410671234,
... | |
never type it in when I type domains in my browser.
History lesson.
There was a time when the Web did not dominate the Internet. An organisation with a domain (e.g. my university, aston.ac.uk) would typically have several hostnames set up for various services: gopher.aston.ac.uk (Gopher is a precursor to the World-wid... | [
0.7968657612800598,
0.03642033040523529,
0.6261114478111267,
0.12223019450902939,
-0.3507852852344513,
-0.0430387407541275,
-0.043067850172519684,
0.4941524267196655,
-0.24584457278251648,
-0.2397947758436203,
-0.12282413989305496,
0.02810378186404705,
-0.24015182256698608,
0.3698299527168... | |
part actually told the client what protocol to use.
That convention remains popular today, and it does make some amount of sense. However it's not technically required.
I think Slashdot was one of the first web sites to decide to use a www-less URL. Their head man Rob Malda refers to "TCWWW" - "The Cursed WWW" - when... | [
0.8421521782875061,
-0.21349626779556274,
0.3612876832485199,
0.12508687376976013,
-0.05820969119668007,
-0.32980877161026,
0.22971832752227783,
0.5256202816963196,
-0.1492779701948166,
0.00009348287130706012,
0.17130282521247864,
0.1988050937652588,
-0.1713358461856842,
0.3927688598632812... | |
Redirecting from other forms to the canonical form is good practice. | [
0.2751532196998596,
0.05679844692349434,
0.24345862865447998,
-0.13101442158222198,
-0.26568958163261414,
0.04575216397643089,
0.7881380319595337,
-0.2145993560552597,
-0.06350309401750565,
-0.6881816983222961,
-0.3216498792171478,
0.48498260974884033,
-0.11073514819145203,
-0.225305423140... | |
The system I am using has `gnuplot` installed in `/usr/bin`. I don't have root, but I needed a newer version of `gnuplot`, so I installed it to `$HOME/usr/bin`.
I added `$HOME/usr/bin` to my path, but it still executes the one in `/usr/bin` if I just use the gnuplot command. I'd rather not have to specify `$HOME/usr/b... | [
0.055264998227357864,
0.023614805191755295,
0.4407017230987549,
-0.09853965044021606,
0.2485312968492508,
-0.18926894664764404,
0.15470458567142487,
0.15302100777626038,
-0.22887709736824036,
-0.9779172539710999,
0.0150002958253026,
0.4681486487388611,
-0.40724337100982666,
0.3777269721031... | |
My company has recently started using Scrum; we've done 2 sprints. We're still learning, but we've definitely exposed and fixed some problems in our development process already. So in general I think it has been good for us.
In reading many of the internet musings about Scrum from evangelists, cynics and everyone in b... | [
0.6141493320465088,
0.5427747368812561,
-0.19213642179965973,
-0.3902184069156647,
-0.08543228358030319,
0.08318021893501282,
0.5337162017822266,
0.01719783805310726,
-0.07413660734891891,
-0.4229795038700104,
0.15872037410736084,
0.30897456407546997,
-0.1633164882659912,
-0.19967605173587... | |
values in the Agile Manifesto matter.
Examples of these can be seen in the responses to these SO questions:
* [Have you had a bad experience with Scrum or Sprinting?](https://stackoverflow.com/questions/272253/have-you-had-a-bad-experience-with-scrum-or-sprinting)
* [Is Scrum evil?](https://stackoverflow.com/question... | [
0.3834884762763977,
0.28069597482681274,
0.05819312483072281,
-0.10305727273225784,
-0.21753881871700287,
-0.0749371275305748,
0.40546363592147827,
-0.26368433237075806,
-0.009456679224967957,
0.029317272827029228,
0.3220542073249817,
0.8418127298355103,
-0.1310720145702362,
-0.25774502754... | |
urgent customer support issues still have incredible power to disrupt everyone's planning, for a few examples.
**My question is:** in trying to solve these and other issues, is it better to try and be closer to the official Scrum processes, better to be closer to some of our pre-Scrum processes, or better to meditate ... | [
0.258389413356781,
-0.0910879373550415,
0.3399934768676758,
-0.062403202056884766,
-0.06617172807455063,
0.09674755483865738,
0.15533986687660217,
-0.03244972974061966,
-0.22651158273220062,
-0.32482460141181946,
0.11793714016675949,
0.6985752582550049,
0.11111676692962646,
-0.230842575430... | |
not agile and bound to suffer the same sorts of problems that traditional, plan-driven processes have. It may be that this is a temporary condition as you are just getting used to things, but you need to start releasing soon (and regularly).
You'll always have the problem with show-stoppers, but you may be able to hel... | [
0.4014403522014618,
-0.5160673260688782,
0.17183917760849,
0.45208361744880676,
0.24096235632896423,
-0.28851327300071716,
0.5426907539367676,
0.15435856580734253,
-0.12847790122032166,
-0.44287627935409546,
0.18732640147209167,
0.3853584825992584,
-0.11613761633634567,
-0.4080691039562225... | |
them less disruptive. You also need to be upfront with the customer that the disruptions are actually causing your pace to suffer. They may voluntarily choose to wait if they know that their chosen features are being delayed by some requests.
Another observation that I would make is that, as with almost anything, it's... | [
0.583679735660553,
-0.13751304149627686,
-0.23323212563991547,
0.4179483950138092,
-0.049721382558345795,
0.05579400062561035,
0.6429675221443176,
0.19534049928188324,
-0.3973524570465088,
-0.8675574660301208,
0.10676661133766174,
0.6095857620239258,
0.10876928269863129,
-0.029285620898008... | |
Until you really get it, the things you change may hurt or help -- you really have no idea since you don't have the experience that tells you how things ought to be working. Unless your Scrum master is really experienced, you may want to hew closer to the defined practices until you've got a few more sprints under your... | [
0.4554811716079712,
-0.3370225727558136,
-0.3656198978424072,
-0.059760913252830505,
-0.18288610875606537,
0.034098267555236816,
0.5489121079444885,
-0.12180391699075699,
-0.17138512432575226,
-0.5077861547470093,
0.3665821850299835,
0.5157615542411804,
0.08671155571937561,
-0.236902400851... | |
Even when on the page, the EnableViewState property is disabled, I am still seeing some viewstate existing on the page:
```
"<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="VkBAB3n5LZYtY+nTzk1vEu1P/6QLf4qzFIKzpFRJe3DMf8UseUA/1RsO409HJX4QhkROSP0umoJvatjK/q+jXA==" />"
```
My question is why?
This could... | [
0.02648436650633812,
0.17853660881519318,
0.6783038973808289,
0.06516852229833603,
-0.0004588342271745205,
-0.1927013248205185,
0.455935537815094,
-0.035310640931129456,
-0.04473387822508812,
-0.7675648331642151,
-0.071587935090065,
0.570381224155426,
-0.2949240803718567,
0.252259850502014... | |
**Hi All,**
It's clear wehn I change any control and then posts back the SaveViewState method saves the changes and apply them agian after postback, see the folowing code notice that server-side-code put in a scrispt in my code liske this <% %>
```
switch (myQuestion.QuestionType)
{
case 0:
{
... | [
-0.12125450372695923,
-0.05221885070204735,
0.69661545753479,
-0.17949409782886505,
0.29018765687942505,
0.04626652970910072,
0.4537676274776459,
-0.20144213736057281,
-0.08414437621831894,
-0.5243425965309143,
-0.19573743641376495,
0.6761453151702881,
-0.08345898240804672,
0.2856373190879... | |
{
ListItem i = new ListItem();
i.Value = item;
i.Text = item;
rdlistAnswers.Items.Add(i);
} | [
-0.2309078872203827,
-0.2262107878923416,
0.3897736668586731,
-0.321036696434021,
0.004507447127252817,
0.3574213683605194,
0.34664785861968994,
-0.5808072090148926,
-0.5905664563179016,
-0.4627607762813568,
-0.5670139193534851,
0.4468137323856354,
-0.48581361770629883,
0.36887022852897644... | |
**//the folowing line of code is not a comment, it's a tag for asp control
//but I commeted it due to editing requirements**
//<asp:RadioButtonList ID="rdlistAnswers" runat="server"</asp:RadioButtonList>
break;
}
case 1:
{
cblistAnswers.Items.Clear();
... | [
0.1474989503622055,
-0.13881665468215942,
0.3582295775413513,
-0.4569465219974518,
0.08978193253278732,
-0.06855087727308273,
0.38842618465423584,
-0.6421371102333069,
-0.14788365364074707,
-0.2825864553451538,
-0.04659924656152725,
0.5146238803863525,
-0.6854865550994873,
0.18592226505279... | |
{
ListItem i = new ListItem();
i.Value = item;
i.Text = item;
cblistAnswers.Items.Add(i);
} | [
-0.03009108267724514,
-0.10977364331483841,
0.4760262668132782,
-0.4137864410877228,
0.09956472367048264,
0.3830314576625824,
0.21121887862682343,
-0.5801306962966919,
-0.7680720090866089,
-0.5044103264808655,
-0.4035469889640808,
0.30526500940322876,
-0.579526960849762,
0.5371323227882385... | |
<asp:CheckBoxList ID="cblistAnswers" runat="server" </asp:CheckBoxList>
}
}
```
**Now** I Can see my list fileed but when I select an item and push next button the SelectedItem property of the list remains null, **what's the reason??**
**Thanks All**
I found the reason, the code script placed in .aspx fi... | [
0.1947358250617981,
-0.10813255608081818,
0.5880078673362732,
-0.17708691954612732,
-0.1742134839296341,
0.000745665340218693,
0.33633479475975037,
-0.2798272967338562,
-0.26801836490631104,
-0.9447619318962097,
-0.12390965968370438,
0.3065699636936188,
0.008505684323608875,
0.108096756041... | |
I use Django for my website and I want to know whether there is a work around for testing secure pages in Development server. As a temporary workaround, I wont use HTTP to check the webpages in dev server, which I think is not a correct way? What do you think?
[This](http://www.ianlewis.org/en/testing-https-djangos-dev... | [
0.7181603908538818,
0.2716471254825592,
-0.023267924785614014,
0.07267726957798004,
-0.49459579586982727,
-0.5001561641693115,
0.39852777123451233,
0.08845163881778717,
-0.013799654319882393,
-0.4722152650356293,
0.32111576199531555,
0.4864008128643036,
-0.0391460582613945,
-0.106071047484... | |
I am calling CreateFile() to create a file in the Program Data directory. I'm using SHGetSpecialFolderPath() to get the dir name.
I have a user with Vista for whom CreateFile() is returning error 5 (Access Denied). It would help if I knew where CreateFile() was actually attempting to create the file so we can check hi... | [
0.20695152878761292,
0.24639500677585602,
-0.05133361741900444,
-0.324413925409317,
-0.10664690285921097,
-0.21190932393074036,
0.5146471858024597,
0.13136781752109528,
0.11031392216682434,
-0.6853774785995483,
-0.0701647624373436,
0.7292040586471558,
-0.5339183211326599,
0.454102784395217... | |
Data\blah blah" as the path, I don't think that's actually where the path is. I think German Vista uses the German word for "Program Data". I would like to be able to tell the user "This is the exact path where we are trying to create the file. Check your permissions on this folder."
I know you can get the a path from... | [
0.6120296120643616,
0.18831700086593628,
0.5325475931167603,
0.2670787572860718,
0.12459082901477814,
-0.34219473600387573,
0.40745604038238525,
-0.1407272070646286,
-0.17037704586982727,
-0.603038489818573,
-0.18210183084011078,
0.7685167193412781,
-0.08136105537414551,
0.2024634927511215... | |
Process Monitor and watch what it does:
<http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx> | [
0.3971409499645233,
0.11423852294683456,
0.6234681606292725,
0.07608591020107269,
0.3798673450946808,
0.023745562881231308,
-0.06489378213882446,
0.07197289168834686,
-0.6337496638298035,
-0.5717609524726868,
-0.27798599004745483,
0.4707900583744049,
0.1784639060497284,
0.24631501734256744... | |
I'm trying to find out current user name for my sharepoint application. There are more that one way how to do this. However the sharepoint way returns misleading value.
```
System.Security.Principal.WindowsIdentity.GetCurrent().Name // returns MY_COMPUTER\\my_user
HttpContext.Current.User.Identity.Name // returns MY... | [
0.14484333992004395,
0.3939994275569916,
0.7353367805480957,
-0.08583912998437881,
0.13152550160884857,
-0.1447422355413437,
0.42814910411834717,
0.010710121132433414,
-0.28203216195106506,
-0.7339552044868469,
-0.09875211119651794,
0.5733579993247986,
-0.13297107815742493,
0.4141768515110... | |
I am trying to figure out the internals of the windows workflow foundation. So, we have some software components and we intertwine them in the form of a workflow be it a condition based sequential workflow or a state machine workflow. Now, I am thinking (I may be wrong here) that doesnt the same apply to IoC + Dependen... | [
0.6448333859443665,
-0.2584294080734253,
0.004353947471827269,
-0.003392626764252782,
-0.18914788961410522,
-0.37943053245544434,
0.22713056206703186,
-0.34484484791755676,
-0.08083131164312363,
-0.8431200981140137,
0.01012623030692339,
0.42199254035949707,
-0.3711822032928467,
0.022924814... | |
add dependencies to the workflow runtime, the service locator, and workflow activities and retrieve these services from the workflow runtime.
A ServiceLocator and IOC pattern are similar and have the same purpose in decoupling dependencies. The apporach is different though in an IOC container pushing dependencies in w... | [
0.08613823354244232,
-0.1791725605726242,
0.30689650774002075,
0.054693080484867096,
-0.046592846512794495,
0.06293881684541702,
-0.03129997476935387,
-0.25911587476730347,
-0.15836672484874725,
-0.8007321357727051,
-0.37573662400245667,
0.5313192009925842,
-0.4493550956249237,
-0.23790185... | |
I'm the sole developer for an academic consortium headquartered at a university in the northeast. All of my development work involves internal tools, mostly in Java, so nothing that is released to the public. Right now, I feel like my development workflow is very "hobbyist" and is nothing like you would see at an exper... | [
0.7522105574607849,
0.4643001854419708,
-0.2737402021884918,
-0.028656847774982452,
0.25809305906295776,
-0.08517526835203171,
0.012472854927182198,
0.4793434739112854,
-0.003855580696836114,
-0.5059751868247986,
0.10035412758588791,
0.4459801912307739,
0.31429794430732727,
0.1908976137638... | |
more technologies on my resume. Right now my workflow is something like this:
* I do most of my development work in Eclipse on my laptop. Everything is saved locally on my laptop, and I don't use a VCS, nor do I really backup my code (except for occasionally emailing it to myself so I can see it on a different compute... | [
0.8748947978019714,
0.33355697989463806,
-0.09291820228099823,
-0.05588492378592491,
0.053592804819345474,
0.03159673511981964,
0.16552507877349854,
0.31296998262405396,
-0.2617499828338623,
-1.0066890716552734,
0.09233376383781433,
0.5824937224388123,
0.3072225749492645,
0.011904899962246... | |
an executable .jar of my project. If I use external .jar libraries, I use the Fat-Jar plugin to include those .jars in my executable .jar.
* After I create the .jar, I manually upload it to the server via SFTP and test it with something like `java -jar MyProject.jar`.
Oh yeah, did I mention that I don't unit test?
T... | [
0.4673134386539459,
0.27892187237739563,
0.27562299370765686,
0.12541116774082184,
-0.31029337644577026,
-0.19305437803268433,
0.23529502749443054,
0.2353423684835434,
0.15084208548069,
-0.8978965282440186,
0.06784021109342575,
0.49554941058158875,
0.013779504224658012,
0.07753176987171173... | |
on Windows, which is my primary development OS. So, I'm leaning toward SVN, which I do have some experience with. I do have my own personal server, and I think I'll use that for my source control, because I'd rather be my own admin than have to deal with university bureaucracy. I had some trouble setting up SVN once be... | [
0.5046206712722778,
0.26419150829315186,
0.33777257800102234,
0.11331328004598618,
-0.10497426986694336,
-0.08591483533382416,
0.1404743790626526,
0.5497543215751648,
-0.28625407814979553,
-0.7453604340553284,
-0.044651202857494354,
0.9028553366661072,
0.02230164222419262,
0.07057093828916... | |
the server. I've heard about tools like Ant and Maven - do these apply to what I want to do? How can I get started using those?
I suppose I'd eventually like to integrate unit testing with JUnit too. Even though it probably should be, that is not my primary concern right now, because so far my applications aren't ter... | [
0.4339008629322052,
0.12055424600839615,
0.09140445291996002,
0.13800063729286194,
-0.08039069175720215,
0.2938801944255829,
-0.21277576684951782,
0.15218928456306458,
-0.131893128156662,
-0.7726768255233765,
0.23703980445861816,
0.579245924949646,
0.11909682303667068,
-0.03053990937769413... | |
methodologies can/should I be using to not only make my job easier, but also just to expose myself to some technologies that would be expected requisite knowledge at a dedicated development house?
---
edit: Thanks for the great answers so far. I didn't mean to suggest that I wanted to make my workflow "enterprisey" j... | [
0.5101318359375,
0.008633529767394066,
-0.03648320212960243,
0.4724840223789215,
0.24933987855911255,
-0.23902861773967743,
0.37028375267982483,
0.02110861986875534,
-0.26503637433052063,
-0.6291956305503845,
0.14105543494224548,
0.5789247155189514,
0.07891397923231125,
-0.3715305626392364... | |
what you need to do.
Using Subversion (or other VCS) is a must. Although it might be wise to setup a separate SVN repository for your work-related code rather than using a personal one.
You can integrate Subversion with Eclipse using a plugin like Subclipse, which I've found works pretty well.
I'd definitely use Ant... | [
0.47333595156669617,
-0.38853728771209717,
-0.13441047072410583,
0.04146869480609894,
-0.30167996883392334,
-0.3416372537612915,
0.19133339822292328,
-0.05363140627741814,
-0.1450757086277008,
-0.5792602300643921,
0.05078792944550514,
0.4279918372631073,
-0.28441837430000305,
-0.1452539563... | |
build and deployment steps - so that when you create a final JAR package you can be sure that it's been unit tested as that is part of your ant script. The best way to get started with ant is to look at some examples, and read through the [manual](http://ant.apache.org/manual/index.html).
As for unit testing - you can... | [
0.32520005106925964,
0.07786121964454651,
-0.06506555527448654,
-0.11655566096305847,
-0.2250545173883438,
-0.09119132906198502,
0.30583304166793823,
-0.3378981649875641,
-0.02276294305920601,
-0.8872177600860596,
0.22436600923538208,
0.6084854602813721,
0.3366207182407379,
-0.249410837888... | |
indicator about how effective your tests are.
It may also be worth your while setting up something like Trac - it's important to be able to keep track of bugs, and a wiki is surprisingly useful for documentation.
In other words, all of this sounds like you're on the right lines, you just need to get started using som... | [
0.5336753129959106,
0.050542064011096954,
-0.11988483369350433,
0.5323395133018494,
0.23121438920497894,
-0.33932387828826904,
0.4495544731616974,
0.19124139845371246,
0.045622460544109344,
-0.4514184892177582,
0.42084071040153503,
0.36826810240745544,
0.15149955451488495,
-0.3083945512771... | |
I have a select statement with calculated columns and I would like to use the value of one calculated column in another. Is this possible? Here is a contrived example to show what I am trying to do.
```
SELECT [calcval1] = CASE Statement, [calcval2] = [calcval1] * .25
```
No.
All the results of a single row from a s... | [
0.17223110795021057,
0.12679265439510345,
0.20092061161994934,
-0.11786811798810959,
0.14202609658241272,
0.13468214869499207,
-0.02064519189298153,
-0.46838700771331787,
-0.08132035285234451,
-0.671295702457428,
0.1509454995393753,
0.6181269884109497,
-0.5542032122612,
0.06892645359039307... | |
computed columns as macros or mini-views which inject a little calculation whenever you call them.
For example, these columns will be identical, always:
```
-- assume that 'Calc' is a computed column equal to Salaray*.25
SELECT Calc, Salary*.25 Calc2 FROM YourTable
```
Also keep in mind that the `persisted` option ... | [
0.08836248517036438,
-0.017191866412758827,
0.6628597974777222,
0.09159839153289795,
-0.17927800118923187,
0.4205681085586548,
-0.39432987570762634,
-0.07808744162321091,
-0.34732189774513245,
-0.4840427339076996,
0.3908872902393341,
0.7022292017936707,
-0.05080936476588249,
0.093157656490... | |
In Spring 2.0, is there a quick way to have a list of the current servlet context's mapped URLs from inside a Controller method?
I'm writing a method called `getMappedUrls()`, and the purpose of this method is to show what urls are mapped in the current servlet context.
This method is to be used to generate an small ... | [
-0.07646787166595459,
-0.10655634850263596,
0.6417851448059082,
0.04554004594683647,
-0.08326580375432968,
-0.28745368123054504,
-0.1605134755373001,
-0.12326300144195557,
-0.436601847410202,
-0.6790310740470886,
-0.2191638946533203,
0.2685365676879883,
-0.29290831089019775,
0.098579458892... | |
urls.add(url);
}
```
This sounds like an interesting idea, and so I went to dig inside the *Spring Web MVC* source code to find out if there is a way.
First I turned on debug for my spring framework logging (*log4j*), and I noticed mappings are done in my `org.springframework.web.servlet.mvc.annotation.DefaultAnnotat... | [
0.15959441661834717,
0.01717783324420452,
0.34433549642562866,
-0.06987443566322327,
-0.035523172467947006,
-0.14983206987380981,
0.24283131957054138,
-0.3280795216560364,
-0.3229586184024811,
-0.6864469647407532,
-0.06447192281484604,
0.29290321469306946,
-0.33822739124298096,
0.170598164... | |
(well obviously they have to use it). And it turns out that `DispatcherServlet` holds another list of handlerMappings
`org.springframework.web.servlet.DispatcherServlet#handlerMappings`
The bad news here is, well it is a protected class instance variable.
So my best recommendation (if this can be considered best) th... | [
0.22463425993919373,
0.06809106469154358,
0.2013123780488968,
0.047674424946308136,
-0.18572382628917694,
-0.30206242203712463,
0.4407584071159363,
-0.1322016417980194,
-0.29752254486083984,
-0.6314122676849365,
0.07855739444494247,
0.44145652651786804,
-0.46602314710617065,
0.078625313937... | |
out from my usage of `@RequestMapping` annotations. I am unsure how different it is if you are mapping urls in your spring configuration files. | [
0.37786513566970825,
-0.21988345682621002,
0.10751449316740036,
0.24428227543830872,
0.048690687865018845,
-0.11608757823705673,
0.005261832848191261,
0.2194272130727768,
-0.258794367313385,
-0.6061927080154419,
0.11492689698934555,
0.08541210740804672,
0.1040448471903801,
0.19368444383144... | |
It's very annoying to have this limitation on my development box, when there won't ever be any users other than me.
I'm aware of [the standard workarounds](http://www.debian-administration.org/articles/386), but none of them do exactly what I want:
1. [authbind](http://en.wikipedia.org/wiki/Authbind) (The version in ... | [
0.34737950563430786,
-0.11900140345096588,
0.09266693890094757,
0.011797351762652397,
-0.3815174102783203,
-0.477234810590744,
0.6936395168304443,
-0.2063535898923874,
-0.2866511344909668,
-0.7061548233032227,
-0.1396937370300293,
0.6600449681282043,
-0.41234007477760315,
-0.01682622544467... | |
extra complexity.)
Is there some simple `sysctl` variable to allow non-root processes to bind to "privileged" ports (ports less than 1024) on Linux, or am I just out of luck?
EDIT: In some cases, you can [use capabilities](https://stackoverflow.com/questions/413807/is-there-a-way-for-non-root-processes-to-bind-to-pri... | [
-0.09040399640798569,
-0.03232014551758766,
0.46061447262763977,
0.02807084657251835,
0.19813396036624908,
-0.20628154277801514,
0.00471073854714632,
0.05460628867149353,
-0.4974815547466278,
-0.9086253046989441,
-0.30722299218177795,
0.6800989508628845,
0.13968688249588013,
-0.03426816314... | |
debian package `libcap2-bin`.
Now for the caveats:
1. You will need at least a 2.6.24 kernel
2. This won't work if your file is a script. (i.e. uses a `#!` line to launch an interpreter). In this case, as far I as understand, you'd have to apply the capability to the interpreter executable itself, which of course is ... | [
0.3313896358013153,
-0.17557525634765625,
-0.08777066320180893,
-0.0017136745154857635,
-0.12989385426044464,
-0.7041435241699219,
0.38824617862701416,
-0.06088091433048248,
0.05165790766477585,
-0.6409337520599365,
-0.2893839180469513,
0.8443333506584167,
-0.8226674199104309,
-0.045224513... | |
`program` uses its own `.../lib/`, you might have to look into another option like port forwarding.
**Resources:**
* [capabilities(7) man page](http://www.kernel.org/doc/man-pages/online/pages/man7/capabilities.7.html). Read this long and hard if you're going to use capabilities in a production environment. There are... | [
0.20119939744472504,
-0.23105095326900482,
0.30500850081443787,
-0.2159336656332016,
-0.21909041702747345,
0.043413177132606506,
0.03383179381489754,
-0.21014197170734406,
-0.38924723863601685,
-0.57515549659729,
-0.2906647324562073,
0.5461745858192444,
0.009999929927289486,
0.083112627267... | |
Is there any RDBMS that implements something like `SELECT * EXCEPT`? What I'm after is getting all of the fields except a specific TEXT/BLOB field, and I'd like to just select everything else.
Almost daily I complain to my coworkers that someone should implement this... It's terribly annoying that it doesn't exist.
*... | [
0.6366465091705322,
0.2505005896091461,
-0.25085896253585815,
-0.2146536409854889,
0.06390243768692017,
-0.354903906583786,
0.22565823793411255,
0.25933605432510376,
-0.18249720335006714,
-0.4162112772464752,
-0.20358891785144806,
0.4021492898464203,
-0.4518726170063019,
0.0612086318433284... | |
I've stated in some of the comments, where I work is strictly a commandline shop, doing everything over ssh. This makes it difficult to use any gui tools (external connections to the database aren't allowed), etc etc.
Thanks for the suggestions though.
As others have said, it is not a good idea to do this in a query b... | [
0.5257267951965332,
0.2562922239303589,
0.0031556051690131426,
-0.006669579539448023,
-0.011890723370015621,
-0.39698779582977295,
0.26630309224128723,
0.09893278032541275,
-0.411368727684021,
-0.5013619661331177,
0.29975420236587524,
0.3800547122955322,
-0.12738117575645447,
0.33367764949... | |
this does all the columns except the "description" column. You could easily turn this into a function or stored proc.
```
declare @sql varchar(8000),
@table_id int,
@col_id int
set @sql = 'select '
select @table_id = id from sysobjects where name = 'MY_Table'
select @col_id = min(colid) from syscolumns wher... | [
-0.2057408094406128,
0.003462337888777256,
0.4661934971809387,
-0.031878575682640076,
0.08541993796825409,
0.3371236324310303,
-0.4322413504123688,
-0.2378423660993576,
-0.2068125158548355,
-0.586142897605896,
-0.08684110641479492,
0.518395185470581,
-0.3629010319709778,
0.2090173661708831... | |
name <> 'description'
if (@col_id is not null) set @sql = @sql + ','
print @sql
end
set @sql = @sql + ' from MY_table'
exec @sql
``` | [
0.026069648563861847,
0.2536735534667969,
0.5535246729850769,
0.018860813230276108,
0.01574796810746193,
-0.2991054952144623,
-0.1413622498512268,
-0.13470152020454407,
0.036644432693719864,
-0.5009599328041077,
-0.34928420186042786,
0.060080770403146744,
-0.2764650285243988,
0.65759235620... | |
In C#, I'm marking some classes' properties with attributes and I'm using reflection to find these properties in order to perform gets and sets on them. I've found, however, that getting/setting with reflection in this manner is approximately 10x as slow as POCO gets/sets. Besides dropping the fundamental scenario desc... | [
0.3642774820327759,
-0.10025947540998459,
-0.029163988307118416,
0.23764824867248535,
-0.2088940590620041,
-0.40348124504089355,
0.009576545096933842,
-0.32935774326324463,
-0.0030710475984960794,
-0.5315354466438293,
-0.0459173358976841,
0.7822656631469727,
-0.03248840942978859,
-0.199506... | |
`Func<T>` and an `Action<T>` for the getter and setter respectively) using [Delegate.CreateDelegate](http://msdn.microsoft.com/en-us/library/system.delegate.createdelegate.aspx). This can make a massive difference, and isn't terribly hard. If you're already going to cache the PropertyInfo, just cache the delegate pair ... | [
0.1712086945772171,
-0.13727523386478424,
-0.0330972895026207,
0.1330372393131256,
-0.23061254620552063,
-0.3775518238544464,
0.06966706365346909,
-0.18088214099407196,
-0.36019167304039,
-0.6569656729698181,
0.21538414061069489,
0.3825741112232208,
-0.19197794795036316,
0.3518661260604858... | |
I’ve just created a WCF service/client and it all works fine when running on the same machine. But can’t figure out how to configure it to run on different machines. Do you know how?
At the moment the URI is set to <http://localHost:8000>......
But I think I want something like net.tcp://MyServer:8000…..
Any ideas w... | [
0.39836010336875916,
0.10387364774942398,
0.5544887781143188,
-0.01991666853427887,
-0.12925229966640472,
-0.26458653807640076,
0.21637965738773346,
0.12678416073322296,
-0.37142425775527954,
-1.0934154987335205,
0.07864178717136383,
0.3901631236076355,
-0.22242017090320587,
0.634403824806... | |
client. Each will need to be properly configured with the address, binding, and contract in the appropriate configuration section for it. So on the server you'd have something like this:
```
<configuration>
<system.serviceModel>
<services>
<service name="YourService">
<endpoint ... | [
-0.005023596342653036,
-0.1539653092622757,
0.48574891686439514,
-0.07410241663455963,
-0.06149129569530487,
0.02822759561240673,
0.1652192771434784,
-0.08121450990438461,
-0.13646021485328674,
-0.8350210785865784,
-0.290596604347229,
0.3761151432991028,
-0.14287525415420532,
0.19055753946... | |
contract="Your.IContract" />
</service>
</services>
</system.serviceModel>
</configuration>
```
And on the client you'd have this:
```
<configuration>
<system.serviceModel>
<client>
<endpoint address="http://MyServer:8000/..." | [
-0.07663857936859131,
-0.16415508091449738,
0.7543647885322571,
-0.34718161821365356,
0.20534877479076385,
0.4263733923435211,
-0.031693994998931885,
-0.07144192606210709,
-0.2794781029224396,
-0.9955483078956604,
-0.11598610877990723,
0.3158516585826874,
-0.06298308074474335,
0.0398816987... | |
binding="BasicHttpBinding"
contract="Your.IContract"
name="ClientEndpoint" />
</client>
</system.serviceModel>
</configuration>
```
The main thing is to make sure that the client and server can communicate with each other over the specified port and protocol (pr... | [
0.15989945828914642,
-0.06628786027431488,
0.8832527995109558,
-0.18600890040397644,
-0.34739431738853455,
-0.36823782324790955,
0.3060191571712494,
-0.4040893316268921,
-0.11248937994241714,
-0.9114492535591125,
-0.17246101796627045,
0.39678558707237244,
-0.46179094910621643,
0.3227702677... | |
protocol may impact other aspects of your service (security is a big one, but also what you can and cannot do with the service). | [
0.4163215160369873,
-0.08365447074174881,
0.22158607840538025,
0.19138245284557343,
0.21779856085777283,
-0.6232512593269348,
0.7020717263221741,
-0.40233924984931946,
-0.22234439849853516,
-0.6008696556091309,
-0.34189069271087646,
0.07095316052436829,
-0.06711475551128387,
-0.28903660178... | |
How is it possible to programmatically select an item in a WPF `TreeView`? The `ItemsControl` model seems to prevent it.
It's a real pain for some strange reason, you have to use ContainerFromItem to get the container, then invoke the select method.
```
// selectedItemObject is not a TreeViewItem, but an item from t... | [
-0.19841822981834412,
-0.38786545395851135,
0.37008875608444214,
0.11773549765348434,
0.02622351236641407,
-0.2067095786333084,
0.39701947569847107,
-0.3149231970310211,
-0.46067529916763306,
-0.5688425302505493,
-0.35946306586265564,
0.08138428628444672,
-0.35009971261024475,
0.2249548584... | |
now. | [
0.032106269150972366,
0.04793430492281914,
0.2999139726161957,
0.43912920355796814,
-0.03667667135596275,
-0.14124169945716858,
-0.028357256203889847,
-0.0362284891307354,
0.21697589755058289,
-0.7718469500541687,
-0.1092231273651123,
0.15729491412639618,
-0.13066275417804718,
0.3253974318... | |
To be specific, I was trying this code:
```
package hello;
public class Hello {
Clock clock = new Clock();
public static void main(String args[]) {
clock.sayTime();
}
}
```
But it gave the error
> Cannot access non-static field in static method main
So I changed the declaration of `clock` t... | [
0.23606480658054352,
-0.04565555974841118,
0.3298991620540619,
-0.3644348680973053,
0.08084757626056671,
-0.09021896868944168,
0.4390600621700287,
-0.37316232919692993,
-0.24370907247066498,
-0.19512087106704712,
-0.1198149025440216,
0.5117805004119873,
-0.7085002660751343,
0.4173790812492... | |
the class instead of a specific instance.
It means that **only one instance of a `static` field exists**[1] even if you create a million instances of the class or you don't create any. It will be shared by all instances.
Since `static` methods also do not belong to a specific instance, they can't refer to instance me... | [
0.07376730442047119,
-0.09964857995510101,
0.1439039558172226,
0.30958104133605957,
0.03551015630364418,
-0.2851598262786865,
0.3934366703033447,
0.31672385334968567,
-0.36062487959861755,
-0.27641645073890686,
-0.07937953621149063,
0.1416756808757782,
-0.3894509971141815,
0.79909634590148... | |
`static` members can access instance members **through an object reference**.
Example:
```
public class Example {
private static boolean staticField;
private boolean instanceField;
public static void main(String[] args) {
// a static method can access static fields
staticField = true;
... | [
-0.17022563517093658,
0.125487819314003,
0.34539222717285156,
-0.27418822050094604,
-0.005896052345633507,
0.26506543159484863,
0.3470386862754822,
-0.04861326515674591,
-0.48518526554107666,
-0.12620531022548676,
-0.3736633062362671,
0.4181467294692993,
-0.6991893649101257,
0.565621972084... | |
true;
}
```
[1]: Depending on the runtime characteristics, it can be one per ClassLoader or AppDomain or thread, but that is beside the point. | [
0.1525011956691742,
-0.1587073653936386,
0.1729595959186554,
-0.19985687732696533,
0.12029906362295151,
-0.17509381473064423,
0.258166640996933,
0.07128354907035828,
0.12692414224147797,
-0.3690967261791229,
-0.3418659567832947,
0.5977867245674133,
-0.5625795722007751,
0.11709467321634293,... | |
I have created a new solution with a minimal amount of code that represents the issue I am having. This is the simplest I could get it down to.
```
namespace EntServ.BusinessObjects
{
/// <summary>
/// Summary description for EntServSession
/// </summary>
public class EntServSession
{
publi... | [
-0.18911677598953247,
0.11267748475074768,
0.2886996269226074,
-0.053214844316244125,
0.27341005206108093,
-0.11176086217164993,
0.30247989296913147,
-0.15161865949630737,
-0.3412024676799774,
-0.9008685350418091,
-0.46344077587127686,
0.515929639339447,
-0.32680317759513855,
0.20295250415... | |
{
EntServSession ret = null;
if (username == "test" && password == "pass")
ret = new EntServSession();
return ret;
}
}
}
```
I started with a new solution, and created one class in the App\_Code folder with one static | [
-0.1551360934972763,
0.014408512972295284,
0.4751236140727997,
-0.26729393005371094,
0.09489786624908447,
0.459012895822525,
0.5617085695266724,
-0.4545522928237915,
-0.06627755612134933,
-0.872576892375946,
-0.5086051821708679,
0.5404132604598999,
-0.6537161469459534,
0.024883050471544266... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.