text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
performance) I'd factor out the obvious generic services that can be used in other apps right now. I would not over-SOA your environment to avoid adding points of failure and keep the ones SOA introduces to a minimum.
[ 0.3450089395046234, 0.1172676607966423, 0.3452399671077728, 0.2833901345729828, -0.04486048221588135, 0.08420289307832718, 0.5194907188415527, 0.02082931064069271, -0.10672581940889359, -0.6671949028968811, 0.008511537685990334, 0.7696422338485718, -0.02833203598856926, -0.2657378017902374...
I've been reading CLR with C# 3.0 and I've been reflecting on Assemblies, Modules and Headers however things got complicated. This is what I understood but if would be great if someone can clarify things little bit more: 1. Modules are result of csc.exe which contains IL code and Metadata tables. Metadata tables conta...
[ 0.5164533257484436, -0.13150082528591156, 0.2866562604904175, 0.21050715446472168, -0.21293368935585022, -0.2714366614818573, -0.3833490014076233, -0.5332559943199158, -0.15678468346595764, -0.7114784717559814, -0.1813308596611023, 0.15278954803943634, -0.15173488855361938, -0.027209704741...
Executable are files can be .EXE or .DLL. These files have PE32 or PE32+ headers, CLR Headers, Metadata, IL Code. The books says Assembly is a container consists of Modules and it also says Managed Module is **Managed Module:** > A managed module is a standard 32-bit Microsoft Windows portable > executable (PE32) ...
[ 0.1772330105304718, 0.1684909611940384, 0.4949241876602173, 0.06702248007059097, 0.08185163885354996, -0.15056128799915314, 0.10813155025243759, -0.4144873023033142, -0.3334595561027527, -0.583336353302002, -0.7917624711990356, 0.19300158321857452, -0.21188144385814667, 0.09896958619356155...
resource > files. > > > Richter, Jeffrey (2010-02-05). CLR via C# (Kindle Locations 766-767). > OReilly Media - A. Kindle Edition. ![enter image description here](https://i.stack.imgur.com/naTeg.png) So it seems that Managed Module are actually part of the Assembly in the image taken from the same book. PE32 hea...
[ 0.0888015553355217, 0.15650981664657593, 0.13303369283676147, 0.28190934658050537, -0.053632669150829315, 0.04548151418566704, -0.07076948136091232, -0.36627256870269775, -0.19692739844322205, -0.8262706398963928, -0.38828733563423157, 0.28525176644325256, 0.03786782547831535, 0.2085573524...
the standard > information that Windows expects. The CLR header is a small block of > information that is specific to modules that require the CLR (managed > modules). > > > Richter, Jeffrey (2010-02-05). CLR via C# (Kindle Locations > 1628-1629). OReilly Media - A. Kindle Edition. Also the image clearly shows t...
[ 0.4043826758861542, 0.08222850412130356, 0.5680524706840515, 0.18403470516204834, 0.1192847192287445, -0.5069177150726318, -0.019022630527615547, -0.22936807572841644, -0.6720046401023865, -0.3791653513908386, -0.5969277620315552, 0.4042004644870758, -0.19749221205711365, -0.08349048346281...
PE32 file. It is a very flexible format, originally intended to store native executable code and resources but flexible enough to also store data. Which is really what an assembly is from the point of view of Windows. Only the CLR can turn that data into something executable. A PE32 file contains more than just the as...
[ 0.12612812221050262, -0.42985498905181885, 0.057165030390024185, 0.12541571259498596, -0.005398095585405827, 0.09872477501630783, 0.10472472012042999, -0.11011452972888947, 0.1386352777481079, -0.8238812685012817, -0.27770891785621643, 0.3598285913467407, -0.22782698273658752, -0.032561238...
is further extended for mixed mode assemblies, System.Data.dll and PresentationCore.dll are examples of those. They have large chunks of native code in them, code that's wrapped by managed classes. The C++/CLI compiler and linker is the way to create assemblies like that. The .text section contains the code, the .reloc...
[ 0.12283589690923691, -0.20137165486812592, 0.06816133856773376, 0.16939149796962738, -0.1886717975139618, -0.20917192101478577, -0.09088447690010071, -0.104063980281353, -0.453031986951828, -0.8485841155052185, -0.29156193137168884, 0.2806064188480377, -0.20499391853809357, 0.2546636462211...
You can see this with File + Open + File and select an assembly. There are three important ones: * RT\_MANIFEST, contains a manifest with resource ID 1. That's what Windows needs to understand that a C# program is compatible with UAC. You create your own manifest by adding a Application Manifest File to a project. * I...
[ 0.3361451029777527, -0.01745983399450779, 0.15696389973163605, -0.01729927398264408, -0.039767708629369736, 0.037420835345983505, 0.10446984320878983, -0.24657267332077026, -0.22266310453414917, -0.9260334372520447, 0.018270598724484444, 0.41650131344795227, -0.373430460691452, -0.00157825...
of a PE32 file. Unfortunately it knows about managed assemblies so you can't see everything.
[ 0.23628129065036774, 0.025258848443627357, -0.36823365092277527, 0.1951122134923935, 0.14982551336288452, -0.09269654750823975, 0.19633255898952484, 0.37752318382263184, -0.11306341737508774, -0.584622323513031, -0.03327823802828789, 0.40502142906188965, -0.25765806436538696, 0.21716912090...
I currently have an HTML file, with a form in it, that when submitted POSTs the form & calls a simple short PHP file that calls a function within another PHP file using the POSTed variables as parameters. The files are both below. What I am wondering is whether I can somehow skip the middleman PHP file, and simply call...
[ 0.4149427115917206, 0.037511762231588364, 0.6103973388671875, -0.1694401502609253, -0.26957452297210693, 0.11875667423009872, 0.07483983039855957, -0.2976458668708801, -0.016351968050003052, -0.507500410079956, 0.03360765054821968, 0.2618958353996277, -0.006671986076980829, 0.1099505871534...
STYLE="WIDTH:0px; " MAXLENGTH="8" TITLE="Enter Date" Value="<?php $dt = date('Y-m-d'); echo $dt ?>"/> <INPUT TYPE="text" NAME="Time" STYLE="WIDTH:70px; " MAXLENGTH="7" ONCHANGE="validateTime();" /> <SELECT NAME = "Result"> <OPTION VALUE = OK></OPTION> <OPTION VALUE = C>C</OPTION> </SELECT> ...
[ 0.027700655162334442, -0.6694806218147278, 0.7195088267326355, 0.06176425889134407, 0.0668240636587143, 0.1909986436367035, 0.12415465712547302, -0.2124680131673813, -0.5347907543182373, -0.5119139552116394, -0.14537818729877472, 0.4332699179649353, 0.2083057463169098, -0.04198520630598068...
$allParticipants = getall_participants(); foreach($allParticipants as &$value) { $val = $value->get_id(); echo "<OPTION VALUE='",$val,"'>"; echo $value->get_first_name()," ",$value->get_last_name();
[ 0.06138451397418976, -0.20919354259967804, 0.32524147629737854, -0.22623492777347565, 0.16369855403900146, 0.2341238409280777, 0.48027151823043823, -0.4560740292072296, -0.39993664622306824, -0.33686885237693787, -0.7143293619155884, 0.41856664419174194, -0.3209643065929413, -0.06643996387...
echo "</OPTION>"; } ?> </SELECT> <TEXTAREA NAME='Notes' COLS='28' ROWS='5'></TEXTAREA> <INPUT TYPE="image" SRC = "images/submit.png" VALUE="Submit Participant"/> </FORM> ``` PHP File: ``` <?php include_once('database/PE.php'); insert_PE(new PE($_POST[Date],$_POST[Part...
[ 0.08012811094522476, 0.1995142549276352, 0.221120223402977, -0.3401409983634949, -0.17633146047592163, 0.11968196928501129, 0.2598784863948822, -0.6883711218833923, -0.040961191058158875, -0.40941399335861206, -0.099667988717556, 0.3385271430015564, -0.2189355045557022, -0.1022389456629753...
way the PHP code only fires if an POST was actually performed. Some would suggest checking for the presence of a form field, but that's unreliable - you might change the form down the road and forget to update the `if()`. Checking the request method is guaranteed to be 100% reliable.
[ 0.4876876771450043, 0.10731036216020584, 0.49806058406829834, 0.1821531504392624, -0.13878117501735687, -0.5815793871879578, 0.8467645049095154, -0.2118634432554245, 0.04529748484492302, -0.1622040718793869, -0.0390489399433136, 0.5427969098091125, 0.13147372007369995, -0.4950539469718933,...
I've noticed that AS3 doesn't seem to contain a way of defining a minimum amount of characters required but does have a maximum. Any way to do this with a textfield? [joncys](https://stackoverflow.com/users/1009933/joncys) is pretty dead on - your TextField can't really have a minimum character limit other than 0, but...
[ -0.053421810269355774, -0.18738681077957153, 0.1403743475675583, 0.004765392281115055, -0.2211693823337555, -0.046147942543029785, 0.7323703765869141, -0.021636677905917168, -0.4231950044631958, -0.46720969676971436, -0.17517930269241333, 0.41633713245391846, -0.05210138484835625, -0.21402...
and doesn't let them submit/progress. ``` if (string.length >= 5) { // do whatever. They've entered at least 5 characters } else { // Throw an error at the user. } ```
[ 0.050594523549079895, 0.2638638913631439, 0.1429656594991684, -0.1637796312570572, 0.1307632029056549, 0.13866694271564484, 0.4843994975090027, -0.19707521796226501, -0.22519582509994507, -0.6490241885185242, -0.47066831588745117, 0.3185284733772278, 0.09050099551677704, -0.169681012630462...
I have an app that currently shows a message box when the users saves that just says "Saved successfully". The problem is, user's tend to save frequently when using this app and the message box is a pain in the @$$. I'd like to have a little notification box that fades in and out and doesn't require user interaction, k...
[ 0.7034003138542175, 0.17960284650325775, -0.08481136709451675, 0.18098367750644684, -0.1339922845363617, -0.08104407787322998, 0.4014727771282196, 0.14401859045028687, -0.1796196550130844, -0.6869535446166992, 0.423398494720459, 0.6373306512832642, -0.10841155052185059, 0.17883360385894775...
styled as you wish. When you need to notify, you can `Show` the form - to fade it in and out use the [`Opacity`](http://msdn.microsoft.com/en-us/library/system.windows.forms.form.opacity.aspx) property (using a timer to animate the changes).
[ 0.6943074464797974, -0.33296969532966614, 1.0160553455352783, 0.09088670462369919, 0.38449984788894653, -0.24199014902114868, 0.12760844826698303, -0.16854868829250336, -0.11592995375394821, -0.588427722454071, -0.24947763979434967, 0.3490825891494751, -0.13572649657726288, 0.1601130962371...
I've a problem when i'm connecting to a postgresql database with jdbc. I've install postgresql 9.1 from a package download on the pgAdmin3 site (i needed gui). I'm connecting to db whith pgAdmin with no problems, but when i try to connect from java code, i've the sequent error: > org.postggresql.util.PSQLException: FA...
[ -0.315373033285141, 0.2793477773666382, 0.5152571201324463, -0.303833931684494, -0.2569790482521057, 0.14100956916809082, 0.2901390790939331, -0.007243145722895861, -0.20691142976284027, -0.4183506369590759, -0.15314112603664398, 0.6868898272514343, -0.7545397281646729, 0.5132001638412476,...
private static final String psw="password"; public static Connection getConnection() throws ClassNotFoundException, SQLException { if(!driverLoad) { Class.forName(pgDriver); driverLoad=true; } return DriverManager.getConnection(pgUrl, usr, psw); } } ``` I've solved. Ju...
[ -0.44484275579452515, -0.09607294946908951, 0.6267581582069397, 0.010996721684932709, 0.008384423330426216, 0.19110794365406036, 0.438739538192749, 0.23849724233150482, -0.07651194930076599, -0.5120262503623962, -0.39885658025741577, 0.5732386708259583, -0.4152759909629822, 0.5672288537025...
Is there any disadvantage of converting size\_t to long? Because, I am writing an program that maintains linked\_list in a file. So I traverse to another node based on size\_t and I also keep track of total number of lists as size\_t. Hence, obviously there is going to be some conversion or addition of long and size\_t...
[ 0.4187273383140564, -0.237113356590271, 0.19842009246349335, -0.0228472501039505, 0.2222287356853485, 0.08633066713809967, -0.10636219382286072, 0.12467741221189499, -0.5614290833473206, -0.8474282622337341, -0.028544776141643524, 0.7306187748908997, -0.3471508026123047, 0.2744388580322265...
because size\_t is defined to be large enough to store offsets of pointers, so if you have a 64-bit pointer, size\_t will be 64 bits too. Now, long may or may not be 64 bits, because the size rules for fundamental types in C/C++ give room to some variations. But if you're to write these values to a file, you have to ...
[ 0.2581869661808014, -0.10290384292602539, 0.22320471704006195, 0.0051528592593967915, 0.3067953288555145, 0.05422456935048103, 0.040897272527217865, -0.09170691668987274, -0.3612475097179413, -0.6120258569717407, -0.017612891271710396, 0.5974538922309875, -0.2287883311510086, 0.05133921653...
store the sizeof for the type you converted the size\_t to. By doing that, if in the future you decide to use a larger one, you can still support the old size. And for the current version of the program, you can check if the size is supported or not, and issue an error if not.
[ 0.30655795335769653, -0.13202224671840668, 0.2329489141702652, -0.10960710793733597, 0.27126434445381165, 0.07529716938734055, 0.18933025002479553, -0.033080972731113434, -0.3540852963924408, -0.6483935713768005, -0.09736094623804092, 0.6971115469932556, -0.37998244166374207, 0.11447402089...
I have a list of files named: file000 file001 file002 file003 ... file1100 How can I match all files that have a number greater than 800 but less than 1000 ? I am using linux bash Thank you --- Edit ---- Actually, my files are named like: ab869.enc cp936.enc g122345.enc x2022.enc ab...
[ 0.1896153688430786, 0.4907284379005432, 0.25403645634651184, -0.055641043931245804, -0.13198842108249664, -0.1314627230167389, 0.2806282639503479, -0.37670013308525085, -0.22607232630252838, -0.8042447566986084, 0.10358932614326477, 0.7240000367164612, -0.08989634364843369, -0.025162288919...
".enc". (This is not a regular expression). For example, using the above expression you can do this in your script: ``` mv *[89][0-9][0-9].enc path/to/destination/ ``` If you need it to also match a file named like "cp850-1.enc", then you would need to change the expression to: ``` *[89][0-9][0-9]*.enc ```
[ 0.11615291237831116, 0.045980054885149, 0.5363884568214417, -0.12526485323905945, 0.22612813115119934, -0.27314820885658264, 0.24727509915828705, 0.04950334504246712, -0.254311740398407, -0.6674026250839233, -0.16437087953090668, 0.6097047924995422, -0.319872111082077, 0.08499032258987427,...
**HTML** ``` <table width="100%"> <tr> <td width="90%"></td> <td><a href="#" id="logout"><strong>Logout</strong></a></td> </tr> </table> ``` **CSS** ``` @charset "utf-8"; /* CSS Document */ #logout { color:#BBB; } a:hover { color:#FFF; } ``` Though the color of logout appears to be what is given in th...
[ 0.2040107697248459, -0.18959897756576538, 0.6057240962982178, -0.15744124352931976, -0.12185836583375931, 0.2092617303133011, -0.18709367513656616, -0.1390223652124405, -0.12895798683166504, -0.9891877770423889, -0.17411358654499054, 0.19120453298091888, -0.5556510090827942, -0.09004063904...
ruleset will always [win the cascade](http://www.w3.org/TR/CSS21/cascade.html#specificity). Use `#logout:hover` instead.
[ 0.10574077069759369, -0.2496281862258911, 0.6533908843994141, 0.37176060676574707, -0.11590703576803207, -0.5037441253662109, 0.06569313257932663, -0.3974055349826813, -0.47223711013793945, -0.49475181102752686, -0.021076109260320663, -0.035861361771821976, -0.24543224275112152, -0.2582993...
Can any one tell me why this code doesn't work? `$bodytag = str_replace("id=\"", "id=1\"",` `"$p = $_GET['p'];` `echo '<link rel=\"stylesheet\" type=\"text/css\" href=\"styles.php?id=$p\">';` `");` Thanks in advance! Is this what you are meaning to do? ``` $p = (int)$_GET['p']; echo '<link rel="stylesheet" ...
[ 0.6311906576156616, -0.029352016746997833, 0.47637683153152466, 0.12338297069072723, 0.06858757138252258, -0.31655794382095337, 0.5097787976264954, -0.5169644355773926, 0.06311359256505966, -0.3820419907569885, -0.0995200127363205, 0.6027826070785522, -0.1719493269920349, -0.30258864164352...
I don't know what is wrong with this code. I have the following, very simple, class: ``` class SetOfCuts{ public: static LeptonCuts Leptons; static ElectronCuts TightElectrons; static ElectronCuts LooseElectrons; //*** //more code }; ``` and, for example, the type ElectronCuts is defined before in the s...
[ 0.3415266275405884, 0.1563219577074051, 0.22273766994476318, 0.008418303914368153, -0.24588464200496674, 0.020267300307750702, 0.26551002264022827, -0.30704936385154724, -0.036482468247413635, -0.5817914009094238, -0.061201829463243484, 0.6473944187164307, -0.41599372029304504, 0.156976953...
don't know why I cannot access the members of the structs. I am missing something obvious about static data members but I don't know what it is. Thanks a lot. Any static reference must be declared also in a specific source file (and not only in the header file) since it must exists somewhere when linking is done. For...
[ 0.393120139837265, -0.03777126222848892, 0.6634968519210815, 0.20893895626068115, -0.0961344912648201, 0.177422434091568, -0.16933248937129974, 0.32700836658477783, -0.5840426087379456, -0.5089953541755676, -0.19368773698806763, 0.3476812541484833, -0.3550257682800293, 0.17364293336868286,...
<Foo.h> SetOfCuts::Leptons = whatever; ```
[ 0.5561037659645081, 0.24932339787483215, 0.3517751693725586, -0.20036746561527252, 0.017413631081581116, 0.11770365387201309, 0.23461121320724487, -0.11573529988527298, -0.19530758261680603, -0.08639975637197495, -0.2819196283817291, 0.6987258791923523, -0.5398924946784973, 0.0362128689885...
I'm using directlabels to annotate my plot. As you can see in this picture the labels are after geom\_line but I want them after geom\_smooth. Is this supported by directlabels? Or any other ideas how to achieve this? Thanks in advance! [![enter image description here](https://i.stack.imgur.com/2vZmk.png)](https://i.s...
[ 0.22109192609786987, -0.1365782767534256, 0.9288849830627441, 0.16185733675956726, 0.050925321877002716, 0.1648169457912445, -0.008105463348329067, -0.33547964692115784, -0.136756032705307, -0.6897194981575012, -0.07889045029878616, 0.18099024891853333, 0.013425499200820923, 0.239803761243...
= 2000)) df.2 <- rbind(df.2, data.frame("n_gram" = c("word2"), "year" = rep(100:199), "match_count" = runif(100 ,min = 1000 , max = 2000)) ) # plot ggplot(df.2, aes(year, match_count, group=n_gram, color=n_gram)) + geom_line(alpha = I(7/10), color="grey", show_guide=F) + ...
[ -0.21219944953918457, -0.011910950765013695, 0.7596681714057922, -0.06604020297527313, 0.022071637213230133, 0.17741331458091736, -0.12642991542816162, -0.3251569867134094, -0.3053903877735138, -0.5700176358222961, -0.23431964218616486, 0.05274668335914612, -0.14710931479930878, 0.34872916...
it out thanks to a response from Tyler Rinker. This is how I solved it using loess() to get label positions. ``` # Function to get last Y-value from loess funcDlMove <- function (n_gram) { model <- loess(match_count ~ year, df.2[df.2$n_gram==n_gram,], span=0.3) Y <- model$fitted[length(model$fitted)] Y <- d...
[ -0.35009026527404785, -0.12199732661247253, 0.5554078817367554, -0.12203218042850494, 0.05118180066347122, 0.24894152581691742, -0.018236493691802025, -0.5290532112121582, -0.2909211814403534, -0.20499561727046967, -0.1490965187549591, 0.08959399908781052, -0.20192722976207733, 0.280505061...
i am registering customers and the registration requires address, but the 'houseno','addressa','addressb','addressc','county','state','country' is not inserting in the database while the other information are inserting, after the customer has registered ``` <?php echo "<h2>Register</h2>"; $submit = $_POST['register'...
[ 0.49655312299728394, 0.4219661056995392, 1.0601797103881836, -0.46173664927482605, 0.15937942266464233, 0.2499334216117859, 0.7217654585838318, -0.6409520506858826, 0.0217826459556818, -0.4391024112701416, -0.5254998207092285, 0.3288845121860504, -0.2120966911315918, 0.23715613782405853, ...
length if(strlen($password)>25||strlen($password)<6) { echo"Password must be between 6 and 25 characters"; } else { //check password length $emailcheck = mysql_query("SELECT email FROM reusers WHERE email='$email'"); $ecount = mysql_num_rows($emailcheck); if($ecount!=0) { echo"email already registered Please sign in in...
[ 0.17961153388023376, 0.07279380410909653, 0.45042768120765686, -0.4673053026199341, 0.14546841382980347, 0.33159810304641724, 0.6272032856941223, -0.6515142917633057, -0.4509233832359314, -0.27383649349212646, -0.24269002676010132, 0.44033533334732056, -0.2406400591135025, -0.0002829068980...
$fullname,\n\nUsername $username,\n\n Password $password ,\n\nYou registered and need to activate your account. Click the link below or paste it into the URL bar of your browser\n\nhttp://reacheasy.co.uk/activate.php?code=$code\n\nThanks!"; if (!mail($to,$subject,$body,$headers)) echo "We couldn't si...
[ 0.0867038145661354, 0.24581992626190186, 0.8189439177513123, -0.40907350182533264, 0.4309764504432678, -0.18502874672412872, 0.6947039365768433, -0.5038644075393677, -0.4091283082962036, -0.39684784412384033, -0.6334666013717651, 0.5288259387016296, -0.24015773832798004, 0.0222008973360061...
and accept Terms and Conditions before registering!"; } else echo "Please fill in <b>all</> fields!"; } ?> </div> <p> <form action='reregister.php' method='Post' class='rl'> <div> <label for='fullname' class='fixedwidth'>Your full name*</label> <input type='text' name='fullname' id='username' value...
[ -0.11017243564128876, 0.0797986164689064, 0.45009273290634155, -0.1868153065443039, 0.0180323775857687, 0.07881106436252594, 0.21702395379543304, -0.8768391609191895, -0.05172290652990341, -0.3149573802947998, -0.4749337434768677, 0.5074308514595032, -0.1992766559123993, 0.0114420456811785...
</div> <div> <label for='repeatpassword' class='fixedwidth'>Repeat your password*</label> <input type='password' name='repeatpassword' id='repeatpassword'/> </div> <div> <label for='email' class='fixedwidth'>E-mail*</label> <input type='text' name='email' id='email'/> </div> <h2>P...
[ -0.015245327726006508, -0.026308024302124977, 0.4674829840660095, -0.10173731297254562, 0.06735339015722275, 0.10858401656150818, 0.2910138964653015, -0.5265368819236755, -0.3848641514778137, -0.363256573677063, -0.17342713475227356, 0.3955722451210022, -0.22010502219200134, 0.088372454047...
/> </div> <div> <label for='addressb' class='fixedwidth'>ADDRESS LINE 2</label> <input type='text' name='addressb' id='addressb' value='<?php echo $addressb; ?>' /> </div> <div> <label for='addressc' class='fixedwidth'>ADDRESS LINE 3</label> <input type='text' name='addressc' id='addre...
[ -0.11465512961149216, 0.025023797526955605, 0.2900872528553009, -0.13176684081554413, -0.2232525497674942, 0.1317916363477707, 0.2693759500980377, -0.5158436894416809, -0.08428243547677994, -0.44688451290130615, -0.4763469099998474, 0.10661887377500534, -0.22033412754535675, 0.179621919989...
<input type='text' name='state' id='state' value='<?php echo $state; ?>' /> </div> <div> <label for='country' class='fixedwidth'>COUNTRY*</label> <input type='country' name='country' id='country' value='<?php echo $country; ?>' /> </div> <div> <input name="accept" type="checkbox" class="ti...
[ 0.0025498829782009125, 0.059837184846401215, -0.019985469058156013, -0.03042869083583355, -0.003733153222128749, 0.19919660687446594, 0.37175488471984863, -0.7663440704345703, -0.12828753888607025, -0.2979563772678375, -0.2564687430858612, 0.001736243488267064, -0.31829318404197693, 0.0543...
</p> </div> </p> </form> </div> </div> ``` Use the [`SUM`](http://dev.mysql.com/doc/refman/5.6/en/group-by-functions.html#function_sum) aggregate function to get the total of a column: ``` SELECT SUM(hits) FROM general ```
[ -0.395116925239563, 0.04120319336652756, 0.5451239347457886, -0.22907611727714539, -0.5214397311210632, 0.4728037416934967, -0.09864051640033722, -0.612472414970398, -0.25364261865615845, -0.23895061016082764, 0.0453682541847229, 0.23392444849014282, -0.29976722598075867, -0.12133181095123...
Previously today I was trying to add two ushorts and I noticed that I had to cast the result back to ushort. I thought it might've become a uint (to prevent a possible unintended overflow?), but to my surprise it was an int (System.Int32). Is there some clever reason for this or is it maybe because int is seen as the ...
[ 0.19388024508953094, -0.0769420862197876, 0.16182509064674377, -0.4264877736568451, -0.322057843208313, 0.3141300082206726, 0.5299245119094849, -0.414326936006546, -0.19413213431835175, -0.3797910213470459, -0.34688907861709595, 0.42636430263519287, -0.3877701759338379, 0.02299360372126102...
implicitly convert type 'int' to 'uint'. An explicit conversion exists (are you missing a cast?)" int e = a + b; // <- Works! ``` Edit: Like GregS' answer says, the C# spec says that both operands (in this example 'a' and 'b') should be converted to int. I'm interested in the underlying reason for why this is part o...
[ 0.28344541788101196, 0.09963373839855194, 0.015072227455675602, -0.17352934181690216, -0.15353703498840332, 0.003869164502248168, 0.5155729651451111, -0.14883612096309662, -0.01473004836589098, -0.45560482144355774, 0.1030992940068245, 0.743956446647644, -0.46954330801963806, -0.2757618427...
are looking for "credible and/or official sources", that's going to be a bit difficult. These design decisions were made a long time ago, 13 years is a lot of dog lives in software engineering. They were made by the "old timers" as Eric Lippert calls them, they've moved on to bigger and better things and don't post ans...
[ 0.9557724595069885, 0.5885270833969116, -0.1532103717327118, 0.3496703505516052, 0.11595938354730606, -0.47256001830101013, 0.461423397064209, 0.05984112620353699, 0.03136363998055458, -0.2720310688018799, -0.022839423269033432, 0.6670756340026855, -0.07964078336954117, -0.0753944143652916...
(and quite readably) described in the CLI spec. It is the Ecma-335 spec, you can download it for free [from here](http://www.ecma-international.org/publications/standards/Ecma-335.htm). Turn to Partition III, chapter 3.1 and 3.2. They describe the two IL instructions available to perform an addition, `add` and `add.ov...
[ 0.1670088768005371, 0.1082812026143074, 0.48419201374053955, -0.09059423953294754, 0.11326359212398529, -0.058812644332647324, -0.3066824972629547, -0.3088259994983673, -0.29550406336784363, -0.4463949501514435, -0.2377222329378128, 0.4156622588634491, -0.2193540781736374, 0.00641297362744...
x, you can't add an int to a long for example. These constraints are not entirely artificial, they are based on things you can do reasonably efficient on available hardware. Any managed compiler has to deal with this in order to generate valid IL. That isn't difficult, simply convert the ushort to a larger value type ...
[ 0.442188024520874, -0.0968237817287445, 0.02902037836611271, 0.1539369374513626, -0.19811594486236572, -0.05088388919830322, -0.09813346713781357, -0.16347235441207886, 0.07888440042734146, -0.5566976070404053, -0.06771227717399597, 0.47417211532592773, -0.5257974863052368, -0.085476361215...
meet the constraints in the table. Now there's a new problem however, a problem that drives C# programmers pretty nutty. The result of the addition is of the promoted type. In your case that will be int. So adding two ushort values of, say, 0x9000 and 0x9000 has a perfectly valid int result: 0x12000. Problem is: that'...
[ 0.12688110768795013, -0.23369750380516052, 0.4088694155216217, -0.2726582884788513, -0.22350214421749115, 0.09352982044219971, 0.12191890180110931, -0.1308378130197525, -0.20621393620967865, -0.6065844893455505, -0.10701166838407516, 0.40457189083099365, -0.36091920733451843, 0.08516007661...
only makes some sense when you count with 2 or 16 fingers, not with 10. Notable is that the add.ovf instruction doesn't deal with this problem. It is the instruction to use to automatically generate an overflow exception. But it doesn't, the actual calculation on the converted ints didn't overflow. This is where the ...
[ 0.24713735282421112, 0.24603237211704254, 0.23529744148254395, -0.23694375157356262, 0.08269359171390533, -0.03583241254091263, 0.47282809019088745, -0.18258391320705414, -0.5484924912452698, -0.4570087492465973, 0.2574573755264282, 0.4690128564834595, -0.33670273423194885, -0.080860689282...
They made it *your* problem, mostly because they didn't know how to make it theirs and still generate efficient code. You have to cast. Yes, that's maddening, I'm sure you didn't want that problem either. Quite notable is that the VB.NET designers took a different solution to the problem. They actually made it *their*...
[ 0.7620373964309692, 0.04903136566281319, -0.09496691823005676, 0.1222446858882904, -0.30619290471076965, 0.4355223774909973, 0.24898572266101837, -0.1351393312215805, -0.40600359439849854, -0.41395747661590576, 0.11204763501882553, 0.47599342465400696, -0.23848818242549896, 0.1010999381542...
times as slow. But otherwise the reason that explains why Microsoft maintains *two* languages that have otherwise very similar capabilities. Long story short: you are paying a price because you use a type that's not a very good match with modern cpu architectures. Which in itself is a Really Good Reason to use uint in...
[ 0.3736240863800049, -0.0317777618765831, -0.14522963762283325, 0.4891224801540375, -0.24331101775169373, 0.07109346240758896, 0.06400945782661438, 0.2646944522857666, 0.16605782508850098, -0.5149821639060974, 0.09568142145872116, 0.7679328322410583, 0.05475848540663719, -0.1077471449971199...
because of the operand prefix byte in the machine code. Not actually sure if that is still the case today, it used to be back when I still paid attention to counting cycles. A dog year ago. --- Do note that you can feel better about these ugly and dangerous casts by letting the C# compiler generate the same code that...
[ 0.49599024653434753, 0.26077285408973694, 0.025386743247509003, 0.09244851768016815, -0.1010383740067482, -0.06837257742881775, 0.5428088307380676, -0.06538873165845871, -0.3594130575656891, -0.5957873463630676, 0.31731554865837097, 0.40597015619277954, -0.2533932030200958, -0.010919990018...
this checkbox isn't turned on automatically by the project template is another very mystifying question btw, a decision that was made too long ago.
[ 0.6797364950180054, 0.13856340944766998, 0.10365848243236542, 0.14584365487098694, 0.24079714715480804, -0.22522199153900146, 0.21579262614250183, -0.03435162082314491, -0.23030246794223785, -0.08158081024885178, 0.04177175462245941, 0.269573837518692, -0.16646894812583923, 0.1103301718831...
I'm still trying to get an intuition as to when to use the Hadoop combiner class (I saw a few articles but they did not specifically help in my situation). My question is, is it appropriate to use a combiner class when the value of the pair is of the Text class? For instance, let's say we have the following output fro...
[ 0.16606296598911285, -0.07204809039831161, -0.12031274288892746, -0.40262606739997864, -0.36270737648010254, 0.3187144696712494, -0.09448564052581787, -0.05352972075343132, -0.33586612343788147, -0.7042614817619324, -0.04229480400681496, 0.4270189106464386, -0.2545377016067505, -0.23063923...
min, max etc operation on the data - these values can be calculated in the combiner for the map output, and then calculated again in the reducer for all the combined outputs. This is useful as it means you are not transferring all the data across the network between the mappers and the reducer. Now there is not reason...
[ 0.1337672472000122, -0.2983359098434448, 0.30412378907203674, 0.09459330886602402, 0.01750321500003338, 0.21369387209415436, 0.1121036484837532, -0.43491891026496887, -0.11418993026018143, -0.7578431963920593, 0.05110776424407959, 0.7009767889976501, -0.23973064124584198, -0.17536152899265...
from the mapper, and consume `<Text, Text>` in the reducer then your combiner can easily concatenate the list of values together and output this as a Text value. Now in your reducer, you can do the same, concatenate all the values together and form one big output. You may run into a problem if you wanted to sort and d...
[ -0.26895225048065186, -0.16070960462093353, 0.2575832009315491, -0.010278054513037205, -0.20074492692947388, 0.17609268426895142, 0.08299071341753006, -0.45092636346817017, -0.17997995018959045, -0.7607289552688599, -0.07976565510034561, 0.291297048330307, -0.35650965571403503, -0.09126098...
appropriate, well i can think of some examples: * If you wanted to find the lexicographical smallest or largest value associated with each key * You have millions of values for each key and you want to 'randomly' sample a small set the values
[ 0.37416213750839233, -0.07477382570505142, -0.04019377753138542, 0.16789937019348145, 0.06448610872030258, 0.052364498376846313, -0.025418270379304886, -0.23477458953857422, -0.21495069563388824, -0.3235296308994293, 0.08445203304290771, 0.4653693437576294, 0.01566777192056179, -0.05758584...
I've a Frame which has two internal frames. I create a 'Board' object which is an instance of Board class. Board class extends JPanel. ``` class Layout extends JFrame{ Dimension dimen=Toolkit.getDefaultToolkit().getScreenSize(); public initializeWindows(){ JInternalFrame dev=new JInternalFrame("Devices",t...
[ 0.5021640062332153, -0.0624515600502491, 1.0860892534255981, -0.056181401014328, 0.10479921102523804, 0.09885065257549286, 0.08167774230241776, -0.7346298694610596, -0.17635414004325867, -0.7753098607063293, -0.08130341023206711, 0.36291980743408203, -0.06265309453010559, 0.446785897016525...
dev.setSize(150,650); dev.setLocation(0,100); dev.pack(); inf.setVisible(true); inf.setPreferredSize(new Dimension((int)(dimen.width*0.88),(int)(dimen.height*0.75))); inf.setLocation(150,100); inf.setBackground(Color.WHITE); inf.pack(); } ``` But the scrollpane do...
[ 0.4371126890182495, -0.49555665254592896, 0.6817567348480225, -0.11783654987812042, -0.19290520250797272, 0.02328578382730484, 0.06925646215677261, -0.6577091217041016, -0.02200549840927124, -0.7492280006408691, -0.2076425403356552, 0.5472873449325562, -0.34619900584220886, -0.181836843490...
output, and then calculated again in the reducer for all the combined outputs. This is useful as it means you are not transferring all the data across the network between the mappers and the reducer. Now there is not reason that you can't introduce a combiner to accumulate a list of the values observed for each key (i...
[ 0.19013434648513794, -0.053382426500320435, 0.20892444252967834, -0.06445471197366714, -0.08944377303123474, 0.10821458697319031, 0.09846900403499603, -0.5300734639167786, -0.12077895551919937, -0.7515493631362915, 0.12130437791347504, 0.3983857035636902, -0.5773336887359619, -0.1749087274...
values together and output this as a Text value. Now in your reducer, you can do the same, concatenate all the values together and form one big output. You may run into a problem if you wanted to sort and dedup the output list - as the combiner / reducer logic would need to tokenize the Text object back into words, so...
[ -0.17505024373531342, 0.052648913115262985, 0.09766102582216263, 0.030805889517068863, -0.20883317291736603, 0.26892033219337463, 0.11615175008773804, -0.3576083779335022, -0.33324775099754333, -0.5025988221168518, 0.11746958643198013, 0.37496089935302734, -0.44105446338653564, 0.015238163...
associated with each key * You have millions of values for each key and you want to 'randomly' sample a small set the values
[ 0.37779656052589417, -0.015511899255216122, 0.04869205132126808, 0.3016569912433624, 0.019127527251839638, 0.16975060105323792, -0.03652281314134598, -0.37593206763267517, -0.23908784985542297, -0.41712895035743713, 0.027405206114053726, -0.004620425868779421, -0.1499263495206833, 0.296612...
I have website made in php\_fox framework and my client want some changes on website but he don't want that changes on his server directly so firstly i have install that website on my localhost. so is it possible to install that website on localhost??? because right now i am getting 505 internal server error :( Thanks...
[ 0.04611266776919365, -0.039236634969711304, 0.23448634147644043, 0.12452366948127747, -0.12776504456996918, 0.00936568807810545, 0.2518537640571594, 0.052890945225954056, -0.3930312991142273, -0.8378732204437256, 0.06643660366535187, 0.717210054397583, -0.37328508496284485, 0.1548335850238...
different from an array of six `CDialog`, which is what you are trying to allocate in the second one.
[ 0.26505520939826965, -0.10522196441888809, 0.07719520479440689, 0.3317762613296509, -0.25016656517982483, -0.02426443248987198, -0.45473146438598633, -0.02026018686592579, -0.2798447906970978, -0.3912242352962494, -0.09819713979959488, 0.38144156336784363, -0.21396759152412415, 0.065547548...
I want to read a XML file and then show it to the webpage but I am unable to do it in for loop ``` XmlDocument doc = new XmlDocument(); doc.Load(@"c:/xmldatabase.xml"); XmlElement root = doc.DocumentElement; XmlNodeList nodes = root.SelectNodes("//User"); foreach (XmlNode node in nodes) { Label1.Text = node["Name...
[ 0.2942813038825989, 0.019529839977622032, 0.685136616230011, -0.020676592364907265, 0.21549084782600403, 0.019515130668878555, 0.25696098804473877, -0.38620516657829285, -0.21293534338474274, -0.782140851020813, -0.20114998519420624, 0.09864668548107147, -0.26923632621765137, 0.18962603807...
<Name>Mike</Name> <Contact>8888888</Contact> <Email>acvb@dfdcm.com</Email> <City>xrtty</City> <Country>abffff</Country> </User> <User> <Name>Stone</Name> <Contact>875467</Contact> <Email>dfttgh@dfdcm.com</Email> <City>dfvbnj</City> <Country>ddccvv</Country> </User> </User-Profi...
[ -0.11669667810201645, 0.3056529760360718, 0.46839505434036255, 0.06402400881052017, -0.1663254350423813, 0.09798277169466019, 0.21252115070819855, -0.4982043504714966, -0.07523274421691895, -0.5575754046440125, -0.27004027366638184, 0.02042202278971672, -0.48715242743492126, 0.082165695726...
missing above code.please compare with below image.then you can develop best code. :) [Image](http://i.stack.imgur.com/eUQds.jpg)
[ 0.052569616585969925, 0.020857013761997223, 0.40479564666748047, 0.12962119281291962, 0.1454961746931076, -0.08513372391462326, 0.31027910113334656, -0.23344789445400238, -0.376482754945755, -0.632060706615448, -0.40661346912384033, 0.11471081525087357, -0.20069755613803864, -0.06803312152...
I want to know that How can I walk through this loop ? this has a root two chldren priv and nonpriv and children of them for priv:0,1,2,...,1023 and children of Nonpriv: 1024,..,65535 ``` |Any______________PORT| | | |Priv| |Non-Priv|
[ 0.08047199249267578, 0.3529641628265381, 0.3357137143611908, -0.009978201240301132, -0.29929354786872864, 0.5010741949081421, 0.43595650792121887, -0.1908024400472641, -0.24548998475074768, -0.2580565810203552, -0.0033538530115038157, -0.27068084478378296, -0.3593856692314148, 0.5900893807...
|||||...|||| ||||....||||| 0123,.....1023 1024,...65535 ``` I mean that 0 is in a distinct Node 1 is in a distinct Node 2 is in a distinct Node these ports has parent PRIV my reason of distincting them is that maybe some day 0 will have the list of children they could be in a list and we can have a l...
[ -0.40357598662376404, 0.024891411885619164, 0.30825719237327576, 0.04987579584121704, 0.24315474927425385, 0.2395143359899521, 0.10347853600978851, 0.15925468504428864, -0.31620657444000244, -0.6258693337440491, 0.13182087242603302, 0.058168407529592514, -0.07732642441987991, 0.65601700544...
string and the problem with list of Node is in the for loop which I couldn't build Nodes Now I can't configure the for loop how should I correct my code? ``` using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace IDS { class Program { static void Main(string[]...
[ -0.2754521667957306, -0.13212601840496063, 0.4510657489299774, -0.2513805627822876, 0.15377196669578552, 0.03468483313918114, 0.3414726257324219, -0.09861458092927933, -0.3269331753253937, -0.4102668762207031, -0.28079694509506226, 0.5278962850570679, -0.5499706864356995, 0.381916970014572...
Node Priv = new Node("Priv"); Node NonPriv=new Node("Non-Priv"); root.setchildren(portcat); root.Thisisroot(); root.setNodeinlist(Priv); root.setNodeinlist(NonPriv); Priv.setparent(root); NonPriv.setparent(root);
[ -0.4282270669937134, -0.4740201532840729, 0.5680524706840515, -0.21136055886745453, 0.3092164695262909, 0.2896910309791565, 0.35870125889778137, -0.04503412917256355, -0.14585842192173004, -0.6067475080490112, -0.6019952893257141, 0.021822616457939148, -0.4161039888858795, 0.52197629213333...
List<Node> portsP = new List<Node>(); Priv.setchildren(portsP); for (int i = 0; i < 1024; i++) { } //I tried this one but I can't fix between Nodes and list of a string List<string> portsN =
[ -0.11266595870256424, -0.5131455659866333, 0.4237189292907715, -0.3362959027290344, 0.074323870241642, 0.15672950446605682, 0.34747958183288574, -0.4062546193599701, -0.48677924275398254, -0.7737891674041748, -0.05792982131242752, 0.3068787157535553, -0.3036265969276428, 0.252864807844162,...
new List<string>(); for (int i = 1024; i < 65535; i++) { portsN.Add(i.ToString()); } } public class Node { public
[ -0.23570924997329712, -0.498905211687088, 0.4961255192756653, -0.24838589131832123, 0.27809828519821167, 0.11179226636886597, 0.3377062678337097, -0.2665358781814575, -0.5206292867660522, -0.7243152856826782, -0.24970243871212006, 0.20846977829933167, -0.4804723858833313, 0.508942544460296...
string Data; public List<Node> Children = new List<Node>(); public Node parent; public Node(string r) { this.Data = r; }
[ -0.3959178626537323, -0.3291691541671753, 0.2132447510957718, -0.004074613098055124, 0.40721333026885986, 0.3182627856731415, 0.15707889199256897, -0.12463772296905518, -0.3042372465133667, -0.6007840633392334, -0.6144773960113525, 0.1935422420501709, -0.22267693281173706, 0.45052343606948...
public Node Thisisroot() { this.parent = null; return this; } public void setchildren(List<Node> list) {
[ 0.11716727912425995, -0.329546719789505, 0.07780606299638748, 0.040309976786375046, 0.42762258648872375, -0.036390066146850586, 0.5974724292755127, 0.004374683368951082, -0.229222372174263, -0.6272478699684143, -0.3469279706478119, 0.17540019750595093, -0.3737245500087738, 0.46067950129508...
this.Children = list; } public List<Node> getchildren() { return this.Children; } public void setparent(Node p)
[ 0.18484026193618774, -0.3759811222553253, 0.1488313525915146, 0.0954325795173645, 0.4200238585472107, 0.12583285570144653, 0.3030488193035126, -0.21989016234874725, -0.38750240206718445, -0.4812431335449219, -0.5229233503341675, 0.20610062777996063, -0.4315303564071655, 0.20891684293746948...
{ this.parent = p; } public Node getparent() { return this.parent; } public void
[ -0.10000169277191162, -0.416461706161499, 0.12054865062236786, 0.0020001078955829144, 0.4897257387638092, 0.06241393834352493, 0.5647202730178833, 0.10661133378744125, -0.14303769171237946, -0.34405842423439026, -0.40770936012268066, 0.24784667789936066, -0.3156544268131256, 0.391120225191...
setNodeinlist(Node n) { this.Children.Add(n); } } } } ``` You should use a collection to hold your objects, such as a list: ``` List<Node> nodes = new List<Node>(); for (int i = 0; i < 1024; i++) { nodes.Add(new Node(i.ToString())); } ```
[ -0.005038408562541008, -0.27263376116752625, 0.45291373133659363, -0.06841719150543213, 0.2801991105079651, -0.09326723963022232, 0.09106944501399994, -0.4989682137966156, -0.5157080888748169, -0.7586547136306763, -0.37844160199165344, 0.3556286692619324, -0.5319919586181641, 0.09533578902...
I have JSONs (Fields: Thread, authors, child count) stored in mongodb with string attributes (basically names of threads crawled from a forum) also having characters like, ``` '\n', '!' etc. The "Thread" field has entries like the following: "Thread": "\n````1111Hellow What is you name----....." ``` the command i...
[ 0.15876972675323486, 0.09968792647123337, 0.4412758946418762, -0.15479937195777893, -0.08819393813610077, 0.11396612972021103, 0.1585252583026886, -0.06410512328147888, -0.22185350954532623, -0.5893124341964722, 0.02841254509985447, 0.22369684278964996, -0.13751688599586487, 0.309758394956...
collection.find_one() Out[14]: {u'Thread': u'\n````1111Hellow What is you name----.....', u'_id': 1} In [15]: collection.distinct("Thread") Out[15]: [u'\n````1111Hellow What is you name----.....'] In [16]: ``` One possible issue is that the "distinct" method requires a string as an input. The documentation on the ...
[ -0.1972108781337738, -0.05939807742834091, -0.1282183974981308, 0.15999414026737213, -0.14683370292186737, -0.1679946333169937, 0.08085975795984268, 0.043763477355241776, -0.28532353043556213, -0.42611607909202576, -0.046461205929517746, 0.6115872859954834, -0.2806507647037506, 0.332264393...
I would like to send out an update of my apk, but i did some database changes which will make the app crash. So the user has to uninstall and then reinstall it. Is there a way to deploy an apk so this is done automatically. Or clearing the app data of the previous installation. You can provide the `onUpgrade()` meth...
[ 0.1679106056690216, 0.12870904803276062, 0.49760371446609497, -0.05091525986790657, 0.20335255563259125, 0.07523074746131897, 0.31257563829421997, -0.0944574773311615, -0.38553863763809204, -0.6693443059921265, -0.18403558433055878, 0.6801907420158386, -0.6250383853912354, 0.02385163493454...
data then you should copy the data to a temporary table, drop and create the schema and copy it back again.
[ 0.19799628853797913, -0.040337298065423965, 0.49312520027160645, 0.4938187003135681, 0.30942603945732117, -0.17915602028369904, -0.3188551962375641, -0.06273153424263, -0.26392582058906555, -0.5946634411811829, -0.16486907005310059, 0.24935872852802277, -0.208695188164711, 0.17399263381958...
I have an MVC 3 project, which i renamed from ``` FooApplication ``` to ``` FooApplication.BackOffice ``` Now when I try to run the application, i m getting an exception as follows: ``` error CS0246: The type or namespace name 'FooApplication' could not be found (are you missing a using directive or ... ``` W...
[ 0.012358726933598518, 0.23144565522670746, 0.49778255820274353, -0.30328306555747986, -0.13751371204853058, -0.13845612108707428, 0.4590534269809723, -0.17812243103981018, -0.2294844686985016, -0.6009426116943359, -0.01021492201834917, 0.6835567355155945, -0.5893563628196716, 0.21085152029...
I would greatly appreciate if you could help me with this in Java. Given two Strings, lets say `String A = "(A+B)+(C)"` and `String B = "((A+B)+(C))"` and `String C = (A+B)` and `String D = A+(B+C)` and `String E = (A+(B+C))` How can I identify if the String is completely surrounded by parenthesis like String B. In ...
[ 0.12540772557258606, 0.0018479955615475774, 0.09914250671863556, -0.18664561212062836, -0.19480206072330475, -0.29881221055984497, -0.05991101637482643, -0.49315500259399414, -0.0232112817466259, -0.3712553381919861, -0.10068927705287933, 0.3344965875148773, -0.29866573214530945, 0.0942290...
return flase Sorry if it isn't clear, but it should work for any String expression: Assume the expression contains only **Digits** and **Operators** and **Parenthesis**. Thanks. Appreciate it. You can't do it\* with a regular expression because nested parentheses isn't a regular language. Instead iterate over the ...
[ 0.044294048100709915, -0.09514235705137253, 0.3572310209274292, -0.24360565841197968, 0.18728186190128326, 0.122228242456913, 0.4369852542877197, -0.09603577852249146, 0.07248669862747192, -0.21355938911437988, -0.14575977623462677, 0.9140380024909973, -0.1829443871974945, -0.4469539821147...
Anything else is unbalanced parentheses and shouldn't happen unless your input is invalid. Here are some worked examples to demonstrate the principle: ``` (A+B)+(C) 11110 TRUE ((A+B)+(C)) 12222112210 FALSE (A+B) 11110 FALSE A+(B+C) 0 TRUE (A+(B+C)) 111222210 FALSE ``` \*sanely
[ 0.2034091353416443, 0.3676571846008301, 0.3310370147228241, 0.026840191334486008, 0.1908210664987564, -0.2565601170063019, 0.6342058777809143, -0.6762531995773315, -0.0726538598537445, 0.07701797038316727, -0.06081180274486542, 0.6898256540298462, -0.45016467571258545, 0.07834121584892273,...
I'm writing a script to move files out of a certain folder in my Dropbox when they are done syncing. For example, I want to have a folder called "TrashBackup" that as soon as I put stuff in there,(after is done syncing) my server picks it up and moves it out of Dropbox into another place in the filesystem (ultimately...
[ 0.2816050052642822, 0.039318788796663284, 0.2950678765773773, 0.02757379785180092, 0.09742476046085358, 0.015041457489132881, 0.06510274857282639, 0.19993849098682404, -0.18572957813739777, -0.8468804359436035, 0.10700304806232452, -0.03235126659274101, -0.35380709171295166, 0.072797954082...
thinking of setting a timer to see when was the last time that files changed, and if its more than 20 minutes then go ahead and move it out of Dropbox.. But it seems like a hackaround. Also if I was transfering 1GB files I might be pushing my luck depending on Dropbox's speed and my local bandwith utilization. Maybe I...
[ 0.8625892996788025, -0.31800544261932373, 0.3388826251029968, 0.27864834666252136, 0.07708074897527695, -0.13682112097740173, 0.10409238934516907, -0.17816965281963348, -0.5809531807899475, -0.7190048098564148, 0.24283596873283386, 0.512291669845581, -0.21183247864246368, 0.049482353031635...
`dropbox status`, and `dropbox filestatus`. The former will return "Idle" when syncing is complete. The latter returns the sync status of one or more files.
[ 0.13609693944454193, -0.2901097238063812, 0.36446914076805115, 0.15943004190921783, 0.46529054641723633, 0.03102925792336464, 0.1225995123386383, 0.21257057785987854, -0.2119976282119751, -0.28951162099838257, -0.5366371273994446, 0.40481293201446533, -0.4605560004711151, -0.10742794722318...
I have seen (don't remember where) a package.json file with custom keys starting with an underscore: ``` { "name": "application-name" , "version": "0.0.1" , "private": true , "dependencies": { "express": "2.4.7" , "jade": ">= 0.0.1" } , "_random": true } ``` Are you allowed to do this? Is it ...
[ 0.47205790877342224, 0.1403713971376419, 0.24700015783309937, -0.2123786062002182, 0.10128341615200043, -0.3186782896518707, 0.2160109430551529, -0.22800703346729279, -0.2900642454624176, -0.4547973871231079, -0.2014579176902771, 0.6754863262176514, -0.21549470722675323, -0.009342197328805...
**`_` and `$`** + and preferably **use a *single* top-level key** in which to ***nest* your custom entries**. E.g., if you own domain `example.org`, you could store a custom `random` key as follows, **inside a top-level key in reverse-domain-name notation with `_` substituted for `.` and, if applicable, `-`**(see com...
[ 0.11011575907468796, 0.22652600705623627, 0.25782784819602966, 0.08372555673122406, 0.10852367430925369, 0.036740150302648544, 0.0008661506581120193, -0.1671391874551773, -0.19948884844779968, -0.5092974901199341, -0.2310577630996704, 0.35807573795318604, -0.2284003347158432, 0.32647064328...
custom properties, use the following technique: ``` require("./package.json").org_example.random // -> true ``` --- **`npm`'s `package.json` file format mostly complies with the [CommonJS package specification](http://wiki.commonjs.org/wiki/Packages/1.1)**: * **keys that `npm` currently uses**: <https://docs.npmjs...
[ 0.35117048025131226, -0.001171231153421104, 0.4607521593570709, -0.006519697606563568, 0.02101847156882286, 0.02570071443915367, -0.060942914336919785, -0.5078868865966797, -0.44845065474510193, -0.49077269434928894, -0.346018522977829, 0.8518425226211548, 0.04087255522608757, 0.1872337162...
are **reserved for package registries** to use at their discretion: `id`, `type`. > All **properties beginning with `_` or `$` are also reserved** for package registries to use at their discretion.
[ 0.24432508647441864, 0.2594499886035919, 0.00831241998821497, 0.13863243162631989, 0.2628568708896637, -0.4462108016014099, -0.05132775008678436, -0.004638203419744968, -0.06825321912765503, -0.5542039275169373, -0.724821150302887, 0.329818993806839, 0.06941486895084381, 0.1197414696216583...
how can I export Hibernate data to SQL statements, so that I might reimport them. The data consists of mapped Entities, with Strings, Enums, Integers etc. I would need an export like: insert into XX (...) Or similar which I could easily rewrite. Is there anything I could use yet? ty You can enable query logging by p...
[ 0.44094645977020264, 0.13501524925231934, 0.3071264624595642, 0.09859999269247055, -0.07406597584486008, -0.07702860981225967, 0.24184899032115936, 0.003795371623709798, -0.04265863448381424, -0.5180277228355408, 0.20403845608234406, 0.5520679950714111, -0.2726839482784271, -0.090994052588...
I have created a web service to test passing parameters via ksoap2. I thought it seemed like a pretty simple process, but I'm apparently missing something simple. The web service does nothing more than return the integer that is passed to it. When I execute the code below it returns the number 0 instead of 1. ``` ...
[ 0.7817763090133667, -0.24426713585853577, 0.3565913736820221, -0.07397772371768951, -0.07277840375900269, 0.009198394604027271, 0.5865011811256409, -0.4021945893764496, -0.11214577406644821, -0.5577400326728821, -0.219990536570549, 0.4476362466812134, -0.5580225586891174, 0.160499677062034...
SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); request.addProperty("RoundId", 1); SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); envelope.setOutputSoapObject(request); HttpTransportSE androidHttpTransport = new HttpTransportSE(URL); try { ...
[ 0.05963597074151039, -0.3442953824996948, 0.63942551612854, -0.2865878939628601, -0.19663336873054504, 0.34406569600105286, 0.42697691917419434, -0.93445885181427, -0.054733145982027054, -0.7007288336753845, -0.04680539667606354, 0.4083108901977539, -0.4620373845100403, -0.1009174436330795...
is the web service. ``` [WebMethod] public int TestParams(int RoundId) { return RoundId; } ``` Thank you for any help. You can enable query logging by putting `<property name="hibernate.show_sql">true</property>` it will print all the statements executed by hibernate, that you can reuse. I normally use tha...
[ 0.4597441554069519, 0.0936846062541008, 0.11249203979969025, -0.014664549380540848, -0.16418345272541046, -0.2559799551963806, 0.532654345035553, 0.07684595137834549, 0.1132664829492569, -0.3812701404094696, 0.057873521000146866, 0.5139328241348267, -0.3791182339191437, 0.08121118694543839...
Sorry if this belongs on a maths forum. I have an image rounded corners within HTML5s canvas element, I want to make the rounded corners transparent. I have the following code: ``` var cornersImgData = tempContext.getImageData(0, 0, img.width, img.height); var topLeft = getPixel(cornersImgData, 0, 0); var ...
[ -0.07080698013305664, -0.08205794543027878, 0.711511492729187, 0.1150176078081131, -0.3153201639652252, -0.06594482064247131, 0.5547341704368591, -0.008080095052719116, -0.46474361419677734, -0.5591340661048889, -0.23903876543045044, 0.5642203092575073, 0.005317678675055504, -0.27714794874...
var bottomRight = getPixel(cornersImgData, cornersImgData.width - 1, cornersImgData.height - 1); if (('rgb(' + topLeft[0] + ', ' + topLeft[1] + ', ' + topLeft[2] + ')' == _roundedCornersColour) || ('rgb(' + topRight[0] + ', ' + topRight[1] + ', ' + topRight[2] + ')' == _roundedCornersColour) || ('rg...
[ -0.5152190327644348, -0.08070048689842224, 1.072521686553955, 0.07981130480766296, -0.10889726132154465, 0.2409525364637375, 0.09122942388057709, -0.5108369588851929, -0.2100653350353241, -0.20234183967113495, -0.6058918237686157, 0.6648275256156921, -0.027617625892162323, -0.3320819139480...
' + bottomRight[2] + ')' == _roundedCornersColour)) { for (var x = 0; x < cornersImgData.width; x++) { for (var y = 0; y < cornersImgData.height; y++) { var colour = getPixel(cornersImgData, x, y);
[ -0.11948875337839127, -0.4362620711326599, 0.8914156556129456, -0.23509334027767181, 0.02645750716328621, 0.2802969217300415, 0.317202627658844, -0.2590952515602112, -0.21884234249591827, -0.5280736088752747, -0.4930253028869629, 0.43893152475357056, -0.007007152773439884, -0.1380733251571...