text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
of the link before the program is closed, and a few other less important things.
When the program loads the data should be read restoring the previous state of the application.
So I made a xml file like this:
```
...
<Directories>
<Directory id="0">
<FilePath>C:\Test1</FilePath>
<PathSeparator>\</P... | [
0.0017619599821045995,
-0.24604877829551697,
0.6633662581443787,
0.12769685685634613,
-0.02911604568362236,
-0.1783742755651474,
0.22031590342521667,
-0.4015764892101288,
-0.09868975728750229,
-0.785706102848053,
-0.261581689119339,
0.21478521823883057,
-0.3344738185405731,
0.2278593778610... | |
Select("id ="+id.ToString());// "id = id"
string temp = myRow[0]["FilePath"].ToString();
Directory result = new Directory();
result.path = temp;
temp = myRow[0]["PathSeparator"].ToString();
result.pathSeparator = temp[0];
return result;
}
```
All that works just fine, but then I tried to add n... | [
-0.1985647976398468,
-0.3444579243659973,
0.7300771474838257,
-0.2003854662179947,
-0.09216435253620148,
0.14077694714069366,
-0.03684988245368004,
-0.565151572227478,
-0.14966820180416107,
-0.5163150429725647,
-0.29287582635879517,
0.4192223846912384,
-0.24002200365066528,
0.1022147089242... | |
myRow.ItemArray[2] = pathSeparator.ToString();
myRow.ItemArray[3] = "lol";
ds.Tables["Directory"].Rows.Add(myRow);
ds.AcceptChanges();
ds.WriteXml(ApplicationDataManager.xmlPath);
return 8;
}
```
But all this writes is to a random place on the .xml
What am I doing wrong?
By the way if anyone hav... | [
0.204231858253479,
-0.1026027500629425,
0.6054984331130981,
0.12118252366781235,
-0.27162501215934753,
-0.2929668724536896,
0.4243745803833008,
-0.12195182591676712,
-0.30177226662635803,
-0.6960093975067139,
0.00633934186771512,
0.35557079315185547,
-0.24460335075855255,
0.445711642503738... | |
more fluent and intuitive and you can control where the nodes go... wherever you add them to the collection is where they appear in the resulting XML.
Here's a quick intro and there's a metric ton of information out there on the web about it if you search a bit:
<http://www.hookedonlinq.com/LINQtoXML5MinuteOverview.as... | [
0.6105120182037354,
-0.404157429933548,
0.47112610936164856,
0.15509521961212158,
-0.14949381351470947,
-0.20043228566646576,
0.28798708319664,
0.19616767764091492,
-0.22564366459846497,
-0.7232674360275269,
0.070252925157547,
0.2792835533618927,
0.18591292202472687,
-0.030006172135472298,... | |
I'm looking at a new project and we are wanting to use Flex (to provide the easy integration with AIR and provide a desktop app for our project). How easy does CakePHP play with Flex or is there a better PHP framework to use with Flex, or should we use none?
If LINQ is in your toolbox, I would highly recommend using th... | [
0.45450839400291443,
-0.13112644851207733,
0.31457194685935974,
0.3272266387939453,
0.054225970059633255,
-0.23561574518680573,
-0.288563996553421,
-0.08910995721817017,
-0.34493234753608704,
-0.6037339568138123,
0.06764129549264908,
0.2703327536582947,
-0.12578213214874268,
-0.31573954224... | |
quick intro and there's a metric ton of information out there on the web about it if you search a bit:
<http://www.hookedonlinq.com/LINQtoXML5MinuteOverview.ashx> | [
0.7214549779891968,
-0.33244597911834717,
0.40177229046821594,
0.24596768617630005,
-0.10437511652708054,
-0.5037940144538879,
0.32046782970428467,
0.5288626551628113,
-0.13060009479522705,
-0.5180646181106567,
0.19544249773025513,
0.2438075989484787,
0.29338857531547546,
0.132730126380920... | |
I have been having some problems trying to get my PHP running. When I try and run any scripts they appear in the source and do not run properly. This is the htaccess file:
```
# Use PHP5 as default
AddHandler application/x-httpd-php5 .php
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
```
Could this be the err... | [
0.3532106578350067,
0.3092760741710663,
0.55476313829422,
-0.15354715287685394,
-0.3118172287940979,
-0.22646978497505188,
0.31622955203056335,
-0.24998801946640015,
-0.12767711281776428,
-0.6526085138320923,
0.009021483361721039,
0.6692764163017273,
-0.24826127290725708,
-0.11333503574132... | |
you should have somewhere in your Apache configuration a line something like this (path may differ in your environment):
`LoadModule php5_module /usr/lib/apache2/modules/libphp5.so` | [
0.42017632722854614,
-0.07425311207771301,
0.27236732840538025,
-0.07915224879980087,
-0.1235249936580658,
-0.44555237889289856,
0.41059407591819763,
-0.13776127994060516,
-0.2760538160800934,
-0.43170130252838135,
-0.14086581766605377,
0.23424729704856873,
-0.2595449388027191,
-0.19662353... | |
What's a simple/easy way to access the system clock using Java, so that I can calculate the elapsed time of an event?
I would avoid using [`System.currentTimeMillis()`](https://docs.oracle.com/javase/8/docs/api/java/lang/System.html#currentTimeMillis--) for measuring elapsed time. [`currentTimeMillis()`](https://docs.o... | [
0.04105963557958603,
-0.02891462855041027,
0.5524324178695679,
0.05126490443944931,
0.1032874584197998,
0.10470833629369736,
0.12724646925926208,
-0.39286577701568604,
-0.22143711149692535,
-0.506130576133728,
0.19297495484352112,
0.32742416858673096,
0.038245998322963715,
0.22281681001186... | |
**UPDATE:** Thanks to everyone for the responses. I didn't realize document.write() was deprecated. Add a another notch to the learning column. I'll be taking the advice posted here, but leave the original question so that the answers given make sense in context of the original question.
---
I'm in the process of cod... | [
0.2630271911621094,
0.3193163573741913,
0.39980727434158325,
0.17505022883415222,
-0.09591896086931229,
-0.0865856260061264,
0.425851434469223,
-0.10403447598218918,
-0.03147271275520325,
-0.7786890864372253,
-0.20852403342723846,
0.49335309863090515,
0.05934906750917435,
-0.03238841891288... | |
very long words.</p>" + someVariable + "<p>Dociousaliexpisticfragilicalirepus is Supercalifragilisticexpialidocious spelled backwards.</p>" + someVariable);
</script>
```
b. Break them up by adding line breaks for somewhat improved readability:
```
<script>
var someVariable = "(<a href=\"http://www.example.com... | [
0.009631147608160973,
-0.036299146711826324,
0.549252986907959,
-0.04932395741343498,
-0.1868542730808258,
0.1639748513698578,
0.470976322889328,
0.2735322415828705,
-0.17862151563167572,
-0.4455218017101288,
-0.5475201606750488,
0.43903791904449463,
-0.10721451789140701,
-0.02161554619669... | |
very long words.</p>";
var partTwo = "<p>Dociousaliexpisticfragilicalirepus is Supercalifragilisticexpialidocious spelled backwards.</p>";
document.write(partOne + someVariable + partTwo + someVariable);
</script>
```
Thanks in advance.
My gut reaction is: **don't do that**. (Your example is poor, you sho... | [
-0.01140621118247509,
-0.04764542356133461,
0.456377238035202,
-0.08841859549283981,
-0.14701944589614868,
-0.18747171759605408,
0.6976470351219177,
-0.16834783554077148,
-0.2951129078865051,
-0.42232730984687805,
-0.5094060301780701,
0.5975736975669861,
0.11073358356952667,
-0.10637378692... | |
'asdfasdf asdf asdf asdfasdf asdfasdf asdf asdfasdf',
' fasdf s9d0af asdf asdf0s,dv z-xcfva-sdfmwaert ',
'qersdfasdfasdfasdfasdf'
].join('');
document.write(longVar);
``` | [
0.0645308643579483,
-0.06694458425045013,
0.7512716054916382,
-0.182800754904747,
-0.6303299069404602,
0.06859814375638962,
0.26598474383354187,
-0.6400088667869568,
-0.288565069437027,
-0.5427366495132446,
-0.702553391456604,
0.44088423252105713,
-0.2576371431350708,
-0.10218345373868942,... | |
I have a web application at work that is similar to a ticket working system. Some users enter new issues. Other workers choose and resolve issues. All of the data is maintained in MS SQL server 2005.
The users working to resolve issues go to a page where they can view open issues. Because up to twenty people can be lo... | [
0.20587077736854553,
0.15193240344524384,
0.12337253987789154,
0.006628451868891716,
-0.0601436048746109,
-0.2657584249973297,
0.014479509554803371,
0.004053256940096617,
-0.26900798082351685,
-0.8253432512283325,
0.4361318051815033,
0.3682706356048584,
-0.33568075299263,
0.132465541362762... | |
displaying the issues to select uses an AJAX timer to update every second. Once an issue has been selected, it disappears one second later at most. In case they select one within this second, they get a message asking them to choose another.
The problem is that the AJAX part of this is sending too many updates (this i... | [
-0.1121525838971138,
-0.08784770965576172,
0.4251505136489868,
0.30107519030570984,
-0.2622501254081726,
0.07443120330572128,
0.15845046937465668,
0.10925965756177902,
-0.49097511172294617,
-0.8796992897987366,
0.1014319658279419,
0.24962842464447021,
-0.388040155172348,
-0.046561606228351... | |
way, but I can't seem to find one. Does anyone have experience with a situation like this or have suggestions to keep multiple users from selecting the same record to maintain? I really do not want to disable the AJAX part entirely because I feel the message alone would make the application frustrating to use.
Thanks,... | [
0.20155319571495056,
0.07074948400259018,
-0.10307241231203079,
0.2719264030456543,
0.04999508708715439,
-0.2930106818675995,
0.23572853207588196,
0.1433260291814804,
-0.20107123255729675,
-0.7161561846733093,
0.5720950365066528,
0.6333935856819153,
-0.1954910010099411,
-0.0597969554364681... | |
In such cases, one of the users needs to be notified that their selection is invalid even though it appeared valid when selected. This notification doesn't need to be elaborate; keeping a light, helpful tone can improve user perception even in the light of disappointment. And if you identify the user who selected that ... | [
0.029964223504066467,
0.07609148323535919,
-0.10203518718481064,
0.29303616285324097,
-0.05365552753210068,
-0.15348319709300995,
0.10575950890779495,
0.06486117094755173,
-0.45924562215805054,
-0.4490351378917694,
0.018384495750069618,
0.454874187707901,
-0.08543938398361206,
-0.044180359... | |
a small tweak to how you display your cases can reduce selection collisions. Adding a random element to display order and/or filtering out every other case on display will help your users select different cases naturally. Human pattern recognition and task selection isn't really random so small changes to presentation ... | [
0.07122501730918884,
-0.04676034674048424,
-0.04615145921707153,
0.49289214611053467,
-0.2914518415927887,
0.1584538072347641,
-0.029153689742088318,
-0.08533898741006851,
-0.5013269782066345,
-0.823946475982666,
0.4125175476074219,
0.5553175806999207,
-0.2647341191768646,
0.07495053857564... | |
time is if you keep a log of when collisions occur (with helpful meta data about the collision—like who was involved and selection timing). Armed with solid collision data, you can find what works and what doesn't. Over time, you can hone your application to your actual use cases as well as identify potential problems ... | [
-0.01645910181105137,
-0.11387868225574493,
0.3638246953487396,
0.4401802122592926,
0.1320790797472,
-0.1636681705713272,
0.34184175729751587,
-0.01674460992217064,
-0.269599586725235,
-0.9840372800827026,
-0.013664563186466694,
0.5950534343719482,
-0.017792660742998123,
-0.376920819282531... | |
experience. And with useful logging, you'll have the assurance that any tweaks you put in place are actually working (or not—which is maybe even more useful to know). | [
0.9276121854782104,
0.08060014247894287,
0.01613560877740383,
0.1338883638381958,
0.42622584104537964,
-0.2207769751548767,
0.3020830452442169,
0.011768077500164509,
-0.6259135007858276,
-0.3245406448841095,
-0.03738328441977501,
0.5097154378890991,
0.33360564708709717,
-0.4153280854225158... | |
This is an accident and I don't think there's a solution. But I'm asking anyways.
I introduced SVN to our webshop and I set all the dev pc's htdocs as part of the repository. (my first mistake)
Now, one of my coworkers are working on a project and didn't commit their code to svn (second mistake). His reasoning was th... | [
0.4788148105144501,
0.06009628623723984,
0.10531163960695267,
0.22876602411270142,
0.02961299754679203,
-0.32496553659439087,
0.22824014723300934,
0.02141297608613968,
-0.09178312122821808,
-0.46261513233184814,
0.0439031608402729,
0.6641837358474731,
-0.24901798367500305,
0.02924878522753... | |
my coworker's project disappeared.
So my question is: is there any way to recover the uncomitted code?
P.s., I'm planning to add "source code doesn't exist unless its in subversion" and "backup daily" to our rules to prevent this from happening again.
You won't find the answer in SVN, but you can use something like t... | [
0.3076484501361847,
0.014911278150975704,
-0.047376323491334915,
0.21104563772678375,
0.374310165643692,
-0.505233108997345,
0.1234455406665802,
0.2362957000732422,
-0.2913648188114166,
-0.2234753966331482,
-0.25227391719818115,
0.4816914200782776,
0.1197613850235939,
0.22860705852508545,
... | |
I'm working on a simple javascript login for a site, and have come up with this:
```
<form id="loginwindow">
<strong>Login to view!</strong>
<p><strong>User ID:</strong>
<input type="text" name="text2">
</p>
<p><strong>Password:</strong>
<input type="password" name="text1"><br>
<input type="button" value="Check In... | [
0.030789636075496674,
0.33016619086265564,
0.6675845980644226,
-0.2442941665649414,
-0.04290281608700752,
-0.19502614438533783,
0.451651394367218,
-0.41109317541122437,
-0.05074536055326462,
-0.5871604084968567,
-0.20258785784244537,
0.607117772102356,
-0.02631956897675991,
-0.311617612838... | |
secret, so it's not a huge issue, but if you guys could elaborate on your thoughts with code, I'd love to see your ideas. the code i listed is literally all I'm working with at this point, so I can start from scratch if need be.
There are several topics being discussed at once here. Let's try to clarify.
**1. Your Imm... | [
0.2651294469833374,
0.021185100078582764,
-0.11209312826395035,
0.22733671963214874,
0.06853145360946655,
-0.07739723473787308,
0.3336199223995209,
-0.0711601972579956,
-0.21741749346256256,
-0.5489547848701477,
-0.08304007351398468,
0.775468111038208,
-0.31695032119750977,
-0.015446952544... | |
because you've used the **button** input type, which simply doesn't behave the same way that submit buttons do.
In HTML and XHTML, there are default behaviors for certain elements. Input buttons on forms are often of type "submit". In most browsers, "submit" buttons **fire by default** when ENTER is pressed from a foc... | [
0.21926237642765045,
-0.11365830898284912,
0.19395367801189423,
-0.09836143255233765,
-0.3693712055683136,
-0.0851844847202301,
0.30127909779548645,
-0.26773491501808167,
-0.1524048149585724,
-0.7711392641067505,
-0.24737419188022614,
0.38396796584129333,
-0.3595017194747925,
-0.1397518068... | |
<input type="submit" value="go"/>
</form>
```
**2. Security concerns:**
*@Ady* mentioned a security concern. There are a whole bucket of security concerns associated with doing a **login in javascript**. These are probably outside of the **domain of this question**, especially since you've indicated that you aren't ... | [
0.4509845972061157,
-0.029195817187428474,
0.21302935481071472,
0.0711403340101242,
-0.13873572647571564,
-0.45714542269706726,
0.17930671572685242,
0.07975826412439346,
-0.5676886439323425,
-0.6154263019561768,
-0.14541101455688477,
0.36001572012901306,
-0.025827204808592796,
0.0228996817... | |
I can do a user validation client-side?**](https://stackoverflow.com/questions/32710/is-there-some-way-i-can-validate-a-user-in-client-side)
* [**Encrypting Ajax calls for authentication in jQuery**](https://stackoverflow.com/questions/148068/is-encrypting-ajax-calls-for-authentication-possible-with-jquery)
**3. Other... | [
0.11377039551734924,
-0.046429768204689026,
0.4006916880607605,
0.1388903707265854,
-0.1321531981229782,
-0.5688065886497498,
0.4289771616458893,
-0.13392499089241028,
-0.18308083713054657,
-0.4673846364021301,
-0.09938886016607285,
0.5199673175811768,
0.18724167346954346,
-0.3074938952922... | |
belong in javascript, and it's considered a best practice to keep the javascript events out of the markup.
```
<form action="#" method="post" id="loginwindow">
<h3>Login to view!</h3>
<label>User ID: <input type="text" id="userid"></label>
<label>Password: <input type="password" id="pass"></label>
<in... | [
0.07116077095270157,
0.15425962209701538,
0.3114849627017975,
-0.12137062102556229,
-0.10037826746702194,
-0.4001891314983368,
0.2612941563129425,
-0.7013794183731079,
-0.2459835559129715,
-0.6171729564666748,
-0.4030844569206238,
0.00944206491112709,
-0.43662816286087036,
0.45555925369262... | |
var pass = document.getElementById('pass');
// Make sure javascript found the nodes:
if (!userid || !pass ) {
return false;
}
// Actually check values, however you'd like this to be done: | [
-0.17354796826839447,
-0.39633020758628845,
0.29369550943374634,
0.020205456763505936,
0.17161430418491364,
-0.2895028293132782,
0.7362838387489319,
-0.499420702457428,
-0.053506847470998764,
-0.6161526441574097,
-0.27004244923591614,
0.13310043513774872,
-0.36072173714637756,
-0.194815248... | |
if (pass.value !== "secret") {
location.href = 'failure.html';
}
location.href = 'album.html';
return false;
};
}
};
</script>
``` | [
-0.050825901329517365,
0.197621688246727,
0.3788343071937561,
-0.230536088347435,
0.42954084277153015,
-0.25603243708610535,
0.4992566406726837,
-0.24760538339614868,
0.09164251387119293,
-0.3476814329624176,
-0.8710609078407288,
0.3582225441932678,
-0.042055051773786545,
0.091104924678802... | |
Just to clarify, I'm running Sybase 12.5.3, but I am lead to believe that this holds true for SQL Server 2005 too. Basically, I'm trying to write a query that looks a little like this, I've simplified it as much as possible to highlight the problem:
```
DECLARE @a int, @b int, @c int
SELECT
@a = huzzah.a
,@... | [
0.1351393610239029,
0.343494713306427,
0.3251516819000244,
-0.3864750862121582,
-0.024619674310088158,
-0.28499314188957214,
0.25813135504722595,
-0.0780959203839302,
-0.1577807068824768,
-0.2970581650733948,
0.10496368259191513,
0.4794050455093384,
-0.45913800597190857,
0.2017249166965484... | |
,3 c
) huzzah
```
This query gives me the following error: *"Error:141 A SELECT statement that assigns a value to a variable must not be combined with data-retrieval operations."*
The only work around that I've got for this so far, is to insert the derived-table data into a temporary table and then select it right b... | [
0.08984129130840302,
0.43993979692459106,
0.20885901153087616,
-0.30331942439079285,
0.04775890335440636,
0.004151557106524706,
0.29048725962638855,
-0.32550978660583496,
-0.07169418781995773,
-0.2825779616832733,
-0.0035257521085441113,
0.6251443028450012,
-0.295899897813797,
0.2053039968... | |
bug that's been patched, your only options seem to be workaround or patch.
Have found what appears to be the [bug 377625](http://search.sybase.com/kbx/changerequests?bug_id=377625) | [
0.12266777455806732,
0.1110321432352066,
0.04508985951542854,
-0.013437838293612003,
0.313140332698822,
-0.09704075753688812,
0.12200741469860077,
0.21348734200000763,
-0.6892683506011963,
-0.7045058012008667,
-0.24267378449440002,
0.40982553362846375,
-0.6255006194114685,
0.26143595576286... | |
Using PHP, what's the fastest way to convert a string like this: `"123"` to an integer?
Why is that particular method the fastest? What happens if it gets unexpected input, such as `"hello"` or an array?
I've just set up a quick benchmarking exercise:
```
Function time to run 1 million iterations
--------... | [
-0.2531169354915619,
0.029975533485412598,
0.3883703649044037,
-0.04181015118956566,
-0.33028674125671387,
0.16150876879692078,
0.2179330587387085,
-0.34400567412376404,
-0.0892239511013031,
-0.32075613737106323,
0.25111496448516846,
0.3656923770904541,
-0.21137785911560059,
-0.24738270044... | |
0.42461
intval("0"): 0.95683 (225%)
(int) int: 0.1502
intval(int): 0.65716 (438%)
(int) array("a", "b"): 0.91264
intval(array("a", "b")): 1.47681 (162%)
(int) "hello": 0.42208
intval("hello"): | [
-0.4208028018474579,
0.05634583160281181,
0.2728458046913147,
-0.4417581558227539,
-0.03020969033241272,
0.7306140065193176,
0.5795926451683044,
-0.49365904927253723,
0.0010916459141299129,
-0.6170806884765625,
-0.23493824899196625,
0.48231926560401917,
-0.23412464559078217,
0.066839925944... | |
0.93678 (222%)
```
On average, calling intval() is two and a half times slower, and the difference is the greatest if your input already is an integer.
I'd be interested to know *why* though.
---
Update: I've run the tests again, this time with coercion `(0 + $var)`
```
| INPUT ($x) | (int) $x |intval($x) ... | [
-0.22729147970676422,
0.06666844338178635,
0.43778666853904724,
-0.18065299093723297,
-0.09893310070037842,
0.23521994054317474,
0.6232311725616455,
-0.5062071681022644,
-0.028665252029895782,
-0.6259892582893372,
-0.10943441838026047,
0.8000333905220032,
-0.029391827061772346,
-0.11854179... | |
| 0.42723 | 0.97418 | 0.31353 |
| 123 | 0.15011 | 0.61690 | 0.15452 |
| array("a", "b") | 0.8893 | 1.45109 | err! |
| "hello" | 0.42618 | 0.88803 | 0.1691 |
|-----------------|------------|-----------|-----------|
```
**Addendum:** I've just come across a slightly ... | [
-0.36983683705329895,
0.05550242215394974,
0.36099594831466675,
-0.24104870855808258,
0.12719440460205078,
0.39002725481987,
0.772607147693634,
-0.04549303278326988,
-0.3290766477584839,
-0.46367305517196655,
-0.2758007347583771,
0.34376853704452515,
-0.19393374025821686,
0.047363143414258... | |
which you should be aware of when choosing one of these methods:
```
$x = "11";
(int) $x; // int(11)
intval($x); // int(11)
$x + 0; // int(11)
$x = "0x11";
(int) $x; // int(0)
intval($x); // int(0)
$x + 0; // int(17) !
$x = "011";
(int) $x; // int(11)
intval($x); // int(11)
$x +... | [
0.18192067742347717,
0.31439629197120667,
0.3387620449066162,
-0.2927832007408142,
-0.06776390969753265,
0.257790207862854,
0.404635488986969,
-0.5048678517341614,
-0.14419180154800415,
-0.4291723668575287,
-0.1280806064605713,
0.6160186529159546,
-0.2594226002693176,
-0.2700708508491516,
... | |
Is there a way in *Xcode* to sort my list of files under say the Classes folder Alphabetically?
I know I can drag them around, but with tons of files that is a pain.
I am surprised I can not right click on the folder and say to sort.
Click on the folder, and then click Edit > Sort > By Name | [
0.13680341839790344,
0.24005283415317535,
0.02466084249317646,
0.04980417340993881,
-0.09259922802448273,
0.02669597417116165,
0.16874998807907104,
0.312578409910202,
-0.4140101969242096,
-0.7095082998275757,
-0.005284708924591541,
0.0053373961709439754,
0.055204395204782486,
0.38882347941... | |
I am a complete JSP beginner. I am trying to use a `java.util.List` in a JSP page. What do I need to do to use classes other than ones in `java.lang`?
Use the following import statement to import `java.util.List`:
```
<%@ page import="java.util.List" %>
```
BTW, to import more than one class, use the following forma... | [
0.12629544734954834,
0.14468657970428467,
0.03831624239683151,
-0.3251531422138214,
-0.2697336971759796,
-0.15843522548675537,
0.48877885937690735,
-0.09959834814071655,
0.08968189358711243,
-0.7083293795585632,
-0.23964442312717438,
0.4089259207248688,
-0.2514403164386749,
-0.143933460116... | |
I am looking for resources on Microsoft Sync Framework. Although MSDN and Google Search gave me the brief overview, I want some demos and presentations.
Also, is Live Mesh based on Sync Framework?
Maybe those links will be helpful:
* [Sync101 - Getting Started with Sync](http://code.msdn.microsoft.com/sync/Release/Pr... | [
0.17830847203731537,
0.06028984859585762,
0.44056376814842224,
0.034741420298814774,
-0.1688121259212494,
0.045078836381435394,
0.31860125064849854,
-0.2060880810022354,
0.1718064844608307,
-0.8489237427711487,
-0.062336187809705734,
0.47358524799346924,
-0.23183411359786987,
0.05163111910... | |
An old Direct3D book says
> "...you can achieve an acceptable frame
> rate with hardware acceleration while
> displaying between 2000 and 4000
> polygons per frame..."
What is one polygon in Direct3D? Do they mean one primitive (indexed or otherwise) or one triangle?
That book means triangles. Otherwise, what if ... | [
-0.011092462576925755,
0.05116472765803337,
0.4472196400165558,
0.2580445110797882,
-0.4101569354534149,
0.29259052872657776,
-0.005481285508722067,
-0.059090014547109604,
-0.3174968659877777,
-0.7465493083000183,
0.33642664551734924,
0.30367007851600647,
-0.1796962022781372,
-0.0313904993... | |
In our application we enable users to print pages. We do this by supplying a button which when click calls the window.print() function.
Some of the pages would look better if they were printed in landscape mode rather than portrait. Is there a way to control the page layout from JavaScript?
Update: Following the a... | [
0.3320598304271698,
-0.06572656333446503,
0.5963481068611145,
0.04096704348921776,
0.05426941066980362,
-0.115958072245121,
-0.03103085793554783,
-0.0935690850019455,
-0.19243964552879333,
-0.8211291432380676,
-0.05148258060216904,
0.509009838104248,
-0.13889436423778534,
-0.33024978637695... | |
the standard is `size: landscape`, but I have no idea how well that's supported across browsers. | [
0.35854509472846985,
-0.16279864311218262,
0.27028322219848633,
-0.18760573863983154,
0.07844164967536926,
-0.20506875216960907,
-0.14570878446102142,
0.263532817363739,
-0.41825586557388306,
-0.6981452703475952,
-0.2727191150188446,
0.2773778736591339,
-0.08967384696006775,
0.143942266702... | |
I want to configure SMTP on my web server, so that any email sent through the SMTP server is relayed to a remote SMTP Server. The IIS SMTP server would have to use SMTP authentication, and use the host name, username and password (as if configuring a normal email client).
Does anybody know if this is possible?
Yes, it... | [
0.051956865936517715,
0.13792002201080322,
0.43413323163986206,
0.09247352182865143,
-0.22499319911003113,
-0.01897411234676838,
0.23135635256767273,
0.0006457956042140722,
-0.3400115966796875,
-0.3292774260044098,
0.11933556199073792,
0.10807659476995468,
-0.12458541244268417,
-0.12361934... | |
click the SMTP site, select properties, Delivery tab, Outbound security, and enter your credientials in the Basic Authentication fields. Back on the Delivery tab, you then click Advanced and enter the remote SMTP server name in the SmartHost field.
**Editing**
-----------
The links above are no longer available.
Try... | [
0.0017381067154929042,
-0.2589222490787506,
0.4227435886859894,
0.19673462212085724,
-0.24467885494232178,
-0.20100075006484985,
0.52215975522995,
0.4371318519115448,
-0.14413361251354218,
-0.6278839707374573,
-0.20159141719341278,
0.391417533159256,
-0.044560451060533524,
0.08648016303777... | |
Let's say I have the following table:
```
CustomerID ParentID Name
========== ======== ====
1 null John
2 1 James
3 2 Jenna
4 3 Jennifer
5 3 Peter
6 | [
-0.12537701427936554,
0.4551752507686615,
0.6438118815422058,
-0.5386471748352051,
0.1281045377254486,
0.4777258634567261,
0.15876929461956024,
0.12732988595962524,
0.06778118014335632,
-0.32798099517822266,
0.19221560657024384,
0.32273080945014954,
-0.3121090829372406,
0.3822217881679535,... | |
5 Alice
7 5 Steve
8 1 Larry
```
I want to retrieve in one query all the descendants of James (Jenna,Jennifer,Peter, Alice, Steve).
Thanks,
Pablo.
On SQL Server 2005 you can use [CTEs (Common Table Expressions)](https://web.archive.org/web/20210927200924/http://www.4guysfromroll... | [
-0.2182876169681549,
0.30421459674835205,
0.36311325430870056,
-0.18507607281208038,
-0.07456975430250168,
0.4329509139060974,
0.21632327139377594,
-0.06278376281261444,
-0.47069084644317627,
-0.011361885815858841,
-0.12287122756242752,
-0.09125062078237534,
-0.25359365344047546,
0.4704610... | |
2 -- insert parameter here
union all
select c.CustomerID, c.ParentID, c.Name, ch.Level + 1
from Customers c
inner join Hierachy ch
on c.ParentId = ch.CustomerID
)
select CustomerID, ParentID, Name
from Hierachy
where Level > 0
``` | [
-0.25890812277793884,
0.03792746737599373,
0.6051605343818665,
0.05265336111187935,
0.1196674033999443,
0.2308795303106308,
-0.31866350769996643,
-0.1071467325091362,
0.2329014092683792,
-0.5130093097686768,
-0.36721134185791016,
0.4435073435306549,
-0.15145717561244965,
0.1329250335693359... | |
I have database with many tables. In the first table, I have a field called `status`.
```
table 1
idno name status
111 hjghf yes
225 hjgjj no
345 hgj yes
```
Other tables could have same `idno` with different fields.
I want to check the status for each id no and if it is yes then for that id n... | [
0.22117720544338226,
0.34500259160995483,
0.15809260308742523,
0.11551842838525772,
-0.09100209921598434,
0.07582352310419083,
-0.13765503466129303,
-0.2453015297651291,
-0.24597664177417755,
-0.7811403274536133,
0.40560999512672424,
0.23178750276565552,
0.0688137486577034,
0.2941856980323... | |
I can adapt.
Thanks
Here is some largely untested code. Hopefully it will give you a start.
```
Sub UpdateNulls()
Dim strSQL As String
Dim rs As DAO.Recordset
For Each tdf In CurrentDb.TableDefs
If Left(tdf.Name, 4) <> "Msys" And tdf.Name <> "Table1" Then
strSQL = "Select * From [" & tdf.Name & "] a Inner... | [
0.21145176887512207,
-0.07439164817333221,
1.0057814121246338,
-0.12955857813358307,
-0.01848367415368557,
-0.014888690784573555,
0.4642230272293091,
-0.49001190066337585,
-0.3370249569416046,
-0.7849227786064148,
-0.12606345117092133,
0.6339151859283447,
-0.31776443123817444,
0.2198256552... | |
For i = 0 To rs.Fields.Count - 1
If IsNull(rs.Fields(i)) Then
rs.Edit
rs.Fields(i) = 111111
rs.Update | [
0.0798354297876358,
0.007052902597934008,
0.7984212636947632,
-0.30590713024139404,
-0.0913180261850357,
-0.20102232694625854,
0.09400131553411484,
-0.5117058753967285,
-0.33570337295532227,
-0.5452619791030884,
-0.10836828500032425,
0.30740001797676086,
-0.6050494313240051,
0.308030635118... | |
End If
Next
rs.MoveNext
Loop
End If
Next
End Sub
``` | [
-0.05386953428387642,
-0.20399682223796844,
0.5941213369369507,
-0.1717200130224228,
0.04080086946487427,
-0.2802108824253082,
0.314180850982666,
-0.12173006683588028,
-0.3940236270427704,
-0.19970455765724182,
-0.6134181618690491,
-0.15527430176734924,
-0.4969259798526764,
0.5859491825103... | |
I'm currently working on a project which needs to persist any kind of object (of which implementation we don't have any control) so these objects could be recovered afterwards.
We can't implement an ORM because we can't restrict the users of our library at development time.
Our first alternative was to serialize it ... | [
0.1621880680322647,
0.07985120266675949,
0.09373927861452103,
0.14148195087909698,
0.04526137933135033,
-0.3867628872394562,
0.1463918834924698,
0.08256440609693527,
-0.3481210470199585,
-0.574172854423523,
0.02542031928896904,
0.27430522441864014,
-0.24298444390296936,
0.362907350063324,
... | |
that there is a lack of functionality (doesn't support Enums for example).
Finally, we also tried JAXB but this impose our users to annotate their classes.
Any good alternative?
The easiest thing for you to do is still to use serialization, IMO, but put more thought into the serialized form of the classes (which you... | [
0.34528324007987976,
-0.03637139871716499,
-0.09199431538581848,
0.24794647097587585,
-0.17136357724666595,
-0.15128235518932343,
0.2760336399078369,
0.18151727318763733,
-0.11486411094665527,
-0.7778463363647461,
0.17605358362197876,
0.509994626045227,
-0.1899062544107437,
0.1053085103631... | |
have said comes from Effective Java. I'll instead, refer you to it, specifically the chapters about Serialization. It warns you about all the problems you're running into, and provides proper solutions to the problem:
[http://www.amazon.com/Effective-Java-2nd-Joshua-Bloch/dp/0321356683](https://rads.stackoverflow.com/... | [
0.5207015872001648,
0.071035236120224,
0.41935059428215027,
-0.10861588269472122,
-0.16578274965286255,
-0.39653074741363525,
0.15396945178508759,
-0.1603381186723709,
-0.18762807548046112,
-0.5026583075523376,
0.03613590449094772,
0.34133705496788025,
-0.14171485602855682,
0.1251022964715... | |
I really liked the YAML format (at least as a custom toString() format). But really, the only difference for you is that you'd be marshalling to YAML instead of XML. The only benefit is that that YAML is slightly more human readable than XML. The same restrictions apply. | [
0.4453977942466736,
-0.04527004063129425,
0.22198989987373352,
0.12302292883396149,
-0.41579723358154297,
-0.18525010347366333,
0.022412018850445747,
0.2446596324443817,
-0.10203714668750763,
-0.3174803555011749,
-0.1581966131925583,
0.5136483311653137,
-0.22181829810142517,
0.034904040396... | |
Is there in Ruby some functionality/syntax to compare two floats with delta? Something similar to *assert\_in\_delta(expected\_float, actual\_float, delta)* from *test/unit* but returning Boolean?
```
(expected_float - actual_float).abs <= delta
``` | [
0.27715322375297546,
-0.28082147240638733,
0.09368149191141129,
-0.02656370773911476,
-0.2997675836086273,
0.09514883160591125,
0.13945958018302917,
-0.19204355776309967,
0.01925443485379219,
-0.44366654753685,
0.11770931631326675,
0.46194514632225037,
-0.24901030957698822,
-0.368141889572... | |
What's the best way to embed Ruby as a scripting language in C++? Using ruby.h? SWIG? Something else? What I need is to expose some C++ objects to Ruby and have the Ruby interpreter evaluate scripts that access these objects. I don't care about extending Ruby or accessing it in C++.
I've found this [article on embeddi... | [
0.3213905990123749,
0.3555576801300049,
0.17938362061977386,
-0.00019234983483329415,
-0.35978811979293823,
-0.17290359735488892,
0.34948036074638367,
0.15426981449127197,
-0.10381550341844559,
-0.5507872700691223,
0.16379892826080322,
0.5579519271850586,
-0.306763619184494,
0.081012934446... | |
want a language that embeds nicely into C++, try lua | [
0.12006232142448425,
-0.05249045789241791,
-0.2604869306087494,
-0.09324708580970764,
0.0026706852950155735,
0.1556621938943863,
-0.28139322996139526,
0.3480398654937744,
-0.2933390438556671,
-0.35958945751190186,
-0.0602354034781456,
0.3869714140892029,
-0.2823762893676758,
-0.02687638066... | |
I'm applying for a masters in fall of next year and was wondering if anyone had suggestions for interesting/challenging master's degrees in CS. I think that even though picking the right university is important, it is even more important to pick a master's degree where you'll find talented/creative people to interact a... | [
0.680271565914154,
0.43363723158836365,
0.10829827189445496,
0.35287967324256897,
0.315895140171051,
-0.19130457937717438,
0.328813374042511,
0.4422166049480438,
-0.44505006074905396,
-0.6932894587516785,
0.0700526013970375,
0.4377703368663788,
0.47812747955322266,
-0.03149913251399994,
... | |
lee, blaise aguera, jeff han, 42entertainment, and jonathan harris (ted.com)
> background: never taken AI, discrete math, compilers, operating systems, data structures, cryptography or anything involving c/c++ courses
Hmmm ... It would have been OK had you not taken cryptogrophy or AI, but if you dont have an idea of ... | [
0.5582617521286011,
0.4496989846229553,
-0.27927643060684204,
0.1671769917011261,
-0.11289134621620178,
-0.18874527513980865,
0.30615609884262085,
0.1397368609905243,
-0.34059253334999084,
-0.1672820895910263,
0.05978493392467499,
0.5129116773605347,
0.27296212315559387,
-0.421558558940887... | |
I have a class with some abstract methods, but I want to be able to edit a subclass of that class in the designer. However, the designer can't edit the subclass unless it can create an instance of the parent class. So my plan is to replace the abstract methods with stubs and mark them as virtual - but then if I make an... | [
0.3348022997379303,
0.06596823781728745,
-0.09630400687456131,
0.334216445684433,
-0.12345593422651291,
0.0752297043800354,
0.3567303717136383,
0.2654637098312378,
-0.2834802567958832,
-0.7473292946815491,
0.32443442940711975,
0.4031948745250702,
-0.21907827258110046,
0.34670478105545044,
... | |
do some really messy code involving `#if` - i.e. in `DEBUG` it is virtual (for the designer), but in `RELEASE` it is abstract. A real pain to maintain, though.
But other than that: basically, no. If you want designer support it can't be abstract, so you are left with "virtual" (presumably with the base method throwing... | [
0.413737416267395,
-0.13054044544696808,
0.025856859982013702,
0.19595098495483398,
-0.0023997751995921135,
-0.2576402723789215,
0.3315540850162506,
-0.1137530505657196,
-0.07393097132444382,
-0.45605090260505676,
-0.2593635022640228,
0.6799988746643066,
-0.35413065552711487,
0.25958701968... | |
ActualTest<Bar>();
}
static void ActualTest<T>() where T : SomeBaseClass, new() {
T obj = new T();
Assert.blah something involving obj
}
``` | [
0.4848996102809906,
-0.08505197614431381,
0.529442310333252,
-0.12907692790031433,
-0.051835138350725174,
0.2501468062400818,
0.3170512616634369,
-0.0273736584931612,
0.011102554388344288,
-0.45431458950042725,
-0.07288389652967453,
0.6669110059738159,
-0.35588160157203674,
0.2160027176141... | |
I have a WinForms C# application using a MS SQL Server Express database. The application is deployed on the PCs of our customers and they don't have computer related knowledge.
The application updates the database regularly and I see a lot of fragmentation on the index files. How do I keep the database healthy/respon... | [
0.2098129391670227,
0.40512213110923767,
0.3247852325439453,
0.07388094067573547,
-0.08582954108715057,
0.005520402453839779,
0.08675654977560043,
-0.15663862228393555,
0.07367052882909775,
-0.9528347849845886,
0.10380042344331741,
0.6862190365791321,
-0.20648156106472015,
0.24535246193408... | |
indexid,
partition_number AS partitionnum,
avg_fragmentation_in_percent AS frag,
o.name,
i.name
FROM
sys.dm_db_index_physical_stats (DB_ID(), NULL, NULL , NULL, 'LIMITED') st
join
sys.objects o on o.object_id = st.object_id
join
sys.indexes i on st.object_id = i.object_id and i.index_id=st... | [
-0.5245750546455383,
0.004130895249545574,
0.4805417060852051,
-0.15942034125328064,
0.002694769762456417,
0.16608068346977234,
0.14465966820716858,
-0.4665667414665222,
-0.29049140214920044,
-1.1443837881088257,
-0.32689642906188965,
0.4004180133342743,
-0.24765150249004364,
0.33729493618... | |
bigint;
DECLARE @frag float;
DECLARE @command nvarchar(4000);
-- Conditionally select tables and indexes from the sys.dm_db_index_physical_stats function
-- and convert object and index IDs to names.
if ( object_id( 'tempdb..#work_to_do' ) is not null )
DROP TABLE #work_to_do;
-- Alleen indexen die meer dan x% ge... | [
-0.14703655242919922,
-0.35119062662124634,
0.2683117985725403,
-0.16173112392425537,
-0.07386994361877441,
0.13499602675437927,
0.4480813443660736,
-0.5003853440284729,
-0.2091384083032608,
-0.7030586004257202,
-0.06169392541050911,
0.5972944498062134,
-0.3272298574447632,
0.1892293840646... | |
#work_to_do;
-- Open the cursor.
OPEN partitions;
-- Loop through the partitions.
WHILE (1=1)
BEGIN;
FETCH NEXT
FROM partitions
INTO @objectid, @indexid, @partitionnum, @frag;
IF @@FETCH_STATUS < 0 BREAK;
SELECT @objectname = QUOTENAME(o.name), @schemaname = QUOTENAME... | [
-0.08350984752178192,
-0.3407519459724426,
0.6544981002807617,
-0.08980423212051392,
0.2752341330051422,
0.20049139857292175,
0.25149545073509216,
-0.3629632890224457,
-0.355202317237854,
-0.7542283535003662,
-0.4105900824069977,
0.35357168316841125,
-0.2272026389837265,
0.1266223788261413... | |
= o.schema_id
WHERE o.object_id = @objectid;
SELECT @indexname = QUOTENAME(name)
FROM sys.indexes
WHERE object_id = @objectid AND index_id = @indexid;
SELECT @partitioncount = count (*)
FROM sys.partitions
WHERE object_id = @objectid AND index_id = @indexid;
... | [
-0.01875980757176876,
-0.25753650069236755,
0.360200971364975,
-0.12466561794281006,
0.05165537819266319,
0.3291570842266083,
-0.36547791957855225,
-0.3544715344905853,
-0.21647001802921295,
-0.5717316269874573,
-0.21487244963645935,
0.3624107837677002,
-0.26949191093444824,
0.149676412343... | |
+ N' ON ' + @schemaname + N'.' + @objectname + N' REBUILD WITH (FILLFACTOR = 90)';
IF @partitioncount > 1
SET @command = @command + N' PARTITION=' + CAST(@partitionnum AS nvarchar(10));
EXEC (@command);
PRINT N'Executed: ' + @command;
END;
-- Close and deallocate the cursor.
CLO... | [
-0.19148820638656616,
0.11700703203678131,
0.714818000793457,
-0.4392305910587311,
0.17193298041820526,
0.15630218386650085,
0.3096042275428772,
-0.5219192504882812,
-0.33539077639579773,
-0.7466887831687927,
-0.44868209958076477,
0.5690761208534241,
-0.2656228244304657,
0.2032953351736068... | |
I'm kinda stuck with this one so I hoped someone could help me.
I am doing a Winforms application and I need to show a Modal Dialog (form.ShowDialog) that returns a value (prompts the User some values and wraps them in a Object).
I just can't see how to do this rather than give a reference into the object or dependi... | [
0.401411771774292,
0.008389333263039589,
0.4819670021533966,
0.15627457201480865,
-0.07146424055099487,
-0.13649965822696686,
0.15040959417819977,
0.04401438683271408,
-0.07187330722808838,
-0.4743644595146179,
0.19529670476913452,
0.3907437324523926,
-0.29890957474708557,
0.25272667407989... | |
nobody seems to do Winforms any more I can't find any guidance on the web.
Add a static method to your form, like this:
```
public class MyDialog : Form
{
// todo: think of a better method name :)
public static MyObject ShowAndReturnObject()
{
var dlg = new MyDialog();
if (new dlg.ShowDial... | [
0.11794659495353699,
0.0017312145791947842,
0.6448279023170471,
-0.08754823356866837,
-0.08313080668449402,
-0.16697026789188385,
0.2982181906700134,
-0.0020443028770387173,
-0.05265213921666145,
-0.6813087463378906,
-0.07276703417301178,
0.37466105818748474,
-0.3788008987903595,
0.1220959... | |
an instance of MyObject from dlg
return obj;
}
else
{
return null;
}
}
}
```
Now you can call this from your program thusly:
```
var myObject = MyDialog.ShowAndReturnObject();
```
... and if they cancel the dialog, myObject will be null.
Now, having said... | [
-0.12028924375772476,
0.18397673964500427,
0.31686529517173767,
-0.3031535744667053,
0.08637314289808273,
-0.17777352035045624,
0.31480827927589417,
0.07713410258293152,
0.011678353883326054,
-0.6219711899757385,
-0.30965617299079895,
0.5548986196517944,
-0.45592018961906433,
0.21951307356... | |
to your form's class which you then read from after calling ShowDialog() is the better approach. | [
0.4061073064804077,
-0.37832629680633545,
0.5963427424430847,
-0.005844913423061371,
-0.04925073683261871,
-0.36310794949531555,
0.2270941436290741,
0.12014877051115036,
0.2096390426158905,
-0.5288980007171631,
-0.18770290911197662,
0.46328654885292053,
0.2769569456577301,
-0.2538060843944... | |
I have a setup project for a .NET Service Application which uses a .NET component which exposes a COM interface (COM callable wrapper / CCW).
To get the component working on a target machine, it has to be registered with
> regasm.exe /tlb /codebase component.dll
The /tlb switch to generate the typelib is mandatory in... | [
0.6191202998161316,
0.1461399644613266,
0.19363844394683838,
-0.19441471993923187,
0.12274816632270813,
-0.18686150014400482,
0.33703985810279846,
-0.4634081721305847,
-0.12113507837057114,
-0.7185664772987366,
-0.07979799062013626,
0.6097537875175476,
-0.5025579929351807,
0.18373526632785... | |
= new RegistrationServices();
if (!regsrv.RegisterAssembly(GetType().Assembly, AssemblyRegistrationFlags.SetCodeBase))
{
throw new InstallException("Failed to register for COM Interop.");
}
}
[System.Security.Permissions.SecurityPermission(System.Security.Permissions.SecurityAction.Demand)]
public override void U... | [
0.18876826763153076,
-0.08847107738256454,
0.4395732879638672,
-0.29062187671661377,
0.253278911113739,
0.07842449098825455,
0.7111542224884033,
-0.6078336834907532,
-0.11811687052249908,
-0.41903114318847656,
-0.5413153171539307,
0.5791231989860535,
-0.3611031770706177,
0.4868119060993194... | |
I like to generate a thread dump programmatically. I've learned that there a basically two ways to do it:
1. Use the "Java Virtual Machine Tool Interface" JVM-TI
2. Use the higher abstracted "Java Debugger Interface" JDI
For the JVM-TI I was able to find some useful information, but I would have to write a JNI-DLL wh... | [
0.5713894963264465,
0.2037150114774704,
-0.22307787835597992,
0.06342799216508865,
-0.4032961130142212,
-0.38830533623695374,
0.08551235496997833,
0.289022833108902,
-0.21915456652641296,
-0.5752555727958679,
0.3111881911754608,
0.4572123885154724,
-0.41080984473228455,
0.0685984417796135,... | |
I could find, were the Java-Docs <http://java.sun.com/j2se/1.5.0/docs/guide/jpda/jdi/> which isn't very helpful, because it doesn't show me how to use this classes.
So, does anybody know of a good tutorial/book I could read?
Thx for any help!
Did you consider the remote alternative ? I.e. [VisualVM](http://java.sun.c... | [
0.3027612268924713,
0.17901819944381714,
0.15318983793258667,
0.06658416241407394,
-0.34604930877685547,
-0.29510873556137085,
0.09402435272932053,
-0.013558585196733475,
-0.29086989164352417,
-0.5529705286026001,
0.13499470055103302,
0.5225449800491333,
-0.1835378110408783,
0.093702599406... | |
send to yourself a SIGQUIT signal (kill -3) on Unix platforms, or press the Ctrl-\ key on Unix or Ctrl-Break on Windows platforms.
Plus, [JDI wasn't intended to be used to debug the same process in which the JDI client is running](http://x86.sun.com/thread.jspa?threadID=5284700&tstart=0). Still this thread I just link... | [
0.2618643045425415,
-0.14133979380130768,
0.13000032305717468,
-0.2033495008945465,
-0.5031903386116028,
-0.2627496123313904,
0.475178062915802,
-0.04888542369008064,
-0.17966367304325104,
-0.5338172316551208,
0.04923462122678757,
0.4108455181121826,
-0.4705384373664856,
0.0843660458922386... | |
I have a table that has a `processed_timestamp` column -- if a record has been processed then that field contains the datetime it was processed, otherwise it is null.
I want to write a query that returns two rows:
```
NULL xx -- count of records with null timestamps
NOT NULL yy -- count of records with non-... | [
0.022133465856313705,
0.2254410833120346,
0.13806457817554474,
0.023847542703151703,
0.06587930768728256,
0.19965799152851105,
-0.10462970286607742,
-0.20663775503635406,
-0.39406540989875793,
-0.768230140209198,
0.15317481756210327,
0.21854181587696075,
-0.09252787381410599,
0.29140970110... | |
it.
Oracle:
group by nvl2(field, 'NOT NULL', 'NULL') | [
-0.2759975492954254,
0.15323366224765778,
-0.43554002046585083,
0.15463127195835114,
-0.1289866715669632,
0.03669377416372299,
0.18134236335754395,
-0.2965056002140045,
0.08864279836416245,
0.08036154508590698,
-0.39970964193344116,
0.13987410068511963,
-0.2567255198955536,
-0.101141855120... | |
Is there any function that converts an escaped Url string to its unescaped form? `System.Web.HttpUtility.UrlDecode()` can do that job but I don't want to add a reference to `System.Web.dll`. Since my app is not a web application, I don't want to add a dependency for only using a function in an assembly.
**UPDATE:** Ch... | [
-0.028156451880931854,
0.05903623625636101,
0.3577147424221039,
0.22293342649936676,
-0.050286486744880676,
-0.06818760186433792,
0.5329220294952393,
-0.10577383637428284,
-0.2759449779987335,
-0.695953905582428,
-0.28715649247169495,
0.27966323494911194,
-0.43108880519866943,
0.1390955448... | |
I have a C++ STL set with a custom ordering defined.
The idea was that when items get added to the set, they're naturally ordered as I want them.
However, what I've just realised is that the ordering predicate can change as time goes by.
Presumably, the items in the set will then no longer be in order.
So two quest... | [
0.22623568773269653,
0.13777470588684082,
0.014935202896595001,
-0.15034139156341553,
-0.11776546388864517,
0.16943125426769257,
-0.03807855397462845,
-0.12651272118091583,
-0.3999389708042145,
-0.4128864109516144,
-0.1400953084230423,
0.33606356382369995,
-0.3611733317375183,
0.2283643633... | |
this cause crashes, lost entries etc?
2. Is there a way to "refresh" the ordering of the set? You can't seem to use std::sort() on a set. The best I can come up with is dumping out the contents to a temp container and re-add them.
Any ideas?
Thanks,
John
`set` uses the ordering to lookup items. If you would insert ... | [
0.17819787561893463,
-0.050568465143442154,
-0.0026399109046906233,
0.04746110364794731,
0.020510295405983925,
0.009986401535570621,
0.24027130007743835,
-0.037236593663692474,
-0.46382784843444824,
-0.4632894992828369,
-0.11932183802127838,
0.2130797803401947,
-0.5245327353477478,
0.29477... | |
We have an x-files problem with our .NET application. Or, rather, hybrid Win32 and .NET application.
When it attempts to communicate with Oracle, it just dies. Vanishes. Goes to the big black void in the sky. No event log message, no exception, no nothing.
If we simply ask the application to talk to a MS SQL Server i... | [
0.30740484595298767,
0.24123640358448029,
-0.0448334738612175,
0.42317450046539307,
0.20741455256938934,
-0.2695004642009735,
0.1066240668296814,
0.17865696549415588,
-0.06311740726232529,
-0.4429962635040283,
-0.10466362535953522,
0.3444269895553589,
-0.3283916711807251,
0.273429453372955... | |
his desktop, it worked as expected with Oracle as well. Moving the directory down to the root of the drive, or in C:\Temp or, well, around a bit, made the crash reappear.
Basically it was 100% reproducable that the application worked if run from directory on desktop, and failed if run from directory in root.
Today we... | [
0.07477118074893951,
0.61907559633255,
0.17080020904541016,
0.31913673877716064,
0.08395256847143173,
0.041010234504938126,
0.26257479190826416,
-0.11598004400730133,
-0.39923879504203796,
-0.3849577307701111,
-0.23408396542072296,
0.6682724356651306,
-0.24170322716236115,
0.05158977210521... | |
seen similar behavior and have a "aha, you need to twiddle the frob on the oracle glitz driver configuration" or similar.
Anyone?
---
**Followup #1:** Ok, I've processed the procmon output now, both files from when I hit the button that attempts to open the window that triggers the cascade failure, and I've noticed ... | [
0.2421262562274933,
0.2733203172683716,
0.15751980245113373,
-0.028566263616085052,
0.02889866940677166,
-0.05141289532184601,
0.5004720091819763,
0.1334466189146042,
-0.27496886253356934,
-0.44651350378990173,
0.10537093132734299,
0.7865889668464661,
-0.1581125259399414,
-0.12735067307949... | |
Offset: 274 432, Length: 32 768, I/O Flags: Non-cached, Paging I/O, Synchronous Paging I/O
ReadFile C:\oracle\product\10.2.0\db_1\BIN\orageneric10.dll SUCCESS Offset: 233 472, Length: 32 768, I/O Flags: Non-cached, Paging I/O, Synchronous Paging I/O
```
After this, the working run continues to execute, and the ... | [
-0.13218198716640472,
0.28111907839775085,
0.680408775806427,
0.005567470565438271,
0.07178691029548645,
0.17677301168441772,
0.5495958924293518,
-0.3101637065410614,
-0.5833185911178589,
-0.35549017786979675,
-0.21316951513290405,
0.8182982802391052,
-0.17797252535820007,
-0.1572721004486... | |
a black-box solution. Basically we found that the problem is somewhere related to [XPO](http://www.devexpress.com/Products/NET/ORM/) and Oracle. XPO has a system-table it manages, called XPObjectType, with three columns: Oid, TypeName and AssemblyName. Due to how Oracle is configured in the databases we talk to, the co... | [
-0.017107687890529633,
0.3764599859714508,
0.3786637783050537,
-0.034332212060689926,
-0.35901570320129395,
0.29505297541618347,
0.0035859989002346992,
-0.4081588685512543,
-0.04312125965952873,
-0.4154933989048004,
0.3720647096633911,
0.3230060338973999,
-0.4185050427913666,
-0.0526257120... | |
expects.
Exactly what XPO does now I don't really know, but if I dropped this table, and recreated it with the right case, using double quotes around all the column names to get the case right, the problem doesn't crop up.
Exactly where the space in the folder name comes into this, I still have no idea, but this prob... | [
0.35746240615844727,
-0.11695446819067001,
0.7622426748275757,
0.22921203076839447,
0.005884201731532812,
-0.0483790822327137,
0.23095089197158813,
-0.1376798152923584,
-0.2817208766937256,
-0.46253353357315063,
0.13668563961982727,
0.7513447999954224,
-0.3660289943218231,
-0.0978458076715... | |
our data tier anyway so this might not be a problem we need to solve, at least if all our Oracle-customers verify that the table-fix actually gets rid of the problem.
I'll accept the answer by [Dave Markle](https://stackoverflow.com/users/24995/dave-markle) since though Process Monitor (the big brother of File Monitor... | [
0.3595670461654663,
0.4324162006378174,
0.2744365632534027,
0.1031588762998581,
0.16770406067371368,
-0.07726795971393585,
0.03653611242771149,
-0.28423768281936646,
-0.5642186999320984,
-0.271014928817749,
-0.04746666178107262,
0.4199523627758026,
-0.01670263148844242,
-0.0032046078704297... | |
was the culprit, or at least influenced the problem somehow.
If I manage to get to the real cause of this, I'll update the post.
Here's what I would do. First, TRIPLE-check that you're seeing the behavior you think you're seeing. I can see this happening the other way around by not using System.IO.Path to concatenate ... | [
0.4536246657371521,
-0.1077762246131897,
0.3888965845108032,
0.385456919670105,
0.07042600959539413,
-0.43717825412750244,
0.3679821491241455,
0.3083125352859497,
-0.5642489790916443,
-0.9138527512550354,
-0.04821600764989853,
0.5504981279373169,
-0.33285385370254517,
0.09035083651542664,
... | |
to make everything look a bit cleaner while you do this. Look for file access errors using FileMon for both the success case and the error case for your program. That should point you to what file's being accessed and causing the problem. For example, if you see a `FILE_NOT_FOUND` error accessing a nonsense filename, y... | [
0.36836421489715576,
0.17036385834217072,
0.1267656832933426,
0.2190684676170349,
-0.010006948374211788,
-0.2517057955265045,
0.17736078798770905,
-0.0037933927960693836,
-0.35811203718185425,
-0.6572003364562988,
0.13757029175758362,
0.703277587890625,
-0.1201435774564743,
0.0510828532278... | |
All I need is a way to make a property of one class only 'settable' from one other class (a sort of manager class).
Is this even possible in c#?
My colleague 'reliably' informs me that I have a design flaw, but I feel I should at least ask the community before I concede defeat!
No, it's not really possible to do this... | [
0.3044559061527252,
0.26093220710754395,
-0.015036028809845448,
0.08819256722927094,
0.0413101427257061,
-0.3356375992298126,
0.4652736186981201,
-0.12846015393733978,
-0.1397901177406311,
-0.4666457176208496,
-0.03584883734583855,
0.4265570640563965,
0.09924818575382233,
0.233127653598785... | |
Reading up the new Vista/Win2008 features, I wonder what is the point of the Thread Ordering Service. In other words, in which scenario the "classic" scheduler's "fair to all" policy is not sufficient, and a definite order of threads is preferrable?
To clarify. What would be a concrete application that would benefit f... | [
0.1798175573348999,
-0.17977936565876007,
0.4335010349750519,
0.27074921131134033,
0.21254517138004303,
-0.1542975753545761,
0.190052792429924,
0.17336593568325043,
-0.41837278008461,
-0.5978022813796997,
-0.07507987320423126,
0.604245662689209,
-0.24471428990364075,
0.13133077323436737,
... | |
Other than using raw XML, is there an easy way in .NET to open and read a config file belonging to another assembly...? I don't need to write to it, just grab a couple of values from it.
[Here's](http://msdn.microsoft.com/en-us/library/ms224437.aspx) MSDN on OpenExeConfiguration.
Edit: [link](http://www.eggheadcafe.co... | [
0.24207961559295654,
-0.07189963757991791,
-0.03900710493326187,
0.12520985305309296,
0.09516572207212448,
-0.40726134181022644,
0.2629500925540924,
0.12662824988365173,
-0.3671860992908478,
-0.6545418500900269,
0.06777122616767883,
0.24440358579158783,
-0.2060566544532776,
0.0350480303168... | |
I know that IntelliJ has an option to select all the code in a JSP file, right click, and select "format". This nicely formats all HTML, CSS, scriptlets and JSTL tags in a JSP file.
Can Eclipse do this?
If not, what is the best free Eclipse plugin that does the same?
With the Web Tool Plateform plateform (on eclips... | [
0.5223659873008728,
0.009692898951470852,
0.21902091801166534,
0.08531070500612259,
-0.39838382601737976,
-0.3807751536369324,
-0.17613212764263153,
0.01120874285697937,
0.054541364312171936,
-0.6163409352302551,
0.03024253249168396,
0.6814150214195251,
-0.2888311445713043,
-0.397819191217... | |
What is the correct way to check if a value is a date/number in Delphi?
I know other languages have functions like isDate and isNaN, but what is the Delphi equivalent? at the minute I have this
```
function isNumeric(s1:string):boolean;
begin
// will throw exception if its not a number
// there must be a bett... | [
0.029830846935510635,
-0.1941000372171402,
0.5435971617698669,
-0.16752135753631592,
0.18275032937526703,
-0.37970638275146484,
0.12122081220149994,
-0.21085110306739807,
-0.25282344222068787,
-0.25064578652381897,
-0.2623179852962494,
0.40011611580848694,
-0.21642443537712097,
0.052278131... | |
throwing exceptions cant be good, and it makes debugging hard as I keep seeing the exception dialogue every time the code is called.
For integers, you could use TryStrToInt to check and convert without throwing exceptions:
```
function TryStrToInt(const s: string; out i : integer): boolean;
```
I'm not absolutely su... | [
0.22565096616744995,
0.06738414615392685,
-0.07430221885442734,
-0.08828838169574738,
-0.34753647446632385,
-0.3946661353111267,
0.6132329702377319,
-0.3622567057609558,
0.06271325796842575,
-0.362944096326828,
0.03231947869062424,
0.6322289705276489,
-0.3667030930519104,
-0.28403013944625... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.