text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
of another control such as a panel or grid? If so you need to recursively search all the controls on the page. Here is an example of a recursive FindControl implementation: [Recursive Page.FindControl](http://www.codinghorror.com/blog/2005/06/recursive-pagefindcontrol.html). You can find many other examples by googli...
[ -0.09460677951574326, -0.4421645998954773, 0.028411932289600372, 0.31128862500190735, 0.03004842810332775, -0.24606643617153168, 0.027663223445415497, -0.13645997643470764, -0.23059292137622833, -0.48206764459609985, -0.1676434576511383, 0.33677953481674194, -0.6594848036766052, -0.4224998...
I have a pure Winapi application that needs a few new features. One of them would best be implemented as two lists where you can drag-and-drop (multiple) elements between the lists. The new feature can be limited to a single dialog. What would be the quickest way to implement this? A few ideas: * Pure Winapi (is it D...
[ 0.35385292768478394, -0.15230923891067505, 0.01945776864886284, 0.376081645488739, -0.1273498833179474, -0.03502636030316353, 0.22943583130836487, -0.07796530425548553, 0.13484694063663483, -0.5772378444671631, 0.2519659399986267, 0.5911532640457153, -0.2757606506347656, -0.248252570629119...
advice would be that if the application is in pure winapi, keep it that way. Starting a .NET framework runtime just for one dialog with draggable items is as bad as hosting a WebBrowser control and using JQuery for that one functionality - it's at least thedailywtf.com-worthy if you ask me (but then again, you're not ...
[ 0.30976733565330505, -0.25679099559783936, 0.3942317068576813, 0.306014746427536, -0.13490454852581024, -0.35116007924079895, 0.32450538873672485, -0.09103672951459885, -0.16861072182655334, -0.6283730864524841, -0.1742715686559677, 0.5860036611557007, -0.09926372766494751, -0.219932347536...
in getting the idea.
[ 0.05901120603084564, 0.17656899988651276, 0.12737800180912018, -0.011247590184211731, -0.08274269849061966, -0.05551436170935631, -0.044941097497940063, -0.10081803798675537, -0.11695852875709534, -0.20102031528949738, 0.02631331793963909, -0.044854797422885895, 0.12493076175451279, 0.2564...
Say I have class A with ``` class A { final String foo() { // .. computing result, contacting database, whatever .. return "some computed value"; } // ... and a bazillion other methods, some of them final. } ``` Now I have class B with ``` class B { String methodIWantToTest(A a) { String outpu...
[ 0.2310926467180252, 0.18477730453014374, 0.30227845907211304, -0.2404288351535797, -0.0012285374104976654, 0.203857883810997, 0.08447767049074173, -0.3851642608642578, 0.10989108681678772, -0.2988203167915344, -0.07198155671358109, 0.6244579553604126, -0.05510913208127022, 0.42993569374084...
testing this method? The reason `foo()` is final is because we don't want our classes which extend A to change its functionality. But at the same time to truly unit test the method, I don't want it to reach out and run the actual `A.foo()` method. Is there a way to, say, remove the final keyword and add an annotation ...
[ 0.499114453792572, 0.1131555363535881, -0.001406648545525968, -0.059079430997371674, -0.3975439965724945, -0.14516308903694153, 0.538657009601593, -0.21523870527744293, 0.11405286937952042, -0.4261583089828491, 0.21725448966026306, 0.49210748076438904, -0.18008649349212646, 0.1097628995776...
Java. We are not using a mocking framework as of yet. **Answer** OK, so: wow. [JMockit](http://jmockit.org) is just incredible and is in my eyes the killer app for testing legacy code. Unbelievably useful especially in my case. Thanks so much! You basically would do something like the following for my psuedo-example: ...
[ 0.5177899599075317, 0.17702794075012207, 0.059386782348155975, 0.02458951249718666, -0.2045387178659439, 0.03856217488646507, 0.7373823523521423, -0.1039343997836113, 0.11706472933292389, -0.7289209365844727, 0.14894172549247742, 0.6093416810035706, -0.20144714415073395, 0.0331647954881191...
methods from A to AMock mockedA = new A(); // NOT new AMock()!!! b = new B(); } public void testB() { assertEquals("myTestValue",mockedA.foo()); assertEquals("myTestValue_suffix",b.methodIWantToTest(mockedA)); } } ``` Is this frickin' cool or what? You can try the [JMockit](http://...
[ 0.2711181342601776, 0.09070176631212234, 0.2387269139289856, 0.04072431102395058, -0.09893599152565002, 0.0572679378092289, 0.747887134552002, -0.10758137702941895, 0.0028205057606101036, -0.2618773579597473, -0.06163707375526428, 0.6942186951637268, -0.17445647716522217, 0.069185465574264...
We are trying to build a High-Volume Orders Record System. There are three primary tables: 1. Orders 2. OrderDetails 3. OrderShipment The Shipment table contains n record per order and any record shipment entry can be changed before the Customer accepts th order, after which it is frozen. (A business requirement) Alt...
[ 0.26535704731941223, -0.07703500986099243, 0.6907916069030762, 0.2428099364042282, 0.3404217064380646, 0.25824034214019775, -0.3226902186870575, -0.11193487793207169, -0.5461587309837341, -0.307037353515625, 0.14137151837348938, 0.3408365845680237, -0.26786333322525024, 0.24258951842784882...
having genuine issues with concurrent updates on the same data, then you might consider performing the entire operation in a transaction - i.e. getting the data *and* committing it. As long as you treat the get/update/commit as a short-lived, atomic operation (i.e. you don't pause for user-input in the middle) it shoul...
[ 0.24131706357002258, -0.11152604222297668, 0.19783765077590942, 0.3021899163722992, 0.07968564331531525, -0.40017443895339966, 0.40809163451194763, -0.07035291194915771, -0.8287849426269531, -0.023069599643349648, -0.234181210398674, 0.4581974744796753, -0.35746753215789795, 0.166573241353...
way to get LINQ-to-SQL to issue the (UPDLOCK) hint, which is a shame. Either a TransactionScope or a SqlTransaction would do, as long as they are set as serializable isolation (which is the default for TransactionScope).
[ -0.13485516607761383, -0.14281411468982697, 0.14000040292739868, 0.19564937055110931, 0.05969543382525444, -0.5154675245285034, 0.010004530660808086, 0.11176393926143646, -0.3027263283729553, -0.3064526617527008, -0.2179419845342636, 0.2860223650932312, -0.2873757779598236, 0.0120445834472...
How can I read the colors of an image with python using google app engine? **Example:** I like to build a function to determine the most striking colors of an image to set a harmonic background color for it. The [Images API](http://code.google.com/appengine/docs/images/overview.html) does not (currently) contain pixel...
[ 0.32915419340133667, -0.11664821207523346, 0.3215356171131134, 0.09841987490653992, -0.24502865970134735, 0.22951851785182953, 0.14980606734752655, -0.030408523976802826, 0.0726156160235405, -0.8157574534416199, 0.1579151153564453, 0.555146336555481, -0.377714067697525, -0.1934763640165329...
in the images API are available on App Engine. The community has been asking for full [PIL](http://www.pythonware.com/products/pil/index.htm) support for some time, but it looks like we'll have to wait.
[ 0.5205259323120117, 0.046717166900634766, 0.4295811951160431, -0.07996205240488052, -0.29639318585395813, 0.19888120889663696, 0.0188498143106699, 0.15178611874580383, -0.5636947154998779, -0.4184413552284241, -0.14966972172260284, 0.1640685498714447, -0.5282697081565857, -0.21030873060226...
I'm no DBA, and I'm having a bit of a hard time understanding Oracle's transaction management process. From what I understood by reading some reliable-looking pages on the Internet (most notably this [AskTom note](http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:275215756923) -- but don't bother wit...
[ 0.39425718784332275, 0.3476579785346985, -0.12213193625211716, -0.13317523896694183, -0.1575331687927246, -0.22819748520851135, 0.1628376990556717, -0.1285470873117447, -0.21068812906742096, -0.20496216416358948, 0.04025955870747566, 0.5006946325302124, 0.09398487955331802, 0.1072401627898...
someone in our company, supposedly in the know, recently told me the opposite : according to him, when a transaction is commited, the new data **is** immediately written on the data blocks, and the rollback segment/undo tablespace keeps the old data for a duration of UNDO\_RETENTION seconds. This old data stays availab...
[ 0.7031370997428894, 0.40698447823524475, 0.004083846230059862, 0.20459769666194916, 0.41021910309791565, -0.1165216714143753, -0.05990445986390114, 0.24174360930919647, -0.37198910117149353, -0.04300340637564659, -0.023919779807329178, 0.629054069519043, 0.021802039816975594, 0.11090128123...
the changes are written to the data block *in memory* as they are made, even before the commit; and they are written out to disk entirely independently of when you commit (possibly before, possibly after, never as part of the commit operation). 1) UNDO\_RETENTION has nothing to do with when your changes are written to...
[ 0.17814606428146362, -0.0037809545174241066, 0.6328415870666504, -0.08003510534763336, 0.4113894999027252, 0.01978062279522419, -0.14506246149539948, -0.14016671478748322, -0.6078355312347412, -0.45123350620269775, -0.19107116758823395, 0.5872805714607239, -0.2593710720539093, 0.2699688076...
<http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/undo.htm#sthref1477> 2) When you do an update, the data blocks in memory are modified. They may or may not be written out to disk (even before you commit, I believe); this is done by a background process. Also, redo information is written to the redo log ...
[ -0.07456016540527344, 0.1307183802127838, 0.20163440704345703, -0.05815168097615242, 0.3535679280757904, -0.0008789385901764035, 0.019691891968250275, -0.20076312124729156, -0.5005117058753967, -0.38479140400886536, -0.3582626283168793, 0.5466169714927673, -0.0987606942653656, -0.044025689...
This is to make the commit as quick as possible. Reference: <http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/transact.htm#sthref628> 4) The data blocks in memory will be marked as committed either when they are written out to disk by the background process, or the next time they are used (by a SELECT or...
[ 0.22024214267730713, -0.3412052094936371, 0.2612156569957733, 0.04949720576405525, 0.17069751024246216, -0.10370095819234848, 0.08356697857379913, -0.20178404450416565, -0.46099239587783813, -0.484552264213562, -0.3467678427696228, 0.3623935282230377, -0.010696318000555038, 0.1071891486644...
I'm writing a small article on humanly readable alternatives to Guids/UIDs, for example those used on TinyURL for the url hashes (which are often printed in magazines, so need to be short). The simple uid I'm generating is - 6 characters: either a lowercase letter (a-z) or 0-9. "According to my calculations captain"...
[ 0.06532921642065048, 0.05525487661361694, 0.49847832322120667, 0.11804204434156418, -0.1605132520198822, 0.21679067611694336, 0.11785120517015457, -0.01743965782225132, -0.16521385312080383, -0.4696156084537506, 0.14006642997264862, 0.41881677508354187, -0.093750961124897, 0.05023676902055...
50/50. I'm interested in the clash rate and if the code below is a realistic simulation of anticipated clash rate you'd get from generating a hash. On average I get 40-50 clashes per million, however bare in mind the uid wouldn't be generated a million times at once, but probably only around 10-1000 times a minute. W...
[ 0.35163456201553345, -0.23192644119262695, 0.29987025260925293, -0.23344899713993073, 0.03671793267130852, -0.05690586566925049, -0.11749063432216644, -0.4293106496334076, -0.12117189913988113, -0.5169252157211304, -0.11916676163673401, 0.765190601348877, -0.21714583039283752, 0.2943017482...
int clashes = 0; for (int n=0;n < 1000000;n++) { StringBuilder builder = new StringBuilder(); for (int i =0;i < 7;i++) { if (_random.NextDouble() > 0.5) { builder.Append((char)_random.Next(97,123));
[ 0.2232082486152649, -0.5433022975921631, 0.4429823160171509, -0.42213231325149536, -0.05163261294364929, 0.40903595089912415, 0.5378919839859009, -0.596306324005127, -0.006357862148433924, -0.5345032215118408, -0.10518257319927216, 0.6185553073883057, -0.2905234396457672, 0.064839057624340...
} else { builder.Append(_random.Next(0,9).ToString()); } } if (set.Contains(builder.ToString())) { clashes++;
[ 0.34413856267929077, -0.38705766201019287, 0.18130673468112946, -0.4238448143005371, 0.055716902017593384, 0.06812409311532974, 0.25701093673706055, -0.5229628086090088, 0.10467451810836792, -0.4495818018913269, -0.13032834231853485, 0.8677756190299988, -0.4396047294139862, -0.059857804328...
Console.WriteLine("clash: (" +n+ ")" +builder.ToString()); } set.Add(builder.ToString()); _random.Next(); //Console.Write(builder.ToString()); } Console.WriteLine("Clashes: " +clashes); Console.ReadLine(); } ``` **UPDATE:** [Here's the resulting article](http://www.yetano...
[ -0.015356259420514107, 0.05055560916662216, 0.8193569779396057, 0.062449488788843155, 0.09379735589027405, -0.14778082072734833, 0.00010999116784660146, -0.3671727776527405, 0.17250235378742218, -0.48218899965286255, 0.04671972990036011, 0.5945448279380798, -0.15148255228996277, 0.13834384...
in a database, or would it be client side (which would be 2 possible reads first)? The general idea I was after was using Ids in databases or other stores that can be used by phone or printed material, not a giant 16 byte guid. **UPDATE 2:** I put the formula for two mutually exclusive events above instead of 2 indep...
[ 0.06878865510225296, -0.0013993754982948303, 0.10241897404193878, 0.2367018312215805, -0.13022878766059875, -0.19633232057094574, 0.09716707468032837, -0.18177780508995056, -0.25277650356292725, -0.33560141921043396, 0.09341966360807419, 0.4553362727165222, -0.28846967220306396, -0.1731267...
(0.5*1/10) + (0.5*1/26) ) )^6 ``` which is around 1.7×10^-9. The probability of a collision after generating n IDs is 1-p^n, so you'll have roughly a 0.17% chance of a collision for each new insertion after 1 million IDs have been inserted, around 1.7% after 10 million IDs, and around 16% after 100 million. 1000 ...
[ 0.13470643758773804, 0.09058387577533722, 0.37204980850219727, 0.11073479056358337, -0.0019617590587586164, 0.42810872197151184, 0.17914265394210815, -0.38953888416290283, -0.34248435497283936, -0.5576370358467102, -0.1646205484867096, 0.08045385032892227, -0.1377582848072052, 0.2885716855...
a 0.5 probability that the coin flip matches, and then 50% of the time there's a 1/10 chance of matching and a 50% chance of a 1/26 chance of matching. That happens 6 times independently, so you multiply those probabilities together.
[ 0.3725115656852722, -0.016680467873811722, 0.19776977598667145, 0.2982848286628723, 0.17969395220279694, 0.331557035446167, 0.31843823194503784, -0.2953813970088959, -0.005447239615023136, -0.5191967487335205, 0.4565165042877197, 0.4406009018421173, -0.13904502987861633, 0.0034039260353893...
Given this data set: ``` ID Name City Birthyear 1 Egon Spengler New York 1957 2 Mac Taylor New York 1955 3 Sarah Connor Los Angeles 1959 4 Jean-Luc Picard La Barre 2305 5 Ellen Ripley
[ 0.026790274307131767, 0.25325262546539307, 0.08352401107549667, 0.05048917606472969, 0.11117105185985565, 0.25747090578079224, 0.5767219662666321, 0.2537669837474823, -0.38313576579093933, -0.0017494288040325046, 0.2568822503089905, 0.31573137640953064, 0.019094077870249748, 0.160941168665...
Nostromo 2092 6 James T. Kirk Riverside 2233 7 Henry Jones Chicago 1899 ``` I need to find the 3 oldest persons, but only one of every city. If it would just be the three oldest, it would be... * Henry Jones / Chicago * Mac Taylor / New York * Egon Spengler / New York However since b...
[ 0.48530399799346924, 0.5340465307235718, 0.7131197452545166, 0.42375198006629944, 0.4555014669895172, -0.046485964208841324, 0.049536481499671936, 0.36213210225105286, -0.24294458329677582, -0.6543006896972656, 0.13787047564983368, 0.037448689341545105, 0.13953302800655365, 0.5479457974433...
(Sarah Connor / Los Angeles) would come in instead. Any elegant solutions? **Update:** Currently a variation of PConroy is the best/fastest solution: ``` SELECT P.*, COUNT(*) AS ct FROM people P JOIN (SELECT MIN(Birthyear) AS Birthyear FROM people GROUP by City) P2 ON P2.Birthyear...
[ -0.21491071581840515, -0.44090864062309265, 0.7868407368659973, 0.32077404856681824, 0.3338009715080261, 0.6326427459716797, 0.045789703726768494, 0.04707222431898117, -0.4907360374927521, -0.615129828453064, 0.1715060919523239, 0.15542517602443695, 0.31814587116241455, -0.1538585424423217...
5 minutes), but moving the subquery to a JOIN will speed it up a lot. It took about 0.15 seconds for approx. 1 mio rows in my test environment. I have an index on "City, Birthyear" and a second one just on "Birthyear". Note: This is related to... * [Selecting unique rows in a set of two possibilities](https://stackov...
[ 0.300403356552124, -0.23610199987888336, 0.7359296679496765, 0.14073026180267334, 0.0727597251534462, 0.2444031983613968, 0.07377824187278748, -0.25064003467559814, 0.13319116830825806, -0.6847259998321533, 0.06486189365386963, 0.18984924256801605, 0.4595332443714142, 0.16925445199012756, ...
by age then limiting to 3 results gets you the 3 oldest people who are also the oldest in their city (Egon Spengler drops out..) ``` SELECT Name, City, Birthyear, COUNT(*) AS ct FROM table WHERE Birthyear IN (SELECT MIN(Birthyear) FROM table GROUP by City) GROUP BY City ORDER BY Birthyear...
[ -0.11886663734912872, 0.4773002564907074, 0.9919383525848389, -0.19462950527668, -0.20108385384082794, 0.04928063601255417, 0.3769623339176178, -0.43514344096183777, -0.32065504789352417, -0.5621436834335327, -0.18193620443344116, 0.05949300527572632, 0.17059598863124847, 0.330746859312057...
ct | +-----------------+-------------+------+----+ | Henry Jones | Chicago | 1899 | 1 | | Mac Taylor | New York | 1955 | 1 | | Sarah Connor | Los Angeles | 1959 | 1 | +-----------------+-------------+------+----+ ``` **Edit** - added `GROUP BY City` to outer query, as people with same birth year...
[ -0.05771112069487572, 0.07710855454206467, 0.3533967435359955, 0.1848035305738449, 0.32858806848526, 0.34978294372558594, -0.13252662122249603, -0.06950408965349197, -0.29052063822746277, -0.4890211522579193, 0.14316153526306152, 0.23369772732257843, -0.4202881455421448, 0.2377780675888061...
if more than one person exists in the city with that `Birthyear`
[ 0.6259185075759888, 0.3490540385246277, 0.13932563364505768, -0.0901239812374115, 0.023756135255098343, -0.06480329483747482, -0.15648242831230164, 0.4352344870567322, -0.2862696647644043, -0.4066470265388489, -0.27581262588500977, 0.06428734958171844, 0.21449965238571167, 0.21130451560020...
Is SSL secure enough for using sensitive data (like password) in query string? Is there any extra options to implement? SSL provides **secure, transport-level security**. Nobody between client and server should be able to read the information. **But** you should **change your mind about writing sensitive data in the q...
[ -0.17777273058891296, -0.21295979619026184, 0.5331017374992371, 0.022263826802372932, -0.11143491417169571, -0.6391465067863464, 0.28373926877975464, -0.03740185499191284, -0.4536248445510864, -0.7863706946372986, -0.5013370513916016, 0.387182354927063, -0.23127320408821106, -0.02086783386...
I need to take a paragraph of text and extract from it a list of "tags". Most of this is quite straight forward. However I need some help now stemming the resulting word list to avoid duplicates. Example: Community / Communities I've used an implementation of Porter Stemmer algorithm (I'm writing in PHP by the way): ...
[ 0.14585907757282257, 0.02286144718527794, 0.23821553587913513, 0.1611327975988388, -0.30112698674201965, -0.11369355022907257, 0.4498465955257416, -0.10482271760702133, -0.343593955039978, -0.5881332159042358, 0.16129297018051147, 0.3391109108924866, -0.12957313656806946, -0.20223949849605...
else solved this problem? *My current thinking is that I could use a stemming algorithm to avoid duplicates and then pick the shortest word I encounter to be the actual word to display.* The core issue here is that stemming algorithms operate on a phonetic basis purely based on the language's spelling rules with no ac...
[ 0.08431421965360641, -0.04532370716333389, 0.1735914647579193, 0.17821235954761505, -0.1657818704843521, 0.17669238150119781, 0.4717165529727936, 0.12617121636867523, -0.2076442986726761, -0.801434338092804, -0.15118788182735443, 0.3223704993724823, -0.0006687503773719072, -0.0490966364741...
a large dictionary which maps each possible stem back to an actual word. (e.g., communiti -> community) 2. Create a function which compares each stem to a list of the words that were reduced to that stem and attempts to determine which is most similar. (e.g., comparing "communiti" against "community" and "communities" ...
[ 0.008526585064828396, -0.13255387544631958, -0.07980671525001526, 0.08504217118024826, -0.24671733379364014, 0.09331265091896057, 0.22813676297664642, -0.1474631130695343, -0.043823692947626114, -0.8458955883979797, -0.02170589007437229, 0.42817774415016174, -0.09954492002725601, -0.100240...
that the most common word is the one that should be used. (e.g., If my body of source text uses "communities" more often than "community", then map communiti -> communities.) A dictionary-based approach will be more accurate in general and building it based on the stemmer input will provide results customized to your t...
[ 0.35637447237968445, 0.1591510772705078, 0.022621307522058487, 0.21881011128425598, -0.07071973383426666, -0.021540794521570206, 0.2237992137670517, 0.11248615384101868, 0.07704687118530273, -0.8522442579269409, -0.12151755392551422, 0.4739782512187958, 0.1235179454088211, -0.2205427289009...
For a new project with Flash I was looking for something along the lines of standard libraries for basic programming needs, along the lines of Python or Ruby standard libraries. But the only thing I found was a dead project on Sourceforge. Thus is there no standard library for flash? Does everyone reinvent the wheel e...
[ 0.4903976023197174, -0.02073444426059723, 0.3678242564201355, 0.14622579514980316, -0.3305777609348297, -0.03776884078979492, -0.06464901566505432, -0.19537527859210968, -0.41853493452072144, -0.4971226155757904, 0.08774562925100327, 0.6649206876754761, -0.2684193253517151, -0.243365138769...
do not not to reinvent the wheel every time.
[ 0.16122150421142578, 0.38967472314834595, -0.40371719002723694, 0.05682036280632019, -0.043342363089323044, -0.0013675573281943798, 0.5025476217269897, 0.08583463728427887, -0.20689812302589417, -0.611497700214386, 0.012270142324268818, 0.6214262843132019, -0.031380731612443924, 0.22159786...
I have found some libraries or web services in PHP that does the job. The problem is that the conversion is done when the page is fully loaded, I would like to **convert the page to PDF** **after some content dynamically added via AJAX** in onload event. Thank you very much, Omar Wow, thank you everyone I didn't know...
[ 0.6392399668693542, 0.08707298338413239, 0.16584868729114532, 0.2684301733970642, -0.21280452609062195, -0.3025551736354828, 0.22284650802612305, -0.11929396539926529, -0.2538774907588959, -0.7596968412399292, 0.22683532536029816, 0.3793325424194336, -0.23507003486156464, 0.086921475827693...
many options. So, the cool thing will be to print when the user makes his own version of the graphic. I think that the best solution is to POST the entire HTML with *document.getElementsByTagName('html')[0].innerHTML* as RoBorg has said and then generate the PDF with a library such as *dompdf*
[ 0.42292940616607666, -0.16362516582012177, 0.5851357579231262, 0.07800757139921188, -0.2352803349494934, -0.03251505270600319, 0.06231467425823212, -0.07664570957422256, -0.1733217090368271, -0.8211122751235962, -0.1793452501296997, 0.6035330891609192, -0.1764686405658722, -0.1092160344123...
See code: ``` var file1 = "50.xsl"; var file2 = "30.doc"; getFileExtension(file1); //returns xsl getFileExtension(file2); //returns doc function getFileExtension(filename) { /*TODO*/ } ``` **Newer Edit:** Lots of things have changed since this question was initially posted - there's a lot of really good informa...
[ 0.1162811890244484, 0.06613944470882416, 0.8193715810775757, -0.06567489355802536, 0.21477405726909637, -0.23081031441688538, 0.10003766417503357, -0.4600634276866913, 0.08778978884220123, -0.7928723096847534, -0.2742149829864502, 0.8706041574478149, -0.13577978312969208, 0.096149370074272...
When you tap a row in a `UITableView`, the row is highlighted and selected. Is it possible to disable this so tapping a row does nothing? For me, the following worked fine: ``` tableView.allowsSelection = false ``` This means `didSelectRowAt#` simply won't work. That is to say, touching a row of the table, as such, ...
[ -0.021391239017248154, -0.11165572702884674, 0.8216338157653809, 0.0058565083891153336, -0.1053241565823555, -0.027258731424808502, 0.3436528742313385, -0.09041726589202881, -0.3217400312423706, -0.6483631134033203, 0.0847582295536995, 0.6438105702400208, -0.21560736000537872, -0.045510802...
you to "select a row" using `didSelectRowAt#`.) Another point to note is that: This doesn't work when the `UITableView` is in editing mode. To restrict cell selection in editing mode use the code as below: ``` tableView.allowsSelectionDuringEditing = false ```
[ -0.04718673974275589, 0.04155684635043144, 0.31804659962654114, -0.08836343139410019, 0.09490761905908585, -0.2581258714199066, 0.13683980703353882, -0.22733867168426514, -0.16466009616851807, -0.5790275931358337, 0.012044886127114296, 0.39963728189468384, -0.36806243658065796, 0.170789375...
I've run into a problem where I'm getting two printouts of my /etc/motd file on Gentoo Linux. sshd is doing one of the printouts, and I can toggle that by configuring /etc/ssh/sshd\_config, but I can't find out who's printing the second copy. I can't disable sshd from printing out the motd due to an audit requirement. ...
[ 0.3340138792991638, 0.21421949565410614, 0.0978311076760292, -0.2983095943927765, -0.08060415089130402, -0.1884576976299286, 0.3926793932914734, 0.11975453048944473, -0.20374563336372375, -0.9160734415054321, 0.20503734052181244, 0.9843719005584717, -0.2641493082046509, 0.09184825420379639...
"This is \n (\s \m \r) (\l)", which is printed only when you're sitting in front of the machine. Looks like the answer was in the /etc/pam.d/login and /etc/pam.d/system-login files. I had to comment out the pam\_motd.so lines.
[ -0.03388594463467598, 0.32008352875709534, 0.5895463228225708, -0.25552430748939514, 0.2862262725830078, 0.2667921185493469, -0.15735295414924622, 0.2730751037597656, -0.5340519547462463, -0.6665060520172119, -0.24249400198459625, 0.3100351095199585, -0.16891440749168396, -0.16592945158481...
I am writing a UDF for Excel 2007 which I want to pass a table to, and then reference parts of that table in the UDF. So, for instance my table called "Stock" may look something like this: > Name            Cost            Items in Stock > > > Teddy Bear    £10              10 > > > Lollipops         20p          ...
[ 0.32422149181365967, 0.07202561944723129, 0.5196391344070435, -0.30901193618774414, -0.43863293528556824, 0.49936193227767944, -0.46929311752319336, -0.05871957913041115, -0.27597856521606445, -0.39934584498405457, 0.2840830385684967, 0.2545509934425354, 0.15754182636737823, 0.228373259305...
I can work out would mean the UDF would have the signature ``` Function TOTALPRICE(table As Range) As Variant ``` What I am having trouble with is how to reference the columns of the table and iterate through them. Ideally I'd like to be able to do it referencing the column headers (so something like table[Cost]). T...
[ 0.2986879348754883, 0.12526658177375793, 0.5103043913841248, -0.30642402172088623, -0.2634032070636749, 0.13619637489318848, -0.1385214775800705, -0.1859787553548813, -0.3498013913631439, -0.6559858918190002, 0.14575880765914917, 0.6113599538803101, -0.3224637508392334, -0.0453739278018474...
row of headers and one column of names (hence the For loop variables starting from 2). There are all kinds of things that might be necessary - we can save those for another question or another round on this one. Note that the function returns a "Variant", btw... ``` Public Function TotalPrice(table As Range) As Vari...
[ 0.02829652465879917, -0.4553945064544678, 0.5460571646690369, -0.12172507494688034, -0.19567400217056274, 0.2982425093650818, 0.03512313961982727, -0.22590488195419312, -0.3815147280693054, -0.23082461953163147, -0.11634285748004913, 0.30577486753463745, -0.38465210795402527, 0.05721018835...
* table.Cells(row, col + 1) Next Next End Function ```
[ -0.2733733654022217, 0.1749546080827713, 0.445193350315094, -0.3488618731498718, 0.256525456905365, 0.018988894298672676, -0.0820421427488327, -0.023481735959649086, -0.24305012822151184, -0.7498977780342102, -0.18624114990234375, 0.18790610134601593, -0.36693885922431946, 0.15742459893226...
Just wanted to get an idea for ways (web) developers get round the short fall of (most) WYSIWYG editors, whereby the users that are editing the text aren't always HTML literate enough to produce good/great results. In the past we have resigned ourselves to either locking down the editor or simply not supplying one. W...
[ 0.2691148519515991, 0.03067484311759472, 0.4682694673538208, -0.059604205191135406, -0.3052425980567932, -0.13154852390289307, 0.08372825384140015, 0.0699787363409996, -0.10562240332365036, -0.3856584131717682, -0.09427327662706375, 0.42767757177352905, -0.17552468180656433, -0.09540248662...
Width="500" Height="250" Background="#FF000000" Foreground="#FF3EE229" > <Grid x:Name="LayoutRoot"> <TextBlock TextWrapping="Wrap" FontSize="40" > <Run Text="This is some sample text to have something to work with. Have a nice day! /Johan"/> </TextBlock> <Canvas Panel.ZIndex="99" > ...
[ 0.1774880737066269, -0.32732704281806946, 0.7446106672286987, -0.03371600806713104, -0.06237386539578438, 0.08085327595472336, 0.30436885356903076, -0.22044990956783295, -0.2637443244457245, -0.9155856370925903, -0.02143719047307968, 0.36150887608528137, 0.13417595624923706, -0.24930061399...
Height="{Binding Path=ActualHeight, ElementName=Window, Mode=Default}" Opacity="0.4" > <Rectangle.Triggers> <EventTrigger RoutedEvent="Rectangle.Loaded"> <BeginStoryboard> <Storyboard>
[ 0.1457492858171463, -0.6204954981803894, 0.5125730633735657, 0.140938401222229, 0.18881571292877197, -0.2698551118373871, 0.14489154517650604, -0.36606565117836, -0.4028962254524231, -0.3992985486984253, 0.002247611526399851, 0.2257753312587738, 0.13064983487129211, -0.02662949450314045, ...
<DoubleAnimation Storyboard.TargetName="ScreenGlintRect" Storyboard.TargetProperty="(Canvas.Left)" From="-500" To="1000" Duration="0:0:2" /> </Storyboard> </BeginStoryboard>
[ 0.37213268876075745, -0.6069082021713257, 0.3460308015346527, -0.03434797748923302, 0.08292778581380844, 0.21439597010612488, 0.27843043208122253, 0.06467919796705246, -0.4176395833492279, -0.7436195015907288, -0.03330383077263832, 0.27118247747421265, 0.08057159930467606, 0.00116152141708...
</EventTrigger> </Rectangle.Triggers> <Rectangle.Fill> <LinearGradientBrush StartPoint="0,1" EndPoint="1,1"> <GradientStop Color="Transparent" Offset="0.0" /> <GradientStop x:Name="GlintColor"
[ 0.05817217752337456, -0.6288387179374695, 0.7032922506332397, -0.014741716906428337, -0.18622852861881256, -0.04078083485364914, -0.24371875822544098, -0.3310500383377075, 0.04302114248275757, -0.35234689712524414, 0.32455119490623474, 0.4154355525970459, -0.08111521601676941, -0.049489896...
Color="LightGreen" Offset="0.50" /> <GradientStop Color="Transparent" Offset="1" /> </LinearGradientBrush> </Rectangle.Fill> </Rectangle> </Canvas> </Grid> </Window> ``` An option is to do this in code behind, which is pretty neat if you want to have...
[ -0.004532962571829557, -0.3720473051071167, 0.43796977400779724, -0.003126155585050583, -0.12185098230838776, 0.08006235957145691, 0.018243415281176567, -0.21313035488128662, -0.2266407608985901, -0.8769441246986389, -0.01672944612801075, 0.4145906865596771, -0.04089862108230591, -0.351687...
ScreenGlintRect.Width = Width; ScreenGlintRect.Height = Height; var animation = new DoubleAnimation { Duration = new Duration(TimeSpan.FromSeconds(2)), From = (-Width), To = Width * 2 }; ScreenGlintRect.BeginAnimation(Canvas.LeftProperty, animation); ``` This is the code I'...
[ 0.35402610898017883, -0.3456740975379944, 0.7309610843658447, -0.2758462429046631, 0.15780743956565857, 0.009134058840572834, 0.12696221470832825, -0.159346804022789, -0.41172054409980774, -0.9450737237930298, -0.17446109652519226, 0.4320574104785919, -0.030933406203985214, 0.0463527068495...
rectangle, but basically this is it.
[ 0.03332618623971939, -0.39958518743515015, 0.48442500829696655, 0.10924828052520752, -0.03152118995785713, -0.4095049202442169, -0.2677609920501709, 0.008044756948947906, -0.41131749749183655, -0.5889157056808472, 0.1199612021446228, -0.43258795142173767, -0.05254945158958435, 0.1336500346...
``` dir(re.compile(pattern)) ``` does not return pattern as one of the lists's elements. Namely it returns: ``` ['__copy__', '__deepcopy__', 'findall', 'finditer', 'match', 'scanner', 'search', 'split', 'sub', 'subn'] ``` According to the manual, it is supposed to contain > the object's attributes' names, the >...
[ -0.16070638597011566, -0.06058376282453537, 0.23839710652828217, -0.04062068089842796, -0.13970907032489777, -0.158193901181221, 0.28492218255996704, -0.30515891313552856, -0.08560299128293991, -0.4452694058418274, -0.14215752482414246, 0.5339966416358948, -0.4381199777126312, 0.0536395348...
a bug in python -> supposedly it is fixed in the 3.0 branch (and perhaps also in 2.6)* For the **complete** list of attributes, the short answer is: no. The problem is that the attributes are actually defined as the arguments accepted by the `getattr` built-in function. As the user can reimplement `__getattr__`, sudden...
[ -0.0797712430357933, 0.0825708657503128, 0.2700273096561432, -0.09449145942926407, 0.18320967257022858, -0.089474618434906, 0.22105872631072998, 0.31478771567344666, -0.3301137685775757, -0.5383773446083069, -0.17419172823429108, 0.6585214138031006, -0.7347247004508972, 0.34778204560279846...
methods are callable attributes, nothing more. You could though filter callable attributes, and, using the `inspect` module determine the class methods, methods or functions.
[ 0.1373860388994217, -0.30485936999320984, -0.1767290085554123, 0.4781576991081238, -0.29699036478996277, -0.21859478950500488, -0.06213143840432167, -0.16563794016838074, -0.06836243718862534, -0.3968238830566406, -0.010011916980147362, 0.525259792804718, -0.22491014003753662, -0.128032624...
The Separat*ion* of Layout and Content is the domain of CSS and HTML - so far well understood. Now about separat*ing*... I'm looking for hints and Best Practices to get started with the task of providing a "skin" or "theme" for a content management system. Background: ----------- We are starting to embrace a Portal...
[ 0.3413279056549072, 0.31573885679244995, 0.6993671655654907, 0.10420940816402435, -0.5642402768135071, -0.2649121582508087, 0.054235491901636124, -0.006034424062818289, 0.03534632548689842, -0.554514467716217, -0.1479770541191101, 0.42505478858947754, -0.36343666911125183, 0.28006747364997...
semantic, almost no tables :) that needs to be skinned with CSS and Images. Though it is possible to change the HTML fragments, I'd prefer to do so only as a last resort. As this provides the challenge of "how to get started" my question is about any tipps how to proceed or articles that can help managing or organizin...
[ 0.2079150676727295, -0.18862305581569672, 0.6425314545631409, 0.3809153437614441, -0.1656072437763214, -0.38528943061828613, 0.12646733224391937, -0.10368669033050537, -0.2790271043777466, -0.6854751110076904, -0.034186773002147675, 0.4699888229370117, -0.03182084858417511, -0.180997118353...
CSS files but changes to HTML elements must be retrofitted to the fragments that they are generated from. I'd like to keep this out of the designer's realm if possible. Also, the thought of Dreamweaver (or any similar tool) making implicit tweaks to the HTML structure is frightening for me. *For the curious: The menti...
[ 0.4077548682689667, 0.2586256265640259, 0.05674862489104271, 0.19882361590862274, -0.016563015058636665, -0.009291593916714191, 0.3848995864391327, 0.39076149463653564, -0.30201196670532227, -0.6220253705978394, -0.23258577287197113, 0.26300308108329773, -0.17520272731781006, -0.0917237475...
content, then I'd suggestion the [CSS Zen Garden](http://www.csszengarden.com/). Trawling through the HTML and CSS is inspirational and enlightening and should help with what you're trying to do. My #1 tip would be be to make everything as semantic as possible and use lots of classes and ids to hook your styles onto.
[ 0.6681596040725708, -0.11732891201972961, 0.0359487421810627, 0.3022102415561676, 0.08669990301132202, -0.27500319480895996, 0.2361493706703186, 0.5388044118881226, -0.17004713416099548, -0.5973842740058899, -0.07929321378469467, -0.00801370944827795, 0.3665367662906647, -0.025825934484601...
I am working on a Software Project that needs to be translated into 30 languages. This means that changing any string incurs into a relatively high cost. Additionally, translation does not happen overnight, because the translation package needs to be worked by different translators, so this might take a while. Adding ...
[ 0.5807304978370667, 0.2415938377380371, 0.21386206150054932, 0.11489842087030411, 0.16412250697612762, -0.23593316972255707, 0.4868168830871582, 0.08256319910287857, 0.05280829593539238, -0.6690797805786133, 0.01728646457195282, 0.5310812592506409, -0.0931200310587883, 0.11913648992776871,...
Any tips in how to ease the impact of translation in the software project? How to rule the strings, instead of having the strings rule you? EDIT: We are using Java and all Strings are internationalized using Resource Bundles, so the problem is not the internationalization per-se, but the management of the strings. I'm...
[ 0.019040998071432114, 0.01387907937169075, 0.24886199831962585, 0.18958814442157745, -0.12159540504217148, -0.5789710283279419, 0.36969977617263794, 0.09266738593578339, -0.2521785497665405, -0.5465519428253174, -0.10155726969242096, 0.5297779440879822, -0.27084779739379883, -0.04491030797...
same piece of text across multiple pages. Your framework may not, however, support only having that piece of text in one file (resource files in asp.net, for instance, encourage you to have one resource file per language). The way that we found to work with things was to have a central database repository of translati...
[ 0.36195147037506104, 0.003591734915971756, 0.13528290390968323, 0.21410565078258514, -0.06671849638223648, -0.22503210604190826, 0.2653147876262665, 0.16022656857967377, -0.36556392908096313, -0.8612405061721802, -0.12798579037189484, 0.4255816638469696, -0.25847479701042175, -0.0085346689...
is passing translations to your translation vendor and back. There are a couple ways for this - see if your translation vendor is willing to accept XML files and return properly formatted XML files. This is, really, one of the best ways, since it allows you to automate your import and export of translation files. Anoth...
[ 0.308026522397995, 0.10043662041425705, 0.2689955532550812, 0.35795319080352783, 0.01744242198765278, -0.12852692604064941, 0.3925243318080902, 0.08416200429201126, -0.2316782921552658, -0.3229314088821411, -0.20623435080051422, 0.6501731872558594, -0.43959999084472656, -0.265977680683136,...
thing that you can. Copy and paste is *not* your friend in this scenario.
[ 0.17573091387748718, -0.008581824600696564, -0.13922922313213348, 0.3549903929233551, 0.3964514136314392, -0.1365431398153305, 0.4722929298877716, 0.42030656337738037, -0.1231970340013504, -0.6915706992149353, -0.047715622931718826, 0.5213810801506042, -0.41327640414237976, -0.082151472568...
What code generation tools are built-in to vs.net 2008 or are officially available via Microsoft? I know of: * Entity Framework * sqlmetal What else is there? Ideally i'm looking for something that will generate from an existing database schema. I'm not sure the platform you're internationalizing in. I've written a...
[ 0.18260425329208374, 0.004812082275748253, 0.3828890323638916, 0.32126539945602417, -0.1569918394088745, -0.3686102330684662, 0.2716177999973297, 0.04475724324584007, -0.15778134763240814, -0.7143723368644714, 0.10327031463384628, 0.6476126909255981, -0.2003195732831955, 0.0338404178619384...
of text in one file (resource files in asp.net, for instance, encourage you to have one resource file per language). The way that we found to work with things was to have a central database repository of translations. We created a small .net application to import translations from resource files into that database and...
[ 0.3496191203594208, 0.21614664793014526, 0.2292124181985855, 0.31896498799324036, -0.09140471369028091, -0.13887041807174683, 0.3446418344974518, 0.334116667509079, -0.22038955986499786, -0.6488210558891296, -0.28878867626190186, 0.6409112811088562, -0.25711143016815186, -0.030766934156417...
see if your translation vendor is willing to accept XML files and return properly formatted XML files. This is, really, one of the best ways, since it allows you to automate your import and export of translation files. Another alternative, if your vendor allows it, is to create a website to allow them to edit the trans...
[ 0.20356042683124542, 0.07824601233005524, 0.11657409369945526, 0.4017281234264374, 0.07439836859703064, -0.08257409930229187, 0.40709027647972107, 0.18413853645324707, -0.18006891012191772, -0.5781089067459106, -0.29154080152511597, 0.8193368315696716, -0.45795905590057373, -0.303119570016...
A question regarding a DB development project. The database already exist and is rather large (several TBs). 1. What do you use for version control in DB development? 2. How do you control concurrent changes to the data model by different teams 3. What is your approach to the Unit Testing in the DB development 4. How ...
[ 0.45492950081825256, 0.004728221334517002, -0.05445590615272522, 0.1396634429693222, -0.3815425634384155, -0.16055984795093536, 0.10090585798025131, -0.4518357217311859, -0.18155352771282196, -0.3153528571128845, 0.14611934125423431, 0.5545217394828796, -0.07469914108514786, 0.301645874977...
items as you see fit. Each answer will be reviewed separately. Thank you very much! **EDIT:** A related question with good answers to the p.1 is here: [How do you version your database schema?](https://stackoverflow.com/questions/175451/how-do-you-version-your-database-schema) A few months ago, I searched and found no...
[ 0.2069050669670105, -0.15143169462680817, 0.4350306987762451, 0.23574426770210266, 0.1976153403520584, -0.2536223232746124, 0.14388106763362885, -0.15638360381126404, -0.5434728264808655, -0.34945163130760193, 0.011076437309384346, 0.19102294743061066, -0.19383065402507782, 0.2211514711380...
I'm getting ready to start a new project and I've been researching the entity framework. My question is what is the best strategy for validating the entities? Other projects I've worked on have used attributes for most of the validation, but obviously this is not possible in the entity framework. Is the only way to do ...
[ 0.3771573305130005, 0.2191435992717743, 0.228603333234787, 0.28302261233329773, 0.033039748668670654, -0.2809346914291382, 0.3165016174316406, -0.15344028174877167, -0.07896142452955246, -0.3643448054790497, 0.37395623326301575, 0.6945291757583618, 0.2976532578468323, 0.054518215358257294,...
thought I would throw it out there explicitly. 2) Hook into the OnChanged events of the Entity then perform validation Likely brittle and would become confusing/slow after if you have many different properties things that can change for each entity. 3) Implement partial methods to validate property changes Accordin...
[ 0.31896907091140747, 0.08409447222948074, 0.34577491879463196, 0.255235493183136, -0.20620566606521606, -0.1983516961336136, 0.4514164924621582, -0.09113937616348267, -0.1588258296251297, -0.4230807423591614, 0.2061350792646408, 0.4798696041107178, 0.00901741161942482, 0.06841570138931274,...
I am currently using NUnit and testing a class library. Up until now, I have used a list of constants at the top of the test class to hold some static test variables. Is this the best way to do this, or is there a more fluent way to handle it? By "static test variables" do you actually mean constants (whether genuine c...
[ 0.4030534625053406, 0.016350308433175087, 0.007628270424902439, 0.219302237033844, -0.40344858169555664, -0.010556438937783241, 0.3187106251716614, 0.07269814610481262, -0.1551041454076767, -0.25916051864624023, 0.28015702962875366, 0.5773160457611084, 0.043386876583099365, 0.1996369063854...
into a different class though. (It *could* act as your base class, but I'm not terribly fond of using inheritance just to get access to things more easily. Java static imports are handy there...)
[ 0.20184050500392914, -0.5387745499610901, -0.17908942699432373, 0.08008357882499695, -0.2533653676509857, -0.29772621393203735, 0.1903490424156189, 0.0632271096110344, -0.22638332843780518, -0.5202965140342712, 0.023631451651453972, 0.3690946102142334, -0.14107000827789307, 0.1187659129500...
What are your usage of delegates in C#? Now that we have lambda expressions and anonymous methods in C#, I use delegates much more. In C# 1, where you always had to have a separate method to implement the logic, using a delegate often didn't make sense. These days I use delegates for: * Event handlers (for GUI and mor...
[ 0.4923023581504822, 0.03492274135351181, -0.021615106612443924, 0.3365163207054138, -0.22401927411556244, -0.28738054633140564, -0.3590115010738373, -0.24458274245262146, -0.6474357843399048, -0.38666224479675293, 0.17648270726203918, 0.5311223268508911, -0.3685251474380493, -0.05300550907...
You'd like to call a stored proc on MS SQL that has a parameter type of TIMESTAMP within T-SQL, not ADO.NET using a VARCHAR value (e.g. '0x0000000002C490C8'). What do you do? UPDATE: This is where you have a "Timestamp" value coming at you but exists only as VARCHAR. (Think OUTPUT variable on another stored proc, but...
[ 0.3078407645225525, -0.20349563658237457, 0.2049376517534256, -0.0805463194847107, 0.264697790145874, -0.034534722566604614, -0.07313763350248337, 0.1062113419175148, -0.33308687806129456, -0.5076509118080139, -0.045243289321660995, 0.5148048400878906, -0.5280193090438843, 0.16695301234722...
anywhere other than as a table column type. In that capacity, the column of type timestamp will give you a rigorous ordinal of the last insert/update on the row in relation to all other updates in the database. To see the most recent ordinal across the entire database, you can retrieve the value of @@DBTS or rowversion...
[ 0.24391889572143555, 0.0559367835521698, 0.45239561796188354, 0.0947255790233612, 0.3055305778980255, 0.14115960896015167, -0.057727742940187454, -0.25140127539634705, -0.3416120707988739, -0.8667288422584534, -0.12751170992851257, -0.12118712067604065, -0.2850027084350586, 0.3507696688175...
data type is just an incrementing number and does not preserve a date or a time. To record a date or time, use a datetime data type. Hence, the volatile value of a timestamp column cannot be set and is subject to change upon any modifaction to the row. You can, however, freeze the timestamp value to a varbinary(8) val...
[ 0.023814165964722633, -0.1098652109503746, 0.14081919193267822, 0.07776911556720734, 0.10954831540584564, 0.06185244023799896, -0.04918520525097847, -0.1551855206489563, -0.3604099452495575, -0.27759140729904175, -0.05479651317000389, -0.04434749484062195, -0.5403174757957458, 0.4863812327...
capture everything that has been updated since the last time you ran the extraction process. ``` DECLARE @maxFrozenTargetTimestamp varchar(8) SELECT @maxFrozenTargetTimestamp = max(colStamp) FROM tblTarget INSERT tblTarget(Id, colData, colTimestampVarBinary) SELECT Id ,colData colTimestampVarBinary = convert(varbina...
[ -0.03067016787827015, -0.24224887788295746, 0.3791975975036621, -0.16169017553329468, -0.1080855056643486, 0.20435099303722382, 0.06647396832704544, -0.30750325322151184, -0.5878764390945435, -0.20564952492713928, 0.05914396047592163, 0.5737317204475403, -0.5018064379692078, 0.152699291706...
I am creating a new build process for a DotNet project which is to be held in Subversion. For each dll/exe that I compile (via Nant) I would like to include 2 additional attibutes in the dlls that are built. I already understand the workings of the 'asminfo' nant task. But I need help retrieving the information which...
[ 0.6365160346031189, 0.09046632051467896, 0.17082750797271729, -0.08489067852497101, -0.3007586896419525, -0.10534323006868362, 0.18121211230754852, 0.11219858378171921, -0.10163409262895584, -0.8607520461082458, -0.11888717859983444, 0.508233368396759, -0.15167474746704102, 0.2279780060052...
these are not the names this information goes by in svn) In order to do this I will need to extract the RepositoryVersion and RepositoryPath represented by the working copy folder that the BuildFile sits within. **How do I extract this information from any given .svn folder into the 2 nant variables?** Firstly, you c...
[ 0.28892964124679565, 0.03247932717204094, 0.41538992524147034, 0.05932753533124924, -0.28566572070121765, 0.07554122060537338, 0.11188484728336334, -0.3485918641090393, -0.2145521193742752, -0.6774934530258179, 0.03743471950292587, 0.7698227763175964, -0.034800123423337936, 0.1903904974460...
I do all my coding in vim and am quite happy with it (so, please, no "use a different editor" responses), but have an ongoing annoyance in that the smartindent feature wants to not indent comments beginning with # at all. e.g., I want ``` # Do something $x = $x + 1; if ($y) { # Do something else $y = $y ...
[ 0.8217687606811523, 0.016964206472039223, 0.3325117528438568, -0.15058791637420654, -0.2153543382883072, -0.25172972679138184, 0.3984939157962799, 0.039175692945718765, -0.0014803585363551974, -0.6813375353813171, -0.14545224606990814, 0.5851558446884155, -0.1402675211429596, 0.18232642114...
$z; } ``` The only ways I have been able to prevent comments from being sent to the start of the line are to either insert and delete a character on the line before hitting # (a nuisance to have to remember to do every time) or turn off smartindent entirely (losing automatic indentation increase/decrease as I open/...
[ 0.3847355544567108, 0.18892627954483032, 0.4392153322696686, -0.14683479070663452, -0.029179751873016357, -0.0019498468609526753, 0.5554412007331848, 0.01696995086967945, 0.10116556286811829, -0.70111083984375, -0.18581174314022064, 0.7754449248313904, -0.3357453942298889, 0.17922820150852...
to set the filetype when opening a buffer and configure the indentation and syntax highlighting. No need to explicitly set smartindent since Vim's included Perl syntax file will set it (and any other Perl-specific customizations) automatically. --- *Note: having either `set smartindent` and/or `set autoindent` in `~/...
[ 0.25403669476509094, -0.15116672217845917, 0.49930107593536377, -0.03104379214346409, 0.04251083731651306, -0.19625729322433472, 0.3152545988559723, -0.05455755442380905, -0.172394797205925, -0.6597617864608765, -0.3312563896179199, 0.7896396517753601, -0.2564959228038788, -0.2884074449539...
Are there any tools for just browsing SQL Server? I ask because sometimes SSMS is a little heavy weight when I just want to look through the database and find one record, and SQLCMD doesn't really seem like a good choice when browsing through a lot of different records or a lot of large records. Yes, [QueryExpress](htt...
[ 0.4970735013484955, 0.046014025807380676, 0.005216995719820261, 0.16877542436122894, 0.1079324260354042, -0.1523880660533905, -0.09080159664154053, 0.25295284390449524, -0.40327006578445435, -0.5117505192756653, 0.5033367872238159, 0.37328341603279114, 0.019894106313586235, 0.2829231321811...
I am trying to send my dynamically created silverlight 2 page/image to a an ASP.net web service to render it as an bitmap image. I can see many examples how to get the XAML using javascript ([see here](http://www.thedatafarm.com/blog/2008/01/31/ConvertingSilverlightInkPresenterImagesToAPNGFile.aspx)) in version 1 of s...
[ 0.358512818813324, 0.05763630568981171, 0.46040788292884827, -0.07409080862998962, -0.41764888167381287, -0.27015551924705505, 0.2043607234954834, -0.2537935674190521, -0.2869928181171417, -0.621117889881134, 0.08474740386009216, 0.4276420772075653, -0.6531961560249329, -0.0805900022387504...
page in c#? Thank you --- Update: This is now possible under silverlight 3 using a writable bitmap to save the XAML as a JPEG see my blog post here: <http://blog.blueboxes.co.uk/2009/07/21/rendering-xaml-to-a-jpeg-using-silverlight-3/> Yes, [QueryExpress](http://www.albahari.com/queryexpress.aspx) is a great, light...
[ 0.09857669472694397, 0.21910248696804047, 0.675873339176178, -0.1989317387342453, -0.4584696888923645, -0.13577058911323547, 0.2986146807670593, -0.0030230688862502575, -0.3332843780517578, -0.6362888813018799, -0.22830846905708313, 0.33113497495651245, -0.4355742931365967, 0.0167497489601...
I have a client who is still using Visual Studio 6 for building production systems. They write multi-threaded systems that use STL and run on mutli-processor machines. Occasionally when they change the spec of or increase the load on one of their server machines they get 'weird' difficult to reproduce errors... I k...
[ 0.45372745394706726, 0.41852301359176636, 0.07143578678369522, -0.016968125477433205, -0.2814352512359619, 0.06772799044847488, 0.030488744378089905, 0.12025503069162369, -0.10701460391283035, -0.3555333912372589, 0.12959882616996765, 0.6511516571044922, -0.1307639181613922, 0.093287155032...
known issues or reasons to upgrade along with links to where these issues are discussed or reported. It would also be useful to have real life 'horror stories' of how these issues have bitten you. Not supported on 64-bit systems, compatibility issues with Vista, and it was moved out of extended support by Microsoft on ...
[ 0.002147711580619216, -0.040571704506874084, 0.3561030924320221, -0.009506229311227798, -0.03624597564339638, -0.027934983372688293, 0.5763708353042603, 0.29935669898986816, 0.07948978245258331, -0.21495193243026733, -0.1318131983280182, 0.7544520497322083, -0.3039928376674652, 0.260501503...
I want to force the current execution line to a specific line in the same function, possibly skipping intermediate lines. All my old school debuggers had this feature, but I can't find it in eclipse. Is there a way to do it without changing code? The first two answers seem to miss the topic, unless it is me not underst...
[ 0.43475571274757385, -0.09716015309095383, -0.014230053871870041, -0.07075148075819016, 0.01178623829036951, 0.3222549855709076, 0.3131486177444458, -0.3070301413536072, -0.4824393093585968, -0.4001026153564453, 0.058687999844551086, 0.22820201516151428, -0.14385221898555756, -0.1880182921...
some costly object creation, see some error situations, etc. I used to do that in Visual Studio (C or C++ code). I haven't found that in Eclipse, nor in NetBean. It might be a limitation of JVM, or an enforcement of some policy... The *Run to line* command execute, of course, all lines between the current execution p...
[ 0.32115212082862854, -0.41112223267555237, 0.27712559700012207, 0.11193529516458511, -0.16572974622249603, -0.23783430457115173, 0.3049190938472748, 0.35958340764045715, -0.028262212872505188, -0.651272714138031, -0.03318841755390167, 0.4679722189903259, -0.2541404366493225, -0.02732283994...
If you launch Emacs using the `-nw` flag to force a console session (rather than an X session if you have X windows running), how do you get to the menu? There are some items held in the menus that are infrequently-enough used on my part that I don't recall the escape or control sequence to do them. `M-x menu-bar-open...
[ 0.008325515314936638, 0.20976804196834564, 0.393979012966156, 0.12799806892871857, 0.277163028717041, 0.12897083163261414, 0.2086191624403, 0.07181116193532944, -0.29345253109931946, -0.3942522406578064, -0.3429357409477234, 0.5184358954429626, -0.21392279863357544, 0.061051029711961746, ...
Trying to debug an issue with a server and my only log file is a 20GB log file (with no timestamps even! Why do people use `System.out.println()` as logging? In production?!) Using grep, I've found an area of the file that I'd like to take a look at, line 347340107. Other than doing something like ``` head -<$LINENU...
[ 0.16394124925136566, 0.1932571828365326, 0.5162383913993835, 0.14126667380332947, 0.11767356842756271, 0.001646177377551794, 0.5354363322257996, 0.05368650332093239, -0.38248366117477417, -0.6780009865760803, -0.003772979835048318, 0.3969291150569916, -0.14462986588478088, 0.09719567745923...
grep can print the context around a match ... this works well. Thanks! with GNU-grep you could just say ``` grep --context=10 ... ```
[ -0.38578712940216064, 0.16419130563735962, 0.2697853744029999, 0.15617947280406952, -0.4110327661037445, -0.06223220378160477, 0.02474135532975197, 0.07094868272542953, -0.23028627038002014, -0.5385805368423462, -0.1598588079214096, 0.6360852718353271, -0.6947520971298218, -0.3535007238388...