text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
just need a selector more specific than **#testBlue span**, that is not difficult to find: ``` #testBlue span.testGreen { color: green; } ```
[ 0.27369096875190735, -0.07300665229558945, 0.08279380947351456, 0.1970563381910324, -0.14019447565078735, -0.4881356656551361, 0.1864953488111496, -0.14352823793888092, -0.29047468304634094, -0.5948030352592468, -0.30403006076812744, 0.4758252203464508, -0.23879101872444153, -0.22517412900...
[This code is called from within the `Inspector.Activate` event handler (first call), i.e. right before the inspector window is actually shown.] For "native" mail inspectors I can simply QI the `Inspector` interface to `IOleWindow` and call its `GetWindow` method. However, this will not work for Word inspectors which ...
[ -0.013556670397520065, -0.32668375968933105, 0.45005831122398376, -0.014866149052977562, -0.14959967136383057, -0.1515389233827591, 0.6355436444282532, -0.0904945656657219, -0.006853997707366943, -0.7481698989868164, -0.31011033058166504, 0.6617112755775452, -0.30915015935897827, 0.1969913...
the WordMail option. Neither does calling `Activate` and then immediately querying `GetForegroundWindow` work reliably: when there are multiple inspectors already open or when actual Word windows are present this will often just return the "oldest" instance instead of the most recent one. I have tried a number of othe...
[ 0.20716431736946106, -0.08349420875310898, 0.2191113382577896, 0.2451973706483841, -0.25805243849754333, 0.005319170653820038, 0.6396353244781494, 0.1646733582019806, -0.05911146104335785, -0.7394633889198303, -0.03759435936808586, 0.5983290672302246, -0.2167193591594696, 0.236167311668396...
hook and trying to match them up against the known inspectors somehow? (hat tip to [P Daddy](https://stackoverflow.com/questions/295996/is-the-order-in-which-handles-are-returned-by-enumwindows-meaningful#296014) for the hint about using CBT hooks) I have now come up with something new that I haven't yet been able to b...
[ 0.3455231189727783, 0.06955496966838837, 0.43183255195617676, 0.054690420627593994, -0.19643674790859222, -0.08994165807962418, 0.31848588585853577, -0.25576862692832947, -0.4419329762458801, -0.5428372621536255, 0.03943784534931183, 0.46603742241859436, -0.11409825086593628, 0.16603589057...
knows of a better solution or has a well-founded explanation of why this works (preferably with links to authoritative docs), please post a reply. **Update:** So, by request, here's some actual (Delphi) code. Note that this is not my working code, which contains a couple of other things, not relevant to this question,...
[ -0.1414305865764618, -0.2252320796251297, 0.5590322017669678, -0.2734639644622803, 0.1716587245464325, -0.05263276398181915, 0.33994245529174805, -0.3937442898750305, -0.0863913893699646, -0.61635822057724, -0.5045064091682434, 0.5992529392242432, -0.30787742137908936, -0.00117566995322704...
PWordSearchInfo = ^TWordSearchInfo; function CheckWnd(AWnd: HWND; ASearchInfo: PWordSearchInfo): Boolean; stdcall; begin Result := True; try if GetWindowClassName(AWnd) = 'OpusApp' then if not IsWindowVisible(AWnd) then begin ASearchInfo.Result := AWnd; Exit(False); en...
[ -0.39311695098876953, -0.3164597749710083, 0.8047667145729065, -0.46054813265800476, -0.015267620794475079, 0.3838268518447876, 0.4436205327510834, -0.4638969898223877, -0.06433705240488052, -0.5202577710151672, -0.504965603351593, 0.7826105356216431, -0.3687991797924042, -0.01880044676363...
from within the inspector's `Activate`-event and when the Outlook major version is < 12 and the inspector's `IsWordMail`-property is `True`.
[ -0.006285478826612234, -0.09003157168626785, 0.710311233997345, -0.10205653309822083, 0.2378751039505005, -0.3086951971054077, 0.6767715215682983, -0.05695994943380356, 0.2440759688615799, -0.4872761368751526, -0.7025831341743469, 0.5804838538169861, -0.1847470998764038, -0.183529391884803...
I want to close a System.Windows.Forms.Form if the user clicks anywhere outside it. I've tried using IMessageFilter, but even then none of the messages are passed to PreFilterMessage. How do I receive clicks outside a form's window? With thanks to [p-daddy](https://stackoverflow.com/users/36388/p-daddy) in [this questi...
[ 0.09254427254199982, -0.1122644916176796, 0.8955605626106262, -0.3704373240470886, 0.23705679178237915, -0.18302102386951447, 0.5990155935287476, -0.2555762231349945, -0.08306412398815155, -0.6525524854660034, -0.43893158435821533, 0.3322649300098419, -0.5298395752906799, 0.289879649877548...
this.Close(); } else { this.Capture = true; } } base.OnCaptureChanged(e); } ```
[ 0.15608541667461395, -0.26054924726486206, 0.44664010405540466, -0.4174162745475769, 0.48299670219421387, -0.20620445907115936, 0.13183368742465973, -0.3341810405254364, -0.010364297777414322, -0.46807998418807983, -0.30615726113319397, 0.564572811126709, -0.5644404888153076, 0.11287892609...
I have many jobs that have a step to send 1 specific email out to a list of people. That list of reciepients is hardcoded in the step command and I need to remove one person from that list, in all jobs. How do I loop through ALL the jobs in the Sql Server Agent and modify the command text to find+replace a specific pi...
[ 0.010200228542089462, -0.05426628887653351, 0.5714366436004639, -0.01319865882396698, -0.2348822057247162, -0.09298211336135864, 0.42521122097969055, -0.22631295025348663, -0.4365020990371704, -0.6348328590393066, 0.1883200705051422, 0.727502167224884, -0.22397759556770325, -0.104177489876...
of the SQL server directly. The relevant ones for you would be: ``` msdb.dbo.SysJobs msdb.dbo.SysJobSteps ``` If you have a specific email address to remove, you could update the **Command** field in the **SysJobSteps** table with a single UPDATE statement. ``` UPDATE SJS SET Command = REPLACE(Command, 'EmailAd...
[ 0.2981007397174835, 0.2691340148448944, 0.452181875705719, -0.08258632570505142, 0.0528331883251667, -0.019622694700956345, 0.142137810587883, -0.14973792433738708, -0.012206099927425385, -0.5992319583892822, -0.26616421341896057, 0.30250778794288635, -0.39750048518180847, 0.19786924123764...
Following the [JSONRequest proposa](http://www.json.org/JSONRequest.html)l, I've found [code for the JSONRequest object](http://www.devpro.it/code/153.html). However, this object depends on JSONRequestError, and the code for that is nowhere to be found. Anyone know where I can find the code? Thanks in advance! I used...
[ -0.021936340257525444, 0.0409591980278492, 0.8373339772224426, 0.18468229472637177, -0.2465435266494751, -0.1535564512014389, 0.42736101150512695, -0.20098720490932465, -0.21597057580947876, -0.3745821714401245, -0.15261468291282654, 0.2794662415981293, -0.005845782812684774, -0.0348533280...
On windows mobile when there is no internet connection and I try to browse the web using internet explorer i get cannot connect information at the top of the screen. It says cannot connect with current connection settings. To change your connection settings, tap settings. And I am able to tap Settings and setup network...
[ 0.11094629764556885, 0.25273460149765015, 0.6413987278938293, -0.07511492073535919, 0.01909025013446808, -0.05812867358326912, 0.3862079977989197, -0.049811314791440964, -0.2737200856208801, -0.8724989891052246, -0.24607999622821808, 0.8236631155014038, -0.36415404081344604, 0.023213477805...
size_t size); ``` Simple example: ``` #include <unistd.h> #include <stdio.h> #include <limits.h> int main() { char cwd[PATH_MAX]; if (getcwd(cwd, sizeof(cwd)) != NULL) { printf("Current working dir: %s\n", cwd); } else { perror("getcwd() error"); return 1; } return 0; } ```
[ 0.17612704634666443, -0.4740087687969208, 0.38161584734916687, -0.5616956949234009, 0.21635116636753082, -0.02477913908660412, 0.4453716576099396, -0.46471670269966125, -0.17766129970550537, -0.5780075192451477, -0.4080268442630768, 0.8232461810112, -0.33295124769210815, 0.1923862844705581...
``` $sourcePath = 'images/'; // Path of original image $sourceUrl = ''; $sourceName = 'photo1.jpg'; // Name of original image $thumbPath = 'thumbs/'; // Writeable thumb path $thumbUrl = 'thumbs/'; $thumbName = "test_thumb.jpg"; // Tip: Name dynamically $thumbWidth = 100; // Intended dimension of thumb // Beyond this p...
[ 0.4671822488307953, 0.18107165396213531, 0.9921810626983643, -0.13520604372024536, 0.2015722393989563, 0.0455169640481472, 0.19328702986240387, -0.5883435606956482, -0.2973448634147644, -0.41496747732162476, -0.10380573570728302, 0.6319860816001892, -0.18924576044082642, 0.1247985959053039...
it looks like it has been squashed. I've had headaches all day doing this. Any one have any ideas? Use [imagecreatetruecolor](http://pl2.php.net/manual/en/function.imagecreatetruecolor.php) instead of imagecreate and [imagecopyresampled](http://pl2.php.net/manual/en/function.imagecopyresampled.php) instead of imagecopy...
[ 0.25634995102882385, -0.017558570951223373, 0.7138503193855286, 0.009064002893865108, 0.005874077323824167, 0.010658560320734978, -0.17836269736289978, 0.2936289608478546, -0.5390520095825195, -0.6361832618713379, 0.05905996263027191, 0.7977325916290283, -0.19610445201396942, -0.1465768963...
Where can I find the source code for SQLMembershipProvider (.NET2.0)? Is it available? The source code has been released. [See ScottGu's blog for further details](http://weblogs.asp.net/scottgu/archive/2006/04/13/442772.aspx)
[ 0.36657795310020447, -0.01926574297249317, 0.09349344670772552, -0.1033586636185646, -0.20006518065929413, -0.3944258987903595, 0.2575434148311615, 0.5367890000343323, -0.1010669618844986, -0.3512996435165405, -0.06197679042816162, 0.32263392210006714, -0.0411258302628994, 0.15318159759044...
I need to write a little tool for a customer to be run on Windows 98. Since this is a very small project I'd hope that I could avoid having to go native C++ and use C#. The [.net Framework 2.0 download](http://www.microsoft.com/downloads/details.aspx?FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5) claims to support Win...
[ 0.3099610209465027, -0.04763210937380791, 0.25746092200279236, 0.08903805166482925, 0.013512636534869671, -0.1913384199142456, 0.3637121617794037, -0.09731400012969971, 0.03507857397198677, -0.5599966645240784, -0.18793073296546936, 0.6301629543304443, -0.2904174029827118, -0.0412290841341...
make sure that the API functions you're using are supported on Win98. It *will* work, but if possible, you should test on Win98 before delivering to the customer.
[ 0.37225061655044556, -0.08025083690881729, 0.041095443069934845, 0.16291508078575134, 0.16851966083049774, -0.48240795731544495, 0.36926600337028503, 0.32844293117523193, 0.06815759837627411, -0.5874046087265015, -0.2668474018573761, 0.7055732011795044, -0.06961964070796967, -0.18677675724...
I have run into a bit of a tricky problem in some C++ code, which is most easily described using code. I have classes that are something like: ``` class MyVarBase { } class MyVar : public MyVarBase { int Foo(); } class MyBase { public: MyBase(MyVarBase* v) : m_var(v) {} virtual MyVarBase* GetVar() { ret...
[ 0.27635982632637024, 0.2258060872554779, 0.37089940905570984, -0.34897878766059875, 0.07944828271865845, -0.04122752323746681, 0.283661812543869, -0.002731677610427141, 0.01044705230742693, -0.7254573106765747, -0.004909192677587271, 0.6204364895820618, -0.4084080457687378, 0.4044356942176...
this: ``` class MyClass : public MyBase { public: MyClass(MyVar* v) : MyBase(v), m_var(v) {} MyVar* GetVar() { return m_var; } private: MyVar* m_var; } ``` This seems to work but looks really bad and I'm not sure if it's going to cause a memory leak or break a copy constructor. My other options might be ...
[ 0.11159637570381165, 0.049911294132471085, 0.14222007989883423, -0.11007451266050339, -0.07064373791217804, 0.020551463589072227, 0.42785075306892395, -0.03953004628419876, 0.052528124302625656, -0.6346824169158936, 0.0630776509642601, 0.6902873516082764, -0.3406369984149933, 0.31656178832...
has run into a situation like this and if there is a good way to make it work. The correct way to do this is to have the variable only in the base class. As the derived class knows it must be of dynamic type `MyVar`, this is totally reasonable: ``` class MyClass : public MyBase { public: MyClass(MyVar* v) : MyBase...
[ 0.39762401580810547, -0.1422985941171646, 0.3389866352081299, -0.19494639337062836, -0.030688533559441566, -0.24431045353412628, 0.3652777075767517, 0.04812748730182648, -0.09966034442186356, -0.40639346837997437, -0.06919185817241669, 0.5557741522789001, -0.34089791774749756, 0.4945519864...
no function in `MyBase` that can reset the pointer to something different, obviously. Note that `static_cast` is the right cast in that case. Using `dynamic_cast`, as proposed by one commenter, will tell the readers and users of GetVar that `MyBase::GetVar()` could return a pointer to an object not of type MyVar. But...
[ 0.02997872792184353, -0.26672932505607605, 0.31072303652763367, -0.20101265609264374, -0.32566037774086, -0.1649744212627411, 0.6019501686096191, 0.1691509187221527, 0.08585700392723083, -0.49210795760154724, -0.1829560399055481, 0.8757354021072388, -0.4572238326072693, 0.22532221674919128...
assert(dynamic_cast<MyVar*>(MyBase::GetVar()) != 0); return static_cast<MyVar*>(MyBase::GetVar()); } ```
[ -0.06365066021680832, -0.09717047959566116, 0.3251347839832306, -0.23058731853961945, -0.1636987328529358, -0.27465954422950745, 0.5758136510848999, -0.4753253757953644, -0.08453886210918427, 0.013348124921321869, -0.23068609833717346, 0.9040514230728149, -0.08413626998662949, 0.4461357295...
I have a COM interop assembly, and I would like to check from a .NET application whether the component I'm about to create is installed on the machine. I would like to provide a nice error message if it is not installed. Put the instantiation into try-catch is not a good solution for me, as I would like to distingwi...
[ 0.3721393942832947, 0.028923513367772102, 0.07079443335533142, -0.11628995835781097, 0.20288053154945374, 0.12999916076660156, -0.09692833572626114, 0.07921004295349121, -0.15164344012737274, -0.9284800291061401, -0.024711601436138153, 0.5264621376991272, -0.2799847722053528, 0.11417058110...
way, unfortunately, is to try and instantiate it. Checking in the registry does not guarantee that the component is actually there at all (e.g. the file may have been deleted or moved post registration).
[ 0.1889871507883072, 0.1055583655834198, 0.11172813922166824, 0.291550874710083, 0.37433871626853943, -0.45482829213142395, 0.36829954385757446, -0.027600329369306564, -0.33150714635849, -0.30694451928138733, -0.1817282736301422, 0.30099156498908997, 0.0771995484828949, 0.20508460700511932,...
I've been dipping into SitePoint book concerning CSS. The thing that struck me about the examples was the use of ID as a CSS selector. Some bits of CSS design I've done, I've always found it easier and more versatile to use Class as the selector. Maybe its a .Net thing as we don't always have control of the ID of an...
[ 0.44928017258644104, 0.0909755527973175, -0.5462205410003662, 0.3068057894706726, -0.673080325126648, 0.01650053821504116, -0.04683655500411987, 0.17833775281906128, -0.2336377650499344, -0.6060938835144043, 0.3629160523414612, 0.2654595971107483, -0.03742126002907753, 0.13113677501678467,...
of thumb is that you should ask yourself: "is there more than one element which requires the same style, now or at any time in the future?", and the answer is even "maybe", then make it a class.
[ 0.15078191459178925, 0.2334313690662384, 0.028558094054460526, 0.11020258069038391, 0.29905298352241516, -0.26249322295188904, 0.06917448341846466, 0.021361341699957848, -0.12207374721765518, -0.28294020891189575, 0.09729073196649551, 0.33889076113700867, 0.10253516584634781, -0.2818429768...
How can I find the location of exe that runs as a windows service in run-time? .NET - `Assembly.GetExecutingAssembly().Location` (others have suggested `Application.ExecutablePath`, but this requires a reference to `System.Windows.Forms`, which a service normally doesn't need) Native - `GetModuleFileName(NULL, ...)`
[ 0.27137407660484314, -0.16159026324748993, 0.3441837728023529, 0.027635222300887108, 0.24437174201011658, -0.21495036780834198, 0.5406909584999084, 0.07608416676521301, -0.06170272082090378, -0.7549464106559753, -0.31062546372413635, 0.3102433681488037, -0.29845741391181946, 0.262195646762...
I'm developing a C++ command-line application in Visual Studio and need to debug it with command-line arguments. At the moment I just run the generated EXE file with the arguments I need (like this `program.exe -file.txt`) , but this way I can't debug. Is there somewhere I can specify the arguments for debugging? Yes, ...
[ 0.2741188704967499, 0.19011321663856506, 0.10636115074157715, -0.17563986778259277, -0.28963136672973633, -0.061416611075401306, 0.03670277073979378, -0.0838422104716301, -0.16463038325309753, -0.46553412079811096, -0.260619580745697, 0.6386375427246094, -0.20889563858509064, 0.10552196949...
We're currently using WinCVS but it's slow and has no merge dialog. I'm looking for something like Eclipse's Team Synchronize (so people can see what they'll get before they update). What do you suggest? [TortoiseCVS](http://www.tortoisecvs.org/) with [WinMerge](http://winmerge.org/)? Note: OSS preferred :) On window...
[ 0.19515164196491241, -0.3454053997993469, 0.35255688428878784, 0.08678203821182251, 0.2263643741607666, -0.11775011569261551, 0.12778340280056, 0.11150787770748138, -0.2728492319583893, -0.5101550817489624, -0.10037129372358322, 1.0585196018218994, -0.10187339782714844, -0.2930217385292053...
I am creating a mobile web application using asp.net. The application must support iPhone, Blackberry and Windows Mobile Platform. What are the low things which should be taken care of while developing this application. Is there any best practices list available for this? **Summary:** I think you should check that asp...
[ 0.460284948348999, 0.18551038205623627, 0.407992422580719, -0.1637212336063385, -0.014781411737203598, -0.045307427644729614, 0.14652779698371887, -0.04055684432387352, -0.1977161169052124, -0.831777036190033, 0.05893608182668686, 0.5041406154632568, -0.08921223878860474, 0.021602984517812...
I seemed to get the following exception when trying to deploy my application: ``` Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 2 counts of IllegalAnnotationExceptions java.util.List is an interface, and JAXB can't handle interfaces. this problem is related to the following location: at j...
[ -0.0983271598815918, 0.4047824442386627, 0.4114686846733093, -0.13784001767635345, 0.05908359959721565, -0.1673421710729599, 0.6715912818908691, -0.17723461985588074, -0.2413725107908249, -0.6769455075263977, 0.012860060669481754, 0.4865819811820984, -0.503826379776001, 0.12639321386814117...
foobar.alkohol.register.webservice.jaxws.GetRelationsFromPersonResponse._return at foobar.alkohol.register.webservice.jaxws.GetRelationsFromPersonResponse ``` **My code worked just well until I changed the return type from List to List<List<RelationCanonical>>** Here is the partial webservice: ``` @Name("...
[ 0.003272020723670721, 0.3477564752101898, 0.4825763702392578, -0.3863014280796051, -0.060037657618522644, 0.23926012217998505, 0.3368249833583832, -0.19935870170593262, -0.05404791980981827, -0.33225589990615845, -0.17952169477939606, 0.803692102432251, -0.5930171608924866, 0.2039077132940...
{ Identity.instance().logout(); return !Identity.instance().isLoggedIn(); } @WebMethod public List<List<RelationCanonical>> getRelationsFromPerson(@WebParam(name = "username") String username, @WebParam(name = "password") String password, @WebParam(name = "foedselsnummer") Strin...
[ 0.21747532486915588, -0.011411864310503006, 0.643391489982605, -0.1370764672756195, -0.0977633148431778, -0.050371572375297546, 0.4001287817955017, -0.28719422221183777, -0.35646575689315796, -0.7534574866294861, 0.06467952579259872, 0.7318773865699768, -0.3002747595310211, 0.1373305618762...
behaves strange. I get an Object of type: RelationServiceStub.ArrayList but the object has no get methods or does not behave as a List either. I also tried to cast it to a List but that didnt work. Note that this is after I have used Axis 2 and wsdl2java So yes, now it compiles, but I dont know how to get the data ou...
[ 0.23491248488426208, 0.18917295336723328, 0.39032691717147827, 0.013666370883584023, -0.43515217304229736, -0.1294814497232437, 0.3135600984096527, -0.035437457263469696, -0.17331406474113464, -0.6530644297599792, 0.1126389354467392, 0.3002966344356537, -0.30854591727256775, 0.340793699026...
(I'll call it `Type1`), and another one to hold a list of those types, in turn (as you're dealing with a `List<List<...>>`; I'll call this type `Type2`). The result could then be an XML ouput like this: ``` <Type2 ...> <Type1 ...> <RelationCanonical ...> ... </RelationCanonical> <RelationCanonical...
[ -0.08963382989168167, -0.06008479744195938, 0.4348665475845337, -0.030334940180182457, -0.17910026013851166, -0.0949762836098671, -0.44600769877433777, -0.0007759236032143235, -0.14654119312763214, -0.4813717305660248, -0.18743698298931122, 0.5487403273582458, -0.010189667344093323, -0.028...
... </RelationCanonical> ... </Type1> ... </Type2> ``` Without the two enclosing JAXB-annotated types, the JAXB processor has no idea what markup to generate, and thus fails. --Edit: What I mean should look somewhat like this: ``` @XmlType public class Type1{ private List<RelationCanonical> ...
[ 0.190182164311409, 0.01970706321299076, 0.3957975208759308, -0.014545765705406666, 0.08919745683670044, 0.020103463903069496, -0.28812849521636963, -0.22787204384803772, -0.11111487448215485, -0.44151878356933594, -0.44978275895118713, 0.7028119564056396, -0.2697688937187195, -0.1641144007...
private List<Type1> type1s; @XmlElement public List<Type1> getType1s(){ return this.type1s; } public void setType1s(List<Type1> type1s){ this.type1s= type1s; } } ``` You should also check out the [JAXB section in the J5EE tutorial](http://java.sun.com/javaee/5/docs/tutorial/doc/b...
[ 0.411028116941452, -0.005461262539029121, 0.4781041145324707, -0.1607012301683426, 0.026871809735894203, -0.32932576537132263, 0.2840196490287781, -0.31631624698638916, -0.16069455444812775, -0.8260672688484192, -0.49349290132522583, 0.5745449662208557, -0.6117711663246155, -0.023452090099...
I'm trying to ensure a script remains running on a development server. It collates stats and provides a web service so it's supposed to persist, yet a few times a day, it dies off for unknown reasons. When we notice we just launch it again, but it's a pain in the rear and some users don't have permission (or the knowho...
[ 0.6800529956817627, 0.31658411026000977, 0.28166884183883667, 0.17708517611026764, 0.04019549489021301, -0.02784270979464054, 0.2753395736217499, 0.3383462727069855, -0.14718547463417053, -0.40734514594078064, 0.07242552936077118, 0.2615881860256195, -0.019499043002724648, 0.13836799561977...
not running, and launch it again. I know I *could* cron-script ps through grep: ``` ps -A | grep appname ``` But again, that's another hour of my life wasted on doing something that must already exist... Is there not a pre-made app that I can pass an executable (optionally with arguments) and that will keep a proce...
[ 0.40542668104171753, -0.003331379732117057, 0.3484991192817688, -0.08947956562042236, 0.059744883328676224, -0.19949229061603546, 0.3992511034011841, 0.6542171835899353, -0.40457773208618164, -0.480817049741745, -0.5513002276420593, 0.49629274010658264, -0.4893393814563751, 0.2604079842567...
the traditional [sysV init](http://en.wikipedia.org/wiki/Init). One key feature is that it can restart a service if it dies unexpectedly. Fedora has moved to upstart, and Debian is in experimental, so it may be worth looking into. This may be overkill for this situation though, as a [cron](http://en.wikipedia.org/wiki...
[ 0.18736083805561066, -0.26425591111183167, 0.5469754934310913, 0.02443469502031803, 0.027199802920222282, -0.4652767777442932, 0.15414047241210938, -0.000905309512745589, -0.20879344642162323, -0.3962470591068268, -0.3724077343940735, 0.5497220754623413, -0.10960541665554047, 0.28800049424...
When I render a page using the Django template renderer, I can pass in a dictionary variable containing various values to manipulate them in the page using `{{ myVar }}`. Is there a way to access the same variable in Javascript (perhaps using the DOM, I don't know how Django makes the variables accessible)? I want to ...
[ 0.3982650339603424, 0.10542873293161392, 0.3168244957923889, -0.1119799092411995, -0.3310224711894989, 0.026752350851893425, 0.0907629057765007, 0.015201915055513382, -0.007502046879380941, -0.8799790143966675, 0.15114262700080872, 0.603563129901886, -0.2971422076225281, 0.0341894775629043...
you can put this kind of substitution into your JavaScript. ```html <script type="text/javascript"> var a = "{{someDjangoVariable}}"; </script> ``` This gives you "dynamic" javascript.
[ -0.07121440023183823, -0.40225231647491455, 0.011190916411578655, -0.1967383176088333, -0.22636058926582336, -0.16670146584510803, 0.27806830406188965, -0.09234954416751862, -0.281401664018631, -0.4114472270011902, -0.23327581584453583, 0.5680447220802307, -0.7044927477836609, -0.194611176...
I have a .NET Web app which consumes a Java-based Web service. One of the objects, named Optional, contains search criteria fields. The schema is the following: ``` <xsd:complexType name="Optional"> <xsd:sequence> <xsd:element name="FromAmount" nillable="true" type="xsd:float" minOccurs="0" /> <xsd:element name=...
[ 0.22269485890865326, 0.05613819137215614, 0.4163506329059601, -0.07829975336790085, 0.19846606254577637, 0.036733753979206085, 0.23283441364765167, -0.22177137434482574, 0.19072039425373077, -0.9026647806167603, 0.04115550220012665, 0.33237752318382263, -0.2250712364912033, 0.3426509201526...
in the Web app. If I remove the minOccurs attribute, then all is well. How do I get these elements to be optional, but to serialize when a value is assigned to them? Thanks in advance for your help. in .NET WS for non-nullable types (in .NET) that are marked optional in the schema have an additional specified propert...
[ 0.38687050342559814, 0.13056188821792603, 0.5675306916236877, -0.03649554401636124, 0.0024265937972813845, -0.21866191923618317, 0.5415467023849487, -0.11835465580224991, -0.19928483664989471, -0.747266411781311, -0.4518255889415741, 0.8384706974029541, -0.3869273364543915, -0.241284668445...
Is there a way to read the properties inside an [MSI](https://en.wikipedia.org/wiki/Windows_Installer) file? For example, given a MSI file named *Testpackage.msi*, I need to find ``` productName PackageCode version ``` This I am going to use it with WMI uninstall ``` string objPath = string.Format("Win32_Product.I...
[ 0.3951875567436218, -0.05770287662744522, 0.42796462774276733, 0.027149971574544907, 0.2836417853832245, -0.16748999059200287, 0.11504203081130981, -0.25751447677612305, -0.08828352391719818, -0.7302584052085876, -0.131547212600708, 0.5193315148353577, -0.18228574097156525, -0.097051285207...
= CreateObject("WindowsInstaller.Installer") Set db = msi.OpenDataBase(msiName, msiOpenDatabaseModeReadOnly) Set view = db.OpenView("SELECT `Value` FROM `Property` WHERE `Property` = 'ProductVersion'") Call view.Execute() GetVersion = view.Fetch().StringData(1) End Function ```
[ 0.23937785625457764, -0.1783427894115448, 0.4603158235549927, -0.3566049039363861, -0.24687115848064423, 0.1203293651342392, 0.49908778071403503, -0.498849093914032, 0.09537117928266525, -0.653325617313385, -0.333316445350647, 0.4463893473148346, -0.36874309182167053, 0.20190054178237915, ...
I'm wondering why the `assert` keyword is so underused in Java? I've almost never seen them used, but I think they're a great idea. I certainly much prefer the brevity of: ``` assert param != null : "Param cannot be null"; ``` to the verbosity of: ``` if (param == null) { throw new IllegalArgumentException("Par...
[ 0.06471465528011322, 0.2896748483181, 0.1978859156370163, -0.1767890751361847, -0.1765214502811432, -0.26564010977745056, 0.586980402469635, -0.4506649672985077, -0.33604946732521057, -0.09573185443878174, -0.13763786852359772, 0.7131044864654541, -0.1796698123216629, 0.16776898503303528, ...
for the code to complete properly. The example shown is testing for valid input, which isn't a typical usage for an assertion because it is, generally, user supplied. Assertions aren't generally used in production code because there is an overhead and it is assumed that situations where the invariants fail have been...
[ 0.3362993896007538, 0.17169193923473358, -0.24109841883182526, 0.2004820704460144, -0.058656319975852966, -0.26567554473876953, 0.5651280879974365, -0.3521151840686798, -0.01094165351241827, -0.4403734505176544, -0.20100806653499603, 0.5635722279548645, 0.37028372287750244, -0.028437485918...
I'm trying to have an XSLT that copies most of the tags but removes empty "`<b/>`" tags. That is, it should copy as-is "`<b> </b>`" or "`<b>toto</b>`" but completely remove "`<b/>`". I think the template would look like : ``` <xsl:template match="b"> <xsl:if test=".hasChildren()"> <xsl:element name="b"> <...
[ 0.523878276348114, 0.18644395470619202, 0.24140994250774384, 0.22117993235588074, 0.01700214296579361, -0.32003194093704224, 0.1770043522119522, -0.4592185318470001, 0.08258238434791565, -0.6122342348098755, -0.10226993262767792, 0.32554706931114197, -0.36134767532348633, 0.089279003441333...
I am getting a lot of errors when starting RAD7. The server doesn't respond to class changes. Sometimes the server won't start. Sometimes RAD will not acknowledge modules that I added to the server. It is kind of buggy. I know there is metadata in the workspace, are there safe ways to clean the metadata or RAD in gene...
[ 0.46090880036354065, 0.1292770951986313, 0.1350032240152359, 0.15757037699222565, 0.002872537123039365, -0.26297610998153687, 0.5523945093154907, 0.04342106357216835, -0.3884028494358063, -0.5133004784584045, 0.08146782219409943, 0.6461101770401001, -0.19704805314540863, 0.4055278301239013...
still see configured apps, remove them in the admin console. Shutdown server, start again and check for a clean startup. This ensures that your Eclipse server plugin and the server are in sync. Now you can add your projects to the server again; maybe this will improve the stability. If not, a more drastic measure is t...
[ 0.41211992502212524, -0.05845839902758598, 0.40504685044288635, 0.16270171105861664, -0.1851748824119568, -0.38109639286994934, 0.2496330589056015, 0.02827087789773941, -0.21554537117481232, -0.8601848483085632, 0.003438350046053529, 0.7943543791770935, -0.41387325525283813, -0.07548113167...
double-click on your server in the Servers view, and go to the "Automatic Publishing" section and check "Never publish automatically". This might give you more control over when stuff gets published to your server, although it sometimes has a mind of its own and keeps publishing automatically in some cases.
[ 0.47327491641044617, -0.0766279399394989, 0.32560065388679504, 0.2565726339817047, 0.02069111354649067, -0.667705237865448, 0.40950995683670044, 0.21450352668762207, -0.4535905420780182, -0.3845480680465698, -0.25903770327568054, 0.4664326608181, -0.14393305778503418, -0.09306012839078903,...
I'm not sure what this practice is actually called, so perhaps someone can edit the title to more accurately reflect my question. Let's say we have a site that stores objects of different types. Each type of object has its own database (a database of books and assorted information with its tables, a database of CDs an...
[ 0.5197300910949707, 0.36249300837516785, 0.3905332684516907, 0.415661096572876, 0.005364926066249609, -0.31779298186302185, 0.23518170416355133, -0.05874165892601013, -0.17850875854492188, -0.2853056490421295, -0.11648993194103241, 0.30491313338279724, 0.09300219267606735, 0.37133964896202...
for mapping the object ID to a keyword. Is that a good practice? Is there a reason to have separate databases for each type of object? You would be better off using multiple tables, and joining them. For example, you may have a table `GENERIC_OBJECT` which holds things that are common across all types, and then a tabl...
[ 0.08989694714546204, -0.09602776914834976, 0.15187743306159973, 0.39296841621398926, 0.034137140959501266, -0.5222854018211365, -0.13666380941867828, -0.06863909959793091, -0.32094356417655945, -0.750785231590271, -0.1283922642469406, 0.29939404129981995, -0.536594033241272, 0.261369824409...
specific to the item would go in the item's corresponding table.
[ 0.0491676963865757, 0.04244047403335571, 0.22935648262500763, 0.29659342765808105, -0.15201961994171143, 0.24315346777439117, -0.24247728288173676, 0.0022545235697180033, -0.17602480947971344, -0.15669618546962738, -0.08841133862733841, 0.052027177065610886, 0.05451825633645058, 0.09812910...
Greetings. I have been looking at Literate Programming a bit now, and I do like the idea behind it: you basically write a little paper about your code and write down as much of the design decisions, the code probably surrounding the module, the inner workins of the module, assumptions and conclusions resulting from the...
[ 0.35111328959465027, 0.2840529680252075, 0.16866251826286316, 0.2353586107492447, 0.05178767815232277, -0.2922590672969818, -0.04747289791703224, 0.12722675502300262, 0.04271163418889046, -0.5186101198196411, -0.1342363804578781, 0.5957465171813965, 0.008478408679366112, -0.241212129592895...
that down. However, how does Literate Programming Scale to a larger degree? Overall, Literate Programming is still just text. Very human readable text, of course, but still text, and thus, it is hard to follow large systems. For example, I reworked large parts of my compiler to use >> and some magic to chain compile s...
[ 0.2494455873966217, 0.19254890084266663, 0.28066486120224, 0.28863173723220825, -0.2615757882595062, 0.046942729502916336, 0.5844523310661316, 0.3235172927379608, -0.16000694036483765, -0.6537237167358398, 0.07783177495002747, 0.48583224415779114, -0.10764376819133759, -0.1880771964788437,...
try to do that? My thought would be to use LP to specify components that communicate with each other using event streams and chain all of these together using a subset of graphviz. This would be a fairly natural extension to LP, as you can extract a documentation -- a dataflow diagram -- from the net and also generate...
[ 0.6030339598655701, -0.1507711410522461, -0.22557704150676727, 0.5775830745697021, 0.0978843942284584, -0.350603848695755, 0.008072938770055771, 0.26577699184417725, -0.10604991763830185, -0.35472026467323303, 0.1454561948776245, 0.15966638922691345, -0.07254493981599808, -0.10614082217216...
to what you're trying to do". I don't think it means "make your code really wordy". That said, the reader will have to put some effort into it, depending on what they already know. Presumably the code is worth understanding, and nothing comes for free. I also think it means more than just making readable code. Most l...
[ 0.6375077366828918, -0.05921627953648567, 0.05789444223046303, 0.3084724545478821, 0.0055953701958060265, -0.07779426127672195, 0.7422423362731934, 0.2689696252346039, -0.2375928908586502, -0.682806134223938, -0.10955827683210373, 0.6200659275054932, 0.0845337063074112, 0.07694554328918457...
Is there a way to turn off the automatic selection of the first row in the built-in DataGrid in Silverlight? We build a lot of functionality based off the user selecting a row in a data grid. The automatic firing of SelectionChanged when databinding or sorting is really causing us issues. We have tried to put some gua...
[ 0.01899229735136032, -0.11569484323263168, 0.29544708132743835, 0.23984931409358978, -0.21921201050281525, -0.026269415393471718, -0.3239956200122833, -0.26175040006637573, -0.3339923918247223, -0.5535367131233215, 0.16194002330303192, 0.23450510203838348, -0.5891170501708984, 0.1187591850...
a list of objects. The grid is not databound until the tab is shown. Is there an event telling us that the grid is databinding? Shouldn't the default behavior of databinding be not to select a row? Thanks Mike Since the code for the DataGrid was available from Microsoft, we removed the selection so we didn't have to w...
[ 0.19055277109146118, -0.21806754171848297, 0.24050287902355194, 0.07329390197992325, -0.29634425044059753, -0.16579276323318481, 0.04946000874042511, 0.08539986610412598, -0.4312816858291626, -0.5916706919670105, 0.1487758606672287, 0.4321645200252533, -0.5428954362869263, 0.16292443871498...
Currently reading quite a heavy WCF book. I have used it myself in production just the once, using tcp, worked a charm. Anyway what are your opinions on this technology, is it here to stay, is it worth the time invested learning all the complex features etc etc? I think it is here to stay. It is easily configurable for...
[ 0.5881212949752808, -0.051173724234104156, 0.46116217970848083, 0.16278694570064545, 0.13084428012371063, -0.30555570125579834, 0.002102634869515896, 0.09467638283967972, -0.4461548626422882, -0.5152875781059265, 0.11012332886457443, 0.2632068991661072, 0.12324398756027222, 0.2928698658943...
and maintenance of Linq to SQL, but I see WCF as a different beast altogether. This is a technology that allows interoperability, as well as de-complixifying (I know this isn't a real word, but it should be) communications between systems.
[ 0.4278586804866791, 0.35435059666633606, 0.4316902160644531, 0.3112950623035431, 0.06780648231506348, -0.49168047308921814, -0.07989465445280075, -0.14269687235355377, -0.038102712482213974, -0.3357372283935547, 0.10742766410112381, 0.732501208782196, -0.048870354890823364, -0.115041002631...
With stackoveflow.com in perspective (team of 2-3 engineers building a website project intended to scale) does it make sense to spend effort early in the process of development to build a search based on Lucene/Autonomy… as opposed to a database based full text search. Pros/Cons: With a mature Lucene implementatio...
[ -0.34652459621429443, -0.1362178772687912, 0.6379126310348511, 0.31205660104751587, -0.021896082907915115, -0.17390531301498413, -0.0887589231133461, -0.3280166983604431, -0.3148881793022156, -0.5216767191886902, -0.4177092909812927, 0.32294538617134094, 0.11916092038154602, -0.18138951063...
additional server to main the in-memory index (much early in the process of scaling). Database fulltext search performance varies from database to database, but it's by far the easiest option to setup. So start with that, and move to lucene or sphinx if it proves to be too slow.
[ -0.2764153778553009, -0.19276708364486694, 0.2672533392906189, 0.4521441161632538, -0.07488156110048294, -0.08915289491415024, -0.0036341361701488495, 0.13757649064064026, -0.2247769981622696, -0.6880319714546204, -0.3301273286342621, 0.14024759829044342, -0.1578238308429718, 0.13861338794...
i'm a long-time newbie to c#, and this question may be too obvious, so please forgive if i'm "doing it wrong." Using Visual Studio 2005 Pro, C#, SQL Server 2000 EE SP3. I have a stored proc that takes one input param and returns several output params pertaining to that input. I am also calling it successfully, and St...
[ -0.016388827934861183, 0.07802714407444, 0.26897895336151123, -0.1324225664138794, -0.20598918199539185, 0.15966981649398804, 0.354583203792572, -0.21396411955356598, -0.415291965007782, -0.38300734758377075, 0.05413735285401344, 0.6681954264640808, -0.3198379874229431, -0.2674441933631897...
prefer code instead of some GUI builder solution. * Am i overlooking some better approach, such as a more appropriate control? Thanks! ``` //set up the datatable DataTable dt = new DataTable("parms"); dt.Columns.Add("ParmName",typeof(string)); dt.Columns.Add("ParmValue",typeof(string)); //bind to a gui object myDataGr...
[ -0.33512651920318604, 0.003685099771246314, 0.8332198262214661, -0.09316439181566238, -0.12163739651441574, 0.035208240151405334, 0.18860742449760437, -0.530576765537262, -0.02959625795483589, -0.8728240132331848, -0.05590657889842987, 0.6770584583282471, -0.3588281273841858, 0.03950151428...
I am attempting to write a component in C# to be consumed by classic ASP that allows me to access the indexer of the component (aka default property). For example: C# component: ``` public class MyCollection { public string this[string key] { get { /* return the value associated with key */ } } ...
[ 0.4545227885246277, -0.3034074902534485, 0.5734137296676636, -0.10252147167921066, -0.012441109865903854, 0.057876795530319214, 0.11978612095117569, -0.3790614604949951, 0.010734498500823975, -0.40933534502983093, -0.13207751512527466, 0.6808327436447144, -0.2372446209192276, 0.23103912174...
' should print "value" ``` Is there an attribute I need to set, do I need to implement an interface or do I need to do something else? Or this not possible via COM Interop? The purpose is that I am attempting to create test doubles for some of the built-in ASP objects such as Request, which make use of collections u...
[ 0.11777834594249725, 0.012216259725391865, 0.3224053680896759, -0.054504577070474625, -0.17211419343948364, -0.2925584316253662, 0.17344290018081665, -0.07064694911241531, -0.08867098391056061, -0.3507296144962311, -0.1473090946674347, 0.5512765049934387, -0.3976517915725708, 0.00780342286...
in the [MSDN documentation](http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.dispidattribute(VS.71).aspx).
[ -0.28739315271377563, -0.15408073365688324, 0.25046610832214355, 0.14484795928001404, 0.30846112966537476, -0.03940213471651077, 0.19460105895996094, 0.08916157484054565, -0.3824644982814789, -0.772213339805603, -0.6003356575965881, -0.03705986961722374, -0.2786886990070343, -0.01351375319...
In essence I'd like to store some rows in a temporary variable for the life of a procedure in MySQL. My procedure will grab a column of foreign keys at the beginning of the procedure. Once I'm done working with them I want to update the table to indicate that they have been processed. There may be inserts into this ta...
[ 0.17719382047653198, 0.38131552934646606, 0.5383284687995911, 0.06888199597597122, 0.3377217650413513, 0.2597106695175171, -0.24732331931591034, 0.08045132458209991, -0.33357861638069153, -0.5418424606323242, 0.09708487242460251, 0.210467129945755, -0.31793877482414246, 0.3774506151676178,...
inserts. Is a temporary table the best solution? Try setting the DispId attribute of the property to be 0, as described here in the [MSDN documentation](http://msdn.microsoft.com/en-us/library/system.runtime.interopservices.dispidattribute(VS.71).aspx).
[ -0.2693537473678589, -0.22375354170799255, 0.17393359541893005, 0.21205773949623108, 0.23494115471839905, 0.17058536410331726, -0.05020103231072426, -0.09337953478097916, -0.19082680344581604, -0.7585672736167908, -0.3467065691947937, 0.5104162693023682, -0.4155312180519104, -0.03409928828...
I'm creating an app that needs to be accessed by both a web front end hosted on an internal network and also run as a scheduled task. Nothing will need to be accessed outside of our internal systems and once the app is up and running we don't envision anything changing for some time. My initial thought is to create a ...
[ 0.409567654132843, -0.06772607564926147, 0.4143166244029999, 0.09167564660310745, 0.29282087087631226, 0.07573123276233673, -0.026263978332281113, 0.03887208551168442, -0.2040727436542511, -0.7983411550521851, -0.12214788049459457, 0.7300601601600647, -0.14639225602149963, 0.07557845860719...
for the core functionality instead, but as the app will never need to be called by an external resource I think the extra effort required in implementing a Web Service might not be worth the hassle. The DLL solution should also be substantially faster(?). My question is which route would you choose? Are there any pros...
[ 0.586449146270752, -0.055802278220653534, 0.1263704150915146, 0.06449495255947113, 0.01934022270143032, -0.17009665071964264, 0.3314110040664673, 0.09791124612092972, -0.1376284509897232, -0.5939230918884277, 0.0029615340754389763, 0.6463690996170044, -0.037418268620967865, -0.089795239269...
a web service, you will need to think about your network, firewalls, performance, etc. It also makes it harder to debug since you won't be able to step into the web service from your clients, you will have to set breakpoints on both sides of the calls. The other problem with web services for you is that you need to be...
[ 0.03615942224860191, -0.010339315049350262, 0.20627738535404205, 0.44496074318885803, -0.12026770412921906, -0.2299996316432953, 0.6078779101371765, -0.1331782042980194, -0.3320229947566986, -0.6979732513427734, -0.21041828393936157, 0.529380738735199, -0.3067680597305298, 0.12698143720626...
make any call across. Lastly, if you find a need for a web service at a later date, you should be able to fairly easily convert the DLL into a web service with minimal retrofitting.
[ 0.21983930468559265, -0.18110541999340057, 0.5025644302368164, 0.2017756849527359, -0.09170377999544144, -0.4540035128593445, 0.07107275724411011, 0.24968543648719788, -0.37981364130973816, -0.7143236994743347, -0.35763928294181824, 0.4806857705116272, -0.08465971797704697, 0.1520452946424...
Assuming I have a tree structure ``` UL --LI ---INPUT (checkbox) ``` And I want to grab the checked inputs, I would select ``` $('ul li input:checked') ``` However, I want to select the checked inputs of a specific object $myUL that doesn't have an ID. ``` $myUL.children('li input:checked') ``` returns all li...
[ 0.012319481000304222, 0.1106739416718483, -0.031139954924583435, 0.06064409762620926, 0.009626454673707485, 0.41213521361351013, -0.17957058548927307, -0.12684571743011475, 0.1376822590827942, -0.790273129940033, -0.40353336930274963, 0.24572275578975677, -0.48792222142219543, -0.180840566...
Per the Java documentation, the [hash code](http://java.sun.com/javase/6/docs/api/java/lang/String.html#hashCode()) for a `String` object is computed as: > ``` > s[0]*31^(n-1) + s[1]*31^(n-2) + ... + s[n-1] > > ``` > > using `int` arithmetic, where `s[i]` is the > *i*th character of the string, `n` is the length of...
[ -0.2844798266887665, 0.18775613605976105, 0.07544213533401489, -0.27993032336235046, -0.05649798363447189, 0.2816116511821747, 0.22209438681602478, -0.47565335035324097, -0.28827300667762756, -0.4164144694805145, -0.09217362105846405, 0.18719984591007233, -0.5420053005218506, -0.1003155559...
31 was chosen because it is an odd prime. If it were even and the multiplication overflowed, information would be lost, as multiplication by 2 is equivalent to shifting. The advantage of using a prime is less clear, but it is traditional. A nice property of 31 is that the multiplication can be replaced by a shift and a...
[ -0.329825758934021, -0.18870630860328674, 0.1986861675977707, -0.24804726243019104, -0.09240622818470001, 0.21658140420913696, 0.3192039132118225, -0.3180513381958008, -0.2871120870113373, -0.2682967185974121, -0.1172538474202156, 0.7220761179924011, -0.3987743556499481, -0.106031246483325...
I'm doing a basic homework assignment which looks like this: ``` While input <> -1 input = CDbl(InputBox("Enter numbers to add, enter -1 to stop")) values = values + input End While ``` It works fine until I press 'cancel' on the input box. Then the string input is "", and I get the following...
[ 0.06870137155056, 0.17182360589504242, 0.20817434787750244, -0.3562113642692566, 0.11125370860099792, -0.2162240594625473, 0.39250484108924866, 0.12062034755945206, -0.03794267028570175, -0.3819846510887146, -0.08777298033237457, 0.7388134598731995, -0.26951730251312256, 0.1635116338729858...
to type 'Double' is not valid."} ``` I think I understand the error, I'm trying to convert using CDbl a non-numeric value. My question is what would be a more proper way to write this code? Is it the code, or just a lack of error handling? Try using Double.TryParse ``` Dim value as Double = Nothing If Double.TryPars...
[ 0.41228607296943665, 0.16974569857120514, 0.29905614256858826, -0.11713536828756332, 0.008183982223272324, -0.19995304942131042, 0.5185679793357849, -0.2220829278230667, -0.040417663753032684, -0.4389967620372772, -0.19549895823001862, 0.5111790299415588, -0.6016698479652405, -0.0142363375...
I love [WinSCP](https://en.wikipedia.org/wiki/WinSCP) for Windows. What is the best equivalent software for Linux? I tried to use sshfs to mount the remote file system on my local machine, but it is not as user friendly as simply launching a GUI, plus it seems to require root access on the client machine, which is not...
[ 0.3944234848022461, 0.0002646563807502389, 0.49530917406082153, 0.12292420119047165, -0.06757944822311401, -0.28612977266311646, -0.04507721960544586, 0.1344875693321228, -0.39538949728012085, -0.8267504572868347, -0.18485860526561737, 0.4609282314777374, -0.08399785310029984, 0.1243169233...
be asked! (This is the same as sftp://root@servername/directory in Nautilus) In [Konqueror](https://en.wikipedia.org/wiki/Konqueror), you can simply type: fish://servername. Per Mike R: In [Ubuntu 14.04](https://en.wikipedia.org/wiki/Ubuntu_version_history#Ubuntu_14.04_LTS_.28Trusty_Tahr.29) (with [Unity](https://en....
[ 0.2586689889431, 0.001980652566999197, 0.43121203780174255, 0.03722292184829712, -0.08705723285675049, 0.2678486108779907, 0.018655307590961456, -0.16474834084510803, -0.21635554730892181, -0.6220282912254333, -0.22379590570926666, 0.457863986492157, 0.02247585915029049, -0.014922766946256...
I went to <http://www.json.org/js.html> and downloaded the json2.js, thinking i'd be fine, afterall that site is on the top in a google search for 'json javascript' - also they have this really cool url :) So i've been working a bit with it and it seemed fine, but now i start running into trouble with it - it simply w...
[ 0.40043896436691284, 0.21878232061862946, 0.022330790758132935, -0.12558342516422272, -0.3906782865524292, -0.17695172131061554, 0.2883859872817993, 0.20196020603179932, -0.18307094275951385, -0.49433743953704834, -0.002275147009640932, 0.6661802530288696, -0.3345024585723877, -0.261401087...
encode a single quote ' and perhaps double quotes ". Take a look at these examples (only parts of the full string) ``` {"Id":10651,"Text":"\'69"} {"Id":184,"Text":"13\""} ``` Am I missing something? it's part of a bigger string and all put in a javascript variable like this ``` var jsonObject = '[{"Id":46,"Type":2,...
[ 0.2949882745742798, 0.31098052859306335, -0.008375503122806549, 0.05769728869199753, 0.0032443045638501644, -0.25056570768356323, 0.5777412056922913, -0.09103988111019135, -0.1493648737668991, -0.3249783217906952, -0.07948409020900726, 0.3364701569080353, -0.5908926129341125, -0.0592958144...
kinda thinking i'm messing it up, but i've been trying to do all sorts of stuff to help with the parsing like escaping/unescaping etc. before the serializing/deserializing. [Obscenity Filters: Bad Idea, or Incredibly Intercoursing Bad Idea?](https://blog.codinghorror.com/obscenity-filters-bad-idea-or-incredibly-interco...
[ 0.6251190900802612, 0.2804029583930969, -0.06094508245587349, 0.03162609040737152, -0.3810034692287445, -0.4546525776386261, 0.5577628016471863, 0.012474325485527515, -0.20949821174144745, -0.4684819281101227, 0.21972821652889252, 0.2745510935783386, -0.4354532063007355, 0.0275917556136846...
I have a web site which I download 2-3 MB of raw data from that then feeds into an ETL process to load it into my data mart. Unfortunately the data provider is the US Dept. of Ag (USDA) and they do not allow downloading via FTP. They require that I use a web form to select the elements I want, click through 2-3 screens...
[ 0.5405787825584412, 0.09520778805017471, 0.04380466416478157, 0.02865162491798401, 0.2169840931892395, -0.06668996810913086, -0.006249991711229086, 0.07536518573760986, -0.3846888542175293, -0.6116521954536438, 0.011086651124060154, 0.24963144958019257, -0.1284741461277008, 0.2644495368003...
me exactly what put/get/magic goes from the final request to the server. If I had a tool that said, "pass these parameters to this url and wait for a response" I could then hack something together in Perl to automate this process. I realize that if I deconstructed all 5 of their pages and read through the JavaScript ...
[ 0.7500483393669128, -0.07616420090198517, 0.5287573933601379, 0.01691407710313797, -0.4396200180053711, 0.21813639998435974, 0.45815715193748474, -0.14315888285636902, 0.02976379171013832, -0.820024847984314, 0.10647404193878174, 0.5301882028579712, 0.07032568752765656, -0.0786427631974220...
final question: Is there a tool or method that will show clearly what the final request request sent from a web form was and how it was structured? A tamperer's best friends (these are firefox extensions, you could also use something like [Wireshark](http://www.wireshark.org/)) [HTTPFox](https://addons.mozilla.org/en-...
[ 0.04083657264709473, 0.025441275909543037, 0.6773201823234558, 0.2147781252861023, 0.16821451485157013, -0.3859633207321167, 0.3353019654750824, -0.31561416387557983, -0.3512413501739502, -0.08929441124200821, -0.2432624101638794, 0.37849676609039307, -0.07098842412233353, -0.4106467366218...
Why should companies invest in refactoring components, though it is not going to add any new feature to the product ? I agree it is to clean the code, fix bugs and remove dead code - but what is the take ?? Maintenance. It will reduce your maintenance costs significantly. There is no comparison between fully factored ...
[ 0.9429605603218079, 0.5189667344093323, -0.2905934751033783, 0.3940602242946625, 0.23549625277519226, -0.08929342031478882, 0.16098777949810028, -0.22326767444610596, 0.042086631059646606, -0.22195158898830414, 0.0765077993273735, 0.6524770855903625, -0.0397685207426548, 0.1126767769455909...
What steps do I take? Any gotchas to be aware of or tips to enhance the IDE experience that are specific to SQL Server when using Emacs? **Connecting** To connect to a SQL Server database instance from Emacs: ``` M-x sql-ms RET M-x sql-mode ``` You will be prompted for standard connection information specifica...
[ 0.2562234401702881, 0.32464131712913513, 0.5383087992668152, 0.2570383846759796, -0.11567479372024536, -0.09388032555580139, 0.31448066234588623, -0.16228826344013214, -0.17070893943309784, -0.79295414686203, -0.03565749153494835, 0.6278440356254578, -0.03699454665184021, 0.249701872467994...
\*SQL\* buffer, the 'go' statement should be called at some point. A couple of ways of doing this. For example, this sql statement will execute but it will not show any result text in the \*SQL\* buffer in its current format: ``` select 'foo' as bar ``` However, if a 'go' is appended to the end: ``` select 'foo' a...
[ 0.038495536893606186, 0.09862671047449112, 0.4360799193382263, -0.2637201249599457, -0.05513177812099457, -0.3231225609779358, 0.19055859744548798, 0.014876791276037693, -0.08502619713544846, -0.5896524786949158, -0.40502119064331055, 0.6949394941329956, -0.6927841901779175, 0.179983168840...
last time that the previous 'go' statement was sent to the sql process: ``` C-c C-s go RET ``` This is helpful if you need to view any error messages that might not initially show in the \*SQL\* buffer.
[ -0.19683849811553955, 0.02329617366194725, 0.15807531774044037, -0.09907618165016174, -0.31139644980430603, -0.3784986436367035, 0.1585261970758438, 0.280205100774765, -0.3565678596496582, -0.3467105031013489, -0.3536856472492218, 0.59893798828125, -0.27560338377952576, 0.06069600582122803...
i'm currently doing some reports for SSRS, and i just confirm what i already knew, i suck at this thing of color matching and making things look pretty. Does anyone know a good site or something to help me figure out how a report should look. I need help! any website or recommendations would be highly appreciated. I t...
[ 0.5621739625930786, -0.2275959700345993, 0.07832476496696472, -0.09316109120845795, 0.019572371616959572, -0.06753744184970856, 0.25445231795310974, 0.36642539501190186, -0.4214158356189728, -0.48518815636634827, 0.042076293379068375, 0.389026403427124, -0.21482740342617035, -0.02356006018...
have a specific need for it. Many years ago I worked as a typesetter for a while in the jobbing commercial print industry. Most of the clients did not want to pay for a colour print job due to the set-up costs, so the jobs tended to be black and white or two spot colours. Also, I've done any amount of documentation wo...
[ 0.9615110158920288, -0.008385111577808857, -0.023605529218912125, 0.030615223571658134, 0.1942141056060791, 0.10642178356647491, -0.3405202627182007, 0.17018361389636993, -0.45318159461021423, -0.5743314623832703, 0.12925530970096588, 0.5899722576141357, -0.3085451126098633, -0.25574508309...
with one or two highlight colours. If you find an overall colour scheme you like, you can use it as a standard format, but keep it simple. Otherwise, you're really just adding [Chart Junk](http://en.wikipedia.org/wiki/Chartjunk), which is a bad thing. If you really need colour, use it sparingly, and avoid reversed out...
[ 0.27676981687545776, -0.20524385571479797, 0.1837141364812851, -0.02612663432955742, -0.2275923192501068, -0.17101795971393585, 0.04042071849107742, 0.29788443446159363, -0.5555645823478699, -0.6561055183410645, -0.2764284312725067, 0.22154752910137177, -0.3935813903808594, -0.270112067461...
down the left side will frame a report. * Alternating bars of approx. 5 lines or so. 5 lines in a plain white background and 5 lines in a pastel shade. This should be lighter (equivalent to a 5-10% gray) than the shade you would use in headings described above. Only use this if the bars are equal size - it looks ugly i...
[ 0.17531757056713104, -0.11041785031557083, 0.3205704391002655, 0.14154314994812012, -0.18930472433567047, 0.3458767533302307, 0.20483611524105072, 0.07608328759670258, -0.3779921531677246, -0.6419146060943604, 0.01923147402703762, -0.060104988515377045, -0.10836519300937653, -0.17241136729...
rather than bright primary colours for printed charts unless you are doing line graphs, in which the lines should be relatively thin and darker colours like maroon or navy blue. Leave any borders, pips, axes and labels in black. Avoid graphical decoration for its own sake unless you are actually a competent graphic ar...
[ 0.689376175403595, 0.1013067439198494, 0.18285933136940002, 0.10829278826713562, -0.16364330053329468, -0.27973875403404236, 0.33811891078948975, 0.2711694538593292, -0.4421359598636627, -0.517003059387207, -0.10353163629770279, 0.5598900318145752, -0.12192903459072113, -0.1174604222178459...