text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
sending](http://msdn.microsoft.com/en-us/library/ms644990.aspx). If your program generates a message event when the desired function is called, this could be a way to detect it. If you are implementing both applications yourself you can chose to use any IPC method you prefer. Network sockets and higher-level socket-ba...
[ 0.19638767838478088, -0.23752273619174957, 0.2731110155582428, 0.04419222101569176, -0.35724595189094543, -0.08867592364549637, 0.12518592178821564, 0.05681367591023445, -0.46203136444091797, -0.6145166158676147, -0.04276648536324501, 0.5215740203857422, -0.4567757844924927, 0.283490896224...
There is a rich scripting model for Microsoft Office, but not so with Apple iWork, and specifically the word processor Pages. While there are some AppleScript hooks, it looks like the best approach is to manipulate the underlying XML data. This turns out to be pretty ugly because (for example) page breaks are stored i...
[ 0.20268620550632477, 0.5134819149971008, -0.0643630400300026, 0.17050863802433014, -0.3337695896625519, -0.00029140370315872133, 0.40214332938194275, 0.007063595578074455, -0.03819797560572624, -0.7039111852645874, -0.254508912563324, 0.44710326194763184, -0.2935384213924408, 0.01653970964...
the text on the page. This is pretty impossible without computing the number of words a page can hold, which seems wildly inelegant. Anybody have any thoughts on this? In order for two applications (separate processes) to exchange events, they must agree on how these events are communicated. There are many different w...
[ 0.21664956212043762, 0.2116917371749878, 0.20982660353183746, 0.31452158093452454, 0.05706044286489487, -0.045808546245098114, -0.060350578278303146, 0.2491016685962677, -0.5084711313247681, -0.7581447958946228, -0.18500439822673798, 0.27569687366485596, -0.26823872327804565, 0.28907242417...
(RPC)](http://en.wikipedia.org/wiki/Remote_procedure_call) and shared memory. On Windows it's also common to use [window messages](http://msdn.microsoft.com/en-us/library/aa931932.aspx). I am not sure how this works for .NET/C# applications on Windows, but in native Win32 applications you can [hook on to the message l...
[ 0.4975050091743469, -0.027157727628946304, 0.01778852567076683, 0.013011563569307327, -0.11633795499801636, -0.25839683413505554, -0.08246462792158127, -0.09610094130039215, -0.5348540544509888, -0.5391975045204163, -0.13917215168476105, 0.7131333947181702, -0.3050999045372009, 0.257816523...
days, as they allow you do run the applications on different physical machines as well (given that they are connected via a network).
[ 0.5464868545532227, -0.1348734050989151, 0.24623516201972961, 0.541901707649231, 0.2943415939807892, -0.1558951437473297, 0.12943968176841736, 0.17948393523693085, -0.5695219039916992, -0.45927584171295166, -0.1792929619550705, 0.24369336664676666, -0.07593929022550583, 0.02395088970661163...
I heard Joel and Jeff talking about [sIFR](http://www.mikeindustries.com/blog/sifr/) in one of the [early podcasts](https://stackoverflow.fogbugz.com/default.asp?W12621). I've been using it on [www.american-data.com](http://www.american-data.com) and [www.chartright.us](http://www.chartright.us) with some fairly mixed ...
[ 0.011169089004397392, 0.10916509479284286, 0.5389813184738159, 0.12558114528656006, -0.1193649023771286, 0.012123365886509418, 0.058664944022893906, 0.5313924551010132, -0.2914581596851349, -0.6433964967727661, 0.07932551950216293, 0.32305631041526794, 0.007791482377797365, 0.0676835477352...
question is: if you use sIFR, when do you use sIFR? In which cases do you disable sIFR? When is it better to just use the browser font? You use sIFR moderately, say for headlines. Try not to use it for links, because links in Flash don't work as well as normal HTML links. It also makes little sense to use sIFR only for...
[ 0.25825679302215576, 0.09817172586917877, 0.6073802709579468, 0.07283183187246323, -0.3281497061252594, -0.3073441982269287, 0.09775619208812714, 0.1602831780910492, -0.24854056537151337, -0.8111047744750977, 0.0876353532075882, 0.6170158982276917, -0.1779755800962448, -0.20215927064418793...
In any case, it always makes sense to test thoroughly. Also, did you look into [sIFR 3](http://novemberborn.net/sifr3) lately? It's much improved over v2.
[ 0.44217807054519653, -0.1112823337316513, 0.36586329340934753, -0.18884675204753876, -0.3196268379688263, -0.5212214589118958, 0.3769359588623047, -0.0944666638970375, -0.19859500229358673, -0.36469927430152893, 0.10013271123170853, 0.46636444330215454, 0.2453586906194687, -0.1160662472248...
I'm thinking in particular of how to display pagination controls, when using a language such as C# or Java. If I have *x* items which I want to display in chunks of *y* per page, how many pages will be needed? Found an elegant solution: ``` int pageCount = (records + recordsPerPage - 1) / recordsPerPage; ``` Source...
[ 0.06209898740053177, 0.19292515516281128, 0.35841605067253113, 0.06142083927989006, -0.11474558711051941, 0.2153557389974594, -0.01832297258079052, -0.34354135394096375, -0.5736531019210815, -0.5535274147987366, -0.1384427547454834, -0.004215365741401911, -0.3943482041358948, -0.1927974969...
Has anyone worked out how to get PowerShell to use `app.config` files? I have a couple of .NET DLL's I'd like to use in one of my scripts but they expect their own config sections to be present in `app.config`/`web.config`. Cross-referencing with this thread, which helped me with the same question: [Subsonic Access To ...
[ -0.1465427726507187, 0.19952704012393951, 0.6837858557701111, 0.06567163020372391, 0.2752954661846161, -0.010313074104487896, 0.2090810388326645, -0.22810305655002594, -0.41162461042404175, -0.5942559242248535, -0.39572417736053467, 0.6532341241836548, -0.367318332195282, -0.25813362002372...
to the running context.
[ 0.23782435059547424, -0.12162288278341293, 0.03939500078558922, 0.0074043902568519115, 0.014900840818881989, 0.08266350626945496, 0.05780274048447609, 0.09877955913543701, 0.021306226029992104, -0.33626890182495117, -0.3172236382961273, 0.5028257966041565, -0.09439948201179504, -0.13321930...
I have a process in Linux that's getting a segmentation fault. How can I tell it to generate a core dump when it fails? This depends on what shell you are using. If you are using bash, then the ulimit command controls several settings relating to program execution, such as whether you should dump core. If you type ```...
[ 0.40543854236602783, -0.10851088166236877, -0.04059181734919548, -0.09551163017749786, 0.06250739842653275, -0.10311133414506912, 0.03460441529750824, -0.18324582278728485, -0.44311827421188354, -0.43511155247688293, -0.10528518259525299, 0.8294376134872437, -0.31119102239608765, 0.0549033...
probably never be an issue for you. In tcsh, you'd type ``` limit coredumpsize unlimited ```
[ 0.4764269292354584, 0.020469745621085167, 0.30698463320732117, 0.19540567696094513, 0.3723171353340149, -0.4723058342933655, -0.0018211838323622942, 0.5571995377540588, -0.2083715945482254, -0.5137822031974792, -0.19915860891342163, 0.5419256091117859, -0.17760182917118073, 0.3361393213272...
I've been asked to write a Windows service in C# to periodically monitor an email inbox and insert the details of any messages received into a database table. My instinct is to do this via POP3 and sure enough, Googling for ".NET POP3 component" produces countless (ok, 146,000) results. Has anybody done anything simi...
[ 0.5824782848358154, 0.20507246255874634, 0.04803096130490303, 0.1395529955625534, -0.16647793352603912, 0.22184260189533234, 0.07486021518707275, 0.31130000948905945, -0.1498686969280243, -0.6904186010360718, 0.2906937897205353, 0.22668665647506714, -0.12893067300319672, 0.2994748651981354...
a single developer. Personally, I think going with the whole package of components is a better deal, as it's only $289, and comes with many useful components. I'm not affiliated with them in any way, although I probably sound like I am.
[ 0.7549239993095398, 0.49642214179039, -0.23288358747959137, 0.2717326283454895, -0.057123612612485886, 0.030856160447001457, 0.032267484813928604, 0.03483311086893082, 0.08387673646211624, -0.2533685564994812, 0.14223536849021912, 0.5209420323371887, 0.01638559065759182, 0.0257070045918226...
How do I create a self signed SSL certificate for an Apache Server to use while testing a web app? > **How do I create a self-signed SSL > Certificate for testing purposes?** from [http://httpd.apache.org/docs/2.0/ssl/ssl\_faq.html#selfcert](http://httpd.apache.org/docs/2.0/ssl/ssl_faq.html#selfcert "How do I create ...
[ 0.37935999035835266, 0.2709333002567291, 0.5744150280952454, 0.1260668933391571, -0.08577803522348404, -0.4247960150241852, 0.29899290204048157, -0.47783100605010986, 0.040586382150650024, -0.6930599212646484, 0.025666186586022377, 0.3018365502357483, -0.07976903021335602, 0.02667580544948...
add a passphrase to the key, you should run the following command, and enter & verify the passphrase as requested. ``` openssl rsa -des3 -in server.key -out server.key.new mv server.key.new server.key ``` Please backup the server.key file, and the passphrase you entered, in a secure location.
[ -0.001511160284280777, 0.0053222402930259705, 0.8851346373558044, 0.05325188860297203, 0.013173713348805904, -0.38019365072250366, 0.6628143787384033, -0.3192565143108368, -0.1462620198726654, -0.675838828086853, -0.5352266430854797, 0.41906052827835083, -0.4221755564212799, 0.006786733400...
Are there any open source (or I guess commercial) packages that you can plug into your site for monitoring purposes? I'd like something that we can hook up to our ASP.NET site and use to provide reporting on things like: * performance over time * current load * page traffic * SQL performance * PU time monitoring Idea...
[ 0.8219653367996216, -0.14089590311050415, 0.34216493368148804, 0.5414607524871826, 0.009145337156951427, -0.30296462774276733, 0.2676457166671753, 0.2927801012992859, -0.5002696514129639, -0.4980003833770752, 0.20515693724155426, 0.4373319745063782, -0.11045429855585098, -0.342096686363220...
"low number of API calls detected") and generally be very useful indeed. Does such a thing exist? At my last office we had a big screen which showed us loads and loads of performance counters over a couple of time ranges, and we could spot weird stuff happening, but the data was not stored and there was no way to repo...
[ 0.5586267113685608, 0.013595633208751678, 0.15652841329574585, 0.01997506618499756, 0.05496477708220482, -0.03930521383881569, 0.46854352951049805, 0.3339686393737793, -0.2578704059123993, -0.464566171169281, 0.314784973859787, 0.16207638382911682, 0.1325782686471939, 0.008516568690538406,...
What's the cleanest, most effective way to validate decimal numbers in JavaScript? Bonus points for: 1. Clarity. Solution should be clean and simple. 2. Cross-platform. Test cases: ``` 01. IsNumeric('-1') => true 02. IsNumeric('-1.5') => true 03. IsNumeric('0') => true 04. IsNumeric('0.42') => true...
[ -0.34582364559173584, 0.11885529011487961, 0.4518633782863617, 0.36504805088043213, -0.22357867658138275, 0.2452896237373352, 0.5185377597808838, -0.501477837562561, 0.049559179693460464, -0.32211044430732727, -0.07486633956432343, 0.35950231552124023, 0.22716759145259857, -0.2146110236644...
in the following cases: ``` // Whitespace strings: IsNumeric(' ') == true; IsNumeric('\t\t') == true; IsNumeric('\n\r') == true; // Number literals: IsNumeric(-1) == false; IsNumeric(0) == false; IsNumeric(1.1) == false; IsNumeric(8e5) == false; ``` Some time ago I had to implement an `IsNumeric` function, to...
[ -0.30313214659690857, -0.06659334897994995, 0.099137082695961, -0.1356816589832306, -0.028084319084882736, 0.055487893521785736, 0.17021878063678741, -0.31963589787483215, -0.06784521788358688, -0.22693483531475067, -0.1381874680519104, 0.5092008709907532, -0.2222338616847992, 0.0445870384...
as `"numeric"`). I think is worth sharing this set of [**+30 unit tests**](http://run.plnkr.co/plunks/93FPpacuIcXqqKMecLdk/) made to numerous function implementations, and also share the one that passes all my tests: ``` function isNumeric(n) { return !isNaN(parseFloat(n)) && isFinite(n); } ``` **P.S.** [isNaN]...
[ -0.5021989941596985, -0.08846314996480942, 0.5280805230140686, -0.23661093413829803, 0.16848479211330414, 0.15320917963981628, -0.03227836266160011, -0.1745009422302246, -0.2498810589313507, -0.4710524082183838, -0.12879100441932678, 0.7470176219940186, -0.16668683290481567, 0.029969336465...
4.3](https://github.com/angular/angular/blob/4.3.x/packages/common/src/pipes/number_pipe.ts#L172): ``` export function isNumeric(value: any): boolean { return !isNaN(value - parseFloat(value)); } ```
[ -0.20515771210193634, -0.08003789931535721, 0.406551331281662, -0.46983662247657776, 0.024791117757558823, 0.18856211006641388, -0.168289914727211, -0.2853885889053345, -0.18403896689414978, -0.10952527076005936, -0.37809696793556213, 0.6064117550849915, -0.41934260725975037, 0.06382505595...
We are investigating using CruiseControl.NET as both a Continues Integration build provider, as well as automating the first part of our deployment process. Has anyone modified CruiseControl.NET's dashboard to add custom login and user roles (IE, Separate out access to forcing a build to only certain individuals on a ...
[ 0.2901970148086548, -0.3235420882701874, 0.5487909913063049, 0.3658977448940277, 0.4374164342880249, -0.2615547478199005, 0.07318934798240662, 0.05809161812067032, -0.26337379217147827, -0.5495771765708923, 0.3713850975036621, 0.7062486410140991, 0.1298416405916214, -0.22768981754779816, ...
limit users in the way with an integration server. I think that's why CC.Net doesn't have that sort of support built in. You can always see who forced a build, and control it that way. I find that continuous integration works best with regular builds and regular unit test runs (our rather large C# app + test run take...
[ 0.449873149394989, 0.04099695757031441, 0.09743290394544601, 0.019369306042790413, -0.23517926037311554, -0.2571154832839966, 0.454600989818573, -0.17353445291519165, -0.2630968391895294, -0.307982474565506, 0.1828518956899643, 0.6494947075843811, -0.28065595030784607, 0.16823770105838776,...
results (MSBuild, NCover, NUnit, FxCop, etc) are in XML, so you can build relativity simple report pages out of XSLT.
[ -0.1069987341761589, -0.1194215640425682, 0.7176485061645508, 0.4029769003391266, -0.2339773029088974, -0.11721964180469513, -0.15341658890247345, -0.2748670279979706, -0.3214358687400818, -0.507179856300354, -0.3160991966724396, 0.13167239725589752, -0.13839192688465118, -0.05819946900010...
In C#, if I have an inherited class with a default constructor, do I have to explicitly call the base class' constructor or will it be implicitly called? ``` class BaseClass { public BaseClass() { // ... some code } } class MyClass : BaseClass { public MyClass() // Do I need to put ": base()" h...
[ 0.039831362664699554, -0.0316547229886055, 0.009895997121930122, -0.27755242586135864, 0.009519879706203938, -0.20489752292633057, 0.11334116756916046, 0.018111389130353928, -0.05733150243759155, -0.2734440863132477, -0.3914872109889984, 0.7538352012634277, -0.3333039879798889, -0.25119674...
base constructor, it will be implicitly called. Extend your example a little and create a Console Application and you can verify this behaviour for yourself: ``` using System; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { MyClass foo = new MyCla...
[ 0.2230028510093689, -0.10952667146921158, 0.3111514747142792, -0.17882275581359863, 0.07975584268569946, 0.05300614610314369, 0.30064237117767334, -0.2024516463279724, -0.053059473633766174, -0.43031612038612366, 0.0807868242263794, 0.5713663101196289, -0.3531303405761719, 0.17950022220611...
{ public BaseClass() { Console.WriteLine("BaseClass constructor called."); } } class MyClass : BaseClass { public MyClass() { Console.WriteLine("MyClass constructor called."); } } } ```
[ -0.3241942524909973, -0.03676110506057739, 0.08938281238079071, 0.0030932603403925896, 0.16821512579917908, 0.03241218253970146, 0.22640655934810638, 0.17116674780845642, 0.15294857323169708, -0.498361736536026, -0.20350384712219238, 0.46096882224082947, -0.251204252243042, 0.2683693170547...
I am looking for a robust way to copy files over a Windows network share that is tolerant of intermittent connectivity. The application is often used on wireless, mobile workstations in large hospitals, and I'm assuming connectivity can be lost either momentarily or for several minutes at a time. The files involved are...
[ 0.4834348261356354, 0.3587002754211426, 0.5260657072067261, 0.11207165569067001, 0.19956496357917786, -0.17131184041500092, 0.40747836232185364, 0.1796683818101883, -0.1940336674451828, -0.8086743354797363, 0.005281583871692419, 0.4956222474575043, -0.09423091262578964, 0.3387017548084259,...
sizes, that doesn't seem like it'd be that big of a deal)? If so, look at [CopyFileEx with COPYFILERESTARTABLE](http://msdn.microsoft.com/en-us/library/aa363852.aspx) * Do you want verifiable copies? Sounds like you already have that by verifying hashes. * Do you want better performance? It's going to be tough, as it s...
[ 0.28003644943237305, -0.08136457204818726, 0.3707773685455322, 0.3013903498649597, 0.15631116926670074, -0.2837147116661072, 0.38840654492378235, -0.05176506191492081, -0.6830363273620605, -0.7853855490684509, -0.18073061108589172, 0.6146289706230164, -0.0698876604437828, -0.02416830323636...
your answer. Based on what I know so far, I think the following pseudo-code would be my approach: ``` sourceFile = Compress("*.*"); destFile = "X:\files.zip"; int copyFlags = COPYFILEFAILIFEXISTS | COPYFILERESTARTABLE; while (CopyFileEx(sourceFile, destFile, null, null, false, copyFlags) == 0) { do { // opti...
[ 0.5488408207893372, 0.04261869937181473, 0.5749105215072632, 0.03742527961730957, 0.4372728168964386, 0.023575978353619576, 0.3985674977302551, -0.3284648358821869, -0.2922620177268982, -0.7600562572479248, -0.2692883610725403, 0.7727436423301697, -0.24678818881511688, 0.21211999654769897,...
at the expense of some CPU power on both sides. A simple batch file can decompress it on the server side.
[ -0.12838312983512878, 0.12041039019823074, 0.07281288504600525, 0.14298115670681, 0.4063900411128998, -0.06565383821725845, 0.1504758596420288, -0.021270083263516426, -0.1836233139038086, -0.3449903130531311, -0.551264226436615, 0.04362243413925171, -0.12370675057172775, 0.2999068796634674...
So I'm getting a new job working with databases (Microsoft SQL Server to be precise). I know nothing about SQL much less SQL Server. They said they'd train me, but I want to take some initiative to learn about it on my own to be ahead. Where's the best place to start (tutorials, books, etc)? I want to learn more about ...
[ 1.1067622900009155, 0.5024139285087585, -0.00785146839916706, 0.2988552749156952, 0.21734023094177246, -0.35025814175605774, 0.02058001607656479, 0.4626736342906952, -0.26563534140586853, -0.6163156032562256, 0.026450330391526222, 0.4944281578063965, 0.03172294422984123, -0.078271105885505...
you see his name on an article or a book about SQL, read it.
[ 0.4706503450870514, 0.41195130348205566, -0.2356688678264618, 0.41437292098999023, -0.15182150900363922, -0.4027358293533325, -0.014839907176792622, 0.7072274088859558, -0.21365641057491302, -0.23223860561847687, -0.33112162351608276, 0.08143987506628036, -0.04400680214166641, 0.1040004417...
What methods are there for automatically getting a stack trace on Unix systems? I don't mean just getting a core file or attaching interactively with GDB, but having a SIGSEGV handler that dumps a backtrace to a text file. Bonus points for the following optional features: * Extra information gathering at crash time ...
[ 0.3112553358078003, -0.08230291306972504, 0.20073392987251282, 0.34363457560539246, -0.10036098212003708, -0.46035370230674744, 0.15392526984214783, -0.33983415365219116, -0.4217298924922943, -0.5776243209838867, 0.14085611701011658, 0.6654160618782043, -0.17837314307689667, -0.34874808788...
handler. For example ([`backtrace` code derived from IBM example](http://www-128.ibm.com/developerworks/linux/library/l-cppexcep.html?ca=dgr-lnxw07ExceptionTricks)): ```c #include <execinfo.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> void sig_handler(int sig) { void * array[25]; int nSize ...
[ 0.2304072231054306, -0.4748166501522064, 0.1378641426563263, -0.30582791566848755, -0.14571337401866913, 0.25410738587379456, 0.2862735390663147, -0.5940914154052734, -0.22455544769763947, -0.6286312937736511, -0.09403226524591446, 0.3102758824825287, -0.5190850496292114, -0.01431336719542...
&sig_handler); f(); } ``` Output: ``` 0 a.out 0x00001f2d sig_handler + 35 1 libSystem.B.dylib 0x95f8f09b _sigtramp + 43 2 ???
[ -0.3259199559688568, -0.07871038466691971, 0.4446135461330414, -0.3919558525085449, 0.11074385792016983, 0.08514122664928436, 0.2520686686038971, -0.4604935944080353, -0.229802668094635, -0.3575851023197174, -0.36981675028800964, 0.3461776375770569, -0.5818776488304138, 0.01467900816351175...
0xffffffff 0x0 + 4294967295 3 a.out 0x00001fb1 h + 26 4 a.out 0x00001fbe g + 11 5 a.out
[ -0.10514475405216217, 0.3193491995334625, 0.8033428192138672, -0.1565779745578766, -0.27324119210243225, 0.028061334043741226, 0.386068731546402, -0.6770899891853333, -0.0685940682888031, -0.005910146981477737, -0.29782599210739136, 0.046012818813323975, -0.5527655482292175, 0.254685461521...
0x00001fcb f + 11 6 a.out 0x00001ff5 main + 40 7 a.out 0x00001ede start + 54 ``` This doesn't get bonus points for the optional features (except
[ -0.2801695168018341, 0.2001461684703827, 0.6392452120780945, -0.28271397948265076, 0.152456596493721, -0.27411967515945435, 0.24350017309188843, -0.2936161756515503, -0.0337885320186615, -0.13165156543254852, -0.4163530468940735, 0.4838119447231293, -0.2646820545196533, 0.1570146232843399,...
not requiring a GUI), however, it does have the advantage of being very simple, and not requiring any additional libraries or programs.
[ -0.10090041160583496, 0.10850884765386581, 0.27097761631011963, 0.2896042466163635, 0.11964859068393707, -0.28757384419441223, 0.0233807023614645, -0.02779599465429783, 0.020726844668388367, -0.6600337028503418, -0.4127024710178375, 0.7374646067619324, -0.12494977563619614, -0.295389354228...
I'm a long time hobbyist programmer interested in getting into web application development. I have a fair amount of personal experience with various non-web languages, but have never really branched over to web applications. I don't usually have any issues learning new languages or technologies, so I'm not worried abo...
[ 0.7162447571754456, 0.5002590417861938, -0.241866797208786, 0.040706880390644073, 0.19263364374637604, -0.11731541156768799, 0.3127821981906891, 0.46692895889282227, -0.2473355084657669, -0.6791125535964966, -0.052937399595975876, 0.6156514883041382, 0.117406465113163, -0.06143154948949814...
would you recommend for a Standalone Application Developer wanting to branch out into Web Development? There is a wide variety of web application languages you could get into. The ones I have most experience with (and therefore will be talking about here) are PHP, eRuby and Ruby on Rails. All of these have good tutoria...
[ 0.5161777138710022, 0.048090752214193344, -0.3138452172279358, 0.20730625092983246, -0.08936373144388199, 0.24447546899318695, 0.1476271152496338, 0.3302801251411438, -0.3920191526412964, -0.6285854578018188, 0.2643287479877472, 0.7401366829872131, -0.11983050405979156, -0.2867370545864105...
but can also be dangerous if you don't know what you're doing). Ruby on Rails is good for doing database related things - for example the standard CRUD (Create, Read, Update, Delete) application. The standard kind of app Ruby on Rails (often abbreviated to RoR) tutorials teach you is a blog application (Create entries,...
[ 0.3507189452648163, -0.15683723986148834, 0.1901979297399521, 0.3997267186641693, 0.005484400317072868, -0.2385069727897644, 0.33743563294410706, 0.07885618507862091, -0.26981014013290405, -0.3589673340320587, -0.021649427711963654, 0.6946805715560913, -0.058253444731235504, -0.42243656516...
can be better in some situations. PHP is more well known and used than eRuby, but I like the Ruby language so I tend to like using eRuby. These are both good for doing simple applications (like contact forms on websites) or more complex applications (phpBB - a piece of forum software is written in php). As for which o...
[ 0.538174569606781, 0.050981901586055756, 0.0925527811050415, 0.21099036931991577, -0.3471003770828247, -0.167441263794899, 0.21679967641830444, 0.3612496256828308, -0.2581857442855835, -0.5512562990188599, 0.15033383667469025, 0.6958720684051514, 0.04042588919401169, -0.2851361334323883, ...
[PHP 101](http://devzone.zend.com/node/view/id/627) * [PHP Intro from W3Schools](http://www.w3schools.com/php/php_intro.asp) **eRuby** * [Beginning eRuby](http://www.osix.net/modules/article/?id=384) - not great, but shows you how you can embed it in HTML * [Try Ruby in your Browser](http://tryruby.hobix.com/) - help...
[ 0.11291679739952087, 0.06452557444572449, 0.314876526594162, 0.10875898599624634, -0.3806711435317993, -0.052637796849012375, 0.560509443283081, -0.07662718743085861, -0.17019054293632507, -0.5803915858268738, 0.0747452974319458, 0.5815483331680298, 0.30495136976242065, -0.1594846099615097...
(webserver), MySQL (db) and PHP installed on windows is to use [XAMPP](http://www.apachefriends.org/en/xampp.html). If you're on linux then apache, mysql and php will be in your package repositories and there may be distro specific guides to setting them up.
[ 0.2623775899410248, 0.09610714763402939, 0.43977925181388855, 0.19342763721942902, -0.16246899962425232, -0.21720527112483978, -0.006849236786365509, 0.006432061083614826, -0.3286830186843872, -0.6954630017280579, -0.38566726446151733, 0.4645500183105469, -0.1293003112077713, -0.0422829352...
I'm wondering how the few Delphi users here are doing unit testing, if any? Is there anything that integrates with the IDE that you've found works well? If not, what tools are you using and do you have or know of example mini-projects that demonstrate how it all works? ### Update: I forgot to mention that I'm using B...
[ 0.2567744851112366, -0.251798152923584, 0.059730421751737595, -0.1362573355436325, -0.4253925383090973, -0.2792545258998871, -0.03002660721540451, -0.11376970261335373, 0.26861175894737244, -0.5122291445732117, 0.1887408047914505, 0.8662441372871399, -0.11152676492929459, -0.10781686007976...
the IDE. Other DUnit integration tools for the Delphi IDE can be found [here](http://www.elvenware.com/charlie/conferences/2004/talks/UnitTests/dunit/test_tools/index.html). DUnit comes with [documentation with examples](http://dunit.sourceforge.net/README.html).
[ 0.41277334094047546, -0.18983303010463715, -0.026644734665751457, -0.2495911866426468, -0.5097531080245972, -0.3368084132671356, 0.07751669734716415, -0.589754045009613, 0.3442572355270386, -0.34795939922332764, -0.1706734597682953, 0.5857659578323364, -0.15498356521129608, -0.311029940843...
Trying to setup an SSH server on Windows Server 2003. What are some good ones? Preferably open source. I plan on using WinSCP as a client so a server which supports the advanced features implemented by that client would be great. I've been using [Bitvise SSH Server](http://www.bitvise.com/winsshd) and it's really great...
[ 0.20842964947223663, 0.00422340352088213, 0.1930920034646988, 0.008838718757033348, -0.2623748779296875, -0.43989938497543335, 0.3781481981277466, 0.14589788019657135, -0.24243178963661194, -0.9445089101791382, 0.079111747443676, 0.45508891344070435, -0.43059778213500977, 0.140984922647476...
still work with the Open Source SSH clients. It's not Open Source and it costs $39.95, but I think it's worth it. **UPDATE** *2009-05-21 11:10*: The pricing has changed. The current price is $99.95 per install for commercial, but now free for non-commercial/personal use. Here is the current [pricing](http://www.bitvi...
[ 0.899183988571167, -0.44462981820106506, 0.8583316802978516, 0.09008441120386124, 0.014316207729279995, -0.12450996041297913, 0.38229843974113464, 0.21288783848285675, -0.030901087448000908, -0.6153858304023743, 0.1352321207523346, 0.7141634225845337, 0.06998410820960999, 0.162613242864608...
Can somebody point me to a resource that explains how to go about having 2+ IIS web server clustered (or Webfarm not sure what its called) ? All I need is something basic, an overview how and where to start. Can't seem to find anything... What you're after is called Load Balancing. <http://www.microsoft.com/technet/p...
[ 0.11215215921401978, -0.08559365570545197, 0.0310211181640625, 0.16164399683475494, 0.004994739778339863, -0.13501116633415222, 0.11639934033155441, -0.1588667929172516, -0.3225480318069458, -0.540408730506897, 0.07696333527565002, 0.3766888380050659, -0.0690358355641365, -0.00026101444382...
In an application that I am currently working on, a requirement is to bring a window of an external application to the foreground. Making Win32 API calls such as BringWindowToTop and SetForeground window do not work all the time. This is due to some restrictions within Windows XP. What I would like to do instead is sen...
[ 0.7377175688743591, -0.5897151827812195, 0.057675134390592575, 0.08028827607631683, 0.167028546333313, -0.3166949450969696, 0.18627683818340302, 0.20423777401447296, 0.0942678451538086, -0.40182816982269287, -0.020621949806809425, 0.8580310940742493, -0.19197791814804077, -0.09833523631095...
what you need. I wouldn't go the taskbar route as the taskbar could be hidden or simply not there.
[ 0.2874932885169983, -0.18165364861488342, -0.07241974771022797, 0.27562546730041504, 0.2595744729042053, 0.29701802134513855, 0.19887851178646088, 0.12054607272148132, -0.00959195476025343, -0.39758625626564026, 0.08580473065376282, 0.6442424058914185, -0.10530556738376617, -0.114970937371...
I've found myself increasingly unsatisfied with the DataSet/DataTable/DataRow paradigm in .Net, mostly because it's often a couple of steps more complicated than what I really want to do. In cases where I'm binding to controls, DataSets are fine. But in other cases, there seems to be a fair amount of mental overhead. ...
[ 0.3298604488372803, -0.10990224778652191, 0.22191712260246277, 0.3102027475833893, -0.26299548149108887, -0.32637277245521545, 0.11923858523368835, -0.0001613046770216897, -0.25361132621765137, -0.6839284300804138, 0.2875690758228302, 0.4844263195991516, 0.03895365074276924, 0.200048923492...
just uses DataSet by default. Maybe that and DataReader really are the best options. I'm not looking for a best/worst breakdown, just curious what my options are and what experiences you've had with them. Thanks! -Eric Sipple Since .NET 3.5 came out, I've exclusively used LINQ. It's really that good; I don't see any ...
[ 0.41493716835975647, -0.1820310652256012, 0.11667943000793457, 0.13529670238494873, -0.16089418530464172, -0.11000054329633713, 0.13676737248897552, 0.736962616443634, -0.17686663568019867, -0.7598032355308533, 0.04136161506175995, 0.717803955078125, -0.04238516464829445, -0.11819270253181...
### Update: Solved, with code [I got it working, see my answer below for the code...](https://stackoverflow.com/questions/18585/why-cant-you-bind-the-size-of-a-windows-form-to-applicationsettings#19056) ### Original Post As Tundey pointed out in [his answer](https://stackoverflow.com/questions/18421/best-way-to-bind...
[ -0.15428385138511658, 0.12599414587020874, 0.6399684548377991, -0.008859426714479923, -0.07553596049547195, -0.2790190875530243, 0.32278305292129517, -0.34617486596107483, -0.34154337644577026, -0.6118664145469666, -0.3386843204498291, 0.39582645893096924, -0.39617589116096497, -0.03245472...
if (this.WindowState == FormWindowState.Normal) { return this.Size; } else { return this.RestoreBounds.Size; } } set { ... } } ``` But I can't
[ 0.2360890656709671, -0.13302035629749298, 0.5944928526878357, -0.2530106008052826, 0.2798921763896942, -0.14956392347812653, 0.7676090002059937, -0.33569616079330444, 0.12283194065093994, -0.44432494044303894, -0.3269530236721039, 0.788508951663971, -0.25603988766670227, 0.240564227104187,...
see a way to bind this in the designer (Size is notably missing from the PropertyBinding list). I finally came up with a Form subclass that solves this, once and for all. To use it: 1. Inherit from RestorableForm instead of Form. 2. Add a binding in (ApplicationSettings) -> (PropertyBinding) to WindowRestoreState. 3. ...
[ 0.296175479888916, -0.14503468573093414, 0.7107176780700684, -0.09189902991056442, -0.10172171890735626, -0.2871493399143219, 0.38426488637924194, -0.3112241327762604, -0.21004383265972137, -0.8896767497062683, -0.1070830300450325, 0.5176425576210022, -0.14828787744045258, 0.27486893534660...
you want, you can even tell // your boss, attractive women, or the other guy in your cube that // you wrote it. Enjoy! using System; using System.Windows.Forms; using System.ComponentModel; using System.Drawing; namespace Utilities { public class RestorableForm : Form, INotifyPropertyChanged { // We i...
[ 0.09607192873954773, -0.39643457531929016, 0.8107848167419434, -0.02136625163257122, 0.22199302911758423, -0.2147015482187271, 0.31248268485069275, -0.23075366020202637, -0.1347457319498062, -0.5451058745384216, -0.44560790061950684, 0.66874098777771, -0.17402087152004242, 0.17032429575920...
// Now we define the property that we will bind to our settings. [Browsable(false)] // Don't show it in the Properties list [SettingsBindable(true)] // But do enable binding to settings public WindowRestoreStateInfo WindowRestoreState { get { return windowRestoreState...
[ 0.06781616806983948, -0.17495696246623993, 0.8200418949127197, 0.006093415431678295, 0.18712332844734192, -0.23432011902332306, 0.3816816210746765, -0.12334458529949188, -0.029479211196303368, -0.8728455901145935, -0.26566097140312195, 0.6605267524719238, -0.3287411630153656, 0.18042515218...
set { windowRestoreState = value; if (PropertyChanged != null) { // If anybody's listening, let them know the
[ 0.565494179725647, -0.1889995038509369, 0.2785676121711731, -0.023073706775903702, 0.28961026668548584, -0.2055124193429947, 0.6499055624008179, 0.00732277799397707, -0.06783051788806915, -0.5088186860084534, -0.4245131015777588, 0.8529030680656433, -0.14164051413536072, -0.007024111226201...
// binding needs to be updated: PropertyChanged(this, new PropertyChangedEventArgs("WindowRestoreState")); } } }
[ -0.10424485057592392, -0.08002480864524841, 0.5978841781616211, -0.1407703459262848, 0.1276780068874359, -0.3267360329627991, 0.21720606088638306, -0.17974941432476044, -0.1514507532119751, -0.6375530958175659, -0.19420699775218964, 0.6412495970726013, -0.20780500769615173, 0.2140741944313...
protected override void OnClosing(CancelEventArgs e) { WindowRestoreState = new WindowRestoreStateInfo(); WindowRestoreState.Bounds = WindowState == FormWindowState.Normal ? Bounds : RestoreBounds; WindowRestoreState.WindowState = WindowState...
[ -0.15424086153507233, -0.3200753927230835, 0.5038997530937195, -0.20079104602336884, 0.6477282643318176, -0.14023958146572113, 0.6488721966743469, -0.17020082473754883, 0.17513172328472137, -0.27114492654800415, -0.6244369149208069, 0.7128646373748779, -0.3959900438785553, 0.18672312796115...
base.OnClosing(e); } protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (WindowRestoreState != null) { Bounds = ConstrainToScreen(WindowRestoreState.Bounds);
[ -0.36639928817749023, -0.4784027934074402, 0.40213078260421753, -0.36770302057266235, 0.4985455870628357, -0.020989680662751198, 0.48988133668899536, -0.11456289142370224, -0.033247120678424835, -0.5640682578086853, -0.5532347559928894, 0.7188915014266968, -0.5509847402572632, -0.012469598...
WindowState = WindowRestoreState.WindowState; } } // This helper class stores both position and state. // That way, we only have to set one binding. public class WindowRestoreStateInfo { Rectangle bounds;
[ -0.07586651295423508, -0.29265913367271423, 0.5985185503959656, -0.3402957320213318, 0.13419277966022491, 0.049587905406951904, 0.13456173241138458, -0.3366428017616272, 0.11106184870004654, -0.7807405591011047, -0.14144213497638702, 0.6269596219062805, -0.456405371427536, 0.13853915035724...
public Rectangle Bounds { get { return bounds; } set { bounds = value; } } FormWindowState windowState;
[ -0.09373738616704941, -0.493702232837677, 0.33981332182884216, -0.1581639051437378, 0.06860960274934769, -0.31096768379211426, 0.17278894782066345, -0.3922211527824402, 0.187849223613739, -0.5526310801506042, -0.3819586932659149, 0.37813305854797363, -0.4466557800769806, -0.039252612739801...
public FormWindowState WindowState { get { return windowState; } set { windowState = value; } } } private Rectangle ConstrainToScreen(Rectangle bounds) {
[ -0.042944326996803284, -0.6526223421096802, 0.5950105786323547, -0.12262459099292755, 0.06281693279743195, -0.04137546196579933, 0.18783017992973328, -0.19917404651641846, 0.11392796784639359, -0.6772276759147644, -0.3062840700149536, 0.6321226358413696, -0.5466739535331726, -0.05724348500...
Screen screen = Screen.FromRectangle(WindowRestoreState.Bounds); Rectangle workingArea = screen.WorkingArea; int width = Math.Min(bounds.Width, workingArea.Width); int height = Math.Min(bounds.Height, workingArea.Height); // mmm....minimax int left = Math.Mi...
[ -0.13481421768665314, -0.15829385817050934, 0.6574180126190186, -0.25293728709220886, 0.26267609000205994, 0.47746482491493225, 0.2903369069099426, -0.07793867588043213, -0.3298971354961395, -0.8392432332038879, -0.29557105898857117, 0.3214864730834961, -0.09277708828449249, 0.096640244126...
Math.Max(bounds.Left, workingArea.Left)); int top = Math.Min(workingArea.Bottom - height, Math.Max(bounds.Top, workingArea.Top)); return new Rectangle(left, top, width, height); }
[ -0.43815675377845764, -0.19579589366912842, 0.5302208662033081, -0.04663272947072983, 0.14682723581790924, 0.29079386591911316, 0.34809282422065735, -0.30809542536735535, -0.1989772468805313, -0.4774293005466461, -0.5349209904670715, 0.4565485119819641, -0.03419635072350502, -0.05158473178...
} } ``` ### Settings Bindings References * [SettingsBindableAttribute](http://msdn.microsoft.com/en-us/library/system.componentmodel.settingsbindableattribute.aspx) * [INotifyPropertyChanged](http://msdn.microsoft.com/en-us/library/system.componentmodel.inotifypropertychanged.aspx)
[ -0.2038591057062149, -0.07526474446058273, 0.5324933528900146, 0.11452898383140564, 0.22966615855693817, 0.0635833814740181, 0.21820242702960968, -0.2279648631811142, -0.19182783365249634, -0.5670486688613892, -0.3132926821708679, 0.7988911271095276, -0.4241155982017517, -0.116987831890583...
Anyone know a quick easy way to migrate a SQLite3 database to MySQL? Here is a list of converters (not updated since 2011): * <https://www2.sqlite.org/cvstrac/wiki?p=ConverterTools> (or [snapshot at archive.org](https://web.archive.org/web/20160716191418/https://www.sqlite.org/cvstrac/wiki?p=ConverterTools)) --- An ...
[ 0.05474751442670822, 0.06059316545724869, 0.33284929394721985, 0.06719636172056198, -0.1884589046239853, 0.05058751627802849, 0.05605888366699219, -0.009964416734874249, -0.39281749725341797, -0.6852529048919678, 0.08774309605360031, 0.5264161825180054, -0.2711949348449707, 0.0405511073768...
Our company is currently writing a GUI automation testing tool for compact framework applications. We have initially searched many tools but none of them was right for us. By using the tool you can record test-cases and group them together to test-suites. For every test-suite there is generated an application, which ...
[ 0.3903578817844391, 0.23956434428691864, -0.08630136400461197, 0.5356467366218567, 0.41155558824539185, -0.15235143899917603, -0.1292705535888672, -0.06000037491321564, 0.0587635338306427, -0.5886337161064148, 0.046566903591156006, 0.4317401349544525, -0.14228424429893494, 0.16618254780769...
using window handles is checking for a change. At the moment we simulate a click on a control and depending on the result we know if the application has gone to the next step. Is there any other (simpler) way for doing such things (for example the message queue or anything else)? If the Automated GUI testing tool has ...
[ 0.3291518986225128, -0.05349942669272423, 0.13262388110160828, 0.2021852433681488, -0.36288321018218994, -0.06982161849737167, 0.07701938599348068, -0.044116389006376266, -0.2935405969619751, -0.7726575136184692, 0.1421898901462555, 0.46581611037254333, -0.11443674564361572, -0.04680211097...
this [build in](http://msdn.microsoft.com/en-us/library/aa348551.aspx).
[ -0.09739874303340912, -0.00915563851594925, 0.3546857237815857, -0.043295420706272125, 0.37737709283828735, -0.08979199081659317, 0.20330773293972015, -0.10900699347257614, -0.2194340080022812, -0.4617325961589813, -0.22592993080615997, 0.2702867388725281, -0.003460218897089362, 0.05945506...
Since both a `Table Scan` and a `Clustered Index Scan` essentially scan all records in the table, why is a Clustered Index Scan supposedly better? As an example - what's the performance difference between the following when there are many records?: ``` declare @temp table( SomeColumn varchar(50) ) insert into @t...
[ -0.05314762517809868, -0.1353459507226944, 0.43378746509552, 0.022024791687726974, -0.18487590551376343, -0.17001549899578094, -0.0007668885518796742, -0.42522114515304565, 0.05071442946791649, -0.6279846429824829, -0.061365820467472076, 0.3155142068862915, -0.22210180759429932, 0.03224679...
Index Allocation Map](http://msdn.microsoft.com/en-us/library/ms188270.aspx). A clustered table, however, has it's [data pages linked in a doubly linked list](http://msdn.microsoft.com/en-us/library/ms177443.aspx) - making sequential scans a bit faster. Of course, in exchange, you have the overhead of dealing with kee...
[ -0.3520401120185852, -0.06240442022681236, 0.32854172587394714, 0.20758935809135437, -0.10077511519193649, 0.10768304765224457, -0.14714699983596802, -0.3939031958580017, -0.24949607253074646, -0.9475579261779785, -0.06621493399143219, 0.19316205382347107, -0.38854241371154785, 0.119432613...
A heap would have to scan all rows, since it cannot rely on ordering. And, of course, a clustered index lets you do a CLUSTERED INDEX SEEK, which is pretty much optimal for performance...a heap with no indexes would always result in a table scan. So: * For your example query where you select all rows, the only diffe...
[ -0.3280054032802582, -0.32091042399406433, 0.09018699079751968, 0.24537190794944763, -0.26934486627578735, -0.013873822055757046, 0.05129789188504219, -0.11798475682735443, -0.18771453201770782, -0.7620357275009155, -0.10867846757173538, 0.18635189533233643, -0.37749698758125305, 0.0422136...
the clustered index, you'll come out ahead because of the ordering - so you won't have to scan the entire table. * For a query that is not satisified by the clustered index, you're pretty much even...again, the only difference being that doubly linked list for sequential scanning. In either case, you're suboptimal. * F...
[ -0.5953544974327087, -0.1740913689136505, 0.3742114305496216, 0.38273510336875916, -0.34980279207229614, -0.036106135696172714, -0.1401253193616867, 0.0031288692262023687, -0.3138331174850464, -0.5027964115142822, -0.09698160737752914, 0.28528034687042236, -0.23324067890644073, 0.151473775...
clustered index to an equivalent non-clustered index on a heap (not exactly the same as I discussed above, but close). Their conclusion is basically to put a clustered index on all tables. I'll do my best to summarize their results (again, note that they're really comparing a non-clustered index to a clustered index he...
[ -0.4946579337120056, -0.037340641021728516, 0.4408769905567169, 0.07199271768331528, -0.22321243584156036, 0.1150950938463211, -0.045692458748817444, -0.12999549508094788, -0.24615003168582916, -0.8441953659057617, 0.02904007025063038, 0.5996648073196411, -0.0029686649795621634, 0.02060166...
by about 18% due to the second lookup needed and the second delete needed from the IAM for a heap. * single `SELECT` performance: clustered index wins by about 16% due to the second lookup needed for a heap. * range `SELECT` performance: clustered index wins by about 29% due to the random ordering for a heap. * concurr...
[ -0.1791401356458664, -0.411759614944458, 0.2812292277812958, 0.009348719380795956, -0.04650559276342392, 0.22177478671073914, 0.12154480814933777, -0.24518470466136932, -0.46581199765205383, -0.6775068640708923, -0.23119130730628967, 0.3260381817817688, -0.10222374647855759, 0.154172614216...
I'm currently working on creating a new C# project that needs to interact with an older C++ application. There is an error enumeration that already exists in the C++ app that I need to use in the C# app. *I don't want to just re declare the enumeration in C# because that could cause sync issues down the line if the fi...
[ 0.08516170084476471, 0.38553258776664734, -0.16494861245155334, 0.006379522383213043, -0.12345494329929352, -0.08119887113571167, 0.5321818590164185, -0.21327020227909088, -0.1270044893026352, -0.6099291443824768, 0.1778280884027481, 0.704696774482727, -0.3446618318557739, 0.15043199062347...
C# program like so: ``` eDeviceIntErrCodes.eDEVICEINT_ERR_FATAL ``` Check out the PInvoke Interop Assistant tool <http://www.codeplex.com/clrinterop/Release/ProjectReleases.aspx?ReleaseId=14120>. Its a useful tool for generating PInvoke signatures for native methods. If I feed it your enum it generates this code. T...
[ -0.0552520789206028, 0.16236740350723267, 0.23673507571220398, 0.1280074417591095, -0.28155234456062317, 0.1625562310218811, 0.4529241621494293, -0.019556928426027298, -0.2057258039712906, -0.5442579388618469, -0.00532064214348793, 0.6397125124931335, -0.3723308742046356, 0.118336230516433...
} ```
[ 0.3354566991329193, 0.5660994052886963, -0.045124202966690063, 0.08949362486600876, 0.36271432042121887, -0.03456072509288788, 0.2035233974456787, 0.4996976852416992, 0.20306141674518585, -0.48415371775627136, -0.1802433431148529, 0.4521971344947815, -0.138974130153656, 0.3154967725276947,...
I forgot my password for Sql Server 2005. Windows Authentication is not enabled so I cannot login. How can I remove the current instance and create a new db instance? Or is there a better solution exists? Assuming you are a member of the Windows Admininstrator group, you can put the server in Single User mode, you coul...
[ 0.05494514852762222, 0.07988081127405167, 0.4760139584541321, -0.062278520315885544, 0.05101828649640083, -0.16330507397651672, 0.7284494638442993, -0.015008192509412766, -0.29898950457572937, -0.2111417055130005, 0.21587508916854858, 0.48316553235054016, -0.12454252690076828, 0.4337508678...
When a controller renders a view based on a model you can get the properties from the ViewData collection using the indexer (ie. ViewData["Property"]). However, I have a shared user control that I tried to call using the following: ``` return View("Message", new { DisplayMessage = "This is a test" }); ``` and on my ...
[ -0.07539790868759155, -0.24161773920059204, 0.2619397044181824, -0.0340224914252758, -0.3035679757595062, 0.1289082020521164, 0.3518024981021881, -0.22574804723262787, -0.12489102780818939, -0.7929084300994873, 0.2547978162765503, 0.5634849071502686, -0.374762624502182, 0.4931810200214386,...
View("Message", new MessageData() { DisplayMessage = "This is a test" }); ``` and can be displayed like this: ``` <%= ViewData.Model.DisplayMessage %> ``` Why wouldn't the DisplayMessage property be added to the ViewData (ie. ViewData["DisplayMessage"]) collection without strong typing the user control? Is this by...
[ -0.0007527280249632895, -0.04031446576118469, 0.45500531792640686, -0.10826278477907181, -0.09982164204120636, -0.060767363756895065, 0.2566807270050049, -0.3941967785358429, -0.09519492834806442, -0.5088902711868286, -0.22606976330280304, 0.6347706913948059, -0.4064883589744568, 0.0572854...
So I am writing a registration form and I need the display name to be only numbers, letters and underscores. Have a look at my code and tell me what I'm doing wrong. ``` <form method="post" action="/" onsubmit="return check_form()"> <input type="text" id="display-name" name="display-name" maxlength="255" /> ...
[ 0.4416444003582001, 0.3843914568424225, 0.576790988445282, -0.284864604473114, -0.017329109832644463, -0.0869295746088028, 0.31592512130737305, -0.5411892533302307, 0.005248968955129385, -0.670528769493103, -0.05334021523594856, 0.5001832246780396, -0.2315230816602707, -0.05167147144675255...
alert("Your display name may only contain letters, numbers and underscores") return false } } --> </script> ``` It's obviously been trimmed down to not include anything not related to the problem but even this snippet doesn't work. Your regex ``` /^([a-zA-Z0-9_])+/ ``` Looks for 1. Start ...
[ 0.18602131307125092, -0.08556438982486725, 0.6149556636810303, -0.12657146155834198, 0.22525936365127563, -0.20250028371810913, 0.36895421147346497, 0.14371031522750854, -0.15527471899986267, -0.7259609699249268, -0.29909059405326843, 0.6866909861564636, -0.4177997410297394, -0.25345680117...
letter, number, or underscore If you put a `$` at the end, then it will work - `$` matches 'end of string', so the only way it can match is if there are *only* numbers, letters, and underscores between the start and end of the string. ``` /^([a-zA-Z0-9_])+$/ ``` Secondly, I'd suggest using `document.getElementById(...
[ 0.32444682717323303, 0.13990138471126556, 0.4412272572517395, -0.13685943186283112, -0.16544218361377716, -0.07472650706768036, 0.25617650151252747, -0.32442954182624817, -0.11911725252866745, -0.630224347114563, -0.485946923494339, 0.35424092411994934, -0.3204825818538666, -0.074815802276...
Every project invariably needs some type of reporting functionality. From a foreach loop in your language of choice to a full blow BI platform. > To get the job done what tools, widgets, platforms has the group used with success, frustration and failure? For knocking out fairly "run of the mill" reports, SQL Reportin...
[ 0.6944072842597961, 0.2428918331861496, -0.010727818123996258, 0.23194243013858795, -0.3157978355884552, -0.2961283326148987, 0.32569456100463867, -0.20683355629444122, -0.20661047101020813, -0.4464796483516693, 0.08233173936605453, 0.43899720907211304, 0.10073080658912659, -0.162985324859...
"wow factor", 99% of the reports generated will be the same report with minor differences in a fixed set of parameters. Don't accept when a user says they want "ad-hoc" reports without specifying what goals and targets their looking for. They are just fishing and they need to actually spend as much time on THINKING ab...
[ 0.614248514175415, 0.023566022515296936, 0.14003141224384308, 0.35337719321250916, -0.44496774673461914, -0.3658582866191864, 0.28066298365592957, -0.10715234279632568, -0.16202540695667267, -0.33996137976646423, 0.298008531332016, 0.4278571307659149, -0.020972933620214462, 0.1474953740835...
quick wins out of the way as quick as possible and then spend time "systemising" the most important reports.
[ 0.16459926962852478, 0.02379695326089859, 0.31155863404273987, 0.39289167523384094, 0.12898558378219604, -0.279850035905838, 0.04377566650509834, 0.036781225353479385, -0.248660147190094, -0.6533743143081665, -0.22513119876384735, 0.5011405348777771, 0.3754290044307709, -0.2279001027345657...
What are your opinions on developing for the command line first, then adding a GUI on after the fact by simply calling the command line methods? eg. > W:\ todo AddTask "meeting with John, re: login peer review" "John's office" "2008-08-22" "14:00" loads `todo.exe` and calls a function called `AddTask` that does some...
[ 0.18999068439006805, 0.03204703330993652, 0.39266425371170044, 0.07879292219877243, 0.29096952080726624, -0.4710933566093445, -0.16165383160114288, -0.13100244104862213, 0.21207058429718018, -0.48161181807518005, -0.036287978291511536, 0.6063908934593201, -0.06932922452688217, -0.296910703...
you click submit, it calls the same AddTask function. Is this considered: * a good way to code * just for the newbies * horrendous!. **Addendum:** I'm noticing a trend here for "shared library called by both the GUI and CLI executables." Is there some compelling reason why they would have to be separated, other t...
[ 0.5585475564002991, -0.2796497941017151, 0.11427949368953705, 0.31503888964653015, -0.1535833775997162, -0.4952394962310791, -0.05887732282280922, -0.20345079898834229, -0.08223157376050949, -0.7709313035011292, 0.05255591869354248, 0.6483145356178284, -0.34135130047798157, -0.036413036286...
and be done with it. **Addendum 2:** It was mentioned that "the way [I've] described things, you [would] need to spawn an executable every time the GUI needs to do something." Again, this wasn't my intent. When I mentioned that the example GUI called "the same `AddTask` function," I didn't mean the GUI called the ...
[ 0.4795641005039215, 0.04764444753527641, 0.13897399604320526, -0.013361155055463314, -0.10655529797077179, -0.3648003935813904, 0.15905477106571198, 0.08428250253200531, -0.15687765181064606, -0.46959421038627625, -0.16093257069587708, 0.5979740619659424, -0.11605755239725113, 0.2129801213...
to thank all of you for your input. This is something that keeps popping back in my mind and I appreciate the wisdom of your experience. I would go with building a library with a command line application that links to it. Afterwards, you can create a GUI that links to the same library. Calling a command line from a GUI...
[ 0.738565981388092, 0.1765442043542862, -0.14018194377422333, 0.43458253145217896, -0.04883303493261337, -0.07083085924386978, 0.18155033886432648, 0.1431187093257904, -0.23625871539115906, -0.7021234035491943, -0.05427196994423866, 0.7431457042694092, 0.13597562909126282, 0.173541337251663...
you can just re-use the source for a GUI without having the two kinds at once to perform an operation.
[ 0.36225372552871704, -0.07325710356235504, 0.016280749812722206, 0.3434625566005707, 0.21436364948749542, -0.2284265011548996, -0.024106813594698906, 0.09892605990171432, -0.038192473351955414, -0.7470486760139465, -0.08178504556417465, 0.931751549243927, 0.013654903508722782, -0.041176866...
I am writing a batch script in order to beautify JavaScript code. It needs to work on both **Windows** and **Linux**. How can I beautify JavaScript code using the command line tools? First, pick your favorite Javascript based Pretty Print/Beautifier. I prefer the one at [<http://jsbeautifier.org/>](http://jsbeautifie...
[ 0.7205138206481934, 0.01324968971312046, 0.5311467051506042, -0.16206495463848114, -0.3739352822303772, 0.11734818667173386, 0.26112106442451477, -0.12988242506980896, -0.028100181370973587, -0.8250039219856262, 0.19707265496253967, 0.7344313263893127, -0.27439647912979126, -0.138591021299...
``` java -cp js.jar org.mozilla.javascript.tools.shell.Main name-of-script.js ``` Use the Pretty Print/Beautifier from step 1 to write a small shell script that will read in your javascript file and run it through the Pretty Print/Beautifier from step one. For example ``` //original code (function() { ... js_bea...
[ 0.1362442821264267, 0.09032497555017471, 0.6937670707702637, -0.2711504399776459, 0.02396385930478573, 0.06364177167415619, 0.08246517181396484, -0.21806614100933075, -0.17093828320503235, -0.690338134765625, -0.11280137300491333, 0.8186917304992676, -0.43974557518959045, -0.21254622936248...