text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
use only one updatepanel containing the entire page, or many ones? The performance is my main concern.
The simplest way to do this is to add the `.config` file in the deployment section on your unit test.
To do so, open the `.testrunconfig` file from your Solution Items. In the Deployment section, add the output `.con... | [
0.5310163497924805,
-0.0025311766657978296,
0.24347390234470367,
0.006167795043438673,
0.1429041028022766,
-0.17365087568759918,
0.39087408781051636,
-0.2958374321460724,
0.01395142450928688,
-0.9382596015930176,
-0.31747516989707947,
0.7863664031028748,
-0.0854446068406105,
-0.26012715697... | |
you may need to include a startup script that renames the output `.config` to match the unit test's name. | [
0.4909907877445221,
-0.1255798488855362,
0.060084208846092224,
0.07255244255065918,
0.23258663713932037,
-0.2493446171283722,
-0.1200147420167923,
0.16563308238983154,
0.10046711564064026,
-0.5190383791923523,
-0.39336076378822327,
0.4955134689807892,
-0.13685409724712372,
0.15972669422626... | |
Is that possible to have a single PHP SOAP server which will handle requests to several classes (services)?
If yes, could you please show an example implementation?
If not, could you please describe why?
Could you wrap the other services in a single class? Completely untested, it was just a thought...
```
class My... | [
0.048869628459215164,
-0.1412433534860611,
0.2162652313709259,
-0.026816362515091896,
0.0032569386530667543,
0.05784275010228157,
0.47834667563438416,
-0.219748854637146,
-0.19632241129875183,
-0.7778385877609253,
-0.03740823268890381,
0.3334202766418457,
-0.3809533715248108,
0.06720972061... | |
class...
public function add($a, $b)
{
return $this->_service1->add($a, $b);
}
public function sub($a, $b)
{
return $this->_service2->sub($a, $b);
}
}
class Service1
{
public function add($a, $b)
{
return $a + $b;
}
}
class Service2
{
public function sub($a, $b)
{
return $a - ... | [
0.017268579453229904,
-0.33689504861831665,
0.06172698736190796,
-0.4004223048686981,
-0.04029323533177376,
0.2268652468919754,
0.3356902599334717,
0.03445189818739891,
-0.15551050007343292,
-0.7609432935714722,
-0.49982938170433044,
0.5112758874893188,
-0.5277332663536072,
0.0775329172611... | |
[This is a community Wiki so do **not** bother voting it down if it seems like a poll question. It is.]
Will Adobe be able to translate its success in Flash Penetration (although also questionable, see my post [here](http://compileyouidontevenknowyou.blogspot.com/2008/01/flash-penetration-and-bullshit.html)) to Adobe ... | [
0.10259170085191727,
0.04682841897010803,
0.32459405064582825,
0.26584333181381226,
-0.16004550457000732,
-0.2636299133300781,
0.00039902408025227487,
-0.03940684348344803,
-0.1388806700706482,
-0.4633634090423584,
-0.1137411966919899,
0.4142524003982544,
-0.1262942999601364,
-0.1109126731... | |
you if you to install it, and mentioning in the notes that it may not be safe to install an untrusted plugin.
When you visit a site that lets you download an AIR app, it pops up big red screaming warnings about the imminent trashing of your computer, the theft of your identity and a life of torment[1]. Unless, of cour... | [
1.028576135635376,
0.26817062497138977,
0.41472429037094116,
0.3226049542427063,
0.2799501121044159,
-0.2414640635251999,
0.12446603924036026,
-0.2510143518447876,
0.18292640149593353,
-0.47039586305618286,
-0.30263403058052063,
0.41801491379737854,
-0.28761184215545654,
0.1731674969196319... | |
to the developers' over at HQ or something?
[1]Actual message may vary. | [
0.890531599521637,
-0.10432219505310059,
0.09888928383588791,
0.08935210108757019,
-0.4080689549446106,
-0.09613660722970963,
0.36935368180274963,
0.43521201610565186,
-0.10038445889949799,
-0.17984610795974731,
-0.3922802209854126,
0.22796420753002167,
-0.17410531640052795,
-0.18223826587... | |
I'm involved on a project to make a survey system. We've been hammering out the logic for a few question types, and I could use a second opinion on what is the best way to proceed. We work on a ASP.NET 2.0 website using VB(VS2005) with an Oracle database.
In our oracle server, we plan for some tables to organize our d... | [
0.6251030564308167,
-0.011006823740899563,
0.12161711603403091,
0.3867134153842926,
0.10358715802431107,
0.08196251094341278,
-0.15275925397872925,
-0.22389495372772217,
-0.11345844715833664,
-0.4525173306465149,
0.2048373818397522,
0.06676917523145676,
0.11894819885492325,
-0.043942216783... | |
that's pretty easy to figure out. However, when we start thinking about items that return multiple answers, it starts to get tricky.
For example, if we have a simple matrix of 3x3 filled with check boxes. The rows are days 'Monday', 'Wednesday', 'Friday'. The columns are activities like 'Biking', 'Running', 'Driving'.... | [
0.6093860864639282,
-0.12571661174297333,
0.13341344892978668,
0.3835929036140442,
-0.21428032219409943,
0.2096318006515503,
0.2685392200946808,
-0.13832543790340424,
-0.4710857570171356,
-0.3311942517757416,
0.2479114830493927,
0.06693997234106064,
-0.4034988284111023,
-0.0251492820680141... | |
activity.
So far, for collecting responses, I like the idea of [traversing a list of controls](https://web.archive.org/web/20210510022603/https://aspnet.4guysfromrolla.com/articles/081402-1.2.aspx) in the form and keeping tabs on the kinds of controls that collect data. Since the controls are created in code, usually ... | [
0.17091681063175201,
-0.45094770193099976,
0.3644270896911621,
0.39514461159706116,
-0.20122122764587402,
-0.08215957134962082,
-0.03601974993944168,
-0.36088481545448303,
-0.40930721163749695,
-0.28435152769088745,
-0.20174840092658997,
0.576213002204895,
-0.18614721298217773,
-0.41577455... | |
goes with what answer (on the survey)?
Unfortunately no, until they sort out, at the least, the following issue:
When you visit a site that needs Flash and you haven't got Flash installed, you get a very standard looking popup asking you if you to install it, and mentioning in the notes that it may not be safe to inst... | [
0.7290869355201721,
0.2210635542869568,
0.3262390196323395,
0.3490508794784546,
0.2496342957019806,
-0.48856642842292786,
0.4366892874240875,
0.1062796488404274,
-0.1357395052909851,
-0.23347324132919312,
-0.5038995146751404,
0.47301429510116577,
-0.291662335395813,
-0.2106657177209854,
... | |
the bedroom programmers decide to cough up the *ongoing* cost of certification.
User encouragement FAIL. Hobby developer encouragement FAIL. Technophobe terrorficiation avoidance FAIL.
I love AIR, but I don't know what they were thinking with the installer. Laywers' office moved closer to the developers' over at HQ o... | [
1.1842137575149536,
0.2186739295721054,
0.44094210863113403,
0.1775417923927307,
-0.13624213635921478,
-0.003547968342900276,
0.5003791451454163,
0.04963625222444534,
0.1322404146194458,
-0.4308207929134369,
-0.48775798082351685,
0.381282776594162,
-0.030124463140964508,
0.1852223575115203... | |
I am doing some simple sanity validation on various types. The current test I'm working on is checking to make sure their properties are populated. In this case, populated is defined as not null, having a length greater than zero (if a string), or not equal to 0 (if an integer).
The "tricky" part of this test is that ... | [
0.16762752830982208,
-0.02392970770597458,
0.4610087275505066,
0.058444853872060776,
0.17366129159927368,
-0.03271706774830818,
0.3683544397354126,
-0.42474937438964844,
-0.025496618822216988,
-0.6650404334068298,
0.12627652287483215,
0.5103205442428589,
-0.37810271978378296,
0.32783094048... | |
if(!pi[i].Name.Equals("PropertyOne")
&& !pi[i].Name.Equals("PropertyTwo")
&& !pi[i].Name.Equals("PropertyThree")
//... repeat a bunch more times
&& !pi[i].Name.IndexOf("ValueOne") != -1
&& !pi[i].Name.IndexOf("ValueTwo") != -1
//... repeat a bunch more times
{
//... | [
-0.08984502404928207,
0.04045724496245384,
0.40843263268470764,
-0.08025342971086502,
0.39350318908691406,
-0.1469806283712387,
0.15459883213043213,
-0.8276583552360535,
0.017615387216210365,
-0.3757381737232208,
-0.1535005420446396,
0.4892059564590454,
0.07291088998317719,
-0.072553746402... | |
}
```
When profiling, I noticed the if statement is actually performing worse than the reflection (not that the reflection is blazing fast). Is there a more efficient way to filter the properties of several different types?
I've thought about a massive regular expression but I'm unsure on how to format it, plus it ... | [
0.1324014514684677,
0.10501454770565033,
-0.01890312321484089,
0.007254698313772678,
-0.18801270425319672,
-0.23795413970947266,
0.19923490285873413,
-0.11078516393899918,
0.15390463173389435,
-0.7190669178962708,
0.1817825585603714,
0.697234570980072,
-0.22176812589168549,
-0.013919582590... | |
with PropertyOne, PropertyTwo etc, and then a List "partialNames" with ValueOne, ValueTwo etc. Then:
```
var matchingProperties = pi.Where(exactNames.Contains(pi.Name) ||
partialNames.Any(name => pi.Name.Contains(name));
foreach (PropertyInfo property in matchingProperties)
{
// Stuff
}
... | [
-0.0027380958199501038,
-0.2033911496400833,
0.4730447232723236,
-0.1911267191171646,
0.020132049918174744,
-0.0126432403922081,
0.2289876639842987,
-0.5501930117607117,
0.18783918023109436,
-0.629438042640686,
-0.07791747152805328,
0.7060650587081909,
-0.20425797998905182,
0.1561934053897... | |
I have a base class that has a private static member:
```
class Base
{
private static Base m_instance = new Base();
public static Base Instance
{
get { return m_instance; }
}
}
```
And I want to derive multiple classes from this:
```
class DerivedA : Base {}
class DerivedB : Base {}
class De... | [
0.04554533585906029,
-0.047521576285362244,
0.29673925042152405,
-0.07647064328193665,
-0.18223775923252106,
-0.020523739978671074,
0.11334458738565445,
-0.37617650628089905,
0.0782516747713089,
-0.47245147824287415,
0.17501410841941833,
0.4735252559185028,
-0.24785982072353363,
0.34162735... | |
single derived class will need to do that and that just seems like it should be unneccessary. So is there any way to put all this in the base class? Could a design pattern be applied?
There's one really icky way of doing this:
```
class Base
{
// Put common stuff in here...
}
class Base<T> : Base where T : Base<... | [
0.11149521917104721,
-0.2830236852169037,
-0.08954955637454987,
0.1997678428888321,
-0.11126291751861572,
-0.1448955088853836,
0.06693914532661438,
-0.41015738248825073,
0.08603629469871521,
-0.6196974515914917,
-0.03215078264474869,
0.34267953038215637,
-0.43561846017837524,
0.25994125008... | |
there's one static variable *per constructed type* - e.g. `List<string>` is a different type to `List<int>` and so would have separate static variables.
I've taken the opportunity of making it an instance of the derived class as well - I don't know whether that's what you want or not, but I thought I'd at least make i... | [
0.43855080008506775,
-0.2142416089773178,
0.02824495919048786,
0.026076164096593857,
-0.3880348205566406,
-0.08764772862195969,
0.4233023226261139,
0.13992361724376678,
-0.2478870451450348,
-0.44674211740493774,
0.040548816323280334,
0.4555387496948242,
-0.4161776900291443,
0.3969193696975... | |
return the same result as `DerivedA.Instance` - the property/variable don't "know" that you're using `DerivedA.Instance`. I don't know whether or not that's important to you.
With the extra non-generic class, you can write:
```
Base t = DerivedA.Instance;
t = DerivedB.Instance;
```
If you don't need that, take it o... | [
0.03838539123535156,
-0.18350771069526672,
0.152194082736969,
-0.09010685980319977,
0.060294974595308304,
-0.18327610194683075,
0.10779086500406265,
-0.05168939381837845,
0.23912687599658966,
-0.09855557978153229,
-0.15296293795108795,
0.6515395641326904,
-0.19187180697917938,
0.2044388949... | |
In `java.util.Calendar`, January is defined as month 0, not month 1. Is there any specific reason to that ?
I have seen many people getting confused about that...
It's just part of the horrendous mess which is the Java date/time API. Listing what's wrong with it would take a very long time (and I'm sure I don't know h... | [
0.2566187083721161,
0.034626152366399765,
0.283582478761673,
-0.5071824789047241,
-0.665998101234436,
-0.28542664647102356,
0.4851737916469574,
0.20777320861816406,
-0.494367778301239,
-0.3113256096839905,
0.15179120004177094,
-0.12977103888988495,
0.04358169436454773,
0.27531877160072327,... | |
C APIs, or just a general feeling of starting everything from 0... except that days start with 1, of course. I doubt whether anyone outside the original implementation team could really state reasons - but again, I'd urge readers not to worry so much about *why* bad decisions were taken, as to look at the whole gamut o... | [
0.36988192796707153,
0.13047553598880768,
0.3363136351108551,
-0.17237047851085663,
-0.027076462283730507,
-0.177093043923378,
0.09221839159727097,
-0.11988035589456558,
-0.2581903338432312,
-0.2146519273519516,
-0.04745886102318764,
0.6098269820213318,
-0.32913559675216675,
0.058633416891... | |
course, this fails as soon as you get a calendar with 13 months... but at least the size specified is the number of months you expect.
This isn't a *good* reason, but it's *a* reason...
EDIT: As a comment sort of requests some ideas about what I think is wrong with Date/Calendar:
* Surprising bases (1900 as the year... | [
0.33350443840026855,
0.22656342387199402,
0.32558339834213257,
0.14017926156520844,
0.02074355259537697,
-0.0898100957274437,
0.20894235372543335,
-0.0709146186709404,
-0.5266273617744446,
-0.6249206066131592,
0.0703725516796112,
0.10888250917196274,
0.06070553511381149,
0.2980212271213531... | |
different things,
but the separation of "local" vs "zoned" values is missing, as is date/time vs date vs time
* An API which leads to ugly code with magic constants, instead of clearly named methods
* An API which is very hard to reason about - all the business about when things are recomputed etc
* The use of paramet... | [
0.003925141412764788,
-0.248147115111351,
0.16198676824569702,
0.1145332083106041,
0.1143236979842186,
-0.130700945854187,
0.08144337683916092,
0.04834562912583351,
-0.5476210117340088,
-0.44916075468063354,
0.01864359714090824,
0.262302428483963,
-0.13426440954208374,
0.3203149139881134,
... | |
In HTML, I can find a file starting from the **web server's** root folder by beginning the filepath with "/". Like:
```
/images/some_image.jpg
```
I can put that path in any file in any subdirectory, and it will point to the right image.
With PHP, I tried something similar:
```
include("/includes/header.php");
``... | [
0.19169436395168304,
-0.029663920402526855,
0.5171316862106323,
-0.28087925910949707,
-0.40626394748687744,
-0.1877392679452896,
0.15876787900924683,
-0.03890382498502731,
-0.32605260610580444,
-0.7263404726982117,
-0.1773071140050888,
0.11747603863477707,
-0.46452826261520386,
-0.03567487... | |
includes are exactly what I **don't** want.
**How do I make sure that all my includes point to the `root/includes` folder?** (Bonus: what if I want to place that folder outside the public directory?)
Clarification
-------------
My development files are currently being served by XAMPP/Apache. Does that affect the abs... | [
0.51279217004776,
-0.050596363842487335,
0.07641363143920898,
0.12919239699840546,
-0.0667472556233406,
-0.13552896678447723,
0.2599368691444397,
0.023275073617696762,
-0.2614356279373169,
-0.6260578036308289,
-0.11128367483615875,
0.6477125883102417,
-0.1453983038663864,
0.123052015900611... | |
may have thought that "/some/path" was an "absolute path" because they assumed the OS was Linux. This server is Windows, so an absolute path would have to start with the drive name.
Anyway, problem solved! :)
What I do is put a config.php file in my root directory. This file is included by all PHP files in my project.... | [
0.0855649784207344,
0.127110093832016,
0.5141992568969727,
0.03341963142156601,
0.04637889191508293,
-0.22226838767528534,
0.29636985063552856,
0.2026546597480774,
0.09095412492752075,
-0.7380706071853638,
0.11889059096574783,
0.7225638031959534,
-0.2924700677394867,
0.2560744285583496,
... | |
This also has the unfortunate side affect that you still need a relative path for finding config.php, but it makes the rest of your includes much easier. | [
0.29057416319847107,
-0.11257705092430115,
0.34070053696632385,
0.403089314699173,
-0.18667100369930267,
-0.4478122293949127,
0.39549654722213745,
0.0847996398806572,
-0.31710827350616455,
-0.5753872394561768,
0.18105226755142212,
0.46031323075294495,
0.22635264694690704,
-0.23281656205654... | |
I am fortunate to be working for a company in which all of our new development efforts are all in WPF. Are there a lot of other developers out there in this situation? Are companies quickly adopting this as their primary UI platform? As developers we all see the value in it, but are companies buying into it?
I think th... | [
0.6078851222991943,
0.19982647895812988,
0.01974308490753174,
0.23263204097747803,
-0.11281617730855942,
-0.4475965201854706,
0.17935360968112946,
0.32804054021835327,
-0.3532513380050659,
-0.7298505306243896,
0.10036931931972504,
0.38825732469558716,
0.16287928819656372,
0.297727167606353... | |
up their expertise.
* The need for the new skill called "UX Integrators" who should be able to work with the new RIA tool called Expression Blend to style/integrate the design with the code.
* The need for new Framework requirement(.NET3.5) and the new set of tools make companies or clients think twice before they take... | [
0.7440014481544495,
0.3192225694656372,
-0.004534315317869186,
0.12450321018695831,
0.25065624713897705,
-0.28174763917922974,
0.367840975522995,
-0.13942216336727142,
-0.012911420315504074,
-0.5235316157341003,
0.03608541190624237,
0.6950156688690186,
0.3850958049297333,
-0.05710703134536... | |
power/easiness of WPF. | [
0.04840307682752609,
-0.11343347281217575,
0.35364097356796265,
-0.023826953023672104,
-0.2936779856681824,
-0.22377175092697144,
0.19183531403541565,
-0.5763709545135498,
0.05394718423485756,
-0.5461521148681641,
-0.06553685665130615,
0.5297191143035889,
-0.019758516922593117,
0.265693336... | |
Is it possible to get the expiry `DateTime` of an `HttpRuntime.Cache` object?
If so, what would be the best approach?
I just went through the System.Web.Caching.Cache in reflector. It seems like everything that involves the expiry date is marked as internal. The only place i found public access to it, was through the ... | [
0.1791536808013916,
-0.025669455528259277,
0.47262632846832275,
0.04487686604261398,
0.2110082507133484,
-0.113997682929039,
0.37896063923835754,
0.2129012644290924,
-0.23698833584785461,
-0.6253874897956848,
0.10453152656555176,
0.38482561707496643,
0.011090809479355812,
0.171742066740989... | |
cacheKey)
{
object cacheEntry = Cache.GetType().GetMethod("Get", BindingFlags.Instance | BindingFlags.NonPublic).Invoke(Cache, new object[] { cacheKey, 1 });
PropertyInfo utcExpiresProperty = cacheEntry.GetType().GetProperty("UtcExpires", BindingFlags.NonPublic | BindingFlags.Instance);
DateTime utcExpiresV... | [
-0.16464002430438995,
-0.1268039494752884,
0.5556854009628296,
-0.07958008348941803,
0.2596837282180786,
0.09147339314222336,
0.7707766890525818,
-0.18160532414913177,
-0.19721126556396484,
-0.582961916923523,
-0.6223984360694885,
0.5339276194572449,
-0.3332969546318054,
0.3495152294635772... | |
Why is garbage collection required for tail call optimization? Is it because if you allocate memory in a function which you then want to do a tail call on, there'd be no way to do the tail call and regain that memory? (So the stack would have to be saved so that, after the tail call, the memory could be reclaimed.)
Lik... | [
0.15437543392181396,
-0.03182803466916084,
-0.1684635877609253,
0.25483250617980957,
-0.1205563098192215,
-0.22585055232048035,
0.08900898694992065,
-0.1238943338394165,
-0.18955795466899872,
-0.013865700922906399,
-0.04240523278713226,
0.8159357309341431,
-0.5294095277786255,
-0.051696226... | |
// Base case.
vector<double> bar(10);
// Populate bar, do other stuff.
return foo(someNumber);
}
```
In this case, return foo(someNumber); *looks* like a tail call, but because you're using RAII memory management, and you have to free bar, this line would translate to a lower level as follows (in inform... | [
0.4061810374259949,
-0.10025463998317719,
0.29435843229293823,
-0.4430561065673828,
-0.03219494968652725,
-0.007524984423071146,
0.2331869751214981,
-0.12411568313837051,
-0.010971151292324066,
-0.25465601682662964,
-0.3532654345035553,
0.7019364237785339,
-0.7019256949424744,
0.0405957847... | |
I have a directory full (~103, 104) of XML files from which I need to extract the contents of several fields.
I've tested different xml parsers, and since I don't need to validate the contents (expensive) I was thinking of simply using xml.parsers.expat (the fastest one) to go through the files, one by one to extract ... | [
0.22319290041923523,
0.18519000709056854,
0.3031158745288849,
0.253426730632782,
0.08598125725984573,
-0.0655193105340004,
0.056948866695165634,
-0.3311503529548645,
0.0027563266921788454,
-0.5042609572410583,
-0.13172395527362823,
0.5076953172683716,
-0.10952513664960861,
-0.2661197483539... | |
to match strings (with, e.g., regular expressions) instead of parsing XML - depending on your XMLs this could actually work.
But the most important thing is this: instead of thinking through several options, just implement them and time them on a small set. This will take roughly the same amount of time, and will give... | [
0.136973038315773,
-0.22846807539463043,
-0.12327230721712112,
0.44891682267189026,
-0.11992470175027847,
-0.06716277450323105,
0.10599979758262634,
-0.24131840467453003,
-0.30767494440078735,
-0.717795729637146,
0.20624156296253204,
0.4613865315914154,
-0.4333499073982239,
0.0910452157258... | |
I am creating a WCF service hosted within IIS7 on Windows Vista SP1. I am getting the following error:
The certificate 'CN=SignedByLocalHost' must have a private key that is capable of key exchange. The process must have access rights for the private key.
It looks like I would need to give the host process assess to... | [
0.18876376748085022,
0.26955896615982056,
0.6680310368537903,
0.0751657783985138,
-0.019265832379460335,
-0.42142677307128906,
0.35408782958984375,
0.05933772772550583,
-0.1242978498339653,
-0.578071653842926,
0.06054442375898361,
0.5335831046104431,
-0.27195852994918823,
0.503689289093017... | |
great!
Thanks
You can use IIS 7.0/7.5
Just Start->Run ->inetmgr
Select the server
Under "Security" panel, go to "Server Certificates"
In the left pane click - "Create Self Signed Certificate" and complete the process
The crtfiticate will get installed in **LocalMachine** StoreLocation under **Personal** storename.
Now... | [
0.447634756565094,
0.33900246024131775,
0.9560621380805969,
0.1598413735628128,
-0.04916144534945488,
-0.4782259166240692,
0.4330825209617615,
-0.10155953466892242,
-0.21696288883686066,
-0.8027445673942566,
0.029535889625549316,
0.7289404273033142,
-0.002824183087795973,
0.306523203849792... | |
This question relates to an ASP.NET website, originally developed in VS 2005 and now in VS 2008.
This website uses two unmanaged external DLLs which are not .NET and I do not have the source code to compile them and have to use them as is.
This website runs fine from within Visual Studio, locating and accessing these... | [
0.36980879306793213,
0.20295631885528564,
0.19803638756275177,
-0.0176523607224226,
-0.29312795400619507,
-0.17327368259429932,
0.15005141496658325,
-0.22560542821884155,
-0.21629714965820312,
-0.43096277117729187,
0.0957949087023735,
0.51654452085495,
-0.08875039964914322,
0.1723628789186... | |
not be found. (Exception from HRESULT: 0x8007007E)`
The external DLLs are located in the bin directory of the website, along with the managed DLLs that wrap them and all the other DLLs for the website.
Searching this problem reveals that many other people seem to have the same problem accessing external non.NET DLLs ... | [
0.4330856502056122,
0.09774423390626907,
0.21350359916687012,
-0.1634277105331421,
-0.04829099029302597,
-0.3672957420349121,
0.49695998430252075,
-0.19666144251823425,
-0.11934927850961685,
-0.7422069907188416,
-0.09595388174057007,
0.75250244140625,
-0.34497135877609253,
-0.0785892456769... | |
and rebooted the server, but website still
couldn't load these external DLLs.
* Gave full rights to ASPNET, IIS\_WPG and IUSR (for that server) to
the website bin directory and rebooted, but website still couldn't
load these external DLLs.
* Added the external DLLs as existing items to the projects and set
their "Copy ... | [
0.31471484899520874,
-0.18297454714775085,
0.36775264143943787,
0.10271864384412766,
-0.24187861382961273,
-0.14305615425109863,
0.3664179742336273,
-0.1357841044664383,
-0.2826971411705017,
-0.758292019367218,
-0.2599204182624817,
0.5526257157325745,
-0.24200518429279327,
0.39575752615928... | |
this doesn't work try putting the dlls in the System32 directory and the dependency files in the Inetsrv directory. | [
0.1122375875711441,
-0.2009589672088623,
0.3206707835197449,
0.19963650405406952,
-0.1256306916475296,
-0.43231192231178284,
0.010565600357949734,
0.07536602765321732,
-0.048009950667619705,
-0.89606112241745,
0.2642745077610016,
0.6779710054397583,
-0.37102824449539185,
0.3556080162525177... | |
How can I resume a dehydrated orchestration ?
* the orchestration in question should have been retrieving messages from a MSMQ queue
* but the userid permission wasn't set on the queue, so the BizTalk box wasn't able to read from the queue
Corrected the permissions, but the only options are teminate and suspend ?
If ... | [
0.4178466498851776,
-0.14364449679851532,
0.3913135528564453,
-0.022546283900737762,
-0.14822299778461456,
-0.05321076512336731,
0.20126698911190033,
-0.34125807881355286,
-0.48752447962760925,
-0.11363675445318222,
-0.25874871015548706,
0.22181636095046997,
-0.38382014632225037,
0.5099514... | |
on the receive? This makes things a little more complicated. | [
0.376966655254364,
-0.04191220551729202,
0.4236452579498291,
0.10888788104057312,
-0.1784040927886963,
-0.16301047801971436,
-0.005765976384282112,
0.18639332056045532,
-0.061766598373651505,
-0.1745421141386032,
0.06514683365821838,
0.3862467110157013,
-0.11478947848081589,
-0.05211358517... | |
What is the algorithm for storing the pixels in a spiral in JS?
<http://www.mathematische-basteleien.de/spiral.htm>
```
var Spiral = function(a) {
this.initialize(a);
}
Spiral.prototype = {
_a: 0.5,
constructor: Spiral,
initialize: function( a ) {
if (a != null) this._a = a;
},
/* sp... | [
-0.3256615698337555,
-0.24147038161754608,
0.6424471139907837,
0.07872024923563004,
-0.2270956188440323,
0.34097033739089966,
0.12858867645263672,
-0.22423729300498962,
-0.31051158905029297,
-0.5060437321662903,
0.2648007869720459,
0.08632906526327133,
-0.2952301502227783,
0.10441410541534... | |
new Array();
for (var angle = 0; angle <= maxAngle; angle = angle + increment)
{
points.push( this._point( angle ) );
}
return points;
},
_point: function( t ) {
var x = this._a * t * Math.cos(t);
var y = this._a * t * Math.sin(t); | [
-0.14645697176456451,
-0.36835893988609314,
0.7242319583892822,
-0.528420627117157,
-0.046648554503917694,
0.2297230064868927,
0.27424901723861694,
-0.5739919543266296,
-0.007479855790734291,
-0.5510772466659546,
-0.2985130846500397,
0.5940366983413696,
-0.11217883229255676,
0.024845784530... | |
return { X: x, Y: y };
}
}
var spiral = new Spiral(0.3);
var points = spiral.points( 2, 0.01 );
plot(points);
```
---
Sample implementation at <http://myweb.uiowa.edu/timv/spiral.htm> | [
-0.5971410274505615,
-0.438567578792572,
0.6447983980178833,
-0.09889992326498032,
0.05224025994539261,
0.16055229306221008,
0.07346177101135254,
-0.2890348732471466,
-0.3244134485721588,
-0.3654046654701233,
0.08829400688409805,
0.40465816855430603,
-0.16251789033412933,
0.219767659902572... | |
I am the programmer for the Education department at a county hospital. I would like to be able to see some real-time stats on an IIS6 web server that is only accessible in-house. I'm looking for something similar to what 1and1.com provides for their customers (if you're familiar with what they offer).
I have a Classic... | [
0.4783770740032196,
0.29811891913414,
0.3182545006275177,
0.08686082810163498,
0.258926123380661,
0.0026254409458488226,
0.38741567730903625,
0.4599141776561737,
-0.26564744114875793,
-0.6459711790084839,
0.517180860042572,
0.16009677946567535,
0.12529627978801727,
0.08190394192934036,
0... | |
would like:
* I would like to track who visited what page as we have Basic Authentication turned on (optional)
* I would like to track what pages are most frequently visited
* I would like to be able to track a given individual's progress from page to page. This is something I sort-of did with the old tool and found i... | [
0.5444397330284119,
-0.10675263404846191,
0.5097506046295166,
0.36186474561691284,
-0.1050475686788559,
-0.39441224932670593,
0.3696511685848236,
0.13376453518867493,
-0.1315729320049286,
-1.0030423402786255,
-0.08792909979820251,
0.3304925560951233,
0.19340716302394867,
-0.308708220720291... | |
to be a little less than correct. I want to know what I need to work with.
* I would like to not have to remote in to the server to run an .exe or any of the other fun, convoluted solutions I've seen floating around...
While I would prefer an ASP/VBScript solution so I can more easily fix it if needed, I would be will... | [
0.6378960013389587,
0.07416945695877075,
0.18716998398303986,
0.06067940592765808,
-0.19998936355113983,
-0.027773862704634666,
0.3521399199962616,
0.3461928069591522,
-0.29189613461494446,
-0.7881962060928345,
0.05054769665002823,
0.26572486758232117,
0.01571156457066536,
0.13042381405830... | |
I would like to go ahead and say:
* No, I am not going ditch ASP/VBScript as I am the sole developer and I just don't have the time.
* Please no comments about IE6 either. Its pointless as there's nothing I've been able to do about it.
* No, I can't use Google Analytics. This is in-house so any and all options that I ... | [
0.5991358160972595,
0.25323349237442017,
0.3196922838687897,
-0.1303965151309967,
-0.40514278411865234,
-0.1800704002380371,
0.509658932685852,
0.28516703844070435,
-0.16174070537090302,
-0.7841365933418274,
-0.19818660616874695,
0.47701898217201233,
-0.08730616420507431,
0.135705769062042... | |
it. This is not up for discussion.
I'm sure there's some detail I've forgotten to add to the question, but I'll add it when I remember.
Ended up going with [SmarterStats](http://www.smartertools.com/SmarterStats/Features/Web-Log-Analytics-Website-Statistics.aspx) as mentioned at:
[IIS monitoring tool](https://stackov... | [
0.5103649497032166,
-0.42351415753364563,
0.22965849936008453,
0.5418608784675598,
0.07007432729005814,
-0.34458819031715393,
0.1655403971672058,
0.2409864366054535,
-0.13373412191867828,
-0.8448778390884399,
0.153532937169075,
0.5164645314216614,
-0.006684336811304092,
-0.2042061537504196... | |
What usability evaluation methods do you use?
* GOMS?
* Cognitive Walkthrough?
* Think aloud protocol?
Others? (apart from 'ask your mum' tips that are well covered elsewhere on SO)
GOMS is way too heavyweight (and too far from reality) for most tasks ... i'd suggest something way more lightweight like hallway usabi... | [
0.12283550202846527,
-0.04170669615268707,
0.24248763918876648,
0.11431406438350677,
0.0074426159262657166,
0.03199291229248047,
0.299611896276474,
-0.1539713591337204,
-0.04597612842917442,
-0.3674156069755554,
-0.0571463517844677,
0.270434707403183,
0.1789054125547409,
-0.366843909025192... | |
I'm thinking of choosing Adobe AIR as the client-side implementation technology for an upcoming project. (The previous choice was C# and WPF, but I've been really impressed with Flash/Flex/AIR lately.)
But one of the most important features of my product will be its plugin architecture, allowing third party developers... | [
0.5205174684524536,
0.3066645562648773,
0.28071755170822144,
-0.0503602959215641,
0.03965424746274948,
0.10820140689611435,
-0.08922797441482544,
-0.0886884480714798,
-0.029131898656487465,
-0.8375191688537598,
-0.18667376041412354,
0.6402670741081238,
-0.3064570128917694,
-0.0228742267936... | |
the factory, I'd ask it for its MVC classes, and snap its GUI elements (menu items, panels, etc) into the appropriate slots in the existing GUI layout.
I'd like to accomplish the same thing within AIR (loading plugins from the local filesystem, not from the web). After reading [this article](http://www.adobe.com/devne... | [
0.7939320802688599,
0.18003694713115692,
0.13956251740455627,
-0.11269747465848923,
-0.06910643726587296,
0.09849733859300613,
0.013849982060492039,
-0.17105227708816528,
-0.37892353534698486,
-0.46154266595840454,
-0.13795936107635498,
0.6763526797294617,
-0.47397348284721375,
-0.25815346... | |
ESPECIALLY within the AIR host), I'd love to hear about your experiences building your plugin framework and where you ran into tricky situations with the flash player, and with the flash, flex, and AIR APIs.
For example, if someone asked me this same question, but with the Java platform in mind, I'd definitely mention... | [
0.4615493416786194,
0.19173240661621094,
-0.050904855132102966,
0.2631240487098694,
-0.23796451091766357,
-0.43250373005867004,
0.13922278583049774,
-0.18489599227905273,
-0.310094952583313,
-0.729418933391571,
-0.09078411757946014,
0.5155594348907471,
-0.24437303841114044,
-0.043815951794... | |
its own separate instance of a loaded class (with its own separate static vars).
---
Here are a few specific questions still unanswered for me:
1) The actionscript "Loader" class can load an SWF into an ApplicationDomain. But what exactly does that appdomain contain? Modules? Classes? How are MXML components represe... | [
0.0779183954000473,
-0.2361556887626648,
0.4835329055786133,
0.1006932333111763,
-0.28129106760025024,
-0.018773987889289856,
0.12178973853588104,
-0.2736613154411316,
-0.3965528905391693,
-0.2727341055870056,
-0.14553573727607727,
0.34696274995803833,
-0.7168655395507812,
-0.0684255361557... | |
through the inter-appdomain marshalling layer? Is marshalling prohibitively expensive?
3) Ideally, I'd like to develop the majority of my own main code as a plugin (with the main application being little more than a plugin-loading shell) and use the plugin architecture to hoist that functionality into the app. Does th... | [
0.427959680557251,
0.1775347739458084,
0.21744419634342194,
0.10637745261192322,
0.14735816419124603,
0.1506369709968567,
0.09799686074256897,
-0.6061294674873352,
-0.23526740074157715,
-0.5618429780006409,
-0.0642484575510025,
0.6565563082695007,
-0.30167892575263977,
-0.39726170897483826... | |
that you subclass plugins from `ModuleBase` and use `ModuleManager` in the host app to load them. Then you have the plugins implement a common interface (e.g. `IMyAppPlugin`) and use some sort of a [facade](http://en.wikipedia.org/wiki/Facade_pattern) to represent and implement the interface to the host application tha... | [
0.1593249887228012,
0.04918082058429718,
0.3293958306312561,
-0.05955003201961517,
0.11423829197883606,
0.10347422957420349,
0.06803544610738754,
-0.25151750445365906,
-0.2707144320011139,
-0.5626832246780396,
-0.4005034863948822,
0.5839961171150208,
-0.11515078693628311,
-0.05890969187021... | |
domain of the current
> application domain. You can specify a
> different application domain by using
> the applicationDomain property of the
> ModuleLoader class."*
The topic ["Using the ApplicationDomain class"](http://livedocs.adobe.com/flex/3/html/help.html?content=18_Client_System_Environment_5.html#119371) g... | [
0.3337422013282776,
-0.06742384284734726,
0.8109095096588135,
0.02652709186077118,
0.012595188803970814,
-0.2886298894882202,
0.08295845240354538,
-0.11801879853010178,
-0.3691915273666382,
-0.4652372896671295,
-0.08670927584171295,
0.5240538120269775,
-0.3518918454647064,
0.26303577423095... | |
What is your suggested solution for the threat of website UI spoofing?
The key to this problem is identifying some difference between a request to the real site and a request to the spoof site.
The simplest difference is some cookie-based UI preference. A cookie set on your (real) site will only ever be returned to yo... | [
0.2414487600326538,
-0.0653880387544632,
0.5265151262283325,
0.23089730739593506,
-0.027193482965230942,
-0.16982588171958923,
0.3304338753223419,
-0.019932536408305168,
-0.18632188439369202,
-0.5884752869606018,
-0.038038067519664764,
0.36420518159866333,
-0.3430696427822113,
0.2150781750... | |
guarantee that it won't be sent to the spoof site. | [
0.5717341303825378,
0.23148518800735474,
0.15632766485214233,
0.18658941984176636,
0.4417673349380493,
-0.359931081533432,
0.08821242302656174,
0.22813846170902252,
0.044462479650974274,
-0.2734118700027466,
-0.2212497889995575,
0.38354429602622986,
-0.08041172474622726,
-0.316127598285675... | |
I have a connection to a Microsoft SQL Server and want the change the connection authenticated user. Is it possible to do it without closing and reopening the connection?
The ideal is something like Oracle [set role](http://www.techonthenet.com/oracle/roles.php) feature.
I'd love if the solution also works for SQL S... | [
0.2392452359199524,
-0.13711997866630554,
0.5613619685173035,
0.22533351182937622,
0.14135566353797913,
-0.034290675073862076,
0.12175433337688446,
-0.2561967670917511,
-0.34295058250427246,
-0.6401053667068481,
-0.045564379543066025,
0.6578893661499023,
-0.24437685310840607,
-0.0604429133... | |
when closed in your code, e.g. it can't be returned to the pool and reused, which leads to scalability issues.
Otherwise it is not possible to change the security context once it has been established. | [
0.338468074798584,
-0.017982861027121544,
-0.041029397398233414,
0.1518804281949997,
0.344875693321228,
-0.34869080781936646,
0.34787362813949585,
-0.030739979818463326,
-0.21674714982509613,
-0.46251019835472107,
-0.25637975335121155,
0.1674240529537201,
-0.2151692807674408,
0.37707185745... | |
I'm trying to add two folders to my eclipse project's classpath, let's say Folder A and Folder B. B is inside A. Whenever I add A to the classpath
```
<classpathentry kind="lib" path="/A"/>
```
it works just fine, but I need to be able to access the files in B as well. Whenever I try to add
```
<classpathentry kind... | [
0.40390151739120483,
-0.010659871622920036,
-0.14505262672901154,
-0.07600529491901398,
-0.37564921379089355,
-0.004005389288067818,
-0.09758295863866806,
0.11620039492845535,
-0.08954637497663498,
-1.0159729719161987,
0.3099377453327179,
0.5448241829872131,
-0.2929898500442505,
-0.1267987... | |
the eclipse classpath?
I don't think you can (or should be) allowed to do that, and it's not really an Eclipse issue AFAIK
Any individual classpath is a root under which the JVM starts looking for classes using the standard package notation
So let's say that your program has a class X in the default package, and a b.... | [
0.4682525098323822,
-0.02772081084549427,
-0.27459070086479187,
-0.15560732781887054,
-0.4791971445083618,
-0.02623474970459938,
0.11720360070466995,
0.11183205991983414,
-0.09376063197851181,
-0.5188579559326172,
0.21788783371448517,
0.5927881002426147,
-0.47567614912986755,
-0.0849725529... | |
could interpret your request as X in the default package (since there is a root at A), but also as class X in the default package relative to the path /a/b, but that is the class b.X
So to prevent these things from happening, you're not allowed to have classpath roots that are nested. | [
0.05247665196657181,
-0.5962193608283997,
0.06646718084812164,
0.22728827595710754,
-0.10585856437683105,
-0.10938724130392075,
0.5225240588188171,
0.0774872824549675,
-0.11687768995761871,
-0.5818178057670593,
-0.06092869117856026,
0.37031474709510803,
-0.387032687664032,
-0.0112213641405... | |
I got a core that looks very different from the ones I usually get - most of the threads are in \_\_kernel\_vsyscall() :
```
9 process 11334 0xffffe410 in __kernel_vsyscall ()
8 process 11453 0xffffe410 in __kernel_vsyscall ()
7 process 11454 0xffffe410 in __kernel_vsyscall ()
6 process 11455 0xffffe410 in... | [
0.09704045951366425,
0.15054725110530853,
0.3785998523235321,
-0.043843355029821396,
0.24355635046958923,
0.5279066562652588,
0.19814369082450867,
-0.006065105088055134,
-0.549818217754364,
-0.6298433542251587,
0.06787018477916718,
0.4608690142631531,
-0.25940266251564026,
0.56250548362731... | |
0x08220782 in MyClass::myfunc ()
```
What does that mean?
EDIT:
In particular, I usually see a lot of threads in "pthread\_cond\_wait" and "\_\_\_newselect\_nocancel" and now those are on the second frame in each thread - why is this core different?
`__kernel_vsyscal` is the method used by linux-gate.so (a part of t... | [
-0.08422945439815521,
0.07113941758871078,
0.013873651623725891,
-0.05851319432258606,
0.023028947412967682,
-0.06304800510406494,
0.17851737141609192,
-0.1591668277978897,
-0.5095996260643005,
-0.433791846036911,
0.023853443562984467,
0.1950705498456955,
-0.44710469245910645,
0.3665243089... | |
I have a form action that needs to have its value set from a variable. I need to set the variable once and it will be reflected many times throughout the DOM.
So:
variable = "somthing.html";
...
This will cause all FORMs to get the variable action:
```
<script src="jquery-1.2.6.pack.js"></script>
<script>
$(document... | [
0.366210401058197,
-0.13704684376716614,
0.8358281850814819,
-0.5157350897789001,
-0.11332167685031891,
-0.03495359048247337,
0.2841385304927826,
-0.6037418842315674,
-0.1268150508403778,
-0.5761354565620422,
-0.2021690458059311,
0.4935801029205322,
-0.26814842224121094,
-0.125096052885055... | |
Let's say I have the three following lists
A1
A2
A3
B1
B2
C1
C2
C3
C4
C5
I'd like to combine them into a single list, with the items from each list as evenly distributed as possible sorta like this:
C1
A1
C2
B1
C3
A2
C4
B2
A3
C5
I'm using .NET 3.5/C# but I'm looki... | [
0.2250794768333435,
0.03474520146846771,
0.08839521557092667,
-0.15463367104530334,
-0.24503083527088165,
0.25248223543167114,
0.03252958133816719,
-0.6004903316497803,
-0.6789015531539917,
-0.5330958962440491,
0.17066361010074615,
0.023885443806648254,
-0.3455609679222107,
0.1417818069458... | |
members. This will be the destination list.
2. Then take the list with the next largest number of members.
3. divide the destination list length by the smaller length to give a fractional value of greater than one.
4. For each item in the second list, maintain a float counter. Add the value calculated in the previous s... | [
0.037187714129686356,
-0.17682652175426483,
0.7431490421295166,
0.14998546242713928,
0.21755321323871613,
0.09579644352197647,
0.11430589854717255,
-0.6969020962715149,
-0.5614030957221985,
-0.3443908095359802,
-0.25061750411987305,
0.14949801564216614,
-0.4143848121166229,
0.0970943868160... | |
for all lists.
EDIT: This has the advantage of being O(n) as well, which is always nice :) | [
0.060159798711538315,
0.15634818375110626,
0.32431042194366455,
-0.19584602117538452,
-0.1259923130273819,
-0.12265424430370331,
0.0871398001909256,
-0.062486667186021805,
-0.5591034293174744,
-0.5228376388549805,
-0.3327621519565582,
0.4248608946800232,
-0.2684754729270935,
-0.13461996614... | |
I thought it is a very simple task to export data in a view from SQL Server 2005 to a fixed width text file. But the wizard is a pain. The format is not correct. Does anybody know how to deal with it? or any better way to do that?
Use bcp with queryout option
<http://msdn.microsoft.com/en-us/library/ms162802(SQL.90).as... | [
-0.08192272484302521,
0.08673261851072311,
0.29128748178482056,
0.008240186609327793,
-0.3719590902328491,
-0.14620840549468994,
0.08034271001815796,
-0.04702974855899811,
-0.4922662377357483,
-0.394761860370636,
0.08626881241798401,
0.5323584079742432,
-0.2869018316268921,
-0.010487736202... | |
first row, etc.. finally exported Sales.Customer table
Without BCP, you may have to look into SSIS or SQLCMD | [
0.13419200479984283,
0.03882811963558197,
0.4345647692680359,
0.13628682494163513,
-0.12928485870361328,
0.008564657531678677,
-0.29128777980804443,
0.16581346094608307,
-0.3893067538738251,
-0.26010608673095703,
-0.10093522071838379,
0.31273749470710754,
-0.06447754800319672,
0.2306013852... | |
I did this in the past, and can't remember the correct command (I think I was using instring or soemthign?)
I want to list all the windows services running that have the word 'sql' in them.
Listing all the windows services is:
```
Get-Service
```
Is there a instring function that does this?
```
Get-Service -Name *... | [
0.07523269206285477,
0.030311984941363335,
0.33225300908088684,
0.04362080246210098,
-0.038265008479356766,
-0.18064849078655243,
0.419292688369751,
0.16832496225833893,
-0.25934460759162903,
-0.7009122371673584,
-0.18191975355148315,
0.4583740234375,
-0.278033971786499,
0.0906901285052299... | |
By default, Get-Service gets all of the services on the comp
uter.
Required? false
Position? 1
Default value *
Accept pipeline input? | [
-0.04927574843168259,
-0.3364560604095459,
0.4698289930820465,
-0.04007381200790405,
-0.002375548705458641,
0.4122059941291809,
0.4369962215423584,
0.24489079415798187,
0.20545344054698944,
-0.6191486716270447,
-0.7008265256881714,
0.7296730279922485,
-0.24025121331214905,
0.10503350943326... | |
true (ByValue, ByPropertyName)
Accept wildcard characters? true
```
Usually if filtering is built in to the cmdlet, that is the preferred way to go, since it is often faster and more efficient.
In this case, there might not be too much of a performance benefit, but in V2, where you could be pulling services ... | [
0.356161504983902,
-0.09036573767662048,
0.32602226734161377,
0.23649805784225464,
-0.11514844745397568,
-0.39066722989082336,
0.2866829037666321,
-0.06680412590503693,
0.08303417265415192,
-0.4497247040271759,
-0.3137654960155487,
0.29305392503738403,
-0.2285037338733673,
-0.1620224863290... | |
I am working on an ASP.NET web application that is required to bring up a popup on a roolover. I am using the "OnMouseOver" event and it works as expected. The problem is that the event is on a "hair trigger"; even a casual passage of the mouse over the control brings up the popup (which then must be manually dismissed... | [
0.3737470209598541,
-0.18004392087459564,
0.719575822353363,
-0.05687495321035385,
0.21273116767406464,
-0.1005035936832428,
0.09349847584962845,
-0.08406489342451096,
-0.38952702283859253,
-0.12051130831241608,
-0.09541258215904236,
0.48615697026252747,
-0.16460511088371277,
0.11832525581... | |
use to get the same "trigger event on a slow rollover"?
One solution that comes to mind, there may be better ways though:
1. Make the `onmouseover` call the function via a `setTimeout` delay
2. Inside the function, check the mouse is actually over that element.
You could also use an `onmouseout` to clear the `setTime... | [
0.16549527645111084,
-0.4028613269329071,
0.29923927783966064,
0.1829555332660675,
0.13710206747055054,
-0.22424443066120148,
0.14096599817276,
-0.13631922006607056,
-0.17237374186515808,
-0.4634358286857605,
-0.07673921436071396,
0.7041621804237366,
-0.4412018656730652,
0.0068713314831256... | |
I have a binary field in my database that is hard to describe in a UI using a single "Is XXXX?"-type checkbox. I'd rather use a pair of radio buttons (e.g. "Do it the Foo way" and "Do it the Bar way"), but right now all the other fields on my form are data-bound to a business object. I'd like to data-bind the pair of r... | [
0.6698357462882996,
0.34705203771591187,
0.35072454810142517,
-0.14542387425899506,
-0.12124693393707275,
0.03848359361290932,
0.00421509612351656,
-0.1901719570159912,
0.07824210077524185,
-0.4634772539138794,
0.002571415388956666,
0.6308973431587219,
-0.29804712533950806,
0.0328573696315... | |
set "true" if the button is selected, but while selecting the other button does de-select the first one (that is, the two radio buttons are properly paired), the value of the field does not update to reflect this.
I'd like to be able to say
```
button1.DataBindings.Add(new Binding("checked", source, "useFoo"));
butto... | [
0.6617327332496643,
0.07085762917995453,
0.45324525237083435,
-0.14357063174247742,
-0.0296787116676569,
-0.3730020523071289,
0.5059115886688232,
-0.603912353515625,
0.2725815773010254,
-0.4656667113304138,
-0.051760926842689514,
1.061625599861145,
-0.23550228774547577,
-0.2909975051879883... | |
thought about this, but how would I data-bind that to a boolean field in a database/Property in a business object? If I bind the SelectedItem to the useFoo property, what would go in the Items collection? Would I have to add just "True" and "False", or could I somehow add a key/value pair object that ties a displayed i... | [
0.39021024107933044,
0.10421206802129745,
0.18701642751693726,
0.13058319687843323,
0.03814621642231941,
-0.041079677641391754,
0.26175621151924133,
-0.24135622382164001,
-0.028790872544050217,
-0.46127989888191223,
0.058894384652376175,
0.6767569780349731,
-0.39493536949157715,
0.22924372... | |
the one posted by Gurge, but I came up with it separately before I read his response. In short, I added a separate property that simply returns `!useFoo`. One radio button is bound to `source.UseFoo`, and the other is bound to `source.UseBar` (the name of the new property). It's important to make sure the new property ... | [
0.2257998138666153,
0.28058061003685,
0.6927808523178101,
-0.14315783977508545,
-0.14789919555187225,
0.006082849111407995,
0.19908185303211212,
-0.42471906542778015,
0.19067244231700897,
-0.4118693768978119,
0.08951030671596527,
0.7769750356674194,
-0.6193732619285583,
0.1498456448316574,... | |
Now you can bind one `RadioButton.Checked` to `Foo` and one to `Bar`.
To get `Bar` checking/unchecking to propagate back to `Foo` you must go to the generated DataTable code and add one line, the last one in this sample:
```
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
public bool Bar {
get {
... | [
0.29658958315849304,
-0.03751455992460251,
0.5512191653251648,
-0.3970472514629364,
0.06660167127847672,
-0.09530258923768997,
0.30340659618377686,
-0.5147890448570251,
-0.11687672883272171,
-0.37163135409355164,
-0.17288579046726227,
0.7390360236167908,
-0.6046745777130127,
0.176150709390... | |
global::System.Data.StrongTypingException("The value for column \'Bar\' in table \'radio\' is DBNull.", e);
}
}
set {
this[this.tableradio.BarColumn] = value;
this[this.tableradio.FooColumn] = !value;
}
}
``` | [
-0.34444940090179443,
0.12634366750717163,
1.035918116569519,
-0.34771525859832764,
0.16915792226791382,
-0.16160844266414642,
0.13234081864356995,
-0.0717233419418335,
-0.18969160318374634,
-0.3678937256336212,
-0.48875337839126587,
0.8066703081130981,
-0.6591050624847412,
0.2038372457027... | |
I have a JQueryDialog with a text field, an OK button and a cancel button.
I want to be able to hit the enter key after filling in the text fields and have it do the same action as when I click the OK button.
In your dialog, call `getRootPane().setDefaultButton(okButton)`. | [
0.266164094209671,
-0.09440691024065018,
0.8503360152244568,
-0.037760891020298004,
0.26491695642471313,
0.08070089668035507,
0.24307209253311157,
0.2949848473072052,
0.0006264559342525899,
-0.6311023235321045,
-0.2361101657152176,
0.7575597167015076,
-0.2905712425708771,
-0.01703830994665... | |
I have been working on a project that has 2 interfaces - windows forms and web. Over the past 8 months, we have faced more issues with maintenance of our web apps (works in IE not in FF, ajax breaks in some weird ways that is not easy to debug... ) and so on.
On the other hand, the winform app is easy to install. We... | [
0.7684328556060791,
0.22656947374343872,
0.4216901361942291,
0.14333705604076385,
-0.034049201756715775,
-0.17092856764793396,
0.21576301753520966,
0.06668973714113235,
0.06052779778838158,
-1.0066990852355957,
-0.010713428258895874,
0.7996097803115845,
0.043196726590394974,
0.125024780631... | |
to do is to publish it on to the server and send an email with a link.
When the user clicks on the download link ... they have a new version... all that is needed is the 2.0 runtime.
Is the tide now changing over to smart clients?
**EDIT: Are the browsers now causing the problems with web apps (too many platforms... | [
0.3602210283279419,
0.13627435266971588,
0.5734503865242004,
0.07990223914384842,
0.09524410218000412,
-0.3218131363391876,
0.3544096052646637,
-0.16246312856674194,
-0.14081540703773499,
-0.7452173233032227,
-0.02224469929933548,
0.5427308678627014,
-0.04003887623548508,
-0.04725319519639... | |
IE 8). Whereas smart clients run on top of the framework, so they dont need to be tested on all the OS's.**
We had a PHP website for our intranet utility. We have switches since 2 years over a C# application with ClickOnce and everybody love to works with a desktop application. Update are done automaticly and the devel... | [
0.2399873286485672,
0.16721047461032867,
0.51624596118927,
-0.00567918736487627,
-0.12025678902864456,
-0.34537097811698914,
0.34375908970832825,
0.1705414205789566,
-0.10038859397172928,
-0.9181123375892639,
0.1362604796886444,
0.6814088225364685,
-0.03181672468781471,
-0.3274496495723724... | |
give you some help to take your decision. | [
0.32414132356643677,
0.18699578940868378,
-0.09504734724760056,
0.2949388921260834,
0.04141794145107269,
-0.10911975800991058,
-0.006743039004504681,
0.42447105050086975,
0.31423139572143555,
-0.6231204867362976,
0.27906137704849243,
0.042143192142248154,
0.30730605125427246,
-0.2008088380... | |
So in high school math, and probably college, we are taught how to use trig functions, what they do, and what kinds of problems they solve. But they have always been presented to me as a black box. If you need the Sine or Cosine of something, you hit the sin or cos button on your calculator and you're set. Which is fin... | [
-0.08202612400054932,
0.08805680274963379,
0.061518702656030655,
0.11114843934774399,
-0.05068071186542511,
-0.07568561285734177,
-0.0517028272151947,
0.07927016913890839,
-0.09789345413446426,
-0.38056838512420654,
-0.013548866845667362,
0.5414845943450928,
-0.055947136133909225,
-0.09218... | |
reduce angles to be between 0 and 360 degrees. But by using a few identities, you realize you could get by with less. If you calculate sines and cosines for angles between 0 and 45 degrees, you can bootstrap your way to calculating all trig functions for all angles.
Once you've reduced your argument, most chips use a ... | [
0.15606534481048584,
0.018456503748893738,
0.37516871094703674,
-0.03727614879608154,
0.03441581130027771,
0.26989489793777466,
-0.08882948756217957,
-0.36493003368377686,
0.02075778692960739,
-0.7504908442497253,
0.09978461265563965,
0.681415855884552,
0.1776585727930069,
-0.1023562103509... | |
on hardware that doesn't support trig functions.) There may be some additional processing, using the CORDIC algorithm to get fairly good answers but then doing something else to improve accuracy.
There are some refinements to the above. For example, for very small angles theta (in radians), sin(theta) = theta to all ... | [
0.15570364892482758,
-0.21935537457466125,
0.130392387509346,
0.10685988515615463,
-0.11507797986268997,
0.04037371650338173,
0.1959143429994583,
-0.49519428610801697,
0.21764090657234192,
-0.5209768414497375,
-0.02952677756547928,
0.656436562538147,
0.08056400716304779,
-0.179967164993286... | |
effort. | [
0.1599360555410385,
0.2086794078350067,
-0.4207090139389038,
0.11154714226722717,
-0.2616059482097626,
0.013195364736020565,
0.3426344692707062,
-0.23989690840244293,
0.04081695154309273,
-0.7719908356666565,
-0.0012973620323464274,
0.44403186440467834,
0.10359010845422745,
0.0498834811151... | |
I want to put my dependent files in the app directory.
I seem to remember that you can force VB6 to use the files in the local directory only.
Any hints?
You may also want to try setting up [Reg-Free COM](http://msdn.microsoft.com/en-us/magazine/cc188708.aspx) for your project. There's a freeware called [Unattended M... | [
0.9709674715995789,
-0.24088066816329956,
0.20948883891105652,
0.19035100936889648,
0.04138060659170151,
-0.12035184353590012,
0.11321831494569778,
0.24472513794898987,
-0.29275330901145935,
-0.8822113871574402,
0.13956056535243988,
0.4368228614330292,
-0.08040757477283478,
0.1417270153760... | |
I'm relatively new to the Windows Server world (coming from \*nix land). I'm used to analyzing a web-server's configuration by grepping through an apache config file.
Is there an equivalent file/group-of-files for IIS? Lacking that, is there an official scripting interface for IIS?
PowerShell would be the way to go.
... | [
0.42739298939704895,
0.07244209945201874,
0.04838540032505989,
0.15460209548473358,
-0.011619312688708305,
-0.41989973187446594,
0.2067628651857376,
-0.025571657344698906,
-0.2961922883987427,
-0.6878113150596619,
0.08621140569448471,
0.22406898438930511,
-0.0013685338199138641,
0.25327670... | |
I can do this:
```
Dim fso As New FileSystemObject
```
or I can do this:
```
Dim fso As Object
Set fso = CreateObject("Scripting.FileSystemObject")
```
How do I know what string to use for CreateObject? For example, how would I know to use the "Scripting." part of "Scripting.FileSystemObject"? Where do you go to ... | [
0.44165492057800293,
0.14125999808311462,
0.6968215107917786,
0.10026253759860992,
-0.010317103005945683,
-0.005655384622514248,
0.031016841530799866,
-0.08296611905097961,
-0.19335152208805084,
-0.5374681353569031,
-0.3959504961967468,
0.6828328967094421,
-0.20730248093605042,
0.150220409... | |
first sample code you have provided you are doing an early-binding, and in the second one you are doing a late-binding. | [
0.43401193618774414,
-0.11270979046821594,
-0.365136057138443,
0.26120468974113464,
0.04070204123854637,
-0.3177771270275116,
-0.045912936329841614,
-0.42426273226737976,
0.28532662987709045,
-0.6677188873291016,
0.002854057354852557,
0.27301254868507385,
-0.2566390633583069,
-0.1086031943... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.