text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
I have a small gallery of thumbnails. When I place my mouse pointer over a thumbnail image I'd like to have a full size image pop up in a div in the top right of the screen. I've seen this done using just CSS and I'd like to go down that route rather than use javascript if possible. [Pure CSS Popups2](http://meyerweb.c...
[ 0.4266664981842041, -0.008737725205719471, 0.2087731808423996, 0.08267506211996078, 0.09921842068433762, -0.1521773487329483, 0.4453332722187042, 0.15131844580173492, -0.16409282386302948, -0.8040620684623718, 0.13263854384422302, 0.5807564854621887, -0.1653614491224289, -0.050706885755062...
each image inside a link tag with an actual href (Otherwise some IE versions will neglect :hover) ``` <a href="#">Text <img class="popup" src="pic.gif" /></a> ``` and position it cleverly using absolute position. Hide the image initially ``` a img.popup { display: none } ``` and then on the link rollover, set it ...
[ -0.04913943260908127, -0.030685678124427795, 0.8835017681121826, -0.08054514229297638, 0.017999723553657532, -0.14589866995811462, 0.21607297658920288, -0.11365237832069397, -0.09026274085044861, -0.8911252617835999, -0.40465372800827026, 0.25758427381515503, -0.24710692465305328, 0.020312...
Can a cookie be shared between two sites on the same top level domain? Say `www.example.com` and `secure.example.com` ? We are looking into implementing a cache for non-secure content, and need to segregate secure content to another domain. What parameters does the cookie need? I'm using asp.net Yes, you can. Use: ```...
[ 0.479412317276001, 0.04873615503311157, 0.18522877991199493, 0.3180197775363922, 0.06405618041753769, -0.27724599838256836, 0.14421764016151428, 0.07352481782436371, -0.3105790615081787, -0.913511335849762, 0.04422454535961151, 0.3521772027015686, -0.1610148549079895, 0.3159199357032776, ...
Data: a dependency list, already verified to be acyclic. So here, 'a' depends on 'b','c' (c depends on d), etc... ``` A = { 'a' : dict(b=1, c=1), 'c' : dict(d=1), 'd' : dict(e=1,f=1,g=1), 'h' : dict(j=1) } ``` I'd like to have a top-down, recursive solution to let's say, find the chain starting at ...
[ -0.3098200261592865, -0.07107990980148315, 0.4094962477684021, 0.11332619935274124, 0.11613565683364868, 0.05782191827893257, 0.12609043717384338, -0.35636797547340393, -0.0351356603205204, -0.19966962933540344, -0.3598550856113434, 0.40144556760787964, -0.4314649701118469, 0.1365202814340...
for ii in D.get(k,[]): get2(D, ii) get2(D,k) return L ``` Obviously, this is pretty weak :) I've been banging my head about how to how to get yields inside there, and I'd appreciate any py-foo y'all can bring to this. Try this: ``` #!/usr/bin/env python def get_all(D, k): yield k for ii ...
[ -0.19112849235534668, -0.05520666018128395, 0.04351557791233063, -0.6733601689338684, -0.05586937442421913, 0.05501051992177963, 0.5147278308868408, -0.46670466661453247, 0.10287605226039886, -0.5248166918754578, -0.5440434813499451, 0.5931280255317688, -0.569652795791626, -0.5264992713928...
yield jj A = { 'a' : dict(b=1, c=1), 'c' : dict(d=1), 'd' : dict(e=1,f=1,g=1), 'h' : dict(j=1) } for ii in get_all(A,'a'): print ii ``` Gives me ``` steve@rei:~/code/tmp $ python recur.py a c d e g f b ```
[ 0.07205718755722046, 0.11509553343057632, 0.16680596768856049, -0.6132179498672485, 0.07246912270784378, 0.23113197088241577, 0.3874272108078003, -0.5852248072624207, 0.028008410707116127, -0.33925580978393555, -0.37293922901153564, 0.47401487827301025, -0.5872385501861572, -0.330732405185...
Considering the following architecture: * a base object 'Entity' * a derived object 'Entry:Base' * and a further derived object 'CancelledEntry:Entry' In EntitySQL I can write the following: ``` [...] where it is of (only MyEntities.Entry) [...] ``` to return only objects of type Entry and no Entity or CancelledE...
[ 0.05009732022881508, 0.08922257274389267, 0.6435162425041199, -0.005590150132775307, -0.02846585027873516, -0.29549887776374817, 0.03224777802824974, -0.23051288723945618, 0.00880614947527647, -0.3779076337814331, 0.06932001560926437, 0.6502376198768616, -0.3881838023662567, 0.131901144981...
reuse linq query fragments. Using extension methods on IQueryable< Entity > is a great way to re-use queries as you should neve rneed to copy and paste query fragments around your application, hope that helps.
[ 0.021807394921779633, 0.13394947350025177, 0.20761966705322266, 0.5203126668930054, -0.3040580749511719, -0.09325824677944183, 0.5032507181167603, 0.006077708676457405, -0.3057197034358978, -0.6123135685920715, -0.2341892570257187, 0.25412288308143616, -0.2531174123287201, 0.19289161264896...
If you have $100 in your hand right now. And have to bet on one of these options. That would you bet it on? The question is: What is the most important factor, that determents the cost of a project. 1. Typing speed of the programmers. 2. The total amount of characters typed while programming. 3. The 'wc \*.c' comman...
[ 0.6433280110359192, 0.31934240460395813, 0.2786720395088196, 0.21746376156806946, 0.19121116399765015, -0.08603010326623917, -0.02175249718129635, -0.027781451120972633, -0.10436834394931793, -0.2682041525840759, 0.18037666380405426, 0.8779897689819336, -0.041722312569618225, -0.0233308300...
most important factor. I ask, because I think the character count matters. Less character to change when requirements change. The faster it's done. Or? UPDATE: This question was discussed in Stackoverflow podcast #23. Thanks Jeff! :) From McConnell: <http://www.codinghorror.com/blog/archives/000637.html> > [For a s...
[ 0.529979944229126, -0.03335863724350929, -0.1843833029270172, 0.2921929359436035, 0.13788717985153198, 0.20581641793251038, -0.12074822932481766, -0.15625040233135223, -0.3947341740131378, -0.7917978763580322, -0.2509538531303406, 0.46900105476379395, 0.3403558135032654, -0.079134158790111...
factors I don't think you accounted for #3 in the above list. There's usually an order of magnitude or more difference in skill between programmers, not to mention [all the Peopleware issues](https://rads.stackoverflow.com/amzn/click/com/0932633439) that can affect the schedule profoundly (bad apples, bad management, ...
[ 0.1992298811674118, 0.1907387375831604, -0.11786621809005737, 0.06369192898273468, 0.00900769792497158, 0.06969663500785828, 0.1938772350549698, -0.02904146909713745, -0.5014083385467529, -0.5261890292167664, 0.22741973400115967, 0.7341459393501282, -0.0808703675866127, 0.12899915874004364...
Is there a way of wrapping text in a non-rectangular container in WPF? [Here is how it is done in photoshop](http://www.photoshopessentials.com/photoshop-text/text-effects/text-wrap/page-3.php) Unfortunately there isn't a straightforward way without making a complete implementation of a TextFormatter. [MSDN article on...
[ 0.08058130741119385, 0.07492684572935104, 0.7230644822120667, 0.1649932861328125, -0.22836162149906158, -0.22428470849990845, -0.09227386116981506, -0.6276136636734009, -0.31893298029899597, -0.6183292269706726, -0.1475381851196289, 0.4300757646560669, -0.12861314415931702, -0.322570651769...
However, some advanced scenarios require the control of text storage as well as text presentation. WPF provides an extensible text formatting engine for this purpose.
[ -0.16456468403339386, 0.05054921656847, 0.2642710208892822, 0.06501305848360062, 0.048057813197374344, -0.3923918604850769, -0.005076588597148657, -0.439818412065506, -0.07665713131427765, -0.4823180139064789, -0.5626619458198547, 0.5064259171485901, 0.026267213746905327, -0.14663760364055...
There is a well-known debate in Java (and other communities, I'm sure) whether or not trivial getter/setter methods should be tested. Usually, this is with respect to code coverage. Let's agree that this is an open debate, and not try to answer it here. There have been several blog posts on using Java reflection to au...
[ 0.6378632187843323, 0.1354159563779831, -0.37310516834259033, -0.01615389622747898, -0.4238612949848175, -0.545468807220459, 0.24643683433532715, -0.18241837620735168, -0.3309381604194641, -0.3286897540092468, -0.08422262221574783, 0.7127590179443359, -0.3349262773990631, -0.2939473092556,...
configurable, the 'debate' would be left as an option to the user. [Unitils](http://www.unitils.org) does this w/ the static method `assertRefEquals`.
[ -0.09494315832853317, -0.3191852867603302, 0.43622857332229614, 0.24250303208827972, -0.3567013144493103, -0.2480781525373459, -0.09899819642305374, -0.3513023853302002, 0.15217870473861694, -0.4044598639011383, -0.46314606070518494, 0.6451667547225952, 0.05756567791104317, 0.0140319420024...
What is the best way to randomize an array of strings with .NET? My array contains about 500 strings and I'd like to create a new `Array` with the same strings but in a random order. Please include a C# example in your answer. If you're on .NET 3.5, you can use the following IEnumerable coolness: ``` Random rnd=new R...
[ 0.2856445908546448, -0.33161863684654236, 0.43944621086120605, 0.09258222579956055, -0.060857295989990234, 0.0031772074289619923, 0.04621240496635437, -0.4144931435585022, -0.30422285199165344, -0.570796012878418, 0.1022254228591919, 0.42665427923202515, -0.2959368824958801, 0.285844027996...
as used in my example, Random() is perfectly thread-safe, unless you're allowing the routine in which you randomize the array to be re-entered, in which case you'll need something like `lock (MyRandomArray)` anyway in order not to corrupt your data, which will protect `rnd` as well. Also, it should be well-understood ...
[ 0.23144352436065674, -0.30916696786880493, 0.10598016530275345, -0.051256272941827774, 0.017501993104815483, -0.17729605734348297, 0.15647968649864197, -0.2550271451473236, -0.3968242108821869, -0.4265637695789337, 0.020901700481772423, 0.38602152466773987, -0.3636464476585388, 0.528627574...
byte[] randomInt = new byte[4]; rnd.GetBytes(randomInt); return Convert.ToInt32(randomInt[0]); } ```
[ -0.1530456691980362, -0.3105081021785736, 0.060077276080846786, -0.33845826983451843, -0.022774558514356613, 0.13093477487564087, 0.2919789254665375, -0.34564900398254395, -0.3065771162509918, -0.4904417097568512, -0.036592595279216766, 0.6364825367927551, -0.3941589593887329, 0.4969578683...
How would I go about writing some code to allow access to a Java class in my webapp from the command line. E.g. I have a java class with command line interface, that can runs code in the context of the webapp, with access to the DB etc. I want to log on the machine hosting my WARred app in tomcat and be able to intera...
[ 0.719769299030304, 0.12808869779109955, -0.13891611993312836, 0.4101789891719818, -0.24563799798488617, 0.0639592856168747, 0.2439429610967636, 0.04735545814037323, -0.1631879061460495, -0.4439774453639984, 0.08368363976478577, 0.9701837301254272, -0.14651097357273102, -0.04360759258270264...
WAR instance? If the former, then the WAR is just a normal Jar file and you can execute classes in that just like any other other Jar file. If you want to interact with the running WAR, then you might want to look at JMX. All current JDKs (at least 1.5+) come with JMX "for free". It's easy to create little interface ...
[ 0.22113265097141266, 0.2985036075115204, -0.0732615515589714, 0.055390190333127975, -0.552655816078186, 0.1523021161556244, 0.13125711679458618, -0.1855689436197281, -0.2674439549446106, -0.626446545124054, 0.2419404238462448, 0.6867272853851318, -0.4038126468658447, 0.1573295295238495, ...
but it's a GUI) to interact with your instance. There are other JMX clients out there as well. If none of that is attractive, there's always web services.
[ 0.3841443657875061, 0.1309259682893753, -0.0108757633715868, 0.4698447287082672, -0.31327128410339355, -0.10745915025472641, 0.19827640056610107, 0.34173303842544556, -0.33144181966781616, -0.7600783705711365, 0.3313061594963074, 0.9282326698303223, -0.3527681231498718, -0.0855423361063003...
Is there a version of memset() which sets a value that is larger than 1 byte (char)? For example, let's say we have a memset32() function, so using it we can do the following: ``` int32_t array[10]; memset32(array, 0xDEADBEEF, sizeof(array)); ``` This will set the value 0xDEADBEEF in all the elements of array. Curre...
[ -0.09863067418336868, -0.10208333283662796, 0.21924719214439392, -0.2872636616230011, 0.04368795454502106, 0.05560683459043503, 0.43523162603378296, -0.22288495302200317, -0.33905693888664246, -0.6131928563117981, 0.005174999590963125, 0.5470327734947205, -0.3672553598880768, 0.17601539194...
{ memcpy( ((char*)dest) + i, &value, 8 ); } for( ; i < size; i++ ) { ((char*)dest)[i] = ((char*)&value)[i&7]; } } ``` (Explanation, as requested in the comments: when you assign to a pointer, the compiler assumes that the pointer is aligned to the type's natural alignment; for uint64\_t, that is 8...
[ -0.08572787791490555, -0.05491165444254875, 0.5289454460144043, -0.04223594814538956, 0.28294193744659424, 0.14866825938224792, 0.4155105650424957, -0.45663219690322876, -0.18278907239437103, -0.5412716269493103, -0.30749213695526123, 0.8335235118865967, -0.204129159450531, 0.0493417605757...
that they will never occur, or both. The compiler will replace small memcpy()s and memset()s with more suitable code so it is not as horrible is it looks; but if you do know enough to guarantee assignment will always work and your profiler tells you it is faster, you can replace the memcpy with an assignment. The secon...
[ 0.23102900385856628, -0.23703695833683014, 0.3014478385448456, 0.20793098211288452, 0.3183742165565491, 0.12811869382858276, 0.4017944037914276, -0.026002634316682816, -0.32698875665664673, -0.41414543986320496, -0.2486446350812912, 0.5981348752975464, -0.32745638489723206, -0.117310896515...
I am trying to evaluate the answer [provided here](https://stackoverflow.com/questions/108081/are-there-any-high-level-easy-to-install-gui-libraries-for-common-lisp), and am getting the error: `"A file with name ASDF-INSTALL does not exist"` when using clisp: ``` dsm@localhost:~$ clisp -q [1]> (require :asdf-install) ...
[ -0.05326490476727486, 0.24974378943443298, 0.3016248941421509, 0.089875228703022, 0.1424301564693451, -0.28424888849258423, 0.8453831672668457, -0.055654674768447876, -0.3674394190311432, -0.34660112857818604, -0.28170469403266907, 0.8012792468070984, -0.26377072930336, 0.06482715159654617...
see http://www.cons.org/cmucl/support.html Send bug reports to the debian BTS. or to pvaneynd@debian.org type (help) for help, (quit) to exit, and (demo) to see the demos Loaded subsystems: Python 1.1, target Intel x86 CLOS based on Gerd's PCL 2004/04/14 03:32:47 * (require :asdf-install) Error in function RE...
[ 0.30237123370170593, 0.1097986176609993, 0.09317615628242493, 0.15824763476848602, 0.2607828378677368, -0.38759610056877136, 0.37619611620903015, -0.40323513746261597, -0.24334828555583954, -0.3797356188297272, -0.36700955033302307, 0.7724076509475708, -0.3689729869365692, -0.1482015699148...
about SBCL is available at <http://www.sbcl.org/>. SBCL is free software, provided as is, with absolutely no warranty. It is mostly in the public domain; some portions are provided under BSD-style licenses. See the CREDITS and COPYING files in the distribution for more information. * (require :asdf-install) ; loadin...
[ 0.17731963098049164, 0.1975000500679016, 0.36902838945388794, 0.08129420131444931, 0.056380268186330795, -0.7198860049247742, 0.2936127483844757, 0.14355683326721191, -0.2818749248981476, 0.04724792018532753, -0.5747655034065247, 0.30809518694877625, -0.6018340587615967, 0.0110420249402523...
by using clc:clc-require. sbcl works fine with just require though.
[ 0.45178037881851196, -0.08195915073156357, 0.5947667956352234, 0.10347816348075867, -0.002395475283265114, -0.8819215893745422, 0.18444743752479553, -0.2639108896255493, -0.23194095492362976, -0.24478918313980103, -0.26166990399360657, 0.47224995493888855, -0.46813657879829407, -0.29692599...
We have two versions of a managed C++ assembly, one for x86 and one for x64. This assembly is called by a .net application complied for AnyCPU. We are deploying our code via a file copy install, and would like to continue to do so. Is it possible to use a Side-by-Side assembly manifest to loading a x86 or x64 assembly...
[ 0.4737958312034607, -0.021052120253443718, 0.26341676712036133, -0.17312975227832794, -0.06742959469556808, -0.1456233263015747, -0.0881902277469635, -0.19752706587314606, -0.2120763510465622, -0.6277452111244202, -0.11842764914035797, 0.401363343000412, -0.3280775845050812, 0.078400775790...
from an executable compiled as AnyCPU. The technique used can be summarized as follows: 1. Make sure default .NET assembly loading mechanism ("Fusion" engine) can't find either x86 or x64 version of the platform-specific assembly 2. Before the main application attempts loading the platform-specific assembly, install a...
[ 0.11356314271688461, -0.09946509450674057, 0.27968254685401917, -0.20327794551849365, 0.07114152610301971, -0.1506071239709854, -0.0386909656226635, -0.4885863661766052, -0.303247332572937, -0.7117511630058289, -0.5047053098678589, 0.5103446841239929, -0.519307553768158, -0.020738741382956...
attaching a short, command-line based tutorial. I tested the resulting binaries on Windows XP x86 and then Vista SP1 x64 (by copying the binaries over, just like your deployment). **Note 1**: "csc.exe" is a C-sharp compiler. This tutorial assumes it is in your path (my tests were using "C:\WINDOWS\Microsoft.NET\Framew...
[ 0.09471603482961655, 0.030774643644690514, 0.1843600869178772, 0.2493099719285965, -0.005699333734810352, -0.2483007162809372, 0.18820202350616455, -0.2737310230731964, -0.041245874017477036, -0.6641924977302551, -0.12897679209709167, 0.24843508005142212, -0.4892154335975647, -0.0715278163...
Worker { public static void Run() { System.Console.WriteLine("Worker is running"); System.Console.WriteLine("(Enter to continue)"); System.Console.ReadLine(); } } } ``` **Step 2**: We compile platform-specific assemblies using simple command-line com...
[ 0.042660582810640335, 0.1758602261543274, 0.281588613986969, -0.3099103569984436, -0.15224313735961914, 0.2529080808162689, 0.2417144477367401, -0.5745379328727722, -0.2358349859714508, -0.6667212247848511, -0.05086956173181534, 0.061339400708675385, -0.42000311613082886, 0.102631889283657...
program is split into two parts. "Bootstrapper" contains main entry point for the executable and it registers a custom assembly resolver in current appdomain: ``` // file 'bootstrapper.cs' in C:\TEMP\CrossPlatformTest namespace Cross.Platform.Program { public static class Bootstrapper { public static v...
[ 0.11553752422332764, -0.20894362032413483, 0.45606857538223267, -0.16967381536960602, 0.4325959384441376, 0.3797776401042938, 0.2550661265850067, -0.2071581482887268, -0.4058522582054138, -0.4485425055027008, -0.20659251511096954, 0.23693451285362244, -0.6178895831108093, 0.267417579889297...
private static System.Reflection.Assembly CustomResolve( object sender, System.ResolveEventArgs args) { if (args.Name.StartsWith("library")) { string fileName = System.IO.Path.GetFullPath(
[ -0.0745701864361763, -0.3384024202823639, 0.4582696259021759, -0.01651923544704914, 0.2607819437980652, 0.14998915791511536, 0.42899051308631897, -0.08032918721437454, -0.3287579119205475, -0.46973714232444763, -0.3022709786891937, 0.6618285179138184, -0.536566972732544, 0.3746381998062134...
"platform\\" + System.Environment.GetEnvironmentVariable("PROCESSOR_ARCHITECTURE") + "\\library.dll"); System.Console.WriteLine(fileName); if (System.IO.File.Exists(fileName)) {
[ -0.11990062892436981, -0.31966087222099304, 0.44740980863571167, 0.08158893138170242, 0.5779505372047424, 0.12934988737106323, 0.18845215439796448, -0.10579658299684525, -0.04098677262663841, -0.7987725734710693, -0.3883061707019806, 0.4608783721923828, -0.4275924563407898, 0.2321731150150...
return System.Reflection.Assembly.LoadFile(fileName); } } return null; } } } ``` "Program" is the "real" implementation of the application (note that App.Run was invoked at the end of Bootstrapper.Main): ``` // file 'program.cs' in C:\TEMP\CrossPlatformTest namespa...
[ 0.103652223944664, 0.2756250202655792, 0.481957346200943, -0.2150139957666397, 0.027997728437185287, 0.5733816623687744, 0.26688215136528015, -0.11669674515724182, -0.4537196457386017, -0.6550862193107605, -0.32177460193634033, 0.3898882567882538, -0.818455696105957, 0.035511210560798645, ...
public static void Run() { Cross.Platform.Library.Worker.Run(); } } } ``` **Step 4**: Compile the main application on command line: ``` (cmd.exe from Note 2) csc /reference:platform\x86\library.dll /out:program.exe program.cs bootstrapper.cs ``` **Step 5**: We're now finished. The s...
[ 0.16213518381118774, 0.08703417330980301, 0.49390488862991333, -0.09373585134744644, 0.12868326902389526, 0.08205653727054596, 0.32223719358444214, -0.10072625428438187, -0.3223029375076294, -0.6178715825080872, -0.23039934039115906, 0.37041738629341125, -0.32484880089759827, 0.31238418817...
library.dll x86 (dir) library.dll program.exe *.cs (source files) ``` If you now run program.exe on a 32bit platform, platform\x86\library.dll will be loaded; if you run program.exe on a 64bit platform, platform\amd64\library.dll will be loaded. Note that I added Console.ReadLine() at the ...
[ -0.02532212994992733, -0.1871192306280136, 0.28890660405158997, -0.0964585691690445, -0.039167821407318115, -0.04223073273897171, 0.2200036346912384, -0.2108892947435379, -0.2613704204559326, -0.874443531036377, -0.21551372110843658, 0.6181228160858154, -0.46422770619392395, 0.382139801979...
run, our custom assembly resolver is attached to current appdomain. As soon as .NET starts loading the Program class, it sees a dependency on 'library' assembly, so it tries loading it. However, no such assembly is found (because we've hidden it in platform/\* subdirectories). Luckily, our custom resolver knows our tri...
[ 0.25890281796455383, -0.21839751303195953, 0.21114583313465118, 0.027177823707461357, 0.14193886518478394, -0.07465245574712753, 0.6332652568817139, -0.03752226382493973, -0.13561148941516876, -0.5743586421012878, -0.05185917764902115, 0.6147280335426331, -0.7269509434700012, 0.20967917144...
I need to display many pages of news in a site. Should I do the pagination in the database query using `LIMIT` or with the PHP script after getting all the results? Use limit in SQL! Every time! Otherwise you're throwing around considerably more data than you need to, which makes your scripts unnecessarily slow, and w...
[ 0.3543427884578705, 0.21789655089378357, 0.3940567672252655, 0.03821637108922005, -0.0865805372595787, -0.4677015244960785, 0.26856279373168945, 0.25124943256378174, -0.24110153317451477, -0.559219241142273, 0.3173728287220001, 0.5250038504600525, -0.196318581700325, 0.20622073113918304, ...
Could you recommend me a way to place a coundown timer on ASP.NET page? Now I use this code: **Default.aspx** ``` <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:Label ID="Label1" runat="server">60</asp:Label> ...
[ 0.09274420142173767, -0.02747597172856331, 0.410786896944046, 0.06719059497117996, 0.09592369198799133, -0.06968985497951508, 0.07152062654495239, -0.5041512846946716, 0.11241230368614197, -0.8612859845161438, 0.3154967129230499, 0.2471778690814972, -0.023057300597429276, 0.055487856268882...
pure client-side method. Is it possible in ASP.NET? OK, finally I ended with ``` <span id="timerLabel" runat="server"></span> <script type="text/javascript"> function countdown() { seconds = document.getElementById("timerLabel").innerHTML; if (seconds > 0) { document.get...
[ 0.15914787352085114, -0.49628934264183044, 0.6081634163856506, -0.19038669764995575, 0.17530813813209534, 0.10508649051189423, 0.2673294246196747, -0.3696390688419342, -0.0860101655125618, -0.5223984718322754, 0.02750643528997898, 0.5058356523513794, -0.20752854645252228, -0.01970302499830...
1000); </script> ``` Really simple. Like old good plain HTML with JavaScript.
[ 0.0008967196918092668, 0.1761661320924759, 0.4420434534549713, 0.05896035209298134, -0.18624119460582733, 0.18615855276584625, 0.23833897709846497, -0.12156407535076141, 0.13005821406841278, -0.9196604490280151, -0.1600581407546997, 0.5255852937698364, -0.16541139781475067, -0.038782771676...
Does anyone know of any problems with using WCF to expose a SOAP interface for non .NET clients? For example incompatibilities with other SOAP libraries? This is so that the SOAP interface can be exposed for third parties to integrate with our software. Some of the problem areas I've encountered with WCF: * It genera...
[ 0.5201992392539978, 0.023692799732089043, 0.09559889137744904, 0.10189373791217804, -0.3170117735862732, -0.3963971436023712, 0.0271600391715765, -0.09189631789922714, -0.20138059556484222, -0.6167970299720764, -0.023650966584682465, 0.31313982605934143, -0.467107892036438, 0.3845763206481...
idiom. So you really have to "flatten" your WSDL in order to achieve interoperability in practice. One solution is given [here](http://blogs.thinktecture.com/cweyer/archive/2007/05/10/414840.aspx). * WCF doesn't generate XML namespaces the same way as, say, ASMX web services. WCF has a tendency to place any service or ...
[ 0.2834324836730957, -0.04801759123802185, 0.21983635425567627, 0.10527095198631287, -0.6383610963821411, -0.3551315665245056, 0.32933059334754944, -0.30213597416877747, -0.004406150430440903, -0.7823747992515564, 0.1499261111021042, 0.4415372908115387, -0.27286678552627563, 0.2933206558227...
transmitted to the client, of course, but the client then has to do more work to figure out what kind of fault it was.
[ 0.2024846225976944, -0.012148425914347172, 0.17034877836704254, 0.15902625024318695, 0.03181050345301628, 0.22908343374729156, 0.06387098878622055, 0.12412106245756149, -0.12603990733623505, -0.0995258167386055, -0.14467230439186096, 0.5896381735801697, -0.07907477766275406, 0.116326712071...
This question is about the difference between ReadWrite and NonStrictReadWrite cache concurrency strategies for NHibernate's second level cache. As I understand it, the difference between these two strategies is relevant when you have a distributed *replicated* cache - nonstrict won't guarantee that one cache has the ...
[ 0.1586901843547821, -0.017622066661715508, 0.005514303222298622, -0.029011595994234085, -0.21617865562438965, -0.11955820024013519, 0.3337930142879486, -0.18037734925746918, -0.25095224380493164, -0.6533985137939453, 0.2261011004447937, 0.5223086476325989, -0.32689860463142395, 0.519056856...
that in non replicated scenarios, the timestamps cache will ensure that stale results are not served. If it can be relevant, I would like to see an example. What you assume is right, in a single target/thread environment there's little difference. However if you look at the cache providers there is a bit going on even ...
[ 0.7645312547683716, 0.0034914338029921055, 0.12107448279857635, 0.24551455676555634, -0.10686187446117401, -0.0591602623462677, 0.13184958696365356, -0.04830582067370415, -0.4629194736480713, -0.5199162364006042, 0.2454150766134262, 0.5766171813011169, -0.11391286551952362, 0.3696860373020...
then you'll see different performance with strict vs non-strict. For example: non-strict simply dumps an object from cache after an update is performed...price is paid for the fetch on the next access instead of a post-update event handler. In the strict model, the re-cache is taken care of automatically. A similar thi...
[ 0.2010372132062912, -0.5231995582580566, 0.2854623794555664, 0.2848874628543854, -0.05198083072900772, -0.33272644877433777, 0.22806651890277863, -0.3644787073135376, -0.07858938723802567, -0.39569512009620667, -0.18305063247680664, 0.7727565765380859, -0.18766045570373535, 0.1882658153772...
another thread's change to the item. In strict the cache key for that item would lock and you would be held up but see the absolute latest result. So, even in a single target environment, if there is a large amount of concurrent reads/edits on objects then you have a chance to see data that isn't really accurate. T...
[ 0.37316909432411194, -0.2698153555393219, 0.2719079256057739, 0.44980067014694214, 0.033733051270246506, -0.24873429536819458, 0.3868367075920105, 0.1434912383556366, -0.6140912771224976, -0.6532801389694214, 0.009119292721152306, 0.22387397289276123, -0.29316797852516174, 0.42085477709770...
the edits to the stale data they loaded.
[ 0.2847270965576172, 0.18774309754371643, -0.1138366162776947, 0.32696396112442017, -0.18256525695323944, 0.28733038902282715, 0.02261328138411045, -0.02872098609805107, -0.2530423402786255, -0.3291008770465851, 0.03956940025091171, 0.6050307750701904, -0.3375712037086487, 0.082700699567794...
Normally I use `imagecreatefromjpeg()` and then `getimagesize()`, but with Firefox 3 I need to go round this different. So now im using `imagecreatefromstring()`, but how do I retreive the image dimensions now? `imagesx()` and `imagesy()` functions seem to work with images made with `imagecreatefromstring()`, too.
[ 0.061718057841062546, 0.08038555085659027, 0.6711770296096802, -0.23521652817726135, -0.18528519570827484, -0.22840099036693573, 0.019414683803915977, -0.3142078220844269, -0.16408933699131012, -0.8497017621994019, -0.1259675920009613, 0.9063379168510437, -0.4472363293170929, -0.2421929389...
I have two custom controls that are analogous to a node and the control that draws links between nodes. I would like to have both controls written as much in xaml as possible. The link stores both nodes as dependency properties, and I use databinding to move the line between the nodes whenever the nodes move. It wou...
[ 0.15116888284683228, -0.0496021993458271, 0.569465696811676, 0.0495021715760231, -0.025771601125597954, 0.1709163635969162, -0.09550261497497559, -0.20471903681755066, 0.04948391392827034, -0.6501181125640869, 0.28316766023635864, 0.43881461024284363, -0.23270530998706818, 0.15722258388996...
around how that would work. Anyone got any ideas? you can try doing something like that: 1. as in previous post define a width, stroke (whatever you need) property on your link class 2. define a multibinding applied to that property, passing your two nodes to the binding it should look like: > <Multibinding Converte...
[ -0.1016298234462738, -0.24672700464725494, 0.8222623467445374, -0.02454959601163864, -0.1051616221666336, -0.044718753546476364, -0.1088733971118927, -0.5679628252983093, -0.09578170627355576, -1.0660921335220337, 0.3599194586277008, 0.40048331022262573, -0.4849952757358551, 0.067010983824...
your multibinding's Converter property. the advantage of this solution is, that you have pretty clear class model and each class does simple tasks. moreover, later on, you can configure your converter class to support extra cases without touching node class which stays simple and is designed simply for displaying node...
[ -0.10637878626585007, -0.30577799677848816, 0.21617843210697174, 0.33944299817085266, -0.22385261952877045, -0.20752067863941193, 0.01739722490310669, -0.1982443481683731, -0.3593997359275818, -0.7454069256782532, 0.05491776764392853, 0.6038055419921875, -0.4946463704109192, 0.236594647169...
Is it possible to test the use of a given layout using RSpec with Rails, for example I'd like a matcher that does the following: ``` response.should use_layout('my_layout_name') ``` I found a use\_layout matcher when Googling but it doesn't work as neither the response or controller seem to have a layout property th...
[ 0.04242141544818878, -0.3059897720813751, 0.37924373149871826, 0.048539966344833374, -0.25774502754211426, -0.2915133535861969, -0.12637688219547272, -0.5298468470573425, -0.049251191318035126, -0.5206745862960815, 0.3319520056247711, 0.5616204142570496, -0.36282408237457275, 0.12813186645...
@actual = controller.layout #@actual.equal?(@expected) @actual == @expected end def failure_message return "use_layout expected #{@expected.inspect}, got # {@actual.inspect}", @expected, @actual end def negeative_failure_message return "use_layout expected #{@expected.inspect} not to eq...
[ 0.21693404018878937, -0.29767096042633057, 0.9019637703895569, 0.2847970128059387, 0.038025662302970886, 0.10949403792619705, -0.1491866260766983, -0.34963133931159973, -0.19557854533195496, -0.684103786945343, 0.21136367321014404, 0.7935729026794434, -0.06426049023866653, 0.19897070527076...
*This is a shameless information gathering exercise for my own book.* One of the talks I give in the community is an introduction to web site vulnerabilities. Usually during the talk I can see at least two members of the audience go very pale; and this is basic stuff, Cross Site Scripting, SQL Injection, Information L...
[ 0.6553834080696106, 0.33481061458587646, 0.11125026643276215, -0.010724538937211037, -0.1145736500620842, -0.23845715820789337, 0.5343067049980164, 0.3460819721221924, -0.11631528288125992, -0.5007469654083252, 0.13704341650009155, 0.23830319941043854, 0.36180952191352844, 0.14363870024681...
covering the [OWASP Top Ten](http://www.owasp.org/index.php/OWASP_Top_Ten_Project) (And yes this means stackoverflow will be in the acknowledgements list if someone comes up with something I haven't thought of yet!) *It's all done now, and published, thank you all for your responses* First, I would point out the inse...
[ 0.36586201190948486, 0.07878604531288147, 0.4854670464992523, 0.3387162983417511, -0.22843053936958313, -0.29277727007865906, 0.04076024517416954, -0.00751120038330555, -0.23423345386981964, -0.5491929054260254, -0.07941225916147232, 0.5712903141975403, 0.0049857343547046185, -0.2364334464...
of what they're defending against. Talking about security beyond that is great, but without understanding the type of attack they're meant to thwart, it will be hard for them to accurately "test" their systems for security. Once they can test for security by trying to intercept messages, spoof headers, etc. then they a...
[ 0.748209536075592, 0.22042401134967804, 0.14133015275001526, 0.5069727897644043, 0.2533004581928253, -0.16766434907913208, 0.6643273234367371, -0.07552080601453781, -0.1464335024356842, -0.3225843608379364, -0.00645970506593585, 0.6805381774902344, 0.15320265293121338, -0.15277841687202454...
showed them to try.
[ 0.4244328439235687, 0.21145124733448029, -0.06205391511321068, 0.2043319046497345, -0.2795426547527313, 0.29759061336517334, 0.1342826783657074, -0.05377710983157158, -0.1824760138988495, -0.34282276034355164, 0.28257691860198975, 0.39057284593582153, 0.08120913803577423, -0.07912817597389...
Is there a place to find all possible uses of the syscmd method in MS Access? I know Microsoft has a [developer reference](http://msdn.microsoft.com/en-us/library/bb214117.aspx), but I have found there are many other uses for this method that are not listed here. Here's a comprehensive list, including which Access vers...
[ 0.08586587756872177, 0.09246350824832916, 0.34494665265083313, 0.2994755804538727, 0.2889837920665741, -0.14520664513111115, 0.14074593782424927, 0.0785820484161377, -0.04509544372558594, -0.5103043913841248, -0.3361051082611084, 0.35466763377189636, -0.06727589666843414, 0.044436905533075...
I populated a datagridview from a datatable. How do I read from the datagridview when the application is running? how did you populate it? is the DataSource something useful like a BindlingList? If it is then something like: ``` BindingSource bindingSource = this.dataGridView1.DataSource as BindingSource; //substitut...
[ 0.06461042910814285, -0.0015559541061520576, 0.7937712669372559, -0.046897802501916885, -0.013835669495165348, 0.13110320270061493, 0.3418388068675995, -0.3339930772781372, -0.17281711101531982, -0.7413415312767029, 0.18537971377372742, 0.2741333842277527, -0.5940843224525452, 0.2671657800...
in table.Columns) { Console.WriteLine(row[column]); } } ```
[ -0.46713611483573914, 0.29078343510627747, 0.7129026651382446, -0.46623969078063965, 0.44103166460990906, 0.05234578251838684, 0.24285803735256195, -0.1506081521511078, 0.13671816885471344, -0.6177686452865601, -0.45443665981292725, 0.418268620967865, -0.35985663533210754, 0.15349000692367...
In which parts of a project writing unit tests is nearly or really impossible? Data access? ftp? If there is an answer to this question then %100 coverage is a myth, isn't it? [Here](http://www.artima.com/weblogs/viewpost.jsp?thread=126923) I found (via [haacked](http://haacked.com/archive/2008/07/22/unit-test-boundar...
[ 0.47262391448020935, 0.1484246850013733, -0.0540003776550293, 0.10092873126268387, -0.018478143960237503, -0.15862566232681274, 0.4428156912326813, -0.5667117834091187, -0.14329636096954346, -0.3193724453449249, 0.023472104221582413, 0.2590862214565277, -0.1808413416147232, 0.1403095275163...
do special things to your environment (such as editing config files) to run it. Again in same article he adds: > Generally, unit tests are supposed to be small, they test a method or the interaction of a couple of methods. When you pull the database, sockets, or file system access into your unit tests, they are not r...
[ 0.7074872851371765, -0.004023898392915726, -0.39842721819877625, 0.46235862374305725, 0.12163984775543213, -0.20116585493087769, 0.19049140810966492, -0.30090832710266113, -0.0673326700925827, -0.4668707251548767, -0.002050768816843629, 0.3765164315700531, 0.10176850855350494, -0.123959250...
I keep hearing that `div` tags should be used for layout purposes and not `table` tags. So does that also apply to form layout? I know a form layout is still a layout, but it seems like creating form layouts with `div`s requires more `html` and `css`. So with that in mind, should forms layouts use `div` tags instead? Y...
[ 0.7919852137565613, 0.12063321471214294, 0.23017211258411407, 0.10654319077730179, -0.07059501856565475, -0.4075809121131897, -0.10984598845243454, -0.21511685848236084, -0.4519279897212982, -0.7563802599906921, -0.0341954231262207, 0.45903638005256653, -0.2943936884403229, 0.0490544214844...
to markup a form with pretty minimal HTML, and let CSS do the rest of the work. E.g.: ``` <fieldset> <div> <label for="nameTextBox">Name:</label> <input id="nameTextBox" type="text" /> </div> ... </fieldset> ```
[ 0.16688983142375946, 0.03843076154589653, 0.3464646637439728, -0.12325756996870041, -0.4847528338432312, -0.21796046197414398, 0.03657867759466171, -0.1504431813955307, 0.03601373732089996, -0.8575178384780884, -0.18508636951446533, 0.043213482946157455, -0.31689688563346863, -0.2248649746...
I've got my Rails (2.1) app setup to send email via Gmail, however whenever I send an email no matter what I set the from address to in my ActionMailer the emails always come as if sent from my Gmail email address. Is this a security restriction they've put in place at Gmail to stop spammers using their SMTP? Note: I'...
[ 0.47715845704078674, -0.016698775812983513, 0.5733512043952942, -0.24941010773181915, -0.31540074944496155, -0.01587631180882454, 0.5945394039154053, 0.01265157014131546, -0.3700689375400543, -0.6065906286239624, 0.13686659932136536, 0.5346406102180481, -0.27260512113571167, -0.01736542955...
using their SMTP to send mail.
[ 0.24468843638896942, -0.21540015935897827, 0.052502118051052094, 0.08627337217330933, -0.22161616384983063, -0.04699760302901268, 0.48070627450942993, 0.574637234210968, -0.5704807639122009, -0.44470492005348206, -0.3079530894756317, -0.5282393097877502, -0.2677399516105652, 0.215406432747...
When I place a control on a tabpage in Silverlight the control is placed ~10 pixels down and ~10 pixels right. For example, the following xaml: ``` <System_Windows_Controls:TabControl x:Name=TabControlMain Canvas.Left="0" Canvas.Top="75" Width="800" Height="525" Background="Red" HorizontalContentAlignment="Left" Verti...
[ -0.0658758357167244, -0.2099185734987259, 0.8173595070838928, -0.07372641563415527, 0.06679349392652512, -0.04005025699734688, -0.07398584485054016, -0.49458059668540955, -0.019005095586180687, -0.6995436549186707, -0.11805588006973267, 0.3429163098335266, -0.12564973533153534, -0.05376185...
</System_Windows_Controls:TabItem> </System_Windows_Controls:TabControl> ``` will produce: ![alt text](https://i.stack.imgur.com/y5LuN.jpg) How do I position the content at 0,0? Look at the control template, it has a margin of that size. Use blend to modify the a copy of the tab control's template.
[ 0.2613268792629242, -0.15525348484516144, 0.8245394229888916, -0.17678193747997284, 0.04393778741359711, -0.15779370069503784, -0.09348026663064957, -0.24291886389255524, 0.08442924916744232, -0.8016232848167419, -0.0751553326845169, 0.6406747102737427, -0.38672012090682983, 0.022757817059...
I've been developing Winforms applications in C# for a few years now and have been interested in moving future development toward WPF, mainly because of the positive things I've been hearing about it. But, I'm wondering what sort of hurdles others have had to overcome as they migrated to WPF. Was there a significant hi...
[ 0.6346270442008972, -0.03143300116062164, -0.014017129316926003, 0.0509827621281147, -0.25114935636520386, -0.36321985721588135, 0.05637039989233017, 0.13518545031547546, -0.034670140594244, -0.7261062264442444, 0.07274927198886871, 0.5948566198348999, -0.3581126034259796, 0.05753847584128...
previous technology (Winforms, MFC, Java) and begin again at square one. If you try and do it any other way it will cause utter frustration. ETA: the reason I say to just start from scratch is because sometimes it's easier to learn new concepts if you go in with a clean slate. In the past, I've discovered that I can...
[ 0.4439803957939148, 0.12686918675899506, -0.245424285531044, 0.25420495867729187, -0.1491440236568451, -0.06522543728351593, 0.2146565467119217, 0.05212530121207237, -0.1282155066728592, -0.8309316635131836, 0.20341423153877258, 0.567462146282196, 0.2027389258146286, -0.10715849697589874, ...
WCF book).
[ 0.07835803925991058, -0.10378941148519516, 0.6199058890342712, -0.16601167619228363, -0.08899984508752823, -0.26657310128211975, 0.09689822047948837, -0.772316575050354, -0.25608202815055847, -0.3688540458679199, -0.09878310561180115, 0.5072126388549805, -0.07682154327630997, 0.07592617720...
I've been digging through some parts of the Linux kernel, and found calls like this: ``` if (unlikely(fd < 0)) { /* Do something */ } ``` or ``` if (likely(!err)) { /* Do something */ } ``` I've found the definition of them: ``` #define likely(x) __builtin_expect((x),1) #define unlikely(x) __bu...
[ 0.16634540259838104, 0.008070054464042187, 0.014668487012386322, -0.031022848561406136, 0.3335890769958496, -0.0822192057967186, -0.05865752696990967, -0.19922225177288055, 0.12294379621744156, -0.9697625041007996, 0.03447245433926582, 0.7045409679412842, -0.2732243239879608, -0.3731454908...
emit instructions that will cause branch prediction to favour the "likely" side of a jump instruction. This can be a big win, if the prediction is correct it means that the jump instruction is basically free and will take zero cycles. On the other hand if the prediction is wrong, then it means the processor pipeline ne...
[ 0.5197632312774658, -0.035161443054676056, -0.09885668009519577, 0.2489289492368698, -0.0317172110080719, -0.19716867804527283, 0.881515383720398, -0.27700647711753845, -0.09686475992202759, -0.26251935958862305, -0.05488299950957298, 0.5784352421760559, -0.4070731997489929, -0.22332075238...
code really is in a bottleneck, and probably given the micro nature, that it is being run in a tight loop. Generally the Linux developers are pretty experienced so I would imagine they would have done that. They don't really care too much about portability as they only target gcc, and they have a very close idea of the...
[ 0.5421809554100037, 0.06357653439044952, -0.2903963625431061, 0.2070658951997757, -0.18368804454803467, -0.13752520084381104, 0.42227688431739807, 0.5761557221412659, -0.21573741734027863, -0.34145501255989075, -0.05826486647129059, 0.551017701625824, -0.19206705689430237, 0.05734471231698...
I was wondering what and why you would choose to be able to make a database that can support no more than 100 users with no more than 10 using it at once with a Visual Studio 2008 C# Windows Form front end to access it by. I have to access the database over a network connection, not just on the local machine. I also ne...
[ 0.37889984250068665, 0.4207623600959778, 0.1696467250585556, 0.07211191207170486, -0.14640966057777405, -0.08267972618341446, 0.13622243702411652, -0.09892832487821579, -0.37515541911125183, -0.447793573141098, 0.008151465095579624, 0.5447476506233215, -0.13060207664966583, -0.025264430791...
and I will adjust. Part of my problem is I am not sure even how to ask the right question, much less what the answer is. If it is not for comercial purposes you can try SQL Server 2008 Express. It can integrate nicely with Visual Studio 2008 for development and has support for LINQ, Entity Data Model and ADO.NET Entity...
[ -0.20677992701530457, 0.024532916024327278, 0.4938105642795563, 0.19636200368404388, -0.17859622836112976, 0.052571285516023636, 0.05217992141842842, -0.08525532484054565, -0.32228153944015503, -0.7808257937431335, 0.2764768898487091, 0.5198525190353394, -0.3617207407951355, -0.09983095526...
To see what file to invoke the unrar command on, one needs to determine which file is the first in the file set. Here are some sample file names, of which - naturally - only the first group should be matched: ``` yes.rar yes.part1.rar yes.part01.rar yes.part001.rar no.part2.rar no.part02.rar no.part002.rar no.part01...
[ 0.16819293797016144, 0.03064209409058094, 0.3019316792488098, -0.06511977314949036, -0.30559465289115906, -0.004558573942631483, 0.44159314036369324, -0.40142372250556946, -0.10969100892543793, -0.3873513638973236, -0.2645590603351593, 0.7312238812446594, -0.3972892463207245, -0.1082515269...
1.8 does not have lookaround assertions (the (?<! stuff in your example regex) which is why your regex doesn't work. This leaves you with two options. 1) Use more than one regex to do it. ``` def is_first_rar(filename) if ((filename =~ /part(\d+)\.rar$/) == nil) return (filename =~ /\.rar$/) != nil el...
[ -0.21392327547073364, -0.26697322726249695, 0.3404826521873474, -0.15424957871437073, -0.16903400421142578, -0.11110559850931168, 0.45958834886550903, -0.5360066294670105, -0.08252547681331635, -0.4595157504081726, -0.1793927401304245, 0.8341624140739441, -0.37031611800193787, 0.0858658254...
that, you can do something like this: ``` def is_first_rar(filename) reg = Oniguruma::ORegexp.new('.*(?:(?<!part\d\d\d|part\d\d|\d)\.rar|\.part0*1\.rar)') match = reg.match(filename) return match != nil end ```
[ -0.3200247585773468, -0.07579950988292694, 0.344807893037796, -0.26259809732437134, 0.1181483343243599, -0.14648029208183289, 0.10674498230218887, -0.4992101490497589, -0.19872750341892242, -0.5985182523727417, -0.13728876411914825, 0.7735282182693481, -0.3401643931865692, 0.39419814944267...
I've got a generic<> function that takes a linq query ('items') and enumerates through it adding additional properties. How can I select all the properties of the original 'item' rather than the item itself (as the code below does)? So equivalent to the sql: select \*, 'bar' as Foo from items ``` foreach (var item in...
[ 0.18973258137702942, 0.1401260644197464, 0.5622513294219971, -0.1048673465847969, 0.17965012788772583, 0.0983872041106224, 0.08273540437221527, -0.43713635206222534, -0.26370176672935486, -0.41595953702926636, -0.08422229439020157, 0.37858763337135315, -0.2697018086910248, 0.47281137108802...
easy way of doing what you're suggesting, as all types in C# are strong-typed, even the anonymous ones like you're using. However it's not impossible to pull it off. To do it you would have to utilize reflection and emit your own assembly in memory, adding a new module and type that contains the specific properties you...
[ 0.25625526905059814, 0.07927780598402023, 0.22444353997707367, 0.09144051373004913, 0.013975873589515686, -0.11874139308929443, 0.04838806763291359, -0.6102436184883118, 0.07118121534585953, -0.5798892974853516, -0.21343109011650085, 0.827309787273407, -0.24545888602733612, -0.267586439847...
just a quick question: I am a CS undergrad and have only had experience with the Eclipse, and Net Beans IDEs. I have recently acquired a Macbook and was wanting to recompile a recent school project in Xcode just to test it out. Right after the line where I declare a new instance of an ArrayList: ``` dictionary = new...
[ 0.5942507386207581, 0.3483820855617523, 0.17954084277153015, -0.20602770149707794, -0.3002212345600128, -0.35130053758621216, 0.510341227054596, 0.17547866702079773, -0.19622749090194702, -0.8146362900733948, 0.16264519095420837, 0.41221070289611816, -0.3265123665332794, 0.1071297302842140...
with Java 1.5.0\_13. Thank you. Java support in Xcode is obsolete and unmaintained; it's the only bit of Xcode that still uses the "old" build system inherited from Project Builder. Even Apple suggests using Eclipse instead. For Java, both Eclipse and NetBeans work quite well on the Mac; if you want to try native Mac...
[ 0.17563708126544952, 0.2202613800764084, 0.16206897795200348, -0.2063157707452774, -0.35233256220817566, -0.21815016865730286, 0.26433584094047546, 0.051581140607595444, -0.2598341107368469, -0.9341042637825012, 0.016073077917099, 0.4930272698402405, -0.49185529351234436, -0.00466776033863...
<mkdir dir="${bin}"/> <javac deprecation="on" srcdir="${src}" destdir="${bin}" source="1.3" target="1.2" ``` Change "source" and "target" to "1.5".
[ -0.08988399058580399, -0.433260440826416, 0.4710206985473633, -0.45166972279548645, -0.2527872323989868, -0.042372629046440125, 0.32186180353164673, -0.5974564552307129, 0.06905210763216019, -0.7297921180725098, -0.275519460439682, 0.45893049240112305, -0.21153166890144348, 0.0981136560440...
In the past, some of my projects have required me to create a movie version of a fullscreen Flash application. The easiest way to do this has been to get a screen capture. However, capturing anything over 1024x768 has resulted in choppy video, which is unacceptable. I understand that there are hardware based solutions ...
[ 0.5236217975616455, -0.20232033729553223, 0.3642289340496063, 0.14457042515277863, -0.27227696776390076, -0.3029805123806, 0.06800398975610733, -0.3912292420864105, -0.3762250542640686, -0.5939055681228638, 0.01665235497057438, 0.631585955619812, -0.10252058506011963, -0.05298036336898804,...
uncompressed digital or analog stream is a pretty heavy requirement. -Adam
[ 0.6183188557624817, 0.05326812341809273, -0.14249087870121002, 0.39713311195373535, 0.4811546504497528, -0.06513209640979767, -0.15369482338428497, 0.2558607757091522, -0.24464264512062073, -0.27423644065856934, -0.38674455881118774, 0.6220960021018982, -0.10033094882965088, 0.278989464044...
Anyone know? Want to be able to on the fly stamp an image with another image as a watermark, also to do large batches. Any type of existing library or a technique you know of would be great. This will answer your question: <http://www.codeproject.com/KB/GDI-plus/watermark.aspx> Good luck!
[ 1.0814155340194702, 0.06650038063526154, 0.24696539342403412, 0.3840576410293579, 0.3264220356941223, -0.507352888584137, 0.3264446556568146, 0.5253006219863892, -0.23243562877178192, -0.4775720238685608, 0.10300210118293762, 0.4076451063156128, 0.1416018307209015, 0.1963961124420166, 0....
Just bought a 2.4GHz Intel Core 2 Duo iMac with 2GB of memory and a 320GB hard drive. I plan on doing some .net development on it using a BootCamp/VMWare combo since VMWare grants access to the bootcamp partition. What is a recommended size for a BootCamp partition and how much memory should I give VMWare? Any pitfall...
[ 0.28326615691185, 0.04272080957889557, 0.2644937038421631, 0.3533393144607544, 0.1913568675518036, -0.005853872746229172, 0.18865905702114105, 0.009698393754661083, -0.25238537788391113, -0.7859465479850769, 0.11577577143907547, 0.7354587316513062, -0.0010264446027576923, 0.131855890154838...
virtualisation. I have a 2gb RAM for my VM and you do notice a bit of chugging, particularly when you are compiling a large solution, or when running lots of apps at once. I strongly recommend VMWare over Parallels as VMWare supports 2 virtual CPU's (I think it's up to 4 virtual CPU's in v2). I'd recommend around a ...
[ 0.05825111269950867, -0.2559641897678375, 0.47829049825668335, 0.1643325835466385, -0.11922764033079147, 0.08615682274103165, 0.01867046020925045, 0.26508283615112305, -0.7157409191131592, -1.0684281587600708, -0.10266780853271484, 0.5770707726478577, -0.2541849911212921, 0.028336323797702...
complete virtual disk is easier to backup/ snapshot/ restore.
[ -0.22403265535831451, -0.17345398664474487, 0.1569141149520874, 0.4157687723636627, 0.09182289987802505, -0.19089576601982117, 0.09320742636919022, 0.39121925830841064, -0.28458350896835327, -0.6836972832679749, -0.7606485486030579, 0.5907659530639648, 0.1266898661851883, 0.294324308633804...
The LinearGradientBrush in .net (or even in GDI+ as a whole?) seems to have a severe bug: Sometimes, it introduces artifacts. (See [here](http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.languages.csharp/2007-01/msg01592.html) or [here](http://www.experts-exchange.com/Microsoft/Development/.NET/Visual...
[ -0.15634581446647644, -0.23149806261062622, 0.44775861501693726, 0.017500434070825577, -0.3337089717388153, -0.020943142473697662, 0.10750767588615417, -0.13025091588497162, 0.26638129353523254, -0.5278993844985962, 0.4828924834728241, 0.36473459005355835, -0.3759070336818695, 0.2461981624...
The only effective workaround I have is to always create the gradient brush rectangle 1 pixel bigger on all edges than the area that is going to be painted with it. That protects you against the issue on all four edges. The downside is that the colors used at the edges are a fraction off those you specify, but this is ...
[ -0.052069444209337234, -0.11056099086999893, 0.4556747078895569, 0.23998387157917023, -0.13539648056030273, 0.09583918005228043, 0.294631689786911, -0.310882031917572, -0.03700349107384682, -0.8195053935050964, 0.6477643251419067, 0.6747773289680481, -0.04142910987138748, -0.14573894441127...
I've never had much need for programming with databases. Since their use is so widespread it seems like a good thing for me to learn. SQL seems like the place to start, possibly [SQLite](http://www.sqlite.org/) and maybe the [Python bindings](http://pysqlite.org/). What would you recommend for someone new to this? Libr...
[ 0.6942052841186523, 0.24129968881607056, 0.08251824229955673, 0.10641507059335709, -0.08852115273475647, -0.27638137340545654, 0.04963941499590874, 0.24230803549289703, -0.2417086511850357, -0.6079636812210083, -0.004593958612531424, 0.5231512188911438, -0.29315587878227234, 0.022987730801...
a need, because I'm the opposite, almost every program I've ever written has used a database of some sort. The vast majority (mostly web-based) revolve around using a database. * Learn about relations and database architecture. This means how to structure your tables, make foreign keys and relations. For example, yo...
[ 0.7193211317062378, 0.4184664189815521, -0.013317834585905075, 0.44002199172973633, 0.39118143916130066, 0.15267671644687653, -0.20788957178592682, -0.05281560868024826, -0.22746118903160095, -0.3124440908432007, -0.005856904201209545, 0.39019936323165894, -0.15758080780506134, 0.230651065...
each Movie entry, you store a relation to it, so each Movie item contains a reference to a Studio item. This is called a one-to-many relationship (one studio has many movies). Likewise, you don't want to store Actor information for each Movie. But one Actor can be in many Movies, so this is stored as a many-to-many rel...
[ 0.5045419931411743, 0.26126542687416077, 0.04914027079939842, 0.49355724453926086, 0.07828818261623383, -0.3225042223930359, -0.3452601134777069, -0.2560642659664154, 0.04393771290779114, -0.2387601137161255, 0.16162626445293427, 0.41710570454597473, 0.04421895742416382, 0.1566071212291717...
don't support sub-queries, there are several different syntaxes for limiting the number of rows returned, etc). It's important to learn the syntax for the one you're using (eg, don't learn Oracle syntax and then try and use it in MySQL) but they are similar enough that the concepts are the same. * Tools depend on the D...
[ 0.38784781098365784, 0.1225564256310463, 0.052845459431409836, 0.28236111998558044, -0.2533896863460541, -0.2854999601840973, 0.367159366607666, 0.2674415409564972, -0.21418210864067078, -0.5496396422386169, 0.08593706786632538, 0.5739522576332092, -0.3767814040184021, 0.004119215067476034...