text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
out, the control and precision of JDBC was worth the extra lines of code you have to write. Also, most people do not understand that SQL is not something that can be generated and expected to perform. It is something that has to be written and tweaked to gain maximium performance. | [
0.38266175985336304,
0.24161644279956818,
-0.156076118350029,
0.4044317603111267,
-0.38456475734710693,
-0.11251624673604965,
0.135947123169899,
-0.043894212692976,
-0.18409715592861176,
-0.278125524520874,
0.3794982135295868,
0.4622805714607239,
-0.06375804543495178,
0.07808523625135422,
... | |
I'm just curious if anyone has any great ideas on this.
We have a lot of C# windows services. Each app is installed on multiple machines (anywhere from 2-80, depending on the app.)
Due to the security setup of the network, we cannot (consistently) use Windows authentication to the SQL servers, so our connection stri... | [
0.2938462793827057,
0.3105374276638031,
0.4075431823730469,
0.38405147194862366,
0.3223736882209778,
-0.1662820428609848,
0.31441760063171387,
0.2130371779203415,
-0.28998783230781555,
-0.7751044631004333,
-0.13286472856998444,
0.5881959795951843,
-0.18914608657360077,
-0.04173277318477630... | |
unreadable to the naked eye
3) Copy that configuration file to all installations of a particular piece of software. This means that the encryption cannot be tied to a specific machine.
Can DPAPI do this? Can one set of keys be installed on all targets to allow the decryption of a common config file? How is the configu... | [
0.37988361716270447,
-0.2588455379009247,
0.20099295675754547,
0.26604217290878296,
-0.019561251625418663,
-0.390779584646225,
0.2674942910671234,
-0.2690984904766083,
-0.13392600417137146,
-0.4731992185115814,
-0.3764926791191101,
0.5291100740432739,
-0.6093234419822693,
0.064433202147483... | |
identical. This has wide impact to the server, such as with unrelated apps that depend on machineKey.
Option 2) You can override the `<machineKey>` in the web.config for narrower scope.
Session and encrypted viewstate validation also depend on the `<machineKey>`, so by having identical keys across servers, the sessio... | [
0.07108800858259201,
0.12656240165233612,
0.6413075923919678,
0.1491641253232956,
-0.023092612624168396,
-0.16744020581245422,
0.22548538446426392,
-0.24754372239112854,
-0.4367333650588989,
-0.8123607635498047,
0.07745354622602463,
0.6884894967079163,
-0.26402533054351807,
0.1120701581239... | |
It seems that floated HTML elements don't expand the heights of their containers. For example, consider the following code:
```css
.portfoliosite {
background: #777;
padding: 10px;
width: 550px;
}
.portfoliothumbnail {
background: red;
margin: 0 10px 10px 0;
float: left;
height: 15... | [
0.37791773676872253,
-0.11652375012636185,
0.7387905120849609,
-0.10673637688159943,
-0.35288822650909424,
-0.2014099508523941,
-0.3439505696296692,
-0.25374636054039,
-0.04652827978134155,
-0.3962107002735138,
0.19936935603618622,
0.2213882952928543,
-0.046273089945316315,
0.0558952018618... | |
Jan 1, 2009</p>
</div>
```
Notice how the containing div with the gray background is shorter than the red div, and the red div extends outside the container's boundaries. I'd like the containing element to expand to the size of its contents, including the floated element.
Is there an elegant solution for acc... | [
0.12950202822685242,
0.008941280655562878,
0.6729872822761536,
-0.17495965957641602,
0.05798427388072014,
-0.1807001382112503,
-0.17820049822330475,
-0.2564229667186737,
-0.24649770557880402,
-0.4365443289279938,
-0.2371765822172165,
0.5233539342880249,
-0.3326362073421478,
-0.090613454580... | |
background: red;
margin: 0 10px 10px 0;
float: left;
height: 150px;
width: 150px;
}
```
```html
<div class="portfoliosite">
<div class="portfoliothumbnail"><!-- Img tag goes here --></div>
<p class="portfoliotitle">AwesomeSite.Com</p>
<p class="portfoliodescription">An aweso... | [
0.18465617299079895,
-0.14345717430114746,
0.9016588926315308,
-0.12936323881149292,
-0.03094937466084957,
-0.2375068962574005,
-0.16863037645816803,
0.24689045548439026,
0.15319544076919556,
-0.3181664049625397,
0.26984673738479614,
0.9543380737304688,
0.2909415066242218,
0.06335050612688... | |
We have a number of winforms apps that are written in dotnet 2.0. Are there any performance upgrades that we would expect when taking transistion to 3.5 runtime? Any particular benefits we will get, besides the language features?
There are probably a few minor performance improvements and bug fixes but the biggest bene... | [
0.6751152276992798,
-0.17843957245349884,
0.43525341153144836,
0.10021256655454636,
0.17662766575813293,
-0.006167976651340723,
0.14080996811389923,
0.12615109980106354,
0.2669292390346527,
-0.8923035860061646,
0.03825777769088745,
0.9134743809700012,
-0.2055281549692154,
-0.19584378600120... | |
which means a smaller download/install size. | [
0.10329338908195496,
0.007339718285948038,
0.38859644532203674,
0.056912217289209366,
0.30261147022247314,
-0.21329480409622192,
0.06872960925102234,
-0.04121345654129982,
-0.3585834503173828,
-0.32416191697120667,
-0.6065159440040588,
0.5033693909645081,
0.07404329627752304,
0.18668128550... | |
I have a page with an iframe whose source page is in a separate domain. From time to time, the source page generates an alert. When it does so, it stops what it is doing until the user clicks OK to the alert.
What I would like to do is programmatically click OK on this alert so the source page can get back to being us... | [
0.3054704964160919,
0.15144169330596924,
-0.058642059564590454,
-0.26521140336990356,
-0.28484058380126953,
-0.14603276550769806,
0.2484646588563919,
0.027026616036891937,
-0.22688865661621094,
-0.7884286046028137,
-0.14736813306808472,
0.20437900722026825,
-0.5229327082633972,
-0.08264790... | |
not Javascript which is popping the UI dialog, it is the browser. alert() does not return until the browser receives the "OK" event and returns control. The javascript thread is halted until that happens.
So for at least two different reasons stated in the above paragraph, the answer is **no** :) | [
0.061937253922224045,
-0.08942711353302002,
0.5903944373130798,
-0.13427315652370453,
-0.039301324635744095,
-0.3763592541217804,
0.5692110657691956,
0.19551365077495575,
-0.2513073682785034,
-0.4715636968612671,
-0.7136594653129578,
0.3113085627555847,
-0.5331824421882629,
0.0542712397873... | |
I've been working with xml lately. And have noticed a bit of a phenomenon (maybe not that big of a deal to the rest of the world, but to me it was). Perhaps, it is me being a newb. But shouldn't most hard coded or magic numbers be broken out to a configuration file? For example,
```
string url = "http://www.domain... | [
0.5231959223747253,
0.01024093758314848,
0.3943966329097748,
-0.027383366599678993,
-0.06908278912305832,
-0.4207860827445984,
0.1799333393573761,
-0.16761068999767303,
-0.28297755122184753,
-0.5690072774887085,
-0.12020554393529892,
0.32530635595321655,
-0.1545148640871048,
0.437851250171... | |
{
XmlNode error = errorsNode.FirstChild;
lblError.Text = "Error: " + error.SelectSingleNode("Code").InnerText;
}
```
Here is the xml document:
```
<Errors>
<Error>
<Code>AWS.MissingParameters</Code>
<Message>You are missing an parameter</Message>
</Error>
</Errors>
```... | [
-0.10980366170406342,
-0.04701509699225426,
-0.18382789194583893,
-0.16330848634243011,
-0.2876846194267273,
-0.23537059128284454,
0.21961168944835663,
-0.38818877935409546,
-0.14841565489768982,
-0.6630566120147705,
-0.24117864668369293,
0.28757327795028687,
-0.5983029007911682,
-0.088146... | |
to handle it. It is not Javascript which is popping the UI dialog, it is the browser. alert() does not return until the browser receives the "OK" event and returns control. The javascript thread is halted until that happens.
So for at least two different reasons stated in the above paragraph, the answer is **no** :) | [
-0.022289680317044258,
-0.15031471848487854,
0.6137655377388,
-0.03847154602408409,
-0.017653267830610275,
-0.42273828387260437,
0.45856425166130066,
0.06438599526882172,
-0.23870868980884552,
-0.3385910391807556,
-0.5382675528526306,
0.34249600768089294,
-0.42737746238708496,
-0.006442318... | |
I think the title is pretty descriptive:
I perform all 3 of these operations on a view, the result is 20 pixels of white space along the left side of the screen (if holding the iPhone is landscapeLeft).
I tried to fix it by performing a CGAffineTransFormTranslate(transform, -20, 0)
That just "slides" the view undern... | [
-0.10419199615716934,
0.020117567852139473,
0.8964246511459351,
-0.1303045004606247,
0.17890538275241852,
0.18299894034862518,
0.24452172219753265,
-0.18218250572681427,
-0.152574360370636,
-0.46757009625434875,
0.1050703302025795,
0.5579013228416443,
-0.24288271367549896,
0.09792050719261... | |
view (created in IB) to landscape, before displaying it.
My Transform code:
```
CGRect myFrame = CGRectMake(0, 0, 480, 320);
CGAffineTransform transform = [[self.myPeriodicTableViewController view] transform];
transform = CGAffineTransformRotate(transform, degreesToRadians(rotationDirection * 90));
tr... | [
0.14653602242469788,
-0.2960154414176941,
0.9090631604194641,
-0.18925124406814575,
-0.27674391865730286,
0.23868101835250854,
0.25506770610809326,
-0.25043150782585144,
0.06437604129314423,
-0.8336794376373291,
-0.08547421544790268,
0.6894392967224121,
0.009066429920494556,
0.243395045399... | |
the modal view:
First, In my code I was resizing my view like so:
```
[self.view setFrame: [[UIScreen mainScreen] applicationFrame]];
```
After you hide the status bar, applicationFrame STILL returns a 320x460 rect (not 320x480).
Not sure why, but the following fixes it:
```
[self.view setFrame: [[UIScreen mainScr... | [
-0.2658207416534424,
-0.3319530487060547,
1.0799524784088135,
0.020505059510469437,
-0.18642809987068176,
-0.04732002690434456,
0.7947009801864624,
-0.4244440793991089,
-0.19303911924362183,
-0.5643386840820312,
-0.504852294921875,
0.906434178352356,
-0.48730579018592834,
-0.16736449301242... | |
to the top of the screen to cover the space left by the status bar (which resulted in my white space). So one more correction to this line of code:
```
[[self.navigationController view] setFrame: [[UIScreen mainScreen] bounds]];
```
Lastly, after all of this, I can push my modal view with confidence. | [
0.04430810734629631,
0.01599486917257309,
0.5942808985710144,
-0.18147768080234528,
-0.1151047870516777,
-0.1174800917506218,
0.4424791932106018,
-0.06975007802248001,
0.05117930471897125,
-0.7683366537094116,
0.09053073078393936,
0.7082938551902771,
0.11550961434841156,
-0.054491426795721... | |
in .NET MVC my action looks like:
```
public ActionResult TestAjax(string testID)
{
return Content(@"{first: ""1"", second : ""2""}");
}
```
In my JavaScript I am doing:
```
function(data)
{
alert(data.first);
}
```
I am getting `[object Object]` as the output, why is that?
Is my JSON string wrong?
Ho... | [
0.209747776389122,
-0.27972903847694397,
0.4115302264690399,
-0.4788764417171478,
-0.28306666016578674,
-0.2177792191505432,
0.5245898365974426,
-0.34746241569519043,
-0.08514013886451721,
-0.5002632737159729,
-0.38112300634384155,
0.6407539248466492,
-0.5817385911941528,
-0.23655930161476... | |
I know this might off subject but what's a good program let's me view what a website might look like on a iPhone or other mobile device which connects to the Internet. Dreamweaver cs3 might have this but I can't find it anyone know?
First: how big are the xml files? `XmlDocument` doesn't scale to "huge"... but can hand... | [
0.10488855838775635,
0.02174045890569687,
0.20334535837173462,
0.29260706901550293,
-0.21325209736824036,
-0.4648931920528412,
-0.08632318675518036,
0.06508327275514603,
-0.4434814751148224,
-0.5947398543357849,
-0.05459252744913101,
0.36610788106918335,
-0.14110243320465088,
0.22997660934... | |
supports the `xml` data-type, which *shreds* data - this allows you to index and query xml data in the database without having the entire DOM in memory (it translates xpath into relational queries). | [
-0.30192387104034424,
-0.08010084927082062,
0.34465956687927246,
0.1074746623635292,
0.03606441617012024,
-0.22366684675216675,
0.10249251127243042,
-0.01707415096461773,
-0.20143847167491913,
-0.2781316936016083,
-0.27818095684051514,
0.7152426242828369,
-0.08253313601016998,
0.1744971126... | |
In the Windows world, what is the correct name for a good. old-fashioned C++ DLL with exported functions? Not a COM DLL, not a .NET DLL. The kind of DLL that we used to invoke by calling LoadLibrary() and GetProcAddress()?
I've always called them "flat DLLs" because the caller cannot instantiate objects from the DLL,... | [
0.2003655731678009,
-0.12742844223976135,
0.17791204154491425,
-0.0683002918958664,
-0.24924172461032867,
-0.2350102812051773,
0.08901558816432953,
0.507523775100708,
-0.3020811080932617,
-0.743910551071167,
-0.2953457236289978,
0.6744965314865112,
-0.27935507893562317,
0.26106807589530945... | |
common term, though "windows" or "console" are more technically correct, since these are the subsystems likely to be used (the "native" subsystem is something different). I have also heard "C DLL" used, implying the same as your use of "flat DLL".
A dynamic link library is a generic concept - a "Windows dynamic link l... | [
0.4320938289165497,
-0.26996174454689026,
0.21020829677581787,
0.35341864824295044,
-0.08650723099708557,
-0.2865831255912781,
-0.29421287775039673,
0.3551880419254303,
-0.3746858537197113,
-0.6402269601821899,
-0.521868109703064,
0.21445555984973907,
-0.29889219999313354,
0.48626032471656... | |
I have a webpage that has a comment box that can be toggled by clicking a link (the opening and closing of the box is controlled using JavaScript, specifically JQuery). This box is hidden by default, so naturally, it's impossible to display without the use of JavaScript. I'm not concerned by this fact: the comment box ... | [
0.6376911997795105,
0.2431761920452118,
0.17849665880203247,
-0.0301858801394701,
-0.006587005686014891,
-0.44821447134017944,
0.3539476692676544,
0.3061090111732483,
-0.24855034053325653,
-0.4883066713809967,
-0.05527280643582344,
0.5092775225639343,
-0.2444840520620346,
0.197684466838836... | |
the idea of doing this by presenting a small message (with the use of a simple HTML `<p>` tag) near the link that toggles the comment box, using the following bit of code:
```
<p class="alert" id="nojs-warning">You must have JavaScript enabled to leave a comment.</p>
```
Of course, I don't want to display this if Ja... | [
0.2561374008655548,
-0.008846134878695011,
0.1589246541261673,
-0.3045312762260437,
-0.1694028228521347,
-0.20939244329929352,
0.4307984411716461,
-0.3657189607620239,
-0.07315057516098022,
-0.44842371344566345,
-0.2180892378091812,
0.4670012295246124,
-0.5330559611320496,
-0.1363407373428... | |
enabled, the event *won't* fire, and thus the warning will still be displayed.
For such a small, personal site, this seems like an elegant solution. Are there any pitfalls to this approach?
Why not use the [`<noscript>`](http://www.w3schools.com/TAGS/tag_noscript.asp) tag? That's what it's intended for. | [
0.4078134000301361,
-0.1834622174501419,
0.31160929799079895,
0.05295316502451897,
0.13012069463729858,
-0.49482953548431396,
0.46588191390037537,
-0.11272072046995163,
-0.19105865061283112,
-0.6141000986099243,
-0.3379647731781006,
0.49506643414497375,
-0.188615083694458,
-0.1699703037738... | |
I've googled around a bit, and I haven't been able to find a good listing of what classes from the .net CLR are not included in the 'CoreCLR' aka Silverlight.
**What is Silverlight missing from the Windows .net Framework?**
Also, is there anything that the Silverlight runtime has that the .net Framework doesn't?
Silv... | [
0.15990932285785675,
0.1536116600036621,
0.11381193995475769,
0.1082758754491806,
-0.1846320629119873,
-0.34372133016586304,
0.050856515765190125,
0.05661008507013321,
-0.18283799290657043,
-0.3251836597919464,
-0.00401644129306078,
0.46793538331985474,
-0.5188502073287964,
0.2869288921356... | |
controls, networking, base class
> libraries, garbage collection, and the
> common language runtime (CLR).
>
>
> Some parts of the .NET Framework for
> Silverlight are deployed with your
> application. These "Silverlight
> Libraries" are assemblies not included
> in the Silverlight runtime and are
> instead sh... | [
0.1364106982946396,
0.03287653997540474,
0.521713376045227,
0.4189457595348358,
-0.031950030475854874,
-0.24637921154499054,
-0.13278605043888092,
-0.4014133810997009,
-0.1341632455587387,
-0.7963786721229553,
-0.4371672570705414,
0.3087448477745056,
-0.5012902617454529,
0.0115297315642237... | |
about a detailed comparison, see this link <http://codebetter.com/blogs/patricksmacchia/archive/2008/10/01/comparing-silverlight-and-the-net-framework.aspx> | [
0.18064479529857635,
0.015065638348460197,
-0.0397338792681694,
0.14285311102867126,
-0.23187075555324554,
-0.07974459230899811,
0.4503246247768402,
-0.21826453506946564,
-0.13129685819149017,
-0.38534486293792725,
0.10918555408716202,
0.261416494846344,
-0.15547838807106018,
-0.1494094133... | |
I extended from org.eclipse.ui.editors and defined the editor-id in plugin.xml as "MyEditorId". I wrote corresponding editor class. Then I tried to open the editor from a view with this code.
page.openEditor(input, "MyEditorId");
But I am getting "PartInitException". i.e apllication is not recognising the editor by ... | [
-0.24015328288078308,
-0.11419299244880676,
0.47307756543159485,
-0.05929394066333771,
-0.4652710556983948,
0.05714556947350502,
0.024314267560839653,
-0.1775200217962265,
-0.006614197511225939,
-0.7376897931098938,
-0.0053612245246768,
0.29439282417297363,
-0.3815942108631134,
-0.03827509... | |
elements.
The idea is to treat the array (call it A) as a complete binary tree of depth n:
* ignore A[0]; treat A[1] as the root node
* for each node A[k], the children are A[2\*k] and A[2\*k+1]
* nodes A[N/2..N-1] are the leaves
To maintain the tree as a "heap", you need to ensure that each node is smaller than (or... | [
-0.4654381573200226,
-0.0012950233649462461,
-0.046085622161626816,
-0.05992123484611511,
-0.10272970795631409,
0.29041799902915955,
0.30238690972328186,
-0.31550848484039307,
-0.37313926219940186,
-0.44329795241355896,
-0.11736506223678589,
-0.14680752158164978,
-0.39486080408096313,
0.14... | |
to the root: if it is smaller (x<A[1]), reject it.
* otherwise, insert the new element into the heap, as follows:
+ remove the root (A[1], the smallest element) from the heap, and reject it
+ replace it with the new element (A[1]:= x)
+ now, restore the heap condition:
- if x is less than or equal to both of its c... | [
-0.30516886711120605,
-0.04597502946853638,
-0.0890345349907875,
-0.1798238754272461,
0.1766141802072525,
0.2020431011915207,
0.38492998480796814,
-0.30139344930648804,
-0.003128316020593047,
-0.5067646503448486,
-0.2795543372631073,
0.163076251745224,
-0.25271081924438477,
0.1557943969964... | |
at most n=log2(N) steps, which is as good as you can get. Also, the implicit form of the tree allows a very fast implementation; existing bounded-priority-queue libraries will most likely use an implicit heap. | [
-0.2400609701871872,
-0.33710581064224243,
-0.009717215783894062,
-0.022948283702135086,
-0.04614652693271637,
0.14103148877620697,
0.20494453608989716,
-0.25229886174201965,
-0.31645119190216064,
-0.6359970569610596,
0.036027900874614716,
0.27227339148521423,
-0.33873221278190613,
-0.1364... | |
Reset checkboxes in datalist on click of button that is outside of datalist using c#
If you've loaded the module, just look in %INC but you have to do it by filename.
```
say $INC{"Foo/Bar/Baz.pm"};
```
If you haven't, you can use Module::Util or the module\_info program which comes with Module::Info.
```
$ module_... | [
0.12200301140546799,
0.17353147268295288,
0.7355687618255615,
-0.4152056872844696,
0.23175641894340515,
0.16412068903446198,
0.22825515270233154,
-0.35053926706314087,
-0.3135339021682739,
-0.5413331389427185,
-0.2049722671508789,
0.8372995853424072,
-0.4477861225605011,
-0.031489163637161... | |
(@INC) {
$path = "$dir/$file";
last if -r $path;
$path = undef;
}
say defined $path ? "$module is found at $path" : "$module not found";
```
(A fully cross platform solution would use File::Spec instead of joining with slashes.)
If you just need to find a module quick, `perldoc -l` works well as Fayland... | [
0.1182495579123497,
-0.35569190979003906,
0.43232765793800354,
0.03810125216841698,
0.16171613335609436,
-0.24376556277275085,
0.25392434000968933,
-0.09210915863513947,
-0.17860373854637146,
-0.6721658706665039,
-0.10783761739730835,
0.5026378631591797,
-0.44412726163864136,
0.25378319621... | |
I can create an Access mdb and add a linked table to an Sql Server database via ODBC. If I change the Sql Server that the ODBC is connecting to with the ODBC control panel applet the mdb still connects to the original Sql Server until Access is restarted.
Is there a way to relink these linked server tables without res... | [
0.5410122871398926,
0.07837769389152527,
0.3951689302921295,
0.1923929750919342,
-0.01319093443453312,
-0.41652897000312805,
0.09786631166934967,
0.012101633474230766,
-0.33600592613220215,
-0.7165085077285767,
0.13440413773059845,
0.48032549023628235,
-0.4383220374584198,
0.46387004852294... | |
and, where you want to refresh the links, call it with the proper DSN for the new ODBC connection:
```
RefreshODBCLinks "ODBC;DRIVER=SQL Server Native Client 10.0;" & _"
"SERVER=SQLSERVER;UID=Administrator;" & _
"Trusted_Connection=Yes;" & _
"APP=2007 Microsoft Office... | [
-0.2857694625854492,
0.20267708599567413,
0.8676816821098328,
-0.08769483119249344,
-0.0204289723187685,
-0.33027225732803345,
0.16896015405654907,
-0.027027856558561325,
-0.3417431116104126,
-0.770877480506897,
-0.2884022891521454,
0.7529253959655762,
-0.24109503626823425,
0.3480475842952... | |
but Access may keep connection information in memory if the tables have been used before `RefreshODBCLinks` is called.
```
Public Sub RefreshODBCLinks(newConnectionString As String)
Dim db As DAO.Database
Dim tb As DAO.TableDef
Set db = CurrentDb
For Each tb In db.TableDefs
If Left(tb.Connect, ... | [
-0.16744932532310486,
0.2245289385318756,
0.5650994777679443,
-0.04209071025252342,
0.13746735453605652,
0.029779961332678795,
0.2043907642364502,
-0.28205379843711853,
-0.23343245685100555,
-0.6482787132263184,
-0.14125214517116547,
0.30224451422691345,
-0.33113929629325867,
0.63450980186... | |
Debug.Print "Refreshed ODBC table " & tb.Name
End If
Next tb
Set db = Nothing
End Sub
```
**Code version 2**
This will completely re-create the ODBC linked tables: the old ones will be renamed, then new tables using the given DSN will be created before deleting the old linked version.
Please make ... | [
0.1269245743751526,
0.08727172762155533,
0.15220491588115692,
0.010329078882932663,
-0.08605567365884781,
-0.3986659348011017,
0.6796810030937195,
-0.1566762924194336,
-0.0958215743303299,
-0.8801333904266357,
-0.21289975941181183,
0.5713260173797607,
-0.467976450920105,
0.5498238205909729... | |
Just remove it if that's not what you need.
```
Public Sub RefreshODBCLinks(newConnectionString As String)
Dim db As DAO.Database
Dim tb As DAO.TableDef
Dim originalname As String
Dim tempname As String
Dim sourcename As String
Dim i As Integer
Set db = CurrentDb
' Get a list of all OD... | [
0.16974656283855438,
-0.05659819394350052,
0.6167879104614258,
-0.1760524958372116,
0.001425594207830727,
-0.1252613514661789,
0.20872211456298828,
-0.27929121255874634,
-0.24947625398635864,
-0.47968411445617676,
-0.22694416344165802,
0.4262716472148895,
-0.5546864867210388,
0.63392829895... | |
= "ODBC") Then
tables.Add Item:=tb.Name, key:=tb.Name
End If
Next tb
' Create new tables using the given DSN after moving the old ones '
For i = tables.count To 1 Step -1
originalname = tables(i)
tempname = "~" & originalname & "~" | [
-0.047175612300634384,
-0.08438317477703094,
0.678905189037323,
-0.012725001201033592,
0.28302791714668274,
0.1029084250330925,
0.24587254226207733,
-0.6243076324462891,
-0.23966781795024872,
-0.6397031545639038,
-0.17320692539215088,
0.15513478219509125,
-0.4109143018722534,
0.58736526966... | |
sourcename = db.TableDefs(originalname).SourceTableName
' Create the replacement table '
db.TableDefs(originalname).Name = tempname
Set tb = db.CreateTableDef(originalname, dbAttachSavePWD, _
sourcename, newConnectionString) | [
0.011982141993939877,
0.1074160486459732,
0.1934274435043335,
0.004277318716049194,
-0.19728291034698486,
0.08873210847377777,
0.22492597997188568,
-0.4642551839351654,
0.15660081803798676,
-0.8222288489341736,
-0.22540467977523804,
0.3115023076534271,
-0.50147545337677,
0.3573895990848541... | |
db.TableDefs.Append tb
db.TableDefs.Refresh
' delete the old table '
DoCmd.DeleteObject acTable, tempname
db.TableDefs.Refresh
tables.Remove originalname
Debug.Print "Refreshed ODBC table " & originalname
Next i | [
-0.018520275130867958,
0.10400786995887756,
0.40400582551956177,
-0.07467070966959,
-0.2564004957675934,
0.012630480341613293,
0.483142226934433,
-0.5125525593757629,
-0.028613848611712456,
-0.9050248861312866,
-0.36551862955093384,
0.42404988408088684,
-0.6690391898155212,
0.5252236127853... | |
Set db = Nothing
End Sub
```
One last thing: if you're still getting issues that require that you restart Access for the changes to be visible, then have a look at my code in [*Restarting and compacting the database programmatically*](http://blog.nkadesign.com/2008/ms-access-restarting-the-database-programmatically/)... | [
0.04765063151717186,
-0.09154742956161499,
0.27107182145118713,
0.01639234647154808,
-0.22468699514865875,
-0.37727484107017517,
0.39998307824134827,
-0.3492046296596527,
-0.16824772953987122,
-0.620240330696106,
-0.05866919457912445,
0.39961373805999756,
-0.3999374806880951,
0.02476788498... | |
I have a working login form in an asp.net application. Standard stuff with a username and password text box and a button to process the login. Works fine.
I have a new requirement to allow the user to input the username and password from a separate plain html page that is not a part of my asp.net application. I plan o... | [
0.5749795436859131,
0.2372082620859146,
0.5239274501800537,
-0.06400664150714874,
0.03096337430179119,
-0.19350995123386383,
0.36302450299263,
0.03482741862535477,
-0.05076621100306511,
-0.7819843888282776,
-0.10002528131008148,
0.3511793613433838,
-0.024827582761645317,
0.0202052276581525... | |
of the asp.net login form, presumably in the Page\_Load event, is to check if the request for the page contains a username and password value being passed in. If it does then I need to read those values and process the login as if someone had clicked the login button on the asp.net page. If not then I will display the ... | [
-0.04071065038442612,
-0.09960299730300903,
0.7944967746734619,
-0.05879824236035347,
0.05142148584127426,
-0.15581992268562317,
0.3111235797405243,
-0.36215224862098694,
-0.19548951089382172,
-0.6534725427627563,
-0.3125970661640167,
0.5436623096466064,
-0.2142476886510849,
0.071527123451... | |
userName = nvc["txtUserName"];
}
if (!string.IsNullOrEmpty(nvc["txtPassword"]))
{
password = nvc["txtPassword"];
}
//Process login
CheckLogin(userName, password);
```
... where "txtUserName" and "txtPassword" are the **Names** of the controls on the posting page. | [
-0.4654141664505005,
-0.18213725090026855,
0.5717155337333679,
-0.22881361842155457,
0.31292349100112915,
-0.09161801636219025,
0.2462620735168457,
-0.03031283989548683,
-0.17144988477230072,
-0.7735781669616699,
-0.4847896099090576,
0.7435502409934998,
-0.4523106515407562,
0.3201017081737... | |
I have a web app where I register users based on their email id.
From a design/ease of use/flexibility point of view, should I assign a unique number to each user or identify user based on emailid?
Advantage of assigning unique number:
1. I can change the login itself at a later point without losing the data of the ... | [
0.38257214426994324,
0.23079121112823486,
0.30652040243148804,
0.07449940592050552,
0.01776241324841976,
-0.03088357485830784,
0.1273534744977951,
-0.17961432039737701,
-0.25709646940231323,
-0.6741918325424194,
0.2066827267408371,
0.3467082679271698,
-0.18207556009292603,
0.00198680488392... | |
identity is not a good idea for several reasons:
* The email is one facet of the user's identity that can change at any point in time.
* You might decide to allow more than one emails.
* You might decide to add other facets, like OpenID or Live ID, or even just old plain username.
* There's nothing wrong with allowing... | [
0.27112704515457153,
-0.048741549253463745,
0.2413220852613449,
0.15974800288677216,
0.14657412469387054,
-0.164037823677063,
0.3848321735858917,
0.03227477893233299,
-0.3708294928073883,
-0.8156699538230896,
-0.021943699568510056,
0.3198637366294861,
-0.13536055386066437,
-0.1057553887367... | |
. or + inside emails? How do you compare non-english emails?)
Btw, using the email as a public representation of the user identity can be a security and privacy problem. Especially if some of your users are under 13 years. You will need a different public facet for the user identity. | [
0.4149235188961029,
0.06965836137533188,
0.5010274648666382,
-0.07081446051597595,
0.09695243090391159,
-0.08272697776556015,
0.3675708472728729,
-0.021137500181794167,
-0.26882264018058777,
-0.17139533162117004,
-0.2305528074502945,
-0.08269201964139938,
0.21346968412399292,
0.04846127703... | |
**Question** How can I make sure my application is thread-safe? Are their any common practices, testing methods, things to avoid, things to look for?
**Background** I'm currently developing a server application that performs a number of background tasks in different threads and communicates with clients using Indy (us... | [
0.42832207679748535,
0.3776218891143799,
0.18253213167190552,
0.29424118995666504,
0.020494338124990463,
-0.0693238228559494,
0.18669268488883972,
0.20814265310764313,
-0.5196117758750916,
-0.6327784061431885,
0.11476688086986542,
0.5629507899284363,
0.06972237676382065,
-0.166814446449279... | |
never occured before and in most cases I realize that it is some kind of synchronization bug, where I forgot to synchronize my objects properly. Hence my question concerning best practices, testing of thread-safety and things like that.
mghie: Thanks for the answer! I should perhaps be a little bit more precise. Just ... | [
0.3044896721839905,
0.2667963206768036,
0.4247229993343353,
0.21996398270130157,
0.060181476175785065,
0.0482197180390358,
0.5354054570198059,
0.18800394237041473,
-0.6403354406356812,
-0.28012990951538086,
0.0832851305603981,
0.41942206025123596,
-0.20029222965240479,
0.34292981028556824,... | |
used the RTL sort function in my code. Looked something like
```
FKeyList.Sort (CompareKeysFunc);
```
Turns out, that I had to synchronize FKeyList while sorting. It just don't came to my mind when initially writing that simple line of code. It's these thins I wanna talk about. What are the places where one easily f... | [
0.16562214493751526,
0.13368374109268188,
0.4649490416049957,
-0.2062307894229889,
-0.0627511665225029,
-0.007195975165814161,
0.2892514765262604,
-0.03804761543869972,
-0.2540830969810486,
-0.6449227333068848,
0.2945460081100464,
0.4211549460887909,
-0.5166184306144714,
0.0890915468335151... | |
your program to fix that particular bug. It's the bugs you don't know that are the problem, and how would you write tests for those? Apart from that threading problems are much harder to find than other problems, as the act of debugging can already alter the behaviour of the program. Things will differ from one program... | [
0.5382709503173828,
0.18797516822814941,
-0.024006212130188942,
0.5969911217689514,
0.07511968165636063,
0.14430494606494904,
0.30283212661743164,
0.17884449660778046,
-0.3653085231781006,
-0.48012518882751465,
-0.06402930617332458,
0.439535528421402,
-0.3914569020271301,
0.125051856040954... | |
influence on the program behaviour. [I actually wanted to add the phase of the moon and stuff like that to this list, but you get my meaning.]
My advice is to stop seeing this as an implementation problem, and start to look at this as a program design problem. You need to learn and read all that you can find about mul... | [
0.33206215500831604,
-0.08765748888254166,
0.06991637498140335,
-0.05337035655975342,
-0.03396563604474068,
0.0612451508641243,
-0.015054238960146904,
0.027328796684741974,
-0.2603453993797302,
-0.5509750843048096,
0.07828358560800552,
0.4061429500579834,
-0.3666025400161743,
-0.1267175227... | |
most languages only wrap them in their libraries (this ignores things like green threads as provided by for example Erlang, but it's a good point of view to start out from).
I'd say start with the [Wikipedia article on threads](http://en.wikipedia.org/wiki/Thread_(computer_science)) and work your way through the linke... | [
0.3408110439777374,
0.3881327509880066,
-0.3451091945171356,
0.02277321368455887,
-0.008292188867926598,
-0.14049340784549713,
0.3477535843849182,
0.18282294273376465,
-0.21180720627307892,
-0.5056819319725037,
-0.14552590250968933,
0.3549458980560303,
-0.5380780696868896,
-0.1120398044586... | |
and sorting a list is not a read-only operation. So obviously one would need to add synchronization around all accesses to the list.
But with more and more cores in a system constant locking will limit the amount of work that can be done, so it is a good idea to look for a different way to design your program. One ide... | [
0.0476975254714489,
0.05095885321497917,
0.10167481005191803,
0.39395755529403687,
0.003523911815136671,
0.036981020122766495,
-0.19267810881137848,
-0.19829414784908295,
-0.6659680008888245,
-0.6972498893737793,
0.12376240640878677,
0.21009919047355652,
-0.48260927200317383,
0.12874656915... | |
implemented to have only methods for read-only access to the internal data, and if you stick to them you can be quite sure that a lot of the potential programming errors do not occur. You can freely share them between threads, and the thread-safe reference counting will make sure that the implementing objects are prope... | [
0.46138057112693787,
-0.08781231194734573,
0.048471834510564804,
0.09816023707389832,
0.02012420818209648,
-0.13450239598751068,
0.3010391294956207,
-0.0001746717025525868,
-0.40273401141166687,
-0.6275796890258789,
0.015029696747660637,
0.5354864001274109,
-0.4007534086704254,
0.051469318... | |
can also provide public methods that mutate the object state. When you create the object you keep both a variable of the object type and a interface pointer variable. That way lifetime management is easy, because the object will be deleted automatically when an exception occurs. You use the variable pointing to the obj... | [
0.0733116865158081,
-0.15714728832244873,
0.2763376533985138,
0.2986643314361572,
0.13820794224739075,
-0.1954510360956192,
0.4363838732242584,
0.04942532256245613,
-0.32812830805778503,
-0.6130126714706421,
-0.21347786486148834,
0.7461599111557007,
-0.3343751132488251,
0.6610147953033447,... | |
code, and since there is no way to access the object afterwards except by going through the interface pointer you can be sure that only read-only access can be performed. By using this technique you can completely remove the locking inside of the object.
What if you need to change the state of the object? You don't, y... | [
0.2661583423614502,
-0.012845912016928196,
0.19231267273426056,
0.45502036809921265,
0.15059196949005127,
-0.17127130925655365,
0.5570088028907776,
-0.333213210105896,
-0.2297784686088562,
-0.6680819392204285,
-0.1371457576751709,
0.6931701898574829,
-0.38504981994628906,
0.366436570882797... | |
such interfaces. It can even be done without locking, by using the atomic interchange functions. See [this blog post](http://17slon.com/blogs/gabr/2009/02/hassle-free-critical-section.html) by Primoz Gabrijelcic for a similar use case where an interface pointer is set. | [
0.03521664813160896,
0.2808736562728882,
-0.21061408519744873,
0.2578025758266449,
0.0683639645576477,
0.012487118132412434,
0.35786858201026917,
-0.5206189751625061,
-0.18337546288967133,
-0.34677666425704956,
-0.04370531439781189,
0.3456592857837677,
-0.7161666750907898,
-0.1354506313800... | |
I'm kinda waiting for a 'no' answer on this question.
I was interested if you can save a variable at the same time when you checking it in an if-clause.
Let's say I have this code.
```
if(foo!=null){
if(foo.getBar()!=null){
Bar bar = foo.getBar();
System.out.println("Success: " + bar);
} else {
Syst... | [
0.19448837637901306,
0.03331725671887398,
0.30496594309806824,
-0.10433439165353775,
0.11165565252304077,
0.0785873681306839,
0.41909971833229065,
-0.17063111066818237,
-0.16020172834396362,
-0.3422582149505615,
-0.13067463040351868,
0.4271954596042633,
-0.23270246386528015,
0.221426263451... | |
System.out.println("Failure.");
}
```
Much neater code already. if foo is null it will stop there and won't try foo.getBar (in the if) so I won't get a NPE. The last thing i would like to enhance, and the main question: Do I really gave to call on foo.getBar() twice? It would be nice to get away from the second iden... | [
-0.02027609944343567,
0.10087879747152328,
0.3922685980796814,
-0.3898399770259857,
-0.06219624727964401,
-0.004024032037705183,
0.5135580897331238,
-0.2504737675189972,
-0.3992820978164673,
-0.5124567151069641,
-0.1825977861881256,
0.6741902828216553,
-0.44682803750038147,
0.3027467429637... | |
System.out.println("Failure.");
}
```
I would have to break it up to two different if's again if I would like to do
```
Bar bar = foo.getBar();
if (bar!=null) ...
```
This is the closest you can get:
```
Bar bar;
if(foo!=null && (bar = foo.getBar())!=null){
System.out.println("Success: " + bar);
} else {
Syst... | [
-0.2472158968448639,
0.11236206442117691,
0.42410925030708313,
-0.4138311445713043,
0.40797922015190125,
0.23865102231502533,
0.5985335111618042,
-0.39716875553131104,
-0.21221503615379333,
-0.5246780514717102,
-0.3405721187591553,
0.706814706325531,
-0.3836606740951538,
0.2457368671894073... | |
I'm getting this awkward error any time I try and create a dialog from
Greasemonkey... I believe it has to do with the limitations of
XPCNativeWrapper <https://developer.mozilla.org/en/XPCNativeWrapper#Limitations_of_XPCNativeWrapper>
, though I am not 100% sure.
None of the core jQuery methods that I've used have cau... | [
0.4375181794166565,
0.6151245832443237,
0.38591423630714417,
-0.3100520074367523,
-0.05017662048339844,
-0.08189484477043152,
0.2912186086177826,
0.09787211567163467,
-0.007873039692640305,
-0.7575387954711914,
0.3003574311733246,
0.8366191983222961,
-0.2973421514034271,
-0.111667029559612... | |
http://strd6.com
// @description jquery-ui-1.6rc6 Dialog Test
// @include *
//
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js
// @require http://strd6.com/stuff/jqui/jquery-ui-personalized-1.6rc6.min.js
// ==/UserScript==
$(document).ready(function() {
$('<div tit... | [
0.3793819844722748,
-0.02409951761364937,
0.46993938088417053,
0.10941004753112793,
-0.12606793642044067,
-0.21721726655960083,
0.25186392664909363,
-0.2848108112812042,
-0.18585287034511566,
-0.5723150372505188,
-0.3902062773704529,
0.6608957648277283,
-0.30545398592948914,
-0.25515669584... | |
thread is pretty old but the way to use Greasemonkey with Jquery to focus() is to add a [0] to the jquery object to turn it back to a DOM element.
```
//Example:
$('#obj').focus(); //Does not work
document.getElementById('obj').focus(); //Works
//Hybrid:
$... | [
0.39585065841674805,
0.012964502908289433,
0.6198143362998962,
-0.3403012156486511,
0.2258947789669037,
-0.11069357395172119,
0.06919600814580917,
0.10658133029937744,
-0.16930685937404633,
-0.4972199499607086,
0.2261984646320343,
0.42973098158836365,
-0.4398055672645569,
0.375903725624084... | |
//Work around
``` | [
0.8623589873313904,
0.7382228374481201,
0.008893096819519997,
-0.1089971512556076,
0.10159618407487869,
0.01912696845829487,
0.2177213430404663,
0.5397915244102478,
-0.29419827461242676,
-0.49393394589424133,
-0.21315068006515503,
0.3989386558532715,
0.25049957633018494,
-0.090029276907444... | |
A while back I worked with a software company that sold a specialized software product. Ever so often they would release a patch for free and a new version that would require an upgrade fee. This is typically how the software industry works.
After some time the company decided on a new strategy, Subscription based sof... | [
0.7919787764549255,
0.22454673051834106,
0.31369829177856445,
0.17055706679821014,
0.12136387079954147,
0.27966219186782837,
-0.23164495825767517,
-0.01794048584997654,
-0.3441954553127289,
-0.3186475932598114,
0.35439854860305786,
0.6405332088470459,
0.17195837199687958,
0.121951237320899... | |
in the number of transactions every so often in order to collect their fees.
To me this seems like a better way to develop and sell software. The software company gets continual income stream, the customer doesn't have to worry about upgrade costs and such, and if the customer gets really big then your income stream g... | [
0.7245893478393555,
0.20912553369998932,
0.15709425508975983,
0.30107131600379944,
0.12874522805213928,
0.01649414747953415,
0.07109002768993378,
0.30494144558906555,
-0.671375572681427,
-0.4453386962413788,
0.1741165965795517,
0.6782131791114807,
0.02722511813044548,
0.5049464106559753,
... | |
of this model?
**[EDIT]** I am interested in the developers opinion on whether writing Subscription based software is a good way to develop software.
So this question is directed towards the professional developers who have worked on commercial applications: **Can anyone speak with experience on this model and why ... | [
0.7337698936462402,
0.15949371457099915,
-0.010503125376999378,
0.07975724339485168,
-0.13653646409511566,
-0.16048993170261383,
0.05200453847646713,
0.18741515278816223,
-0.19365684688091278,
-0.31494757533073425,
-0.07950697094202042,
0.963736355304718,
-0.012844130396842957,
-0.18945258... | |
I am quite new to ICEfaces but already have experience with JSF/Facelets and the Java EE in general.
Currently, I am not using to much of ICEfaces except some utility tags like outputStyle and outputDeclaration, but even this is really nice to have.
Even though I plan on using some AJAX functionality later, I have so... | [
0.29040682315826416,
0.227758526802063,
0.36336758732795715,
-0.05096808075904846,
-0.5833475589752197,
-0.3425929844379425,
0.43154796957969666,
0.18993090093135834,
-0.06449547410011292,
-0.9374817609786987,
0.007387535180896521,
0.1410454958677292,
-0.24806199967861176,
-0.1928842663764... | |
to do this?
**Edit:** To clarify what I want to do:
The web site we are developing consists of publicly available pages and some which only registered members can access. The standard FORM-based security mechanism as defined in the servlet standard is pretty inflexible, as it only allows to define a single login page... | [
0.6638289093971252,
-0.0896296352148056,
0.11975216865539551,
0.15795636177062988,
0.12160634249448776,
-0.5603237152099609,
0.16185912489891052,
-0.24201801419258118,
-0.212920680642128,
-0.46697285771369934,
0.12432271242141724,
0.23169104754924774,
-0.4091189205646515,
0.003037688089534... | |
redirects to a custom login page if the user is not authenticated/authorized, but also allows to authenticate a user from a backing-bean. To make it work almost transparently it wraps the HttpServletRequest to supply the Principal and the user roles.
When the filter redirects to the custom login page it saves the curr... | [
0.21203739941120148,
-0.5090405941009521,
0.6087824702262878,
0.035868577659130096,
-0.13003218173980713,
-0.1402309238910675,
0.4013800323009491,
-0.09690167754888535,
-0.2879425287246704,
-0.42740389704704285,
-0.224934920668602,
0.40877318382263184,
-0.33217424154281616,
0.1222834661602... | |
this doesn't work anymore.
Of course I could exclude the login page from being handled by ICEfaces, but this would mean I couldn't use any ICEfaces/AJAX on the login page.
Unfortunately, there's nothing in the Java platform that does this. Btw, you also need to explicitly handle `null` elements in the `Integer[]` arra... | [
0.10208193957805634,
0.2610405385494232,
0.07709841430187225,
-0.05891573801636696,
-0.03055921010673046,
-0.24212957918643951,
0.6216663122177124,
0.1686418652534485,
-0.29974740743637085,
-0.5775449275970459,
0.1434129923582077,
0.31635454297065735,
-0.28538936376571655,
0.20856758952140... | |
We're currently using tortoisecvs (1.8.31) to commit/access our cvs repositories.
We've recently wanted to support Japanese text in comments, so that viewvc can be used for browsing. However, it doesn't appear that you can set the encoding of comments being sent by Tortoisecvs are properly converted/sent as UTF8.
Exa... | [
-0.056806206703186035,
0.01814871095120907,
0.39390572905540466,
-0.12592372298240662,
-0.2935101389884949,
0.05988575145602226,
0.4117218852043152,
-0.041365593671798706,
-0.3354962170124054,
-0.4049975275993347,
-0.33767735958099365,
0.8835673332214355,
0.06494175642728806,
-0.0489410758... | |
being sent to the repository. But, most of our development isn't done in eclipse.
Is there a way to get tortoisecvs to assign the proper encoding to comments?
Or, if it's commandline related issue, is there a way to change windows to default to utf-8? (Would that fix it?)
(Tortoisecvs seems like it's just calling a co... | [
0.14324979484081268,
-0.03240831941366196,
0.529137134552002,
0.08045769482851028,
-0.22250689566135406,
-0.1037682518362999,
0.3695954382419586,
-0.11015739291906357,
-0.2193440943956375,
-0.5439885854721069,
-0.27049821615219116,
0.7419655323028564,
-0.22412188351154327,
0.00355915236286... | |
this request in the tortosiecvs project on sourceforge:
<https://sourceforge.net/tracker/index.php?func=detail&aid=1592167&group_id=48103&atid=451975>
It's been open since 2006. I guess it's not a big issue for a lot of people.
This looks like a bug in UITableView's rendering, and you should file a Radar bug report o... | [
-0.05637194216251373,
-0.19114938378334045,
0.7726743817329407,
-0.20788156986236572,
-0.010592562146484852,
-0.2600710690021515,
0.4433528184890747,
-0.16159479320049286,
-0.3985736072063446,
-0.6753891706466675,
-0.2201852798461914,
0.3844817280769348,
-0.21551503241062164,
0.18901732563... | |
== nil) {
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:CellIdentifier] autorelease];
CGRect frame = cell.contentView.bounds;
frame.origin.x = frame.origin.x + 10.0f;
UILabel *textLabel = [[UILabel alloc] initWithFrame:frame];
[textLabel setAutoresiz... | [
-0.28490355610847473,
-0.33555880188941956,
0.6931785941123962,
-0.12843838334083557,
0.059725675731897354,
0.053591903299093246,
0.417745441198349,
-0.528471052646637,
0.01576380617916584,
-0.6323232650756836,
-0.64912348985672,
0.3664809465408325,
-0.395426869392395,
0.19884663820266724,... | |
textLabel.textColor = [UIColor blackColor];
textLabel.font = [UIFont boldSystemFontOfSize:20.0];
textLabel.numberOfLines = 1;
textLabel.highlightedTextColor = [UIColor whiteColor];
[cell.contentView addSubview:textLabel];
[textLabel release];
}
UILabel *textLabel = (UIL... | [
-0.05815145745873451,
-0.12623748183250427,
0.574009895324707,
-0.1494244933128357,
-0.20505522191524506,
-0.0016119139036163688,
0.40161585807800293,
-0.4212570786476135,
0.08783721923828125,
-0.727019727230072,
-0.19799679517745972,
0.3088488280773163,
-0.5578387975692749,
0.092384591698... | |
non-opaque view to the table cell might not be the best for overall rendering performance.
I don't know how major of a glitch this is, because Apple doesn't want you to persist a selection highlight on a table row (they've been enforcing this lately during the review process). You're supposed to place a checkmark or m... | [
0.23072382807731628,
-0.018665475770831108,
0.47894349694252014,
0.07823371142148972,
-0.025820914655923843,
-0.11758802831172943,
0.038738906383514404,
0.44513264298439026,
-0.3879829943180084,
-0.5918484926223755,
0.24203069508075714,
0.3599690794944763,
0.01676911860704422,
0.0679479390... | |
For C++, Java, or Python, what are some good game + free game engines that are easy to pick up?
Any type of game engine is okay. I just want to get started somewhere by looking into different game engines and their capabilities.
For my Computer Graphics course in College we used the open source [OGRE 3D](http://www.og... | [
0.5042205452919006,
0.2410009354352951,
0.06154267489910126,
0.23205538094043732,
-0.10679738968610764,
-0.24550610780715942,
-0.20192719995975494,
0.30901437997817993,
-0.23067063093185425,
-0.5709797143936157,
0.12036626785993576,
0.9156763553619385,
-0.11452151089906693,
0.1699298471212... | |
physics programming, AI, the works.
[alt text http://www.mactabilisarts.com/Images/multiplayer%20games.jpg](http://www.mactabilisarts.com/Images/multiplayer%20games.jpg)
*Screenshot of a recent OGRE 3D Game* | [
-0.3290846049785614,
0.14055147767066956,
0.18096435070037842,
0.2569528818130493,
-0.20361356437206268,
0.04520639777183533,
-0.032249197363853455,
0.20726153254508972,
-0.5739017128944397,
-0.4257890284061432,
-0.3793964087963104,
0.4648634195327759,
-0.06593482196331024,
0.1597518473863... | |
How do I get the TextBlock in my status bar below to align to the right?
I've told it to:
* HorizontalAlignment="Right"
* TextAlignment="Right"
but the text is still sitting unobediently on the left. What else do I have to say?
```
<Window x:Class="TestEvents124.Window1"
xmlns="http://schemas.microsoft.com/winf... | [
-0.08942097425460815,
0.1442110538482666,
0.9492266774177551,
-0.1865960657596588,
-0.0034399270080029964,
0.22345250844955444,
0.07315570116043091,
-0.09341110289096832,
-0.15226130187511444,
-0.2819153964519501,
-0.17759405076503754,
0.5792714953422546,
0.15661895275115967,
0.00618344265... | |
Width="Auto"
Height="Auto"
Foreground="#fff"
Text="This is the footer."
HorizontalAlignment="Right" | [
-0.007967657409608364,
-0.02489360049366951,
0.6388760209083557,
0.017999127507209778,
0.035806745290756226,
0.6036393046379089,
-0.12615211308002472,
-0.0759933814406395,
-0.428045392036438,
-0.27899712324142456,
0.08068250119686127,
0.5021592974662781,
0.23982256650924683,
0.093937546014... | |
TextAlignment="Right"
/>
</StatusBar>
<GroupBox DockPanel.Dock="Top" Height="Auto" Header="Main Content">
<WrapPanel Width="Auto" Height="Auto">
<TextBlock Width="Auto" Height="Auto" TextWrapping="Wrap" Padding="10">
This is an example of the ... | [
-0.01864907518029213,
-0.05944739654660225,
0.6076604723930359,
-0.17488601803779602,
0.22063754498958588,
0.23634833097457886,
-0.03464699909090996,
-0.216908797621727,
-0.4911746382713318,
-0.4913628101348877,
-0.2622186839580536,
0.6924720406532288,
-0.07678037881851196,
-0.223144903779... | |
out here.
</TextBlock>
</WrapPanel>
</GroupBox>
</DockPanel>
</Window>
```
I've had a play with your code and managed to make it look "right" (no pun intended) by using a StatusBarItem rather than a TextBlock:
```
<StatusBar Width="Auto" Height="25"
Background="#888" Doc... | [
0.2787916660308838,
-0.21221736073493958,
0.5659825205802917,
-0.11258751899003983,
0.206014946103096,
0.20652875304222107,
-0.04131921008229256,
-0.2840500473976135,
-0.6696038246154785,
-0.7902259826660156,
0.09955945611000061,
0.5408157110214233,
-0.10826168954372406,
-0.200681820511817... | |
with the TextBlock - all my experience says that some combination of HorizontalContentAlignment and HorizontalAlignment (on both the StatusBar and the TextBlock) should achieve what you want. Anyway - hopefully the StatusBarItem will work for you. | [
0.03092700056731701,
0.006429183762520552,
0.4718194305896759,
0.04758354648947716,
-0.08213694393634796,
0.2182569056749344,
0.46649375557899475,
0.3498070538043976,
-0.32190778851509094,
-0.5787349343299866,
-0.17607854306697845,
0.8858458399772644,
0.06944923847913742,
-0.40933057665824... | |
My PHP script have to create a multi-tabs Excel file with a report in each tab, but those reports already exists as HTML pages, so I don't want to duplicate code and work.
I know I can rename a HTML file to .xls, and Excel/OpenOffice Calc will open it as a spreadsheet, but I don't know how to have severals tabs.
I do ... | [
0.4419308304786682,
0.2648999094963074,
-0.03571265935897827,
-0.0593610443174839,
-0.5854138135910034,
0.08763469010591507,
0.4088824987411499,
0.04430948570370674,
-0.2278800904750824,
-0.37178900837898254,
0.3011831045150757,
0.40144550800323486,
-0.16597232222557068,
-0.081862054765224... | |
you are looking for. | [
0.19197605550289154,
0.07481194287538528,
0.02814405784010887,
-0.1425231248140335,
0.5156826376914978,
0.14881694316864014,
0.30680641531944275,
0.1953938752412796,
-0.33703431487083435,
-0.705034613609314,
-0.13800521194934845,
0.32655876874923706,
-0.04313685745000839,
0.138085633516311... | |
I know that screen readers and similar software exists to help the blind and visually impaired to use computers when in Windows or other operating systems.
I am curious as to what support is available in lower-level environments such as OS installers and BIOS setup etc.
In Windows, there's really no way for visually ... | [
0.6408206224441528,
0.2775135636329651,
0.13938091695308685,
0.04039620980620384,
0.23219196498394012,
-0.17050348222255707,
-0.04122493043541908,
0.34572744369506836,
-0.18320220708847046,
-0.7436537742614746,
0.12965740263462067,
0.8804001212120056,
0.07043449580669403,
-0.10893149673938... | |
I got this error when I am trying to run a simple PhP script via php.exe. The name of the script is gulliver ( no extension), and I type this into my command prompt:
```
php %Dir%\gulliver
```
Here's the content in the gulliver file:
```
<?php
//***************** Operating Systems parameters **********************... | [
-0.16487862169742584,
0.3071986138820648,
0.5924815535545349,
-0.12363486737012863,
-0.26765701174736023,
-0.281884104013443,
-0.1044803336262703,
0.3121199905872345,
-0.25708308815956116,
-0.2764497995376587,
-0.0099109448492527,
0.5383890271186829,
-0.5146895051002502,
0.1651772707700729... | |
PWD in the [manual page for $\_SERVER](http://php.net/manual/en/reserved.variables.server.php). To find out which indexes are defined use [var\_dump](http://php.net/var_dump)($\_SERVER);
If you need the "current working directory", use the [getcwd](http://php.net/getcwd)() function.
PS:
Instead of defining your own P... | [
-0.025997057557106018,
-0.6036597490310669,
0.6029387712478638,
0.11119229346513748,
-0.2987297773361206,
0.06579700112342834,
0.006608104798942804,
-0.15858522057533264,
-0.33354201912879944,
-0.7988525032997131,
-0.07106869667768478,
0.2940361201763153,
-0.29900920391082764,
-0.174009606... | |
What is Environment.FailFast?
How is it useful?
It is used to kill an application. It's a static method that will instantly kill an application without being caught by any exception blocks.
> Environment.FastFail(String) can
> actually be a great debugging tool.
> For example, say you have an
> application that is j... | [
0.06612224876880646,
-0.22730354964733124,
0.010008282028138638,
-0.04331177845597267,
-0.22221724689006805,
-0.5523650050163269,
0.32129842042922974,
-0.03849371150135994,
-0.25183624029159546,
-0.32005974650382996,
0.16290982067584991,
0.480135977268219,
-0.4765988886356354,
0.0150567395... | |
those first chance
> exceptions. If you don't have that,
> however you can put
> Environment.FastFail(String) in an
> exception, and use deductive reasoning
> and process of elimination to find out
> where your problem in.
[Reference](https://netfxharmonics.com/2006/10/uncatchable-exception) | [
-0.21770155429840088,
0.07159743458032608,
-0.10509206354618073,
0.22512763738632202,
0.09352584928274155,
-0.21146376430988312,
0.280985027551651,
-0.12420202046632767,
-0.3402886986732483,
-0.5362991094589233,
-0.2531575560569763,
0.3141239583492279,
-0.45743685960769653,
0.0841744393110... | |
Where in an MVC based architecture should the date formatting (long/short/time/no-time/UK/US) live? I want to be able to specify long/short/time/no-time on a per-field basis - i.e. DateOfBirth doesn't care about time, but CreationDate might.
Using ASP.NET MVC, there doesn't seem an easy way to do it in the View, which... | [
0.28372296690940857,
-0.24408289790153503,
0.653965950012207,
-0.05081530660390854,
0.017042109742760658,
-0.140885591506958,
-0.12307613343000412,
-0.26001909375190735,
-0.2972489595413208,
-0.7064635157585144,
-0.18504062294960022,
0.25047874450683594,
-0.1321270614862442,
0.118424333631... | |
3. is user profile thing, which again belongs in the view.
So far then you only have two types DateTime (which exists) and Date (which doesn't). These are the types that you can expect the model to expose. | [
0.3118411600589752,
-0.3396408259868622,
0.3775336742401123,
-0.021939033642411232,
-0.033692941069602966,
-0.03241933137178421,
0.022785427048802376,
0.12432439625263214,
-0.2577253580093384,
-0.7063813805580139,
0.15843352675437927,
0.45810574293136597,
-0.02675503119826317,
0.2036974579... | |
I am currently trying to extend our already existing (and working) pre commit batch file for committing to SVN. The first part blocks any commit that does not have comments and works as expected. The second part is an attmept to block users committing SUO files, however this is currently blocking all commits.
My unde... | [
-0.054581061005592346,
0.0006925491034053266,
0.6593376398086548,
-0.016953984275460243,
-0.06833018362522125,
-0.03044782020151615,
0.4319634437561035,
-0.21877552568912506,
-0.06748955696821213,
-0.7651816010475159,
-0.24929805099964142,
0.6594998836517334,
-0.07114722579717636,
0.199623... | |
%1 | FindStr /R "[a-zA-Z]\.suo"
IF %ERRORLEVEL% EQU 0 exit 0
echo "SUO files cannot be committed" >&2
exit 1
```
findstr returns 0 if something has been found, and 1 if nothing has been found. You just inverted your check.
No batch-foo required, even on Windows the shell is interactive, so you can try it out alive:
... | [
-0.15374070405960083,
0.09492920339107513,
0.2537439465522766,
-0.15357860922813416,
0.2991756796836853,
-0.19471751153469086,
0.7625386118888855,
-0.34437400102615356,
0.1030924841761589,
-0.6460111737251282,
-0.24588142335414886,
0.668610692024231,
-0.3114108443260193,
-0.111759781837463... | |
out the errorlevel with %errorlevel% in a correct way.
(**edit**) Important note: I forgot to say that the **`if errorlevel`** syntax checks whether the errorlevel is **greater or equal** to the value being tested for. So to correctly use it, you must always check for the highest error first, like:
```
someCommand
if... | [
-0.22327178716659546,
0.2929992973804474,
0.20693519711494446,
-0.2438298910856247,
0.13352516293525696,
0.13926658034324646,
0.12516377866268158,
-0.09526940435171127,
-0.03145137056708336,
-0.4980233907699585,
-0.009896290488541126,
0.5559985637664795,
-0.036997247487306595,
0.0076242736... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.