text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
Given a bitmap image with some blots of solid color on it, what algorithm would you employ to construct polygons in the same shape as the blots? This can be done in multiple steps: a high-resolution polygon could be later cut down by a best fit algorithm. Bonus points if you can tell me how to cut the resulting polygo...
[ 0.10441876202821732, -0.16603399813175201, 0.21831263601779938, 0.10333187133073807, -0.5069257616996765, 0.5253773927688599, -0.07012776285409927, 0.05007354915142059, -0.18725106120109558, -0.6249710917472839, -0.04346132278442383, 0.5138182044029236, -0.5706765055656433, -0.122608199715...
vectorization for some good examples. For good algorithms for polygon partitioning, check out Joespeh O'Rourkes 'Computational Geometry in C', ISBN 0-521-44034-3, or search for [concave polygon partitioning](http://www.google.com/search?hl=en&safe=off&rls=p%2Ccom.microsoft%3Aen-gb&q=concave+polygon+partitioning) algor...
[ -0.296864777803421, -0.5166947841644287, 0.28940367698669434, 0.1797545850276947, -0.4642452597618103, 0.37163713574409485, -0.43321412801742554, -0.07174063473939896, -0.4544234871864319, -0.8144099712371826, 0.03590061515569687, 0.4469384551048279, -0.4660356938838959, -0.068374052643775...
I am storing all my passwords in the form hashed. I need to retrieve these passwords Eg My password is "123456" I save this as hashed "3453474852dfdsfdsfdf" value. I need to retrieve the original password from the hashed value. (Get Password). How can I do that?. I am doing SHA1 hashing algorithm. Two interesting ar...
[ 0.2935872972011566, 0.30947014689445496, -0.1263628453016281, 0.027471553534269333, -0.37197738885879517, -0.319860577583313, 0.39396876096725464, -0.21164892613887787, -0.3299752473831177, -0.611758291721344, 0.015711868181824684, 0.5233331918716431, 0.004156673327088356, 0.19292840361595...
can take a look at how [KeePass](http://keepass.info/ "KeePass Password Safe") works (it is open source).
[ 0.7129234671592712, -0.1862693727016449, 0.1587856411933899, 0.04266347736120224, 0.2732779085636139, -0.7645260691642761, 0.358647882938385, 0.27871859073638916, -0.15662610530853271, -0.1494835466146469, -0.4227864444255829, 0.5071743130683899, -0.15567868947982788, -0.06652017682790756,...
Do you have pseudocode for field validation of the following items in the UK? I am from the USA, so I only know the ones in the USA right now. * Address Line 1 * Phone Number * Mobile Number (in case they have a special rule for this, which they might not) * Post Code Address line 1, if you want to validate what the u...
[ 0.9216284155845642, 0.0826420709490776, 0.367150217294693, -0.052179817110300064, -0.011395502835512161, 0.02386114001274109, 0.34741148352622986, 0.02220553159713745, -0.1395232230424881, -0.24312834441661835, 0.010983114130795002, -0.09729374945163727, -0.24604815244674683, 0.08043776452...
correct address from all addresses at that postcode Phone and mobile numbers. See here <http://en.wikipedia.org/wiki/Telephone_numbers_in_the_United_Kingdom>. A script to validate these (in several languages) can be found here: <http://www.braemoor.co.uk/software/telnumbers.shtml> Post code format: <http://en.wikiped...
[ 0.35179591178894043, 0.1979394257068634, 0.8907248377799988, -0.26825475692749023, 0.29696446657180786, 0.12079895287752151, 0.5285544991493225, -0.40036025643348694, -0.03730621188879013, -0.2871183156967163, -0.6276174783706665, 0.057580120861530304, 0.0151784997433424, -0.14739173650741...
How do I add a certain number of days to the current date in PHP? I already got the current date with: ``` $today = date('y:m:d'); ``` Just need to add x number of days to it `php` supports c style date functions. You can add or substract date-periods with English-language style phrases via the `strtotime` function...
[ 0.1889079064130783, -0.009479277767241001, 0.9560512900352478, 0.038344625383615494, 0.13715699315071106, 0.16789597272872925, 0.15044640004634857, -0.19404010474681854, -0.348192423582077, -0.2239682376384735, -0.21896998584270477, 0.34217584133148193, -0.012293757870793343, 0.15084275603...
strtotime("+".$countDates." days")); echo "<option>" . $NewDate . "</option>"; $countDates += 1; } ?> ```
[ 0.5566102862358093, -0.07333235442638397, 0.427999883890152, -0.37478575110435486, 0.2127906233072281, 0.16117729246616364, 0.3973734676837921, -0.6715538501739502, -0.17329029738903046, -0.30438053607940674, -0.30837783217430115, 0.4139017164707184, -0.356528103351593, 0.23927097022533417...
Is it possible to have a CSS rule which basically "undoes" a prior rule? An example: ``` <blockquote> some text <em>more text</em> other text </blockquote> ``` and let's say there's this CSS: ``` blockquote { color: red; } ``` ...but I want the `<em>` to remain the normal text color (which you may not ne...
[ 0.21772316098213196, 0.03558284044265747, 0.07807943969964981, -0.11895471811294556, 0.10736141353845596, -0.03347400575876236, 0.13151784241199493, 0.09201064705848694, -0.35249367356300354, -0.6769854426383972, -0.18821391463279724, 0.2570805549621582, -0.5132445693016052, 0.115721970796...
<li>This text should be BLUE <ul> <li>Same as outside the UL</li> <li>Same as outside the UL</li> </ul> </li> </ul> ul { color: blue; } ul ul { color: ???; } ``` With CSS alone, you can't refer to a parent's parent. The thing you can do is try a mix of specific CS...
[ -0.06317228078842163, 0.08976196497678757, 0.023248346522450447, -0.22110053896903992, -0.2010558843612671, 0.34866753220558167, 0.16719172894954681, 0.3189259171485901, 0.04784374311566353, -1.00664484500885, -0.5487745404243469, 0.05945112183690071, -0.4166886508464813, 0.295256018638610...
``` <td> This is the enclosing element. <ul> <li>This is the first level UL, direct child of TD <ul> <li>This is the second level UL</li> <li>Same as outside the UL</li> </ul> </li> </ul> </td> ``` CSS: ``` td > ul color: blue; /* this affects the "direct child" UL only */...
[ 0.07838010042905807, -0.04305293411016464, 0.2196500599384308, -0.12931746244430542, -0.16453033685684204, 0.282767117023468, -0.08179328590631485, -0.2257799506187439, 0.13190561532974243, -0.7081707715988159, -0.4064033031463623, 0.2614927291870117, -0.27464550733566284, -0.0077744340524...
gets its setup from the enclosing text. Read more on the [CSS Child Selector](http://meyerweb.com/eric/articles/webrev/200006b.html), and be aware that older browsers may have their quirks with them. --- **EDIT** For Internet Explorer 6, the child selector can be faked to some extend. Be sure to fasten seat belts (...
[ 0.26260414719581604, -0.1700451672077179, 0.14040562510490417, 0.14261363446712494, 0.5705774426460266, -0.008069065399467945, 0.15252293646335602, 0.04306736961007118, -0.05846962332725525, -0.500845730304718, -0.27768656611442566, 0.6598482131958008, -0.05793622508645058, -0.109384633600...
other properties of parent elements). Or you give up and use a JS framework, as someone else has already suggested. The wimpy solution without having to use JS would of course be: ``` td ul.first { color: blue; } ``` But I can see why you want to avoid that.
[ 0.35648471117019653, -0.13238753378391266, -0.1035010889172554, 0.06209386885166168, 0.08681931346654892, -0.35619911551475525, 0.37984830141067505, 0.21583543717861176, 0.003121204674243927, -0.6955782175064087, -0.32849961519241333, 0.469243586063385, -0.44462642073631287, 0.241088166832...
Let's say I have a source file with many preprocessor directives. Is it possible to see how it looks after the preprocessor is done with it? `cl.exe`, the command line interface to Microsoft Visual C++, has three different options for outputting the preprocessed file (hence the inconsistency in the previous responses a...
[ 0.21856321394443512, 0.02478332258760929, 0.32140621542930603, -0.009280744940042496, -0.2550182342529297, 0.011186121962964535, 0.07708901911973953, -0.34279271960258484, -0.061326202005147934, -0.581667423248291, -0.5760763883590698, 0.7130495309829712, -0.23388133943080902, -0.271941155...
Which libraries for Java are there that have a fast implementation for floating point or fixed point operations with a precision of several thousands of digits? How performant are they? A requirement for me is that it implements a multiplication algorithm that is better than the naive multiplication algorithm that tak...
[ 0.06481095403432846, -0.043591175228357315, -0.07881109416484833, 0.09143485873937607, -0.11340232938528061, 0.016462774947285652, -0.055105313658714294, -0.11722932755947113, -0.4729689955711365, -0.4332578480243683, 0.1448558121919632, 0.35075801610946655, -0.34917712211608887, -0.011367...
is that for a relatively small number of digits BigDecimal is OK (half as fast as the others for 1000 digits), but if you use more digits it is way off - JScience is about 4 times faster. But the clear performance winner is Apfloat. The other libraries seem to use naive multiplication algorithms that take time proporti...
[ -0.5848987698554993, -0.11053168028593063, 0.4653862416744232, 0.2939969003200531, -0.18725940585136414, -0.056022923439741135, 0.1271350234746933, 0.022178566083312035, -0.7620165348052979, -0.5677106380462646, -0.15657825767993927, 0.20323719084262848, 0.03134683892130852, -0.15197747945...
other hand: JScience provides EXCELLENT functionality for mathematical problems: matrices, vectors, symbolic algorithms, solution of equation systems and what not. So I'll probably go with JScience and later write a wrapper to integrate Apfloat into the algorithms of JScience - due to the good design this seems easily ...
[ 0.06259094923734665, 0.19092388451099396, 0.30748361349105835, 0.14325165748596191, -0.2266456037759781, -0.20909236371517181, 0.0217849463224411, -0.18819566071033478, -0.36933618783950806, -0.4311712086200714, -0.10478916019201279, 0.3979950249195099, -0.5214159488677979, -0.294580847024...
What is a mathematical way of of saying 1 - 1 = 12 for a month calculation? Adding is easy, 12 + 1 % 12 = 1, but subtraction introduces 0, stuffing things up. My actual requirement is x = x + d, where x must always be between 1 and 12 before and after the summing, and d any unsigned integer. I'd work internally with a...
[ 0.43448930978775024, 0.3691135048866272, 0.27223509550094604, -0.2700191140174866, -0.26359865069389343, 0.33544379472732544, 0.15061414241790771, -0.44816893339157104, -0.22133062779903412, -0.2628042697906494, 0.018323713913559914, 0.505683183670044, 0.201156884431839, -0.101509839296340...
print '%d + 1 => %d' % (i, (i+1)%12) ... 0 + 1 => 1 1 + 1 => 2 2 + 1 => 3 3 + 1 => 4 4 + 1 => 5 5 + 1 => 6 6 + 1 => 7 7 + 1 => 8 8 + 1 => 9 9 + 1 => 10 10 + 1 => 11 11 + 1 => 0 12 + 1 => 1 13 + 1 => 2 14 + 1 => 3 >>> for i in range(15): ... print '%d - 1 => %d' % (i, (i-1)%12) ... 0 - 1 => 11 1 - 1 => 0 2 - 1 => 1 3 -...
[ 0.05023191496729851, 0.3086957335472107, 0.43033552169799805, -0.26776230335235596, -0.15017201006412506, 0.5447385907173157, 0.5986080169677734, -0.8272913694381714, 0.12881046533584595, -0.5212243795394897, -0.3630565106868744, 0.5273542404174805, -0.17896674573421478, -0.028008705005049...
- 1 => 3 5 - 1 => 4 6 - 1 => 5 7 - 1 => 6 8 - 1 => 7 9 - 1 => 8 10 - 1 => 9 11 - 1 => 10 12 - 1 => 11 13 - 1 => 0 14 - 1 => 1 ```
[ 0.21402917802333832, 0.5283306241035461, 0.1851346790790558, -0.13747887313365936, -0.1886167824268341, 0.3310152292251587, 0.40992000699043274, -0.5267377495765686, -0.0003434508398640901, -0.5245972275733948, -0.3698265254497528, 0.3820856809616089, -0.20513391494750977, 0.15741419792175...
I hate to have to ask, but I'm pretty stuck here. I need to test a sequence of numbers to find the first which has over 500 factors: <http://projecteuler.net/index.php?section=problems&id=12> -At first I attempted to brute force the answer (finding a number with 480 after a LONG time) -I am now looking at determinin...
[ 0.41538941860198975, 0.1066007912158966, 0.37338516116142273, 0.05576814338564873, -0.22074200212955475, 0.4928021728992462, 0.06888062506914139, -0.3665109872817993, -0.47719642519950867, -0.723379373550415, 0.16468961536884308, 0.4620419442653656, 0.05070227012038231, 0.3267941176891327,...
I need to be able to calculate the remaining factors - This is the part I am stuck on. Basically, as I understand it, I need to calculate ALL possible combinations of the numbers in the array... i.e 2 \* 2 2 \* 2 \* 3 2 \* 2 \* 3 \* 5 2 \* 3 2 \* 3 \* 3 ...and so forth - But where it gets interest...
[ 0.25315022468566895, 0.35175821185112, 0.34229201078414917, -0.18839681148529053, -0.03308776766061783, 0.21202920377254486, -0.07570163905620575, -0.33944663405418396, -0.23168489336967468, -0.6051185131072998, 0.12784098088741302, 0.4701251685619354, -0.1397833377122879, 0.14523212611675...
not adjacent to each other in the array I can't think of a way to code this in a generic fashion for any length array... I need help! P.S - I am working in Java EDIT: My brute force code - As it has been suggested brute forcing the problem will work and so there may be an error in my code :( ``` package euler.probl...
[ -0.0909246876835823, 0.026089424267411232, 0.4316345751285553, -0.13369120657444, 0.04778015613555908, 0.05294858291745186, 0.53131103515625, -0.3126642405986786, -0.16294161975383759, -0.6996211409568787, -0.22144457697868347, 0.37900424003601074, -0.6228851675987244, 0.09126897901296616,...
int maxFactors = 0; while(true) { triangle = triangle + next; int factors = 1; int max = (int) triangle / 2; for(int i = 1; i <= max; ++i) { if(triangle
[ -0.06485982984304428, -0.20459911227226257, 0.5580041408538818, -0.3492371439933777, -0.09820673614740372, 0.30721449851989746, 0.4358847737312317, -0.6688159704208374, -0.13843241333961487, -0.6450035572052002, -0.20654258131980896, 0.43314388394355774, -0.35138222575187683, -0.3896372318...
% i == 0) { factors ++; } } if(factors > maxFactors) { maxFactors = factors;
[ -0.2484453022480011, -0.2068655639886856, 0.49417808651924133, -0.47942686080932617, 0.12334337085485458, 0.11619366705417633, 0.21960797905921936, -0.57561194896698, 0.2620163559913635, -0.42163652181625366, -0.2652963399887085, 0.6174775958061218, -0.5481534600257874, -0.2091823965311050...
System.out.println(triangle + "\t" + factors); } next++; } } } ``` As far as I can tell, question 12 doesn't mention anything about prime numbers? Is this the one you're looking at? > The sequence of triangle numbers is generated by adding the natural numbers... If so, then perh...
[ -0.08631625771522522, -0.024821605533361435, 0.054716017097234726, 0.07203394919633865, 0.033879175782203674, 0.2975741922855377, 0.20322629809379578, -0.3037618398666382, -0.5005436539649963, -0.6957619786262512, -0.05471811816096306, 0.35789307951927185, -0.6012783050537109, -0.026311701...
I have an existing standalone application which is going to be extended by a 3rd-party, using a network protocol. The capabilities are already implemented, all I need is to expose them to the outside. Assuming the transport protocol is already chosen (UDP), are there any resources that will help me to design my applic...
[ 0.6412377953529358, 0.24264849722385406, 0.41941940784454346, -0.11634905636310577, 0.008648734539747238, -0.29637959599494934, 0.09792932868003845, -0.24628911912441254, -0.45334935188293457, -0.6359543800354004, 0.0011238420847803354, 0.44721874594688416, -0.16970480978488922, 0.06389584...
advices.
[ 0.305562824010849, 0.13524898886680603, 0.18648792803287506, 0.45043590664863586, 0.5493646264076233, 0.0037064682692289352, 0.32925400137901306, 0.24705691635608673, -0.019972272217273712, -0.5060862898826599, -0.12074074149131775, 0.5584397315979004, 0.10149141401052475, -0.3420646488666...
I want to store a list of the following tuples in a compressed format and I was wondering which algorithm gives me * smallest compressed size * fastest de/compression * tradeoff optimum ("knee" of the tradeoff curve) My data looks like this: ``` (<int>, <int>, <double>), (<int>, <int>, <double>), ... (<int>, <int>...
[ 0.04831216484308243, -0.07255028933286667, 0.25902068614959717, 0.0036253926809877157, -0.15824775397777557, 0.5645452737808228, 0.10816024243831635, -0.06726936995983124, -0.16985049843788147, -0.5845097899436951, -0.09297127276659012, -0.06863031536340714, -0.09293458610773087, 0.2528351...
is representing a sensor reading and while there is some correlation between the values, it's probably not of much use. Since the "time" ints can be close to each other, try to only store the first and after that save the difference to the int before (delta-coding). You can try the same for the second int, too. Anothe...
[ 0.1947682648897171, -0.42806196212768555, 0.2654915452003479, 0.1839449256658554, -0.1048625260591507, 0.3001631498336792, 0.2505010962486267, -0.5783723592758179, -0.14090661704540253, -0.6806789636611938, 0.23353177309036255, 0.3767915666103363, -0.41185086965560913, -0.08287139981985092...
compressor CCM from Christian Martelock [here](http://lovepimple.110mb.com/compressors/ccm130c.zip). I found out that it performs very well for such data collections. It uses a quite fast [context mixing](http://en.wikipedia.org/wiki/Context_mixing) algorithm. You can also compare it to other compressors like WinZIP or...
[ 0.615347683429718, 0.3197152316570282, 0.2136358618736267, -0.041325684636831284, -0.25894731283187866, 0.05150894820690155, -0.1551584154367447, -0.45878472924232483, 0.06692299246788025, -0.3438653349876404, 0.12172344326972961, 0.3120233118534088, -0.17426876723766327, 0.221468031406402...
What are the differences between MyISAM and Inno DB types in MySql? The main difference is that InnoDB supports transactions while MyISAM does not. There are numerous other differences, however the common one's i am aware of are: * MyISAM has typically been considered faster at searching, but recent InnoDB improvemen...
[ -0.4755581319332123, 0.18848757445812225, 0.3238426446914673, 0.17792774736881256, -0.2610313594341278, 0.15435659885406494, 0.1564241200685501, 0.11218199133872986, -0.28893518447875977, -0.7428023815155029, 0.2819937765598297, 0.4704045355319977, -0.24824944138526917, -0.1482593119144439...
a covering index more likely) * MyISAM does table level locking while InnoDB can do row level locking * Different memory/buffer/index settings are used in the MySQL configuration files * InnoDB is typically said to have better crash recovery * As mentioned in another answer, the data is store on disk differently. I bel...
[ -0.1873902529478073, 0.047669749706983566, 0.2972424328327179, 0.2713693678379059, -0.06818271428346634, -0.09375455230474472, 0.14042142033576965, -0.06956504285335541, -0.4544017016887665, -0.7004655003547668, -0.028894903138279915, 0.526411771774292, -0.19819161295890808, 0.079755119979...
In Python, if I do this: ``` print "4" * 4 ``` I get ``` > "4444" ``` In Perl, I'd get ``` > 16 ``` Is there an easy way to do the former in Perl? ``` $ perl -e 'print "4" x 4; print "\n"' 4444 ``` The x operator is documented in perldoc [perlop](http://perldoc.perl.org/perlop.html). Here binary means an ope...
[ 0.07838865369558334, -0.004232752602547407, 0.26811620593070984, -0.32175910472869873, -0.042338740080595016, 0.22853833436965942, 0.05120435357093811, -0.15412664413452148, -0.27210384607315063, 0.021295713260769844, -0.24118629097938538, 0.42997828125953674, -0.5586329698562622, -0.11348...
is enclosed in parentheses > or is a list formed by "`qw/STRING/`", it repeats the list. If the right > operand is zero or negative, it returns an empty string or an empty > list, depending on the context. ``` print '-' x 80; # Print row of dashes print "\t" x ($tab/8), ' ' x ($tab%8); ...
[ 0.06046657636761665, -0.08023751527070999, 0.7389084100723267, -0.3574499785900116, 0.05525495484471321, 0.04616203159093857, 0.22525042295455933, -0.17572608590126038, 0.029379479587078094, -0.6313887238502502, -0.4757942259311676, 0.46320682764053345, -0.5249815583229065, -0.069519370794...
# A list of 80 1’s @ones = (5) x @ones; # Set all elements to 5 ``` `perl -e` is meant to execute Perl code from the command line: ``` $ perl --help Usage: perl [switches] [--] [programfile] [arguments] -e program one line of program (several -e's allowed, omit programfile) ```
[ 0.11593727767467499, 0.07423859089612961, 0.4358164370059967, 0.005535775329917669, -0.03600364923477173, 0.31143656373023987, 0.1834879070520401, -0.5551272034645081, -0.2474169284105301, -0.12528355419635773, -0.06447985023260117, 0.4485933184623718, -0.3682868182659149, -0.2594657838344...
It looks like all the methods for loading SQLite involve loading from a named file using a string. I would like to load SQlite database from memory. The database is already loaded into memory. Use a special file name, `:memory:` ``` sqlite3_open(":memory:", &db); ``` `libsqlite` must have been compiled **without** ...
[ 0.20116852223873138, 0.28985026478767395, 0.39223042130470276, -0.10429655760526657, 0.09669779241085052, -0.1292879581451416, 0.12732179462909698, -0.04063917323946953, -0.3893372714519501, -0.3973728120326996, -0.320006400346756, 0.4597984254360199, -0.5050913691520691, 0.304581373929977...
read the database that is *already* fully loaded into memory however, it will be more work. You will have to implement a custom VFS layer to operate on memory files and register it with your SQLite context. See: * [`sqlite3_vfs`](http://sqlite.org/c3ref/vfs.html) * [`sqlite3_io_methods`](http://sqlite.org/c3ref/io_me...
[ 0.5393931269645691, 0.08689398318529129, 0.5017594695091248, 0.05382328853011131, -0.09130749851465225, -0.130794957280159, 0.23383420705795288, -0.19157366454601288, -0.3238984942436218, -0.8590675592422485, 0.01494161132723093, 0.5906381607055664, -0.2512577176094055, 0.0855192095041275,...
still new to the world of linq, and i need some help flatening a list of parents that have children, into a single list of ParentChild's. Just like this: ``` class Program { static void Main() { List<Parent> parents = new List<Parent>(); parents.Add(new Parent { Name = "Parent1", Children = n...
[ 0.23662714660167694, 0.06982569396495819, 0.5030525326728821, -0.09205670654773712, 0.41753676533699036, 0.11951245367527008, -0.10786603391170502, -0.07515213638544083, -0.2889918386936188, -0.5517619252204895, -0.1831440031528473, 0.303390234708786, -0.08548880368471146, 0.38895192742347...
new List<Child> { new Child { Name = "Child3" }, new Child { Name = "Child4" } } }); // linq query to return List<ParentChild> parentChildList; // ParentName = Parent1, ChildName = Child1 // ParentName = Parent1, ChildName = Child2 // ParentName = Parent2, ChildName = Child3 // ...
[ -0.24796482920646667, -0.08591242879629135, 0.5513169765472412, -0.00669198390096426, 0.39302948117256165, 0.4729650616645813, -0.09525690972805023, -0.2707638144493103, -0.17832082509994507, -0.5370234251022339, -0.29588159918785095, 0.45195069909095764, 0.029284045100212097, 0.4253468215...
{ public string ParentName { get; set; } public string ChildName { get; set; } } internal class Parent { public string Name { get; set; } public List<Child> Children { get; set; } } internal class Child { public string Name { get; set;
[ 0.057983942329883575, -0.1397436261177063, -0.13544979691505432, 0.1104688048362732, 0.23210972547531128, 0.4480057954788208, 0.1429223120212555, 0.10517291724681854, -0.005043978337198496, -0.6573863625526428, -0.3074803054332733, 0.3709632456302643, -0.1952531635761261, 0.620139718055725...
} } } ``` Many thanks, Chris ``` from parent in parents from child in parent.Children select new ParentChild() { ParentName = parent.Name, ChildName = child.Name }; ```
[ -0.0852680429816246, 0.4914039373397827, 0.4056536555290222, 0.04192466661334038, 0.3223511278629303, 0.4592254161834717, 0.07283209264278412, 0.09786456823348999, -0.03891400620341301, -0.8494504690170288, -0.33629852533340454, 0.2530059218406677, 0.2669520080089569, 0.39387789368629456, ...
SPListItem.GetFormattedValue seems to have a strange behavior for DateTime fields. It retrieves the DateTime value through SPListItem's indexer which according to this [MSDN article](http://msdn.microsoft.com/en-us/library/ms197282.aspx) returns *local* time. Here's a snippet from Reflector ``` public string GetFormat...
[ 0.11863421648740768, -0.5567946434020996, 0.9260641932487488, -0.20576699078083038, -0.06018264964222908, -0.3975756764411926, 0.45338907837867737, 0.02656390704214573, -0.2280033677816391, -0.4462486803531647, -0.12545926868915558, 0.352202832698822, -0.17452573776245117, 0.33584842085838...
matter what kind it is. (Reflector shows that it uses GetFieldValueAsText which uses value.ToString() but for some reason it assumes the time to be UTC.) The end result is that the string representation on a time field obtained trough listItem.GetFormattedValue() (at least in my case) is incorrect, being local time + ...
[ 0.2130783498287201, -0.33873313665390015, 0.7600827813148499, -0.22420251369476318, 0.03654472157359123, -0.20300506055355072, 0.1505207121372223, -0.19280870258808136, -0.05941523239016533, -0.5942530035972595, 0.1780451238155365, 0.718224048614502, -0.1562621295452118, 0.1433540284633636...
let's give it the universal time :) DateTime universalTime = SPContext.Current.Web .RegionalSettings.TimeZone.LocalTimeToUTC(localTime); string correctFormattedValue = item.Fields["DueDate"].GetFieldValueAsHtml(universalTime); ```
[ 0.02877197414636612, -0.4912038743495941, 1.0063655376434326, -0.07608344405889511, 0.2873697578907013, -0.2431909739971161, 0.02183203026652336, 0.030932333320379257, -0.5641083121299744, -0.43534547090530396, -0.28263288736343384, 0.32502812147140503, -0.09928682446479797, 0.422439992427...
I've always wondered why the C++ Standard library has instantiated basic\_[io]stream and all its variants using the `char` type instead of the `unsigned char` type. `char` means (depending on whether it is signed or not) you can have overflow and underflow for operations like get(), which will lead to implementation-de...
[ 0.35623496770858765, -0.08370097726583481, -0.19541619718074799, -0.10060155391693115, -0.09588417410850525, 0.06965780258178711, 0.2592698633670807, 0.21248537302017212, -0.10171511024236679, -0.48418959975242615, -0.2936253249645233, 0.5594762563705444, -0.26808875799179077, 0.0411590784...
char to char isn't unspecified, it's implementation-dependent (4.7-3 in the C++ standard). The type of a 1-byte character in C++ is "char", not "unsigned char". This gives implementations a bit more freedom to do the best thing on the platform (for example, the standards body may have believed that there exist CPUs wh...
[ -0.03227360546588898, -0.04294881597161293, -0.05286382883787155, -0.04475751519203186, -0.1867579221725464, 0.14575624465942383, 0.12279076874256134, 0.1262110471725464, -0.022326309233903885, 0.037706151604652405, 0.06304934620857239, 0.5201807022094727, -0.18257282674312592, -0.28089413...
to use it even though its signedness isn't defined. So maybe your question is answered by the answer to, "why didn't C++ just define char to be unsigned?"
[ 0.5087340474128723, 0.14693114161491394, -0.23482242226600647, -0.09379386901855469, -0.2599216401576996, -0.029634889215230942, 0.35508888959884644, 0.19569894671440125, -0.33219772577285767, 0.024072693660855293, 0.04857819154858589, 0.4827476441860199, -0.11503896117210388, -0.149334371...
I'm passing small (2-10 KB)XML documents as input to a WCF service. now I've two option to read data values from incoming XML 1. Deserialize to a strongly typed object and use object properties to access values 2. use XPath to access values which approach is faster? some statistics to support your answer would be gre...
[ 0.21052053570747375, -0.025936203077435493, 0.4955004155635834, 0.21665260195732117, -0.32497453689575195, -0.1889897584915161, 0.10440219938755035, -0.280146986246109, 0.0036173383705317974, -0.9103795886039734, 0.0295953918248415, 0.6005508899688721, -0.18986383080482483, 0.0489924736320...
if you go with xpath, you get no type safety. Your compiler can't check the xpath syntax for you. If you use XmlSerializer and classes, you get static typing. Really fast access to you data, and if you want to query them with xpath, there are still ways to do that. Also, I would like to say that your code would proba...
[ 0.37185826897621155, 0.10501717776060104, 0.16195064783096313, 0.3130413889884949, -0.2753356099128723, -0.407882958650589, 0.2105766236782074, 0.1315622478723526, -0.11456132680177689, -0.6738048791885376, 0.03181423991918564, 0.5074498653411865, -0.32512161135673523, 0.057683635503053665...
statistics, I think the arguments are strong enough without examples. If you want an ultimate answer, try both and keep a stopwatch ready.
[ 0.3849843442440033, -0.13931745290756226, -0.15051284432411194, 0.6153643131256104, -0.09463021904230118, -0.042579714208841324, 0.004603733774274588, 0.20710308849811554, -0.2561054229736328, -0.586500883102417, 0.4744759202003479, 0.51123046875, -0.0726461261510849, -0.1863640397787094, ...
We have some SQL server reporting services reports. I didn't write then but I have to take care of them. These reports fire when opened in the browser, and with the default parameters (search terms and restrictions are blank) they retrieve a lot of data, which is slow. The client would prefer that the report is not ge...
[ 0.08469565212726593, 0.11463604867458344, -0.09783659130334854, 0.1313118040561676, -0.125531405210495, -0.15124742686748505, 0.2314928025007248, -0.2750617265701294, -0.3279229402542114, -0.2010553777217865, 0.11490603536367416, 0.5506024956703186, -0.20542138814926147, -0.164586231112480...
answer) is as follows: Click on a report, click on "properties" at the top. You may have to wait a bit, because the slow report may be running now. Then click on "parameters" on the left. For each parameter, make sure that "Prompt User" is checked, and for at least one parameter, "Has Default" is not checked. Click...
[ 0.031585562974214554, -0.0033506490290164948, 0.5168761610984802, 0.29279738664627075, 0.14722773432731628, -0.13055288791656494, 0.174189031124115, -0.3718721866607666, -0.02067444659769535, -0.591111958026886, -0.2830168306827545, 0.7073859572410583, -0.09872724115848541, -0.007777589373...
"Filter" menu. De-select values from at least one filter, and save the report. Is it also possible to stop reports from firing on loading when the report has no parameters? I found that I had to set at least one of the report parameters to not have a default to keep the report from autorunning. I had to use this conf...
[ 0.20387564599514008, -0.3627607822418213, 0.22352515161037445, 0.24773767590522766, 0.0519229955971241, 0.024639559909701347, 0.4875533878803253, -0.22266635298728943, -0.3290909230709076, -0.4509488642215729, 0.10761771351099014, 0.756695568561554, -0.60341876745224, -0.13777406513690948,...
I'm getting an Exception while trying to insert a row in oracle table. I'm using ojdbc5.jar for oracle 11 this is the sql i'm trying ``` INSERT INTO rule_definitions(RULE_DEFINITION_SYS,rule_definition_type, rule_name,rule_text,rule_comment,rule_message,rule_condition,rule_active, rule_type,current_value,last_modifie...
[ -0.23343081772327423, 0.2859138548374176, 0.49422910809516907, -0.05256257951259613, -0.017960477620363235, 0.2695337235927582, 0.3249049782752991, -0.6011382341384888, -0.25141221284866333, -0.6821627616882324, -0.08241603523492813, 0.5205286741256714, -0.11347600072622299, -0.13307535648...
adapter (version 10.2.0.0.0 to 11.1.0.7.0) that when you call preparedStatement with more than 7 positional parameters then JDBC will throw this error. If you have access to Oracle Metalink then one option is to go there and download mentioned patch. The other solution is workaround - use named parameters instead of ...
[ -0.17305001616477966, -0.05395980551838875, 0.5797887444496155, -0.3150161802768707, 0.14889776706695557, 0.23563453555107117, 0.19286483526229858, -0.6042885780334473, -0.11093105375766754, -0.7270612120628357, -0.11344903707504272, 0.8689817786216736, -0.4546135365962982, -0.097668886184...
Is there a way to create C# objects and call methods from unmanaged C++, but without using COM Iterop? I am looking for something like JNI (but for .Net), where you can manually create the VM, create objects, etc. If you are using C++/CLI then you can interact directly with both the managed world and unmanaged code, so...
[ 0.41279587149620056, -0.0851210504770279, 0.17418721318244934, 0.3200472593307495, -0.10415983200073242, -0.09626580029726028, -0.28915074467658997, 0.1469637155532837, -0.45950326323509216, -0.5719391703605652, 0.07833146303892136, 0.7323010563850403, -0.4727293848991394, 0.14207057654857...
There is a lot of info online, for example the MSDN documentation on "[Hosting the Common Language Runtime](http://msdn.microsoft.com/en-us/library/9x0wh2z3(VS.80).aspx)".
[ 0.20140504837036133, 0.13647004961967468, -0.15846498310565948, 0.0889691486954689, 0.16399653255939484, -0.2914144992828369, 0.15830250084400177, 0.30264729261398315, -0.43979528546333313, -0.5970332622528076, -0.533793568611145, 0.14874546229839325, 0.08429747074842453, -0.02617960423231...
I need to check the `RequestType` of an `HttpRequest` in ASP.NET (or `WebRequest.Method`). I know that I can just use the string values "`POST`" or "`GET`" for the request type, but I could have sworn there was a constant somewhere in some class in .NET that contained the values. Out of curiosity I was wondering if an...
[ 0.4148528575897217, -0.1041371077299118, 0.45299381017684937, 0.23640985786914825, -0.10795164853334427, 0.032481156289577484, 0.25953948497772217, -0.004272370133548975, -0.23948219418525696, -0.7745811343193054, 0.18715612590312958, 0.291795551776886, -0.08490096777677536, 0.342970699071...
"HEAD" .MkCol = "MKCOL" .Post = "POST" .Put = "PUT" ``` Ultimately, though; since `const` expressions are burned into the caller, this is identical to using "GET" etc, just without the risk of a typo.
[ -0.06143687292933464, -0.08712171018123627, 0.21867963671684265, -0.1498612016439438, -0.16989366710186005, -0.01701534166932106, 0.42487314343452454, -0.04193378612399101, 0.13230586051940918, -0.30783727765083313, -0.7735304832458496, 0.4003237783908844, -0.3560788333415985, -0.120755337...
Is it alright to do this? ``` $author = strtolower($_SESSION['valid_username']); ``` I want to enter all authors into the table as lower case. Yes, that's fine as long as `$_SESSION['valid_username']` is set, otherwise you'll get a notice (if your error reporting is set that low). You can check if it exists with `i...
[ 0.28367751836776733, 0.41350415349006653, 0.49021226167678833, -0.18141387403011322, 0.17118549346923828, -0.3292684853076935, 0.5138776898384094, -0.4071040451526642, -0.3171498775482178, -0.3306749165058136, -0.07012507319450378, 0.7855412364006042, -0.506202757358551, -0.061148148030042...
I want to do something like: ``` exec sproc1 and sproc2 at the same time when they are both finished exec sproc3 ``` I can do this in dts. Is there a way to do it in transact sql? Or is there a way to do it with a batch script (eg vbs or powershell)? sp \_ start \_ job I'm doing a similar thing at the moment, and t...
[ 0.4972173869609833, 0.18064555525779724, 0.31462976336479187, -0.17504318058490753, 0.02153679169714451, -0.3462286591529846, 0.17864041030406952, -0.06880689412355423, -0.33574986457824707, -0.7563568949699402, -0.1508895605802536, 0.5040822625160217, -0.26869699358940125, -0.000333507166...
job's as I have threads. From that point, they all run autonomously. It's not exactly what we're looking for, but the result is the same. If you test the job status for the sub jobs, you can implement your conditional start of sproc 3 as well. What's the point in 8 cores if we can't use them all at once?
[ 0.39060184359550476, -0.19756919145584106, 0.36856600642204285, 0.07497206330299377, -0.007655915804207325, 0.11402635276317596, 0.06641128659248352, -0.24004609882831573, -0.6122143864631653, -0.33803221583366394, 0.08059372752904892, 0.48941463232040405, -0.07775847613811493, 0.077529549...
I would like to hear opinions or peoples experiences regarding [Rel](http://dbappbuilder.sourceforge.net/Rel.php). Is it destined for the dustbin, or is it the next big thing in programming? I haven't tried doing anything with it yet (and it looks like you really can't at this point), but I'm intrigued by a few of the ...
[ 0.335165411233902, 0.12683166563510895, -0.11733245104551315, -0.09383419156074524, -0.18669217824935913, -0.14171379804611206, 0.40288880467414856, 0.07306576520204544, -0.12936432659626007, -0.49869129061698914, -0.06195046007633209, 0.36067962646484375, -0.3181515038013458, 0.0916628986...
is that Rel is a somewhat working implementation with the understanding that it is essentially a working version of Tutorial D. The thought being that some well funded enterprise takes the research and decides that something like an Industrial D might be worthwhile. Maybe I'm wrong here, but I get the impression that ...
[ 0.46197575330734253, -0.07679115235805511, 0.0910443514585495, -0.07065479457378387, -0.12209762632846832, 0.012195759452879429, 0.030005058273673058, 0.24775026738643646, -0.048398394137620926, -0.4310404360294342, -0.2471490055322647, 0.4403581917285919, -0.08221524953842163, 0.022322323...
goal of supplanting object oriented programming in general. Right now, OO appears to rule the world of programming. Rel would make available an alternative view on programming in general. So I guess what I'm curious about is whether this project has legs that leads to other products or if people think it's going to be...
[ 0.20096156001091003, -0.03157668560743332, 0.2937566339969635, 0.02113920822739601, -0.04654989391565323, -0.5070343613624573, -0.11218240857124329, 0.5694580078125, -0.2668384909629822, -0.3154448866844177, -0.10505616664886475, 0.43411964178085327, -0.041493840515613556, 0.45650282502174...
I have to read a binary file in a legacy format with Java. In a nutshell the file has a header consisting of several integers, bytes and fixed-length char arrays, followed by a list of records which also consist of integers and chars. In any other language I would create `struct`s (C/C++) or `record`s (Pascal/Delphi...
[ 0.1494777798652649, 0.4577288031578064, 0.04225193336606026, -0.0075191836804151535, -0.09538179636001587, -0.02126137539744377, -0.007729257922619581, -0.13470470905303955, -0.10108109563589096, -0.4067164659500122, -0.04826810210943222, 0.40738141536712646, -0.36417070031166077, -0.02545...
BeginOfData: Integer; ID: array[0..15] of Char; end; ... procedure ReadData(S: TStream); var Header: THeader; begin S.ReadBuffer(Header, SizeOf(THeader)); ... end; ``` What is the best way to do something similar with Java? Do I have to read every single value on its own or is there any other way to do ...
[ 0.15087980031967163, 0.09914381057024002, 0.2994329035282135, -0.10736160725355148, -0.2909685969352722, -0.1585823893547058, 0.24464471638202667, -0.4010780155658722, -0.30169692635536194, -0.49190327525138855, -0.2076314389705658, 0.18994012475013733, -0.30775174498558044, 0.052445407956...
The [RandomAccessFile](http://java.sun.com/javase/6/docs/api/java/io/RandomAccessFile.html) class: ``` RandomAccessFile in = new RandomAccessFile("filename", "r"); int version = in.readInt(); byte type = in.readByte(); int beginOfData = in.readInt(); byte[] tempId; in.read(tempId, 0, 16); String id = new String(tempId...
[ -0.09400796890258789, -0.34647974371910095, 0.24567680060863495, -0.182450070977211, -0.22764575481414795, 0.1942608654499054, -0.02085213176906109, -0.24429777264595032, -0.24767859280109406, -0.5454785823822021, -0.018386095762252808, 0.2676667273044586, -0.5178677439689636, 0.4979070723...
Do you know of a JAXB setting to prevent **standalone="yes"** from being generated in the resulting XML? ``` <?xml version="1.0" encoding="UTF-8" standalone="yes"?> ``` This property: ```java marshaller.setProperty("com.sun.xml.bind.xmlDeclaration", false); ``` ...can be used to have no: ```xml <?xml version="1.0...
[ 0.3232285678386688, 0.17048493027687073, 0.04680739715695381, -0.1313827931880951, 0.34963563084602356, -0.3543328642845154, 0.17622001469135284, -0.23379191756248474, 0.03438704460859299, -0.6333460211753845, -0.43298617005348206, 0.5534564852714539, -0.4123126268386841, -0.12372012436389...
Is it possible to set up a Grid or other container control to be sort of an event dam? So that when any events, specifically a left click, that start within it are working their way up that they stop at that control and go no further? PreviewMouseDown is your friend... Add this event to your control, and set the Handl...
[ -0.286763072013855, -0.44155046343803406, 0.16351233422756195, 0.1622140109539032, -0.006430481094866991, -0.2927055060863495, 0.014863546006381512, 0.2560545802116394, -0.04952847957611084, -0.4835926592350006, 0.17385831475257874, 0.297807902097702, -0.02552761882543564, 0.00017232324171...
before the Grid... hope this helps...
[ 0.46720555424690247, -0.21045628190040588, 0.1914355605840683, -0.02409137599170208, -0.15234461426734924, 0.14542868733406067, 0.010008779354393482, -0.17441712319850922, 0.038904882967472076, -0.5905535817146301, 0.4911419749259949, 0.30921515822410583, 0.056966353207826614, 0.2104496657...
I have an XLL Excel addin and now another team wants to use the same functionality in their project (unmanaged C++). Is there a way to interface with this XLL directly from C++? PreviewMouseDown is your friend... Add this event to your control, and set the Handled property on true... All events tunnel first from root...
[ -0.15709194540977478, -0.2830348610877991, 0.15268588066101074, -0.004668493289500475, -0.24667927622795105, -0.38808634877204895, 0.052013855427503586, 0.11377406120300293, 0.1287219226360321, -0.6200132369995117, 0.20348402857780457, 0.5158216953277588, -0.12339108437299728, -0.071370311...
What's the best way to store timezone information with dates/times in a uniform way so people can enter times from anywhere in the world in their own local time? Other users would then have the ability to view the times in their own local time and the original localtime on the web page. Store the time data as GMT. Disp...
[ 0.4222542941570282, -0.1442270129919052, 0.5081461071968079, 0.4342731535434723, 0.24763217568397522, 0.1676098108291626, -0.0827954038977623, 0.18189330399036407, -0.32484564185142517, -0.6705082654953003, 0.05941636115312576, 0.010631288401782513, -0.200112983584404, 0.1102515310049057, ...
I have an authentication script (**`CheckLogin.aspx`**), and if any of the credentials do not match my application will redirect (via **`Server.Transfer`**) to the access denied page (**`forbidden.aspx`**). Each time my script runs,it gets an **`InvalidOperationException: Failed to map the path '/forbidden.aspx'`**. He...
[ -0.08049964159727097, 0.3324722647666931, 0.6895424723625183, -0.03689764812588692, 0.045128703117370605, 0.010150309652090073, 0.6092731952667236, -0.08744324743747711, -0.2467612773180008, -0.6691103577613831, -0.04563888534903526, 0.14114688336849213, -0.14784403145313263, 0.12431992590...
I am monitoring a folder with a .net filewatcher for certain kind of files(\*.mbxml). I am using the created event of filewatcher for it. Once the created event fires I have to move this file to another folder. The problem with this approach is that the created event is fired as soon as the file copying starts. So if t...
[ 0.5041725039482117, -0.005634018685668707, 0.11370197683572769, -0.17786020040512085, 0.0289703831076622, -0.3313084840774536, 0.40500780940055847, -0.11590275913476944, -0.17838391661643982, -0.49916160106658936, 0.09782947599887848, 0.581118106842041, -0.44541501998901367, 0.253663241863...
and keep trying until the whole file is copied. I don't like this solution, it would've been better if the created event was fired once the whole file had finished copying or there was a separate event for it. Is there another way of achieving this? i have yet to see this done in anyway except with a try catch block. u...
[ 0.7000897526741028, 0.14894823729991913, 0.28329548239707947, 0.08543740957975388, 0.05052667483687401, -0.30489104986190796, 0.233145609498024, 0.19604945182800293, -0.3645172417163849, -0.16235920786857605, -0.18817779421806335, 0.7485008835792542, -0.4264458119869232, 0.3018070161342621...
bool creationComplete(string fileName) { // if the file can be opened it is no longer locked and now available try { using (FileStream inputStream = File.Open(fileName, FileMode.Open, FileAccess.Read, FileShare.None)) { return true;
[ 0.3172094225883484, 0.11466451734304428, 0.15851788222789764, -0.4191938638687134, 0.25871139764785767, -0.13741450011730194, 0.6969581246376038, -0.06524725258350372, 0.01096907164901495, -0.3872673213481903, -0.5479978919029236, 0.4434770345687866, -0.20895566046237946, 0.571735620498657...
} } catch (IOException) { return false; } } ```
[ 0.1674637645483017, -0.09206338226795197, -0.07026849687099457, -0.3021567761898041, 0.12650048732757568, -0.17147037386894226, 0.17912456393241882, 0.07604111731052399, 0.2190704494714737, -0.1643858104944229, -0.10488106310367584, 0.802515983581543, -0.4413268268108368, 0.169147253036499...
I've been using Git on Windows (msysgit) to track changes for some design work I've been doing. Today I've been working on a different PC (with remote repo `brian`) and I'm now trying to merge the edits done today back into my regular local version on my laptop. On my laptop, I've used `git pull brian master` to pull...
[ -0.04023905098438263, 0.11291559040546417, 0.7568485140800476, -0.21287553012371063, 0.16788698732852936, 0.1619693487882614, 0.2630862295627594, 0.01034156046807766, -0.7835662364959717, -0.9168786406517029, -0.28926798701286316, 0.6617932915687561, -0.3869854509830475, 0.1414252817630767...
repo to use this one. I tried directly copying the file across onto my laptop but this seems to break the whole merge process. Can anyone point me in the right direction? `git checkout` accepts an `--ours` or `--theirs` option for cases like this. So if you have a merge conflict, and you know you just want the file ...
[ 0.09671899676322937, -0.41987335681915283, 0.3619833290576935, -0.019114254042506218, -0.30833718180656433, 0.35317903757095337, 0.11403991281986237, -0.039994727820158005, -0.6145209074020386, -0.5442960858345032, 0.0009380370611324906, 0.6609070301055908, -0.4140188992023468, 0.183176949...
is there a quick way to sort the items of a select element? Or I have to resort to writing javascript? Please any ideas. ``` <select size="4" name="lstALL" multiple="multiple" id="lstALL" tabindex="12" style="font-size:XX-Small;height:95%;width:100%;"> <option value="0"> XXX</option> <option value="1203">ABC</option>...
[ 0.032928843051195145, -0.24762879312038422, 0.7310343980789185, -0.456243634223938, 0.06367440521717072, 0.5506566762924194, 0.11918316781520844, -0.6141157150268555, -0.3474963903427124, -0.7110242247581482, -0.36891788244247437, 0.5103894472122192, -0.28154289722442627, -0.39524707198143...
} tmpAry.sort(); while (selElem.options.length > 0) { selElem.options[0] = null; } for (var i=0;i<tmpAry.length;i++) { var op = new Option(tmpAry[i][0], tmpAry[i][1]); selElem.options[i] = op; } return; } ```
[ 0.0021334602497518063, -0.5950940847396851, 0.4540419578552246, -0.5080124735832214, 0.49392345547676086, 0.533764660358429, 0.09038422256708145, -0.304924875497818, -0.4577065706253052, -0.5744723081588745, -0.5160430669784546, 0.6907685399055481, -0.391801118850708, 0.011522036977112293,...
What is a good way to create and read an OpenOffice spreadsheet in Perl? I think that the open office native document format is based around the OpenDocument specifications, and is bascially a zip compressed XML format. This being true you could probably manipulate it using your perl XML manipulation tools of choice. ...
[ 0.38848212361335754, 0.06147754192352295, 0.3868405818939209, 0.290039986371994, 0.013001733459532261, -0.2803305387496948, -0.1937367469072342, 0.09175295382738113, -0.27168241143226624, -0.45439454913139343, -0.33231979608535767, 0.6574510335922241, -0.13572347164154053, 0.09187046438455...
I was shocked to learn that OpenMosix is [closed](http://openmosix.sourceforge.net/). Can you suggest any similar free tool for linux. For those who don't know, OpenMosix is > a software package that turns networked computers running GNU/Linux into a cluster. It automatically balances the load between different node...
[ 0.004262706730514765, 0.20778900384902954, 0.2996924817562103, 0.16268737614154816, 0.09147445112466812, -0.4227476716041565, 0.025766609236598015, 0.41673967242240906, -0.29295676946640015, -0.8141494989395142, -0.16671404242515564, 0.2698400020599365, -0.06314073503017426, 0.267009884119...
"fork and forget". Another nice (but not must have) feature is the fact that it doesn't have to be installed on dedicated computers, but can sit on various desktop computers in your organization/lab/home etc. I'm aware of the names of several possible solutions ([for example](http://en.wikipedia.org/wiki/Single-syste...
[ 0.26365360617637634, 0.30221930146217346, 0.16562388837337494, 0.0674130916595459, 0.15900522470474243, -0.33950740098953247, -0.025627346709370613, 0.17645539343357086, -0.10917488485574722, -0.6999941468238831, -0.10772401094436646, 0.43411147594451904, 0.10564666986465454, 0.29960364103...
easily build computational clusters, > grid endpoints and visualization > tiled-display walls. Hundreds of > researchers from around the world have > used Rocks to deploy their own cluster You may want to listen to [this episode of FLOSS Weekly](http://twit.tv/floss30) that is all about Rocks.
[ 0.31941094994544983, 0.19375118613243103, -0.0005793829914182425, 0.4214749038219452, 0.009852476418018341, -0.3961593508720398, 0.2584344744682312, 0.18855804204940796, -0.3502856492996216, -0.4281868636608124, -0.02690577134490013, 0.5898627638816833, 0.2729175090789795, 0.11570654809474...
I am using ActiveReports with ASP.NET but I think answer for any similar reporting component will do. I have two resultset to merge and show in a single report, like: ``` Table 1: Name Job Start End Jack Some service 1992 1997 Jack Some Sales Exp 1998 2007 Jane Some programming 2000 2003 Table...
[ 0.4252121150493622, 0.24244193732738495, 0.07068266719579697, -0.11972242593765259, 0.05013355240225792, -0.18297752737998962, 0.06348270922899246, 0.0325847789645195, -0.016361447051167488, -0.012470666319131851, -0.017197707667946815, 0.7255136370658875, 0.3688894510269165, -0.0793147161...
1998-2007 Training History: Shiny French Certificate Jane Job History: Some programming, 2000-2003 Training History: Crappy database certificate Some courses in management ``` How should I merge the two tables and how should I design the layout to achieve the report in the given example? Update...
[ 0.16651034355163574, 0.17759887874126434, -0.029084280133247375, 0.043615780770778656, -0.26488736271858215, 0.02187197469174862, 0.30751803517341614, -0.09852485358715057, -0.492676705121994, -0.309207558631897, 0.1316407322883606, 0.41172245144844055, 0.43564367294311523, -0.136951208114...
of groups for each employee. One for the jobs, and one for the trainings. How can I use groups or sub-reports feature to bind this kind of data (and how should I process the data if necessary)? Use subreports... Create a main report that will have two subreports. One subreport for job history and one subreport for trai...
[ 0.25115084648132324, 0.04479855298995972, 0.2332114279270172, 0.35818612575531006, 0.09232369810342789, 0.2957242429256439, 0.053622134029865265, -0.3932453989982605, -0.38499924540519714, -0.5790647864341736, -0.03380903974175453, 0.30771151185035706, -0.15639351308345795, 0.0784453973174...
to list the Job History or Training History for only the current person being displayed in the parent report. A detailed walkthrough that explains how to do this step by step is on the Data Dynamics website [here](http://www.datadynamics.com/Help/ARNET/ParameterswithSubreports.html). Some overview information is also ...
[ 0.4047788679599762, 0.01500123180449009, 0.2528461515903473, 0.12817539274692535, 0.04806419461965561, -0.1882895976305008, 0.2536858022212982, -0.3500821888446808, -0.2677278220653534, -0.27494075894355774, -0.2553146481513977, 0.17403781414031982, 0.3490334749221802, -0.01411682739853859...
Its my understanding that the recommended approach to localization in WPF is to use the LocBaml tool to extract the localizable items into e.g. a csv file, translate the items into the desired language and regenerate a new sattelite assembly from this csv file. However from my experiments this seems to conflict with th...
[ 0.25588661432266235, -0.08066880702972412, 0.17400653660297394, 0.0844494178891182, -0.09666045755147934, -0.028132647275924683, 0.0022643229458481073, -0.3633800148963928, -0.33630049228668213, -0.6116087436676025, -0.5177388787269592, 0.17899078130722046, -0.2528938353061676, 0.246929153...
output of running resgen on a resources.resx file (which is by default done by VS on builds). Are anybody out there tackling the same issues? You have to manually do this generating .resources from LocBaml and then merging the Resx and BAML resources using the Assembly linker. The process looks something like this: ...
[ 0.3535172641277313, -0.30335646867752075, 0.3768536150455475, -0.04416431859135628, -0.014602778479456902, -0.027654312551021576, 0.27936071157455444, -0.45292019844055176, -0.4044775366783142, -0.8287333250045776, -0.14248113334178925, 0.5577281713485718, -0.2999476492404938, 0.2003028839...
can put the above in a batch file customized for your project. Remember LocBaml has to in the same folder as your output files. You can add this as a post build task.
[ 0.41297563910484314, -0.08540169894695282, -0.03498223423957825, 0.08503194898366928, 0.10300026834011078, -0.38752302527427673, -0.042379096150398254, -0.0634247362613678, -0.09730969369411469, -0.620000422000885, 0.0063378093764185905, 0.43880602717399597, -0.1344360113143921, 0.05875530...
I am using some custom controls one of which is a tooltip controller that can display images, so I am using th ebelow code to instantiate it: ``` Image newImage = Image.FromFile(imagePath); e.ToolTipImage = newImage; ``` obviously could inline it but just testing at the moment. The trouble is the image is sometimes ...
[ 0.340401828289032, -0.014426535926759243, 0.6084579229354858, -0.010360687971115112, -0.08129007369279861, -0.19849403202533722, 0.25685766339302063, -0.20379044115543365, -0.34886953234672546, -0.9762305021286011, 0.07659102231264114, 0.6354737281799316, -0.40381738543510437, 0.2215008437...
an image object loaded from its source, the Height and Width (and Size, and all ancillary properties) are read-only. Therefore, you are stuck with GDI+ methods for resizing it in RAM and then displaying it accordingly. There are a lot of approaches you can take, but if you were to encapsulate that out to a library wh...
[ 0.34327954053878784, -0.18786291778087616, 0.717162549495697, 0.051825713366270065, -0.03128363937139511, 0.09305202215909958, 0.14867492020130157, -0.3251912295818329, -0.4892616271972656, -0.8665511608123779, -0.16181358695030212, 0.5747490525245667, -0.4479403793811798, 0.01718281581997...
new Bitmap(outputSize.Width, outputSize.Height); using (Bitmap tempBitmap = new Bitmap(newImage)) { using (Graphics g = Graphics.FromImage(backgroundBitmap)) { g.InterpolationMode = InterpolationMode.HighQualityBicubic; // Get the set of points that determine our rectangle for resizing. ...
[ -0.23123206198215485, -0.33572596311569214, 0.8717897534370422, -0.023040393367409706, -0.08133529871702194, 0.40983060002326965, -0.2031167447566986, -0.4192256033420563, -0.3963378667831421, -0.736644983291626, -0.2348068356513977, 0.32024699449539185, -0.22270074486732483, -0.1365020126...
Point(0, backgroundBitmap.Height) }; g.DrawImage(tempBitmap, corners); } } this.BackgroundImage = backgroundBitmap; ``` I did test this, and it worked. (It created a 200x200 resized version of one of my desktop wallpapers, then set that as the background image of the main form in a scratch WinForm...
[ -0.2205774337053299, -0.27195990085601807, 0.6585819721221924, -0.25650379061698914, -0.013215322047472, 0.20245376229286194, -0.006002758163958788, -0.2602279484272003, -0.04629969969391823, -0.6418942809104919, 0.0298398956656456, 0.2846382260322571, -0.19960828125476837, -0.128420650959...
We have an application that downloads some files in the background. Our application pops up when an Internet connection is made, and after prompting the user to accept the downloads, we'd like to switch back to the home screen while we do our stuff. We can't work out how to do to this. We can emulate pressing "back" a...
[ 0.7053565979003906, 0.23558810353279114, 0.08339302986860275, 0.5413436889648438, 0.27224570512771606, -0.20664633810520172, -0.03446415811777115, 0.2967122793197632, -0.35257688164711, -0.5047937631607056, 0.2067350596189499, 0.3457770049571991, -0.1183258444070816, 0.3252027928829193, ...
a client-side event for that specific event, however, one the page has rendered, the data will be there, so you may want to run your client script in the document.load event, or using something like jQuery's document.ready event. That will trigger your script to run once the page (including your bound drop down) is fin...
[ 0.08926509320735931, -0.5153411030769348, 0.4123692214488983, 0.07345452904701233, -0.13548064231872559, -0.3104763925075531, 0.056086160242557526, -0.03811880573630333, -0.19319655001163483, -0.6620241403579712, -0.4388640820980072, 0.5897512435913086, 0.008474846370518208, -0.19390167295...