text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
of one surface in video memory.
When application is fullscreen (and everything was set up correctly to enable flipping), primary surface is just one of the application backbuffers, and flipped to another backbuffer every frame. It is the most efficient way of presenting on the screen, but it requires application to ow... | [
0.18542607128620148,
-0.08910476416349411,
0.8942932486534119,
0.14125676453113556,
0.06930413097143173,
-0.08336158096790314,
-0.04859301447868347,
-0.241326704621315,
-0.3089870810508728,
-0.9067336320877075,
-0.18574762344360352,
0.4701356887817383,
-0.13569283485412598,
0.2771391868591... | |
the other applications visible on the screen), so it's not as efficient as fullscreen presentation. XP worked that way.
When DWM is composing the screen, things get even more complicated.
Here, DWM owns the primary surface and needs to draw application windows there. To make it possible, every window has an associated... | [
0.2282087355852127,
-0.09454024583101273,
1.1159015893936157,
0.010784807614982128,
-0.30001744627952576,
0.12145471572875977,
-0.019095079973340034,
-0.4604620933532715,
-0.16710329055786133,
-0.7308789491653442,
0.10086467862129211,
0.3029974102973938,
-0.35746726393699646,
0.27493795752... | |
blit from a redirection surface to the primary by DWM, which is, again, some overhead compared to fullscreen.
Note all of that additional work is on the GPU, so it doesn't affect CPU performance.
Stuff to read further:
<http://blogs.msdn.com/greg_schechter/archive/2006/03/19/555087.aspx>
<http://blogs.msdn.com/greg... | [
0.1953105926513672,
-0.10509710013866425,
0.4805968403816223,
-0.6422472596168518,
-0.24574311077594757,
0.08513486385345459,
0.048532113432884216,
0.006412664894014597,
-0.20671117305755615,
-0.5854940414428711,
-0.08024754375219345,
0.6660258769989014,
-0.5736148953437805,
0.103300608694... | |
i'm using vs installer to build a setup package for my vb6 app.
and the problem is i can see that under the project explorer there's a list of dependencies attached to my exe file.
[alt text http://img505.imageshack.us/img505/9696/croppercapture259lr8.png](http://img505.imageshack.us/img505/9696/croppercapture259lr8.p... | [
0.3383772671222687,
0.018385952338576317,
0.6754744648933411,
0.09117070585489273,
0.07672843337059021,
-0.10853659361600876,
0.19252429902553558,
-0.11898399144411087,
-0.30625128746032715,
-0.710243284702301,
-0.06808119267225266,
0.8212876319885254,
-0.3844733238220215,
0.11712710559368... | |
over too?
It is not guaranteed that all those dlls will be present on the system that the software is being installed on. So they need to be included in your installer. From there you have two choices.
You can install them in your windows system folders or in your application folder. The difference is that if you ins... | [
1.0142115354537964,
-0.23436196148395538,
0.49155935645103455,
0.39073294401168823,
0.18554164469242096,
-0.0370180569589138,
0.02653753198683262,
0.07026954740285873,
-0.25385040044784546,
-0.7849171161651611,
0.007048731669783592,
0.9319668412208557,
-0.2906135320663452,
0.48599970340728... | |
folder will break any older version that depend on older version of the components.
Installing in the application folder rarely doesn't work if a component depends on other components that can't be updated. When this occurs it is usually with with Microsoft libraries. They have gotten better over the years on this is... | [
0.3948771059513092,
-0.005542645696550608,
0.5125500559806824,
0.13182048499584198,
0.09294382482767105,
-0.3536922335624695,
0.08218540996313095,
-0.1633613109588623,
-0.4244350492954254,
-0.6773363351821899,
-0.23617641627788544,
0.4913715124130249,
-0.33569079637527466,
0.01576465740799... | |
it even if you are using CreateObject and Variant types to access it.
I will admit the whole process is idiosyncratic and is one of the sources for the stories about DLL Hell. Start with the MSDN article, use wikipedia, and of course ask further questions here. | [
0.46787217259407043,
0.0439237542450428,
-0.0019852113910019398,
0.41607359051704407,
-0.25209319591522217,
-0.5012897253036499,
0.10376133024692535,
0.4097018241882324,
0.09302421659231186,
-0.39976415038108826,
-0.11610206961631775,
0.5309082269668579,
-0.12885922193527222,
0.39523437619... | |
What is BPEL? I'm looking for some nice simple examples of BPEL usage. The wikipedia page isn't too enlightening. How about a "Hello world" in BPEL? A BPEL shell? A BPEL IDE?
BPEL is just a way to build centralized control of disparate but interdependent systems from a centralized place.
Users can create rules, workf... | [
0.39270880818367004,
0.06592418253421783,
0.11406087130308151,
0.6892768740653992,
0.028424948453903198,
-0.01947166584432125,
-0.24013854563236237,
0.35001108050346375,
-0.398131400346756,
-0.4085863530635834,
0.015681957826018333,
-0.04550308361649513,
-0.16282017529010773,
0.35418239235... | |
attendance, bus routes, nutrition, payroll, etc, etc, you have various distinct software written in different languages by different vendors. Well, you have some overlap in your data and different end users use the different pieces of software and they expect it all to agree with each other - you use your BPEL system t... | [
0.6940790414810181,
-0.20254655182361603,
0.2855636477470398,
0.7098456025123596,
0.19820500910282135,
-0.007187581621110439,
-0.06698895245790482,
0.18253813683986664,
-0.3304670751094818,
-0.33402323722839355,
0.17527996003627777,
0.06894757598638535,
0.08618704229593277,
-0.024111827835... | |
those are coordinated. BPEL is all about centralized coordination and you probably don't need it unless you are in a large organization and lots of different systems. | [
0.3335188925266266,
0.03970657289028168,
0.15386369824409485,
0.22580717504024506,
0.1617703139781952,
-0.27364346385002136,
-0.2750566005706787,
0.15507358312606812,
-0.5803254246711731,
-0.5076858401298523,
0.0263931006193161,
0.3591339886188507,
-0.045533180236816406,
-0.265594422817230... | |
Apologies in advance for the long-winded question.
I'm really a database programmer, but have inherited support of a classic-ASP intranet application which has recently been migrated from IIS 5 to a new server running IIS 6. The user-base is about a dozen, all using IE 6.
The UI displays hierarchies of items returned... | [
0.07234841585159302,
0.055520471185445786,
0.653434157371521,
0.07354851812124252,
-0.43550369143486023,
0.45253223180770874,
0.33304017782211304,
-0.2081349939107895,
-0.3160123825073242,
-0.5313003659248352,
-0.08293822407722473,
-0.07994407415390015,
0.1280987560749054,
0.08641014993190... | |
a hierarchy varies between 2 and 10. Hierarchies vary between 20 and 200 items.
**The problem:**
Since the migration to IIS 6, several users have experienced a problem which appears to be caused by images failing to be properly applied to one or more items in the hierarchy; the list displays correctly, but one or mor... | [
-0.07632830739021301,
-0.13043050467967987,
0.5465058088302612,
0.18515172600746155,
-0.013157696463167667,
0.00803226325660944,
0.5977221131324768,
-0.17312568426132202,
-0.6301255226135254,
-0.5512129068374634,
-0.21054843068122864,
0.19122955203056335,
-0.43873733282089233,
0.3042066097... | |
be related to content caching at the client: it seems to more often affect users who have not used the application before on their current PC, or have not used it for some time.
Also, I can replicate the issue approximately one attempt in three by starting a session, clearing my browser cache and then refreshing the p... | [
0.25869256258010864,
0.040554262697696686,
0.3786570429801941,
-0.16911634802818298,
-0.043109871447086334,
-0.3747236430644989,
0.6883701086044312,
0.024924185127019882,
-0.24652943015098572,
-0.6880810260772705,
-0.07735884934663773,
0.5223416090011597,
-0.03736644610762596,
0.0507743693... | |
seems to "find" the missing images, and everything works OK.
If the application is accessed through a local proxy (I used Fiddler) the problem never occurs, although the Fiddler connection log shows one or more connections made to the server to retrieve the images has aborted. As before, network traffic shows that the... | [
-0.021244410425424576,
0.3655029237270355,
0.6445561051368713,
-0.12533880770206451,
0.033835846930742264,
-0.11035926640033722,
0.791646420955658,
0.22941401600837708,
-0.45431873202323914,
-0.6464950442314148,
-0.14799121022224426,
0.4954073429107666,
-0.1909019500017166,
0.0857200771570... | |
the problem, but this has to be the option of last resort since it makes the application more difficult to use.
Any suggestions on how I can proceed would be gratefully received.
**Edit**
AnonJr suggests that this must be a client configuration issue, as all other components appear to be functioning correctly.
I d... | [
-0.008593044243752956,
0.17092561721801758,
0.33969372510910034,
-0.07059447467327118,
-0.0018093166872859001,
-0.12591539323329926,
0.5067377090454102,
-0.11659001559019089,
-0.26130566000938416,
-0.7031370997428894,
-0.0964590311050415,
0.7259075045585632,
-0.2953296899795532,
0.05392981... | |
accepted answer prompted me to search for a known issue with IE6 requesting multiple copies of images when HTML is generated from client-side script - <http://support.microsoft.com/default.aspx?scid=kb;en-us;319546>.
The article (having stated that this behaviour is "by design") suggests a work-around of pre-caching t... | [
0.2123013138771057,
0.08781184256076813,
0.6027633547782898,
-0.047186996787786484,
-0.33088529109954834,
-0.0857907384634018,
0.36225953698158264,
-0.30983656644821167,
-0.1770031452178955,
-0.4177028238773346,
-0.12096133828163147,
0.250623881816864,
-0.24218779802322388,
0.1415957361459... | |
is case-sensitive, so a cached image will only be used if the case of the file name specified in the invisible DIV matches that used elsewhere in the page.
This smacks of an IE6 bug where the browser makes multiple requests for the same resource. For example if the content calls for the display of a small icon repeated... | [
0.07330694049596786,
-0.13025838136672974,
0.4715060889720917,
0.07352245599031448,
-0.043863072991371155,
0.15625743567943573,
0.5059686303138733,
-0.2533595860004425,
-0.4642128348350525,
-0.6540758609771729,
0.02700144797563553,
0.5300858020782471,
-0.21709199249744415,
0.00638844445347... | |
with this excessive requesting eventually you end up with too many unfullfilled requests. At that point further requests to the server even for other pages struggle to get a response, at least for a while.
I'm not sure that this is what is happening in your case, one way to examine this is to use IE7 instead to see if... | [
0.40210625529289246,
0.0359736829996109,
0.530208945274353,
0.27166908979415894,
-0.17672334611415863,
-0.2838917672634125,
0.3941536247730255,
0.36417245864868164,
-0.4688408076763153,
-0.6189864873886108,
0.015505031682550907,
0.5187681317329407,
-0.3532591462135315,
0.3948509097099304,
... | |
that in order to re-use a newly fetched image the browser needs to do work that is defered until the current chunk of javascript has completed. More than a 'short time delay' is needed, an asynchronous approach is needed.
I've used the display:none DIV approach to pre-fetching the images and this works well for AJAX ... | [
0.4304902255535126,
-0.15181072056293488,
0.5727033019065857,
0.014425496570765972,
-0.27608102560043335,
-0.18625515699386597,
0.18275055289268494,
0.011072952300310135,
-0.1665196418762207,
-0.8696184754371643,
-0.19735661149024963,
0.8064488172531128,
-0.18476220965385437,
0.06856672465... | |
is complete. | [
0.22581228613853455,
0.07552032172679901,
0.5087788701057434,
-0.08368100970983505,
0.632061779499054,
-0.21453453600406647,
0.627955436706543,
-0.18992693722248077,
-0.057521093636751175,
-0.4487265348434448,
-0.10047886520624161,
0.20391613245010376,
0.140316441655159,
0.0383428186178207... | |
What is JDBC and where can I start learning about?
I know it's a way to access databases with Java, but what problems does it solve? Is it an ORM (or does it try to be)? Does it abstract away differences between databases, at the syntax level? What does it do? and what does it not do?
JDBC is a driver that allows you ... | [
0.20642349123954773,
0.32300007343292236,
-0.021668676286935806,
0.22769445180892944,
-0.4267825186252594,
-0.3962211310863495,
-0.13176104426383972,
0.15458321571350098,
-0.05852298066020012,
-0.4542941749095917,
0.3100941777229309,
0.6611149907112122,
-0.3483973741531372,
0.0809045583009... | |
and never will be. The sun website <http://java.sun.com/docs/books/tutorial/jdbc/> has a nice tutorial for JDBC. If you are interested in a ORM try <http://www.hibernate.org/>. | [
0.5718644857406616,
-0.3125135898590088,
0.41471412777900696,
0.1302194446325302,
0.2188372164964676,
-0.4412102699279785,
0.35172024369239807,
0.33914715051651,
-0.07332181185483932,
-0.6435574293136597,
-0.21334616839885712,
0.35134410858154297,
-0.02008952759206295,
0.19635233283042908,... | |
I want to let the user draw on an image in a browser. In other words, I need *both* bitmapped graphics and drawing capabilities, whether vector or bitmapped.
Canvas looks good, but is not supported by IE, and though there is ExCanvas, I wonder if ExCanvas is stable enough for consistent use in IE6 through 8.
Or best ... | [
0.6159007549285889,
-0.008812409825623035,
0.2898597717285156,
-0.057819683104753494,
-0.21645919978618622,
-0.11749561876058578,
-0.0785401239991188,
0.00904642790555954,
-0.14185276627540588,
-1.0730704069137573,
0.1458214670419693,
0.6661534905433655,
-0.07386273145675659,
-0.1505634933... | |
to avoid it I'd suggest Flash. You could easily use Flash 6 or 7 and these have a > 90% adoption rate. I'd be surprised if you could get that level of support with JavaScript. Flash is truly write once run anywhere, which will cut down on your development time. | [
0.30647778511047363,
0.0879439190030098,
0.08276645094156265,
0.11423250287771225,
-0.1517837643623352,
-0.39277613162994385,
0.40897315740585327,
0.31997671723365784,
0.05615882948040962,
-0.798794150352478,
-0.04573434963822365,
0.7411726713180542,
-0.21909435093402863,
-0.21533352136611... | |
I receive some arguments into a stored procedure. These arguments are NVARCHAR's.
I have a problem, when I need to cast some of these values to FLOATS, because they are being received as e.g.
@VALUE1 NVARCHAR(100)
DECLARE @ChangedValue
SET @ChangedValue = CAST(@Value1 AS FLOAT)
E.g. @Value1 = "0,001"
Gives me a pr... | [
0.1400388926267624,
0.15917859971523285,
0.5025349259376526,
-0.1742618829011917,
-0.1847902238368988,
0.04715932160615921,
0.33242085576057434,
-0.37433844804763794,
0.0011134495725855231,
-0.4594695568084717,
0.24738921225070953,
0.45732471346855164,
-0.16927063465118408,
0.2011128365993... | |
Is there a way to detect whether IIS is enabled or not?
I know how to check if it is INSTALLED, but I need to know if it's installed but not enabled.
Also, can this be done natively via InstallShield? Checking this via .NET would be acceptable as we can write custom actions, but if there is an IS call then that would... | [
0.5212835669517517,
-0.3287756145000458,
-0.024380428716540337,
0.14849591255187988,
0.0476284995675087,
-0.31185734272003174,
0.2550998628139496,
-0.0930839404463768,
-0.2508440613746643,
-0.7860380411148071,
0.0032856229227036238,
0.835515558719635,
-0.3733104169368744,
-0.18743954598903... | |
and concatenate them all only when you've grabbed everything.
See [Eric Lippert's blog post on arrays](https://learn.microsoft.com/en-us/archive/blogs/ericlippert/arrays-considered-somewhat-harmful) for more detail and insight than I could realistically provide :) | [
0.13664311170578003,
-0.06264597922563553,
-0.0790502279996872,
0.054253607988357544,
0.0018783753039315343,
-0.22133900225162506,
0.051879048347473145,
-0.29317620396614075,
-0.42179539799690247,
-0.47733351588249207,
-0.05743754282593727,
0.6748546957969666,
-0.5751045942306519,
-0.27776... | |
Our DB server fell, and we need to restore some of it's DB's. We can find only the LDF file of the needed DB. Is there a tool that can use that for restoring? We're using SQL 2005.
No. You will also need the .mdf | [
0.23216456174850464,
0.30621445178985596,
0.28714385628700256,
0.21266421675682068,
-0.1913764476776123,
-0.37157097458839417,
0.3443622887134552,
-0.15641632676124573,
0.05205162242054939,
-0.3192700743675232,
0.19816625118255615,
0.48245319724082947,
-0.29029810428619385,
0.3447318971157... | |
Currently we're using hand-rolled SQL in Data-Access objects and a lot of stored-procedures and triggers which amount to around 20k lines of code. We're finding that simple changes are causing a couple of days' work to fix, and its causing deadlines to slip.
Changes include modifications to tables to cope with additio... | [
0.3590129017829895,
0.24828071892261505,
0.13297392427921295,
0.2389412820339203,
0.050048843026161194,
-0.1046198233962059,
0.37484580278396606,
-0.06931348890066147,
-0.23141568899154663,
-0.38849690556526184,
0.1264028549194336,
0.06576994061470032,
-0.02411058358848095,
0.1475435048341... | |
with our schema; "simple" sql results were taking orders of magnitude longer to return than our custom queries and caused page views of ~.5s to take over 20s.
What best-practices/strategies could I look into to cope with schema evolution with relational databases, in a general context?
**Edit:** forgot to mention abo... | [
0.3928731083869934,
-0.007860634475946426,
0.301486074924469,
0.24516651034355164,
-0.019895698875188828,
-0.11773321777582169,
0.09770702570676804,
-0.19930507242679596,
-0.2368611842393875,
-0.6579772233963013,
0.361612468957901,
0.5465682148933411,
0.12427761405706406,
0.059878505766391... | |
I wish to set a usererror string before leaving a function, depending on the return code and variable in the function.
I currently have:
```
Dim RetVal as RetType
try
...
if ... then
RetVal = RetType.FailedParse
end try
endif
...
finally
select case RetVal
case ...
UserStr = ...
... | [
0.42794501781463623,
-0.014213234186172485,
1.0563421249389648,
-0.30623769760131836,
-0.07877255231142044,
-0.0793604627251625,
0.5391610264778137,
-0.5193674564361572,
0.0361214242875576,
-0.3047323524951935,
-0.22131456434726715,
0.7216609120368958,
-0.29539936780929565,
0.3551431894302... | |
a variable at the start of the method to hold the value - i.e.
```
SomeType result = default(SomeType); // for "definite assignment"
try {
// ...
return result;
}
finally {
// inspect "result"
}
```
In VB, you *might* be able to access the result directly - since IIRC it kinda works like the above (with th... | [
0.40570011734962463,
-0.03371833637356758,
0.2815815508365631,
-0.1413412094116211,
0.07921304553747177,
-0.37480321526527405,
0.3943655788898468,
-0.08705191314220428,
-0.016046486794948578,
-0.24404138326644897,
-0.27768567204475403,
0.4698246717453003,
-0.2195807844400406,
0.34781101346... | |
Is it good practice to have a unit test that specifies how long a certain function takes to return a value. I'm unit testing a curl function and want to specify that it needs to time out after 5 seconds. Is this in line with the way unit tests work?
Testing your function plus curl plus the server is more integration te... | [
0.30904313921928406,
-0.034779369831085205,
0.042222343385219574,
-0.008750014938414097,
-0.0748605877161026,
-0.2793489098548889,
0.38635584712028503,
-0.2674795389175415,
0.21846869587898254,
-0.45853301882743835,
0.3682851791381836,
0.417084664106369,
0.028592310845851898,
-0.0249073915... | |
do their job. I'll keep them as far as they don't go in my way.
The only thing I'd be bothered with is the five seconds timeout, which is very long for an unit test. Now, it depends on how often it occurs. Did you consider a basic test (e.g. pinging the server) prior launching curl to avoid starting a needless test. ... | [
0.6466803550720215,
-0.1695326864719391,
0.17569845914840698,
0.12122591584920883,
-0.12819649279117584,
-0.04192068427801132,
0.3934718668460846,
-0.23898659646511078,
-0.032863639295101166,
-0.5793548822402954,
0.27043744921684265,
0.4106891453266144,
0.24321885406970978,
-0.327451586723... | |
and you won't need any timeout. | [
0.6443056464195251,
0.07895845174789429,
0.12755811214447021,
0.13649101555347443,
0.3217405080795288,
-0.3237735331058502,
-0.02893155999481678,
0.35890477895736694,
-0.11205406486988068,
-0.4526536762714386,
0.11120355874300003,
0.34981003403663635,
0.2755883038043976,
-0.157652452588081... | |
We are currently creating an InfoPath 2007 form is deployed in SharePoint 2007. In the form we populate the repeating tables with more than 60 records. However, when we're submitting the form, an error message appears. Does the number of records in the repeating table affects the submitting of the form? Also provide so... | [
0.22166462242603302,
-0.07217995822429657,
0.5594455003738403,
0.35700348019599915,
0.0810452550649643,
-0.1188315823674202,
0.3247852921485901,
-0.08475513756275177,
-0.11695128679275513,
-0.48332685232162476,
0.20547272264957428,
0.545426607131958,
-0.2376295030117035,
0.042551439255476,... | |
(and probably profile) functionality that uses a static get\_current() method to load the user stashed in the session. This bypasses all the consistency issues you run into when stuffing it into the session as well as giving you a single point from which to implement caching if/when you actually need the performance bo... | [
0.1315888911485672,
-0.19929684698581696,
0.1412980556488037,
0.0668904185295105,
-0.08907535672187805,
-0.18748733401298523,
0.17371989786624908,
-0.1882580816745758,
-0.06374818086624146,
-0.3875023126602173,
-0.15302251279354095,
0.4153834581375122,
-0.11801138520240784,
0.1486035138368... | |
I come from a CVS background. I'm currently investigating using SVN for a project. The code that I work on tends to be in the following directory structure.
> project\libs\lib1
>
>
> project\libs\lib1\test
>
>
> project\libs\lib1\mock
>
>
> project\libs\lib2
etc.
When I tag a release, in CVS, I tend to create ... | [
0.9958974123001099,
0.21524327993392944,
0.028463168069720268,
-0.21280615031719208,
-0.05261484533548355,
-0.24301061034202576,
-0.023255303502082825,
-0.08298535645008087,
-0.09449074417352676,
-0.5011462569236755,
-0.1298779398202896,
0.6646546721458435,
-0.35686415433883667,
0.03687267... | |
source that we can ship to them and by doing a checkout on the "project-release-1-with-tests" tag we get the whole lot that we can use for branching if need be for ongoing development.
How do I do something similar with SVN? Ideally in a form that can be scriptable; with SVN we have a script per project which will app... | [
0.8243200182914734,
0.112666554749012,
0.07640834152698517,
0.3561146855354309,
0.12718328833580017,
-0.3232184648513794,
-0.05985667183995247,
-0.01751110889017582,
-0.0238269604742527,
-0.6062970161437988,
0.16040682792663574,
0.8140495419502258,
0.05389773100614548,
-0.20505017042160034... | |
and create the client release tag?
**Update**:
I've decided to change how I do things... Rather than having a script per project that sets up my old style twin tags I now have a script per project that takes the tagged release (which includes the stuff that I don't ship to clients) and removes the stuff that I don'... | [
0.6363579034805298,
0.01661112904548645,
0.3400837182998657,
-0.10323132574558258,
0.061149414628744125,
-0.20729433000087738,
0.17842677235603333,
-0.11036118119955063,
-0.21517425775527954,
-0.5628299117088318,
-0.10117559134960175,
0.7536834478378296,
-0.2539491355419159,
0.200471848249... | |
create a project-release-1-with-tests tag with everything, then tag (copy) **that** directory as project-release-1 and repeat #2 above.
B. Use "externals":
1. Create an empty project-release-1 directory under tags. Don't really tag, just create the directory.
2. Edit the properties of that directory, add a property n... | [
0.5353245735168457,
0.16919882595539093,
0.19043397903442383,
0.037678755819797516,
-0.023200323805212975,
-0.42186281085014343,
0.18065965175628662,
-0.48270857334136963,
-0.05298881232738495,
-0.4337930977344513,
-0.19822926819324493,
0.6726433038711548,
-0.2967182695865631,
0.0764307305... | |
you did.
On a side note, I wonder why you'd want the test-less tag; Why does it bother you that you have the tests in the tag?
* Noam. | [
0.7686212062835693,
0.26978248357772827,
-0.24996884167194366,
0.24899835884571075,
-0.151727095246315,
-0.2203071117401123,
0.2611386775970459,
-0.049389615654945374,
-0.4959248900413513,
-0.31004345417022705,
0.2467796355485916,
0.21667790412902832,
0.1274656504392624,
-0.027010546997189... | |
I'm a c# developer but have a job that involves some jsp code.
I've been using notepad++ which does a great job in highlighting but I'm missing the intellisense and find it difficult to find the methods I need.
What is a good jsp IDE for someone coming for C# that has intellisense?
**Update**
I tried eclipse and id... | [
0.16161084175109863,
-0.09620040655136108,
0.08158066123723984,
0.08154910802841187,
-0.44165870547294617,
-0.03465772420167923,
0.18770630657672882,
0.11499869078397751,
0.027135349810123444,
-0.9586502909660339,
0.23650440573692322,
0.7956960797309875,
-0.046201884746551514,
-0.260118812... | |
it working.
I [downloaded it](http://www.netbeans.org/downloads/index.html), installed the jsp plugins and I was up and running. It has intellisense and is pretty lightweight.
You might want to check out [Netbeans](http://www.netbeans.org/). From what I remember for Java applications, it had pretty good intellisense s... | [
-0.014314452186226845,
-0.1667824685573578,
0.17648346722126007,
-0.22668829560279846,
-0.009315653704106808,
-0.4047323763370514,
0.1737656593322754,
0.26660069823265076,
-0.07196848094463348,
-0.6669239401817322,
0.13498587906360626,
0.714928925037384,
-0.14650419354438782,
-0.2390610724... | |
We have a lot of dll-libraries written in both delphi and c++ builder, and use sharemem and borlndmm.dll.
An aligment-issue in a 3thparty library forces us over to the new memorymanager in delphi 2007.
Can someone please explain 'shared memory manager' for me?
Is SimpleShareMem a dropin replacement for ShareMem ? ... | [
-0.2083737701177597,
0.1833106130361557,
0.25907596945762634,
0.1257275640964508,
-0.2843429148197174,
-0.22733622789382935,
0.2094159722328186,
-0.1361439824104309,
-0.36019760370254517,
-0.5525595545768738,
-0.004347038920968771,
0.6497769355773926,
-0.43910160660743713,
0.12130830436944... | |
SimpleShareMem.pas/FastMM4.pas, or use
>
> (b) ShareMem.pas (i.e. borlndmm.dll)
>
> You cannot mix the two different sharing methods. | [
0.029280733317136765,
-0.1066548079252243,
0.3035605847835541,
0.022566787898540497,
-0.08705587685108185,
-0.23814986646175385,
0.6061732769012451,
-0.4753088057041168,
-0.25381430983543396,
-0.6423306465148926,
-0.37328583002090454,
0.3598068952560425,
-0.40248268842697144,
0.05234967917... | |
I have a folder checked out using TortoiseSVN. If I copy a newer version of a file over the existing versioned file, TortoiseSVN correctly identifies that the file is modified.
However when I do a "diff with previous version", it reports "no differences".
If I use WinMerge I can see that the files ARE different.
Does... | [
0.332409530878067,
0.21369676291942596,
0.6718617677688599,
-0.27597859501838684,
0.17147807776927948,
0.009136738255620003,
0.5532840490341187,
-0.33631691336631775,
-0.3919001519680023,
-0.574406623840332,
-0.192576602101326,
1.039743185043335,
-0.025385692715644836,
0.31689515709877014,... | |
A revision argument can be one of:
NUMBER revision number
'{' DATE '}' revision at start of the date
'HEAD' latest in repository | [
-0.3599291741847992,
-0.004789188038557768,
0.4972498118877411,
0.2702643871307373,
0.08673427999019623,
0.18052184581756592,
-0.18718041479587555,
0.04571588337421417,
0.022867366671562195,
-0.3935810327529907,
-0.3715861439704895,
0.11970602720975876,
0.2318328320980072,
0.47026684880256... | |
'BASE' base rev of item's working copy
'COMMITTED' last commit at or before BASE
'PREV' revision just before COMMITTED
```
If you don't see changes against PREVIOUS, your workingcopy reverted the changes of COMMITTED | [
0.3040339946746826,
0.021385829895734787,
0.6361326575279236,
-0.01895757019519806,
0.1321965456008911,
0.13904230296611786,
0.04523593187332153,
-0.3903729021549225,
-0.2027195692062378,
-0.4340533912181854,
-0.13514487445354462,
0.3806740641593933,
-0.10915780067443848,
0.131914317607879... | |
I have worked on iPhone application but not aware of the formalities to submit it to Apple Store. Please somebody help me out to solve the following queries:
Are their any submission charge to be paid?
And Procedure to submit application to Apple Store.
Thanks & Regards,
Khushi
Once you've paid to join the developer ... | [
0.3405648171901703,
0.5502172112464905,
0.029152793809771538,
0.00533931003883481,
-0.040250591933727264,
0.3594300150871277,
0.5733906030654907,
-0.006067607086151838,
0.00028654790366999805,
-0.31133031845092773,
-0.005886491388082504,
0.415223628282547,
0.1938459277153015,
-0.0390643551... | |
application - for example: the name of your app, and whether it will also run on the iPod Touch etc. | [
0.26734739542007446,
0.1528424620628357,
0.5979838967323303,
0.3197004199028015,
0.3672620356082916,
-0.20728088915348053,
0.02793538197875023,
0.14688998460769653,
-0.3819260001182556,
-0.5164923071861267,
-0.20838138461112976,
0.4369261860847473,
-0.04359462857246399,
-0.0591624341905117... | |
Yes we're talking about ASCII codes. My appologies I'm not the Delphi dev here.
For Delphi 7, I'd get [the free Unicode Library by Mike Lischke](http://www.soft-gems.net/index.php/libs/unicode-library) who is the author of Virtual Treeview.
The libary includes a lot of conversion functions to go to and from Unicode, s... | [
-0.20193013548851013,
0.08064103126525879,
0.2633921504020691,
0.07282956689596176,
-0.005719099659472704,
0.14219479262828827,
0.13593891263008118,
-0.07811185717582703,
-0.34611737728118896,
-0.7277488708496094,
-0.28237783908843994,
0.66185063123703,
-0.1891452968120575,
-0.487896770238... | |
Is it necessary for setter methods to have one argument? Usually setter methods accept one argument as the value of a certain property of an Object. What if I want to test first the validity which depends on another argument which is a boolean, if true, validate first, else just set the value.
I am getting the values ... | [
0.2760174572467804,
0.10366000235080719,
0.19107796251773834,
0.2361459732055664,
-0.11461687833070755,
-0.09462226182222366,
-0.12554340064525604,
-0.28502780199050903,
-0.04398415982723236,
-0.25133973360061646,
0.04220304638147354,
0.5742782354354858,
-0.47087669372558594,
-0.0669359564... | |
approach?
Thanks a bunch in advance!
**EDIT:**
Is this valid:
```
public void setSomething(String strValue){
if(checkValidity(strValue)){
// set the value
} else {
// set the value to an empty string
}
}
```
It is necessary specifically in the java bean framework model, but... | [
0.22595186531543732,
-0.34731021523475647,
0.46574801206588745,
-0.02447439543902874,
-0.11959995329380035,
-0.34337544441223145,
0.26081958413124084,
-0.53839510679245,
0.06345771998167038,
-0.6018772721290588,
-0.21648237109184265,
0.7481986880302429,
-0.4468289017677307,
-0.437145948410... | |
the "check" boolean attribute to true.
So even if it is not a "setter" in the java bean sense of the term, you can imagine setter used for other purposes.
Plus, according to section 7 of JavaBean specifications, a setter can have **more than one argument**, for instance for Indexed properties (An indexed property sup... | [
0.178813174366951,
-0.06235712021589279,
0.2067383974790573,
0.03791273012757301,
-0.03532145172357559,
-0.2404215931892395,
-0.0008401870727539062,
-0.2706926465034485,
-0.04933365434408188,
-0.3482498824596405,
-0.36446478962898254,
0.48388540744781494,
-0.7450354695320129,
-0.1538012027... | |
the signature of our function.
That way you do not put any unnecessary compilation-time exception checking for all of the other classes which are already calling your setter.
Or you could consider your property as a **Constrained property** and add a non-runtime exception.
Constrained property setter methods are r... | [
0.3006727397441864,
-0.35831642150878906,
0.3773784637451172,
0.2029227316379547,
0.31894806027412415,
-0.30549052357673645,
0.10613424330949783,
-0.26001447439193726,
-0.05956212058663368,
-0.6034761071205139,
-0.23255953192710876,
0.7054871916770935,
-0.39297249913215637,
0.0258251465857... | |
question](https://stackoverflow.com/questions/2750/data-verifications-in-gettersetter-or-elsewhere#2754)):
* **Validation should be captured separately from getters or setters** in a validation method. That way if the validation needs to be reused across multiple components, it is available.
* It is better to **fail f... | [
0.2791626453399658,
0.19619286060333252,
0.22794170677661896,
0.35162287950515747,
-0.16694751381874084,
-0.13178148865699768,
0.14091672003269196,
-0.5094252228736877,
-0.2836437523365021,
-0.15193110704421997,
-0.27712035179138184,
0.2828719913959503,
-0.09604331105947495,
-0.03583697974... | |
There is two available Eclipse plugins for Maven :
* [Eclipse IAM](http://www.eclipse.org/proposals/iam/) (old name is Q4E)
* [m2eclipse](http://m2eclipse.codehaus.org/)
m2eclipse seems to be the oldest but the more robust. Is there any key differences between the two ?
Which one should be chosen for a project start... | [
0.03406279534101486,
-0.28907907009124756,
0.7106851935386658,
-0.10605403035879135,
-0.22675569355487823,
0.05453616380691528,
-0.14931686222553253,
0.0600166879594326,
-0.18748493492603302,
-0.955763578414917,
-0.03804788365960121,
0.31531333923339844,
-0.15055812895298004,
-0.2878634929... | |
to resolve dependencies inside workspace.
I tried the other one some time ago and didn't like it. It was to buggy so I gave up quickly. | [
-0.21234118938446045,
-0.09701830893754959,
0.1498928964138031,
0.09174543619155884,
-0.10378726571798325,
0.0982692539691925,
0.4233549237251282,
-0.05816710740327835,
-0.051758188754320145,
-0.42507800459861755,
0.6188963055610657,
0.4331261217594147,
-0.40438583493232727,
-0.10657799988... | |
I have two Spring proxies set up:
```
<bean id="simpleBean" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="target">
<ref local="simpleBeanTarget"/>
</property>
<property name="interceptorNames">
<list>
<value>cacheInterceptor</value>
</list... | [
-0.32265758514404297,
-0.059820521622896194,
0.5165776610374451,
-0.2438797503709793,
-0.19992458820343018,
0.5589085817337036,
0.010530360043048859,
-0.397705078125,
0.0527832992374897,
-0.7258923649787903,
0.1116887554526329,
0.14025287330150604,
-0.34364306926727295,
-0.0240887459367513... | |
<list>
<value>daoInterceptor</value>
</list>
</property>
</bean>
```
simpleBean works just fine -- springDao does not.
The SpringDao class looks like:
```
public class SpringDao extends JdbcDaoSupport {
private SimpleJdbcTemplate simpleJdbcTemplate;
public SimpleJdbcTempla... | [
0.054642923176288605,
-0.11518309265375137,
0.34422481060028076,
-0.38087356090545654,
-0.03646118938922882,
0.1378515064716339,
0.19948001205921173,
-0.6604872345924377,
-0.10507673770189285,
-0.46787598729133606,
-0.2654273509979248,
0.650786280632019,
-0.16018888354301453,
-0.1906441003... | |
this:
```
@Autowired
@Qualifier("springDao")
protected SpringDao springDao;
```
And the first indication something is wrong is I get this error:
> Could not autowire field: . . . nested
> exception is
> java.lang.IllegalArgumentException
If I comment out the @Qualifier annotation and run my unit test again, I g... | [
-0.16213342547416687,
-0.040077775716781616,
0.23116743564605713,
-0.1316736936569214,
0.04531462490558624,
-0.07235153019428253,
0.6913036704063416,
-0.5351462960243225,
-0.05679813027381897,
-0.24487410485744476,
-0.22177550196647644,
0.4223373830318451,
-0.3263758718967438,
0.0416635647... | |
the instanceof test failed, which (to me) means that my proxy is not really my proxy.
So I'm confused. What's going on? How can I fix this?
**Edit** Here is the requested springDaoTarget definition, which will disappoint many people:
```
<bean id="springDaoTarget" class="com.company.SpringDao">
```
If the target of... | [
-0.2888292074203491,
-0.04066802188754082,
0.08581060916185379,
-0.1488417685031891,
-0.20305389165878296,
-0.034329842776060104,
0.2928120493888855,
0.12305743992328644,
-0.26151058077812195,
-0.6045714616775513,
-0.04104318097233772,
0.44043755531311035,
-0.3029613196849823,
0.0517006665... | |
rule, if you are going to use AOP but only use interfaces in a limited fashion you'll want to force CGLIB. Otherwise you will have lots of JDK Proxies in your container which are not of the same type as the bean implementations you loaded.
See Cliff Meyers blog: [Spring AOP: CGLIB or JDK Dynamic Proxies?](http://cliff... | [
-0.0744168758392334,
-0.37910521030426025,
0.21843746304512024,
-0.008711940608918667,
-0.19418089091777802,
-0.33076581358909607,
0.19896160066127777,
-0.3652780055999756,
-0.49107006192207336,
-0.03503454104065895,
-0.18013782799243927,
0.6098228096961975,
-0.6168724298477173,
-0.1867910... | |
To what is the class path of a Servlet container set?
As per my understanding there are three components involved. The JAR files in the `lib` directory of the Servlet container and then the classes in the `WEB-INF/classes` and JAR files in the `WEB-INF/lib` directory. The classes in `lib` directory of the Servlet con... | [
-0.17565329372882843,
-0.22384966909885406,
0.1912747025489807,
0.1752302199602127,
0.006607601884752512,
0.24257203936576843,
-0.027076035737991333,
-0.138665109872818,
-0.08665989339351654,
-0.6465167999267578,
-0.09112709760665894,
0.46672752499580383,
-0.4192439913749695,
0.38877227902... | |
individual classes and JAR files in `WEB-INF/lib` and `WEB-INF/classes` or just points to the two directories `WEB-INF/classes` and `WEB-INF/lib`? Say I have a directory called `foo` in `WEB-INF` containing `bar.properties`. Now is `bar.properties` also in the class path?
The "dynamic" classpath will list `WEB-INF/clas... | [
0.06264357268810272,
0.13215169310569763,
-0.00254010409116745,
0.16758491098880768,
-0.0768485814332962,
0.03232137858867645,
-0.08376269042491913,
-0.15647859871387482,
-0.15531739592552185,
-0.7469281554222107,
-0.08903370052576065,
0.2660766839981079,
-0.06867849081754684,
0.3298894762... | |
two other places to put classes. One is a directory that is visible to the container, but not the applications, and the other is visible to the container and all of the applications. Since the second classloader is visible to all of the applications, static members of those classes can be used to share information betw... | [
-0.03502321243286133,
-0.5070566534996033,
-0.18019570410251617,
0.260271817445755,
-0.004495412576943636,
0.04352400079369545,
-0.16154198348522186,
0.2642177641391754,
-0.22012460231781006,
-0.7326598167419434,
-0.1990085244178772,
0.16602569818496704,
-0.31036216020584106,
0.35846650600... | |
I have a .NET Set and Deployment project which has to execute a set of really long SQL Scripts as a part of the installation process. I have used SMO dlls to make calls to the .sql script files.These SMO dlls are however not a part of the .NET framework but they come bundled with SQL Server 2005 or 2008. Now, if the se... | [
0.5268883109092712,
0.24437005817890167,
0.1604834496974945,
-0.05542220175266266,
-0.028345603495836258,
-0.329937219619751,
0.32881322503089905,
-0.0672641322016716,
-0.24312104284763336,
-0.6266617774963379,
0.0636083260178566,
0.5740188956260681,
-0.3297332525253296,
0.0055099478922784... | |
on his local machine but on a network server.
How do i embedd the SMO dll's along with the setup .msi so that it doesnt have to depend on any SMO dlls on the machine it is being run?
Assuming you're talking about a static library, `DUMPBIN /SYMBOLS` shows the functions and data objects in the library. If you're talking... | [
0.3075597584247589,
0.04497452452778816,
0.3162265717983246,
0.1783689260482788,
0.09651694446802139,
-0.29002851247787476,
0.18825551867485046,
-0.08364851772785187,
-0.09553530812263489,
-0.5951930284500122,
-0.2743619978427887,
0.3440134823322296,
-0.40416836738586426,
-0.03668954223394... | |
isn't encoded in the `.lib` at all; you have to know that ahead of time (via prototypes in header files, for example) in order to call them correctly.
For functions linked with the C++ binary interface, the calling convention and arguments are encoded in the exported name of the function (also called "name mangling").... | [
0.16426634788513184,
0.031148379668593407,
-0.08589895069599152,
-0.02998548559844494,
0.1065700501203537,
-0.13054093718528748,
0.040837276726961136,
0.13784243166446686,
0.02023448795080185,
-0.22495882213115692,
-0.23778337240219116,
0.5603274703025818,
-0.477596640586853,
0.07758835703... | |
Paragraph 6.7.3.8 of the C99 spec states
> If the specification of an array type includes any type qualifiers, the element type is so-qualified, not the array type. If the specification of a function type includes any type qualifiers, the behavior is undefined.
In the [rationale](http://www.open-std.org/jtc1/sc22/wg14/www/... | [
0.3548649549484253,
0.041506242007017136,
0.4919101893901825,
-0.22871610522270203,
-0.08616688847541809,
0.25893571972846985,
-0.01700098253786564,
-0.4343983232975006,
-0.20667105913162231,
-0.4455191493034363,
-0.2740831673145294,
0.7938616275787354,
-0.5250534415245056,
-0.079737864434... | |
be marked const, however the cast in
```
void g(const double *ap, int n)
{
const double (*a)[n] = (const double (*)[n]) ap;
/* ... */
}
```
does not preserve the `const` qualifier since (per 6.7.3.8) it applies to the elements of the target instead of the target itself, which has array type `double[n]`. This... | [
0.1955278068780899,
0.10356197506189346,
0.1437603235244751,
-0.37413889169692993,
-0.1140098050236702,
-0.16115912795066833,
0.3913848400115967,
-0.34650513529777527,
0.021124618127942085,
-0.16296571493148804,
-0.4434591233730316,
0.5155964493751526,
-0.5193240642547607,
0.01445962022989... | |
parameters, but the false positives discourage its use. Note that indexing `a[i][j]` is both more readable and, with many compilers, produces better machine code than `ap[i*n+j]` since the former allows some integer arithmetic to be hoisted out of inner loops with less analysis.
Should compilers just treat this as a s... | [
0.4205106198787689,
-0.12098326534032822,
-0.03510064631700516,
0.23652882874011993,
-0.23851822316646576,
-0.10864244401454926,
0.33077552914619446,
-0.6076072454452515,
-0.10747311264276505,
-0.020587610080838203,
-0.03136694058775902,
0.7259122133255005,
-0.3695760667324066,
-0.09221427... | |
in contrast to 6.7.3.8?
This is a known issue that has been discussed several times over the last 10 years at comp.std.c. The bottom line is that the specific case you presented is not currently legal in Standard C; you need to either remove the qualifier or refrain from using a pointer to an array to refer to the qual... | [
0.6124267578125,
0.2226955145597458,
-0.1921519786119461,
0.10849236696958542,
0.1699875146150589,
-0.4296412765979767,
0.15366330742835999,
-0.34419918060302734,
-0.24656689167022705,
-0.289812833070755,
0.1344945877790451,
0.6152728796005249,
-0.10817743092775345,
0.19594722986221313,
... | |
to have the behavior changed (there are several committee members that frequent comp.std.c so feedback from the people who would potentially be reviewing the DR would be useful to have prior to filing it). I think there may be some issues with your proposal to have qualifiers affect the array itself, but I'd have to gi... | [
0.9134823083877563,
-0.04199709743261337,
0.03064124658703804,
0.13560307025909424,
0.060049235820770264,
-0.5381114482879639,
0.037027306854724884,
-0.44096577167510986,
-0.17799024283885956,
-0.5563886761665344,
0.5129745602607727,
0.6620542407035828,
-0.2535519301891327,
0.1161072999238... | |
Is there an Iterator implementation that merges multiple iterators?
```
class MergedIterator<T> implements Iterator<T>
{
MergedIterator(Iterator<T>... iters)
....
}
```
And the next method should move on to `iters[1]` when `!iters[0].hasNext()` etc
I'd call that a ConcatenatedIterator myself - a MergedIte... | [
0.040786199271678925,
-0.036325860768556595,
0.31737568974494934,
0.026173800230026245,
-0.11824940890073776,
0.04779846966266632,
-0.10976815968751907,
-0.6172336935997009,
-0.42797091603279114,
-0.3317568302154541,
-0.012811959721148014,
0.237838476896286,
-0.42486149072647095,
-0.077619... | |
What I'm trying to do is run the same SQL select on many Oracle databases (at least a dozen), and display the output in a Gridview.
I've hacked together something that works but unfortunately it's very slow. I think its exacerbated by the fact that at least 1 of the dozen databases will invariably be unreachable or ot... | [
0.5962084531784058,
0.21302847564220428,
-0.05375431105494499,
0.11065428704023361,
-0.10676645487546921,
-0.1300143152475357,
0.23632235825061798,
0.06772272288799286,
0.12541145086288452,
-0.7507085800170898,
0.37337130308151245,
0.34174174070358276,
-0.3043050765991211,
0.15247854590415... | |
turn, runs the sql and writes another `<tr>`, and it works at least twice as fast, for a given query. But I'm not really happy with that, I'd like to improve my knowledge!
I'm learning C# and ASP.NET so please excuse the horrible code :)
```
public void BindData(string mySQL)
{
OracleConnection myConnecti... | [
0.04868892580270767,
-0.05410926043987274,
0.2038601189851761,
0.03962763398885727,
0.12100693583488464,
-0.13669805228710175,
0.2986466884613037,
-0.04200644791126251,
0.1270769238471985,
-0.44403019547462463,
-0.19990913569927216,
0.41347536444664,
-0.504477322101593,
0.24506095051765442... | |
DataSet TempDataSet;
DataTable TempDataTable;
string connectionString = "";
Label1.Visible = false;
Label1.Text = "";
foreach (ListItem li in CheckBoxList1.Items)
{
if (li.Selected)
{ | [
-0.033055007457733154,
-0.4741628170013428,
0.26294299960136414,
0.041806306689977646,
0.0890744999051094,
-0.07476889342069626,
0.2692846953868866,
-0.43304014205932617,
-0.31709665060043335,
-0.49588316679000854,
-0.650558590888977,
0.26807698607444763,
-0.5342473387718201,
0.10474474728... | |
connectionString = "Data Source=" + li.Text + "";
connectionString += ";Persist Security Info=True;User ID=user;Password=pass;Unicode=True";
myConnection = new OracleConnection(connectionString);
try
{ | [
-0.3723180592060089,
-0.13889195024967194,
0.2810624837875366,
-0.013061817735433578,
0.4629260003566742,
0.03213224187493324,
0.4595181345939636,
-0.33826741576194763,
-0.010648502968251705,
-0.46629413962364197,
-0.43700864911079407,
0.2190893441438675,
-0.3065906763076782,
0.18803392350... | |
TempDataAdapter = new OracleDataAdapter(mySQL, myConnection);
TempDataSet = new DataSet();
TempDataTable = new DataTable();
TempDataAdapter.Fill(TempDataSet);
TempDataTable = TempDataSet.Tables[0].Copy(); | [
-0.11383450776338577,
-0.2367362529039383,
0.07319608330726624,
0.3503904640674591,
0.09691083431243896,
0.002675664843991399,
-0.01729370467364788,
-0.12344811856746674,
-0.04941117390990257,
-0.4441711902618408,
-0.33426448702812195,
0.32511574029922485,
-0.5752583742141724,
0.1191611886... | |
/* If the main dataset is empty, create a table by cloning from temp dataset, otherwise
copy all rows to existing table.*/
if (MainDataSet.Tables.Count == 0)
{ | [
-0.06952818483114243,
-0.1636664718389511,
0.1912384331226349,
-0.1334025114774704,
0.26337236166000366,
0.07154101878404617,
0.10201001912355423,
-0.032286886125802994,
-0.25160014629364014,
-0.5205844640731812,
-0.2811864912509918,
0.11969074606895447,
-0.46409472823143005,
0.10827447474... | |
MainDataSet.Tables.Add(TempDataTable);
MainDataTable = MainDataSet.Tables[0];
}
else | [
-0.20677725970745087,
-0.279941588640213,
0.05894749239087105,
-0.03980439901351929,
0.011953767389059067,
-0.04631529748439789,
0.3400129973888397,
0.10215961188077927,
-0.22003750503063202,
-0.353579044342041,
-0.3101663291454315,
0.33083438873291016,
-0.6867052912712097,
0.1349414438009... | |
{
foreach (DataRow dr in TempDataTable.Rows)
{
MainDataTable.ImportRow(dr); | [
-0.40323320031166077,
-0.022906605154275894,
0.32896727323532104,
-0.4085712432861328,
0.24352172017097473,
0.3964289128780365,
0.18351268768310547,
0.08003261685371399,
-0.002638343721628189,
-0.3923319876194,
-0.3797380030155182,
0.6057103872299194,
-0.28379034996032715,
0.48752668499946... | |
}
}
}
catch (OracleException e)
{ | [
-0.06755036860704422,
-0.3288079500198364,
-0.2318994402885437,
-0.08405116945505142,
0.29415130615234375,
-0.19309033453464508,
-0.0006482708267867565,
-0.01437191478908062,
0.40658172965049744,
-0.04440020024776459,
-0.24680699408054352,
0.6408746838569641,
-0.4080088436603546,
-0.189321... | |
Label1.Visible = true;
Label1.Text = Label1.Text + e.Message + " on " + li.Text + "<br>";
}
finally
{ | [
-0.01759706623852253,
-0.1838470846414566,
0.602675199508667,
-0.3656182885169983,
-0.08570359647274017,
-0.16559208929538727,
0.31353652477264404,
-0.26812517642974854,
-0.13373582065105438,
-0.5772463083267212,
-0.37356606125831604,
0.5364674925804138,
-0.45880505442619324,
-0.1244467869... | |
if (myConnection != null)
{
myConnection.Close();
myConnection = null;
} | [
-0.48652398586273193,
0.008682805113494396,
0.5621083378791809,
-0.32979699969291687,
0.3762021064758301,
-0.050217390060424805,
0.3422042727470398,
0.05286248028278351,
0.29287585616111755,
-0.5186370015144348,
-0.4170295000076294,
0.3257628381252289,
-0.49134311079978943,
0.4469446241855... | |
TempDataSet = null;
TempDataAdapter = null;
TempDataTable = null;
}
}
} | [
-0.23191729187965393,
-0.42261385917663574,
-0.18463945388793945,
0.05261978507041931,
-0.057081494480371475,
-0.08565966039896011,
0.5505608916282654,
-0.15972043573856354,
0.14622285962104797,
-0.3898480236530304,
-0.3017154633998871,
0.5068647861480713,
-0.5235952138900757,
0.1433880925... | |
GridView1.DataSourceID = String.Empty;
if (MainDataSet.Tables.Count != 0)
{
GridView1.DataSource = MainDataSet;
if (GridView1.DataSource != null)
{
GridView1.DataBind();
} | [
-0.2228960245847702,
-0.6591277718544006,
0.3534829914569855,
-0.24272054433822632,
-0.19308340549468994,
0.023365003988146782,
0.24632428586483002,
-0.085505910217762,
-0.07221394777297974,
-0.6420269012451172,
-0.3063446283340454,
0.37923556566238403,
-0.5677889585494995,
-0.025272650644... | |
}
}
protected void Button1_Click(object sender, EventArgs e)
{
BindData(TextBox1.Text);
}
```
Thanks!
UPDATE: The SQL code varies, for testing I have used very simple queries such as `select sysdate from dual` or `select name from v$database`. In eventual use, it will be much more complicated... | [
0.017259743064641953,
-0.16907760500907898,
0.1779146045446396,
0.0597580187022686,
-0.04124065861105919,
-0.34512555599212646,
0.5351414084434509,
0.11772528290748596,
-0.19852419197559357,
-0.8624862432479858,
-0.09585525095462799,
0.5851801037788391,
-0.4540795087814331,
0.0987989082932... | |
replicating to one db, is twofold. Firstly, the dbs in question are frequently updated replicas of several similar production environments (typically development, testing and support for each client), so anything done to the actual dbs would have to be updated or redone regularly as they are reloaded anyway. Secondly, ... | [
0.2971692979335785,
-0.13969649374485016,
0.11954987049102783,
0.12673251330852509,
-0.4457002580165863,
0.09958407282829285,
0.16509059071540833,
-0.5096927285194397,
-0.2917478084564209,
-0.5326038599014282,
0.21294353902339935,
0.6175143122673035,
-0.46612831950187683,
0.408644974231719... | |
the table will be updated with the results from the query. So instead of creating new DataTable and DataSet objects and then copying the DataRows manually you can just add rows to the same table.
Try something like this (in untested C# code):
```
public void BindData(string mySQL)
{
OracleConnection myConnection;
... | [
-0.030680691823363304,
-0.14800910651683807,
0.3160645067691803,
0.00956641510128975,
0.09220012277364731,
-0.04172072559595108,
0.16988399624824524,
-0.4247656464576721,
-0.1926945596933365,
-0.5799297094345093,
-0.171279639005661,
0.29702475666999817,
-0.4633658528327942,
0.3782935738563... | |
connectionString = "Data Source=" + li.Text + "";
connectionString += ";Persist Security Info=True;User ID=user;Password=pass;Unicode=True";
MainDataAdapter.SelectCommand.Connection.ConnectionString = connectionString
try
{
MainDataAdapter.Fill(MainDataTable);
}
catch (Oracle... | [
-0.23909690976142883,
-0.34405234456062317,
0.38297316431999207,
-0.02443866990506649,
0.3817344307899475,
-0.034065037965774536,
0.24774035811424255,
-0.244099423289299,
-0.3397311568260193,
-0.37070420384407043,
-0.497720867395401,
0.2617415487766266,
-0.43899449706077576,
0.134277924895... | |
"<br>";
}
}
}
GridView1.DataSourceID = String.Empty;
GridView1.DataSource = MainDataTable;
GridView1.DataBind();
}
```
I did the following changes:
* Created one data adapter and assigned it a select command using your mySQL query
* Gave the connection an empty connection string
* Created a data ta... | [
-0.21898029744625092,
-0.45651552081108093,
0.6351486444473267,
-0.3463985323905945,
-0.04548339918255806,
0.14995092153549194,
0.0675535723567009,
-0.1823914349079132,
-0.3257104158401489,
-0.8076930046081543,
-0.11325842887163162,
0.4269176423549652,
-0.42942869663238525,
0.4470501840114... | |
does this automatically.
And thats it. If your databases are offline you will still experience slowdowns, but at least the code is simpler and faster since you don't have to copy all the rows between your tables.
One more thing. You can probably set a timeout for the connection in the connection string. Try to lower... | [
0.23114672303199768,
-0.2140379697084427,
0.468824565410614,
0.3080537021160126,
0.30209681391716003,
-0.16800816357135773,
0.1380540132522583,
0.26080214977264404,
-0.5767295360565186,
-0.6187605857849121,
0.3384869396686554,
0.6505607962608337,
-0.15603360533714294,
-0.08108741790056229,... | |
I am starting a normal Java SE project and i am planning to use JPA/Hibernate. I was wondering if anyone could enlighten me as to what is considered the best way to interact with Hibernate in this environment (data access layers)?
I'm not sure what's considered the best approach to this, but at my workplace, we have ba... | [
0.4346732795238495,
-0.2947746217250824,
0.004463755991309881,
0.19772885739803314,
-0.34765389561653137,
-0.23804856836795807,
0.3149723410606384,
-0.05095561593770981,
0.1053503081202507,
-0.25187110900878906,
0.038315605372190475,
0.29879841208457947,
-0.0014683478511869907,
-0.02122342... | |
persistent class. This has worked out nicely for us. | [
-0.16246165335178375,
-0.41495150327682495,
0.48537489771842957,
0.47653353214263916,
0.043388307094573975,
-0.2890159785747528,
0.5552561283111572,
0.24400776624679565,
0.07899762690067291,
-0.35742518305778503,
0.1639781892299652,
0.4961971640586853,
0.5326957702636719,
-0.16750746965408... | |
I need to use different database connection string and SMTP server address in my ASP.NET application depending on it is run in development or production environment.
The application reads settings from Web.config file via [WebConfigurationManager.AppSettings](http://msdn.microsoft.com/en-us/library/system.web.configu... | [
0.19306369125843048,
-0.09304936230182648,
0.566691517829895,
-0.07593131810426712,
-0.03831508755683899,
0.29527512192726135,
0.36349648237228394,
-0.1346038579940796,
-0.3503859341144562,
-1.1380558013916016,
-0.13594791293144226,
0.6279730200767517,
-0.11048360913991928,
0.1767370253801... | |
and you will see two files:
* Web.Debug.Config
* Web.Release.Config
They contain transformation code that can be used to
* Change the connection string
* Remove debugging trace and settings
* Register error pages
See [Web.config Transformation Syntax for Web Application Project Deployment](http://msdn.microsoft.com... | [
0.1297304928302765,
-0.37619274854660034,
0.3667307496070862,
0.08141700178384781,
-0.20506449043750763,
0.23392841219902039,
0.2680955231189728,
-0.2971065938472748,
-0.3090704679489136,
-0.8034728765487671,
-0.2959904074668884,
0.565981388092041,
-0.02478392794728279,
0.0265862625092268,... | |
take care of creating transform for any config file. Starting with Visual Studio 2017.3, [SlowCheetah has been integrated into the IDE](https://blogs.msdn.microsoft.com/visualstudio/2017/08/15/updates-in-visual-studio-2017-based-on-your-uservoice-suggestions/) and the code base is being managed by Microsoft. This new v... | [
0.3796842694282532,
-0.6457223892211914,
0.7012185454368591,
-0.10596920549869537,
-0.37971392273902893,
0.05270178243517876,
0.32317090034484863,
-0.06473790109157562,
0.13070394098758698,
-0.9755498170852661,
-0.31843987107276917,
0.7284278869628906,
-0.08739668130874634,
0.0058652199804... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.