text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
{ int fib = last + penultimate; penultimate = last; last = fib; if (fib>from && fib<to) results.Add(fib.ToString()); }
[ -0.3324781656265259, -0.54011070728302, 0.6884369254112244, -0.6512596011161804, 0.396303653717041, 0.12369079142808914, 0.19803458452224731, -0.6452367901802063, -0.015340711921453476, -0.5509128570556641, -0.4773557782173157, 0.4802147150039673, -0.2030784785747528, 0.06472683697938919, ...
return results; } public void PrintArrayList(ArrayList arrayList) { Console.WriteLine("Your Fibonacci sequence:"); Console.Write(arrayList[0]); for(int i = 1; i<arrayList.Count; i++) {
[ 0.19957409799098969, -0.2998347282409668, 0.6720322370529175, -0.41870221495628357, 0.44046664237976074, 0.08749085664749146, 0.2678859233856201, -0.5919241905212402, -0.10321709513664246, -0.2957794964313507, -0.28847599029541016, 0.7087728381156921, -0.4342866539955139, 0.103643059730529...
Console.Write("," + arrayList[i]); } Console.WriteLine(""); } } } ``` Regards, Chris As an iterator block: ``` using System; using System.Collections.Generic; using System.Linq; static class Program { static IEnumerable<long> Fibonacci() { long n = 0, m = 1; ...
[ 0.06907231360673904, -0.16319957375526428, 0.7344245314598083, -0.1248481422662735, 0.4770302176475525, 0.22954592108726501, 0.0597849003970623, -0.38999563455581665, -0.49718937277793884, -0.31407085061073303, -0.461091548204422, 0.23777231574058533, -0.28892871737480164, 0.49755483865737...
long tmp = n + m; n = m; m = tmp; yield return m; } } static void Main() { foreach (long i in Fibonacci().Take(10)) {
[ 0.12935282289981842, -0.5683897733688354, 0.5074060559272766, -0.6501508355140686, 0.526285707950592, 0.18592266738414764, 0.3223448693752289, -0.16974866390228271, -0.27387645840644836, -0.04155636578798294, -0.47647690773010254, 0.5025394558906555, -0.6444193124771118, 0.3320119380950928...
Console.WriteLine(i); } } } ``` This is now fully lazy, and using LINQ's `Skip`/`Take` etc allows you to control the start/end easily. For example, for your "between" query: ``` foreach (long i in Fibonacci().SkipWhile(x=>x < from).TakeWhile(x=>x <= to)) {...} ```
[ -0.029624786227941513, -0.34386342763900757, 0.4226216673851013, -0.27304545044898987, 0.5205236077308655, -0.263236939907074, -0.09880907088518143, -0.13646943867206573, -0.10054882615804672, -0.45826494693756104, -0.10449919104576111, 0.3419552147388458, -0.46281784772872925, 0.240068957...
I have a DateTime class and wish to display it according to some format... in this case, I specifically want to format it as YYYYMMDD format. What's the best C#/.NET API function for doing this? I always use this site to get any dates formats etc. <http://blog.stevex.net/index.php/string-formatting-in-csharp/>
[ 0.6427794098854065, 0.12816967070102692, 0.42021310329437256, 0.01905638724565506, 0.004330551251769066, -0.33095863461494446, -0.27008697390556335, 0.42928647994995117, -0.2110922932624817, -0.45852625370025635, 0.14675961434841156, 0.2564699947834015, -0.1719045490026474, 0.1784358024597...
I am trying to find the best way to design the database in order to allow the following scenario: 1. The user is presented with a dropdown list of Universities (for example) 2. The user selects his/her university from the list if it exists 3. If the university does not exist, he should enter his own university in a te...
[ 0.42895153164863586, 0.24006205797195435, 0.21447932720184326, 0.17135725915431976, -0.009674658998847008, -0.07850630581378937, 0.13724806904792786, 0.37159356474876404, -0.11517149955034256, -0.6628227829933167, -0.15895900130271912, 0.249245747923851, 0.23983170092105865, 0.194488018751...
want to make it similar to how Facebook handles this situation. If the user selects his Education (by actually typing in the combobox which is not my concern) and choosing one of the returned values, what would Facebook do? In my guess, it would insert the UserID and the EducationID in a many-to-many table. Now what i...
[ 0.01525510661303997, 0.15877673029899597, 0.40587952733039856, 0.3331850469112396, 0.2534503936767578, -0.002632089424878359, -0.19475169479846954, 0.26304829120635986, -0.30488574504852295, -0.6830630898475647, -0.13852955400943756, 0.1899154931306839, -0.01128083560615778, 0.217596530914...
person ( id smallint NOT NULL, university smallint, -- more columns here... CONSTRAINT person_pk PRIMARY KEY (id), CONSTRAINT person_university_fk FOREIGN KEY (university) REFERENCES university (id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE NO ACTION ); ``` public is set to 1 for the Unis in th...
[ -0.6555888056755066, 0.013177110813558102, 0.5360044240951538, 0.046475376933813095, -0.10395877808332443, 0.3820198178291321, 0.0639718547463417, 0.036607448011636734, -0.06995153427124023, -0.34803372621536255, -0.4982678294181824, 0.29844051599502563, -0.05953776836395264, 0.42564320564...
I'm working on an 'advanced search' page on a site where you would enter a keyword such as 'I like apples' and it can search the database using the following options: > Find : With all the words, With the > exact phrase , With at least one of > the words, Without the words I can take care of the 'Exact phrase' by: ...
[ -0.028276022523641586, 0.6042059659957886, 0.2783534824848175, 0.07118368148803711, 0.0550188384950161, 0.47365179657936096, 0.2027573436498642, 0.2699299156665802, -0.009175995364785194, -0.608832597732544, 0.042087722569704056, 0.47267478704452515, 0.13313257694244385, -0.062353275716304...
words' that I'm stuck on. Any suggestions on how to implement these two? **Edit:** Regarding 'At least one word' it wouldn't be a good approach to use explode() to break the keywords into words, and run a loop to add ``` (field='$keywords') OR ($field='$keywords) (OR).... ``` Because there are some other AND/OR ...
[ 0.23184631764888763, 0.20808467268943787, 0.04847424477338791, 0.05919436737895012, -0.20655201375484467, -0.1578957885503769, 0.3999628722667694, -0.3880908787250519, -0.061680108308792114, -0.299972802400589, -0.1324237883090973, 0.5957116484642029, -0.4221888482570648, -0.14390599727630...
field and they can pick either of the 4 options (i.e 1 word, exact words, at least 1 word, without the term).") I am assuming you are using php based on your initial post ``` <?php $choice = $_POST['choice']; $query = $_POST['query']; if ($choice == "oneWord") { //Not 100% sure what you mean by one word but this...
[ 0.03520621731877327, -0.12880071997642517, 0.33236321806907654, 0.03647445887327194, -0.230487659573555, 0.09158717840909958, 0.13593848049640656, -0.35599491000175476, -0.06992804259061813, -0.37193673849105835, -0.12298065423965454, 0.5729348659515381, -0.2861354947090149, -0.33113569021...
WHERE MATCH (field) AGAINST ('\"{$query}\"' IN BOOLEAN MODE)"); } elseif ($choice == "atLeastOneWord") { //The default with no operators if given multiple words will return rows that contains at least one of the words $result = mysql_query("SELECT * FROM table WHERE MATCH (field) AGAINST ('{$query}' IN BOOLEAN ...
[ -0.3865777552127838, -0.19266894459724426, 0.286467581987381, -0.23443764448165894, 0.09187006205320358, -0.08978618681430817, 0.29964640736579895, -0.4510393738746643, -0.013823241926729679, -0.37807586789131165, -0.43728989362716675, 0.8418166041374207, -0.3711971640586853, -0.3347577750...
See code below, for some reason it only works when I put a breakpoint on line 2 (\*) is there some delay? Is it starting the next line before it finishes the 2nd one? ``` dp.SSLCertStoreType = nsoftware.IBizPayPal.DirectpaymentSSLCertStoreTypes.sstPEMKey *dp.SSLCertStore = My.Computer.FileSystem.ReadAllText(Server.Ma...
[ 0.09948962926864624, -0.04753093048930168, 0.6447351574897766, 0.021358026191592216, 0.2902052700519562, 0.12370099872350693, 0.6378318071365356, -0.08443627506494522, -0.22132381796836853, -0.5150672793388367, -0.3231784403324127, 0.5161340832710266, -0.20238880813121796, 0.15951919555664...
working correctly. Almost certainly a threading issue, but nobody is going to be able to answer definitively unless they're familiar with `nsoftware.IBizPayPal`
[ 0.4744478762149811, 0.13925644755363464, 0.4622058570384979, 0.18947690725326538, 0.1732943207025528, -0.13594961166381836, 0.09527990221977234, 0.07822642475366592, -0.09394081681966782, -0.27640363574028015, -0.08265045285224915, 0.46208009123802185, 0.010923304595053196, 0.1012765392661...
I am verifying my login authentication using ASP.net webservices. But the client requested to move to WCF. I need to know in what way WCF differs from ASP.net webservices. What are the advantages for me to use WCF than ASP.net webservices. Recently there was an episode about that topic on Dime Casts.NET: [Episode #...
[ 0.8953086137771606, 0.274367094039917, -0.021000131964683533, 0.1937292516231537, -0.27406296133995056, -0.2705298662185669, 0.12327644973993301, -0.5656194090843201, -0.22323650121688843, -0.6403852701187134, 0.6304035782814026, 0.3443611264228821, -0.1768091470003128, 0.13420964777469635...
I'm teaching myself Objective-C from a book (*Cocoa programming for mac OS X*) and am about halfway through however I have two questions that aren't answered or defined in the book. 1. When defining class methods what is the difference between (assuming there in a .h file): - (int) population; + (int) population; T...
[ 0.11632587760686874, 0.1969607174396515, -0.0940232202410698, 0.01213875412940979, -0.1320604383945465, 0.09704282134771347, 0.1975843608379364, -0.11311071366071701, -0.14491841197013855, -0.5572337508201599, 0.051144249737262726, 0.2725938558578491, -0.2024426907300949, 0.199753776192665...
+ int population = [Earth population]; ``` If that is correct, when should I use static methods and are they're any disadvantages with doing so. 2. When defining a var in either a function paramater or as an actual var in a function, does the use of \* mean the var will be an object? e.g. (again in a header file.) ...
[ 0.14750947058200836, -0.21743832528591156, 0.10072147101163864, -0.24689869582653046, -0.09268119931221008, 0.14022982120513916, 0.3817088305950165, -0.0013161927927285433, -0.07030204683542252, -0.47829678654670715, -0.2819406986236572, 0.40544992685317993, -0.4124479591846466, 0.12904700...
etc. I'm a PHP and Ruby Programmer. The -/+ in method declarations for Objective-C simply denote whether the method is a class method or an instance method. For example, with Objective-C, you cannot send an instance a message that was declared as a class method. For example: ``` @interface MyObject : NSObject -(void)m...
[ -0.0502624548971653, 0.3207252323627472, 0.498653382062912, -0.17526042461395264, -0.11660623550415039, 0.06234920769929886, 0.475517600774765, -0.00253361277282238, -0.21155352890491486, -0.5839288830757141, -0.05239144712686539, 0.6605799794197083, -0.48318150639533997, -0.14236339926719...
part of your question, Objective-C is a strict super-set of C. It adds classes but they are really C data structures whose implementations are hidden from you by the Objective-C runtime. Because of this, classes are always represented as pointers. In C, the \* means that the variable is being declared as a pointer to s...
[ 0.19335080683231354, 0.12520022690296173, -0.1480969339609146, 0.25144851207733154, -0.12471169233322144, -0.18909303843975067, -0.06625695526599884, 0.25309547781944275, -0.1655830591917038, -0.37779170274734497, -0.1608130782842636, 0.5490033030509949, -0.4477674067020416, 0.168322041630...
I want to (quickly) put a program/script together to read the fileset from a .torrent file. I want to then use that set to delete any files from a specific directory that do not belong to the torrent. Any recommendations on a handy library for reading this index from the .torrent file? Whilst I don't object to it, I d...
[ 0.7522343397140503, -0.058420199900865555, 0.38072726130485535, 0.011017819866538048, -0.09278643131256104, -0.20403848588466644, 0.3833347260951996, -0.013358314521610737, -0.13957150280475616, -0.6555818915367126, -0.05328081548213959, 0.4851814806461334, -0.32865041494369507, 0.07560695...
from .torrent file (Python 2.4+): ``` import re def tokenize(text, match=re.compile("([idel])|(\d+):|(-?\d+)").match): i = 0 while i < len(text): m = match(text, i) s = m.group(m.lastindex) i = m.end() if m.lastindex == 2: yield "s" yield text[i:i+int(s)...
[ -0.26090431213378906, -0.2373257577419281, 0.48937949538230896, -0.527130126953125, -0.23416486382484436, 0.059703707695007324, 0.33830034732818604, -0.5881675481796265, 0.014135930687189102, -0.4215848743915558, -0.5179778337478638, 0.5764303207397461, -0.3310622274875641, 0.0229581203311...
i = i + int(s) else: yield s def decode_item(next, token): if token == "i": # integer: "i" value "e" data = int(next()) if next() != "e": raise ValueError elif token == "s": # string: "s" value (virtual
[ -0.3281972408294678, -0.3965885639190674, 0.490201860666275, -0.20967811346054077, -0.05568636208772659, 0.4143560826778412, 0.2743455469608307, -0.6139159202575684, -0.260152667760849, -0.6666131615638733, -0.3400682806968689, 0.5064167380332947, -0.03854302316904068, 0.18158695101737976,...
tokens) data = next() elif token == "l" or token == "d": # container: "l" (or "d") values "e" data = [] tok = next() while tok != "e": data.append(decode_item(next, tok)) tok = next()
[ -0.2738611102104187, -0.40343332290649414, 0.25904473662376404, 0.03593440726399422, 0.1362030804157257, 0.3558945059776306, -0.09158363938331604, -0.4317672848701477, -0.2747955620288849, -0.6380053162574768, -0.34325110912323, 0.13040855526924133, -0.17098239064216614, 0.2168727815151214...
if token == "d": data = dict(zip(data[0::2], data[1::2])) else: raise ValueError return data def decode(text): try: src = tokenize(text) data = decode_item(src.next, src.next()) for token in src: # look for more tokens raise SyntaxError("trailing junk...
[ -0.2927370071411133, -0.18811629712581635, 0.14612703025341034, -0.13742518424987793, -0.1701488494873047, 0.27301448583602905, 0.1757260262966156, -0.7553153038024902, -0.39727213978767395, -0.26977744698524475, -0.30370038747787476, 0.10594599694013596, -0.14481213688850403, -0.075510188...
StopIteration): raise SyntaxError("syntax error") return data if __name__ == "__main__": data = open("test.torrent", "rb").read() torrent = decode(data) for file in torrent["info"]["files"]: print "%r - %d bytes" % ("/".join(file["path"]), file["length"]) ```
[ 0.13999508321285248, 0.046678729355335236, 0.360228031873703, -0.24435284733772278, 0.0843205451965332, 0.1827688366174698, 0.5935935974121094, -0.32877323031425476, 0.03766321390867233, -0.3879125118255615, -0.7129635214805603, 0.5831812024116516, -0.3918527066707611, 0.12497314065694809,...
Would there be difference in speed between ``` if (myInt == CONST_STATE1) ``` and ``` if (myEnum == myENUM.State1) ``` in c#? In C# Enums are in-lined to be constants by the compilier anyway, so the benefit is code legibility
[ -0.036618541926145554, -0.11416872590780258, 0.02830762229859829, 0.09904739260673523, -0.009826770052313805, 0.18612848222255707, 0.18730123341083527, -0.25631505250930786, -0.03754524141550064, -0.4814487099647522, 0.03987707197666168, 0.4841932952404022, 0.021605109795928, -0.2504959106...
I have actions that take string id parameters that are based on a username which can include characters that require encoding, for instance "user?1" If I use `ActionLink()` to generate the links, passing the string without encoding, it generates a link like this: `http:\\localhost\controller\action\user?1`, and the ac...
[ 0.16666185855865479, -0.11451643705368042, 0.5192633271217346, -0.23287320137023926, -0.1508798450231552, 0.13624748587608337, 0.10394788533449173, -0.40027496218681335, -0.08012064546346664, -0.6799429059028625, -0.014555291272699833, 0.19057156145572662, -0.40349793434143066, 0.195616111...
tracked down the cause of. Is there any way that I can generate the url like: `http:\\localhost\controller\action\user%3f1`? In C# Enums are in-lined to be constants by the compilier anyway, so the benefit is code legibility
[ 0.2113247513771057, -0.10302198678255081, 0.5086352825164795, 0.2263934463262558, 0.10467823594808578, -0.22777806222438812, 0.23341313004493713, 0.30756786465644836, -0.19663451611995697, -0.450447678565979, -0.004757390823215246, 0.40237662196159363, -0.23356378078460693, 0.0300151985138...
I've been learning Objective-C and Cocoa by working my way through the [Hillegass book](https://rads.stackoverflow.com/amzn/click/com/0321503619) and it occurs to me that I might be better off using Objective-C++. Objective-C seems like the clear choice for developing UIs but I have a very strong C++ background and wou...
[ 0.45099928975105286, 0.5734438896179199, 0.044050347059965134, -0.07730084657669067, -0.24222400784492493, 0.0490926057100296, 0.2094235122203827, 0.43757298588752747, -0.33980128169059753, -0.39562952518463135, -0.0820683166384697, 0.8489565253257751, 0.038450222462415695, -0.199819013476...
but in my small group, we've used Objective-C++ both for integrating C++ libraries, and as you propose for writing backends in C++. As @alxp mentions, things like exception handling across the language boundary are painful, but with a little planning, most of these pains can be avoided. For experienced C++ devs, the ga...
[ 0.11493546515703201, 0.27689850330352783, -0.003516515251249075, -0.11424136161804199, -0.15987133979797363, -0.2905457317829132, 0.08467046171426773, -0.07203026115894318, -0.33670973777770996, -0.2119622528553009, -0.19181445240974426, 0.6175332069396973, -0.40288397669792175, -0.2347508...
hand, there isn't any official guarantee that Apple will continue to develop the integration—fixing some of the warts, for example. For current projects, I would say that if using Objective-C++ provides benefit, it is safe to rely on the existing support and you should use it.
[ 0.14655189216136932, 0.4714384078979492, -0.03719276934862137, 0.04312862828373909, 0.07634598016738892, 0.022220222279429436, -0.01718628779053688, 0.2630578577518463, -0.24182966351509094, -0.2226136326789856, 0.14948025345802307, 0.6125265955924988, -0.0491960272192955, -0.1521209776401...
I cannot find comparison of these parsing technique. Which one is most commonly used? Regards. Mustafa NSXMLParser is a [SAX](http://en.wikipedia.org/wiki/Simple_API_for_XML) parser, meaning it steps through the XML document, and informs you (via delegate methods) of various events (such as starting an xml node, findi...
[ -0.15250465273857117, 0.038384925574064255, 0.3420581817626953, 0.0625106543302536, -0.07651543617248535, -0.2504749000072479, -0.02193562500178814, -0.3751566708087921, -0.39677125215530396, -0.7090199589729309, -0.36397382616996765, 0.39864277839660645, -0.13125458359718323, 0.0542610660...
from the presented API. This is generally much easier to work with, as you get random access to the entire xml document. So the first question one should answer is the SAX vs DOM question. If you're woring with big XML files (say 10 MB or bigger), you may want to stick with SAX. If you're working with small XML files,...
[ 0.2715589702129364, -0.18577660620212555, 0.3224465847015381, -0.1307620257139206, -0.25397899746894836, -0.36967933177948, -0.11960937827825546, -0.1461801826953888, -0.3142591118812561, -0.4804289937019348, -0.3250053822994232, 0.6570155024528503, -0.32223960757255554, -0.154801174998283...
options if you become experienced with it. But, as it's written in C, it's not often attractive to those more familiar with Objective-C (objects, and autorelease), or those coming over from the .Net world. Thus, there is a need/desire for a native Objective-C wrapper around libxml to make it more familiar. TouchXML is ...
[ 0.0804934948682785, -0.28202787041664124, 0.30516350269317627, 0.14052259922027588, -0.03706401586532593, -0.15495426952838898, -0.15899087488651276, 0.22424016892910004, -0.16532491147518158, -0.6505611538887024, -0.3856349587440491, 0.40878912806510925, -0.26081186532974243, -0.182952314...
I have a contactbook, and a form close to it... For the form, one of the requirements is to fill in the receiver for the message. So when the user clicks on a contact from the contactbook, automaticly the username from the titel-tag should appear in the receiver inpunt in the form. All help with this is appreciated!! ...
[ 0.2784874737262726, 0.3210906684398651, 0.842194139957428, -0.09757377952337265, 0.13056425750255585, -0.34710997343063354, 0.044598039239645004, -0.27812016010284424, 0.05546339228749275, -0.4842698574066162, -0.22538156807422638, 0.6089756488800049, -0.029373615980148315, 0.1855703294277...
jQuery('a.addTitleTag').click(function() { titleText = jQuery(this).parents('p').attr('title'); jQuery("input[name='pmName']").val(titleText); }); }); ```
[ 0.04976332187652588, -0.13400878012180328, 0.8827685713768005, 0.0898158848285675, 0.3367784917354584, 0.029348138719797134, 0.21164833009243011, 0.026928285136818886, -0.04775547236204147, -0.4061982035636902, -0.7141923904418945, 0.5214093923568726, -0.19685913622379303, 0.55339324474334...
Is there a way in Java to declare an enumeration whose values can be used together? For example: ``` enum FileAccess { Read, Write, ReadWrite } ``` Is it possible to define ReadWrite as `Read | Write` (or anything that would yield the same result)? You use [EnumSet](http://java.sun.com/javase/6/docs/api/java/util/En...
[ 0.13360248506069183, 0.10943564772605896, 0.12771053612232208, -0.2424461841583252, -0.053133461624383926, -0.2363499253988266, 0.022665562108159065, -0.48415514826774597, -0.1933950036764145, -0.586266040802002, -0.15372277796268463, 0.3678434491157532, -0.2639448046684265, -0.08186585456...
I need a template like this, which work perfectly ``` template <typename container> void mySuperTempalte (const container myCont) { //do something here } ``` then i want to specialize the above template for std::string so i came up with ``` template <typename container> void mySuperTempalte (const container<std...
[ 0.2345057874917984, 0.04886137321591377, 0.03401659429073334, 0.062081724405288696, -0.007827451452612877, -0.14190255105495453, 0.11016832292079926, -0.2675396203994751, -0.10574925690889359, -0.9091253280639648, 0.16829213500022888, 0.7081231474876404, -0.49099671840667725, 0.03173598647...
used templates because 99% of the code is the same for both vectors and deques etc. If I am understanding your problem correctly you have an algorithm that will work for STL containers vector, deque etc but are trying to write a template specialisation for string. If this is the case then you can write the generalised ...
[ 0.21077200770378113, -0.03758115693926811, 0.17381365597248077, 0.20690461993217468, -0.1303139626979828, -0.08329993486404419, 0.066010482609272, -0.31545940041542053, -0.39637506008148193, -0.8951436877250671, 0.00544117484241724, 0.6415954232215881, -0.6672040224075317, -0.0116986297070...
other specialisation just change the type declaration for myCont. If you really need to do this for the vector and deque containers then make the template parameter the parameter for the type in that container rather than the container itself as Sep suggested. ``` template<typename C> void mySuperTempalte( const std::...
[ 0.048574186861515045, -0.2769869565963745, 0.217954620718956, 0.04166770353913307, -0.08999882638454437, -0.2516928017139435, -0.04181294143199921, -0.1740083396434784, -0.3237234652042389, -0.6130273938179016, -0.011728379875421524, 0.6910480856895447, -0.5196518898010254, -0.062777705490...
a vector to avoid the specialisation all together. On a side note, I've changed the container parameter to a const reference, I assume this is what you want, as you declare the object const anyway, this way you avoid a copy.
[ -0.01737455651164055, -0.3073841333389282, 0.5612831115722656, 0.0599001869559288, -0.2613084316253662, -0.09492911398410797, -0.3141373097896576, 0.2806619107723236, -0.28589344024658203, -0.503595769405365, 0.20310840010643005, 0.6251199245452881, -0.6461349129676819, 0.25858429074287415...
How can I detect if an application is not used for more than x minutes in DELPHI Use the applications OnDeactivate and onActive events.. That way you can abort the longrunning job if the user activates your program again. ex: ``` Application.OnDeactivate = yourDeactivProcedure; procedure mainform.YourDecativatePr...
[ 0.027267608791589737, -0.018241604790091515, 0.6343981623649597, -0.03162093088030815, 0.24403420090675354, -0.2919514775276184, 0.3164709210395813, 0.0203420240432024, -0.11563336104154587, -0.7579638957977295, -0.39558762311935425, 0.642605721950531, -0.05914933234453201, 0.0329619981348...
You can set the loongrunningjobs priority to low and it wont affect your program as much,
[ 0.4422295093536377, 0.07681770622730255, 0.16291862726211548, 0.19169597327709198, -0.1228385716676712, -0.2670752704143524, 0.16953471302986145, 0.24621987342834473, 0.17025262117385864, -0.27732619643211365, -0.07959755510091782, 0.5089244246482849, -0.11713068187236786, -0.2505541741847...
I'm having difficulty getting widgets in a QDialog resized automatically when the dialog itself is resized. In the following program, the textarea resizes automatically if you resize the main window. However, the textarea within the dialog stays the same size when the dialog is resized. Is there any way of making the...
[ 0.3054090738296509, 0.15775352716445923, 0.5969364047050476, -0.20109717547893524, 0.030855635181069374, 0.1927485316991806, 0.500584602355957, -0.2572503685951233, 0.047779716551303864, -1.0418801307678223, -0.08530057221651077, 0.7377380132675171, -0.2936249375343323, -0.1609655469655990...
as a string. NUMBERS = ("%d " * 1000) % (tuple(range(1,1001))) # Add a textarea containing the numbers 1 to 1000 to the given # QWidget. def addTextArea(parent, size): textbox = QTextEdit(parent) textbox.setReadOnly(True) textbox.setMinimumSize(QSize(size, size*0.75)) textbox.setText(NUMBERS) class Te...
[ 0.2519311010837555, -0.14176824688911438, 0.1363130807876587, 0.022959033027291298, 0.0839909091591835, 0.2375025749206543, 0.4035412073135376, -0.5109584331512451, 0.05584233999252319, -0.6130574345588684, -0.35078608989715576, 0.2575574815273285, -0.21936821937561035, -0.0161440763622522...
QMainWindow.__init__(self,parent) self.setCaption("Main Window") everything = QVBox(self) addTextArea(everything, 800) button = QPushButton("Open dialog", everything) self.connect(button, SIGNAL('clicked()'), self.openDialog) self.setCentralWidget(everything) ...
[ 0.2261040061712265, -0.1231410950422287, 0.3197113275527954, -0.005325173493474722, 0.047745056450366974, 0.047863032668828964, 0.42598646879196167, -0.3444739878177643, 0.1804928183555603, -0.7485692501068115, -0.13683061301708221, 0.4265884757041931, -0.4328667223453522, 0.17989444732666...
self.dialog.show() if __name__ == '__main__': app = QApplication(sys.argv) mainwin = TestMainWindow(None) app.setMainWidget(mainwin) mainwin.show() app.exec_loop() ``` QMainWindow has special behavior for the central widget that a QDialog does not. To achieve the desired behavior you need to creat...
[ 0.15732090175151825, 0.1730993688106537, 0.6411230564117432, -0.19042493402957916, -0.2472231090068817, 0.02812378667294979, 0.4729025959968567, -0.3428783416748047, 0.14308230578899384, -0.5936456322669983, 0.25756216049194336, 0.7536474466323853, -0.5384215116500854, -0.12498556077480316...
I've got an app which is using a WCF service. Now I'd like to add unit tests to the app. For some cases I need to mock the WCF service, since getting the desired behaviour from the service sometimes is tough (e.g. service throws special exceptions). I could add yet another interface to the wcf client, but this seems ...
[ 0.489563524723053, 0.1595207005739212, 0.3261886239051819, 0.15865881741046906, -0.31907758116722107, 0.20233744382858276, 0.5596712231636047, -0.2343071848154068, -0.22277629375457764, -0.500668466091156, 0.06362208724021912, 0.6346578001976013, -0.39822515845298767, 0.1266772747039795, ...
much about WCF service using, so some clarification: To use a WCF service from a ViewModel, I have to manage the connection something like this: ``` ChannelFactory<IMyWcfService> channelFactory = new ChannelFactory<IMyWcfService>(""); IMyWcfService proxy = channelFactory.CreateChannel(); proxy.CallMyStuff(); proxy....
[ 0.03508642315864563, 0.059200454503297806, 0.6775500774383545, -0.1919059455394745, -0.3657056987285614, -0.2578631639480591, 0.3767783045768738, -0.31074708700180054, -0.3204260766506195, -0.9463281631469727, 0.0685822144150734, 0.5402265191078186, -0.49374333024024963, 0.5662215948104858...
be able to create new instances on the fly, use the Factory to hide the `ChannelFactory<IMyWcfService>` from the client. This way you can replace the factory, providing the client one which creates mocks instead of real proxies.
[ 0.5933180451393127, 0.09156614542007446, 0.06461481004953384, 0.12213008105754852, -0.12009850144386292, 0.07344262301921844, 0.5497813820838928, 0.039305225014686584, -0.27731558680534363, -0.8344759345054626, 0.28965336084365845, 0.5972186326980591, -0.6958673000335693, 0.361646920442581...
I'm probably missing something simple here, but I can't find the answer elsewhere. I just want to display an applet in my GWT code. OS: Windows XP Java: JDK 1.6.0\_10 Other: GWT, GWT-Ext 2.0.5 Here is the applet (obviously simplified for testing): ``` package foo.applet; import javax.swing.JApplet; import java.awt...
[ 0.20134934782981873, 0.08367518335580826, 0.6824853420257568, -0.5205396413803101, -0.27446413040161133, 0.36257681250572205, 0.42917394638061523, -0.1666608452796936, -0.18289707601070404, -0.7985711693763733, -0.03639329597353935, 0.8558784127235413, -0.4401158094406128, -0.3290212452411...
getSize().height - 1); g.drawString("Hello world!", 5, 15); } } ``` Here is the code calling it: ``` package foo.applet; import com.google.gwt.user.client.ui.HTML; import com.gwtext.client.widgets.Panel; public class AppletPanel extends Panel { ``` ``` public AppletPanel() { HTML applet = new H...
[ -0.3308155834674835, 0.13698320090770721, 1.1026203632354736, -0.351764976978302, 0.26836270093917847, 0.2585304379463196, 0.549051821231842, -0.2537768483161926, -0.4078255593776703, -0.7564487457275391, -0.5438345670700073, 0.8518713712692261, -0.5368446707725525, -0.016002099961042404, ...
in 'file:/C:/<blah>/applet/HelloApplet.java' [ERROR] Line 3: The import javax.swing cannot be resolved [ERROR] Line 4: The import java.awt cannot be resolved [ERROR] Line 6: JApplet cannot be resolved to a type [ERROR] Line 8: Graphics cannot be resolved to a type ...
[ -0.13780368864536285, -0.048081617802381516, 0.42558735609054565, -0.08186639845371246, 0.03929795324802399, 0.23028972744941711, 0.25263288617134094, -0.3826829791069031, -0.006440622266381979, -0.2286897450685501, -0.5549674034118652, 0.22983567416667938, -0.5868148803710938, -0.24106769...
type HelloApplet [ERROR] Line 12: The method getSize() is undefined for the type HelloApplet ``` Obviously I'm missing some applet library, but I've grepped through all the jars in the jdk and tried including all of the ones that list JApplet or awt (plugin.jar, resources.jar, rt.jar, deploy.jar, javaws.ja...
[ -0.1473478525876999, 0.42825913429260254, 0.2688450813293457, -0.2725439667701721, 0.018029186874628067, 0.07402607798576355, 0.6948075890541077, 0.026244891807436943, -0.28584349155426025, -0.6162788271903992, -0.06815849244594574, 0.5570910573005676, -0.38177528977394104, 0.0884848013520...
our customers want a browser client and this is the fastest way to get that done. I don't know if GWT would accept the JPanel solution - the app is not written in any way that GWT can parse - i.e. it's not using the GWT API, it's using the Swing API. AFAIK, the only way to mix Swing with GWT would be in an applet fash...
[ 0.5979413390159607, 0.09453646838665009, 0.14617934823036194, 0.14594115316867828, -0.27725058794021606, -0.20006012916564941, 0.1756402999162674, -0.060740791261196136, -0.32715079188346863, -0.40578922629356384, 0.02179478481411934, 0.5894951820373535, -0.568221926689148, 0.0032254848629...
sure that your applet is not on GWT source path (move it to another package). Reference: <http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=RefJreEmulation>
[ 0.11839711666107178, 0.058234408497810364, 0.44085752964019775, 0.043003909289836884, 0.3897680640220642, -0.198770672082901, 0.5954391956329346, 0.15073077380657196, -0.013761225156486034, -0.6778679490089417, -0.4437611699104309, 0.9025205373764038, -0.282893568277359, -0.382318168878555...
We've a table with a `varchar2(100)` column, that occasionally contains carriage-return & line-feeds. We should like to remove those characters in the SQL query. We're using: ``` REPLACE( col_name, CHR(10) ) ``` which has **no effect**, however replacing 'CHR(10)' for a more conventional 'letter' character proves t...
[ -0.10373511165380478, 0.31568336486816406, 0.5401995778083801, -0.03563183173537254, -0.06376071274280548, 0.15744493901729584, 0.2849973440170288, 0.15738701820373535, 0.13539564609527588, -0.5709758400917053, -0.3618221580982208, 0.5082180500030518, -0.4033568501472473, -0.02312132716178...
null, because TRANSLATE doesn't work right if the 3rd parameter is null.
[ -0.08075722306966782, -0.1350463181734085, -0.1218331828713417, 0.0019024716457352042, -0.24462735652923584, -0.1480654776096344, 0.4202881455421448, 0.018298281356692314, 0.2683579623699188, -0.4233154058456421, -0.3096255958080292, 0.4177052676677704, -0.4652960002422333, -0.069032497704...
What would be the best way to bring people back to "their first love", i.e. programming, from other roles, e.g. sales, management, support, testing, etc. This may become an issue given the current state of the economy. I'm not talker about the CEO who last programmed ALGOL using punch cards, but someone who has more ...
[ 0.27321216464042664, 0.08264745771884918, 0.11773888766765594, 0.0908089205622673, -0.0009290984598919749, 0.13495004177093506, -0.2163020819425583, 0.27036818861961365, -0.32013893127441406, -0.40311557054519653, 0.017243297770619392, 0.22653548419475555, 0.0857662558555603, 0.14930705726...
is ready to come back. I was a dev for a long time, moved into management, and then into executive management, and finally decided I had to come back to development. The key to my ability to do it was that while I was "away", I was still following the industry closely and I still did little side projects to keep my ski...
[ 0.48485103249549866, -0.10203500092029572, 0.56687331199646, 0.20227032899856567, 0.4958024024963379, -0.19695647060871124, -0.18661616742610931, 0.3807763457298279, -0.4610789716243744, -0.23393875360488892, 0.04157724976539612, 0.4485933184623718, 0.5577220916748047, 0.4965098202228546, ...
From a web service (WCF), I want an endpoint to take 10 seconds to finish. Is there a way I can do a `thread.sleep(10);` on the method? You could create a wrapper method which does the appropriate sleep. ``` Thread.Sleep(TimeSpan.FromSeconds(10)) ```
[ 0.5022147297859192, 0.053590595722198486, 0.47273048758506775, -0.05838758125901222, 0.4322802722454071, -0.2456795871257782, 0.14019809663295746, -0.19566817581653595, -0.12758325040340424, -0.828147292137146, -0.052294157445430756, 0.38212254643440247, -0.05104757472872734, 0.02838647365...
Not that it is seriously burdensome to type ``` :My_custom_foobar() ``` instead of just ``` :my_custom_foobar() ``` but it just feels odd considering how virtually every other aspect of Vim is so extensible. Some searching for an answer has not turned up much, but I know it's got to be possible without having t...
[ 0.35364073514938354, 0.051825687289237976, 0.515690267086029, -0.12637610733509064, -0.21958351135253906, -0.0460829921066761, 0.37294647097587585, 0.003951461054384708, -0.3705642521381378, -0.591697633266449, -0.029560429975390434, 0.8459845781326294, -0.10000292211771011, -0.02930348739...
name.
[ 0.05847986042499542, 0.1598850041627884, 0.28507599234580994, 0.1518968641757965, -0.2300541251897812, -0.10643211007118225, 0.21392381191253662, 0.09350398182868958, -0.22496287524700165, -0.5305023789405823, -0.1508341133594513, 0.014628412202000618, -0.11896508932113647, 0.6330456733703...
I have a PDF document that needs to be pulled up in the browser, edited, and saved. I can save via the embedded adobe toolbar, along with all the other acrobat functions. But, what I am trying to see is if there is a way to display the PDF in a webpage alongside web controls. For example, in the top part of the webpag...
[ 0.20777855813503265, 0.07762811332941055, 0.33973023295402527, 0.19808638095855713, -0.03028259053826332, -0.2401844561100006, 0.04754377529025078, -0.07310116291046143, -0.054121531546115875, -0.6309689283370972, -0.3055322468280792, 0.3894387483596802, -0.11922724545001984, -0.1364433914...
The phrase was used as a warning that the code was pulling some serious stunts. My google search for this is pulling up nada; but I remember someone doing a search of google source for the phrase quite a while back. in lies dragons? dragons sleep here... Bah... [Here be Dragons.](http://en.wikipedia.org/wiki/Here_b...
[ 0.5203425884246826, 0.2242114394903183, -0.1000182032585144, 0.15352731943130493, -0.24543458223342896, -0.2520277798175812, 0.6977744102478027, -0.010235296562314034, -0.2566371262073517, -0.4574505090713501, -0.2862109839916229, -0.015359695069491863, 0.06406097859144211, 0.1950840055942...
I have always wondered if, in general, declaring a throw-away variable before a loop, as opposed to repeatedly inside the loop, makes any (performance) difference? A *(quite pointless)* example in Java: **a)** declaration before loop: ``` double intermediateResult; for(int i=0; i < 1000; i++){ intermediateResult...
[ 0.024230219423770905, 0.1918898969888687, -0.204320028424263, -0.6295078992843628, -0.24145564436912537, 0.08362830430269241, 0.5357543230056763, -0.3659154176712036, 0.028755344450473785, -0.5149052143096924, -0.22552861273288727, 0.5654546022415161, -0.16303661465644836, 0.17943325638771...
Example **b** has the advantage of being more compact and limiting the scope of the variable to where it is used. Still, I tend to code according example **a**. ***Edit:*** I am especially interested in the Java case. Which is better, **a** or **b**? From a performance perspective, you'd have to measure it. (And in m...
[ 0.2105964720249176, 0.23651455342769623, -0.23107704520225525, -0.13026000559329987, -0.4958648085594177, -0.06856430321931839, 0.39937135577201843, -0.07386557757854462, -0.28211382031440735, -0.79735267162323, -0.00006538703019032255, 0.6413149237632751, -0.24350975453853607, -0.26643121...
don't need to.
[ 0.845439076423645, 0.5383515954017639, -0.24958601593971252, 0.20241078734397888, -0.014795026741921902, 0.0029690642841160297, 0.29218119382858276, -0.030437486246228218, 0.0006954530836082995, -0.3877260684967041, -0.11840768158435822, 0.0449448861181736, -0.3709447979927063, 0.109238862...
I'm curious about the various versions of .net. We have an environment where we've developed applications in various versions (1.1 and 2.0). Now, I'm trying to get the 'go ahead' for developing in 3.5. The biggest issue is whether or not these versions will play nicely together on the same installation of IIS. Another ...
[ 0.37629127502441406, 0.014645024202764034, 0.3633635640144348, 0.006781964562833309, -0.09711217880249023, -0.24304616451263428, 0.053773488849401474, 0.05742953345179558, -0.06010683253407478, -0.8308778405189514, 0.04270053654909134, 0.7910474538803101, -0.2895635664463043, 0.11698470264...
of .net. Shouldn't this be enough that the varied applications using the varied .Net versions not affect one another? I'll take any answers I can get, but it would be supremely helpful if you could reference your answer with some documentation straight from Microsoft (my company plays big attention to 'hearing it dire...
[ 0.6434178948402405, -0.06682996451854706, 0.24515777826309204, 0.42830607295036316, -0.10426853597164154, -0.21731796860694885, 0.1779717355966568, 0.05694933235645294, -0.049301281571388245, -0.6415355801582336, -0.11870750039815903, 0.7112267017364502, -0.07101801782846451, 0.25552779436...
Web Sites, and another for the v.2.0 and higher sites. For your own knowledge, .Net 3.0 and 3.5 are both supersets of .Net 2.0, basically add-ons to the Runtime. Although the host machine is still required to have them installed. For all .Net 2.0 and higher web apps, simply install the latest .Net 3.5 SP1 runtime on t...
[ 0.7410469055175781, 0.09571633487939835, 0.4077184200286865, 0.14356538653373718, -0.340211421251297, -0.39912673830986023, 0.3914157748222351, -0.019218809902668, -0.1898564249277115, -0.8701449632644653, -0.07901863008737564, 0.7881021499633789, -0.27531445026397705, 0.06866718828678131,...
Are Swing applications really used nowadays? I don't find a place where they are used. Is it okay to skip the AWT and Swing package (I learned a bit of the basics though)? If you are writing for the web exclusively, you can probably skip Swing, but otherwise you're absolutely going to run into it. I've never worked on ...
[ 0.6658298969268799, 0.06725230067968369, -0.06861280649900436, 0.16937461495399475, -0.13902641832828522, -0.5551019310951233, 0.09692341089248657, 0.08680163323879242, -0.44070982933044434, -0.41045039892196655, 0.11414749175310135, 0.4994296729564667, -0.2591155469417572, -0.176250085234...
exceptions to this, please leave comments, I haven't looked for a while and am kind of curious if anything better has become available) Other JVM languages like JRuby and Jython are often used because of their access to Swing.
[ 0.5005915760993958, -0.14911212027072906, 0.07758462429046631, -0.011163751594722271, -0.5709441900253296, -0.5375425219535828, -0.03161732107400894, 0.1390966773033142, -0.5531455874443054, -0.25227147340774536, -0.366537481546402, 0.2393302470445633, -0.16230782866477966, -0.421285241842...
We have 2 applications that run under JBoss. I am looking for a way to reduce the overhead of the server. The main app runs under Tomcat. The other app is made up of MBeans. Is there a way to run MBeans under Tomcat? Alternative suggestions are appreciated. MBeans are a part of the JMX specification which is included...
[ 0.3397083282470703, -0.1996413916349411, 0.20959524810314178, -0.13680234551429749, -0.003815265139564872, -0.16506852209568024, 0.42168354988098145, -0.0962088331580162, -0.2638881206512451, -0.4927653670310974, -0.06263622641563416, 0.49926334619522095, -0.37485790252685547, -0.175242111...
What's the best way to read a fixed length record in Perl. I know to read a file like: ``` ABCDE 302 DEFGC 876 ``` I can do ``` while (<FILE>) { $key = substr($_, 0, 5); $value = substr($_, 7, 3); } ``` but isn't there a way to do this with read/unpack? Update: For the definitive answer, see Jonathan Leffle...
[ 0.22776171565055847, 0.06754752993583679, 0.16897615790367126, 0.04914722219109535, -0.07259882241487503, -0.20262965559959412, -0.03480815514922142, -0.4159473180770874, -0.5514479875564575, -0.14539265632629395, -0.008711617439985275, 0.4348296821117401, -0.3625161051750183, -0.048527758...
read($fh, $buf, $buf\_length)...see below): ``` use Parse::FixedLength; my $pfl = Parse::FixedLength->new([qw( key:5 blank:1 value:3 )]); # Assuming trailing newline # (or add newline to format above and remove "+ 1" below) my $data_length = $pfl->length() + 1; { local $/ = \$data_length; while(<FILE>) { ...
[ 0.04543375223875046, -0.015654966235160828, 0.7850902676582336, -0.07530169934034348, 0.08104734122753143, -0.31628304719924927, 0.1498344987630844, -0.39228278398513794, -0.20188948512077332, -0.3980746269226074, -0.4402552843093872, 0.6568547487258911, -0.2939249575138092, -0.08320119231...
what it is, I should include some of Jonathan Leffler's more straight forward code, which is likely how you should usually do it (see [pack](http://perldoc.perl.org/functions/pack.html)/[unpack](http://perldoc.perl.org/functions/unpack.html) docs and Jonathan Leffler's node below): ``` $_ = "ABCDE 302"; my($key, $blan...
[ 0.21438290178775787, 0.010330797173082829, -0.15412528812885284, -0.25863760709762573, 0.09266983717679977, -0.1789567470550537, 0.21550467610359192, -0.266719251871109, -0.014072427526116371, -0.21178588271141052, -0.10487833619117737, 0.2682313621044159, -0.32395297288894653, -0.17248310...
If my app has been tested in Firefox 3, Safari 3 & IE 7 will it need additional testing for Chrome? If there are areas that'll need further testing -- then are there any online guides I could share with my designers & developers? At what point will Chrome be considered to have sufficient market share to be treated as...
[ 0.6431541442871094, 0.3698633909225464, 0.3948999047279358, -0.008450024761259556, -0.14259929955005646, -0.0931677296757698, 0.25487780570983887, -0.05475620925426483, -0.0969204306602478, -0.6509667038917542, 0.1395975947380066, 0.9642303586006165, -0.11235730350017548, -0.27918443083763...
test my stuff with Chrome because I use Chrome intensively for development. It is good practice to test your pages with at least one WebKit (or KHTML) based browser though.
[ 0.834152340888977, 0.3847372829914093, 0.15725871920585632, 0.1692100167274475, -0.4554253816604614, -0.5889889597892761, 0.3084195852279663, 0.10622716695070267, 0.1521507054567337, -0.7363101243972778, 0.2187233418226242, 0.37748995423316956, 0.13694781064987183, -0.1554364711046219, 0...
Take the example classes below. I want to display the customer and two addresses (from a LIST) on a form. Does the model binder in MVC beta support this or will I have to write my own custom binder? ``` public class Customer { public string FirstName { get; set; } public string LastName { get; set; } publ...
[ 0.0916341170668602, 0.008712816052138805, 0.6128492951393127, -0.29783761501312256, 0.02594369649887085, 0.26189950108528137, -0.07532810419797897, -0.2793896198272705, -0.20218291878700256, -0.5708208680152893, -0.22529910504817963, 0.570049524307251, -0.374567449092865, 0.383630305528640...
public int Line1 { get; set; } public int Line2 { get; set; } public int City { get; set; } public int State { get; set; } public int Zip { get; set; } } ``` How would you code the fields? Like this? ``` <!-- some HTML formatting --> <%= Html.TextBox("customer.address.line1", ViewData.Customer.Addres...
[ 0.4903451204299927, -0.44774329662323, 0.6024402379989624, 0.054177090525627136, -0.09256111830472946, -0.03973420336842537, 0.15781576931476593, -0.2869594693183899, -0.07816132158041, -0.7366964221000671, -0.19192154705524445, 0.14910782873630524, -0.4670100808143616, -0.0412773936986923...
In my bash script I have an external (received from user) string, which I should use in sed pattern. ``` REPLACE="<funny characters here>" sed "s/KEYWORD/$REPLACE/g" ``` How can I escape the `$REPLACE` string so it would be safely accepted by `sed` as a literal replacement? **NOTE:** The `KEYWORD` is a dumb substri...
[ -0.14501211047172546, 0.3476901054382324, -0.05619155988097191, -0.07384641468524933, -0.022421078756451607, -0.047272488474845886, 0.7046672105789185, -0.418977826833725, -0.482429563999176, -0.4695367217063904, -0.3514772951602936, 0.38582491874694824, -0.3779616355895996, -0.29935771226...
to *get* their special meaning. For example, if you escape a digit in the replacement string, it will turn in to a backreference. As Ben Blank said, there are only three characters that need to be escaped in the replacement string (escapes themselves, forward slash for end of statement and & for replace all): ``` ESC...
[ -0.3022572994232178, -0.1221177726984024, 0.3612498342990875, -0.14216668903827667, 0.24987584352493286, 0.30679771304130554, 0.5781355500221252, -0.4228522777557373, -0.25524264574050903, -0.6115421652793884, -0.5097147226333618, 0.482531875371933, -0.5128203630447388, 0.12035412341356277...
Now you can use it inside the original sed statement to replace text sed "s/$ESCAPED_KEYWORD/$ESCAPED_REPLACE/g" ``` Remember, if you use a character other than `/` as delimiter, you need replace the slash in the expressions above wih the character you are using. See PeterJCLaw's comment for explanation. *Edited:* D...
[ -0.23738712072372437, -0.019119232892990112, 0.25221726298332214, -0.2084498554468155, 0.039795778691768646, 0.1034223660826683, 0.39964815974235535, -0.1331186592578888, -0.2862410843372345, -0.6397415995597839, -0.4411054849624634, 0.3625796437263489, -0.36615365743637085, 0.053900241851...
In Oracle SQL Developer, one can list the data in a table using the Data tab when viewing a table. There is also a 'Sort...' button to set the sort order of the data you are viewing. This can be very handy for viewing some data on the fly. The problem: I set a sort order for viewing a particular table which is not su...
[ 0.24593786895275116, 0.07446158677339554, -0.15765570104122162, 0.09295768290758133, -0.2681989371776581, -0.17537003755569458, -0.15507453680038452, 0.042571499943733215, -0.2614908814430237, -0.24277016520500183, 0.2856168746948242, 0.4470893144607544, -0.37819284200668335, 0.15343612432...
grown and now it takes forever. There is no way to stop it except by force quitting SQL Developer, losing anything unsaved. (If you know another way to stop this sort, let me know!) So, I should change the viewing sort order to something else, but you can only access the Sort... button when viewing the data. Is there...
[ 0.21829523146152496, -0.009014402516186237, 0.7294560074806213, -0.06206690892577171, 0.19086359441280365, 0.031014440581202507, 0.24718444049358368, 0.031542859971523285, -0.4573647379875183, -0.584429144859314, 0.425967276096344, 0.5172145962715149, -0.13853834569454193, 0.39882829785346...
command from the GUI to eliminate the sort order but you can use this workaround: 1. Go in the sqldeveloper settings folder. On M$ Windows is located in %HOME\_USER%/Application Data/SQL Developer 2. Perform a full text search specifying the name of the sorted column. If the column's name is too common (ex: data) spec...
[ -0.017857694998383522, -0.14585791528224945, 0.42177197337150574, -0.27015751600265503, -0.11341675370931625, -0.1354595124721527, 0.2595648467540741, -0.3444932699203491, -0.019040444865822792, -0.6484721899032593, -0.28665557503700256, 0.4808601140975952, -0.6357723474502563, -0.13201449...
the column you want eliminate from sorting replace the line with an empty element () 4. Restart sqldeveloper and ... sort is not there anymore! Hope this helps Cheers, Fabrizio Fortino
[ 0.003479182720184326, -0.013356528244912624, 0.5526529550552368, 0.13402485847473145, -0.11545001715421677, -0.09308651834726334, 0.20162269473075867, 0.10043520480394363, -0.09352200478315353, -0.25175854563713074, -0.09300076961517334, 0.42562973499298096, -0.6012206673622131, -0.2770548...
I have a PHP application that makes extensive use of Javascript on the client side. I have a simple system on the PHP side for providing translators an easy way to provide new languages. But there are cases where javascript needs to display language elements to the user (maybe an OK or cancel button or "loading" or som...
[ 0.4313136637210846, 0.3639123737812042, 0.14673198759555817, -0.10470938682556152, -0.31758245825767517, -0.12451877444982529, 0.48486822843551636, 0.2598018944263458, 0.1501469612121582, -0.6615506410598755, -0.0008968932670541108, 0.6213606595993042, -0.18948006629943848, -0.167789608240...
me the translated version which I integrate into the application. I want something similar on the client side. It occurred to me to have a javascript include that is just a set of translated constants but then every page load is downloading a potentially large file most of which is unnecessary. Has anyone had to deal...
[ 0.699720025062561, 0.13525843620300293, 0.08140529692173004, 0.06582243740558624, -0.2285003662109375, 0.027053741738200188, 0.37969210743904114, 0.2726680040359497, 0.08622269332408905, -0.7280839085578918, -0.040250569581985474, 0.7007457613945007, -0.21070070564746857, -0.12299947440624...
the javascript from php? So instead of heaving: ``` <script type='text/javascript' src='jsscript.js'></script> ``` do ``` <script type='text/javascript' src='jsscript.php'></script> ``` And then in the php file replace all outputted text with their associated constants. Be sure to output the correct caching h...
[ -0.030278174206614494, 0.3634123206138611, 0.5322813987731934, -0.18123885989189148, -0.32911643385887146, -0.05592133104801178, 0.37978851795196533, -0.3535187840461731, -0.12483186274766922, -0.3365824520587921, 0.004953794181346893, 0.31412437558174133, -0.22505366802215576, 0.003545003...
We have 3 identical HP DL380 G5 server here, one of them is running vmware-server with one VM running on it. I've begun the process to migrate these systems to be running ESXi (the $0, "embedded" system); two of the physical machines will have %99.99 of the time exactly 1 VM, the other will have 2. For this, the majo...
[ 0.42803993821144104, 0.2795827388763428, 0.7130576372146606, 0.4987511932849884, 0.09408921003341675, 0.11322402209043503, 0.04643517732620239, 0.08944417536258698, -0.3728448152542114, -0.5908765196800232, 0.08878006041049957, 0.40523380041122437, 0.04754655063152313, 0.35332128405570984,...
from tape. Being the free version, I don't get the VMWare "consolidated backup" or VMotion. And I need to do per-physical machine management. But the ESXi takes 32MB of disk, and it specifically supports the server. With that in mind, is there any reason *not* to *always* use ESXi, if the hardware supports it? Even i...
[ 0.38955235481262207, 0.03479652479290962, 0.39434584975242615, 0.3837939500808716, 0.07707370072603226, -0.40860506892204285, -0.09685255587100983, -0.0645979791879654, -0.5335367321968079, -0.7604103684425354, 0.0384611114859581, 0.7592916488647461, -0.29048269987106323, 0.047224596142768...
Server on top of my development OS so I could do testing and use different distro's etc. I wouldn't do VMware Server for a production server like you are describing, but ESXi would be the best choice.
[ 0.14510121941566467, -0.04444415122270584, 0.20236678421497345, 0.329293817281723, -0.14966124296188354, -0.16407950222492218, -0.17103274166584015, 0.2905481159687042, -0.1062084212899208, -0.6852065324783325, 0.26973724365234375, 0.5254017114639282, -0.02895224280655384, 0.25333598256111...
HI i did this code with help of Marc Gravell in [Why can't I find \_left and \_right in BinarySearchTree?](https://stackoverflow.com/questions/406791/) & [How do I correct an implicit conversion error in BST C# Code?](https://stackoverflow.com/questions/406402/bst-c-code-with-errors) , its Binary search tree ,...
[ -0.33740493655204773, 0.19839529693126678, 0.7701536417007446, -0.03092101216316223, -0.058201372623443604, 0.03470670431852341, 0.42433977127075195, -0.3781202435493469, -0.09711499512195587, -0.26665282249450684, -0.2019573301076889, 0.42453187704086304, -0.25976473093032837, -0.19016169...
way How can i get the height of the tree ?! --- ``` using System; using System.Collections.Generic; using System.Text; namespace errors { class Program { static void Main(string[] args) { BinarySearchTree t = new BinarySearchTree(); t.insert(ref t.root, 10); ...
[ 0.19490614533424377, -0.26470765471458435, 0.6752703189849854, -0.02242003008723259, 0.27403122186660767, 0.26172131299972534, 0.676241397857666, -0.24800990521907806, -0.4462270736694336, -0.38666102290153503, -0.27423518896102905, 0.4757370948791504, -0.022415291517972946, 0.212319016456...
6); t.insert(ref t.root, 17); t.insert(ref t.root, 2); t.insert(ref t.root, 3); BinarySearchTree.print(t.root); Console.WriteLine("------------------------------------------------"); Console.WriteLine(t.FindMax()); Console.WriteLine(t...
[ -0.36412081122398376, -0.17490218579769135, 0.5509508848190308, -0.0886617973446846, 0.27617648243904114, 0.28949928283691406, 0.30386409163475037, -0.007492405828088522, 0.14708903431892395, -0.650824248790741, -0.6336824893951416, 0.503095269203186, -0.19193030893802643, -0.0232192035764...
Console.WriteLine("------------------------------------------------"); Console.WriteLine(t.CountLeaves(t.root)); Console.WriteLine(t.CountNodes(t.root)); } public class TreeNode { public int n; public TreeNode _left; public TreeNode ...
[ -0.5992994904518127, -0.3329511880874634, 0.4621041417121887, -0.07508961111307144, 0.4226533770561218, 0.0070475502870976925, 0.28328901529312134, -0.03745051845908165, 0.04429750517010689, -0.6805943846702576, -0.4576932191848755, 0.38809794187545776, -0.20952501893043518, 0.267133802175...
public TreeNode(int n, TreeNode _left, TreeNode _right) { this.n = n; this._left = _left; this._right = _right; }
[ -0.34531623125076294, -0.11138502508401871, -0.014218793250620365, -0.02904280461370945, 0.21865655481815338, -0.16895554959774017, 0.3334886133670807, 0.13565129041671753, -0.2833714485168457, -0.5193383097648621, -0.5059792399406433, 0.2585908770561218, -0.3302355408668518, 0.10874902456...