text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
Looking to do a very small, quick 'n dirty side project. I like the fact that the Google App Engine is running on Python with Django built right in - gives me an excuse to try that platform... but my question is this:
Has anyone made use of the app engine for anything other than a toy problem? I see some good example ... | [
0.4089541733264923,
0.33285778760910034,
-0.17450083792209625,
0.14145918190479279,
0.004505420569330454,
0.013837259262800217,
0.25622886419296265,
0.3479854464530945,
-0.42228227853775024,
-0.28409311175346375,
0.28380507230758667,
0.5122480392456055,
-0.1332138478755951,
-0.079364575445... | |
was to see the capabilities of app engine, so here are the main points:
1. it doesn't come by default with Django, it has its own web framework which is pythonic has URL dispatcher like Django and it uses Django templates
So if you have Django exp. you will find it easy to use
* But you can use any pure python framew... | [
0.18503445386886597,
0.10221536457538605,
0.21715937554836273,
0.07616706937551498,
-0.5975754857063293,
-0.11757751554250717,
0.014424989931285381,
-0.09002894908189774,
-0.03855341300368309,
-0.4358948767185211,
0.18101312220096588,
0.4891849160194397,
-0.5039641261100769,
-0.09503179788... | |
be quick otherwise appengine will kill it
So if your app needs lots of backend processing appengine is not the best way
otherwise you will have to do processing on a server of your own
3. My quakewatch app has a subscription feature, it means I had to email latest quakes as they happend, but I can not run a background ... | [
0.27950409054756165,
-0.2714855968952179,
0.5404447913169861,
0.2202790528535843,
-0.3433639407157898,
-0.1445334106683731,
0.48914480209350586,
-0.05288877710700035,
-0.36313265562057495,
-0.6248384714126587,
0.45540565252304077,
0.8132086396217346,
-0.058481231331825256,
-0.2663607001304... | |
don't spend much time here
or break task into several pieces
4. It provides Django like modeling capabilities but backend is totally different but for a new project it should not matter.
But overall I think it is excellent for creating apps which do not need lot of background processing.
Edit:
Now [task queues](http:... | [
0.25458014011383057,
-0.04752707481384277,
0.2019178867340088,
-0.043621040880680084,
0.13579095900058746,
0.13422845304012299,
-0.014985370449721813,
0.10654926300048828,
-0.7563842535018921,
-0.40807056427001953,
0.16607242822647095,
0.5188749432563782,
-0.3721541464328766,
-0.3125766217... | |
a headache due to distributed nature, to avoid deadline exceeded errors, count entities or do complex queries requires complex code, so small complex application should stick to LAMP.
Edit:
Models should be specially designed considering all the transactions you wish to have in future, because entities only in same en... | [
-0.15420442819595337,
-0.1290704309940338,
0.6109364628791809,
0.17114081978797913,
0.10401192307472229,
-0.43632856011390686,
0.10842600464820862,
-0.13127677142620087,
-0.5089089870452881,
-0.8243116736412048,
0.12781263887882233,
0.5793441534042358,
-0.47686994075775146,
0.1038227602839... | |
<http://blog.notdot.net/2009/9/Distributed-Transactions-on-App-Engine> | [
-0.47243374586105347,
-0.17746593058109283,
0.30752506852149963,
0.18852604925632477,
-0.09996531903743744,
0.06512343138456345,
0.11379759013652802,
0.3395070433616638,
-0.7244508862495422,
-0.4113590121269226,
-0.10022937506437302,
0.5327469110488892,
-0.43602004647254944,
-0.21231576800... | |
I'm working on a page has an ol with nested p's, div's, and li's. Internet Explorer 6 and 7 both render the numbers for the ol tag after the p element at the end (at the very, very bottom of the li tag) rather than at the top of the outermost li as expected. I'm working on a PowerPC Mac and can't do any testing. Is the... | [
0.5226812958717346,
0.1367093026638031,
0.41032278537750244,
-0.22974827885627747,
-0.01349648181349039,
0.169838547706604,
0.08363582193851471,
0.13106375932693481,
0.02575862407684326,
-0.7910087704658508,
-0.05159468948841095,
0.38190826773643494,
-0.22756725549697876,
-0.02104925923049... | |
is as follows:
```
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet... | [
-0.15498974919319153,
-0.045876115560531616,
0.8682679533958435,
-0.2703378200531006,
-0.09875514358282089,
-0.17316992580890656,
-0.16879482567310333,
-0.47347214818000793,
-0.21837323904037476,
-0.5544178485870361,
-0.6139943599700928,
0.44606640934944153,
-0.08211259543895721,
-0.021575... | |
<!--[if gt IE 5]>
<link rel="stylesheet" type="text/css" href="css/ie_hacks/global.css" />
<![endif]-->
<title>
The Daily Plan-It, LLC - Home of the Tax MiniMiser
</title>
</head>
<body>
<?php include("includes/nav_bar.php") ?>
<div id="content"> | [
0.4240650236606598,
0.09428142011165619,
0.6581565141677856,
-0.008571011945605278,
0.23495475947856903,
0.13722535967826843,
-0.07524283975362778,
-0.28933185338974,
-0.024322103708982468,
-0.3258976340293884,
-0.407809317111969,
0.08074141293764114,
0.16814303398132324,
-0.06450652331113... | |
<img src="images/title.png" alt="Tax MiniMiser Financial Tracking System" />
<div id="bordered_wrapper">
<h1>Here's What You Get With The Tax MiniMiser!</h1>
<h2>24 Envelopes, 7-hole punched to fit one-at-a-time in your binder</h2>
<ol> | [
0.2192564606666565,
0.1181245893239975,
0.5257074236869812,
0.2875485420227051,
-0.26108676195144653,
0.24331122636795044,
-0.20220425724983215,
-0.4501884877681732,
-0.260322242975235,
-0.5358330011367798,
-0.0007863513310439885,
0.2615082263946533,
-0.2803269028663635,
-0.328540742397308... | |
<li class="main_item">
Business Income & Expense Record
<div class="preview_image">
<a href="previews/large/bier/front.html" rel="external"> | [
0.1513037383556366,
0.12941527366638184,
0.21419844031333923,
-0.08034509420394897,
-0.054642222821712494,
0.5110530853271484,
0.012577220797538757,
-0.22647885978221893,
-0.2542150318622589,
-0.2896057665348053,
-0.3521631956100464,
0.45566457509994507,
-0.03664157912135124,
0.03262239694... | |
<img src="images/small_previews/large/bier_preview.jpg" alt="" /><br/>
Click to Preview!
</a> | [
0.18737730383872986,
-0.12666046619415283,
0.017341915518045425,
-0.021152283996343613,
-0.4916940927505493,
-0.01126803457736969,
0.04672353342175484,
-0.022805731743574142,
-0.36892104148864746,
-0.4324658215045929,
-0.2886185050010681,
0.11940508335828781,
-0.20494194328784943,
0.031129... | |
</div>
<div class="details">
<ul> | [
-0.10290291160345078,
-0.42138540744781494,
0.3004909157752991,
-0.02634197473526001,
-0.22467206418514252,
0.16210398077964783,
-0.12664794921875,
0.1766444891691208,
-0.38968491554260254,
-0.5246877074241638,
-0.38759875297546387,
0.4264833927154541,
0.035553887486457825,
0.2534133195877... | |
<li>12 receipt envelopes with all the income & expense columns you need to transform your planner or binder into a daily tax journal!</li>
<li>Store daily receipts in the convenient pocket envelopes.</li>
</ul> | [
0.22743913531303406,
0.27514928579330444,
0.6234590411186218,
0.4545333981513977,
-0.2972041666507721,
0.1307086944580078,
-0.2556235194206238,
-0.1811705082654953,
-0.1306711584329605,
-0.49671074748039246,
0.0527367889881134,
0.5795421004295349,
-0.21258404850959778,
-0.41893112659454346... | |
</div>
<p>To get a free copy of the "20 Column Heading Guidelines", <a href="files/downloads/20_column_heading_guidelines.pdf">click here</a> or call our Fax-on-Demand line at 888-829-8237.</p>
</li> | [
0.3090822100639343,
0.04724635183811188,
0.7928184270858765,
0.11032774299383163,
0.16920234262943268,
-0.21410101652145386,
-0.06211782246828079,
-0.37524527311325073,
-0.12121158093214035,
-0.5597833395004272,
-0.259782075881958,
0.3026939928531647,
-0.1326158046722412,
-0.29466757178306... | |
<li class="main_item">
Vehicle Mileage & Expense Record
<div class="preview_image">
<a href="previews/large/vme/front.html" rel="external"> | [
0.3205706477165222,
0.22865287959575653,
0.5292149782180786,
0.0707002505660057,
-0.2883518636226654,
0.6443491578102112,
0.08460625261068344,
-0.3410828709602356,
-0.11123215407133102,
-0.3398546874523163,
0.12740342319011688,
0.7380650043487549,
0.3374254107475281,
0.014764775522053242,
... | |
<img src="images/small_previews/large/mileage_preview.jpg" alt=""/><br/>
Click to Preview!
</a> | [
0.302557110786438,
0.04779680445790291,
0.050267159938812256,
0.1196318045258522,
-0.3027471601963043,
0.014721831306815147,
0.1849931925535202,
-0.013292978517711163,
-0.19218756258487701,
-0.5041500926017761,
0.011715246364474297,
0.16752466559410095,
0.003938564099371433,
-0.06029334664... | |
</div>
<div class="details">
<ul>
<li>12 receipt envelopes to track your daily mileage and vehicle expenses. | [
0.39724236726760864,
0.09076113998889923,
0.5467877388000488,
0.3439255952835083,
0.055944137275218964,
0.40558314323425293,
-0.10735641419887543,
-0.2051209956407547,
-0.08277805894613266,
-0.3574542999267578,
0.25568902492523193,
0.4396241307258606,
0.14027048647403717,
-0.37068998813629... | |
Keep one envelope in each vehicle used for your business(es).</li>
<li>Store daily receipts in the convenient pocket envelopes.</li>
</ul> | [
0.299916535615921,
0.19786828756332397,
0.6887078881263733,
0.2902142107486725,
-0.04831654578447342,
0.3035746216773987,
-0.1833513230085373,
0.042670946568250656,
0.04180475324392319,
-0.6204110383987427,
0.15707294642925262,
0.609815776348114,
-0.03993361443281174,
-0.3584884703159332,
... | |
</div>
<p>To get a free copy of the "Instructions for Vehicle Mileage & Expense Record", <a href="files/downloads/vehicle_record_instructions.pdf">click here</a> or call our Fax-on-Demand line at 888-829-8237.</p>
</li>
<li class="main_item"> | [
0.4778933823108673,
0.3405987024307251,
0.6529449820518494,
0.26643210649490356,
0.22396276891231537,
0.2552110254764557,
0.15366142988204956,
-0.2416723519563675,
0.055544767528772354,
-0.3049529790878296,
-0.09635506570339203,
0.4990181624889374,
0.1160062924027443,
0.012732474133372307,... | |
Annual Business Summary of Income and Expense
<div class="preview_image">
<a href="previews/large/cover/inside.html" rel="external"> | [
-0.03931821510195732,
0.25169801712036133,
0.390935480594635,
0.004033752251416445,
-0.15505605936050415,
0.06667642295360565,
-0.14919914305210114,
0.2263062596321106,
-0.3411400318145752,
-0.06315305083990097,
-0.200714573264122,
0.41954872012138367,
0.13178789615631104,
0.19175174832344... | |
<img src="images/small_previews/large/cover_inside_preview.jpg" alt="" /><br/>
Click to Preview!
</a>
</div> | [
0.21332824230194092,
-0.0792103186249733,
0.21010908484458923,
0.0019060956547036767,
-0.4542360007762909,
-0.21439386904239655,
0.07131592929363251,
-0.13916455209255219,
-0.3104002773761749,
-0.4464252293109894,
-0.4070274829864502,
0.18481981754302979,
-0.14596493542194366,
-0.062388226... | |
<div class="details">
<ul>
<li>Enter the subtotals from all the envelopes throughout the year. Then you and your tax pro can figure out profitability and | [
0.37646254897117615,
0.28148916363716125,
0.670970618724823,
0.09309348464012146,
0.10662095993757248,
-0.010255497880280018,
-0.30453214049339294,
-0.04657374322414398,
-0.1256224811077118,
-0.4731471836566925,
-0.1508074253797531,
0.5623407363891602,
0.3719821870326996,
-0.08730802685022... | |
taxes to maximize your deductions and legally minimize your taxes.</li>
</ul>
</div>
</li>
</ol> | [
0.5169942378997803,
0.06253030896186829,
0.3840269446372986,
0.2995818257331848,
-0.029915984719991684,
0.2273518145084381,
-0.35545870661735535,
0.0038060625083744526,
-0.189982071518898,
-0.4685908555984497,
0.12670017778873444,
0.8135005831718445,
-0.1903163343667984,
-0.356927484273910... | |
<p class="end">To see previews of the small (6" x 8½") Tax MiniMisers, visit their respective pages <a href="products.php">here.</a></p>
</div>
</div>
<?php include("includes/footer.php") ?>
</body>
</html>
```
And the CSS:
```
#content {
background-color: white;... | [
0.1769942045211792,
0.09426209330558777,
0.7488056421279907,
0.04771967604756355,
0.0366373248398304,
0.2518118917942047,
-0.34229713678359985,
-0.507945716381073,
-0.1875700205564499,
-0.5542109608650208,
-0.3687118589878082,
0.14588674902915955,
-0.11778930574655533,
-0.11093145608901978... | |
padding-top: 15px;
margin-bottom: 0;
}
#bordered_wrapper h2 {
margin-top: 0;
font-size: 1.3em;
}
ol {
font-size: 1.1em;
}
ul {
list-style-type: disc;
}
li.main_item {
width: 700px;
clear: right;
}
li p {
clear: both;
margin-bottom: 20px;
}
.preview_image {
width: 200px;
... | [
-0.6488574743270874,
-0.22860556840896606,
0.8639488816261292,
0.11014574766159058,
-0.4959630072116852,
0.43858107924461365,
-0.12882986664772034,
-0.03144753351807594,
-0.19132839143276215,
-0.7189668416976929,
-0.5146228075027466,
0.3902999758720398,
-0.18997499346733093,
-0.14819176495... | |
25px;
padding-left: 20px;
background: bottom left no-repeat url(../images/borders/yellow-box-bottom.gif);
}
```
Congratulations, you are the victim of IE's [hasLayout](http://msdn.microsoft.com/en-us/library/ms533776.aspx) property.
Short version: You've got it easy this time. Changes these rules:
```
...
o... | [
-0.28088122606277466,
0.06860683113336563,
0.7536421418190002,
0.04957005754113197,
0.10957826673984528,
-0.22255690395832062,
0.38319045305252075,
0.046645209193229675,
-0.3785950839519501,
-0.7627883553504944,
-0.537817120552063,
0.41835999488830566,
0.03917510434985161,
-0.1376243531703... | |
read-only property with no apparent purpose, it took quite a while before web designers caught on to the issue. Older sites (even Quirksmode.org!) still has pages that suggest twiddling padding, margins, or even using Javascript to fix these issues. If you can at all help it, don't do these things. Instead, see if you ... | [
0.44400104880332947,
0.10192100703716278,
0.3140271306037903,
0.1427203267812729,
-0.22853432595729828,
-0.5589764714241028,
0.33602651953697205,
0.2096261978149414,
-0.3811854422092438,
-0.5034428238868713,
0.009532120078802109,
0.008621404878795147,
-0.3531501293182373,
0.154754072427749... | |
to an element that doesn't already have it:
* position: absolute
* float: left|right
* display: inline-block
* height: any value other than 'auto'
* zoom: any value other than 'normal' (MS proprietary)
* writing-mode: tb-rl (MS proprietary)
As of IE7, overflow became a trigger for hasLayout.
* overflow: hidden|scrol... | [
0.10412747412919998,
-0.2337384819984436,
0.4509407579898834,
-0.1400708556175232,
-0.14362962543964386,
-0.3974370062351227,
0.24428461492061615,
-0.03498130291700363,
-0.2683753967285156,
-0.4303474724292755,
-0.016474278643727303,
0.3042565882205963,
-0.4215426445007324,
-0.094980508089... | |
One mentor I respect suggests that a simple bean is a waste of time - that value objects 'MUST' contain some business logic to be useful.
Another says such code is difficult to maintain and that all business logic must be externalized.
I realize this question is subjective. Asking anyway - want to know answers from... | [
0.5776893496513367,
0.22167864441871643,
-0.12703470885753632,
0.28550809621810913,
-0.16380277276039124,
-0.0666356086730957,
0.25139549374580383,
-0.42129138112068176,
-0.19816046953201294,
-0.24026483297348022,
0.2780173420906067,
0.5750201940536499,
-0.03202994912862778,
-0.11117660254... | |
principle and the [Law of Demeter](http://en.wikipedia.org/wiki/Law_of_Demeter). Encapsulation makes it easier to understand the states data can be in, easier to read code, easier to decouple classes and generally easier to unit test.
Externalising business logic (generally into "Service" or "Manager" classes) makes q... | [
0.3348920941352844,
-0.07076510787010193,
0.08149968087673187,
0.011495267041027546,
0.04047645628452301,
-0.06042977795004845,
0.6453748941421509,
-0.8447291851043701,
-0.12321458756923676,
-0.2849186956882477,
-0.13485024869441986,
0.6844019293785095,
-0.542103111743927,
0.55879616737365... | |
responsibilities. Or, when you are mostly doing reads/writes to a DB that map nicely to input forms, maybe you don't need a domain model - or the painful object/relational mapping overhead it entails - at all.
Transfer Objects often serve to decouple architectural layers from each other (or from an external system) by... | [
0.4859437346458435,
0.12693816423416138,
0.05541152134537697,
0.41899657249450684,
-0.1644059270620346,
-0.3272912800312042,
0.10210273414850235,
-0.41592225432395935,
-0.34667089581489563,
-0.5019145011901855,
-0.17907077074050903,
0.7134215831756592,
0.06720195710659027,
0.14364029467105... | |
than *what* information to display. For example, the TO might be an aggregation of several sources of data.
One advantage is that your views and your domain objects are decoupled. Using your domain objects in JSPs can make your domain harder to refactor and promotes the indiscriminate use of getters and setters (hence... | [
0.34895259141921997,
-0.3227318823337555,
0.1778247356414795,
0.5125409960746765,
-0.1596015989780426,
-0.4658142328262329,
0.10643501579761505,
-0.0025068551767617464,
0.020885197445750237,
-0.887019157409668,
0.050903793424367905,
0.5671154856681824,
-0.31180399656295776,
0.4264119565486... | |
I want to do this:
```
e.className = t;
```
Where t is the name of a style I have defined in a stylesheet.
If `e` is a reference to a DOM element and you have a class like this: `.t {color:green;}` then you want reference the class name as a string:
```
e.className = 't';
``` | [
0.28001710772514343,
-0.12439239770174026,
0.1688387244939804,
-0.1324135661125183,
0.21174918115139008,
-0.13282006978988647,
0.05306854844093323,
-0.20706070959568024,
0.00945867970585823,
-0.4281930923461914,
-0.3288157284259796,
0.7158374786376953,
-0.3052552044391632,
0.29179248213768... | |
How can I change the width of a textarea form element if I used ModelForm to create it?
Here is my product class:
```
class ProductForm(ModelForm):
long_desc = forms.CharField(widget=forms.Textarea)
short_desc = forms.CharField(widget=forms.Textarea)
class Meta:
model = Product
```
And the templ... | [
0.20709113776683807,
-0.1243322417140007,
0.558398962020874,
-0.25635242462158203,
-0.08199575543403625,
0.24759253859519958,
0.0453338660299778,
-0.4127311706542969,
-0.13082745671272278,
-0.7768327593803406,
-0.011305486783385277,
0.5839897990226746,
-0.34460288286209106,
0.1699765473604... | |
the ids for fields that interest you, and change appearance of these fields through CSS.
Example for `long_desc` field in your ProductForm (when your form does not have a custom prefix):
```
#id_long_desc {
width: 300px;
height: 200px;
}
```
**Second approach** is to pass the `attrs` keyword to your widget ... | [
0.20048554241657257,
-0.027921736240386963,
0.740680456161499,
-0.1347867250442505,
-0.11814988404512405,
-0.05421269312500954,
0.08784791827201843,
-0.6283745765686035,
0.021562959998846054,
-0.6721081137657166,
-0.30525439977645874,
0.7846061587333679,
-0.18740054965019226,
-0.0242629870... | |
and set your widget attributes in custom constructor.
```
class ProductForm(ModelForm):
long_desc = forms.CharField(widget=forms.Textarea)
short_desc = forms.CharField(widget=forms.Textarea)
class Meta:
model = Product
# Edit by bryan
def __init__(self, *args, **kwargs):
super(Prod... | [
0.1937292218208313,
-0.12474821507930756,
0.4086120128631592,
0.002102677943184972,
-0.09696565568447113,
0.0868023931980133,
0.2819656729698181,
-0.5328630805015564,
-0.26645156741142273,
-0.651870846748352,
-0.20697371661663055,
0.867892861366272,
-0.5160501003265381,
0.08746139705181122... | |
automatically from your model without redefining whole fields.
* It doesn't depend on the prefix of your form. | [
0.39853596687316895,
-0.12611256539821625,
0.3094334006309509,
-0.030176421627402306,
-0.24447430670261383,
0.012670861557126045,
0.2130201905965805,
-0.1067851260304451,
-0.13271912932395935,
-0.5302664041519165,
-0.4437732994556427,
0.2754053473472595,
-0.1797182410955429,
-0.01897838711... | |
I have a group of checkboxes that I only want to allow a set amount to be checked at any one time. If the newly checked checkbox pushes the count over the limit, I'd like the oldest checkbox to be automatically unchecked. The group of checkboxes all use the same event handler shown below.
I have achieved the functiona... | [
0.44640907645225525,
-0.1831037402153015,
0.1950952261686325,
0.06293623149394989,
0.06454245746135712,
0.07598140835762024,
-0.12670890986919403,
-0.14617519080638885,
-0.47281041741371155,
-0.45962268114089966,
0.23898209631443024,
0.17605361342430115,
-0.20107261836528778,
0.05048587545... | |
method before I convert the list back to a queue.
* Is there a better way to do this?
* Is it a good idea to unhook are rehook the event handlers like I did.
Here's the code.
```
private Queue<CheckBox> favAttributesLimiter - new Queue<CheckBox>();
private const int MaxFavoredAttributes = 5;
private void favoredAt... | [
0.20403191447257996,
-0.34992724657058716,
0.6920514702796936,
-0.2265951782464981,
0.15863485634326935,
0.048409439623355865,
-0.03782612085342407,
-0.6025181412696838,
-0.17417854070663452,
-0.49544963240623474,
0.05960378050804138,
0.45243868231773376,
-0.2634451985359192,
0.10829985141... | |
favAttributesLimiter.Dequeue();
oldest.CheckedChanged -= favoredAttributes_CheckedChanged;
oldest.Checked = false;
oldest.CheckedChanged += new EventHandler(favoredAttributes_CheckedChanged);
}
favAttributesLimiter.Enqueue(cb);
}
else // c... | [
0.05891391262412071,
-0.028752870857715607,
0.545346200466156,
-0.30056032538414,
0.3080567419528961,
-0.05932766944169998,
0.03157857060432434,
-0.5345042943954468,
-0.11141148954629898,
-0.44471049308776855,
-0.080349400639534,
0.14369188249111176,
-0.11747422069311142,
0.088490001857280... | |
if (favAttributesLimiter.Contains(cb))
{
var list = favAttributesLimiter.ToList();
list.Remove(cb);
favAttributesLimiter=new Queue<CheckBox>(list);
}
}
}
```
Edit:
[Chakrit](https://stackoverflow.com/questions/110385/limiting-a-group-of-checkboxes-to-a-certa... | [
0.059269193559885025,
0.08951116353273392,
0.3276193141937256,
-0.2962454557418823,
0.08111050724983215,
0.1490887701511383,
0.19826827943325043,
-0.5658475160598755,
-0.26563993096351624,
-0.3027668595314026,
-0.2368188351392746,
0.2078205794095993,
-0.5786038041114807,
0.0137628205120563... | |
unchecking boxes was actually a bad idea was quite convincing. I'm leaving Chakrit's answer as accepted, but I've voted up the other answers because they're offering a more consistent and usable solution in the eyes of the user.
I think you are looking for a [LinkedList](http://msdn.microsoft.com/en-us/library/he2s3bh7... | [
0.3888208568096161,
0.024102065712213516,
0.13144992291927338,
0.10484457015991211,
-0.04355679452419281,
-0.07866065204143524,
0.14348295331001282,
-0.11201126873493195,
-0.10698066651821136,
-0.4174559414386749,
-0.42076605558395386,
-0.004843233618885279,
-0.32858002185821533,
0.0628258... | |
I'm attempting to use TinyXML to read and save from memory, instead of only reading and saving files to disk.
It seems that the documnent's parse function can load a char \*. But then I need to save the document to a char \* when I'm done with it. Does anyone know about this?
Edit: The printing & streaming functions ... | [
0.30450552701950073,
-0.10743561387062073,
0.42063525319099426,
0.08510295301675797,
0.10337711125612259,
-0.22587069869041443,
-0.2003125548362732,
0.3269065320491791,
-0.3930304944515228,
-0.6163217425346375,
-0.03563451021909714,
0.6471593976020813,
-0.2988245189189911,
0.05031830072402... | |
use [C++ string streams](http://www.cppreference.com/wiki/io/sstream/start)) or a [TiXMLPrinter class](http://www.grinninglizard.com/tinyxmldocs/classTiXmlPrinter.html) you can get an STL string without using a file. See [TinyXML documentation](http://www.grinninglizard.com/tinyxmldocs/index.html) (look for the "Printi... | [
0.4667930603027344,
-0.1357630044221878,
0.29542118310928345,
0.08348114043474197,
0.08687537908554077,
-0.18390771746635437,
-0.05600615218281746,
0.35174915194511414,
-0.5505142211914062,
-0.4084025025367737,
-0.35845649242401123,
0.41535794734954834,
-0.24067118763923645,
-0.02186995372... | |
Do you write one test per function/method, with multiple checks in the test, or a test for each check?
One test per check and super descriptive names, per instance:
```
@Test
public void userCannotVoteDownWhenScoreIsLessThanOneHundred() {
...
}
```
Both only one assertion and using good names gives me a better repo... | [
0.7149370908737183,
0.36522555351257324,
-0.3124879002571106,
0.0077546690590679646,
0.0746702328324318,
-0.2148638516664505,
0.8331543803215027,
-0.18385693430900574,
0.18772922456264496,
-0.3041065037250519,
0.24468499422073364,
0.5932879447937012,
-0.20836231112480164,
0.105008125305175... | |
vi is for cool kids.
1. [ViEmu](http://www.viemu.com/) - Not Free but great Vim emulation.
2. [Visual\_Studio.vim](http://www.vim.org/scripts/script.php?script_id=864) - Allows you to manage visual studio from Vim.
3. [Using GVim as the Visual Studio Editor](http://vim.wikia.com/wiki/Calling_gvim_from_MS_Visual_Studio) | [
0.42889469861984253,
-0.21923863887786865,
0.6835843324661255,
0.0089438920840621,
-0.6613162755966187,
-0.21683000028133392,
0.36706963181495667,
-0.27860042452812195,
-0.18696482479572296,
-0.543203592300415,
0.08929672837257385,
0.7404141426086426,
-0.4653579592704773,
0.194393903017044... | |
I need to write a function that receives a property as a parameter and execute its getter.
If I needed to pass a function/delegate I would have used:
```
delegate RET FunctionDelegate<T, RET>(T t);
void func<T, RET>(FunctionDelegate function, T param, ...)
{
...
return function.Invoke(param);
}
```
Is ther... | [
0.08504388481378555,
-0.175977885723114,
0.057898420840501785,
0.15245339274406433,
-0.1653497964143753,
-0.014361612498760223,
0.21355852484703064,
-0.5716609954833984,
-0.08319356292486191,
-0.5313353538513184,
0.0075663733296096325,
0.662355899810791,
-0.22353042662143707,
0.09457762539... | |
to add error handling if you want to use this in production code:
For example to get the value of property Foo of object obj you can write:
```
value = obj.GetType().GetProperty("Foo").GetAccessors()[0].Invoke(obj,null);
```
to set it:
```
obj.GetType().GetProperty("Foo").GetAccessors()[1].Invoke(obj,new object[]{... | [
-0.09545585513114929,
0.10484530031681061,
0.14754129946231842,
-0.18998149037361145,
0.041370075196027756,
0.17028632760047913,
0.46655717492103577,
-0.5996724367141724,
-0.2656870484352112,
-0.31649520993232727,
-0.30235421657562256,
0.5806856751441956,
-0.5671464800834656,
0.15756195783... | |
class SomeClass:
```
SomeClass obj = new SomeClass();
func<SomeClass,int>(delegate(SomeClass o){return o.Foo;},obj);
``` | [
-0.29302242398262024,
-0.14052577316761017,
0.1931615024805069,
-0.2036038339138031,
0.04280424118041992,
0.13717947900295258,
0.2715299725532532,
0.1613319218158722,
-0.25571921467781067,
-0.41758596897125244,
-0.48531270027160645,
0.39775601029396057,
-0.5342695713043213,
0.2471549957990... | |
Am I the only person who has the need to view multiple directories at once (usually on the same remote server, but sometimes other ones too)? Disconnecting and reconnecting is driving me crazy.
Preferably a free tool, but I'm getting to the stage where I'll try anything!
Can you have multiple FireFTP tabs in Firefox?... | [
0.14356479048728943,
-0.06970849633216858,
0.668680727481842,
0.07148812711238861,
-0.04064672812819481,
-0.3121160566806793,
0.2564159631729126,
-0.06220031902194023,
-0.6141047477722168,
-0.6636300086975098,
-0.03658453747630119,
0.7232032418251038,
-0.14686143398284912,
0.11486940085887... | |
to the bin! | [
0.255071222782135,
0.020705368369817734,
-0.004626070149242878,
0.043379075825214386,
0.04539336636662483,
-0.4300146698951721,
0.04339641332626343,
0.15436409413814545,
-0.14711014926433563,
-0.02546781115233898,
-0.1804901659488678,
-0.04538590833544731,
-0.04997076466679573,
0.252653926... | |
I have a document library with about 50 available content types. This document library is divided into several folders. When a user cliks the "New" button in a folder, all available content types are offered. I need to limit the content types according to the folder. For example, in the folder "Legal" a want to have on... | [
0.48864617943763733,
0.0203613992780447,
0.5343847274780273,
0.05293070897459984,
0.08210363984107971,
-0.09256339818239212,
0.08003788441419601,
-0.3408302962779999,
-0.19071267545223236,
-0.7463363409042358,
0.028815509751439095,
0.2650004029273987,
-0.283236026763916,
0.6581389904022217... | |
foreach (SPContentType type in myDocumentLibrary.ContentTypes)
{
if (ContentTypeMatchesName(name, type))
{
col.Add(type);
}
}
z.UniqueContentTypeOrder = col;
z.Update();
}
```
Have you looked | [
0.2653902769088745,
0.19709160923957825,
0.573868989944458,
-0.2838984727859497,
0.24527230858802795,
-0.24767780303955078,
0.3656856119632721,
-0.06542237848043442,
-0.03878799453377724,
-0.6497672200202942,
-0.18134771287441254,
0.45970600843429565,
-0.18898653984069824,
0.26897045969963... | |
at [this](http://www.tonstegeman.com/Blog/Lists/Posts/Post.aspx?List=70640fe5%2D28d9%2D464f%2Db1c9%2D91e07c8f7e47&ID=56) article by Ton Stegeman? | [
0.3376084864139557,
0.32064157724380493,
-0.20576682686805725,
-0.12209669500589371,
-0.12817035615444183,
0.4672260284423828,
0.12468308955430984,
0.005756096448749304,
-0.7199118733406067,
-0.20060142874717712,
0.00014473008923232555,
-0.17189909517765045,
-0.01847108267247677,
0.0857142... | |
Currently IIS sends an expires http header of yesterday minus 1 hour on ASP.NET pages. How do I change this to 60 seconds in the further instead?
You can also add a content-expires page directive to your ASP.NET page (for different expire schedules):
@Outputcache
Or you can set the header inside your code (perhaps a... | [
0.07118085026741028,
-0.2531382739543915,
0.5723507404327393,
-0.03556856885552406,
-0.13519524037837982,
-0.3648110032081604,
0.4706118404865265,
-0.16664816439151764,
-0.09968990087509155,
-0.7792695164680481,
-0.011442719958722591,
0.12367794662714005,
-0.1592227667570114,
0.27877491712... | |
How would you write a regular expression to convert mark down into HTML? For example, you would type in the following:
```
This would be *italicized* text and this would be **bold** text
```
This would then need to be converted to:
```
This would be <em>italicized</em> text and this would be <strong>bold</strong> t... | [
0.1586086004972458,
0.06501506268978119,
0.5123490691184998,
0.04730381444096565,
-0.28561070561408997,
0.06396941095590591,
0.22901710867881775,
-0.24988526105880737,
-0.13380970060825348,
-0.705987811088562,
0.020872991532087326,
0.6178333759307861,
-0.3199932873249054,
-0.31695431470870... | |
the Markdown library ported to whatever language you are using (you did not specify in your question).
---
Now that you have clarified that you only want STRONG and EM to be processed, and that you are using C#, I recommend you take a look at [Markdown.NET](http://www.aspnetresources.com/blog/markdown_announced.aspx... | [
0.2225964516401291,
-0.24268370866775513,
0.5974797010421753,
-0.18515197932720184,
-0.02281469665467739,
-0.1311834454536438,
0.11758465319871902,
-0.43056395649909973,
-0.15897083282470703,
-0.6330843567848206,
-0.07139011472463608,
0.41521233320236206,
-0.4404791593551636,
-0.2057979553... | |
new MatchEvaluator (BoldEvaluator),
RegexOptions.IgnorePatternWhitespace | RegexOptions.Singleline);
// Then <em>:
text = Regex.Replace (text, @"(\*|_) (?=\S) (.+?) (?<=\S) \1",
new MatchEvaluator (ItalicsEvaluator), | [
-0.2722702622413635,
-0.09981834888458252,
0.8992192149162292,
-0.1855865865945816,
0.3313841223716736,
0.28090837597846985,
0.13508546352386475,
-0.48969537019729614,
-0.03363080322742462,
-0.6677572131156921,
-0.2831611931324005,
0.46828073263168335,
-0.620699942111969,
0.008301435969769... | |
RegexOptions.IgnorePatternWhitespace | RegexOptions.Singleline);
return text;
}
private string ItalicsEvaluator (Match match)
{
return string.Format ("<em>{0}</em>", match.Groups[2].Value);
}
private string BoldEvaluator (Match match)
{
return string.Format ("<strong>{0}</strong>", match.Groups[2].Value);... | [
-0.2088167369365692,
-0.15729589760303497,
0.6699825525283813,
-0.2419070303440094,
0.2156807780265808,
0.11973133683204651,
0.4553934633731842,
-0.6100114583969116,
-0.16760629415512085,
-0.24965542554855347,
-0.46767324209213257,
0.5057666301727295,
-0.5416016578674316,
-0.08467237651348... | |
I do most of my development in Common Lisp, but there are some moments when I want to switch to Scheme (while reading *Lisp in Small Pieces*, when I want to play with continuations, or when I want to do some scripting in Gauche, for example). In such situations, my main source of discomfort is that I don't have Slime (... | [
0.0847296342253685,
0.06050603464245796,
0.19816866517066956,
-0.273678183555603,
-0.06767741590738297,
0.004462643060833216,
0.27231335639953613,
0.14495323598384857,
-0.10534210503101349,
-0.539625883102417,
0.18163174390792847,
0.7650340795516968,
-0.3179149329662323,
-0.166426524519920... | |
symbol-table based (ie. it doesn't have to notice a function I defined in a `let` at once).
* Function argument hints in the minibuffer (if I have typed `(map |)` (cursor position is indicated by `|`)), I'd like to see `(map predicate . lists)` in the minibuffer
* Sending forms to the interpreter
* Integration with a d... | [
-0.09435220807790756,
-0.07057441771030426,
0.2284296602010727,
-0.06115548312664032,
-0.20448657870292664,
0.07638241350650787,
0.18803735077381134,
-0.34118446707725525,
-0.09681692719459534,
-0.7212532758712769,
-0.10690496116876602,
0.34392401576042175,
-0.27635568380355835,
-0.3000279... | |
How do I end a Tkinter program? Let's say I have this code:
```
from Tkinter import *
def quit():
# code to exit
root = Tk()
Button(root, text="Quit", command=quit).pack()
root.mainloop()
```
How should I define the `quit` function to exit my application?
**You should use `destroy()` to close a Tkinter window.... | [
0.3106774091720581,
0.10922733694314957,
0.3007422387599945,
-0.27860748767852783,
0.2500056028366089,
-0.05678713694214821,
0.4633634686470032,
-0.2279631793498993,
-0.1399509161710739,
-0.28654783964157104,
-0.42453733086586,
0.554351270198822,
-0.5577255487442017,
0.30079954862594604,
... | |
`destroy()` command vanishes out `root.mainloop()`, i.e., `root.mainloop()` stops. `<window>.destroy()` ***completely*** destroys and *closes* the window.
So, if you want to exit and close the program completely, you should use `root.destroy()`, as it stops the `mainloop()` and destroys the window and all its widgets.... | [
-0.04873152822256088,
0.010868305340409279,
0.01997264288365841,
-0.18143713474273682,
0.3096548020839691,
-0.308680921792984,
0.6548450589179993,
0.014206144027411938,
-0.3909608721733093,
-0.5004656910896301,
-0.5506488680839539,
0.4904651343822479,
-0.6834486126899719,
0.393747061491012... | |
#do something
```
See [What is the difference between root.destroy() and root.quit()?](https://stackoverflow.com/questions/2307464/what-is-the-difference-between-root-destroy-and-root-quit). | [
0.562396764755249,
-0.2034430205821991,
-0.1505425125360489,
-0.08067148178815842,
-0.12282849848270416,
-0.6017337441444397,
0.7833682298660278,
0.1881875991821289,
-0.16199231147766113,
-0.07510139048099518,
-0.32130900025367737,
0.6859374642372131,
-0.35350775718688965,
0.05951843783259... | |
Seriously. On a 22" monitor, it only covers maybe a quarter of the screen. I need some ammo to axe down this rule.
---
I'm not saying that there shouldn't be a limit; I'm just saying, 80 characters is very small.
I think the practice of keeping code to 80 (or 79) columns was originally created to support people editi... | [
0.4524492621421814,
0.1847115159034729,
0.3586670160293579,
0.19982579350471497,
0.0378076545894146,
0.06451727449893951,
0.31266817450523376,
0.13867636024951935,
-0.46248960494995117,
-0.508861243724823,
0.23435284197330475,
0.3198702931404114,
-0.05940330773591995,
-0.2812930941581726,
... | |
source windows side-by-side or using a side-by-side diff viewer.
* To improve readability. Narrow code can be read quickly without having to scan your eyes from side to side.
I think the last point is the most important. Though displays have grown in size and resolution in the last few years, **eyes haven't**. | [
0.7242470979690552,
0.15730993449687958,
0.4981769621372223,
0.18742045760154724,
-0.25058120489120483,
-0.022091500461101532,
0.116404227912426,
0.35216885805130005,
-0.25457537174224854,
-1.2031995058059692,
0.061230432242155075,
0.5593554973602295,
0.14101184904575348,
0.059238102287054... | |
Has anybody any useful links that can be used to consume a web service using flex?
The easier the solution the better
Thanks
Try <http://livedocs.adobe.com/flex/3/langref/mx/rpc/soap/mxml/WebService.html> for SOAP services. You just have to specify the WSDL location and the event handlers and call the service.
Flex B... | [
0.773201584815979,
0.044840820133686066,
0.2490350604057312,
-0.027995239943265915,
-0.2838398516178131,
-0.20592336356639862,
0.3436047434806824,
-0.22735309600830078,
-0.2655705213546753,
-0.6971163153648376,
0.12085987627506256,
0.7358956933021545,
-0.09367761015892029,
-0.4073797762393... | |
What are the **benefits and drawbacks** with using **Centralized versus Distributed** Version Control Systems (DVCS)? Have you run into any problems in DVCS and how did you safeguard against these problems? *Keep the discussion tool agnostic and flaming to minimum.*
For those wondering what DVCS tools are available, h... | [
0.18052899837493896,
-0.059050388634204865,
0.14444726705551147,
0.14825093746185303,
-0.24785517156124115,
0.008890310302376747,
0.04668360948562622,
0.13585522770881653,
-0.14779603481292725,
-0.5887504816055298,
-0.5072346329689026,
0.6195083856582642,
-0.26182591915130615,
-0.155355677... | |
control systems
> (DVCSs) solve different problems than
> Centralized VCSs. Comparing them is
> like comparing hammers and
> screwdrivers.
>
>
> [Centralized VCS](http://en.wikipedia.org/wiki/Revision_control) systems are
> designed with the intent that there is
> One True Source that is Blessed, and
> therefo... | [
0.22317613661289215,
0.13676083087921143,
0.6099752187728882,
0.48982489109039307,
0.12025648355484009,
0.11426731199026108,
0.05623975768685341,
-0.12002432346343994,
-0.059349481016397476,
-0.691217303276062,
-0.21356737613677979,
0.553206205368042,
-0.2634517550468445,
0.180262103676795... | |
> [Distributed VCS](http://en.wikipedia.org/wiki/Distributed_revision_control) systems are
> designed with the intent that one
> repository is as good as any other,
> and that merges from one repository to
> another are just another form of
> communication. Any semantic value as
> to which repository should be tr... | [
0.3248733878135681,
-0.14251698553562164,
0.12197950482368469,
0.27287033200263977,
-0.005928622558712959,
-0.25807029008865356,
0.025152770802378654,
-0.07596594840288162,
-0.22511598467826843,
-0.7151573300361633,
-0.5715639591217041,
0.13759207725524902,
-0.3524503707885742,
0.302529722... | |
expected to work all over the
> country/world, without secure
> broadband connections to a central
> repository, then DVCS is probably your
> salvation. If you need both, you're
> fsck'd. | [
0.3199596405029297,
-0.24893730878829956,
0.3251380920410156,
0.19873389601707458,
0.45588624477386475,
-0.2460736185312271,
-0.07373776286840439,
0.4276512563228607,
-0.27563992142677307,
-0.8268800973892212,
-0.4705604314804077,
0.476853609085083,
-0.13006843626499176,
-0.052916754037141... | |
**EDIT:** This was formerly more explicitly titled: - "**Best solution to stop Kontiki's KHOST.EXE from loading automatically at start-up on Windows XP?**"
Essentially, whenever the **[40D](http://www.channel4.com/4od/index.html)** application is run it sets up **khost.exe** to automatically start-up with Windows. Thi... | [
-0.2624187469482422,
0.47909995913505554,
0.7327101230621338,
0.18317101895809174,
0.35385382175445557,
0.04876460134983063,
0.32686132192611694,
0.09324763715267181,
-0.3408098518848419,
-0.4322596490383148,
-0.6483550071716309,
0.6586884260177612,
-0.1320706605911255,
0.22989773750305176... | |
be the best solution, but I'm not that up with **.vbs** or **.bat** scripting or where I'd put them to automatically run at an appropriate time.
I know there is a **[TV On-Demand Monitor application](http://odmonitor.blogspot.com/)**, but I don't really need to be running yet another process, I just need to delete the... | [
0.48104217648506165,
-0.15310633182525635,
0.6390529870986938,
-0.1293148696422577,
0.07464710623025894,
-0.28515034914016724,
0.39058080315589905,
0.018071526661515236,
-0.09252654761075974,
-0.7127782702445984,
-0.3221994638442993,
0.8170433640480042,
-0.34415751695632935,
0.359927475452... | |
if you are in a corporate environment you could use a group policy and set it as a machine shutdown script. Alternatively, see this page [here](http://www.msfn.org/board/lofiversion/index.php/t40945.html) about adding it manually | [
0.41254857182502747,
-0.41499924659729004,
-0.11614691466093063,
0.0981491282582283,
0.22806869447231293,
-0.20717713236808777,
0.1184358149766922,
-0.22664082050323486,
-0.36525556445121765,
-0.4187706410884857,
-0.12387916445732117,
0.6536702513694763,
-0.278439462184906,
-0.251711517572... | |
I have a web app which connects to a server using a TCP connection and reads a binary document which it then writes to its response object. In other words it's transferring a file from a backend server using a custom protocol and returning that file to its client through HTTP.
The server sends a status code and a mime... | [
0.4470745921134949,
0.07728353887796402,
0.4183955788612366,
0.004423351958394051,
0.09185833483934402,
0.09805993735790253,
0.047821905463933945,
0.1354869306087494,
-0.10481273382902145,
-0.7704713940620422,
-0.10914572328329086,
0.7251821756362915,
-0.30076420307159424,
0.21252971887588... | |
public void WriteDocument(HttpResponse response)
{
while (stream_.DataAvailable)
{
const int bufsize = 4 * 1024;
byte[] buffer = new byte[bufsize];
int nbytes = stream_.Read(buffer, 0, bufsize);
if (nbytes > 0)
{ | [
0.10548071563243866,
-0.27238354086875916,
0.536622166633606,
-0.30598095059394836,
0.13955490291118622,
0.23881112039089203,
0.5151679515838623,
-0.2837967872619629,
-0.0036557666026055813,
-0.6448372602462769,
-0.259955495595932,
0.5387093424797058,
-0.30001795291900635,
0.02850073948502... | |
if (nbytes < bufsize)
Array.Resize<byte>(ref buffer, nbytes);
response.BinaryWrite(buffer);
}
}
response.End();
}
```
This seems to always exit the read loop before all the data has arrived. What am I doing wrong?
I would | [
0.1446574628353119,
0.12319684773683548,
0.3620188236236572,
-0.48487773537635803,
0.23536548018455505,
0.023899301886558533,
0.5821502208709717,
-0.20326519012451172,
-0.2502974271774292,
-0.49051257967948914,
-0.15464915335178375,
0.38449186086654663,
-0.3888450562953949,
0.5255650877952... | |
use the `OutputStream` directly with a general-purpose function. With the `Stream`, you can control `Flush`.
```
public void WriteDocument(HttpResponse response) {
StreamCopy(response.OutputStream, stream_);
response.End();
}
public static void StreamCopy(Stream dest, Stream src) {
... | [
0.1334599256515503,
-0.42502644658088684,
0.4734463691711426,
-0.3000885248184204,
0.045193664729595184,
0.1832868456840515,
0.24721989035606384,
-0.25290647149086,
-0.16242225468158722,
-0.6288982033729553,
-0.2811773121356964,
0.6043812036514282,
-0.2946423590183258,
0.20267030596733093,... | |
n = src.Read(buffer, 0, buffer.Length);
dest.Write(buffer, 0, n);
}
dest.Flush();
}
``` | [
-0.07082885503768921,
-0.22655804455280304,
0.10896454751491547,
-0.3909052610397339,
0.2378821074962616,
0.21501748263835907,
0.38301369547843933,
-0.2211986780166626,
-0.38980764150619507,
-0.518635630607605,
-0.009216624312102795,
0.33052653074264526,
-0.12219041585922241,
0.36149296164... | |
The background should be transparent, but the text should not.
Enso is open source too.
You can directly peek at they source code.
<http://code.google.com/p/enso/>
Let us know how they do it when you find out!.
**UPDATE**
It looks like they use something called Cairo. If you can link it from C# you're done. | [
0.7568445205688477,
-0.022983143106102943,
-0.266132116317749,
0.2556016445159912,
-0.19894780218601227,
-0.6081088185310364,
0.02488192357122898,
0.46381235122680664,
-0.3409039378166199,
-0.9062423706054688,
-0.47703173756599426,
0.3261842429637909,
-0.11652673780918121,
-0.1871635913848... | |
Now that it's clear [what a metaclass is](https://stackoverflow.com/questions/100003/what-is-a-metaclass-in-python), there is an associated concept that I use all the time without knowing what it really means.
I suppose everybody made once a mistake with parenthesis, resulting in an "object is not callable" exception... | [
0.007204628083854914,
0.13828793168067932,
0.019847869873046875,
-0.016333526000380516,
-0.2844716012477875,
-0.0713818296790123,
0.3714989125728607,
-0.017018551006913185,
-0.28547173738479614,
-0.290907621383667,
-0.24530096352100372,
0.5507680177688599,
-0.25151222944259644,
0.064990960... | |
is of a type that has a non null *tp\_call* (c struct) member which indicates callability otherwise (such as in functions, methods etc.)
The method named `__call__` is ([according to the documentation](https://docs.python.org/3/reference/datamodel.html#object.__call__))
> Called when the instance is ''called'' as a f... | [
-0.3058556318283081,
0.2844712436199188,
0.4170273542404175,
-0.39378485083580017,
0.022863633930683136,
-0.12238959968090057,
0.07192186266183853,
-0.2599417269229889,
-0.13731850683689117,
-0.20918411016464233,
-0.4218468964099884,
0.615892231464386,
-0.4877552092075348,
0.19174820184707... | |
* VMware server 1.0.7 installed with vmware-package
* Debian GNU/Linux testing (lenny)
* Kernel 2.6.26-1-686
There were several compile problems when trying to build the binary kernel modules from the vmware-server-kernel-source package made by vmware-package from the VMware server tarball. Recently VMware has updated... | [
0.24578675627708435,
0.44316524267196655,
0.15272736549377441,
-0.02657320722937584,
-0.22389526665210724,
0.1267259567975998,
0.23445579409599304,
-0.1886201649904251,
-0.21763770282268524,
-0.5456847548484802,
0.044442061334848404,
0.7797783017158508,
-0.3720110058784485,
0.0562306307256... | |
forums are to use vmware-any-any instead, but that has its own problems (see [my other question](https://stackoverflow.com/questions/109877/unknown-ioctl-2062-2065-2066-from-vmmon-when-starting-a-vm-vmware-server-107-fo)).
As you can see from my own answer below, I've solved the problem by fixing the incompatiblities,... | [
0.28598031401634216,
0.20726558566093445,
0.5492982864379883,
0.07017342001199722,
-0.32558608055114746,
-0.31853538751602173,
0.15704432129859924,
0.3275454044342041,
-0.46954309940338135,
-0.402511328458786,
0.002571420045569539,
0.5597781538963318,
-0.05372916907072067,
0.02805081568658... | |
What are some resources in use for marketing downloadable desktop software online? AdWords, certainly, and "organic" search engine results but is anyone having any luck making sales through sites like Tucows and/or Download.com anymorE?
There is not a way to have multiple table data in the same TClientDataSet like you ... | [
0.4098328948020935,
-0.015330943278968334,
0.43865418434143066,
0.6140885949134827,
0.03319954872131348,
-0.23573800921440125,
-0.14591872692108154,
0.09985405206680298,
-0.4303727447986603,
-0.43633395433425903,
0.36914393305778503,
0.4135398864746094,
-0.057384248822927475,
0.14189347624... | |
I have a webservice that when called without specifying a callback will return a JSON string using `application/json` as the content type.
When a callback is specified it will wrap the JSON string in a callback function, so it's not really valid JSON anymore. My question is, should I serve it as `application/javascrip... | [
0.23663455247879028,
0.03204035386443138,
0.42336753010749817,
-0.08347417414188385,
-0.19792011380195618,
-0.07588277012109756,
-0.014892293140292168,
-0.0699993297457695,
-0.2944830060005188,
-0.5348904132843018,
-0.1790400892496109,
0.6674878001213074,
-0.34782880544662476,
-0.006147059... | |
I have an Interbase DB. How can I convert it to SQL Server?
You could use SQL Server built in **Data Transformation Services (DTS)** in SQL Server 2000 or **SQL Server Integration Services (SSIS)** in SQL Server 2005.
Try setting up an **ODBC DSN** for Interbase. Then in DTS / SSIS use the Other (ODBC Data Source) and... | [
0.11458153277635574,
0.048354241997003555,
0.3052122890949249,
0.056589242070913315,
-0.5414168238639832,
-0.12518030405044556,
0.21684010326862335,
-0.08448437601327896,
-0.10987065732479095,
-0.9507961273193359,
0.4887668490409851,
0.28376102447509766,
-0.523590624332428,
0.3690091967582... | |
I'm planning on creating a game that contains a landscape with objects on it. The landscape will be defined using a heightfield, and the objects will move about on top of, and fly over the terrain. If you've ever played the old games [Marble Madness](http://en.wikipedia.org/wiki/Marble_Madness) and [Virus/Zarch](http:/... | [
0.22801488637924194,
0.0643998309969902,
0.1731540709733963,
0.30806025862693787,
0.09614117443561554,
0.1359623819589615,
-0.10081718116998672,
0.15390615165233612,
-0.20255501568317413,
-0.6893249154090881,
0.19281598925590515,
0.3876531422138214,
-0.05994679406285286,
0.2750069200992584... | |
objects on it and then make them roll down the hills, or fly around in the sky. I don't mind making my own code to do this, so any relevant tutorials would be good too.
Here is a more complete list, Xbox, Zune and Windows...
* [Farseer](http://www.codeplex.com/FarseerPhysics) - 2d only.
* [JigLibX](http://www.codeplex... | [
-0.07882110029459,
0.03293053060770035,
0.688053548336029,
0.12788037955760956,
-0.4018818736076355,
0.2518887221813202,
-0.3044070601463318,
-0.24241086840629578,
-0.11507878452539444,
-0.3587914705276489,
-0.1960931271314621,
0.518356442451477,
-0.0652160719037056,
0.21137841045856476,
... | |
I need some sort of interactive chart control for my .NET-based web app. I have some wide XY charts, and the user should be able to interactively scroll and zoom into a specific window on the x axis. Something that acts similar to the google finance control would be nice, but without the need for the date labels or the... | [
0.5985915064811707,
-0.046733323484659195,
0.2230423092842102,
0.43828439712524414,
0.21916568279266357,
-0.24714140594005585,
-0.11253923177719116,
0.5111562609672546,
-0.13046328723430634,
-0.6501827239990234,
0.2968381941318512,
0.40254679322242737,
-0.07781197875738144,
0.1388339549303... | |
tried to use that control for non-date data, but it seems to always want to show a date and demands that the first data column actually be a date.
You could try out [Flotr](http://solutoire.com/flotr/), a nice javascript library. It has pretty decent mouse controls and is free to use. | [
0.18073080480098724,
-0.4226449429988861,
0.4988720715045929,
0.225900799036026,
0.4406595826148987,
-0.3173716962337494,
-0.2108089178800583,
0.4274153709411621,
-0.5442384481430054,
-0.26093676686286926,
0.09169618785381317,
0.12574434280395508,
-0.06869067996740341,
0.10661546885967255,... | |
Should simple JavaBeans that have only simple getters and setters be unit tested??
What about Beans with some logic in getters and setters?
You should not write tests which:
* Test the language or the IDE (i.e. automatically generated getters and setters)
* Add no value to your test harness and kill your enthusiasm ... | [
0.41702401638031006,
0.07592456787824631,
-0.3214583694934845,
0.35199615359306335,
-0.057757675647735596,
-0.15395128726959229,
0.4149288833141327,
-0.17274391651153564,
-0.14579303562641144,
-0.487770140171051,
-0.0013527568662539124,
0.5230645537376404,
-0.3564591705799103,
-0.360599398... | |
tests for classes with complex state and behaviour.
If your JavaBean becomes more interesting you can of course add a test case later. One of the common problems associated with Unit Testing / TDD is the mistaken belief that everything has to be perfect first time. | [
0.3125883936882019,
-0.23001950979232788,
-0.39930853247642517,
0.4057805836200714,
-0.073158398270607,
-0.30707278847694397,
0.6738150715827942,
0.004924350883811712,
0.08435533940792084,
-0.3796425461769104,
-0.27944958209991455,
0.442934513092041,
-0.16250188648700714,
0.020962418988347... | |
It's a part of larger code base, which forces -Werror on gcc. This warning is generated in a third party code that shouldn't be changed (and I actually know how to fix it), but I can disable specific warnings. This time man gcc failed me, so please, let some gcc master enlighten me. TIA.
It is the *-Wno-unused-value* o... | [
0.3441164195537567,
0.10602577775716782,
0.32157352566719055,
0.028203865513205528,
0.2346242219209671,
-0.2895318567752838,
0.32337844371795654,
-0.2039969265460968,
-0.3438589572906494,
-0.3499417006969452,
-0.10557771474123001,
0.5812664031982422,
-0.29230958223342896,
0.157726839184761... | |
I'm working on serial port, transmitting and receiving data to some hardware at 8bit data. I would like to store it as string to facilitate comparison, and preset data are stored as string or hex format in xml file. I found out that only when using Encoding.Default which is ANSI encoding then the 8bit data is converted... | [
0.2659614384174347,
0.1280154436826706,
0.5289276242256165,
0.15277351438999176,
0.11450546234846115,
0.18991628289222717,
-0.116090327501297,
0.01308254525065422,
-0.1576651632785797,
-0.7911189198493958,
-0.06366182863712311,
0.54546719789505,
-0.17552685737609863,
0.1994798630475998,
... | |
setting, which means it might behave differently on different codepage configured. I use GetBytes() and GetString extensively using the Encoding, but would like a failsafe and portable method that works all the time at any configuration. Any idea or better suggestion for this?
Latin-1 aka ISO-8859-1 aka codepage 28591 ... | [
-0.16470550000667572,
-0.05842191353440285,
0.33947595953941345,
-0.20331403613090515,
-0.03862100467085838,
0.048104990273714066,
0.27486103773117065,
0.02480161190032959,
-0.007027401123195887,
-0.7075592279434204,
-0.28089478611946106,
0.5705077648162842,
-0.44338127970695496,
-0.056476... | |
Console.WriteLine("Test Latin1 Encoding returned {0}", TestEncoding(Encoding.GetEncoding("Latin1")));
Console.ReadLine();
return;
}
private static bool CompareBytes(char[] chars, byte[] bytes)
{
bool result = true;
if (chars.Length != bytes.Length)
{
Console.WriteLine("Length mismatch {0} b... | [
-0.2186812162399292,
-0.1397785097360611,
0.5437175035476685,
-0.12471126765012741,
0.15401674807071686,
0.2954755127429962,
0.36662182211875916,
-0.299076646566391,
0.3525916635990143,
-0.5648112893104553,
-0.3503204882144928,
0.5134049654006958,
-0.056119080632925034,
0.3493877947330475,... | |
if (charValue != (int)bytes[i])
{
Console.WriteLine("Byte at index {0} value {1:X4} does not match char {2:X4}", i, (int) bytes[i], charValue);
result = false;
}
}
return result;
}
private static bool TestEncoding(Encoding encoding)
{
byte[] inputBytes = new byte[256]... | [
0.03340224549174309,
-0.08784293383359909,
0.18834538757801056,
-0.20813080668449402,
0.2673199772834778,
0.22727517783641815,
0.3697415888309479,
-0.3714802861213684,
0.3790922462940216,
-0.42022302746772766,
-0.36773526668548584,
0.5140710473060608,
-0.2150750309228897,
0.166902258992195... | |
{
inputBytes[i] = (byte) i;
}
char[] outputChars = encoding.GetChars(inputBytes);
Console.WriteLine("Comparing input bytes and output chars");
if (!CompareBytes(outputChars, inputBytes)) return false;
byte[] outputBytes = encoding.GetBytes(outputChars);
Console.WriteLine("Comparing out... | [
-0.1673058718442917,
0.18694253265857697,
0.32365697622299194,
-0.3256433308124542,
-0.024311980232596397,
0.4503225088119507,
0.24337689578533173,
-0.2401750236749649,
0.06784501671791077,
-0.8037868738174438,
-0.3817855417728424,
0.5875185132026672,
-0.33111441135406494,
0.25490808486938... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.