text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I have an string array filled with words from a sentence. ``` words[0] = "the" words[1] = "dog" words[2] = "jumped" words[3] = "over" words[4] = "the" words[5] = "wall." words[6] = "the" words[7] = "cat" words[8] = "fell" words[9] = "off" words[10] = "the" words[10] = "house." ``` etc. (Stupid example, but it works ...
[ 0.1411738246679306, 0.18859194219112396, 0.2779962718486786, -0.2876143753528595, -0.2613878846168518, 0.24380221962928772, 0.6442562341690063, -0.46735963225364685, 0.005693327635526657, -0.7170696258544922, -0.3000760078430176, 0.01670481264591217, 0.006570557598024607, 0.279458552598953...
be something like: "the cat fell off the dog". I tried implementing a map (map myMap;) but this allows only one value per key (I think). Hope I explained this right. you can use a multimap from the STL and use the call ``` pair<iterator, iterator> equal_range(const key_type& k) ``` to get a range of iterators tha...
[ 0.3191559612751007, -0.3929729759693146, 0.3882308006286621, -0.15652260184288025, -0.17459385097026825, 0.2438540905714035, 0.04154662415385246, -0.3803369402885437, -0.2536614239215851, -0.6185669898986816, 0.11305548250675201, 0.4608338475227356, -0.3310233950614929, 0.02526608482003212...
the vector.
[ -0.1549176275730133, -0.10482639819383621, 0.24743421375751495, 0.19847938418388367, -0.22608759999275208, 0.3710624575614929, -0.3878083825111389, -0.017814962193369865, -0.17313803732395172, -0.37351876497268677, 0.03516445308923721, 0.2548394799232483, -0.3934905529022217, 0.17645327746...
I am working in SQL 2005 (I think), SQL Query Analyzer Version SQL 8.00.760. I would like to write a query that returns a count into a Crystal Report from a table only if the due date exceeds 14 days based on the end date in the report search. Based on my very limited understanding of SQL, I have come up with the foll...
[ 0.22020520269870758, -0.044636793434619904, 0.7469046115875244, -0.23547813296318054, -0.2402387261390686, -0.155514657497406, 0.19542278349399567, -0.27085909247398376, -0.27789735794067383, -0.46364688873291016, 0.17942456901073456, 0.15354867279529572, -0.06575053185224533, 0.3004880547...
is not correct, but I am unsure what should be done differently....the error returned was Line 5: Incorrect syntax near 'count'. Thanks in advance. I think you want something like this: ``` SELECT COUNT(*) FROM Task_ConditionAssessment T WHERE DATEDIFF(dd,T.NextDueDate,@enddate) > 14 ```
[ 0.25901132822036743, -0.054966140538454056, 0.36001071333885193, 0.03867487609386444, 0.2579669654369354, 0.1710198074579239, 0.2557767331600189, 0.04808179661631584, -0.09990829974412918, -0.47005757689476013, 0.0660099908709526, 0.29706981778144836, -0.0227730143815279, 0.044996395707130...
zend framework has many components/services I don't need, it has many includes. All this I think slow down application. Do you know how to speed up it? may be remove not used(what is common) components, or combine files to one file? 1. [APC](http://www.php.net/manual/en/book.apc.php) or [eAccelerator](http://eacceler...
[ -0.056403957307338715, 0.12309899926185608, 0.41423511505126953, 0.00490809278562665, -0.2337067723274231, -0.07636196166276932, 0.28115054965019226, -0.7401208877563477, -0.0678202360868454, -0.7194278836250305, -0.1586793214082718, 0.5882129073143005, -0.15114612877368927, -0.05575681105...
connection pooling, if avaliable.
[ -0.1670539528131485, -0.029949555173516273, 0.4258691072463989, 0.35380640625953674, -0.247497096657753, -0.10063857585191727, 0.04107217863202095, -0.1835101693868637, -0.2540258467197418, -0.583400547504425, 0.19776993989944458, 0.013801767490804195, -0.056937020272016525, 0.081980966031...
I'm unclear about legal status of utilizing an algorithm from a published academic paper. Is there an implicit patent over that material? How about open source applications? Would it be ok to implement that algorithm in an open source app, with one of free software licenses? Let's say I have access to paper A which d...
[ 0.5763258934020996, 0.2150987684726715, 0.3346356749534607, 0.19579289853572845, 0.34169384837150574, -0.14711901545524597, 0.17136768996715546, 0.02978457510471344, -0.2826068699359894, -0.27478668093681335, 0.03586704656481743, 0.31713390350341797, -0.007853812538087368, 0.35477170348167...
need to evaluate the IP restrictions for each paper. One of the more famous situations where the algorithm described in an academic paper was ultimately encumbered by a patent as the RSA asymmetric encryption algorithm. A paper, "On digital signatures and public-key cryptosystems", was published in an ACM journal in 1...
[ -0.07908844202756882, 0.1299990564584732, -0.008115549571812153, 0.15154273808002472, 0.038519300520420074, -0.40090110898017883, -0.0796312466263771, -0.22912056744098663, -0.39289557933807373, 0.07994624227285385, -0.012980092316865921, 0.3913661241531372, -0.2228928506374359, 0.14314389...
The patent became a rather big issue with PGP, for example. MIT/RSADSI ultimately permitted free use of the patent for non-commercial use, I believe. A similar situation occurred with the [LZW compression](http://en.wikipedia.org/wiki/GIF#Unisys_and_LZW_patent_enforcement).
[ 0.37641802430152893, 0.054630253463983536, 0.2762647867202759, 0.13880985975265503, 0.06101038306951523, -0.13713647425174713, -0.3953239917755127, 0.12218679487705231, -0.1506728082895279, -0.16393853724002838, -0.24843019247055054, 0.25445500016212463, 0.09774260222911835, 0.465965688228...
I use a factory pattern to create a custom object which is loaded from a cache if possible. There are no static members or functions on the custom object. Assuming 2 threads call the factory and are both returned references to the same object from the cache. (i.e. No new operator, in ref to answer below, object return...
[ 0.23598720133304596, -0.13747666776180267, 0.2518821060657501, -0.2099749594926834, -0.06777682155370712, 0.222166508436203, 0.42439717054367065, -0.1572950780391693, -0.15414126217365265, -0.7220767736434937, -0.0659104660153389, 0.31578052043914795, -0.5035421252250671, 0.210316255688667...
different instances of the class. Have I must something fundamental here? Why do I feel like I have? =============== Following the first few answers I have confirmed what I thought, thanks. I guess what I really want to know is, if the objects are pretty much only read-only, i.e. after being created they only have ...
[ 0.10760261118412018, -0.03156953677535057, -0.0634148046374321, 0.34629297256469727, -0.3587392270565033, 0.01244561467319727, 0.5126198530197144, 0.26443713903427124, -0.2835347056388855, -0.7700494527816772, 0.02659396082162857, 0.4914141297340393, 0.04051939770579338, 0.4539576470851898...
primitive types, string and object references is atomic (everything except non-volatile longs and doubles). This means locks are not necessary if you are simply reading or writing a field or other variable in isolation. So, if you ever see code like this (and I guaranteee you will), you can happily strip out the unnece...
[ 0.45670223236083984, 0.05181470513343811, -0.0034289793111383915, -0.1034553050994873, 0.24307182431221008, -0.35727643966674805, 0.24729809165000916, 0.16178174316883087, -0.04705888032913208, -0.28447747230529785, -0.2005591094493866, 0.6015951633453369, -0.4316950738430023, 0.2481618225...
} } set { lock (someLock) { someField = value; } } } ``` If, however, you want to change the value, increasing it by one for example, or if you want to read multiple, related variables then you need to lock if you want sensible results. It is also worth noting tha...
[ 0.14589108526706696, 0.03276967629790306, -0.07887985557317734, -0.16597449779510498, 0.1821557879447937, -0.22256623208522797, 0.06033206731081009, -0.0488257110118866, -0.3400629460811615, -0.31969624757766724, -0.11483650654554367, 0.481785386800766, -0.45392560958862305, 0.166878402233...
Dictionary support mulitple concurrent readers without the need for any kind of locking.
[ -0.18571966886520386, 0.00017877314530778676, 0.22460028529167175, 0.19902129471302032, -0.16326352953910828, -0.04630621522665024, 0.31301307678222656, 0.12159153819084167, -0.021725017577409744, -0.5789713859558105, -0.24883832037448883, 0.7213294506072998, -0.35533297061920166, 0.037722...
For example, in Fallout 3, a save game stores the state and location of every single object and NPC in the game, and only takes up a few MB's. How do they do that!?!? And then, during game play, how is this data added/retrieved in/from memory such that it can be displayed to the player in real-time? **UPDATED:** (I'm...
[ 0.2083459496498108, -0.18734487891197205, 0.03370341658592224, 0.3904917538166046, 0.27368462085723877, 0.008039467968046665, 0.1217237040400505, -0.2451023906469345, -0.06788800656795502, -0.4266435503959656, -0.10115239769220352, 0.08916053920984268, -0.11857930570840836, -0.342626392841...
of data store would you use in order to get these objects? In other words, you would you have a gigantic array of every object in the game, and constantly update a smaller list that holds the visible objects to render? Also, per Chaos' answer... Would would happen if you eventually touched every object in the game? W...
[ -0.02048148401081562, -0.34150928258895874, 0.15901149809360504, 0.3721562623977661, -0.08847377449274063, -0.15964879095554352, 0.13689540326595306, -0.2627263069152832, -0.29193544387817383, -0.2954217493534088, 0.12046214938163757, 0.48165515065193176, -0.3098576068878174, 0.30514705181...
implemented? With all the big hardisks nowaday, even developers seem to forget how many bytes there are in a megabyte. So to answer the question in the title: games store large amounts of data by creating savegames that are several megabyte large. To illustrate how big a megabyte is, it's 8 million bits. That is suffi...
[ 0.2702540457248688, -0.2696298658847809, 0.05948813632130623, 0.42840319871902466, 0.07357237488031387, 0.17112469673156738, 0.1762208640575409, -0.233564093708992, -0.5566134452819824, -0.5700419545173645, -0.09273216128349304, 0.3868468105792999, -0.37779298424720764, -0.0120357526466250...
Their position in a town might be saved as 16 bits (do you remember their *exact* position if they're walking around anyway?). Their mood/disposition/etc as another 8 bits, and that allows for more emotions then some people have. When it comes to storing this kind of data in-game, the typical datastructure is a QuadTr...
[ -0.06658723205327988, -0.27074798941612244, 0.06901359558105469, 0.687160074710846, -0.11999461054801941, 0.06679768115282059, 0.3032270669937134, -0.031841497868299484, -0.2824212610721588, -0.5877147912979126, -0.26232433319091797, -0.2404862642288208, -0.1204160526394844, -0.08650855720...
visibility pre-calculated; for each point one could determine quickly to which zone it belonged, and for each zone the amount of visible objects was pre-calculated. This reduced the amount of objects that needed runtime visibility checks.
[ -0.06870381534099579, -0.31540489196777344, 0.42195361852645874, 0.1042713150382042, -0.2908779978752136, 0.1016496941447258, 0.3774777948856354, -0.15507397055625916, -0.19328412413597107, -0.5071874260902405, -0.3010703921318054, 0.03604549914598465, -0.1605168730020523, -0.2246715575456...
Say I am echoing a large amount of variables in PHP and I wont to make it simple how do i do this? Currently my code is as follows but it is very tedious work to write out all the different variable names. ``` echo $variable1; echo $variable2; echo $variable3; echo $variable4; echo $variable5; ``` You will notice th...
[ 0.48242655396461487, 0.3210085928440094, 0.21702569723129272, -0.2700670063495636, -0.4116112291812897, 0.14844578504562378, 0.5378865003585815, -0.42814192175865173, -0.16350015997886658, -0.034772250801324844, 0.538843035697937, 0.35561099648475647, -0.3667355477809906, 0.309924989938735...
Stanni You could use [Variable variables](http://us.php.net/language.variables.variable): ``` for($x = 1; $x <= 5; $x++) { print ${"variable".$x}; } ``` However, whatever it is you're doing there is almost certainly a better way: probably using Arrays.
[ 0.07971159368753433, -0.24777577817440033, 0.32632237672805786, 0.17519180476665497, -0.11276497691869736, 0.0713621973991394, 0.22192227840423584, 0.017583824694156647, -0.2771848738193512, -0.49849042296409607, 0.22285142540931702, 0.7096611857414246, -0.240566223859787, 0.04050919041037...
I would like to export a GridView to excel, which is easy enough. But above the grid, in Excel, I would like some other information for identification. Can I somehow export things other than gridviews while then putting in the gridview below? **Edit:** For some reason when the GridView1 is visible and I try to export,...
[ 0.2988668978214264, 0.06149699166417122, 0.7318887114524841, -0.22612397372722626, -0.2120313048362732, -0.07241616398096085, 0.2580614984035492, -0.30083730816841125, -0.07799819856882095, -0.9544598460197449, -0.04804101586341858, 0.620925784111023, -0.3594307601451874, 0.125201225280761...
As New System.Web.UI.HtmlTextWriter(sw) 'Clear the Response object's content and specify the header for the HTML response and type of application file to create Response.ClearContent() Response.AddHeader("content-disposition", "attachment; filename=SaveFile.xls") Response.ContentType = "application/vnd...
[ 0.16364258527755737, -0.25115838646888733, 0.9127258658409119, -0.21232180297374725, -0.282520055770874, 0.36245089769363403, 0.4697192311286926, -0.6538099646568298, -0.11808449029922485, -0.6774803996086121, -0.3759610652923584, 0.35932657122612, -0.40351787209510803, -0.0635886043310165...
'Turn sorting and paging off and rebind the GridView control GridView1.AllowSorting = False GridView1.AllowPaging = False GridView1.PageSize = GridView1.Rows.Count GridView1.AutoGenerateSelectButton() = False GridView1.DataBind() 'Render the GridV...
[ 0.024413954466581345, -0.21405893564224243, 0.4720379412174225, -0.23832891881465912, -0.13561245799064636, 0.23804359138011932, 0.5309704542160034, -0.3192504644393921, -0.0328495129942894, -0.5839005708694458, -0.3333157002925873, 0.3163171410560608, -0.4663194715976715, 0.08814892172813...
error that will fire the VerifyRenderingInServerForm event -- this event is trapped by the Overriding sub procedure given at the end of the program listing GridView1.RenderControl(htw) 'Write the response Response.Write(sw.ToString()) Response.End() 'Turn so...
[ -0.05959812179207802, -0.15791857242584229, 0.5968347787857056, -0.27168866991996765, -0.1424528956413269, 0.09439042210578918, 0.5918241143226624, -0.4245181977748871, 0.1535150408744812, -0.642153263092041, -0.3566231429576874, 0.6659788489341736, -0.16268818080425262, -0.069486677646636...
GridView1.AllowSorting = True GridView1.AllowPaging = True '.GridView1.PageSize = 10 GridView1.AutoGenerateSelectButton() = True GridView1.DataBind() End If Catch ex As Exception End Try End Sub ``` Yes you can. Do something like this: ``` HttpContext...
[ 0.13084813952445984, -0.35522717237472534, 0.8242769837379456, -0.16824597120285034, 0.009774673730134964, -0.22004348039627075, 0.520442545413971, -0.32368403673171997, 0.14459693431854248, -0.8745167255401611, -0.4063113033771515, 0.650892436504364, -0.02899494394659996, -0.1150037050247...
I'm looking for a fast and easy way to plot arbitrarily colored pixels in an SWT Canvas. So far I'm using something like that: ``` // initialization: GC gc = new GC(canvas); // inside the drawing loop: Color cc = new Color(display, r, g, b); gc.setForeground(cc); gc.drawPoint(x, y); cc.dispose(); ``` This is horrib...
[ 0.5790019035339355, 0.020883476361632347, 0.5667169690132141, 0.08224745839834213, -0.09263081103563309, 0.1769694983959198, -0.41104599833488464, -0.295667439699173, -0.25034278631210327, -0.9528030753135681, 0.3244979679584503, 0.5070141553878784, -0.1330559104681015, 0.16535301506519318...
images where you gradually fill the 300x300 area. This way you can control how fast the image should appear.
[ 0.01297981757670641, -0.24312278628349304, 0.7139264941215515, 0.3656620681285858, -0.011257906444370747, 0.025497304275631905, -0.1056482270359993, 0.21244917809963226, -0.33796146512031555, -0.8853579759597778, 0.16600725054740906, 0.36273816227912903, -0.011171852238476276, -0.068156227...
The JavaDoc of [`ConcurrentHashMap`](http://java.sun.com/javase/6/docs/api/java/util/concurrent/ConcurrentHashMap.html) says this: > Like `Hashtable` but unlike `HashMap`, this class does *not* allow `null` to be used as a key or value. My question: Why? 2nd question: Why doesn't `Hashtable` allow null? I've used a...
[ -0.2423732727766037, 0.10091317445039749, -0.11430428922176361, 0.2200331687927246, -0.3574066460132599, -0.24360713362693787, 0.4029945731163025, 0.12179189920425415, -0.6601879596710205, -0.403971791267395, 0.15615923702716827, 0.014437370002269745, -0.5798068046569824, 0.307332783937454...
you > can't detect whether the key explicitly maps to `null` vs the key isn't > mapped. In a non-concurrent map, you can check this via > `map.contains(key)`, but in a concurrent one, the map might have changed > between calls.
[ -0.09224823117256165, -0.3569897413253784, -0.009172306396067142, 0.3515082597732544, -0.1802247166633606, -0.31008246541023254, 0.41247743368148804, 0.07333523035049438, -0.26777106523513794, -0.9236061573028564, -0.16050733625888824, 0.3638707995414734, -0.41707757115364075, 0.2301291972...
What is the recommended way to escape HTML to prevent XSS vulnerabilities in Rails apps? Should you allow the user to put any text into the database but escape it when displaying it? Should you add before\_save filters to escape the input? There are three basic approaches to this problem. 1. use `h()` in your views. ...
[ 0.11006875336170197, 0.11297842860221863, 0.2846740186214447, 0.07002855092287064, -0.031128287315368652, -0.24883203208446503, 0.4696466028690338, -0.3405763506889343, -0.2587633430957794, -0.5776951313018799, -0.1087297722697258, 0.6441922783851624, -0.5720120072364807, -0.14523619413375...
downsides here are (a) if there's a bug in the escaping code, you could get XSS in your database; and (b) There are corner cases where you'll still want to use `h()`. 3. Use a plugin that escapes content when it is displayed. [CrossSiteSniper](http://xss.rubyforge.org/) is probably the best known of these. This aliases...
[ 0.2761419415473938, 0.1954754739999771, 0.007498451042920351, -0.03325434774160385, 0.005836828611791134, -0.34393009543418884, 0.5904791355133057, 0.17277579009532928, -0.3257153630256653, -0.5326288342475891, 0.24757523834705353, 0.4665509760379791, -0.6650511622428894, 0.228821650147438...
why you can't use xss\_terminate and CrossSiteSniper at the same time. There's also a ERb implementation called [Erubis](http://www.kuwata-lab.com/erubis/) that can be configured so that any call like `<%= foo.name %>` is escaped -- the equivalent of `<%= h(foo.name) %>`. Unfortunately, Erubis always seems to lag behi...
[ -0.016422679647803307, -0.10278192162513733, -0.30924275517463684, -0.06100942939519882, -0.12506024539470673, -0.025011923164129257, 0.49024131894111633, -0.18381449580192566, -0.06835726648569107, -0.6291134357452393, 0.06919774413108826, 0.33741429448127747, -0.6327288746833801, -0.0872...
I'm using tkinter with Python to create a user interface for a program that converts Excel files to CSV. I created a label to act as a status bar, and set statusBarText as a StringVar() as the textvariable. inputFileEntry and outputFileEntry are textvariables that contain the input and output file paths. ``` def conv...
[ 0.18447260558605194, 0.04983237385749817, 0.7559726238250732, -0.2337551712989807, -0.0518658310174942, 0.05795159563422203, 0.22458085417747498, -0.5753715634346008, -0.012626375071704388, -0.6560344099998474, -0.03391570970416069, 0.5693894624710083, -0.39503973722457886, 0.0495229326188...
statusBarText.set('Conversion Successful!') else: statusBarText.set('Conversion Failed!') ``` This function gets called when you click the convert button, and everything is working fine EXCEPT that the status bar never changes to say 'Converting...'. The status bar text will get changed to invalid parame...
[ 0.020728858187794685, 0.0875905305147171, 0.5012802481651306, -0.2934581935405731, 0.09586851298809052, 0.07349727302789688, 0.5914290547370911, 0.031041616573929787, -0.0343501903116703, -0.6036613583564758, -0.11096790432929993, 0.8529596328735352, -0.3408896028995514, 0.1336753368377685...
it just never changes before the subprocess runs when its at the top of the function. Any help would be greatly appreciated. Since you're doing all of this in a single method call, the GUI never gets a chance to update before you start your sub process. Check out update\_idletasks() call... from <http://infohost.nmt.e...
[ 0.10415731370449066, -0.11020170897245407, 0.7729527354240417, -0.1885262280702591, 0.17484156787395477, 0.002023914363235235, 0.13741706311702728, -0.040180403739213943, -0.6730839014053345, -0.738303542137146, -0.3549257516860962, 0.8923879265785217, -0.3187037706375122, -0.0193700883537...
to be updated before the application next idles, call the w.update\_idletasks() method on any widget.
[ 0.6609480381011963, -0.1799532026052475, 0.4647679924964905, -0.0656670406460762, 0.48743122816085815, -0.38486048579216003, 0.18095120787620544, 0.13774126768112183, 0.0035667114425450563, -0.901871919631958, -0.323540598154068, 0.8030170202255249, -0.24753211438655853, 0.1617098748683929...
Is there an easy way to reference a column in a 2-D array as a separate 1-D array in *plain old C* (not C++ or C#)? It's easy to do this for a row. Asssume I have 2 functions: ``` double doSomethingWithARow( double theRow[3] ); double doSomethingWithACol( double theCol[100] ); ``` Then, I might use the first one lik...
[ 0.0709763839840889, 0.044547781348228455, 0.5522335767745972, -0.2912902235984802, 0.03579645976424217, 0.17351208627223969, 0.07366520911455154, -0.6355064511299133, -0.059910327196121216, -0.5164631605148315, 0.26174789667129517, 0.6224786639213562, -0.23113684356212616, -0.2129001915454...
a column easily. ``` for( int j=0; j < 3; j++ ) { result = doSomethingWithACol( ??????????? ); } ``` The only thing I've come up with so far is transforming the matrix to swap the rows with the columns. But this code is supposed to be as efficient as possible in terms of memory and speed. With all of the convolu...
[ -0.03670317307114601, 0.04788742586970329, 0.6947819590568542, -0.23439809679985046, -0.0016548665007576346, 0.2558303475379944, 0.3424326777458191, -0.5996897220611572, -0.050120461732149124, -0.7863519191741943, 0.14576506614685059, 0.6349265575408936, -0.27389946579933167, -0.2040312588...
int col, double val) { for(size_t i = 0; i < ROWS; ++i) (*row)[i][col] = val; } void doSomethingToAllColumns(double (*col)[ROWS][COLUMNS], int row, double val) { for(size_t i = 0; i < COLUMNS; ++i) (*col)[row][i] = val; } int main(int argc, char **argv) { double matrix[ROWS][COLUMNS]; ...
[ -0.0603974349796772, -0.005880105774849653, 0.6834009885787964, -0.4401203989982605, 0.028434911742806435, 0.5729984641075134, 0.46875664591789246, -0.5805922746658325, -0.17162255942821503, -0.47578006982803345, -0.1678362637758255, 0.6951263546943665, -0.4322834312915802, 0.0321763008832...
3 */ doSomethingToAllRows(&matrix, 10, 3); return 0; } ``` It is completely wrong to pass a double \*\* for this reason: ``` void test() { double **a; int i1 = sizeof(a[0]);//i1 == 4 == sizeof(double*) double matrix[ROWS][COLUMNS]; int i2 = sizeof(matrix[0]);//i2 == 240 == COLUMNS * sizeof(double) ...
[ 0.34752416610717773, 0.05330964922904968, 0.14759649336338043, -0.22366873919963837, -0.11033500730991364, 0.10306605696678162, 0.760202944278717, -0.8441303968429565, -0.05855974182486534, -0.5631832480430603, 0.05977896973490715, 0.5353163480758667, -0.3673180043697357, -0.06313733756542...
I want to back up all the hidden files and directories in my homedir using rsync, but not the non-hidden files and directories. For example, given this directory listing: ``` drwxr-xr-x 7 sophie sophie 238 31 Mar 08:45 . drwxr-xr-x 15 sophie sophie 510 31 Mar 08:14 .. -rw-r--r-- 1 sophie sophie 4 31 Mar ...
[ 0.31256863474845886, 0.11781396716833115, 0.46618160605430603, -0.08429659157991409, -0.0922132357954979, 0.3478882312774658, 0.4726288616657257, -0.15585659444332123, -0.2766508460044861, -0.20295627415180206, -0.16163194179534912, 0.5815913081169128, 0.0022049827966839075, -0.02927860431...
Mar 08:13 VisibleFile ``` I want to back up .foo, .hiddendir, and all the contents of .hiddendir whether they are hidden or not. I don't want to back up VisibleDirectory or VisibleFile. All the incantations I have come up with back up ".", and therefore all its contents including VisibleFile and VisibleDirectory, an...
[ 0.18220952153205872, 0.11221842467784882, 0.7610671520233154, -0.20541849732398987, 0.06952930241823196, -0.048653844743967056, 0.7274044156074524, -0.07558984309434891, -0.20900212228298187, -0.7861207723617554, -0.28604209423065186, 0.6487924456596375, -0.3672894239425659, -0.15164394676...
with more than one dot.
[ 0.324943482875824, -0.29327118396759033, 0.5198653936386108, 0.05413828045129776, -0.09639400988817215, 0.1803571730852127, -0.16363593935966492, 0.16943801939487457, -0.4897150695323944, -0.5268018245697021, 0.18388661742210388, -0.015256672166287899, -0.6033572554588318, 0.21669185161590...
How can I generate a bitmap of a control on a winform using C#? You might try [Control.DrawToBitmap()](http://msdn.microsoft.com/en-us/library/system.windows.forms.control.drawtobitmap.aspx).
[ 0.1200617253780365, -0.4096776843070984, 0.29119738936424255, 0.3207564353942871, 0.012822810560464859, -0.2768374979496002, -0.02829611673951149, -0.14199553430080414, 0.0006356213707476854, -0.45761099457740784, 0.12216848880052567, 0.5013999938964844, -0.2688368856906891, -0.17997172474...
Just starting out using model view controller design pattern in a mobile application and I have a quick query. Basically if I have a listview control on my view and my controller needs to access properties on the listview when an action is performed, like the items checked and the listviewitem vales, do I just expose ...
[ 0.38456982374191284, -0.30714669823646545, 0.39309564232826233, 0.13595885038375854, -0.10894898325204849, -0.060583509504795074, -0.012779190205037594, -0.27508148550987244, -0.2775230407714844, -0.6855466365814209, 0.22320421040058136, 0.5992974638938904, -0.2907528281211853, 0.311596244...
designing UI using MVC/MVP. Do not jump too early to designing controls. BTW: I recommend using MVP instead of MVC. See an example code using MVP on Winforms: [Implementing MVC with Windows Forms](https://stackoverflow.com/questions/654722/implementing-mvc-with-windows-forms/685722#685722) Here are some links that ca...
[ -0.16571739315986633, -0.2179921716451645, 0.345840722322464, 0.08609748631715775, -0.32953983545303345, 0.016729900613427162, 0.13431787490844727, -0.09907928109169006, -0.33874526619911194, -0.8284196257591248, -0.003973153419792652, 0.192073792219162, -0.3698979914188385, -0.17891168594...
I'm putting a large codebase into Team Foundation Server. I would like the build process to create a "ready to deploy" build of our projects. The normal way we've been doing this is to have each project's output be in its own folder. So, for example, we wind up with something like ``` C:\project1\ assembl...
[ 0.40531933307647705, 0.058329757302999496, -0.1925445944070816, -0.16365854442119598, 0.017474044114351273, -0.19294673204421997, -0.16639328002929688, -0.11092574894428253, -0.09266610443592072, -0.5953845977783203, -0.15263032913208008, 0.218088299036026, -0.2674383223056793, -0.24213260...
assembly2.dll assembly3.dll project2.exe project2.exe.config C:\project3\ assembly1.dll assembly3.dll project3.exe project3.exe.config ``` Which is the way we like
[ -0.17963312566280365, -0.1958577185869217, 0.3648871183395386, -0.3000636696815491, -0.1805419623851776, 0.23486141860485077, 0.06533221900463104, -0.20768319070339203, -0.2614072859287262, -0.5137319564819336, -0.4282909631729126, 0.044799599796533585, -0.7044445276260376, -0.006741777528...
it. TFS, though, seems to want to stick everything in the same directory. ``` C:\output\ assembly1.dll assembly2.dll assembly3.dll project1.exe project1.exe.config project2.exe project2.exe.config project3.exe
[ 0.05010735243558884, -0.23191453516483307, 0.39693912863731384, -0.26949799060821533, -0.07138291746377945, -0.09935907274484634, 0.02727249264717102, -0.057243358343839645, -0.2680608332157135, -0.7274743914604187, -0.3954147696495056, 0.20509658753871918, -0.5008267760276794, 0.282830387...
project3.exe.config ``` which, although it saves some amount of disk space (the assemblies are only there one time each) is not how we want it. What's the best way to specify where TFS/MSBuild should put the output files? Do I need to edit sln/csproj files individually to achieve this or can I do it in the TFSBuild...
[ 0.34818917512893677, 0.027231594547629356, 0.27301254868507385, -0.11501993983983994, -0.39182189106941223, -0.29951682686805725, 0.5388444066047668, -0.546918511390686, -0.4521890878677368, -0.4735545217990875, 0.029035771265625954, 0.3564101755619049, -0.25537049770355225, -0.25955688953...
this Patterns and Practices PDF, Team Development with TFS Guide. If you then configure the TFS build server to build this solution, it’s default behaviour is to place the build output into a single folder, ‘Release’. Any web application projects in your solution will also be output to a folder called \_PublishedWebsi...
[ 0.3241473138332367, -0.005572272464632988, 0.2510245144367218, 0.07741764187812805, 0.13366718590259552, -0.30919381976127625, 0.22560694813728333, -0.1876089721918106, -0.33037689328193665, -0.6010248064994812, -0.14213286340236664, 0.5040420889854431, -0.37100929021835327, -0.07626962661...
selected project(s). Fortunately it’s not that hard to do. The way \_PublishedWebsites works is pretty simple. If you look at the project file of your web application you’ll notice an import near the bottom: ``` <Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v9.0\WebApplications\Microsoft.WebApplica...
[ 0.24895836412906647, -0.005724212620407343, 0.49233511090278625, -0.03372856602072716, -0.2847164571285248, 0.12935326993465424, -0.022893182933330536, -0.2628824710845947, -0.17916612327098846, -0.8622117638587952, 0.07066229730844498, 0.25477659702301025, -0.21175621449947357, 0.16388309...
\_PublishedWebsites to \_PublishedApplications and renamed the file CI.exe.targets. For each project that I want to output to \_PublishedApplications, I simply added this import at the bottom of the project file: ``` <Import Project="<your relative path>\CI.exe.targets" /> ``` You can edit CI.exe.targets (or whateve...
[ 0.582786500453949, -0.005328287370502949, 0.6836671829223633, 0.028158165514469147, -0.1699369102716446, -0.08877581357955933, -0.038439493626356125, -0.07789725065231323, -0.38200289011001587, -0.9863726496696472, 0.15762411057949066, 0.32835009694099426, -0.5275754928588867, -0.058854050...
for the reader.
[ -0.22019988298416138, -0.008113582618534565, 0.03484898433089256, -0.05450882017612457, 0.18110480904579163, 0.0690581202507019, 0.03235996887087822, 0.12073329091072083, -0.05275944992899895, -0.27486565709114075, -0.2910666763782501, 0.052058145403862, 0.0385449193418026, -0.110944524407...
Recently I've been revisiting an old project, which I last worked on about two years ago. Obviously, during this time I've learned new habits about how best to program, and I've got the itch to keep the tests, scrap the implementation, and re-implement the entire project. It's not a large project, and I believe I'll no...
[ 0.4386933743953705, 0.3829326629638672, 0.01615075208246708, -0.24152614176273346, 0.21595914661884308, 0.12578804790973663, 0.4817698895931244, 0.020052863284945488, -0.3067883253097534, -0.807950496673584, 0.3043399453163147, 0.4677104949951172, -0.005008575040847063, 0.28305500745773315...
so wide-reaching that trying to maintain clean changesets is an exercise in frustration and futility. Given this, it seems unnecessary to force potential developers to download the old irrelevant versions. One option I've been considering is to move the trunk to a branch, something like `old-trunk/`, and begin develop...
[ 0.4168925881385803, -0.05344114080071449, 0.030692188069224358, 0.20644153654575348, 0.2388838231563568, -0.19350454211235046, 0.1669156402349472, 0.18092341721057892, -0.5086736083030701, -0.586462676525116, -0.31709790229797363, 0.2978716194629669, -0.05708109959959984, 0.299404174089431...
the trunk with "OldVersion" and continue development in the same location? This way you avoid the double branch altogether and still maintain ways to get to the old version of your code. Unless you're developing a different product, you likely want to keep the same trunk.
[ 0.3516743779182434, -0.08237440139055252, -0.010080871172249317, 0.31462281942367554, 0.36963412165641785, -0.19730497896671295, 0.05325951427221298, 0.10397782176733017, -0.3351496458053589, -0.2364806979894638, -0.05380072072148323, 0.3797401785850525, -0.18115785717964172, 0.19648267328...
I would like to use a Validator to guarantee that a given textbox's submitted content is **unique**. I want to make sure that the name put into the box is not the same as any other text box. The catch is I don't know at compile time how many other text boxes it will be compared to. It could be anywhere from 0 - n othe...
[ 0.646201491355896, 0.30459514260292053, 0.35331594944000244, -0.022843245416879654, -0.38863688707351685, -0.4713512659072876, 0.04652530699968338, -0.11159731447696686, -0.2983253300189972, -0.48280495405197144, -0.0056661926209926605, 0.0772586315870285, -0.12316317111253738, 0.217038840...
<title></title> <script type="text/javascript"> function CheckUnique(sender, args) { var inputArray = document.getElementsByTagName("input"); for (var i = 0; i < inputArray.length; i++) { if (inputArray[i].type == "text" && inputArray[i].id != "TextBox1" && inputArray...
[ 0.00003148593896185048, -0.013144568540155888, 0.5974433422088623, -0.11569897085428238, -0.07790116965770721, 0.01403386052697897, 0.4866501986980438, -0.4602295756340027, 0.16089297831058502, -0.4721788763999939, -0.5309929251670837, 0.5036880373954773, -0.3023368716239929, 0.28206282854...
args.IsValid = false; return; } } } </script> </head> <body> <form id="form1" runat="server"> <div> <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="TextBox1" ErrorMessage="CustomValidator" ClientValidationFunction="...
[ -0.3538095951080322, -0.2551896572113037, 0.6117058396339417, -0.13465973734855652, -0.04455588385462761, 0.24569299817085266, 0.4832499027252197, -0.5666881203651428, -0.36891695857048035, -0.4960806369781494, -0.0946085974574089, 0.4426482021808624, -0.45002391934394836, -0.2389502674341...
<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox> <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox> <asp:Button ID="Button1" runat="server" Text="Button" /> </div> </form> </body> </html> ```
[ -0.12204795330762863, -0.04552741348743439, 0.557054877281189, -0.04694751650094986, -0.11900090426206589, 0.38406655192375183, 0.20451083779335022, -0.4290936291217804, -0.257571280002594, -0.5733957290649414, -0.3927484154701233, 0.2233881652355194, -0.1712053418159485, -0.37799856066703...
My friend is primarily a VB developer and he says time and time again how much more simple it is to code events in VB than C#. My take on the issue is that it probably is easier but if there was not a reason for the added complexity, they probably would have made it just as simple in C#. Can anyone tell me if there is ...
[ 0.5895764827728271, 0.1454811841249466, 0.07766515761613846, 0.13453982770442963, -0.35368597507476807, -0.45214372873306274, 0.24803562462329865, 0.28559136390686035, -0.4027945101261139, -0.4011605381965637, 0.017614230513572693, 0.6759284138679504, -0.18987183272838593, -0.0295535624027...
a void returning event (virtually all events) with an anonymous function. VB.Net 9.0 only supports Lambda Expressions which returns a value (this is fixed in VB 10.0). VB has a bit of flexibility not present in C# with regard to events * Support for [Relaxed Delegates](http://www.developer.com/net/vb/print.php/36644...
[ 0.010404836386442184, -0.2374875396490097, 0.15283846855163574, -0.19643938541412354, -0.3364907503128052, -0.03497544303536415, 0.18233199417591095, -0.1083533987402916, -0.3794012665748596, -0.3592131733894348, -0.22438307106494904, 0.43530234694480896, -0.5208467841148376, 0.20889161527...
null event check problem non-existent in VB.Net
[ 0.18582488596439362, -0.2272164225578308, -0.011620051227509975, 0.2620706260204315, -0.09556959569454193, -0.23162126541137695, 0.33448129892349243, 0.2718662917613983, -0.33589476346969604, -0.34225785732269287, -0.0007641326519660652, 0.3791629672050476, -0.5051290392875671, 0.150642842...
I'm trying to learn Objective C & Cocoa, but I just can't manage to access a property inside an Object. Specifically an object from a C method. I'm working with the chipmunk dynamics library. Chipmunk has something similar to NSPoint called cpVect. Now I have no problem defining a cpVect inside my object, but when I ...
[ -0.021201880648732185, 0.0069465916603803635, 0.6800686120986938, 0.09472876787185669, -0.16946132481098175, -0.07020385563373566, -0.08001701533794403, -0.34173426032066345, -0.1726568043231964, -0.5964440703392029, 0.052248165011405945, 0.5812349915504456, -0.14173372089862823, 0.0727569...
cpVect * forceVector; } @property (retain) cpVect forceVector; @end ``` gives me the error `"property 'forceVector' with 'retain' must be of object type"` so without 'retain' i get an different error ``` "type of property 'forceVector' does not match type of ivar 'forceVector'" ``` I'm going round in circles t...
[ 0.0792035385966301, 0.07949110865592957, 0.5161337852478027, -0.058310575783252716, -0.2366524040699005, -0.11600631475448608, 0.26594310998916626, -0.22915589809417725, -0.24123035371303558, -0.4450571537017822, -0.16236522793769836, 0.7098715901374817, -0.12221625447273254, -0.0931302756...
This thing is driving me nuts. The error your are getting is because the semantics of `retain` (ie. reference counted memory management, with the setter incrementing the ref count on the new value and decrementing the ref count of the old value) only make sense for Objective-C objects. The default semantics for propert...
[ 0.3262760639190674, 0.013277355581521988, 0.34029334783554077, 0.0745159238576889, 0.24674710631370544, -0.24443630874156952, 0.03488058224320412, -0.2018706351518631, -0.24064819514751434, -0.1288178563117981, -0.12872986495494843, 0.9950399398803711, -0.03107871115207672, -0.038935806602...
I'm performing a regular expression match on a column of type `character varying(256)` in PostgreSQL 8.3.3. The column currently has no indices. I'd like to improve the performance of this query if I can. Will adding an index help? Are there other things I can try to help improve performance? You cannot create an inde...
[ 0.12410525977611542, 0.2026127129793167, 0.21297243237495422, 0.13418862223625183, -0.02875935658812523, 0.09794731438159943, 0.2617562711238861, -0.06567927449941635, -0.18484266102313995, -0.48738062381744385, 0.02302134782075882, 0.5166090726852417, -0.6792544722557068, 0.00888525042682...
given row matches that regex or regexes. That column can be indexed, and queried efficiently. If you want to go further than that, [this paper](http://oak.cs.ucla.edu/~cho/papers/cho-regex.pdf) discusses an interesting sounding technique for indexing against regular expressions, which involves looking for long substri...
[ 0.027781464159488678, 0.26307421922683716, 0.12299587577581406, 0.2388584166765213, -0.12044419348239899, 0.05639386549592018, -0.36266714334487915, -0.17361703515052795, -0.1715593785047531, -0.4884675443172455, -0.008472641929984093, 0.28232863545417786, -0.4193700850009918, -0.040454003...
My problem is that I am trying to run a problem that I coded using a flex-bison scanner-parser. What my program is supposed to do is take user input (in my case, queries for a database system I'm designing), lex and parse, and then execute the corresponding actions. What actually happens is that my parser code is not c...
[ 0.04955087974667549, 0.25927624106407166, 0.07218267768621445, -0.00978612620383501, 0.030128521844744682, 0.17106059193611145, 0.39168116450309753, -0.33353564143180847, -0.03650842234492302, -0.4094657301902771, -0.09072869271039963, 0.6448937654495239, -0.5942395329475403, -0.2788058817...
$$ = new QLInsert( $2, $4 ); 134 } 135 ; ``` And my input, following the "Query: " prompt: > Query: INSERT abc(5); > > input:1.0-5: syntax error, unexpected string, expecting end of
[ 0.02123735286295414, 0.24350187182426453, 0.36459800601005554, -0.33154958486557007, 0.2878277003765106, 0.31273365020751953, 0.28353798389434814, -0.5206238031387329, 0.129363015294075, -0.4657600224018097, -0.14900778234004974, 0.6193164587020874, -0.3949405252933502, 0.33998629450798035...
file or end of line or INSERT or ';' Now, if I remove the "INSERT" string literal from my parser.yy code on line 130, the program runs just fine. In fact, after storing the input data (namely, "abc" and the integer 5), it's returned right back to me correctly. At first, I thought this was an issue with character enco...
[ 0.43664389848709106, 0.006244518328458071, 0.25534772872924805, -0.16904166340827942, -0.15218813717365265, 0.012749651446938515, 0.19432267546653748, 0.00311568146571517, -0.010201221331954002, -0.7919343709945679, -0.05824688822031021, 0.7018143534660339, -0.3575083315372467, -0.07752972...
4.2.4 If you need any more info or code from, let me know! This is a classic error, if you use flex to lex your input into tokens, you must not refer to the literal strings in the parser as literal strings, but rather use tokens for them. For details, see [this similar question](https://stackoverflow.com/questions/...
[ 0.11902906000614166, -0.16787725687026978, 0.07886368036270142, -0.0325368233025074, -0.09421408176422119, -0.19516204297542572, 0.3804917335510254, 0.021687719970941544, -0.3100709021091461, -0.34511834383010864, -0.23029081523418427, 0.6356218457221985, -0.3372877538204193, -0.2226831465...
I have a bog-standard login form - an email text field, a password field and a submit button on an AIR project that's using HTML/jQuery. When I hit Enter on the form, the entire form's contents vanish, but the form isn't submitted. Does anyone know if this is a Webkit issue (Adobe AIR uses Webkit for HTML), or if I've ...
[ 0.5076964497566223, 0.20591822266578674, 0.5000136494636536, 0.09166380763053894, 0.18233312666416168, -0.19059933722019196, 0.34663236141204834, -0.351066917181015, -0.010837249457836151, -0.2720601260662079, 0.026355840265750885, 0.3405988812446594, -0.48497357964515686, 0.06772230565547...
the issue? Can I put a javascript function in the action? ``` $('.input').keypress(function (e) { if (e.which == 13) { $('form#login').submit(); return false; //<---- Add this line } }); ``` Check out this stackoverflow answer: [event.preventDefault() vs. return false](https://stackoverflow.com/questio...
[ -0.13344746828079224, -0.1872040182352066, 0.24705886840820312, -0.11902524530887604, 0.020723266527056694, -0.025408204644918442, 0.20806553959846497, -0.4871567189693451, -0.02305271103978157, -0.16672830283641815, -0.3173121213912964, 0.7710270881652832, -0.2760392427444458, -0.00705968...
I'd like to reference an external configuration (e.g., \*.ini) file that will allow me to set configuration variables for each deployment of my Air application. Unfortunately, I haven't been able to find any information on the best way to approach this problem. With that being said, does anyone have any advice on how ...
[ 0.28164443373680115, 0.22625122964382172, 0.948100745677948, -0.02642461098730564, 0.10478595644235611, -0.2817462086677551, -0.13146039843559265, -0.1878463178873062, 0.09606529772281647, -0.8708367943763733, -0.4545500576496124, 0.5601210594177246, -0.48715198040008545, -0.09097883850336...
gets installed. I made config a public var on my main application, so I can just do Application.application.config.someOption from anywhere in my project.
[ 0.23644043505191803, -0.024903221055865288, 0.6157528162002563, 0.0713634267449379, 0.04942376911640167, -0.24841094017028809, 0.20854683220386505, 0.3149335980415344, -0.10067850351333618, -0.7688295841217041, -0.1609465628862381, 0.37988683581352234, -0.11624748259782791, 0.1754889637231...
Is there a built in function in C# / .net that will take a variable and describe / output it's contents? In PHP there are the [`print_r()`](http://php.net/print_r) and [`var_dump()`](http://php.net/var_dump) functions which achieve this (I realise the inherent difference between C# and PHP, just providing a example of ...
[ 0.1557534635066986, -0.09365852177143097, -0.041547518223524094, 0.01286146230995655, -0.33910489082336426, -0.15791526436805725, -0.14029407501220703, -0.11141283810138702, -0.08820943534374237, -0.16121938824653625, -0.0024507984053343534, 0.5995712280273438, -0.3713485300540924, -0.2549...
event handler etc. I'd like to take this as far as possible whilst avoiding the expense of reflection. Thanks See my answer to this question for a summary of different ways to get a string representation of an object: [String casts](https://stackoverflow.com/questions/697216/string-casts/697248#697248) Since you w...
[ 0.260175883769989, -0.37269026041030884, -0.11121430993080139, -0.0660213977098465, -0.41854023933410645, -0.18073195219039917, 0.1954508274793625, -0.14631426334381104, -0.40686357021331787, -0.4765995442867279, 0.10634442418813705, 0.6909844875335693, -0.34394383430480957, -0.14016698300...
What would be a good way to integrate a help system into Silverlight applications? The original manual is written in MS Word, so I will need some means to transfer it to whatever format you suggest. Also if your answer is HTML can you explain in details the integration process (HTML popup windows are effectively blocke...
[ 0.28904837369918823, 0.17163631319999695, 0.4151984453201294, 0.1012340560555458, 0.0012906823540106416, -0.03858679160475731, 0.3784262239933014, -0.15863865613937378, -0.02360830269753933, -0.3808763921260834, -0.17506153881549835, 0.4467366933822632, -0.43150341510772705, -0.14872327446...
I have a DataGrid template column with ComboBox. When I select a value and press enter the bound data is not updated (I see empty cell). XAML: ``` <Window x:Class="WpfGrid2.Window2" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys...
[ -0.5010385513305664, 0.06395499408245087, 0.6807634830474854, -0.22715339064598083, -0.07016977667808533, 0.18674762547016144, -0.07501291483640671, -0.631033718585968, -0.24515457451343536, -0.5291846990585327, -0.163596048951149, 0.2375243902206421, -0.17313513159751892, 0.27570202946662...
</x:Array> </Window.Resources> <StackPanel> <dg:DataGrid x:Name="_grid" ItemsSource="{DynamicResource people}" CanUserAddRows="True" AutoGenerateColumns="False"> <dg:DataGrid.Columns> <dg:DataGridTemplateColumn Header="LastName" MinWidth="100"> <dg:DataG...
[ -0.2715403735637665, -0.10600531101226807, 0.18893322348594666, -0.18440574407577515, 0.23066078126430511, 0.33131271600723267, -0.1820392906665802, -0.40607452392578125, -0.1842460334300995, -0.6523690819740295, -0.15505416691303253, 0.15467670559883118, -0.11979512870311737, 0.0280038844...
<DataTemplate> <ComboBox ItemsSource="{DynamicResource knownLastNames}" SelectedItem="{Binding LastName}"></ComboBox> </DataTemplate> </dg:DataGridTemplateColumn.CellEditingTemplate> <dg:DataGridTemplateColumn.CellTemplate>
[ -0.4566090404987335, -0.15050555765628815, 0.1582966148853302, -0.09384595602750778, -0.007930612191557884, 0.15175461769104004, -0.3252984285354614, -0.502679705619812, -0.13010406494140625, -0.6498438119888306, -0.1527114063501358, 0.021132487803697586, -0.18387459218502045, 0.2030613869...
<DataTemplate> <TextBlock Text="{Binding LastName}" /> </DataTemplate> </dg:DataGridTemplateColumn.CellTemplate>
[ -0.1715283989906311, 0.14042265713214874, 0.310153067111969, -0.30500224232673645, 0.2555958330631256, 0.0026186523027718067, -0.5255776047706604, -0.481696754693985, 0.09132411330938339, -0.7017892599105835, -0.007011807523667812, -0.04948443919420242, -0.25462961196899414, 0.028862753883...
</dg:DataGridTemplateColumn> </dg:DataGrid.Columns> </dg:DataGrid> <Button>test</Button> </StackPanel> </Window> ``` Code-Behind: ``` namespace WpfGrid2 { public partial class Window2 : Window { public Window2() { InitializeComponent(); ...
[ -0.22995582222938538, -0.15487101674079895, 0.3462224304676056, -0.15003620088100433, 0.06205068528652191, 0.15496589243412018, 0.1191973015666008, -0.19610409438610077, -0.3027608096599579, -0.8420369029045105, -0.5707613825798035, 0.3267258107662201, -0.14878852665424347, -0.056738130748...
= new List<Person>(); this.Resources["people"] = people; } } } ``` If I change ComboBox to TextBox, it works fine ``` <TextBox Text="{Binding LastName}" /> ``` What is wrong? I don't know if this is a feasible solution to your problem, but if you change the ItemsSource binding of the Combo-...
[ 0.03050488792359829, -0.11498485505580902, 0.6278862953186035, -0.2484409362077713, 0.12716007232666016, -0.05360928922891617, 0.31495723128318787, -0.3835587799549103, -0.2343674898147583, -0.91695237159729, -0.15944400429725647, 0.635265588760376, -0.4119280278682709, 0.1727406531572342,...
DynamicResource attempts to lookup the resource again, and fails (because the ComboBox is no longer in the visual tree, it won't find the resource defined above it in the visual tree). This will set the ItemsSource to null, and also set the SelectedItem to null, thus setting LastName to null. With a StaticResource, t...
[ -0.5205530524253845, -0.9335594773292542, 0.40982818603515625, 0.06956806778907776, 0.0164224524050951, 0.05784415081143379, 0.47644543647766113, -0.11385095119476318, -0.5397294759750366, -0.4800924062728882, -0.4127429127693176, 0.45401909947395325, -0.5454936623573303, 0.217616185545921...
I have a custom collection type of data. This data is sorted by three properties in their order, e.g. take the following example: ``` class Data { public int PropertyA() { get; set; } public int PropertyB() { get; set; } public int PropertyC() { get; set; } } ``` The collection must maintain the order of A, B,...
[ 0.46122634410858154, 0.07262420654296875, 0.2678895592689514, 0.09384187310934067, 0.023871812969446182, 0.022998353466391563, 0.12286302447319031, -0.7193325757980347, -0.23314231634140015, -0.395463228225708, -0.30715104937553406, 0.46157771348953247, -0.1964409351348877, 0.2363047003746...
and MbUnit 3, and I think there must be an easy way to do this with their attributes, I just don't get it right now. Any ideas? [MbUnit v3](http://www.gallio.org/) has a new useful [**Assert.Sorted**](http://www.gallio.org/api/html/Overload_MbUnit_Framework_Assert_Sorted.htm) method. You just need to pass the enumerati...
[ 0.2112506926059723, 0.20217037200927734, 0.38364970684051514, -0.037710461765527725, -0.46507763862609863, 0.045073144137859344, 0.43507716059684753, -0.6932779550552368, -0.154743954539299, -0.6717565655708313, -0.12307810038328171, 0.6057239174842834, -0.5311729311943054, 0.0013122857781...
new Foo[] { new Foo(123), new Foo(456), new Foo(789) }; Assert.Sorted(array, new StructuralEqualityComparer<Foo> { { x => x.Value } }); } ``` Have a look at the Gallio/MbUnit [API doc reference](http://www.gallio.org/api/index.aspx) for more details.
[ 0.11652164161205292, -0.005817881785333157, 0.43313875794410706, -0.3352937400341034, 0.10563961416482925, 0.20208489894866943, 0.10104285180568695, -0.38204944133758545, -0.46905314922332764, -0.5173600912094116, -0.29553163051605225, 0.5151026248931885, -0.6585679054260254, 0.20491111278...
I am trying to deploy a ClickOnce app. It had worked previously when the server was just sitting with .Net 2.0 installed (no SP). Recently the server had 3.5SP1 installed on it and now ClickOnce is failing with the error: **Value does not fall within the expected range** inside **System.Deployment**. Here is the info...
[ 0.28710106015205383, 0.04700440168380737, 0.5470017790794373, -0.24836032092571259, -0.13055750727653503, -0.25874844193458557, 0.40992793440818787, 0.01158600952476263, -0.19789758324623108, -0.8421437740325928, 0.0929790735244751, 0.6235926151275635, -0.33193397521972656, -0.004337496124...
all application data in %userprofile%\AppData\Local\Apps and even changing deployment servers completely but still get the same error: ERROR DETAILS Following errors were detected during this operation. \* [3/30/2009 5:35:37 PM] System.ArgumentException - Value does not fall within the expected range. - Source: Sy...
[ -0.2929344177246094, 0.1561247855424881, 0.796753466129303, -0.06468002498149872, 0.22101245820522308, 0.3555624186992645, 0.36888962984085083, -0.3918432295322418, -0.2662237584590912, -0.898118257522583, -0.46452200412750244, 0.5276514887809753, -0.2821182906627655, 0.03680435195565224, ...
String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl) at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state) Any help at all would be much appreciated.. The referenced forum is [here](http://social.msdn.microsoft.c...
[ 0.10967522114515305, 0.14370812475681305, 0.4093119502067566, 0.06346262991428375, -0.3065631687641144, 0.1851760894060135, 0.4718848764896393, -0.027015307918190956, -0.26621052622795105, -0.4311685562133789, -0.02533303014934063, 0.4506240785121918, -0.3315277695655823, 0.364917784929275...
present and I confirmed no ampersands were used in either path.
[ 0.13807310163974762, 0.12404235452413559, 0.3315766453742981, 0.3256826400756836, -0.0890328511595726, -0.12023130804300308, 0.09547847509384155, -0.3349531888961792, 0.011628877371549606, -0.4101697504520416, 0.054690171033144, 0.5930298566818237, 0.21977481245994568, -0.00572148011997342...
What is the most prohibitive aspect of having a universal comment identifier for all .net languages? For example, in each language the symbol "??" would identify a comment. (I'm not saying that it *should* be "??"... just an example.) Backwards compatibility is probably the biggest problem with changing the comment to...
[ 0.11247728765010834, 0.05701775103807449, -0.08150287717580795, 0.30340489745140076, -0.3775138258934021, -0.3052901029586792, 0.21098032593727112, 0.21756435930728912, -0.2184903770685196, -0.6019535064697266, -0.117935910820961, 0.495238721370697, -0.4634038805961609, 0.24329349398612976...
I recently asked this question: [Dynamically Query a Database to check for value](https://stackoverflow.com/questions/694849/dynamically-query-a-database-to-check-for-value/694860#694860) And I got an awesome and informative answer. But whenever I search on Google to find out more about "Ajax Requests" the codes neve...
[ 0.16797254979610443, 0.17166297137737274, 0.16970162093639374, 0.047826267778873444, -0.38534560799598694, -0.16854646801948547, 0.16230489313602448, 0.11946994811296463, -0.2116316258907318, -0.40695902705192566, 0.19813111424446106, 0.4798370599746704, -0.22930492460727692, -0.0173198431...
help? I am very adept in PHP but I am very new to javascript. THANKS! ``` $.get(url,{},verifyDb); ``` is the [jQuery ajax Get method](http://docs.jquery.com/Ajax/jQuery.get#urldatacallbacktype). You can pass a parameter like this: ``` $.get(url,{inputname: "value goes here"},verifyDb); ``` $ is a shorthand for the...
[ -0.03203146532177925, -0.002709727268666029, 0.48108717799186707, 0.16493715345859528, -0.1761481910943985, -0.07342372834682465, 0.3841492533683777, 0.023600144311785698, 0.10775976628065109, -0.6246122717857361, -0.07418558746576309, 0.9113339781761169, -0.07071756571531296, -0.083244219...
I have a form which spans multiple pages. The way it is set up now is not ideal because it saves (to the database) each page when it is submitted. So if the user does not complete the form across all pages there would be an incomplete user registration saved in the database. I would like to 'rollback' the saves if the...
[ 0.8037115931510925, 0.10989656299352646, 0.34537026286125183, 0.07633654028177261, 0.2899838387966156, -0.23983356356620789, -0.12196143716573715, -0.2932700216770172, -0.1861022263765335, -0.6859763860702515, 0.5078716278076172, 0.327653169631958, -0.021482011303305626, 0.3155249953269958...