text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
of the previous month does not mean they will continue to do so, or that browsers not listed will do so, but it lends credibility to the belief that it should work the same way in every browser.
[ 0.26662972569465637, 0.01885915920138359, 0.7121667265892029, -0.23933722078800201, 0.08550947904586792, -0.22383750975131989, 0.47256866097450256, 0.1536848545074463, -0.5478036999702454, -0.3167171776294708, -0.4098474383354187, 0.011171400547027588, 0.04501072317361832, 0.05611814931035...
I've tried Red Gate's SQL Prompt and like it, but cannot afford it at the moment. I miss the good code completion that this tool provides. Are there any good free tools out there that have SQL code completion (table and column names, etc)? I've tried TOAD, but it was quite buggy. It would crash, and would also leave c...
[ 0.14153563976287842, 0.34678933024406433, 0.07301915436983109, -0.08998768031597137, -0.11316560953855515, -0.175967738032341, 0.4472876787185669, 0.02539050579071045, -0.17323105037212372, -0.5409515500068665, 0.2381240576505661, 0.5759131908416748, -0.12818235158920288, 0.117424055933952...
will eventually upgrade, but I believe this may be a while in coming, so I'd like a good tool in the interim. Any good recommendations? Red Gate's [SQL Prompt](http://www.red-gate.com/products/SQL_Prompt/index.htm) is what you want. It's not free, but it **is** worth it.
[ 0.3380619287490845, -0.003593597561120987, 0.49350669980049133, 0.11226344853639603, -0.10480771213769913, -0.2788752317428589, 0.13674315810203552, -0.0227756779640913, 0.09971167147159576, -0.7186871767044067, 0.0948282778263092, 0.5356073975563049, 0.20017540454864502, -0.11495184153318...
I'm preparing a class on Visual Basic 2005 targeting Visual Basic 6 programmers migrating to the .NET platform. I would like a word of advice about whether to recommend them to always enable **Option Strict** or not. I've worked exclusively with C-style programming languages, mostly Java and C#, so for me **expli...
[ 0.3015565574169159, 0.24371542036533356, -0.08908624202013016, -0.1635185331106186, -0.439177542924881, -0.2185697853565216, 0.3715406060218811, 0.012055201455950737, -0.11094166338443756, -0.5224387645721436, 0.14524312317371368, 0.8624998331069946, -0.22386376559734344, -0.10503733903169...
saves time. This is further proved by the popular diffusion of **dynamic typed languages**, even on the .NET platform with the Dynamic Language Runtime. Yes! Option Strict is definitely a best practice with .Net. Emphasize that .Net is at it's core a strongly typed platform, and will be until the DLR is more completely...
[ 0.23137325048446655, -0.1818825751543045, 0.16153649985790253, 0.08935228735208511, -0.14291879534721375, -0.6051325798034668, 0.19363830983638763, 0.39495202898979187, -0.2242186963558197, -0.6890499591827393, -0.2444125860929489, 0.6402742862701416, -0.1609632521867752, -0.21871939301490...
but I've had to work with and maintain a lot of VB.Net code written by former VB6ers, and so this is something of a sore spot for me: * Don't use the old string functions: `LEN()`, `REPLACE()`, `TRIM()`, etc * Hungarian warts are no longer recommended. `oMyObject` and `sMyString` are not kosher. Show them the referenc...
[ 0.6406675577163696, 0.3512219488620758, -0.07833073288202286, -0.15356269478797913, 0.0899573341012001, -0.2077151983976364, 0.6263874769210815, 0.2021690458059311, -0.3293343484401703, -0.7014191746711731, -0.028419528156518936, 0.6087316274642944, -0.20894066989421844, 0.2632292509078979...
it was in VB6. VB.Net still has modules, but they're now more analogous to a static class. It's important to understand how developing in a real object oriented environment be different, as opposed to the partial OOP support provided by VB6. There's no good reason anymore to allow methods to run to ungodly lengths. * M...
[ 0.28031811118125916, -0.16075743734836578, 0.2810223698616028, 0.06133059039711952, -0.3500238358974457, -0.29338473081588745, 0.4678632616996765, -0.10156160593032837, -0.31149154901504517, -0.400054395198822, 0.026784755289554596, 0.5030660033226013, -0.2017100751399994, 0.17844524979591...
Being a application developer, do I need to know Unicode? Unicode is a standard that defines numeric codes for glyphs used in written communication. Or, as they say it themselves: > The standard for digital > representation of the characters used > in writing all of the world's > languages. Unicode provides a unifo...
[ 0.29284289479255676, 0.5007520914077759, 0.46491849422454834, 0.0011017328361049294, -0.12681350111961365, 0.08117344230413437, 0.12736161053180695, -0.04712245985865593, 0.16333574056625366, -0.3653325140476227, -0.31309908628463745, 0.19407711923122406, -0.07129722833633423, -0.097237080...
programming errors committed by developers who don't bother to educate themselves about Unicode and its encodings. * First, go to [the source](http://www.unicode.org/) for authoritative, detailed information and implementation guidelines. * As mentioned by others, Joel Spolsky has [a good list](http://www.joelonsoftwa...
[ 0.1378021389245987, 0.47271519899368286, -0.25303176045417786, 0.14998270571231842, -0.4010615646839142, 0.3137299716472626, 0.2333575189113617, 0.11039938777685165, -0.1478205919265747, -0.6479702591896057, -0.1417703926563263, 0.5903891324996948, -0.06535761058330536, 0.07405002415180206...
The company I work for has several clients. I'm currently splitting my time between 2 .net projects. For Client A I need Visual Studio 2008, SQL Server 2008 and the 3.5 framework. For Client B 2005 versions/2.0 Framework. Others in the company are using Microsoft Virtual PC to keep the development environments separat...
[ 0.6973611116409302, 0.6298166513442993, 0.09435903280973434, -0.3086158335208893, -0.04548422992229462, 0.01908016763627529, 0.04618997499346733, 0.31121909618377686, -0.07442139089107513, -0.5000088810920715, 0.24295416474342346, 0.557793140411377, 0.11084579676389694, 0.31088292598724365...
personally suggest you go the VPC route. I have been keeping my dev environments isolated using VPC for 2+ years now and will never go back. A laptop can now easily have 4+ GB RAM which is more than enough to run a couple VPCs if needed.
[ 0.5316677093505859, 0.27764803171157837, 0.2878408133983612, 0.04840964451432228, -0.21098150312900543, -0.3667583763599396, 0.40507543087005615, 0.15142594277858734, -0.49900543689727783, -0.7055618762969971, 0.08311191201210022, 0.5856721997261047, -0.09989305585622787, 0.337817281484603...
At the moment my code looks like this: ``` # Assign values for saving to the db $data = array( 'table_of_contents' => $_POST['table_of_contents'], 'length' => $_POST['length'] ); # Check for fields that may not be set if ( isset($_POST['lossless_copy']) ) { $data = array( 'lossless_copy' => $_POST['...
[ 0.19575904309749603, 0.13836714625358582, 0.3033917546272278, -0.16969600319862366, 0.10445379465818405, 0.10090456902980804, 0.27795353531837463, -0.33196765184402466, -0.014913000166416168, -0.8247373104095459, 0.013110148720443249, 0.5066568851470947, -0.2980906665325165, 0.146957069635...
'table_of_contents' => '', 'length' => 25, 'lossless_copy' => false, ); $data = array_merge($defaultValues, $_POST); // $data is now the post with all the keys set ``` `array_merge()` will merge the values, having the later values override the previous ones. If you don't want to trust `array_merge()` then yo...
[ -0.0796990618109703, 0.06376558542251587, 0.47800561785697937, -0.25684431195259094, 0.10142117738723755, -0.04171255975961685, 0.16762886941432953, -0.25897130370140076, -0.2867588698863983, -0.6047102808952332, -0.21093261241912842, 0.4570157825946808, -0.32016828656196594, 0.18098868429...
Has anyone here ever used C++'s "placement new"? If so, what for? It looks to me like it would only be useful on memory-mapped hardware. Placement new allows you to construct an object in memory that's already allocated. ----------------------------------------------------------------------------------- You may want t...
[ 0.1521407514810562, -0.026220209896564484, -0.16733306646347046, 0.006891902536153793, 0.06053127348423004, 0.21087025105953217, -0.10034596174955368, -0.24988043308258057, -0.6808302998542786, -0.8349084258079529, 0.21995864808559418, 0.40897005796432495, -0.1099415123462677, 0.1846045404...
at once. DevX gives a [good example](http://www.devx.com/tips/Tip/12582): > Standard C++ also supports placement > new operator, which constructs an > object on a pre-allocated buffer. This > is useful when building a memory pool, > a garbage collector or simply when > performance and exception safety are > paramount...
[ 0.2276659607887268, -0.009588445536792278, 0.4115035831928253, -0.3647100031375885, -0.12150737643241882, -0.023973068222403526, 0.22729578614234924, -0.7511926889419556, -0.23137910664081573, -0.9760867357254028, -0.330717533826828, 0.24438725411891937, -0.3354083001613617, 0.039395093917...
allocation ``` You may also want to be sure there can be no allocation failure at a certain part of critical code (for instance, in code executed by a pacemaker). In that case you would want to allocate memory earlier, then use placement new within the critical section. Deallocation in placement new ----------------...
[ -0.07335928082466125, 0.0472048819065094, -0.10844822973012924, 0.05125866457819939, -0.02457682229578495, 0.287538081407547, -0.11433390527963638, -0.4344331920146942, -0.4331468343734741, -0.887976348400116, -0.24070534110069275, 0.3136509656906128, -0.12860147655010223, 0.15800204873085...
I have a few questions related: 1) Is possible to make my program change filetype association but only when is running? Do you see anything wrong with this behavior? 2) The other option that I'm seeing is to let users decide to open with my application or restore default association ... something like: "capture all ....
[ 0.19730617105960846, -0.08969338983297348, 0.43373438715934753, 0.17299361526966095, -0.060704831033945084, -0.172303706407547, 0.3327266573905945, -0.1976834237575531, -0.428714781999588, -0.46530354022979736, 0.11920319497585297, 0.5274025201797485, -0.27191171050071716, 0.27760756015777...
With direct registry access through c#, there will be no need to use .reg files, so you are free to back up the previous value however you like in your app, and also restore it from there. The key question here is: *Should* you change file associations randomly? At least asking the user up-front would obviously be nec...
[ 0.3261682689189911, -0.17677733302116394, 0.2488180547952652, 0.20477136969566345, 0.18699052929878235, -0.2584621012210846, 0.34288161993026733, 0.02048565447330475, -0.4645071029663086, -0.7351436614990234, -0.4144936800003052, 0.5610490441322327, -0.2878013253211975, 0.18912763893604279...
EDIT As [Franci Penov indicated in his answer](https://stackoverflow.com/questions/222561/filetype-association-with-application-c#222799), there *is* a way to change local file associations on a per-user basis, even for non-admins (that's why I spoke of "global associations" in the previous paragraph). He also mention...
[ -0.03399107977747917, 0.19489142298698425, 0.26366767287254333, 0.1026846244931221, 0.2548908591270447, -0.2114291787147522, 0.12259820103645325, 0.15836133062839508, -0.6299878358840942, -0.4278031289577484, -0.3419519066810608, 0.03999139741063118, -0.34556183218955994, 0.255089342594146...
I'm looking for a simple Python script that can minify CSS as part of a web-site deployment process. (Python is the only scripting language supported on the server and full-blown parsers like [CSS Utils](http://cthedot.de/cssutils/) are overkill for this project). Basically I'd like [jsmin.py](http://www.crockford.com...
[ 0.36636123061180115, 0.2185276597738266, 0.11755160987377167, -0.14463075995445251, -0.19084766507148743, -0.01768799126148224, 0.04009995609521866, 0.2068415731191635, -0.33060774207115173, -0.5674575567245483, -0.05342712625861168, 0.5095007419586182, -0.44459062814712524, -0.10270348936...
of hacks :-P css = re.sub( r'\s*/\*\s*\*/', "$$HACK1$$", css ) # preserve IE<6 comment hack css = re.sub( r'/\*[\s\S]*?\*/', "", css ) css = css.replace( "$$HACK1$$", '/**/' ) # preserve IE<6 comment hack # url() doesn't need quotes css = re.sub( r'url\((["\'])([^)]*)\1\)', r'url(\2)', css ) # spaces may be safely co...
[ -0.05449613183736801, -0.042067427188158035, 0.5297631621360779, 0.19347141683101654, 0.23500703275203705, -0.006387053523212671, 0.6045024394989014, -0.41135916113853455, -0.34649762511253357, -0.48956751823425293, -0.5643905997276306, 0.5002362132072449, -0.3771982192993164, -0.007493321...
selectors = [re.sub( r'(?<=[\[\(>+=])\s+|\s+(?=[=~^$*|>+\]\)])', r'', selector.strip() ) for selector in rule[0].split( ',' )] # order is important, but we still want to discard repetitions properties = {} porder = [] for prop in re.findall( '(.*?):(.*?)(;|$)', rule[1] ): key = prop[0].strip()....
[ -0.015931610018014908, -0.33467501401901245, 0.34377938508987427, -0.13592292368412018, -0.05768166109919548, 0.04688246175646782, 0.2763681709766388, -0.8653374910354614, -0.49918851256370544, -0.46640488505363464, -0.4655381441116333, 0.4618244469165802, -0.3504701256752014, 0.1900598853...
if properties: print "%s{%s}" % ( ','.join( selectors ), ''.join(['%s:%s;' % (key, properties[key]) for key in porder])[:-1] ) ``` I believe this to work, and output it tests fine on recent Safari, Opera, and Firefox. It will break CSS hacks other than the underscore & /\*\*/ hacks! Do not use a minifier if ...
[ 0.054024334996938705, -0.36891376972198486, 0.3304837644100189, 0.009820661507546902, 0.14447085559368134, -0.14213338494300842, 0.5536975860595703, -0.12101950496435165, -0.12417761236429214, -0.5991191864013672, -0.06872092187404633, 0.6653741002082825, -0.368631511926651, -0.06994515657...
I'm using flex builder to compile my SWF. Im using mp3's on my local machine and computeSpectrum() to analyze the mp3. After playing for 20secs, my computeSpectrum stops returning values, instead, it starts returning this error: ``` SecurityError: Error #2121: Security sandbox violation: SoundMixer.computeSpectrum: ...
[ 0.11546376347541809, 0.36121582984924316, 0.25617825984954834, -0.22256718575954437, -0.012678373605012894, -0.27022653818130493, 0.4926820993423462, -0.44610491394996643, -0.20476368069648743, -0.8348654508590698, -0.14350168406963348, 1.1169202327728271, -0.25849100947380066, 0.133500963...
a webserver. To be able to test locally add access to your swf (or the entire project folder) using the security tab on <http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html>
[ 0.22339755296707153, -0.0719161182641983, 0.4468972086906433, 0.1166505292057991, 0.12629765272140503, -0.5938761234283447, 0.03647022321820259, -0.15422728657722473, -0.18145041167736053, -0.5011531710624695, -0.10171050578355789, 0.4958173930644989, -0.03840027004480362, -0.2146198749542...
If you create a class library that uses things from other assemblies, is it possible to embed those other assemblies inside the class library as some kind of resource? I.e. instead of having *MyAssembly.dll*, *SomeAssembly1.dll* and *SomeAssembly2.dll* sitting on the file system, those other two files get bundled in t...
[ 0.4869183599948883, -0.07030235975980759, -0.1304236501455307, 0.24978655576705933, -0.23727330565452576, -0.38673925399780273, 0.10031198710203171, 0.04714474454522133, -0.36691293120384216, -0.6959701776504517, -0.14105843007564545, 0.0055599818006157875, -0.21574926376342773, 0.49253723...
for merging assemblies. > I'm also a little confused about why .NET assemblies are .dll files. Didn't this format exist before .NET? Yes. > Are all .NET assemblies DLLs, Either DLLs or EXE normally - but can also be netmodule. > but not all DLLs are .NET assemblies? Correct. > Why do they use the same file forma...
[ 0.5181789994239807, -0.08696448802947998, 0.1920202076435089, 0.1404217928647995, -0.33530619740486145, -0.4912479519844055, 0.14336657524108887, 0.07790248095989227, -0.4500410854816437, -0.8408527374267578, -0.01708105579018593, 0.006555608008056879, -0.438346803188324, 0.439695775508880...
What libraries are available for writing xml-rpc clients in native C++ or C? You might want to check out either [xmlrpc-c](http://xmlrpc-c.sourceforge.net/) or [xmlrpc++](http://xmlrpcpp.sourceforge.net/).
[ 0.41044920682907104, -0.09164544939994812, 0.1971723735332489, 0.3321482539176941, -0.09749315679073334, -0.04776221141219139, -0.37080517411231995, 0.02385302074253559, -0.5127131938934326, -0.3109549582004547, -0.031851865351200104, 0.442932665348053, -0.1409362554550171, -0.158722728490...
In a WinForms UserControl, I would pass data to the main GUI thread by calling this.BeginInvoke() from any of the control's methods. What's the equivalent in a Silverlight UserControl? In other words, how can I take data provided by an arbitrary worker thread and ensure that it gets processed on the main displatch thr...
[ 0.18405930697917938, -0.33923816680908203, 0.48584651947021484, -0.08411544561386108, 0.1777379810810089, -0.1539146900177002, 0.1331479847431183, -0.32281580567359924, 0.30587807297706604, -0.7987189888954163, -0.13399341702461243, 0.8292014598846436, -0.514002799987793, 0.066783972084522...
I have an HTML input box ``` <input type="text" id="foo" value="bar"> ``` I've attached a handler for the '*keyup*' event, but if I retrieve the current value of the input box during the event handler, I get the value as it was, and not as it will be! I've tried picking up '*keypress*' and '*change*' events, same p...
[ 0.21353140473365784, 0.0034224328119307756, 0.5369713306427002, -0.0959869995713234, -0.12397904694080353, -0.10748675465583801, 0.5354065895080566, -0.15738919377326965, -0.14920862019062042, -0.7216721177101135, 0.01412560511380434, 0.43388646841049194, -0.33287373185157776, -0.176152601...
a caching problem with my js file as I checked the same code later on and it worked just fine. I would delete the question, but not sure if that loses rep for the kind folk who posted ideas :) Can you post your code? I'm not finding any issue with this. Tested on Firefox 3.01/safari 3.1.2 with: ``` function showMe(e) ...
[ 0.2437267005443573, 0.005230443552136421, 0.3742179274559021, -0.32297614216804504, -0.07827620208263397, -0.30878496170043945, 0.5480266213417053, -0.10321754217147827, -0.038222379982471466, -0.5209339261054993, -0.2075393944978714, 0.5881625413894653, -0.6244359016418457, -0.18860463798...
I am using Visual Studio 2008 SP1 (version 9.0.30729.1). My problem is that the only reporting-related toolbox items I see are 3 "Textbox" controls. Where are the other stuff? Do I need to add a reference to a different assembly? Here are the steps I take: 1) Open Visual Studio 2) Add new project --> "Reports ...
[ 0.34393510222435, 0.3703000545501709, 0.23987145721912384, -0.010631712153553963, -0.47094860672950745, -0.337297648191452, 0.5195919275283813, -0.05575540289282799, -0.1256175935268402, -0.47801899909973145, 0.012299958616495132, 0.8008108735084534, -0.38898083567619324, -0.12553824484348...
would try before attempting a repair (this happened recently): I fixed this by going into my profile as follows: C:\Documents and Settings\MYUSERNAME\Local Settings\Application Data\Microsoft\VisualStudio\8.0\ProjectAssemblies There are four HIDDEN files in there that make up what is apparently the toolbox cache. If...
[ 0.2497090846300125, -0.026146750897169113, 0.5368819832801819, -0.006886879913508892, -0.023451708257198334, 0.27970561385154724, 0.5231022238731384, -0.12648236751556396, -0.2935361862182617, -0.782465398311615, 0.1398501992225647, 0.6792035698890686, -0.05581039562821388, 0.2214593142271...
"True"
[ 0.4055899977684021, 0.14302745461463928, 0.15857619047164917, 0.12968622148036957, 0.06160074472427368, -0.07876864075660706, 0.3053262531757355, 0.2947787940502167, -0.00259272288531065, -0.024500859901309013, -0.1478809267282486, 0.17731550335884094, -0.025220012292265892, 0.312176138162...
I have the following tuple, which contains tuples: ``` MY_TUPLE = ( ('A','Apple'), ('C','Carrot'), ('B','Banana'), ) ``` I'd like to sort this tuple based upon the **second** value contained in inner-tuples (i.e., sort Apple, Carrot, Banana rather than A, B, C). Any thoughts? ``` from operator import it...
[ -0.26831457018852234, 0.18515634536743164, 0.36408957839012146, -0.1140407845377922, -0.1692354679107666, 0.6642817258834839, -0.026010407134890556, 0.1712123602628708, -0.36235031485557556, -0.7566198706626892, -0.4281727969646454, 0.2630283236503601, -0.185347318649292, 0.097346909344196...
Background: I'm working on a silverlight (1.0) application that dynamically builds a map of the United States with icons and text overlayed at specific locations. The map works great in the browser and now I need to get a static (printable and insertable into documents/powerpoints) copy of a displayed map. Objective: ...
[ 0.44083744287490845, -0.23145970702171326, 0.30068087577819824, 0.31468525528907776, 0.04285797104239464, 0.12779848277568817, -0.002505440032109618, 0.3666418194770813, -0.47279590368270874, -0.5683166980743408, -0.1029977798461914, 0.043986860662698746, -0.44028252363204956, -0.181231945...
file, generated at 300dpi for better print quality. Problem: This works great with one problem, I can't get the image to scale to a specified size. I've tried several different things, some of which can be seen in the commented out lines. I need to be able to specify a height and width of the image, either in inches ...
[ 0.3523786664009094, -0.16779756546020508, 0.6618830561637878, 0.1965024471282959, -0.05791608616709709, 0.18724383413791656, -0.1178944855928421, -0.11678744107484818, -0.44522222876548767, -0.6839442849159241, -0.0749548077583313, 0.4356023967266083, -0.08558822423219681, 0.03833729773759...
corner of the generated image at the size specified. Below is the important part of my httphandler. The root canvas stored as "MyImage" has a Height of 600 and a Width of 800. What am I missing to get the content to scale to fit the size specified? I don't fully understand what the dimensions being passed into Arrange...
[ 0.21467967331409454, -0.18110190331935883, 0.7664936184883118, 0.10349100083112717, -0.27098649740219116, 0.141464501619339, -0.0563134029507637, -0.06033661589026451, -0.22147656977176666, -0.8793121576309204, -0.027499133720993996, 0.3893098533153534, -0.016141420230269432, 0.22349925339...
aspect ratio and the bounds of the image size Dim scale As Double = Math.Min(Width / MyImage.Width, Height / MyImage.Height) 'Dim vbox As New Viewbox() 'vbox.Stretch = Stretch.Uniform 'vbox.StretchDirection = StretchDirection.Both 'vbox.Height = Height * scale * 300 / 96.0 'vbox.Width = Width *...
[ 0.2502477765083313, -0.5984657406806946, 0.9233262538909912, 0.028648952022194862, -0.07532373070716858, 0.8192507028579712, 0.02646784670650959, -0.3044525980949402, -0.020886488258838654, -0.7875731587409973, -0.12142457067966461, 0.9076107740402222, 0.17305150628089905, 0.17892637848854...
MyImage.Arrange(bounds) 'MyImage.UpdateLayout() ' Create the target bitmap Dim rtb As RenderTargetBitmap = New RenderTargetBitmap(CInt(Width * scale * 300 / 96.0), CInt(Height * scale * 300 / 96.0), 300, 300, PixelFormats.Pbgra32) ' Render the image to the target bitmap Dim dv As DrawingVisual = N...
[ 0.05822738632559776, -0.5852370262145996, 1.0900651216506958, -0.23474903404712677, -0.5415375232696533, 0.3578244745731354, 0.12494084984064102, -0.6327331066131592, -0.07053381204605103, -0.6619563102722168, -0.3046279549598694, 0.7013752460479736, -0.29874739050865173, 0.104020871222019...
ctx.DrawRectangle(vb, Nothing, New Rect(New System.Windows.Point(), bounds.Size)) End Using rtb.Render(dv) ' Encode the image in the format selected Dim encoder As System.Windows.Media.Imaging.BitmapEncoder Select Case Encoding.ToLower Case "jpg" encoder = New System.Windows.Med...
[ 0.10449790209531784, -0.3636293113231659, 0.9356953501701355, -0.023479724302887917, -0.3569500148296356, 0.16723696887493134, -0.18558411300182343, -0.4400157034397125, -0.07867596298456192, -0.7216577529907227, -0.4426308274269104, 0.5361598134040833, -0.37310007214546204, 0.068261116743...
encoder = New System.Windows.Media.Imaging.GifBitmapEncoder() Case "bmp" encoder = New System.Windows.Media.Imaging.BmpBitmapEncoder() Case "tif" encoder = New System.Windows.Media.Imaging.TiffBitmapEncoder() Case "wmp" encoder = New System.Windows.Media.Imagi...
[ 0.3379236161708832, -0.11668112128973007, 0.7055720686912537, -0.07968638092279434, -0.16117258369922638, 0.11979792267084122, 0.14049391448497772, -0.7878228425979614, -0.464123010635376, -0.7952824831008911, -0.15347802639007568, 0.33190518617630005, -0.737502932548523, 0.084488093852996...
the memory stream to save the encoded image. retImageStream = New System.IO.MemoryStream() encoder.Save(retImageStream) retImageStream.Flush() retImageStream.Seek(0, System.IO.SeekOrigin.Begin) MyImage = Nothing End Sub ``` This should be enough to get you started: ``` private void ExportCanvas(i...
[ 0.2592899799346924, -0.1908469945192337, 0.7928376793861389, -0.1668669581413269, 0.18290337920188904, 0.34427568316459656, 0.35566598176956177, -0.3165651857852936, -0.10787756741046906, -0.7198257446289062, -0.1807834804058075, 0.7547523975372314, -0.2565585970878601, -0.13229900598526, ...
height, 1/300, 1/300, PixelFormats.Pbgra32); DrawingVisual visual = new DrawingVisual(); using (DrawingContext context = visual.RenderOpen()) { VisualBrush brush = new VisualBrush(MyCanvas); context.DrawRectangle(brush,
[ 0.016123343259096146, -0.5609621405601501, 1.0684813261032104, -0.16882090270519257, -0.05056222155690193, 0.506094217300415, 0.1145743802189827, -0.6247612237930298, -0.15392902493476868, -0.8482333421707153, -0.01338152401149273, 0.7078642845153809, -0.12687493860721588, 0.04802013933658...
null, new Rect(new Point(), new Size(MyCanvas.Width, MyCanvas.Height))); } visual.Transform = new ScaleTransform(width / MyCanvas.ActualWidth, height / MyCanvas.ActualHeight); renderBitmap.Render(visual); BitmapEncoder encoder = new TiffBitmapEncoder(); encoder.Frame...
[ 0.22373703122138977, -0.25768670439720154, 0.9057657122612, -0.18193987011909485, -0.020628919824957848, 0.4811444878578186, 0.30085113644599915, -0.3994559347629547, -0.1817636489868164, -0.7912115454673767, -0.49593737721443176, 0.5790817141532898, -0.23274670541286469, 0.098802708089351...
What's the better way to insert cell comments in excel 2007 files programmatically using c# and .net 3.5? I just did exactly that but with MS Word (using Microsoft.Office.Interop.Word range.Comments.Add ( range, ref \_categoryMessage ); So, I would suggest using Microsoft.Office.Interop.Excel and the similar method. ...
[ -0.07468213140964508, 0.19119618833065033, 0.236619234085083, -0.0425906628370285, 0.08106991648674011, -0.007560608442872763, -0.016219832003116608, -0.10469534248113632, 0.01129856240004301, -0.5500193238258362, -0.030564606189727783, 0.5403145551681519, -0.34450653195381165, -0.34486347...
I am working on a site laid out with `div`s. I am having trouble with one in particular: the training photo `div`. If you go to <http://php.wmsgroup.com/eofd6.org/education.html> you'll see a photo underneath the left nav that has dropped down. I want it to snap right under that nav box. I have tried several different...
[ 0.4704993963241577, -0.06378442049026489, 0.2546229958534241, -0.009631678462028503, -0.2831527292728424, -0.25342604517936707, -0.14878371357917786, 0.11426717042922974, -0.18534038960933685, -0.8085525631904602, 0.17598116397857666, 0.2957797348499298, 0.17157471179962158, -0.03113378584...
So I'm in the process of getting GIT sold at work. First thing I need is to convince everyone that GIT is better at what they're already used to doing. We currently use Perforce. Anybody else go through a similar sale? Any good links/advice? One of the big wins is that we can work with it disconnected from the network...
[ 0.7019960284233093, 0.15660861134529114, 0.22535991668701172, 0.04604899138212204, -0.3010098934173584, -0.008013403974473476, 0.2796120047569275, 0.1676761358976364, -0.21703609824180603, -0.6568549871444702, -0.23659561574459076, 0.775693416595459, -0.18193161487579346, 0.020934510976076...
is of interest. In any case, one of the major wins you’re going to have over every centralised VCS and most distributed ones also is raw, blistering ***speed***. You can’t imagine how liberating it is to have the entire project history at hand, mere fractions of fractions of a second away, until you have experienced i...
[ 0.25466516613960266, -0.09284348040819168, 0.28262048959732056, 0.3795810639858246, -0.139548659324646, -0.13403919339179993, -0.2470812350511551, 0.040940143167972565, -0.6429410576820374, -0.5521203875541687, -0.05058121681213379, 0.3176904618740082, 0.3434140384197235, 0.494509190320968...
no chance of competing, not even over a Gigabit Ethernet link. Also, git makes it very easy to be carefully selective when making commits, thereby allowing changes in your working copy (or even within a single file) to be spread out over multiple commits – and across different branches if you need that. This allows yo...
[ 0.5651764273643494, -0.04089386388659477, 0.12192758172750473, 0.17347313463687897, 0.10827070474624634, -0.2666672170162201, -0.06785690784454346, -0.03401152044534683, -0.4264867901802063, -0.9782285690307617, 0.024010399356484413, 0.48999762535095215, -0.12238060683012009, 0.06768129020...
to you, and still untangle them – nearly always quite easily – when it’s time to commit. [The stash](http://git-scm.com/docs/git-stash) can be a very big help here. I have found that together, these facts cause me to naturally make many more and much more focused commits than before I used git. This in turn not only m...
[ 0.7280682325363159, -0.017676718533039093, -0.24886783957481384, 0.30280283093452454, -0.035584673285484314, -0.23785686492919922, 0.07581730931997299, -0.2270258218050003, -0.47498664259910583, -0.5566841959953308, 0.16028912365436554, 0.7039722800254822, 0.18767964839935303, 0.0109345186...
play off each other, as I hinted at above, such that it is hard to simply look at a list of features and benefits of git and infer how they are going to change your workflow, and which changes are going to be bonafide improvements. You need to take this into account, and you also need to explicitly point it out.
[ 0.9115922451019287, 0.039409805089235306, 0.18099872767925262, 0.28354132175445557, -0.04975060001015663, -0.0013608182780444622, -0.14054594933986664, -0.06562386453151703, 0.015673721209168434, -0.8233751654624939, 0.21273939311504364, 0.772152841091156, 0.023792879655957222, -0.13043399...
What is the simplest way to get: `http://www.[Domain].com` in asp.net? There doesn't seem to be one method which can do this, the only way I know is to do some string acrobatics on server variables or Request.Url. Anyone? You can do it like this: ``` string.Format("{0}://{1}:{2}", Request.Url.Scheme, Request.Url.Host...
[ -0.12073235958814621, -0.11708191782236099, 0.5448655486106873, 0.30527016520500183, -0.06766308099031448, -0.24960537254810333, 0.17246069014072418, -0.1431899219751358, -0.38412997126579285, -0.6594662070274353, -0.17673498392105103, 0.1550295650959015, -0.39219027757644653, 0.0354683995...
I have a simple interface: ``` public interface IVisitorsLogController { List<VisitorsLog> GetVisitorsLog(); int GetUniqueSubscribersCount(); int GetVisitorsCount(); string GetVisitorsSummary(); } ``` the class VisitorsLogController implements this interface. From a console application or a TestFi...
[ -0.11430694907903671, -0.12814557552337646, 1.0293985605239868, 0.019721783697605133, 0.10217295587062836, -0.08197734504938126, 0.28232258558273315, -0.35538536310195923, -0.1706838607788086, -0.9194386601448059, -0.2833290696144104, 0.7005560994148254, -0.42950859665870667, 0.23376989364...
not contain a definition for > 'GetUniqueSubscribersCount' and no > extension method > 'GetUniqueSubscribersCount' accepting > a first argument of type > 'WebSiteBusinessRules.Interfaces.IVisitorsLogController' > could be found (are you missing a > using directive or an assembly > reference?) yet for this code...
[ 0.22243252396583557, -0.12333189696073532, 0.6836199164390564, 0.11574173718690872, 0.03058405965566635, -0.27594873309135437, 0.4420386552810669, -0.013375816866755486, -0.43803709745407104, -0.9339698553085327, -0.16894520819187164, 0.33536866307258606, -0.2794972062110901, 0.22376483678...
nuts! Any thoughts please? Thanks, Jeremy It would seem the other important bit of code would be VisitorsLogController, wouldn't it? It looks like VisitorsLogController is implementing a *different* IVistorsLogController interface. Right clicking and GoTo Definition should clear things up, I think.
[ 0.2927623689174652, 0.2736574709415436, 0.3108024299144745, 0.4198428690433502, 0.058899279683828354, -0.2675642669200897, 0.22196994721889496, 0.6522793173789978, -0.6221296191215515, -0.337433785200119, -0.009344506077468395, 0.5973986387252808, -0.20259606838226318, 0.36649972200393677,...
I currently use the following command, but it's a little unwieldy to type. What's a shorter alternative? ``` find . -name '*.txt' -exec grep 'sometext' '{}' \; -print ``` Here are my requirements: * limit to a file extension (I use SVN and don't want to be searching through all those .svn directories) * can default...
[ 0.055455658584833145, 0.08604716509580612, 0.6271876692771912, -0.2689516246318817, -0.06771131604909897, -0.04412379860877991, 0.09061358869075775, 0.24715346097946167, -0.26730355620384216, -0.6446824073791504, -0.2993510663509369, 0.5118012428283691, 0.033661674708127975, 0.158298119902...
the suggestions of several responders and simply made a shell script and now I call that with two parameters (extension and text to find). grep has -r (recursive) and --include (to search only in files and directories matching a pattern).
[ -0.15072201192378998, -0.023067593574523926, 0.1741267293691635, 0.04578123241662979, -0.13081006705760956, 0.03901705890893936, 0.11489800363779068, -0.1463857740163803, -0.1884574592113495, -0.36843693256378174, -0.30933651328086853, 0.47820937633514404, -0.29954612255096436, -0.22891744...
I have a WPF window for editing database information, which is represented using an Entity Framework object. When the user closes the window, I'd like to notice in the Closing event whether the information has changed and show a message box offering to save the changes to the database. Unfortunately, changes to the cu...
[ 0.4100019633769989, 0.02141498401761055, 0.6287834644317627, -0.1015360951423645, -0.017128419131040573, -0.11277393251657486, -0.0096297487616539, -0.27025264501571655, -0.3006337583065033, -0.5749087929725647, 0.08247730880975723, 0.5702939033508301, -0.14023050665855408, 0.1802813559770...
my entity has been modified. I've also looked for information on programmatically clearing the focus in the control with focus, but can't figure out how to do it. My question is, how is this typically handled? This should get you pretty close: ``` private void Window_Closing(object sender, System.ComponentModel.Canc...
[ 0.06057405844330788, -0.3602181673049927, 0.890952467918396, -0.2487170249223709, 0.09556370228528976, 0.16243582963943481, 0.3532343804836273, -0.09197831153869629, -0.13530530035495758, -0.5702810883522034, -0.3171025514602661, 0.6902468204498291, -0.3926640748977661, 0.17610685527324677...
{ be.UpdateSource(); } } } ```
[ 0.33026179671287537, 0.012559277005493641, 0.3162223994731903, -0.2661813199520111, 0.41860440373420715, -0.20118507742881775, 0.09080427885055542, 0.2700945734977722, 0.1114283949136734, -0.6957390308380127, -0.6396840214729309, 0.9455673098564148, -0.6843782663345337, 0.2982400059700012,...
I want to expose few web services but thinking of hosting those as Windows Service as against hosting in IIS. Is it a good practice? If yes? How do I make it secured? I want to authenticate the users who are accessing it (against our custom security database and also want to make sure that the request is originati...
[ 0.5917637348175049, 0.1669088453054428, 0.10062088072299957, 0.38711419701576233, 0.03221715986728668, -0.41472920775413513, 0.4526708424091339, -0.033025503158569336, -0.07230854034423828, -0.42472395300865173, -0.14648036658763885, 0.400759220123291, 0.07531145215034485, 0.51882195472717...
to host WCF. You can secure them with the same options as in IIS.
[ 0.35291874408721924, -0.06826500594615936, 0.5616440773010254, 0.15693415701389313, -0.06861709803342819, -0.6266641020774841, 0.3162953853607178, -0.20244991779327393, -0.3848896920681, -0.8254891037940979, -0.11744000017642975, 0.45903611183166504, -0.19626381993293762, 0.327078461647033...
I learned C++ when it was C with classes. I find myself increasingly disliking new technologies like XML and Garbage collection. On the other hand, I have discovered scripting languages like Lua and Python. And I find myself rather liking a hybrid environment of C++, with deterministic memory control, with an embedded ...
[ -0.00023881651577539742, 0.3607441186904907, -0.14418284595012665, 0.16915418207645416, -0.049676187336444855, -0.22120165824890137, 0.18136560916900635, 0.2076379507780075, -0.3221459686756134, -0.45515456795692444, -0.08756988495588303, 0.71288001537323, -0.2936560809612274, -0.150591865...
Programs](http://mitpress.mit.edu/sicp/full-text/book/book.html) a long with the [attendant lectures](http://groups.csail.mit.edu/mac/classes/6.001/abelson-sussman-lectures/) provide a great introduction to functional programming (using Scheme) from whence many of these terms come.
[ 0.1558796465396881, 0.0708177238702774, -0.12168972939252853, 0.060436662286520004, -0.08456748723983765, -0.19631606340408325, 0.00207165302708745, -0.18261078000068665, -0.3194633424282074, -0.1914600431919098, -0.40353789925575256, 0.5131468772888184, -0.03828025609254837, -0.2278433889...
My code is in c# asp.net 3.5 In the following code the "Msg" has many words with spaces and characters (eg:Failed to prepare Sync Favorites : Directory does not exist: \STL-FNP-02\ryounes$\Sync\Favorites). This "Msg" is pulled from database to a gridview. I am not able to create hyperlink for this "Msg" in gridview. S...
[ -0.007218278478831053, 0.3783916234970093, 0.5248352289199829, -0.0485786497592926, 0.040658172219991684, 0.061765655875205994, 0.37736237049102783, 0.07397662848234177, -0.06694796681404114, -1.0099310874938965, -0.17759166657924652, 0.39649099111557007, -0.29738613963127136, 0.1130337342...
<asp:HyperLinkField DataTextField="Msg" HeaderText="Msg" DataNavigateUrlFields="Msg" DataNavigateUrlFormatString="Sync.aspx?Msg={0}" /> ``` The easiest way to get around it is to use something like ``` <asp:TemplateField HeaderText="Msg"> <asp:HyperLink runat="server" Text='<%# HttpUtility.UrlEncode(Eval("...
[ -0.32253316044807434, 0.012319457717239857, 0.9184162616729736, -0.008871330879628658, -0.07714230567216873, -0.14210295677185059, 0.5750722885131836, -0.005430934485048056, -0.26686111092567444, -0.8267819285392761, -0.47111234068870544, 0.31977421045303345, -0.4129209518432617, -0.105063...
Can anyone give me a complete list of string manipulation function in Microsoft SQL Server (2000 or 2005)? (I don't need a lecture about doing all my string processing in the presentation layer. And, I don't need a list of MySQL string functions.) Thanks! [String Functions (Transact-SQL)](http://msdn.microsoft.com/en...
[ -0.00829904992133379, 0.007246117107570171, 0.18794545531272888, 0.27668496966362, -0.42540380358695984, -0.20106284320354462, 0.3481309115886688, 0.26066702604293823, -0.5184542536735535, -0.2862490713596344, 0.21108651161193848, 0.54225754737854, -0.0042975484393537045, 0.196814134716987...
I'm using the 'using' declaration in C++ to add std::string and std::vector to the local namespace (to save typing unnecessary 'std::'s). ``` using std::string; using std::vector; class Foo { /*...*/ }; ``` What is the scope on this declaration? If I do this in a header, will it inject these 'using' declarations in...
[ 0.58188796043396, 0.1353682279586792, 0.31294068694114685, -0.20921698212623596, 0.010471641086041927, -0.11878417432308197, -0.12875929474830627, -0.19207830727100372, -0.28276869654655457, -0.44853588938713074, -0.142961785197258, 0.6188646554946899, -0.4442814886569977, 0.01625561155378...
at the top of each file that includes that header file.
[ 0.03813100606203079, 0.18762366473674774, 0.3530890643596649, 0.15913638472557068, 0.13429538905620575, -0.17867091298103333, -0.2536276578903198, 0.2762577533721924, -0.25020965933799744, -0.4411966800689697, -0.3675980567932129, 0.08365055173635483, -0.04583470895886421, 0.03511226549744...
I'd like to sprinkle some print statements in my code to show where I am and print important values to a console window. How do I do that, but then be able to turn it off for the release version? All calls to [`System.Diagnostics.Debug.Print()`](http://msdn.microsoft.com/en-us/library/system.diagnostics.debug.print.as...
[ 0.5530734062194824, 0.09906598925590515, 0.46377918124198914, -0.08969590812921524, 0.25533774495124817, -0.37656012177467346, 0.5533080697059631, 0.20694145560264587, -0.1454426795244217, -0.5847957730293274, -0.370925635099411, 0.45086869597435, -0.23280924558639526, 0.18097391724586487,...
Having difficulty articulating this correlated subquery. I have two tables fictitious tables, foo and bar. foo has two fields of foo\_id and total\_count. bar has two fields, seconds and id. I need to aggregate the seconds in bar for each individual id and update the total\_count in foo. id is a foreign key in bar for...
[ 0.14317409694194794, 0.0036976714618504047, 0.3416917324066162, -0.03781978040933609, -0.17675988376140594, 0.32159578800201416, -0.04119443520903587, -0.38206392526626587, 0.04871420934796333, -0.31006547808647156, 0.3041723966598511, 0.44463640451431274, -0.24100138247013092, 0.080474406...
should have access to the appropriate foo id within the sub-query, so there is no need to join in the table.
[ 0.26312366127967834, 0.3597569465637207, 0.254575252532959, -0.23528340458869934, 0.1540466547012329, -0.2173466682434082, 0.03434451296925545, -0.031678229570388794, -0.0980575680732727, -0.2111005038022995, -0.3848264813423157, 0.3997918963432312, -0.26731076836586, -0.260132372379303, ...
I'm new to Rails development, and I'm trying to figure out how to use an older version of Rails with Apatana's RadRails IDE. I'm trying to help out a friend who has a site built on older version than the one that automatically gets downloaded by RadRails, and I'm pretty sure the two versions wouldn't be compatible (the...
[ 0.465379923582077, 0.04175542667508125, -0.0786842629313469, 0.06258056312799454, -0.24365198612213135, -0.08608195930719376, 0.19161008298397064, 0.059197112917900085, -0.06927666813135147, -0.549619197845459, 0.3760036826133728, 0.5498653054237366, -0.20558872818946838, 0.029352786019444...
the installed version of Rails? I'm only vaguely familiar with the "gem" package system, but I'm assuming it would involve that. Any help would be much appreciated! Use the Rake task `rails:freeze:gems` in your rails project and give it the version you want to use. For example: ``` rake rails:freeze:gems VERSION=2.1....
[ 0.3261188268661499, -0.330287903547287, -0.11340434849262238, 0.14297471940517426, 0.032841816544532776, -0.16914957761764526, 0.2038002610206604, 0.13146935403347015, -0.01955188624560833, -0.501626193523407, -0.2700681984424591, 0.5811575055122375, -0.24704496562480927, -0.10504812747240...
At a previous employer, we were writing binary messages that had to go "over the wire" to other computers. Each message had a standard header something like: ``` class Header { int type; int payloadLength; }; ``` All of the data was contiguous (header, immediately followed by data). We wanted to get to the p...
[ 0.17641809582710266, -0.09006243944168091, 0.06832638382911682, 0.14479614794254303, -0.023824168369174004, -0.10134265571832657, 0.03818660229444504, -0.16437320411205292, -0.47780323028564453, -0.18393300473690033, -0.26399797201156616, 0.18799597024917603, -0.3647370934486389, 0.1058676...
return (char*) &this[1]; } ``` It seems rather disturbing at first, possibly too odd to use -- but very compact. There was a lot of debate on whether it was brilliant or an abomination. So which is it - Crime against coding, or nice solution? Have you ever had a similar trade-off? -Update: We did try the zero siz...
[ 0.2559557259082794, -0.09178682416677475, -0.01227959617972374, -0.1356275975704193, -0.2240397334098816, 0.104494608938694, 0.07295555621385574, -0.055210862308740616, -0.0587129220366478, -0.3498724400997162, 0.043199293315410614, 0.7171255350112915, -0.5508102774620056, -0.1922833919525...
generate the exact same object code. The first makes it's intention clear. The second is very confusing, with the only advantage that it saves a couple keystrokes. (Just learn to freakin' type). Also, note that NEITHER method is guaranteed to work. The sizeof() an object includes padding for word alignment, so that if...
[ 0.3853311240673065, -0.23072104156017303, 0.15469121932983398, 0.1557639092206955, -0.11598004400730133, -0.30159950256347656, 0.38229602575302124, -0.22376930713653564, -0.055508147925138474, -0.4625054597854614, -0.13148632645606995, 0.5579689741134644, -0.28418177366256714, 0.0239790398...
What is the preferred way using the CF 3.5 to get get data from a web service? I am getting back a series of tables from the web service. As John points out, its really no different than a desktop call. You can typically add a references to the service from the IDE and let Studio generate the call wrapper, or you can m...
[ 0.5550416707992554, 0.39537256956100464, 0.35788238048553467, -0.01662602648139, 0.03806876391172409, -0.16761429607868195, -0.070407435297966, -0.25699982047080994, -0.29990333318710327, -0.3727625012397766, 0.3638644516468048, 0.7225275635719299, -0.2432401031255722, -0.19152392446994781...
scenario. Regardless of your call mechanism, one thing to note is that CF web service calls are painfully slow to generate the proxy. The proxy is cached, but can still take several seconds on the first call to return. A good practice is to have the web service expose a simple dummy method (or a real on if applicable)...
[ 0.2575860917568207, 0.029542872682213783, 0.3752504289150238, 0.15384025871753693, 0.16918644309043884, -0.23987232148647308, 0.3608899414539337, -0.0070134541019797325, -0.31071937084198, -0.6327120661735535, 0.1010247990489006, 0.4666663706302643, -0.2476540058851242, 0.0880403220653534,...
is spent only servicing the call, not generating the proxy.
[ 0.010353959165513515, 0.10638989508152008, 0.23561038076877594, 0.12913744151592255, 0.17953330278396606, 0.15458780527114868, 0.051785875111818314, -0.19839586317539215, 0.37876904010772705, -0.18735337257385254, -0.29474112391471863, 0.3685321509838104, 0.335548996925354, -0.201651155948...
Even a simple [Notepad](http://en.wikipedia.org/wiki/Notepad_%28software%29) application in C# consumes megabytes of RAM as seen in the task manager. On minimizing the application the memory size in the task manager goes down considerably and is back up when the application is maximized. I read somewhere that the .NET...
[ -0.21506744623184204, 0.24582190811634064, 0.09175392240285873, -0.177010178565979, -0.1361875832080841, 0.22472445666790009, 0.05227229744195938, 0.16585449874401093, -0.44113436341285706, -0.6979938745498657, 0.1699770838022232, 0.3890174925327301, -0.12895320355892181, 0.021274441853165...
compiler and [Windows Forms](http://en.wikipedia.org/wiki/Windows_Forms) engine are being loaded with your process. To reduce this, you can do the following: ``` [DllImport("psapi.dll")] static extern int EmptyWorkingSet(IntPtr hwProc); static void MinimizeFootprint() { EmptyWorkingSet(Process.GetCurrentProcess()...
[ 0.3153899013996124, 0.0066776154562830925, 0.042655523866415024, 0.026596367359161377, 0.18418630957603455, -0.08101559430360794, 0.42221778631210327, -0.3628174960613251, -0.08883693069219589, -0.9185665249824524, -0.01512707956135273, 0.6149518489837646, -0.45476460456848145, -0.10372171...
Quite simple really: ``` var req:URLRequest=new URLRequest(); req.url="http://somesite.com"; var header:URLRequestHeader=new URLRequestHeader("my-bespoke-header","1"); req.requestHeaders.push(header); req.method=URLRequestMethod.GET; stream.load(req); ``` Yet, if I inspect the traffic with WireShark, the `my-bespoke...
[ 0.400241494178772, -0.02603738009929657, 0.8261229991912842, 0.040620263665914536, -0.0678800716996193, -0.3987382650375366, 0.459247887134552, -0.3245941400527954, -0.19115738570690155, -0.46513181924819946, -0.13867506384849548, 0.5477124452590942, -0.3414936065673828, 0.3949285745620727...
by force loading a crossdomain.xml with a `allow-http-request-headers-from` despite the fact that this is not a crossdomain issue? Or is it simply an undocumented feature of the Flash Player that it can only send custom headers with a POST request? In your PagesMethods call, remove the parentheses from the callback and...
[ 0.28916504979133606, 0.19145441055297852, 0.4801774322986603, 0.08872153609991074, -0.10133643448352814, -0.3751821517944336, -0.019227497279644012, -0.2589162290096283, -0.05172611027956009, -0.5286509990692139, -0.201257586479187, 0.5921680331230164, -0.39888903498649597, 0.0418270118534...
This may not be the correct way to use controllers, but I did notice this problem and hadn't figured out a way to correct it. ``` public JsonResult SomeControllerAction() { //The current method has the HttpContext just fine bool currentIsNotNull = (this.HttpContext == null); //which is false //creat...
[ -0.05703376606106758, -0.26694774627685547, 0.9431450366973877, 0.08881674706935883, 0.21866165101528168, -0.4124658405780792, 0.29882141947746277, -0.25515061616897583, -0.3818720281124115, -0.6531276702880859, -0.16275233030319214, 0.5387156009674072, -0.2725077271461487, 0.3504745066165...
bool notNull = (System.Web.HttpContext.Current == null); // which is false } ``` I've noticed that the HttpContext on a Controller isn't the "actual" HttpContext that you would find in System.Web.HttpContext.Current. Is there some way to manually populate the HttpContextBase on a Controller? Or a better wa...
[ 0.17220407724380493, -0.2583577334880829, 0.3135702908039093, 0.2293602079153061, 0.016113732010126114, -0.34929049015045166, 0.2299613207578659, 0.03487062826752663, -0.3713178336620331, -0.8689820170402527, -0.1710197776556015, 0.3549076020717621, -0.3423847556114197, 0.3511170744895935,...
I'm trying to have a new layer appear above existing content on my site when a link/button is clicked. I am using jquery - but the code I have doesn't seem to work as expected. Here is what I have: ``` $(document).ready(function(){ $("#button").click(function () { $("#showme").insertAfter("#bodytag") $("#showm...
[ 0.4432744085788727, -0.001719475956633687, 0.8827148079872131, -0.3851521611213684, -0.1511153280735016, -0.23333033919334412, 0.19216807186603546, -0.4600575864315033, -0.0452711321413517, -0.7910374402999878, -0.0979534164071083, 0.5077542662620544, -0.2575179636478424, 0.071670517325401...
you are inserting #showme into needs to be position: relative, and #showme should be position: absolute. Absolute positioning will take the element out of the document flow, allowing it to sit above the content. Also, two tips - $() is a shortcut for $(document), and you can chain jQuery commands: ``` $().ready(funct...
[ 0.29378849267959595, -0.23186305165290833, 0.8884185552597046, -0.29936209321022034, 0.3424038887023926, -0.07406479120254517, 0.07758452743291855, -0.42057958245277405, 0.23683997988700867, -0.42282697558403015, -0.26577088236808777, 0.8606101870536804, -0.3141431212425232, -0.28090479969...
What are pros and cons of having dedicated application pools over keeping web applications in one default app pool? Pros: * Applications are isolated from each other, unless IIS goes with it, an app pool locking will only take out applications in that pool * Ability to run applications under different ASP.NET runtimes...
[ 0.15644802153110504, -0.2091628611087799, 0.1589907556772232, 0.3127075433731079, 0.21061070263385773, -0.19894884526729584, 0.22249849140644073, -0.12152479588985443, -0.5325406789779663, -0.4806261360645294, -0.14392739534378052, 0.4833643138408661, -0.4967973828315735, 0.024378372356295...
Other sites might not need it. * Can secure pools from each other in regards to file access, great for third party, or untrusted applications as they can run under a very restrictive user account. Cons: * Each application pool has its own bank of memory and its own process, therefore CAN use more resources * Some fin...
[ 0.5075938701629639, 0.07839567214250565, -0.07866155356168747, 0.45403727889060974, 0.16404740512371063, -0.3473770022392273, 0.24207769334316254, 0.0718095451593399, -0.4026239514350891, -0.5420942902565002, -0.035635121166706085, 0.26267385482788086, -0.1048254668712616, 0.26353496313095...
How inefficient is it to get the stack trace for an exception? I know it's costly, but how costly? Should they definitely *not* be used in production environment? In a production environment, it's helpful to *log* the stack trace so the user can find it when they contact tech support. Printing stack trace in place of a...
[ 0.6725726127624512, 0.18027947843074799, -0.1602512151002884, 0.3126274049282074, 0.1613793820142746, -0.1917905956506729, 0.24646823108196259, -0.04760003462433815, -0.44322794675827026, -0.8183669447898865, -0.06639812141656876, 0.5638033151626587, -0.04177132621407509, -0.16987608373165...
I have been trying to strip out some data from HTML files. I have the logic coded to get the right cells. Now I am struggling to get the actual contents of the 'cell': here is my HTML snippet: headerRows[0][10].contents ``` [<font size="+0"><font face="serif" size="1"><b>Apples Produced</b><font size="3"> ...
[ -0.10164857655763626, 0.4091683626174927, 0.36986395716667175, -0.05414609611034393, -0.052527111023664474, 0.11096113175153732, 0.33220598101615906, 0.010623066686093807, -0.2858266830444336, -0.7789275050163269, -0.023679682984948158, 0.1280137151479721, -0.22006525099277496, -0.08866804...
if my cell doesn't have a bold attribute say it is: ``` [<font size="+0"><font face="serif" size="1"><I>Apples Produced</I><font size="3"> </font></font></font>] ``` *Apples Produced* I am trying to learn to read/understand the documentation and your response will help I really appreciate this help. T...
[ 0.006881869398057461, 0.42182013392448425, 0.08873002976179123, -0.27732792496681213, -0.17941933870315552, 0.2744838297367096, 0.1754118800163269, -0.19035740196704865, -0.062041427940130234, -0.9107698202133179, -0.13727925717830658, 0.3806445300579071, -0.07167218625545502, -0.215137094...
Making a coherent whole of the documentation is tough for me. Cheers ``` headerRows[0][10].contents[0].find('b').string ```
[ 0.4012066125869751, 0.4494785964488983, 0.3998313248157501, -0.2539437413215637, -0.07361990958452225, -0.5138028860092163, 0.31026577949523926, -0.18494614958763123, -0.050510991364717484, -0.38828936219215393, -0.5185076594352722, 0.5316539406776428, -0.09870258718729019, 0.0242667663842...
I had a problem with committing changes after merging two branches of my project using TortoiseSVN. Here are details: I did a merge branch to trunk of *project* which I am working on. *Project* includes main repository and libraries joint to main repository as *svn external* (libraries are also branched) as subdire...
[ -0.03377872705459595, -0.13979734480381012, 0.47981154918670654, 0.06793626397848129, -0.11068757623434067, 0.12036629021167755, 0.4096580147743225, -0.31626883149147034, -0.7418848872184753, -0.490912526845932, -0.07337354868650436, 0.45783597230911255, -0.34177443385124207, 0.32653582096...
version). Both SVN server and client are in 1.5.x version (TortoiseSVN is 1.5.3.x). From technical point of view both *project* and *libraries* are projects in the same SVN repository. Any idea what went wrong? I had been googling a bit for the solution, but didn't find anything useful, so I tried to commit my chan...
[ 0.03717335686087608, -0.20881406962871552, 0.5128928422927856, -0.25636252760887146, -0.3478875458240509, -0.04177367314696312, 0.6815683245658875, -0.06708843261003494, -0.5722888112068176, -0.6563392281532288, -0.19824674725532532, 0.5948523879051208, -0.41961807012557983, 0.268959015607...
check-out, but ultimately those paths are still 'disjoint', so you have to do two commits to get the changes applied. Here's the relevant quote from [Version Control with Subversion](http://svnbook.red-bean.com/en/1.5/svn-book.html#svn.advanced.externals) > And Subversion still truly operates > only on nondisjoint w...
[ 0.3304503560066223, -0.12343237549066544, 0.46872687339782715, -0.060823846608400345, 0.1473991870880127, -0.36621516942977905, 0.5742224454879761, -0.03624315559864044, -0.39981964230537415, -0.4868684411048889, -0.17485052347183228, 0.36274147033691406, -0.32722997665405273, 0.1625546365...
My question is quite relevant to [something asked before](https://stackoverflow.com/questions/42785/how-do-you-retrofit-unit-tests-into-a-code-base) but I need some practical advice. I have "Working effectively with legacy code" in my hands and I 'm using advice from the book as I read it in the project I 'm working o...
[ 0.7133803963661194, 0.24564236402511597, -0.034639228135347366, 0.033901434391736984, 0.16507406532764435, -0.01871965266764164, 0.00877719558775425, -0.5114991068840027, 0.0644330307841301, -0.6637995839118958, 0.20211313664913177, 0.26166394352912903, 0.3222081959247589, 0.24391819536685...
tests since there are two different executables that need to share code while I am not able to extract the code from my "under test" application to a library. Right now I have made my build process for the application that holds the unit tests link against the object files generated from the build process of the main a...
[ 0.832935631275177, 0.15827786922454834, -0.14001671969890594, 0.23507408797740936, -0.12433560937643051, -0.09179937094449997, 0.34150925278663635, -0.13108479976654053, 0.08065613359212875, -0.6165827512741089, 0.1800331175327301, 0.47656261920928955, -0.006925302091985941, 0.278107583522...