text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
SLimPath # Author: David "Shoe Lace" Pyke <eselle@users.sourceforge.net > # : Tim Nelson # Purpose: To create a slim version of my envirnoment path so as to eliminate # duplicate entries and ensure that the "." path was last. # Date Created: April 1st 1999 # Revision History: # 01/04/99: initial tests.. ...
[ 0.28227290511131287, -0.23771513998508453, 0.7305094599723816, 0.1947970688343048, 0.019336670637130737, -0.08092907816171646, 0.2468799203634262, 0.04445703327655792, 0.07743863016366959, -0.6030254364013672, 0.37256768345832825, 0.39876461029052734, -0.5148042440414429, -0.30937409400939...
: used 'push' to add to array # : used 'join' to create a delimited string from a list/array. # 16/02/00: fixed cmd-line options to look/work better # 25/02/00: made verbosity level-oriented # # use Getopt::Std; sub printlevel; $initial_str = ""; $debug_mode = ""; $delim_chr = ":"; $opt_v = 1; getopts("v:...
[ -0.3425682485103607, -0.3863041400909424, 0.841183602809906, -0.09596213698387146, -0.16917656362056732, 0.3571507930755615, 0.5630547404289246, -0.2859761118888855, -0.058174166828393936, -0.46226391196250916, -0.7843775153160095, 0.7384573221206665, -0.4153286814689636, -0.33215412497520...
(between path vars)"; print "\n -e Specify environment variable (NB: don't include \$ sign)"; print "\n -s String (ie. $0 -s \$PATH:/looser/bin/)"; print "\n -v Verbosity (0 = quiet, 1 = normal, 2 = verbose)"; print "\n"; exit; }; $opt_d && do { printlevel 1, "You selected debug level $...
[ -0.2829716205596924, -0.6178168058395386, 0.5689371228218079, -0.282620906829834, 0.41888219118118286, 0.2552401125431061, 0.4279645085334778, -0.07415387034416199, 0.09092981368303299, -0.6492804288864136, -0.8830263614654541, 0.9011046290397644, -0.484497606754303, -0.34333446621894836, ...
printlevel 1, "You are going to delimit the string with \"$opt_l\"\n"; $delim_chr = $opt_l; }; $opt_e && do { if($opt_s) { die "Cannot specify BOTH env var and string\n"; } printlevel 1, "Using Environment variable \"$opt_e\"\n"; $initial_str = $ENV{$opt_e}; }; $opt_s && ...
[ -0.2676403820514679, -0.7612473368644714, 0.7659050226211548, -0.5196461081504822, 0.3302859365940094, 0.33134812116622925, -0.18921715021133423, -0.23868851363658905, 0.17286856472492218, -0.4910157024860382, -0.49300748109817505, 0.8149763345718384, -0.7256691455841064, -0.49215632677078...
$initial_str = $opt_s; }; } if( ($#ARGV != 1) and !$opt_e and !$opt_s){ die "Nothing to work with -- try $0 -h\n"; } $what = shift @ARGV; # Split path using the delimiter @dirs = split(/$delim_chr/, $initial_str); $dest; @newpath = (); LOOP: foreach (@dirs){ # Ensure the directory exists and is a directo...
[ 0.11756103485822678, -0.47283339500427246, 0.6385178565979004, -0.42816266417503357, 0.3951471745967865, 0.14073370397090912, 0.3596668243408203, -0.26622065901756287, -0.30311423540115356, -0.6569410562515259, -0.44284793734550476, 0.6811584234237671, -0.4776652455329895, 0.12951065599918...
} # if ($_ ne `realpath $_`){ # printlevel 2, "$_ becomes ".`realpath $_`."\n"; # } undef $dest; #$_=Stdlib::realpath($_,$dest); # Check for duplicates and dot path foreach $adir (@newpath) { if($_ eq $adir) { printlevel 2, "Duplicate: $_\n"; next LOOP; }} push ...
[ -0.07353755831718445, -0.2260705977678299, 0.6992592811584473, -0.28567707538604736, 0.1898995339870453, 0.1513836532831192, 0.3434288501739502, -0.34145474433898926, -0.34204551577568054, -0.7033122777938843, 0.06388947367668152, 0.4364197552204132, -0.821870744228363, 0.25964221358299255...
expression print join($delim_chr, @newpath) . ($dot ? $delim_chr.".\n" : "\n"); printlevel 1, "Thank you for using $0\n"; exit; sub printlevel { my($level, $string) = @_; if($opt_v >= $level) { print STDERR $string; } } ``` --- i hope thats useful.
[ -0.11046085506677628, -0.10229697823524475, 0.7234886884689331, -0.3118807375431061, 0.2529274821281433, -0.09426819533109665, 0.31908372044563293, 0.03418329730629921, 0.17186561226844788, -0.6155710220336914, -0.35763728618621826, 0.750713050365448, -0.37253400683403015, -0.1171132251620...
Why can't I create a `class` in `VB.NET` that `inherits` `System.IO.Directory`? According to Lutz Roeder, it is *not* declared as `NotInheritable`! I want to create a `utility class` that adds functionality to the `Directory class`. For instance, I want to add a `Directory.Move` function. Please advise and I will sen...
[ 0.7003197073936462, 0.14910921454429626, 0.022372588515281677, 0.06147115305066109, 0.18049301207065582, -0.3502446413040161, 0.3677201569080353, -0.3302619457244873, -0.24165861308574677, -0.5201721787452698, 0.298358678817749, 0.5710564851760864, -0.3724449872970581, 0.13866262137889862,...
for creating, moving, and enumerating through directories // and subdirectories. This class cannot be inherited. [ComVisible(true)] public static class Directory ``` You cannot inherit from a Static Class.
[ 0.07683033496141434, -0.019128618761897087, 0.1215687245130539, 0.15207819640636444, 0.18095934391021729, -0.5849890112876892, 0.10800324380397797, 0.21712897717952728, -0.14361722767353058, -0.4429495930671692, -0.5446287989616394, 0.45495375990867615, -0.46922001242637634, 0.282344847917...
In python, under what circumstances is SWIG a better choice than ctypes for calling entry points in shared libraries? Let's assume you don't already have the SWIG interface file(s). What are the performance metrics of the two? SWIG generates (rather ugly) C or C++ code. It is straightforward to use for simple funct...
[ 0.18689198791980743, 0.07711014151573181, 0.18430274724960327, -0.058700576424598694, -0.43302392959594727, -0.2556620240211487, 0.18332348763942719, 0.12309325486421585, -0.06562308222055435, -0.48002058267593384, 0.0754174068570137, 0.5447959899902344, -0.40865617990493774, -0.0639250427...
the interface file. For anything but simple use you will need to know about CPython and how it represents objects -- not hard, but something to keep in mind. ctypes allows you to directly access C functions, structures and other data, and load arbitrary shared libraries. You do not need to write any C for this, but yo...
[ 0.3172498941421509, -0.03365708887577057, 0.4791303277015686, 0.3162742555141449, -0.43501970171928406, -0.4087483882904053, -0.24982285499572754, 0.22906647622585297, -0.2410799115896225, -0.6340851783752441, 0.23527128994464874, 0.6961129903793335, -0.4554588794708252, 0.0800650492310524...
like C datatypes, casting, memory management and alignment work. You also need to manually or automatically translate C structs, unions and arrays into the equivalent ctypes datastructure, including the right memory layout. It is likely that in pure execution, SWIG is faster than ctypes -- because the management aroun...
[ 0.2009982168674469, 0.07133196294307709, 0.20090599358081818, 0.16076791286468506, -0.18318113684654236, -0.20205029845237732, -0.03149646148085594, -0.16504259407520294, -0.3336452543735504, -0.6426976323127747, 0.07325131446123123, 0.7597767114639282, -0.45321086049079895, -0.30743357539...
learn about interface files, you don't have to generate .c files and compile them, you don't have to check out and silence warnings. You can just jump in and start using a single C function with minimal effort, then expand it to more. And you get to test and try things out directly in the Python interpreter. Wrapping l...
[ 0.5703077912330627, -0.2097594141960144, 0.10695875436067581, 0.2146202027797699, -0.1307741403579712, -0.3550117313861847, 0.2343147099018097, 0.14315949380397797, -0.2765563726425171, -0.40765130519866943, 0.049770157784223557, 0.669014036655426, -0.29578593373298645, -0.1420419365167617...
mentioned above.) When wrapping lots and lots of code that SWIG can handle with little help, the code generation can also be a lot simpler to set up than the ctypes equivalents.
[ 0.3352070748806, 0.11952869594097137, 0.2722761929035187, 0.23305834829807281, -0.20453867316246033, -0.25920557975769043, 0.07869711518287659, -0.08629367500543594, -0.1421855390071869, -0.5118664503097534, 0.18992045521736145, 0.5745148658752441, -0.2218814194202423, 0.002103799255564809...
A colleague of mine states that **booleans as method arguments are not acceptable**. They shall be replaced by enumerations. At first I did not see any benefit, but he gave me an example. What's easier to understand? ``` file.writeData( data, true ); ``` Or ``` enum WriteMode { Append, Overwrite }; file.write...
[ -0.036369964480400085, 0.16313236951828003, 0.015402648597955704, -0.01844356767833233, -0.13173437118530273, -0.08669015765190125, 0.2918139398097992, -0.2376134842634201, -0.05810704454779625, -0.3731069564819336, -0.055203210562467575, 0.33629652857780457, -0.2974536120891571, 0.1903929...
options, neither of which is clearly yes or no, then an enum can sometimes be more readable.
[ 0.27430176734924316, -0.2983441948890686, -0.0561814047396183, 0.19593457877635956, 0.19671055674552917, 0.13977918028831482, -0.1782582700252533, -0.1463230550289154, 0.050384771078825, -0.5257323980331421, -0.4903087913990021, 0.3741278350353241, 0.2152697592973709, -0.0894792452454567, ...
I'm trying to host a python script using an apache web server, but the server tries to run the script instead of just offering it for download. I do not have direct access to server, and adding the line ``` AddType text/plain .py ``` to .htaccess in the root folder does not appear to work, though I could be doing s...
[ 0.5661293268203735, 0.2595323622226715, 0.1661839485168457, 0.01716851443052292, -0.18031537532806396, -0.27776479721069336, 0.6000041365623474, 0.25592926144599915, -0.07956894487142563, -0.7444102168083191, 0.14291779696941376, 0.5185018181800842, -0.2761802077293396, 0.4195910692214966,...
work, but for some reason that one addType line is not working. Either because it's not overriding something, or the line is wrong. In your .htaccess: > RemoveHandler .py
[ 0.6717493534088135, -0.006661198567599058, 0.4205233156681061, -0.04809064045548439, 0.2957734167575836, -0.09844668209552765, 0.4034354090690613, -0.29591310024261475, -0.22713163495063782, -0.4849969148635864, -0.17712797224521637, 0.24059376120567322, -0.3993861973285675, -0.37950670719...
So a column will hold some text that beforehand I won't know how long the length of this string can be. Realistically 95% of the time, it will probably be between 100-500 chars, but there can be that one case where it will 10000 chars long. I have no control over the size of this string and never does the user. Besides...
[ 0.1154874786734581, -0.1871258169412613, 0.46065425872802734, -0.2011011242866516, -0.35796648263931274, 0.0011698957532644272, 0.29536715149879456, -0.10595978051424026, -0.25662556290626526, -0.2256985604763031, 0.40916693210601807, 0.8085762858390808, -0.32088983058929443, -0.1344538480...
but not max, it stores part of the bits in the record and the rest outside. To my knowledge with varchar(max) it goes ahead and stores the entire contents out of the record, which makes it less efficient than a small text input. But its more efficient than a "text" field since it does not have to look up that informat...
[ 0.17129866778850555, -0.06025103107094765, -0.005039628595113754, 0.25839123129844666, -0.10553842037916183, 0.041808124631643295, 0.12841418385505676, -0.3539119362831116, -0.13185368478298187, -0.26787784695625305, 0.20983430743217468, 0.5010414719581604, -0.06588444113731384, 0.03829375...
I work on relatively sensitive code that we wouldn't want falling into the wrong hands. Up until now, all the code has been keep in house so it hasn't been an issue. I am moving to working from home a day or two a week and we want to secure the code on my laptop. We have looked at a few alternatives, but Windows EFS a...
[ 0.6824604272842407, 0.2877905070781708, 0.46979764103889465, -0.04433979466557503, 0.5465322136878967, -0.06637102365493774, 0.3681173324584961, -0.03673965483903885, -0.20300231873989105, -0.7557284832000732, -0.1428934633731842, 0.4921557307243347, 0.15022718906402588, 0.1199376061558723...
alternatives, or issues with using EFS to encrypt source code? [Truecrypt](http://www.truecrypt.org/downloads.php): > **WARNING: Using TrueCrypt is not secure as it may contain unfixed security issues** > > > This page exists only to help migrate existing data encrypted by TrueCrypt. > > > The development of TrueC...
[ 0.08604753762483597, 0.02019159495830536, 0.48474550247192383, 0.3188561201095581, 0.1876213103532791, -0.36053553223609924, 0.7091923952102661, 0.006233548279851675, 0.0834970623254776, -0.5452241897583008, -0.42505812644958496, 0.7931557893753052, -0.4539116322994232, 0.10924068093299866...
platform...
[ 0.15848268568515778, -0.184919074177742, 0.03298110514879227, 0.29882127046585083, -0.153095081448555, 0.10567918419837952, 0.14688467979431152, -0.20066754519939423, -0.6117900609970093, -0.765492856502533, 0.06194579228758812, 0.1471511870622635, -0.09600136429071426, 0.02740339748561382...
Stored procs in SQL Server sometimes finish with a return code, as opposed to a recordset of data. I've seen ASP code that's able to get this return code, but I can't figure out how to get this code with PHP's mssql driver. mssql\_get\_last\_message() always returns nothing, and I'm thinking it's because it only retur...
[ -0.05006861686706543, 0.026954449713230133, 0.31990450620651245, -0.017121873795986176, -0.11654891073703766, 0.13746601343154907, -0.06293054670095444, 0.36927691102027893, -0.487758606672287, -0.4279063940048218, -0.08732367306947708, 0.47611498832702637, -0.21759523451328278, -0.0286908...
SQL Server error codes, e.g. RAISERRROR or other failures? If so, last time I checked in PHP you need to ask for @@ERROR (e.g. select @@error) instead. If it is a return code, you must explicitly catch it, e.g. ``` DECLARE @return_code INT EXEC @return_code = your_stored_procedure 1123 SELECT @return_code ```
[ -0.03802791237831116, 0.1376229077577591, 0.13199558854103088, -0.02053276263177395, -0.2098953127861023, -0.2491024136543274, 0.19627612829208374, 0.025654006749391556, -0.19983063638210297, -0.24508056044578552, 0.168771430850029, 0.44184234738349915, -0.4027290940284729, 0.1270472109317...
If you have two jars in your classpath that contain different versions of the same class, the classpath order becomes critical. I am looking for a tool that can detect and flag such potential conflicts in a given classpath or set of folders. Certainly a script that starts: ``` classes=`mktemp` for i in `find . -name...
[ 0.17458660900592804, -0.32024112343788147, -0.058923155069351196, 0.11199751496315002, -0.1476633995771408, -0.01977723464369774, 0.42579248547554016, 0.051850490272045135, -0.17691151797771454, -0.81834876537323, 0.028467683121562004, 0.37489938735961914, -0.16383221745491028, 0.233983948...
class/package is located in multiple JAR files"
[ 0.2632189691066742, 0.0648958832025528, -0.0189740639179945, 0.2746150493621826, 0.12792228162288666, -0.1432838886976242, 0.02330046519637108, -0.08503680676221848, -0.06786579638719559, -0.6178646087646484, -0.14951902627944946, 0.024249911308288574, 0.07679291069507599, 0.17324915528297...
So, I want to define a singleton method for an object, but I want to do it using a closure. For example, ``` def define_say(obj, msg) def obj.say puts msg end end o = Object.new define_say o, "hello world!" o.say ``` This doesn't work because defining a singleton method via "def" is not a closure, so I get...
[ -0.12543602287769318, 0.011848444119095802, 0.22658245265483856, -0.20740406215190887, 0.08481570333242416, -0.26372167468070984, 0.23755374550819397, 0.26273155212402344, -0.18778444826602936, -0.6471940279006958, -0.15293334424495697, 0.4355762302875519, -0.5053533315658569, 0.5487673878...
I want a Singleton Method... So, I would love to write it something like this: ``` def define_say(obj, msg) obj.define_singleton_method(:say) { puts msg } end ``` Does anyone know how I can achieve this without having to create a method to store a Proc and then use the Proc within a singleton method? (basic...
[ 0.08924853801727295, 0.014385784976184368, 0.11806394159793854, -0.18456614017486572, 0.02541159838438034, -0.026382025331258774, 0.2332816869020462, -0.07219045609235764, -0.10834881663322449, -0.78288733959198, -0.014146407134830952, 0.6412708759307861, -0.44905972480773926, -0.008437959...
of def x.say so we can use a closure metaclass.send :define_method, :say do puts msg end end ``` Usage (paste from IRB) ``` >> s = "my string" => "my string" >> define_say(s, "I am S") => #<Proc:0xb6ed55b0@(irb):11> >> s.say I am S => nil ``` For more info (and a little library which makes it less messy) r...
[ 0.3393791615962982, 0.05783085152506828, 0.5730298757553101, -0.19907161593437195, -0.1732160449028015, -0.25757932662963867, 0.7423714399337769, -0.15116623044013977, -0.197972372174263, -0.8173553943634033, -0.1314791887998581, 0.5364378690719604, -0.2984201908111572, 0.11248580366373062...
It is discouraged to simply catch `System.Exception`. Instead, only the "known" exceptions should be caught. Now, this sometimes leads to unnecessary repetitive code, for example: ``` try { WebId = new Guid(queryString["web"]); } catch (FormatException) { WebId = Guid.Empty; } catch (OverflowException) { ...
[ 0.07814405858516693, 0.015934351831674576, 0.18445000052452087, -0.049949660897254944, -0.07236994802951813, -0.3943902254104614, 0.4019445776939392, -0.07944688946008682, -0.6900372505187988, -0.5584701895713806, -0.15325558185577393, 0.30460748076438904, -0.43827253580093384, 0.297509133...
is an unexpected exception, I still want to throw that higher. Catch `System.Exception` and switch on the types ``` catch (Exception ex) { if (ex is FormatException || ex is OverflowException) { WebId = Guid.Empty; return; } throw; } ```
[ -0.25260496139526367, -0.15621812641620636, 0.39349862933158875, -0.07268507778644562, 0.12406360357999802, -0.16533493995666504, 0.28035402297973633, -0.25842970609664917, -0.035128429532051086, -0.5695939064025879, -0.11208722740411758, 0.5082349181175232, -0.3522743284702301, 0.15800674...
I am working on a web app that uses Perl and I need to look into speeding up portions of the app. I thought I'd start profiling the particular calls for the portion I wish to investigate. I've done some searching on profiling Perl code, but unfortunately most of what I find says that I should run my perl code with `-...
[ 0.7273883819580078, 0.24040161073207855, 0.41958266496658325, -0.025185171514749527, -0.3556064963340759, -0.2567453980445862, 0.23463524878025055, -0.09668298065662384, -0.14205126464366913, -0.23259273171424866, 0.06562593579292297, 0.7194526791572571, -0.3786076009273529, 0.158339977264...
that came back from the profiler were all CPAN modules -- Class::xyz, etc etc etc. Not terribly helpful. Does anyone know of a good way besides me injecting "timer" code into the methods I wish to profile to target just these methods? I've thought of writing a test script and profiling that but due to the nature of th...
[ 0.49014726281166077, -0.07573199272155762, -0.006649138871580362, 0.1536174714565277, -0.12351909279823303, -0.4145723581314087, 0.2682316303253174, -0.15405414998531342, -0.3450063169002533, -0.39848414063453674, 0.2773701548576355, 0.41325852274894714, -0.2500793933868408, -0.09849956631...
mod\_perl thing, or something else? If you're doing database stuff, the [DBI::Profile](http://www.metacpan.org/module/DBI::Profile) can benchmark your queries, which is work happening in another program. The real trick, however, is to organize the code so that you can do the full spectrum of testing and profiling wit...
[ 0.6604788303375244, -0.08810610324144363, 0.1451086848974228, 0.2888229191303253, -0.0881597250699997, -0.4412579834461212, 0.6208977103233337, -0.31299588084220886, -0.16377116739749908, -0.4058213233947754, 0.14935436844825745, 0.8546971678733826, -0.3986276686191559, -0.212616428732872,...
:)
[ -0.11804179102182388, 0.13728010654449463, 0.17982403934001923, 0.07065879553556442, 0.008272250182926655, 0.4008978307247162, 0.19919633865356445, -0.4948277771472931, -0.11189078539609909, 0.012069443240761757, -0.22117410600185394, 0.509800136089325, -0.22204074263572693, 0.175080463290...
Browsing to a dynamic web page built using Grails version 1.0.3 the console log shows the following errors for each page request: ``` [Fatal Error] :-1:-1: Premature end of file. ``` How do I stop this error from appearing for each request? The log entry occurs when http requests are made from Firefox 3 browsers. T...
[ -0.21601693332195282, 0.20333583652973175, 0.655345618724823, 0.1124957874417305, -0.08252348750829697, -0.15580213069915771, 0.6102294325828552, 0.13572445511817932, -0.15919774770736694, -0.42441314458847046, -0.23307780921459198, 0.6500961780548096, -0.6249883770942688, 0.07060050219297...
My app keeps track of the state of about 1000 objects. Those objects are read from and written to a persistent store (serialized) in no particular order. Right now the app uses the registry to store each object's state. This is nice because: * It is simple * It is very fast * Individual object's state can be read/wr...
[ 0.1601562798023224, 0.06433028727769852, 0.4909389317035675, 0.31589585542678833, -0.0763736292719841, 0.1866939812898636, 0.33462926745414734, 0.3333923816680908, -0.20946721732616425, -0.9286841750144958, 0.07176797091960907, 0.31952616572380066, 0.003715755883604288, 0.2670154571533203,...
but you don't have the same level of multiple-reader/multiple-writer that you get with the registry, and no simple way to edit existing entries. Any better suggestions? A bunch of flat files? If you do begin to experiment with SQLite, you should know that "out of the box" it might not seem as fast as you would like, b...
[ 0.24619635939598083, -0.022757332772016525, 0.11893969029188156, 0.28810447454452515, 0.027186458930373192, -0.1831359714269638, -0.013221383094787598, -0.26124516129493713, -0.3271302282810211, -0.533058226108551, -0.09790609776973724, 0.9549301266670227, -0.048832185566425323, -0.0029082...
an all-in-memory database rather than writing to disk. For in-memory databases, pass NULL as the filename argument to `sqlite3_open` and [make sure that TEMP\_STORE is defined appropriately](http://www.sqlite.org/pragma.html#pragma_temp_store) **On the other hand**, if you tell sqlite to use the harddisk, then you wi...
[ -0.030980633571743965, -0.05701922997832298, 0.14525356888771057, 0.18790261447429657, -0.24022075533866882, -0.1175156831741333, 0.08893971145153046, -0.10422513633966446, -0.1998649686574936, -0.5962396860122681, -0.12937743961811066, 0.6100383400917053, -0.3606400787830353, 0.1434868574...
(and/or while it is paused in break mode).
[ 0.22656016051769257, -0.16619059443473816, 0.1493995040655136, -0.15687493979930878, 0.010431920178234577, -0.23539729416370392, 0.7054054737091064, 0.33968591690063477, -0.11649961024522781, -0.03601560741662979, -0.7109611630439758, 0.2613791823387146, 0.0981593206524849, -0.044329103082...
All throughout an application wherever error messages (or other user messages) are used I typically hard-code a string. Obviosly this can be really bad (especially when you may have to come back and localize an app). What is the best approach to centralize these strings? A static class? Constants? An XML File? Or a com...
[ 0.1636711210012436, -0.12511374056339264, 0.23597222566604614, 0.1656574010848999, -0.008027532137930393, -0.09704682976007462, 0.22053606808185577, 0.24747593700885773, -0.531877875328064, -0.520357608795166, -0.34922945499420166, 0.3804838955402374, -0.5095810890197754, 0.368031978607177...
We recently started using maven for dependency management. Our team uses eclipse as it's IDE. Is there an easy way to get eclipse to refresh the maven dependencies without running mvn eclipse:eclipse? The dependencies are up to date in the local maven repository, but eclipse doesn't pick up the changes until we use th...
[ 0.38452044129371643, -0.021356428042054176, 0.4064503014087677, -0.07367010414600372, -0.15379202365875244, -0.3174367845058441, 0.09576454758644104, -0.064031682908535, -0.13656044006347656, -0.6789374351501465, -0.09488595277070999, 0.8710411190986633, -0.13255535066127777, 0.05888156592...
Does any one know of an opensource Java VNC server, that can be run from a web page, so requiring no installation on the server end, possibley applet based. <http://vncj.com/default.aspx> Once you get it setup you wont know how you lived w/o it. The server and the client are using the same .jar file all in the html pag...
[ 0.6677457690238953, 0.059193067252635956, 0.1339937448501587, 0.0003928087535314262, -0.09939143806695938, -0.3185831308364868, 0.33666300773620605, 0.05778193101286888, -0.3456604778766632, -0.572322428226471, 0.2478608936071396, 0.6412575244903564, -0.07651292532682419, 0.298328489065170...
Is there a way through the .net framework to determine if a folder is shared or not? Neither Diretory, DirectoryInfo or FileAttributes seem to have any corresponding field. One thing I forgot to mention was that I want to be checking for network shares. But I'll investigate the WMI stuff. You can use WMI Win32\_Share...
[ 0.38376009464263916, -0.19775958359241486, -0.09815467894077301, 0.4102506637573242, 0.12620319426059723, -0.40787386894226074, -0.28013303875923157, 0.2341773957014084, -0.4977530241012573, -0.5498114228248596, 0.22795802354812622, 0.37290269136428833, -0.02994772419333458, 0.185508519411...
What the difference between `Application("some-object")` and `Cache("some-object")` in ASP.NET? According to MS, Application storage is only preserved for backward compatibility with classic ASP applications so use the Cache because it's smarter and thread-safe.
[ -0.04933616518974304, 0.2024989128112793, 0.26297619938850403, 0.1703408658504486, 0.3102734684944153, -0.055614106357097626, 0.3410020172595978, 0.07132120430469513, -0.23010297119617462, -0.5142754316329956, -0.13907411694526672, 0.16737665235996246, -0.24399589002132416, 0.1920203119516...
How can I *programmatically* determine if I have access to a server (TCP) with a given IP address and port using C#? Assuming you mean through a TCP socket: ``` IPAddress IP; if(IPAddress.TryParse("127.0.0.1",out IP)){ Socket s = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); ...
[ -0.03242673724889755, 0.06485807150602341, 0.6253218054771423, 0.03877252712845802, 0.30101093649864197, -0.06100492551922798, 0.39085111021995544, -0.17570655047893524, -0.16519318521022797, -0.8657281398773193, -0.17547063529491425, 0.03579007089138031, -0.1498568207025528, 0.28410390019...
We have a .NET 2.0 application which we normally run on IIS6, and used to run fine on IIS7, but recently after installing SP1 for Vista IIS7 seems to be choking on a line in the Web.Config file: ``` <system.web AllowLocation="true"> ``` Is it safe to remove the AllowLocation attribute? What does this attribute do? F...
[ 0.2074451595544815, 0.04645411670207977, 0.5112383961677551, 0.07436735183000565, 0.42385023832321167, -0.490119993686676, 0.38710567355155945, 0.08526639640331268, -0.14486216008663177, -0.6366997361183167, -0.2869627773761749, 0.437671035528183, -0.33575329184532166, 0.22286757826805115,...
it with no effect on your application.
[ 0.367836594581604, 0.26409628987312317, 0.44638344645500183, 0.017318226397037506, -0.015195675194263458, -0.20620125532150269, 0.14791305363178253, 0.18258973956108093, 0.5090028643608093, -0.33726394176483154, -0.00959897693246603, 0.34269192814826965, -0.05849042162299156, 0.11568986624...
I'm having trouble coming up with the correct regex string to remove a sequence of multiple ? characters. I want to replace more than one sequential ? with a single ?, but which characters to escape...is escaping me. Example input: > Is this thing on??? or what??? Desired output: > Is this thing on? or what? I'm u...
[ -0.10574901103973389, 0.012881050817668438, 0.38150808215141296, -0.030590848997235298, 0.14970754086971283, 0.3697018623352051, 0.5026827454566956, -0.05986781045794487, -0.3078577220439911, -0.5223642587661743, -0.23268118500709534, 0.8214889168739319, -0.5551084280014038, 0.060953352600...
instance with two or more question mark characters.
[ -0.4691528081893921, -0.0013970657018944621, -0.2423296421766281, 0.18336282670497894, -0.2884925901889801, 0.04535704851150513, 0.17943045496940613, 0.035482507199048996, -0.26575934886932373, -0.8162124752998352, -0.5017223954200745, 0.1704627275466919, -0.2313980907201767, -0.5059952139...
I'm looking for a few talking points I could use to convince coworkers that it's NOT OK to run a 24/7 production application by simply opening Visual Studio and running the app in debug mode. What's different about running a compiled console application vs. running that same app in debug mode? Are there ever times w...
[ 0.7478850483894348, 0.1145613044500351, -0.056874506175518036, 0.1848447620868683, 0.1918438971042633, -0.11659976094961166, 0.3409312963485718, 0.08173821866512299, -0.09827648103237152, -0.5170301795005798, -0.10259342193603516, 0.9753859639167786, -0.22264793515205383, -0.08405659347772...
to mention the complexity concerns [mentioned by Bruce](https://stackoverflow.com/questions/136674/reasons-to-not-run-a-business-critical-c-console-application-via-the-debugger#136699)), and there is nothing to keep you from getting the same functionality as running under the debugger when compiled in release mode -- y...
[ 0.002818511798977852, 0.19063618779182434, 0.19332225620746613, 0.04637653008103371, 0.14498309791088104, -0.4498422145843506, 0.5361416935920715, -0.14436815679073334, -0.507226288318634, -0.15536756813526154, -0.24995654821395874, 0.7008401155471802, -0.28949859738349915, -0.067361645400...
your team.
[ 0.30621206760406494, 0.1615191549062729, -0.2724665403366089, 0.07115194946527481, -0.14017896354198456, -0.4277207553386688, 0.14730340242385864, -0.18597742915153503, -0.2713940739631653, -0.7596960067749023, -0.21752163767814636, 0.6511982083320618, 0.029507460072636604, -0.420042157173...
Is it possible to make it appear to a system that a key was pressed, for example I need to make `A` key be pressed thousands of times, and it is much to time consuming to do it manually, I would like to write something to do it for me, and the only thing I know well enough is Python. A better way to put it, I need to ...
[ 0.2854417562484741, 0.0025058183819055557, 0.33290329575538635, 0.030101049691438675, 0.3013784885406494, -0.11646735668182373, 0.11162424832582474, -0.0772579237818718, -0.36707690358161926, -0.40756168961524963, 0.005831144284456968, 0.852344810962677, 0.005869406275451183, -0.2572066187...
do the following: ``` import win32com.client as comclt wsh= comclt.Dispatch("WScript.Shell") wsh.AppActivate("Notepad") # select another application wsh.SendKeys("a") # send the keys you want ``` Search for documentation of the WScript.Shell object (I believe installed by default in all Windows XP installations). Yo...
[ -0.029672203585505486, 0.17292626202106476, 0.5405091643333435, -0.3105098009109497, -0.19902120530605316, -0.07395299524068832, 0.3044936954975128, -0.1592966616153717, -0.07171554863452911, -0.7037317752838135, -0.42532452940940857, 0.7813747525215149, -0.4534095823764801, -0.01800813525...
I'm starting with Python coming from java. I was wondering if there exists something similar to JavaDoc API where I can find the class, its methods and and example of how to use it. I've found very helpul to use *help( thing )* from the Python ( command line ) I have found this also: <http://docs.python.org/2/> ...
[ 0.49115189909935, -0.04981677606701851, -0.10207536816596985, -0.04052571952342987, -0.2503499984741211, 0.014344212599098682, 0.15125133097171783, 0.07318589091300964, -0.16415570676326752, -0.5717838406562805, -0.1079515740275383, 0.703704297542572, -0.33312681317329407, -0.0451413318514...
all the classes to see what they do, and when I need a feature my brain recalls me *We saw something similar in the javadoc remember!?* But I don't seem to find the similar in Python ( yet ) and that why I'm posting this questin. BTW I know that I would eventually will read this: <https://docs.python.org/2/library...
[ 0.4414318799972534, -0.08951349556446075, 0.09921761602163315, 0.09628664702177048, -0.15771561861038208, -0.12087610363960266, 0.29005923867225647, 0.3774353861808777, -0.5039582848548889, -0.690817654132843, 0.09823917597532272, 0.3770923912525177, 0.10276032239198685, -0.025301849469542...
How can I drop sql server agent jobs, if (and only if) it exists? This is a well functioning script for *stored procedures*. How can I do the same to sql server agent jobs? ``` if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[storedproc]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop proc...
[ -0.029248947277665138, -0.015482555143535137, 0.1975693255662918, -0.12543468177318573, 0.0456986203789711, 0.032574087381362915, 0.23662090301513672, -0.2023434042930603, -0.36573871970176697, -0.49254339933395386, -0.30043622851371765, 0.2663242816925049, -0.5130553841590881, 0.056848086...
parameters required for ['sp\_add\_job'](http://msdn.microsoft.com/en-us/library/ms182079.aspx) and ['sp\_delete\_job'](http://msdn.microsoft.com/en-us/library/ms188376.aspx)
[ -0.20533399283885956, 0.03180685266852379, 0.2746412456035614, 0.11567722260951996, 0.43648630380630493, 0.27071818709373474, 0.0944170355796814, -0.6218023896217346, -0.12742257118225098, -0.20545828342437744, -0.38547495007514954, 0.8168647885322571, -0.24556592106819153, -0.295700281858...
Right now I have a log parser reading through 515mb of plain-text files (a file for each day over the past 4 years). My code currently stands as this: <http://gist.github.com/12978>. I've used psyco (as seen in the code) and I'm also compiling it and using the compiled version. It's doing about 100 lines every 0.3 seco...
[ 0.3575548827648163, 0.2692476809024811, 0.42539355158805847, 0.11148901283740997, 0.2508147358894348, 0.22644822299480438, 0.5363749265670776, 0.2804580628871918, -0.38247689604759216, -0.8686444759368896, -0.051590338349342346, 0.48282918334007263, -0.13336977362632751, -0.113032899796962...
the minimum number of inserts. Three Things. One. Don't SELECT over and over again to conform the Date, Hostname and Person dimensions. Fetch all the data ONCE into a Python dictionary and use it in memory. Don't do repeated singleton selects. Use Python. Two. Don't Update. Specifically, Do not do this. It's bad co...
[ -0.006791773252189159, 0.11451172828674316, 0.2852048873901367, -0.10017826408147812, 0.0856630727648735, 0.01736462675035, 0.2033202350139618, -0.21653617918491364, -0.2183588743209839, -0.667415976524353, 0.09281998872756958, 0.9066500067710876, -0.5303727388381958, -0.06558599323034286,...
simple SELECT COUNT or SELECT COUNT(DISTINCT), you're missing some data -- your data model should always provide correct complete counts. Never update.] And. Never build SQL using string substitution. Completely dumb. If, for some reason the `SELECT COUNT(*)` isn't fast enough (benchmark first, before doing anything ...
[ 0.022302420809864998, -0.2812487483024597, 0.43282198905944824, -0.1521703004837036, -0.03661235049366951, -0.2565218508243561, 0.10496445745229721, -0.20316442847251892, -0.2241750806570053, -0.47754722833633423, -0.20064173638820648, 0.6480754017829895, -0.6754586696624756, -0.1042005270...
The values bound in change, but the SQL never changes. This is MUCH faster. Never build SQL statements dynamically. Never.
[ 0.11763130873441696, 0.1691986620426178, 0.13451306521892548, 0.4145052134990692, -0.06692749261856079, -0.33182424306869507, 0.685673713684082, 0.12098760902881622, -0.09815617650747299, -0.33388957381248474, -0.07251432538032532, 0.6218182444572449, -0.558789074420929, 0.1188709735870361...
I'm using this code to let the user enter in names while the program stores them in an array until they enter an empty string (they must press enter after each name): ``` people = [] info = 'a' # must fill variable with something, otherwise loop won't execute while not info.empty? info = gets.chomp people += ...
[ 0.3056246042251587, 0.14951913058757782, 0.2620867192745209, -0.0765383243560791, 0.2994951605796814, 0.10119269043207169, 0.10660240799188614, -0.26701050996780396, -0.36299416422843933, -0.5456986427307129, 0.055724985897541046, 0.44309115409851074, -0.40952348709106445, 0.04947517439723...
info to some random string. Unfortunately this type of loop doesn't seem to exist in Ruby. Can anybody suggest a better way of doing this? **CAUTION**: The `begin <code> end while <condition>` is rejected by Ruby's author Matz. Instead he suggests using `Kernel#loop`, e.g. ``` loop do # some code here break if ...
[ 0.1812952309846878, 0.00907684862613678, -0.06524953991174698, -0.02087511494755745, -0.2945809066295624, -0.36762872338294983, 0.7645846009254456, 0.0012274556793272495, -0.1693834662437439, -0.21643830835819244, -0.01064243633300066, 0.33363571763038635, -0.5715449452400208, 0.5073491930...
<code> end while <cond> works differently from <code> while <cond> ``` [RosettaCode wiki](http://rosettacode.org/wiki/Loops/Do-while#Ruby) has a similar story: > During November 2005, Yukihiro Matsumoto, the creator of Ruby, regretted this loop feature and suggested using Kernel#loop.
[ 0.0923687219619751, -0.2709883749485016, -0.425864040851593, -0.018490739166736603, -0.22846852242946625, 0.0594746433198452, 0.6021561622619629, -0.06136665865778923, 0.05866458639502525, -0.22969350218772888, -0.21302390098571777, 0.30837392807006836, -0.7879078984260559, 0.3134140074253...
In VB.NET (or C#) how can I determine programmatically if a public variable in class helper.vb is used anywhere within a project? From [MSDN](http://msdn.microsoft.com/en-us/library/aa300858(VS.71).aspx) The Find object allows you to search for and replace text in places of the environment that support such operations...
[ 0.32560500502586365, -0.12379812449216843, 0.3329063355922699, 0.06509321182966232, 0.255471408367157, -0.2932349741458893, -0.06462587416172028, -0.12652765214443207, -0.21859531104564667, -0.5168800950050354, -0.1855311393737793, 0.6442832350730896, -0.28551769256591797, -0.0241300910711...
then the **FindDone** Event occurs when the operation completes. ``` Sub ActionExample() Dim objFind As Find = objTextDoc.DTE.Find ' Set the find options. objFind.Action = vsFindAction.vsFindActionFindAll objFind.Backwards = False objFind.FilesOfType = "*.vb" objFind.FindWhat = "<Variable>" objFi...
[ -0.26531389355659485, -0.2794612944126129, 1.034857153892517, -0.18895640969276428, 0.3542780578136444, -0.16084198653697968, 0.3630289137363434, -0.403626024723053, -0.1592208445072174, -0.4921332597732544, -0.4905586540699005, 0.7667148113250732, -0.13281218707561493, -0.087354876101017,...
Sub <System.ContextStaticAttribute()> _ Public WithEvents FindEvents As EnvDTE.FindEvents Public Sub FindEvents_FindDone(ByVal Result As EnvDTE.vsFindResult, _ ByVal Cancelled As Boolean) _ Handles FindEvents.FindDone Select Case Result case vs...
[ -0.4297318458557129, -0.39145058393478394, 0.3516153395175934, 0.005994035862386227, 0.2446056753396988, -0.172962948679924, 0.394648015499115, -0.4509648084640503, -0.08567316830158234, -0.42583709955215454, -0.47501081228256226, 0.4088788628578186, -0.16530917584896088, 0.342222660779953...
'Found! case else 'Not Found Ens select End Sub ```
[ -0.19415250420570374, 0.18463017046451569, 0.42260605096817017, -0.06279879063367844, 0.35615941882133484, -0.17288456857204437, 0.16044285893440247, 0.03336615860462189, -0.07695949077606201, -0.3124151825904846, -0.4625248312950134, 0.1883571296930313, -0.20558176934719086, 0.40282598137...
Is it possible to have a `<div>` simultaneously (1) not take up all available width and (2) collapse margins with its neighbors? I learned recently that setting a `div` to `display:table` will stop it from expanding to take up the whole width of the parent container -- but now I realize that this introduces a new prob...
[ -0.14739207923412323, 0.04431255906820297, 0.4531671106815338, -0.09932450205087662, -0.25637003779411316, -0.07556313276290894, -0.06293988227844238, -0.08280055224895477, -0.3287163972854614, -0.7855325937271118, -0.22531750798225403, 0.10309302806854248, -0.17520122230052948, 0.14337962...
div with 100px margin all around and display:table. <br/> The problem is that it doesn't collapse margins with its neighbors. </div> <p style="margin:100px">This is a paragraph with 100px margin all around.</p> <div style="margin: 100px; border: solid blue 2px; display: block;"> This is a div with 100px margin ...
[ -0.26443958282470703, 0.025047626346349716, 0.6727883219718933, -0.06828118860721588, -0.6195765733718872, 0.07110308110713959, 0.03341182321310043, -0.1965283304452896, -0.12320660799741745, -0.85383141040802, -0.20171865820884705, 0.1605369746685028, -0.22796857357025146, 0.1867333203554...
instead. Nasty, but it works. ``` <p style="margin:100px">This is a paragraph with 100px margin all around.</p> <div style="margin: 100px"><div style="border: solid red 2px; display: table;"> This is a div which had 100px margin all around and display:table, but the margin was moved to a wrapper div. <br/> The ...
[ -0.3170778453350067, 0.03519423305988312, 0.7779484987258911, -0.11966602504253387, -0.5231369733810425, -0.04744981229305267, 0.19197440147399902, -0.014692910015583038, -0.23389588296413422, -0.7938405871391296, -0.20964613556861877, 0.018141580745577812, -0.4042554199695587, 0.250026524...
available width. </div> <p style="margin:100px">This is a paragraph with 100px margin all around.</p> ```
[ 0.03435433655977249, 0.07454586774110794, 0.7637366652488708, 0.0060208458453416824, -0.33640334010124207, -0.017263075336813927, -0.26412802934646606, -0.1419503539800644, -0.18258480727672577, -0.766155481338501, -0.21797038614749908, 0.10169396549463272, 0.12441233545541763, -0.15568576...
In your opinion, is it ever valid to use the @ operator to suppress an error/warning in PHP whereas you may be handling the error? If so, in what circumstances would you use this? Code examples are welcome. Edit: Note to repliers. I'm not looking to turn error reporting off, but, for example, common practice is to u...
[ 0.39999887347221375, 0.2130209356546402, 0.04474736005067825, -0.005750821437686682, -0.07438788563013077, -0.34427982568740845, 0.5562484264373779, 0.04755520820617676, -0.09409025311470032, -0.39347872138023376, 0.10166741162538528, 0.8559536933898926, -0.17020010948181152, -0.1538123339...
CANNOT be handled in any other manner? I would suppress the error **and handle it**. Otherwise you may have a **TOCTOU** issue (Time-of-check, time-of-use. For example a file may get deleted after file\_exists returns true, but before fopen). But I wouldn't just suppress errors to make them go away. These better be vi...
[ 0.3089389204978943, 0.23953242599964142, 0.049129586666822433, 0.12724100053310394, 0.04599647596478462, -0.29990801215171814, 0.6540505290031433, 0.16627153754234314, -0.3699367046356201, -0.7103545069694519, -0.37541428208351135, 0.578592836856842, -0.1928097903728485, 0.3711054623126983...
Is there a way to respond to the back button being hit (or backspace being pressed) in javascript when only the location hash changes? That is to say when the browser is not communicating with the server or reloading the page. Use the [`hashchange`](https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers.o...
[ -0.08542532473802567, -0.04173716902732849, 0.3778897225856781, -0.10252231359481812, -0.05242599919438362, -0.1367737501859665, 0.17682714760303497, -0.05496373772621155, -0.4011145830154419, -0.8512941002845764, -0.2780528962612152, 0.4259350597858429, -0.25870630145072937, -0.1501010209...
What's the difference between using a define statement and an enum statement in C/C++ (and is there any difference when using them with either C or C++)? For example, when should one use ``` enum {BUFFER = 1234}; ``` over ``` #define BUFFER 1234 ``` `enum` defines a syntactical element. `#define` is a pre-pr...
[ 0.3610183298587799, -0.09438565373420715, -0.051315441727638245, -0.06681168079376221, 0.050926126539707184, -0.21300780773162842, 0.026045601814985275, -0.31006377935409546, 0.14750245213508606, -0.5064831376075745, -0.40487703680992126, 0.3794820308685303, -0.3087750971317291, -0.0118571...
This can be hard to track down.
[ 0.34946832060813904, 0.11986386030912399, -0.13150036334991455, 0.14458438754081726, 0.11948265880346298, -0.22287654876708984, 0.2538611888885498, 0.1948162168264389, -0.22511643171310425, -0.3082659840583801, 0.010152896866202354, 0.12701107561588287, 0.08907214552164078, -0.030610488727...
I used to be able to launch a locally installed helper application by registering a given mime-type in the Windows registry. This enabled me to allow users to be able to click once on a link to the current install of our internal browser application. This worked fine in Internet Explorer 5 (most of the time) and Firefo...
[ 0.33990973234176636, 0.2627691328525543, 0.8260920643806458, -0.14770281314849854, 0.2561207115650177, -0.23327691853046417, 0.4089043438434601, 0.1802160143852234, 0.0715038925409317, -0.7716817259788513, -0.25622183084487915, 0.7097564935684204, -0.2444634586572647, 0.2542341947555542, ...
does not resolve to the physical file when calling `FileExists()` or when attempting to create a `TFileStream` object. The physical path is missing the Internet Explorer hidden caching sub-directory for Temporary Internet Files of `"Content.IE5\ALBKHO3Q"` whose absolute path would be expressed as ``` "C:\Document and...
[ -0.21930031478405, 0.17742224037647247, 0.7917519211769104, -0.01762814074754715, 0.2610718607902527, -0.22710928320884705, 0.5909706950187683, 0.06854784488677979, -0.1261940598487854, -0.7001932859420776, -0.5585800409317017, 0.5211295485496521, -0.1966688334941864, 0.1403716653585434, ...
10,000+ users worldwide. The mime helper is only invoked when the user clicks on an internal web page with a link to an installation of our Desktop browser application. That install is served back with a mime-type of `"application/x-expeditors"`. The registration of the `".expd"` / `"application/x-expeditors"` mime-typ...
[ -0.033576466143131256, 0.22741390764713287, 1.043565273284912, -0.09009711444377899, 0.22242818772792816, 0.29403066635131836, 0.45364809036254883, 0.20221789181232452, -0.2019011676311493, -0.5686061978340149, -0.4532386362552643, 0.529295027256012, -0.29944518208503723, -0.03314156830310...
bracketed filename suffix `"[n]"` may be the unique key. I have tried wininet method `GetUrlCacheEntryInfo` but that requires the URL, not the virtual path handed over by IE. My hope is that there is a Shell function that given a virtual path will hand back the physical path. `enum` defines a syntactical element. `#...
[ 0.189872145652771, -0.05685843899846077, 0.22522108256816864, 0.00614574458450079, -0.06650467962026596, -0.18361057341098785, 0.006931154057383537, -0.07566975802183151, 0.2063576728105545, -0.39571401476860046, -0.3142807185649872, 0.6021681427955627, -0.17984658479690552, 0.376879483461...
a `#define` made by another. This can be hard to track down.
[ 0.7279244065284729, 0.26277825236320496, -0.19038349390029907, 0.08555521070957184, -0.11726813018321991, 0.07858739048242569, 0.17274624109268188, -0.020416002720594406, -0.08794340491294861, -0.22279855608940125, -0.2468041479587555, 0.2856898307800293, 0.09279897063970566, 0.64568597078...
I'm using the jQuery Form plugin to upload an image. I've assigned a fade animation to happen the `beforeSubmit` callback, but as I'm running locally, it doesn't have time to finish before the `success` function is called. I am using a callback function in my `fade();` call to make sure that one fade completes, befor...
[ 0.15285268425941467, -0.08790308237075806, 0.5686448216438293, -0.31511950492858887, -0.24718350172042847, -0.1547526866197586, 0.26470673084259033, -0.18118877708911896, -0.0048826029524207115, -0.7843664288520813, -0.1267097294330597, 0.6340323686599731, -0.1728581041097641, 0.0966116562...
userImage.fadeOut(1500, function() { ajaxSpinner.fadeIn(1500); }); } } ``` success: ``` function imageUploaded(data) { var data = evalJson(data); userImage.attr('src', data.large_thumb); ajaxSpinner.fadeOut(1500, function() { userImage.fadeIn(1500); }); } ``` I think you may be getting too f...
[ 0.19233299791812897, -0.1936998963356018, 0.8588209748268127, -0.06383837014436722, -0.15173502266407013, -0.050813499838113785, 0.44081735610961914, -0.32416942715644836, 0.018660282716155052, -0.7697214484214783, -0.17949804663658142, 0.7219379544258118, -0.2740965783596039, -0.068574376...
spinner fadein, and once that is complete triggering the upload. Something like this: ``` if (userImage) { userImage.fadeOut(1500, function() { ajaxSpinner.fadeIn(1500, function(){ //now trigger the upload and you don't need the before submit anymore }); }); } else { // trigger the upload right ...
[ 0.17209064960479736, -0.4801476299762726, 0.8071508407592773, -0.1877308487892151, 0.004674806259572506, -0.40529823303222656, 0.22360895574092865, -0.2182357907295227, 0.035877775400877, -0.4086662530899048, -0.140254408121109, 0.7068451642990112, -0.47529634833335876, 0.12141820788383484...
How can I validate that my ASPNET AJAX installation is correct. I have Visual Studio 2008 and had never previously installed any AJAX version. My UpdatePanel is nto working within IIS6, although it works ok within Visual Studio's web server. The behaviour I get is as if the UpdatePanel doesnt exist at all - i.e. it r...
[ -0.14246653020381927, 0.16103386878967285, 0.4127770960330963, -0.1426878720521927, -0.4548678994178772, -0.020457077771425247, 0.5815129280090332, -0.12828151881694794, -0.34309864044189453, -0.7178789377212524, -0.13406509160995483, 0.721612811088562, -0.14129137992858887, 0.009581292979...
when I run within IIS i only get this single request : ``` http://www.example.com/RRStatistics/ScriptResource.axd?d=f_uL3BYT2usKhP7VtSYNUxxYRLVrX5rhnXUonvvzSEIc1qA5dLOlcdNr9xlkSQcnZKyBHj1nI523o9DjxNr45hRpHF7xxC5WlhImxu9TALw1&t=ffffffff867086f6 ``` Now the second request in Cassini contains a javascript file with 'pa...
[ 0.09874868392944336, 0.004715038929134607, 0.4333094358444214, -0.14139613509178162, -0.31210947036743164, -0.11752661317586899, 0.7299569845199585, 0.07106538861989975, -0.10387711226940155, -0.9053653478622437, -0.383775532245636, 0.4479984641075134, -0.49467775225639343, 0.0124307665973...
earlier versions of emacs from the [nXML web site](http://www.thaiopensource.com/nxml-mode/). There is also a Debian and Ubuntu package named `nxml-mode`. You can enter `nxml-mode` with: ``` M-x nxml-mode ``` You can view nxml mode documentation with: ``` C-h i g (nxml-mode) RET ``` All that being said, you will ...
[ 0.10594101995229721, 0.2840244174003601, 0.6103744506835938, -0.121581070125103, -0.3233097791671753, 0.10118035227060318, 0.19000209867954254, -0.1848822832107544, -0.3372364342212677, -0.5766798853874207, -0.06989778578281403, 0.38146665692329407, -0.5948728919029236, 0.16216515004634857...
general facility to do line breaks on certain xml tags as you want. Note that `C-j` will insert a new line with proper indentation, so you may be able to do a quick macro or hack up a `defun` that will do your tables.
[ 0.18314923346042633, -0.15253856778144836, 0.23062549531459808, 0.2349093109369278, 0.017617054283618927, -0.28053390979766846, 0.1634240448474884, 0.011475295759737492, -0.19206221401691437, -0.5426124930381775, -0.46147969365119934, 0.4454803168773651, -0.028265921398997307, -0.399678528...
I just found myself creating a class called "InstructionBuilderFactoryMapFactory". That's 4 "pattern suffixes" on one class. It immediately reminded me of this: <http://www.jroller.com/landers/entry/the_design_pattern_facade_pattern> Is this a design smell? Should I impose a limit on this number? I know some progra...
[ 0.7245299220085144, -0.035698432475328445, 0.135691836476326, -0.10245431959629059, -0.15849150717258453, 0.017162738367915154, 0.20672689378261566, -0.12495746463537216, -0.17493955790996552, -0.7831316590309143, 0.29022592306137085, 0.2526019215583801, -0.3094078600406647, 0.332761049270...
are created by the factories that are obtained from the map...) And as usual I'm avoiding Singletons. I see it as a design smell - it will make me think if all those levels of abstraction are pulling enough weight. I can't see why you wanted to name a class 'InstructionBuilderFactoryMapFactory'? Are there other kinds ...
[ 0.777752161026001, 0.20610715448856354, -0.21529117226600647, 0.45309683680534363, 0.14814460277557373, 0.17089083790779114, 0.1861116737127304, 0.17602680623531342, -0.3328753411769867, -0.7696933150291443, 0.1295771449804306, 0.24130886793136597, -0.3015132546424866, 0.412380188703537, ...
different factory factories to just a single one and then provide separate methods for creating factories. It is also possible to just put those factory-factory in a different package and give them a more succinct name. Think of alternative ways of doing this.
[ 0.946148157119751, 0.05542758107185364, -0.24997267127037048, 0.047278620302677155, 0.08141713589429855, 0.3076654374599457, -0.009108838625252247, -0.018404630944132805, -0.4623190462589264, -0.48747166991233826, -0.03561892732977867, 0.15558679401874542, -0.44432923197746277, 0.395279645...
What's the best tool for viewing and editing a merge in Git? I'd like to get a 3-way merge view, with "mine", "theirs" and "ancestor" in separate panels, and a fourth "output" panel. Also, instructions for invoking said tool would be great. (I still haven't figure out how to start kdiff3 in such a way that it doesn't ...
[ 0.024264011532068253, -0.10005271434783936, 0.5734578967094421, -0.20161382853984833, -0.31153449416160583, 0.10061203688383102, -0.11519929766654968, 0.3276824653148651, -0.1687566339969635, -1.1174087524414062, -0.13731569051742554, 0.42347121238708496, -0.3536921441555023, 0.34281769394...
<https://meldmerge.org>"
[ -0.057969242334365845, 0.03602916747331619, 0.4850925803184509, -0.11217387020587921, 0.19801543653011322, -0.14023664593696594, 0.16257435083389282, 0.10061553865671158, -0.4716654419898987, -0.09340578317642212, -0.342732310295105, 0.21084719896316528, 0.37840262055397034, 0.186049416661...
I bumped into a strange situation with MSBuild just now. There's a solution which has three projects: LibX, LibY and Exe. Exe references LibX. LibX in its turn references LibY, has some content files, and also references to a third-party library (several pre-built assemblies installed in both GAC and local lib folder)....
[ 0.1326402872800827, 0.2194351702928543, 0.4971059560775757, -0.13693903386592865, -0.24211245775222778, 0.16523849964141846, 0.0015912818489596248, 0.017525989562273026, -0.09405261278152466, -0.6789909601211548, 0.03356524929404259, 0.4438435733318329, -0.4844685196876526, 0.2448428422212...
NO third-party library's assemblies. Now I worked this around by referencing the third-party library directly in Exe project, but I don't feel this is a "right" solution. Anyone had this problem before? Yes, I've had that problem, too. Though I'd love to say otherwise, I believe you must include all transitive depend...
[ 0.6429755091667175, 0.20871369540691376, -0.07348132133483887, 0.06029140576720238, -0.2399786114692688, -0.25826939940452576, 0.40906378626823425, 0.16025570034980774, -0.324081152677536, -0.6274368762969971, 0.09594414383172989, 0.553938627243042, -0.21963369846343994, 0.171378955245018,...
Is it possible to impersonate a user without supplying user name/password? Basically, I'd like to get the `CSIDL_LOCAL_APPDATA` for a user (not the current one) using the `ShGetFolderPath()` function. All I currently have is a SID for that user. No, you have to call Win32 API **LogonUser** function to get windows accou...
[ 0.23444819450378418, -0.064223513007164, 0.26658833026885986, 0.06660421192646027, 0.1300002783536911, -0.2524905204772949, 0.361092746257782, 0.26351267099380493, -0.20604650676250458, -0.807773232460022, 0.1999066025018692, 0.36901313066482544, -0.3191192150115967, 0.2928576171398163, ...