text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
the same problem, and I found a post here, on stackoverflow that addressed it. An answerer proposed a plugin he had written which allowed one to select a list of 'selectables', by clicking on the first one, then shift clicking on the last one to slect. One could also control-click to select non-consecutive items. Sinc...
[ 0.3704410791397095, -0.10125225782394409, 0.10803677886724472, 0.2621568441390991, -0.05114348605275154, -0.023807236924767494, 0.002965696854516864, 0.2497665286064148, -0.5858333706855774, -0.4042527377605438, 0.15705463290214539, 0.18555967509746552, -0.3963004946708679, 0.3206039965152...
valid alternative for people who need shift-click functionality and scrolling selection as well. Check out the following post. [Enable Shift-Multiselect in jQuery UI Selectable](https://stackoverflow.com/questions/9374743/enable-shift-multiselect-in-jquery-ui-selectable)
[ -0.36902013421058655, -0.26657846570014954, 0.5122652053833008, 0.2842664122581482, -0.03380497172474861, 0.004895868245512247, 0.036758407950401306, -0.24844186007976532, -0.3695109784603119, -0.5330291390419006, -0.4365929365158081, 0.6340376734733582, -0.035438064485788345, -0.508747875...
What does the term LAMP Stack mean? I have seen this reference in job postings, but I don't fully understand the meaning of it. I feel like in my development I use LAMP fairly commonly, but when I hear "stack" I feel like I am not using a LAMP environment as I should be. --- I know what LAMP means and just wanted t...
[ 0.36867693066596985, 0.1008240282535553, 0.26133331656455994, 0.3738310933113098, -0.05595587193965912, -0.6273251175880432, -0.3331647217273712, 0.016214177012443542, -0.33674803376197815, -0.30088895559310913, 0.05096057429909706, 0.370685875415802, -0.3108944594860077, 0.404343903064727...
your OS. Then your database stores all the information served by your web daemon, and PHP (or any P\* scripting language) is used to drive and display all the data, and allow for user interaction. Don't be overly concerned with the term 'stack'. People really just mean software suite or bundle, but you're using it jus...
[ 0.45719149708747864, 0.11605531722307205, 0.28856807947158813, 0.3544154763221741, 0.10638216882944107, -0.2757816016674042, -0.17733588814735413, 0.4159995913505554, -0.371820867061615, -0.6384764313697815, -0.15332753956317902, 0.7176676392555237, -0.1424996256828308, -0.0064405277371406...
This is a hw assignment. The answer/output I want is correct. I just don't understand why. I want the output to be true if the power function matches the number I am checking against. I do get the answer true for these examples, but I don't understand how this recursive function is working. In the else of this functi...
[ 0.1324089765548706, 0.14252378046512604, 0.34352701902389526, -0.05976683273911476, -0.08353795111179352, -0.214217871427536, 0.43597710132598877, -0.5234591960906982, 0.18187187612056732, -0.2239612340927124, -0.0296984501183033, 0.6833110451698303, -0.3367857336997986, 0.0851845443248748...
power = function(base, exponent) { if(exponent === 0) { return 1; } else { return base * power(base, exponent - 1); } }; ``` The function power returns an integer, so when the function returns `base * <some_integer>` is a perfectly valid expression. The best way to trace these things i...
[ 0.08767757564783096, -0.07926496118307114, 0.4754398763179779, -0.24045619368553162, 0.13683180510997772, -0.16398051381111145, 0.3022416830062866, -0.885873556137085, 0.005125596188008785, -0.2512414753437042, -0.07030551880598068, 0.7690048813819885, -0.2420191466808319, -0.1628809720277...
1) power(2, 1) = 2 * power(2, 0) power(2, 0) = 1 <--base case ``` now all you have to do is substitute the values up the call stack ``` power(2, 4) = 2 * 8 = 16 power(2, 3) = 2 * 4 = 8 power(2, 2) = 2 * 2 = 4 power(2, 1) = 2 * 1 = 2 ```
[ -0.014596124179661274, 0.15767934918403625, 0.5446873307228088, -0.36258968710899353, 0.23299376666545868, 0.10801905393600464, 0.25309911370277405, -1.0526196956634521, 0.02732662856578827, -0.23076432943344116, -0.287733793258667, 1.000133991241455, -0.41869643330574036, -0.1083522513508...
I am using GWT and Google Apps to host my app. As I am new to both GWT and Web Programming (Spent most of my life doing drivers), hopefully I am simply missing something. I found some sample code online which works perfectly well in development mode. When I deploy, it does not work. I have put code in the Upload classe...
[ 0.45242390036582947, 0.3620760142803192, 0.2065073549747467, -0.006370352115482092, -0.09001777321100235, 0.044570472091436386, 0.4156801104545593, 0.08939274400472641, 0.08186834305524826, -0.6754457354545593, 0.009562567807734013, 0.7183807492256165, -0.14066334068775177, 0.0598638951778...
rid of the JSP code, but I can't instantiate the Blobstore stuff. It would be great to move this into Java, but first things first. ``` FileUpload.jsp: <%@ page import="com.google.appengine.api.blobstore.BlobstoreServiceFactory" %> <%@ page import="com.google.appengine.api.blobstore.BlobstoreService" %> <% Blobs...
[ 0.04071846231818199, 0.2171144038438797, 0.5401145219802856, -0.2482692301273346, -0.2324192076921463, -0.13207349181175232, 0.460873544216156, -0.4829798638820648, -0.15321341156959534, -0.5833511352539062, -0.1708635836839676, 0.5201691389083862, -0.4761229455471039, -0.11987706273794174...
name="myFile" size="50"> <input type="submit" value="Submit"> </form> </body> </html> ``` Ugly dialog that needs replacing, but essentially this works. The user enters a file name and hits submit. Now, on the server side I have the following code: ``` // Upload.java public class Upload extend...
[ 0.11126674711704254, 0.16340108215808868, 0.6034557819366455, -0.43764495849609375, -0.13167564570903778, 0.07512510567903519, 0.45662012696266174, -0.629092812538147, 0.0579691044986248, -0.7938291430473328, -0.17994724214076996, 0.45247915387153625, -0.37904995679855347, 0.33930510282516...
// I know my DB write code works as other parts of the code work with the DB HttpSession session = req.getSession(true); System.out.println("Session is " + session); Map<String, BlobKey> blobs = blobstoreService.getUploadedBlobs(req); BlobKey blobKey = blobs.get("myFile"); if(b...
[ 0.5231476426124573, 0.09676100313663483, 0.5474960803985596, -0.3498493432998657, 0.12280669063329697, -0.06581225246191025, 0.9941731691360474, -0.36461764574050903, 0.3647797405719757, -0.6799390912055969, -0.16152893006801605, 0.39538538455963135, -0.18357695639133453, 0.398197799921035...
else { res.sendRedirect("/uploadServlet?blob-key=" + blobKey.getKeyString()); } } } ``` This is called by the JSP, which in turn calls my upload servlet: ``` // UploadServlet.java public class UploadServlet extends HttpServlet { <edited> public void doGet(HttpServletR...
[ 0.22236469388008118, -0.12643025815486908, 0.546635091304779, -0.3151385486125946, 0.0034380683209747076, 0.09186431765556335, 0.2901478111743927, -0.6954377293586731, -0.13257168233394623, -0.6743088960647583, -0.3451283574104309, 0.7857745885848999, -0.618513286113739, 0.0599373094737529...
BlobKey blobKey = new BlobKey(req.getParameter("blob-key")); ... } } ``` My web.xml: ``` <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-a...
[ -0.28163889050483704, 0.07133565098047256, 0.6171231269836426, -0.3367965817451477, -0.28483280539512634, 0.38950255513191223, -0.19789005815982819, -0.37684908509254456, -0.5276961922645569, -0.5149577856063843, -0.39095982909202576, 0.04649913311004639, -0.46037977933883667, 0.1477991789...
mode. When I deploy, it does not appear as though the "upload" is ever called. I am stuck as far as debugging this on the server, so I am not sure what is going on. No luck getting logfiles. I believe the provided answer is not enough to understand the algorithm, so I provided an actual answer with more comprehensive p...
[ -0.1047665923833847, -0.21103470027446747, 0.6313729882240295, -0.1025339812040329, -0.3152428865432739, -0.10287400335073471, 0.4025599956512451, -0.3706212043762207, -0.27677688002586365, -0.5054996609687805, -0.2785049378871918, 0.9142013788223267, -0.39587533473968506, -0.1126701161265...
Carnegie Mellon > University.
[ -0.2926608920097351, -0.27130430936813354, 0.19641396403312683, 0.2276105433702469, -0.2601757347583771, 0.15344887971878052, 0.08778572082519531, 0.5128815770149231, -0.006074500735849142, -0.8196496367454529, -0.13690492510795593, 0.1189308688044548, 0.06135423481464386, 0.34749141335487...
We have audit trail implemented using triggers on our web application. Those triggers log field level updates. So, in a table, if you have 5 column values changed, we have 5 records in the audit trail one for each column with old value and the new value. Recently we have upgraded to SQL Server 2008. I have been thinki...
[ 0.24509738385677338, 0.24404263496398926, 0.6213274598121643, 0.13203634321689606, -0.16196539998054504, -0.223545640707016, 0.07437556982040405, -0.1836785078048706, -0.30782511830329895, -0.43109163641929626, 0.5489965081214905, 0.5528414845466614, -0.1909874975681305, -0.25311478972435,...
caveat or any other real-world useful info on this. Any advice would be helpful. Edit :- <http://technet.microsoft.com/en-us/magazine/2008.11.sql.aspx?pr=blog> You're confused about what it takes to draw something on-screen. You need a view of some kind -- either a `UIView` in an iOS app, or an `NSView` in a Cocoa ap...
[ 0.6415494680404663, -0.40637314319610596, 0.5828844904899597, 0.21394281089305878, -0.17305508255958557, -0.01900380663573742, -0.040193602442741394, 0.08848605304956436, -0.13875383138656616, -0.698460578918457, -0.13433796167373657, 0.6054754257202148, -0.0021255204919725657, -0.14399024...
`UIImagePNGRepresentation` to create PNG data, then `-[NSData writeToFile:atomically:]` to write it to a file.) Your code also has a few issues. `-testDrawCG` is OK until here: ``` myImage = CGBitmapContextCreateImage (myBitmapContext);// 5 ``` You've taken the contents of the bitmap context -- the two rectangl...
[ 0.16015523672103882, 0.004635958466678858, 0.4834790527820587, 0.05112900957465172, -0.1475352793931961, 0.13022173941135406, 0.2419765144586563, -0.2723557651042938, -0.24471606314182281, -0.8361430764198303, -0.14955544471740723, 0.4274493157863617, -0.3543679416179657, -0.01494737621396...
7 ``` Now you're getting the raw data that backs the bitmap context. You don't need to do this. ``` CGContextRelease (myBitmapContext);// 8 ``` OK, you're done with the context, makes sense. ``` if (bitmapData) free(bitmapData); // 9 ``` Don't do this! You did not get the data using a method with `Creat...
[ 0.4028019607067108, 0.07096796482801437, 0.5223199129104614, 0.15653961896896362, -0.07151287794113159, -0.42971381545066833, 0.26143038272857666, 0.07426020503044128, -0.2772645652294159, -0.38103726506233215, -0.6446413397789001, 0.708263099193573, -0.3813256621360779, 0.3501443266868591...
I need to create a directory full of data files. These files are are temporary, **user-private** files. While the files are temporary, and it's ok if they are deleted by the system, there's a lot of them and I'd like to reuse them if I can. Furthermore, I expect other applications (running as the same user) to access/...
[ 0.41357892751693726, 0.2819879651069641, 0.11652199178934097, -0.09533514827489853, 0.11630608886480331, -0.0388396754860878, 0.2198399007320404, 0.09641791135072708, -0.2799794375896454, -0.8525015115737915, -0.06852854788303375, 0.2665260434150696, -0.2100474238395691, 0.3348551392555237...
very interested in finding platform-standard or platform-approved methods over just finding a solution that works. I'm trying to collect a list of where to locate these files for various platforms. Below is what I have so far, but I would really appreciate additional platforms and/or validation of what I've already fo...
[ 0.0768650695681572, 0.3743201196193695, 0.3835197389125824, -0.02704000286757946, 0.2518894672393799, 0.14942686259746552, 0.03216739371418953, 0.28598836064338684, -0.20338967442512512, -0.8190826773643494, -0.31578099727630615, 0.6327480673789978, -0.3737291395664215, -0.0008895379723981...
MacOSX: 1. `$TMPDIR` or Cocoa function `NSTemporaryDirectory()` * Cleared automatically every three days 2. `mkdir -m 700 ~/Library/Caches/CompanyOrProductName` * Not removed by system automatically (fine for my use case) * Not backed up by TimeMachine 3. `mkdir -m 700 ~/Library/Application Support/CompanyOrProduct...
[ -0.37128937244415283, 0.281210333108902, 0.6676508188247681, -0.10435512661933899, 0.006423252634704113, -0.05317475274205208, 0.3268851041793823, 0.1348172426223755, -0.472724050283432, -0.5371043682098389, -0.7391412854194641, 0.7648525834083557, -0.551057755947113, -0.15464898943901062,...
I'm having problems with left bit shifts in Java returning incorrect values... Take 108 << 60 for instance. The answer should be\*: ``` 124515522497539473408 ``` Java is returning this value ``` -4611686018427387904 ``` for this statement: ``` System.out.println(108L << 60L); ``` Why??? Both values are forced...
[ 0.13536174595355988, 0.2450786679983139, 0.2966780364513397, -0.3353845477104187, -0.09175482392311096, 0.17541204392910004, 0.3755287230014801, -0.4469573497772217, -0.3694721758365631, -0.3192298114299774, -0.13239726424217224, 0.300021767616272, -0.12984393537044525, 0.13875795900821686...
I want to understand how this Scala script works: ``` #!/usr/bin/env bash exec scala "$0" "$@" !# object HelloWorld { def main(args: Array[String]) { println("Hello, world! " + args.toList) } } HelloWorld main args ``` On line 3, what is "!#" doing? Is the remainder of the file then fed to [standa...
[ 0.2041529268026352, 0.06173987686634064, 0.3909260928630829, -0.28339511156082153, -0.014533257111907005, -0.016166670247912407, 0.3941535949707031, -0.2705343961715698, -0.41070932149887085, -0.2992625832557678, -0.07377970218658447, 0.39759209752082825, -0.4398042857646942, 0.06472334265...
script file?](https://stackoverflow.com/questions/8967902)* (about the beginning of a [Bash](http://en.wikipedia.org/wiki/Bash_%28Unix_shell%29) script). From [the original documentation](http://www.scala-lang.org/docu/files/tools/scala.html): > Script files may have an optional header that is ignored if present. Ther...
[ 0.21056115627288818, -0.004728080704808235, 0.2046871781349182, -0.1576145738363266, -0.2460591197013855, 0.047545623034238815, 0.10400021076202393, -0.25430601835250854, -0.24957124888896942, -0.4144284129142761, -0.146315798163414, 0.36337000131607056, -0.20944330096244812, -0.0341334603...
I am making a quiz application...I am accessing the questions through "id"...every time a question is answered(any radio button is checked),the id is incremented and doInBackground() function is called to load the next question....But when the next question is loaded i want my radiogroup be completely refreshed(no radi...
[ 0.28510400652885437, -0.13278135657310486, 0.7610623836517334, -0.08487265557050705, 0.030209487304091454, -0.40995776653289795, 0.8241471648216248, -0.6320657134056091, 0.19342027604579926, -0.48988744616508484, -0.45248696208000183, 0.9758220314979553, -0.5021496415138245, 0.067997910082...
c_or_w=(TextView)findViewById(R.id.corr_incorrect); id_check=(TextView)findViewById(R.id.id_check); rg=(RadioGroup)findViewById(R.id.rg_option); rb_a=(RadioButton)findViewById(R.id.opt_a); rb_b=(RadioButton)findViewById(R.id.opt_b); rb_c=(RadioButton)findViewById(R.id.opt_c); rb_d=(RadioButton)f...
[ 0.11012383550405502, 0.07020250707864761, 0.7181968688964844, -0.49959081411361694, 0.10727602243423462, 0.09239859133958817, 0.5156751275062561, -0.7193045020103455, -0.1215013861656189, -0.3382083475589752, -0.66456139087677, 0.8029983043670654, -0.5237641930580139, 0.42075422406196594, ...
if(status == 200) { HttpEntity e=r.getEntity(); String data=EntityUtils.toString(e); JSONObject last=new JSONObject(data); return last; } else { Toast.makeText(JsonDemo.this, "error", Toast.LENGTH_SHORT); return null; } } public class Read extends ...
[ 0.08106715232133865, -0.24003730714321136, 0.6131017208099365, -0.2030135840177536, 0.11834459006786346, -0.04579412564635277, 0.5297316908836365, -0.35349759459495544, -0.08018970489501953, -0.7563210725784302, -0.45012128353118896, 0.3354948163032532, -0.21503441035747528, 0.103040397167...
wait..."); @Override protected void onPreExecute() { dialog.show(); } @Override protected void onProgressUpdate(Integer... values) { // TODO Auto-generated method stub rg.clearCheck(); } @Override protected void onPostExecute(JSONObject result) { // TODO Auto-generated method stub try { ...
[ 0.26597675681114197, -0.4393877685070038, 0.4394952654838562, -0.4822714626789093, 0.22248384356498718, 0.22783474624156952, 0.4466733932495117, -0.42957842350006104, -0.15026390552520752, -0.14779989421367645, -0.6895322203636169, 0.8675909042358398, -0.4937722384929657, 0.077864915132522...
q_desc.setText(desc); rb_a.setText(option_a); rb_b.setText(option_b); rb_c.setText(option_c); rb_d.setText(option_d); rg.clearFocus(); if(dialog!=null) { dialog.dismiss(); } rg.setOnCheckedChangeListener(this); } catch (JSONExcept...
[ -0.3873721957206726, -0.6210392117500305, 0.5595459342002869, -0.3815656304359436, 0.2161175161600113, 0.1967717409133911, 0.7309691905975342, -0.5322005748748779, -0.2741832435131073, -0.4768247604370117, -0.3825160562992096, 0.5276989340782166, -0.4046247601509094, 0.2665424942970276, ...
// TODO Auto-generated catch block e.printStackTrace(); } } @Override protected JSONObject doInBackground(String... params) { try { json=getData(params[0]); return json; } catch (ClientProtocolException e) { // TODO Auto-generated catch block e.printStackTrace(); ...
[ -0.15366384387016296, -0.5007532835006714, 0.2735339403152466, -0.1504444032907486, 0.21876612305641174, 0.16353990137577057, 0.366763174533844, -0.4620841145515442, 0.01626795344054699, -0.14928346872329712, -0.24201726913452148, 0.8115869760513306, -0.5603386163711548, -0.197620749473571...
e.printStackTrace(); } catch (JSONException e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; } public void onCheckedChanged(RadioGroup rg, int checkedId) { switch(checkedId) { case R.id.opt_a: { if(ans.equalsIgnoreCase("a")) { ...
[ 0.14653412997722626, -0.4588697850704193, 0.38328465819358826, -0.47955161333084106, 0.3370736837387085, -0.18900825083255768, 0.5599770545959473, -0.5896198153495789, 0.23893088102340698, -0.3014267385005951, -0.2181452363729477, 0.7704975605010986, -0.705418050289154, 0.01470226142555475...
c_or_w.setText("Correct"); id_check.setText(Integer.toString(id)); rb_a.setTextColor(Color.parseColor("#33ff99")); if(id>10) { } else{ score=score+1;
[ 0.09150828421115875, -0.18409207463264465, 0.2734295129776001, -0.16976816952228546, 0.4698747992515564, -0.10457058995962143, 0.02058456279337406, -0.49992504715919495, -0.16094888746738434, -0.2161860167980194, -0.4194227159023285, 0.5227962136268616, -0.46765783429145813, -0.04544385895...
new Read().execute(Integer.toString(id)); } } else { id=id+1; c_or_w.setText("InCorrect"); id_check.setText(Integer.toString(id)); if(id>10)
[ 0.1119425967335701, -0.14324145019054413, 0.28590235114097595, -0.37610188126564026, 0.4239947199821472, -0.045687485486269, 0.3828558921813965, -0.47967714071273804, -0.12505310773849487, -0.5694176554679871, -0.4527500569820404, 0.47646960616111755, -0.31649285554885864, 0.03306633606553...
{ } else{ new Read().execute(Integer.toString(id)); } } break; } case R.id.opt_b: { if(ans.equalsIgnoreCase("b")) {
[ 0.02643308788537979, -0.27472057938575745, 0.17234380543231964, -0.45481935143470764, 0.40866953134536743, 0.2015223205089569, 0.3607454001903534, -0.49556824564933777, 0.003992163576185703, -0.29711320996284485, -0.29611530900001526, 0.6030031442642212, -0.4411691129207611, -0.04375017434...
id=id+1; c_or_w.setText("Correct"); id_check.setText(Integer.toString(id)); rb_b.setTextColor(R.color.green); if(id>10) { } else{
[ 0.24637651443481445, -0.31672558188438416, 0.3542386591434479, -0.29906579852104187, 0.3162594437599182, -0.21360565721988678, 0.1004691794514656, -0.5978416204452515, -0.019131110981106758, -0.43078020215034485, -0.5524218082427979, 0.5506637096405029, -0.6088308691978455, -0.071531251072...
score=score+1; new Read().execute(Integer.toString(id)); } } else { id=id+1; c_or_w.setText("InCorrect"); id_check.setText(Integer.toString(id));
[ -0.03309362009167671, -0.2859886586666107, 0.06742984056472778, -0.09568427503108978, 0.24892202019691467, -0.19433695077896118, 0.18597587943077087, -0.43730467557907104, -0.0073170908726751804, -0.1247878447175026, -0.22353050112724304, 0.430545836687088, -0.4340282082557678, 0.131522163...
if(id>10) { } else{ new Read().execute(Integer.toString(id)); } } break; }
[ 0.06516927480697632, -0.19147244095802307, 0.12884198129177094, -0.3210398852825165, 0.36556166410446167, -0.09509563446044922, 0.3903774619102478, -0.4264596998691559, -0.15133048593997955, -0.40517354011535645, -0.3560006320476532, 0.4734666645526886, -0.2396058589220047, -0.065223366022...
case R.id.opt_c: { if(ans.equalsIgnoreCase("c")) { id=id+1; rb_a.setTextColor(666); c_or_w.setText("Correct"); id_check.setText(Integer.toString(id)); if(id>10)
[ 0.025794487446546555, -0.28578147292137146, 0.5167613625526428, -0.3499809801578522, 0.396262526512146, 0.15602467954158783, 0.14887793362140656, -0.6731752753257751, 0.07185094058513641, -0.4102937579154968, -0.4891476035118103, 0.6410852074623108, -0.5289300084114075, -0.1618677675724029...
{ } else{ score=score+1; new Read().execute(Integer.toString(id)); } } else {
[ -0.05635539069771767, -0.2975166141986847, 0.09859663248062134, -0.035073596984148026, 0.30805811285972595, 0.06495369225740433, 0.24132713675498962, -0.5092893242835999, -0.12940780818462372, -0.17555184662342072, -0.10504414886236191, 0.46469101309776306, -0.20326268672943115, -0.0582902...
id=id+1; c_or_w.setText("InCorrect"); id_check.setText(Integer.toString(id)); if(id>10) { } else{ new Read().execute(Integer.toString(id));
[ 0.11621864885091782, -0.1275734007358551, 0.18374373018741608, -0.42699727416038513, 0.3330148458480835, -0.2267790138721466, 0.3801790177822113, -0.5659262537956238, 0.10844508558511734, -0.34078076481819153, -0.4568725526332855, 0.5372949242591858, -0.38838663697242737, -0.01935623399913...
} } break; } case R.id.opt_d: { if(ans.equalsIgnoreCase("d")) { id=id+1; c_or_w.setText("Correct"); id_check.setText(Integer.toString(id)); if(id>10)
[ -0.07330973446369171, -0.39846765995025635, 0.32163476943969727, -0.34814533591270447, 0.4484512507915497, -0.05768647417426109, 0.26573634147644043, -0.43157958984375, -0.02973858080804348, -0.4253695607185364, -0.6642903685569763, 0.6016060709953308, -0.35022586584091187, -0.234221667051...
{ } else{ score=score+1; new Read().execute(Integer.toString(id)); } } else {
[ -0.05635539069771767, -0.2975166141986847, 0.09859663248062134, -0.035073596984148026, 0.30805811285972595, 0.06495369225740433, 0.24132713675498962, -0.5092893242835999, -0.12940780818462372, -0.17555184662342072, -0.10504414886236191, 0.46469101309776306, -0.20326268672943115, -0.0582902...
id=id+1; c_or_w.setText("InCorrect"); id_check.setText(Integer.toString(id)); if(id>10) { } else{ new Read().execute(Integer.toString(id));
[ 0.11621864885091782, -0.1275734007358551, 0.18374373018741608, -0.42699727416038513, 0.3330148458480835, -0.2267790138721466, 0.3801790177822113, -0.5659262537956238, 0.10844508558511734, -0.34078076481819153, -0.4568725526332855, 0.5372949242591858, -0.38838663697242737, -0.01935623399913...
} } break; } } } } } ``` I think you should clear check to your `RadioGroup` in `onPostExecute()` ``` this.radioGroup.clearCheck(); this.radioGroup.setOnCheckedChangeListener(this); ```
[ -0.07268953323364258, 0.18940414488315582, 0.3317328095436096, -0.24092677235603333, 0.2755565345287323, -0.4657690227031708, 0.7382198572158813, 0.05224786326289177, 0.2069234400987625, -0.7448373436927795, -0.18580864369869232, 0.6622629761695862, -0.2668931782245636, -0.0025385180488228...
Basically my code declares a variable which checks to see if a specific string is entered into a textbox, when the user presses enter, then using substring, it declares a variable which contains a string after the specific word entered (shown below). I would like to pass this variable to php and ultimately compare it ...
[ 0.3001716136932373, 0.10541591048240662, 0.3461569845676422, -0.12796196341514587, -0.08003756403923035, -0.21393342316150665, 0.08477587252855301, -0.16511230170726776, -0.009666897356510162, -0.5354915261268616, 0.09811457246541977, 0.6360809206962585, -0.37335315346717834, -0.0004465885...
typed. var some_string = text.input.value.substring(7); <- takes everything after the word "string" ``` and this is where I would like to pass the variable 'some\_string' to the SQL database, to perform a check and return true or false. I hope this is clear and thanks in advance for the help. You will have to us...
[ 0.33518338203430176, -0.07456222176551819, 0.3180996775627136, -0.17840233445167542, -0.13935042917728424, -0.22761382162570953, 0.40988340973854065, 0.0016153703909367323, 0.12374236434698105, -0.3531405031681061, -0.12142406404018402, 0.5967584252357483, -0.5122918486595154, 0.1028924956...
or json-parse of response-text or something } try { if (synchronous() == "wanted value") // do something else // do something else } catch(e) { // alert a problem } ``` you would need to use ``` function asychronous(success, error) { // init xhr, register handlers and send // retu...
[ 0.07101000100374222, -0.41744011640548706, 0.3531584143638611, 0.20262017846107483, -0.0656374841928482, -0.14193829894065857, 0.5192418694496155, -0.46735501289367676, -0.14252620935440063, -0.5258101224899292, -0.341198593378067, 0.5907092094421387, -0.5406284332275391, 0.014573852531611...
// do something else }, function ecb(e) { // alert a problem }); ```
[ 0.13972756266593933, -0.1892949491739273, 0.3457643687725067, -0.2054004669189453, 0.4359782934188843, -0.283976286649704, 0.34083449840545654, -0.20216163992881775, -0.13878491520881653, -0.4249666631221771, -0.6872930526733398, 0.7301903963088989, -0.5632380843162537, 0.00834902469068765...
I am working on a self compiled linux kernel. The person who modified the kernel has added some syscalls. What I want to do is knowing where does the actual routine (.c file) for the that specific number is i.e. syscall(300), so how would I know where is the routine for the 300 ? More elaboration: syscall should know ...
[ 0.5544548630714417, 0.10910245776176453, 0.39492660760879517, -0.0635887011885643, -0.20649491250514984, -0.13213983178138733, 0.023239364847540855, -0.026055218651890755, -0.06841375678777695, -0.6690011620521545, -0.05728539451956749, 0.6483942270278931, -0.25450509786605835, -0.09852588...
it asynchronously, otherwise the browser will hang. But an asynchronous request works with callbacks, and does not return more than maybe a promise. So, instead of ``` function synchronous(){ // init xhr and send return xhr.response; // or json-parse of response-text or something } try { if (synchronous()...
[ 0.060174521058797836, -0.4460006654262543, 0.3319265842437744, 0.08168882876634598, 0.005155156832188368, -0.08323490619659424, 0.3917137086391449, -0.3352632522583008, -0.06360382586717606, -0.4225054681301117, -0.5335901975631714, 0.565578043460846, -0.5391794443130493, -0.17563284933567...
init xhr, register handlers and send // return nothing } asynchronous(function scb(data) { if (data == "wandted value") // do something else // do something else }, function ecb(e) { // alert a problem }); ```
[ -0.11054883897304535, -0.2670489549636841, 0.42586055397987366, 0.024126702919602394, -0.059820499271154404, -0.10655701905488968, 0.5251415371894836, -0.1412818729877472, 0.032505717128515244, -0.3750019967556, -0.319724977016449, 0.42227044701576233, -0.5902950167655945, 0.19821341335773...
I have a textView with a single character in it (all single digit, numbers 0-9). I'd like to draw a circle or a square around the number. I saw a thread mention using a nine-patch to style around it, but I'm unsure of how to do this (or if it is the best way to do it). How can I have a circle around the number? Thank...
[ 0.21154850721359253, 0.19505000114440918, 0.5242375135421753, -0.13754448294639587, -0.4327309727668762, 0.4252331852912903, 0.10493074357509613, -0.24417617917060852, 0.019486770033836365, -0.8523539304733276, 0.13581784069538116, 0.3908378779888153, -0.08104109019041061, 0.00980909354984...
this drawable as your TextView background.
[ 0.2833205759525299, -0.1223427876830101, 0.4434395134449005, -0.04552590847015381, 0.09701213240623474, -0.22489872574806213, 0.12942643463611603, 0.3642987012863159, -0.13873133063316345, -0.6727273464202881, -0.1182640939950943, 0.439608633518219, -0.031116534024477005, -0.10139860212802...
I'm programming a site using PHP, mysql and jQuery. I would really appreciate and hoping for some suggestions as to what I can use to create pie, bar and line charts, where I have the ability to change the actual graphic thats being shown. For example, if I wanted to have the bar graph use an army camouflage graphic an...
[ 0.9389235973358154, 0.20041367411613464, 0.07326202839612961, 0.16826340556144714, -0.21873849630355835, -0.026360362768173218, -0.12735037505626678, 0.43364766240119934, -0.3920443058013916, -0.7836741209030151, 0.3699004352092743, 0.3345092833042145, -0.07641758769750595, 0.0756531208753...
advance. Contrary to popular belief, just having an index on a column does **not guarantee** that any queries will be any faster! If you constantly use `SELECT *..` from that table, these non-clustered indices on a single column will most likely **not be used at all**. A good nonclustered index is a **covering inde...
[ 0.006775705609470606, -0.03955494984984398, 0.407592236995697, 0.31848496198654175, -0.00929965265095234, -0.13683092594146729, 0.019045375287532806, -0.25008195638656616, -0.05901237949728966, -0.759709358215332, -0.240970641374588, 0.3665845990180969, -0.41385725140571594, 0.025836957618...
reason for this being: if you need all the columns anyway, the query would have to do **key lookups** from the nonclustered index into the actual data (the clustered index) for each row found - and the key lookup is a very expensive operation, so doing this for a lots of hits becomes overly costly, and the query optimi...
[ -0.17682327330112457, 0.13194987177848816, 0.4233383536338806, 0.15057489275932312, -0.0621284656226635, -0.05910667032003403, 0.31230640411376953, -0.24928075075149536, -0.1154555007815361, -0.45899802446365356, -0.07718487083911896, 0.4403916597366333, -0.4935877025127411, 0.018831260502...
for the time being. Observe your system, measure performance, *maybe* add an index here or there - but don't just overload the system with tons of indices! Having too many indices can be worse than having none - every index must be maintained, e.g. updated for each `INSERT`, `UPDATE` and `DELETE` statement - does that...
[ 0.39770710468292236, 0.1929941624403, 0.14754556119441986, 0.38100379705429077, -0.024588003754615784, -0.20203806459903717, 0.5279394388198853, 0.18631726503372192, -0.227664515376091, -0.745871365070343, 0.14037229120731354, 0.6101872324943542, -0.11674397438764572, -0.04578433930873871,...
I hava a Java mulithreading question. I have the following worker class: ``` public class ThreadWorker implements Runnable { //some code in here public void run(){ // invokes some recursion method in the ThreadWorker itself, // which will stop eventually { } ``` To work with threads I'm usi...
[ 0.05952303856611252, 0.13509173691272736, 0.41159042716026306, -0.2432042956352234, 0.1533576399087906, 0.028035150840878487, 0.45149001479148865, -0.34969839453697205, -0.299159973859787, -0.7096911668777466, 0.06940051168203354, 0.5139898657798767, -0.5300890803337097, 0.4232092499732971...
ThreadWorker tw = new ThreadWorker(data); es.execute(tw); return; } for (int i=0; i< elements.size(); i++){ // some code to prevent my problem MyClass data1 = new MyClass(data); MyClass data2 = new MyClass(data); ArrayList<Integer> newElements = (Arr...
[ 0.04708006978034973, -0.20592229068279266, 0.5306652784347534, -0.35154592990875244, 0.3624381124973297, 0.38211992383003235, 0.5640935897827148, -0.4145486652851105, -0.224687859416008, -0.7551708817481995, -0.011402992531657219, 0.28834179043769836, -0.2400854527950287, 0.553192973136901...
data1.update(elements.get(i)); data2.update(-1 * elements.get(i)); newElements.remove(i); recursiveMethod(newElements, data1); recursiveMethod(newElements, data2); { } ``` The problem is that the depth of the recursion tree is quite big, so as it's width, so a lot...
[ -0.13308750092983246, -0.13723894953727722, 0.49851900339126587, -0.06653820723295212, 0.2944486141204834, -0.043899547308683395, 0.19215145707130432, -0.503913402557373, -0.259414404630661, -0.2349223792552948, -0.2108840048313141, 0.4056471288204193, -0.4305836260318756, 0.12114067375659...
big input a get ``` Exception in thread "pool-1-thread-2" java.lang.OutOfMemoryError: Java heap space ``` which is caused, as I think because of a ginormous number of `ThreadWorkers` i'm adding to `ExecutorSirvice` to be executed, so it runs out of memory. Every `ThreadWorker` takes about 40 Mb of RAM for all it ne...
[ -0.12647147476673126, -0.18343424797058105, 0.37051627039909363, -0.05208161100745201, 0.047982849180698395, 0.062029171735048294, 0.06609312444925308, 0.05520275607705116, -0.38566479086875916, -0.7237439751625061, -0.08876986801624298, 0.5056885480880737, -0.4843115210533142, 0.133910551...
Thread.sleep(10000); } ``` so I won't go to deep or to broad with my recursion and prevent those exception-throwing situations. Sincerely, Sergey Aganezov jr. How about creating a [ThreadPoolExecutor](http://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/ThreadPoolExecutor.html) backed by a `BlockingQueu...
[ 0.32334133982658386, 0.2349642813205719, 0.019891919568181038, -0.12436225265264511, -0.19615639746189117, 0.2566700279712677, 0.3017440736293793, 0.1343948245048523, -0.275088906288147, -0.5883967876434326, -0.3352508842945099, 0.12648315727710724, -0.4805077016353607, 0.08457078784704208...
I have an HTTP GET that is receiving information from a URI. The URI is for Google Shopping. ``` https://www.googleapis.com/shopping/search/v1/public/products?key=key&country=US&q=digital+camera&alt=atom ``` (Left my key out). Is there a way that I can change it from ``` q=digital+camera ``` to anything a user ...
[ 0.2970515787601471, -0.29409417510032654, 1.019042730331421, -0.20529893040657043, -0.06208441033959389, 0.08322356641292572, 0.3652856647968292, -0.3818010687828064, -0.19983085989952087, -0.7057439684867859, -0.4647296369075775, 0.40147507190704346, -0.31543993949890137, 0.19748938083648...
public void onClick(View v) { Intent searchIntent = new Intent(getApplicationContext(), ProductSearch.class); startActivity(searchIntent); } }); } } ``` **Then, I have a second class, ProductSearch, with no picture, but just this code:** ``` public class ProductSearch exte...
[ 0.5649120807647705, -0.6432806849479675, 0.9602017402648926, -0.21084080636501312, 0.30065828561782837, -0.014240765012800694, 0.39036035537719727, -0.53565514087677, -0.19336466491222382, -0.5996929407119751, -0.389805406332016, 0.6881786584854126, -0.470854252576828, -0.18528039753437042...
ProductSearchMethod test = new ProductSearchMethod(); String entry; TextView httpStuff = (TextView) findViewById(R.id.httpTextView); try { entry = test.getSearchData(searchQuery.getText().toString()); httpStuff.setText(entry); } catch (Exception e) {
[ 0.19200584292411804, -0.4026438593864441, 0.6092226505279541, -0.2666248381137848, 0.11598221212625504, 0.049654796719551086, 0.481423556804657, -0.5782985091209412, 0.059624042361974716, -0.4699057340621948, -0.6366027593612671, 0.3934452533721924, -0.3582586646080017, 0.09986484050750732...
e.printStackTrace(); } } } ``` **Which references the ProductSearchMethod class which consists of a TextView that is changed to the code recieved in the HTTP GET:** ![enter image description here](https://i.stack.imgur.com/Lg0Q8.png) Code: ``` public class ProductSearchMethod { public String getSearchData(Str...
[ 0.16885462403297424, -0.26334571838378906, 0.6185253858566284, -0.13234664499759674, 0.09738192707300186, 0.12469589710235596, 0.031646452844142914, -0.3338939845561981, -0.27139607071876526, -0.6677905917167664, -0.7491052150726318, 0.2534800171852112, -0.648990273475647, 0.31635060906410...
HttpResponse response = client.execute(request); in = new BufferedReader(new InputStreamReader(response.getEntity().getContent())); StringBuffer sb = new StringBuffer(""); String l = ""; String nl = System.getProperty("line.seperator"); while((l = in.readLine()) !=null){ sb.append(l + nl); ...
[ -0.19758950173854828, -0.5901526808738708, 0.9533922076225281, -0.2594521641731262, -0.15873607993125916, 0.4053856432437897, 0.6469659209251404, -0.5488713979721069, -0.2456129789352417, -0.8568893074989319, -0.5079013109207153, 0.25648951530456543, -0.4500117301940918, 0.0045625362545251...
in.close(); return data; }catch (Exception e){ e.printStackTrace(); } } }
[ -0.11071078479290009, -0.3083314895629883, 0.19928492605686188, -0.1736016571521759, 0.3571692109107971, -0.24959196150302887, 0.24243265390396118, -0.3181553781032562, -0.11242315918207169, -0.3341773748397827, -0.4316604435443878, 0.26462310552597046, -0.5163624882698059, 0.0525854304432...
} } ``` ProductSearchMethod comes up great, but it doesn't change the text from "Loading Items" to the website code. I had it working before but then I tried to edit what it searched (all this ^) and now it doesn't change. Make changes in your code like ``` public class ProductSearchEntry extends Activity{ protect...
[ 0.16679975390434265, -0.5737338662147522, 0.9100209474563599, -0.16191497445106506, 0.1533719301223755, 0.001558701042085886, 0.31735727190971375, -0.47916027903556824, -0.27443352341651917, -0.7120174765586853, -0.3929857909679413, 0.4896177649497986, -0.4692968428134918, -0.0619234070181...
@Override public void onClick(View v) { //while calling intent Intent searchIntent = new Intent(getApplicationContext(), ProductSearch.class); searchIntent.putExtra("searchText",etSearch.getText().toString()); startActivity(searchIntent); } }); ...
[ 0.18880239129066467, -0.2957236170768738, 0.9702873826026917, -0.42392995953559875, 0.3181193470954895, -0.0037175361067056656, 0.38714081048965454, -0.48850053548812866, 0.059251315891742706, -0.47849777340888977, -0.2337634563446045, 0.8329640030860901, -0.31674957275390625, 0.0418492779...
Activity{ protected void onCreate(Bundle savedInstanceState){ super.onCreate(savedInstanceState); setContentView(R.layout.productsearchresults); String searchQuery = getIntent().getStringExtra("searchText"); ProductSearchMethod test = new ProductSearchMethod(); ...
[ 0.3712625205516815, -0.7866589426994324, 0.5990386009216309, -0.05511334165930748, 0.13946984708309174, -0.25372105836868286, 0.6833232641220093, -0.3494885563850403, -0.23678965866565704, -0.5331440567970276, -0.6419433951377869, 0.6161378622055054, -0.5788726806640625, -0.090531185269355...
try { entry = test.getSearchData(searchQuery); httpStuff.setText(entry); } catch (Exception e) { e.printStackTrace();
[ 0.08240776509046555, -0.37186938524246216, 0.18502065539360046, -0.15134979784488678, 0.4038894474506378, -0.24166832864284515, 0.6184048056602478, -0.380068838596344, -0.04466533288359642, -0.4733327329158783, -0.5114114880561829, 0.2900843024253845, -0.5792609453201294, -0.00152004009578...
} } } ```
[ 0.033695679157972336, 0.4034728407859802, 0.1949702352285385, -0.15257494151592255, 0.4299153685569763, -0.20141436159610748, 0.07711705565452576, 0.4467844069004059, 0.3091506361961365, -0.5090379118919373, -0.3048633635044098, 0.5600791573524475, -0.33611243963241577, 0.3141762912273407,...
``` float[float] aa = [2.2:7.7, 3.3:6.6, 1.1:4.4]; std.sort(aa); assert(aa == [1.1:4.4, 2.2:7.7, 3.3:6.6]); ``` The above doesn't work. How does one sort `aa` in place ? D's built-in associative arrays are [hash tables](http://en.wikipedia.org/wiki/Hash_table). They're unsorted, and it makes no sense to sort them. Th...
[ -0.040690068155527115, 0.21682743728160858, 0.23972205817699432, -0.25494271516799927, -0.2635079324245453, 0.1039319783449173, 0.23582208156585693, -0.6694738864898682, 0.016139494255185127, -0.6645717620849609, -0.09512697905302048, 0.41190892457962036, -0.33188918232917786, 0.0994469448...
bit of work to make it function as a map rather than a set (e.g. the sort function must sort on the key only, and when passing stuff to some functions, you need a tuple with a dummy value). This is why Java has a `HashMap` and a `SortedMap` and why C++ has `unordered_map` (C++11) and `map`. They both are maps both the...
[ -0.26755374670028687, -0.4306061565876007, -0.0005622912431135774, 0.03813581168651581, -0.4469670057296753, -0.22181636095046997, 0.3666817843914032, -0.24946190416812897, -0.31588903069496155, -0.5130400657653809, -0.2799055576324463, 0.05056912079453468, -0.22557908296585083, 0.09588097...
This is my first time messing around with extensions and what I am trying to do is very simple yet I can't seem to get it to work. I simply want an alert to be called every time a page on google is loaded. In my manifest.json I have: ``` { "name": "Bypass shib", "version": "1.0", "content_scripts": [ { "matches...
[ 0.20580264925956726, -0.019023222848773003, 0.6665588021278381, -0.2159009873867035, -0.2738260328769684, -0.2772204875946045, 0.42842620611190796, -0.15072156488895416, -0.20076002180576324, -0.8557013869285583, -0.16501620411872864, 0.5913923382759094, -0.5784215331077576, -0.20135393738...
extension processes. > See the content scripts documentation for more details. > > ``` [This post](https://stackoverflow.com/questions/8223233/chrome-webrequest-apis-example-error-onbeforerequest-can-only-be-used-in-exte) suggests "Chrome extension functions cannot be used in content scripts," which could be what you...
[ 0.20942160487174988, -0.2027834951877594, 0.3774243891239166, -0.2785477042198181, -0.17321519553661346, -0.04417837783694267, 0.2105390578508377, -0.3228655755519867, -0.0035625530872493982, -0.7102974653244019, -0.19624003767967224, 0.6739333868026733, -0.3878704607486725, -0.28084313869...
I'm a newbie of iOS development and I'm confused regarding universal app. We can use the same code, same xib file for iPhone 4(retina) and previous iPhones, but why we should write two different xibs for iPhone and iPad? What's the difference? For iPhone and retina iPhone, we use "point" instead of pixel for the coor...
[ 0.3713971674442291, 0.02382471226155758, 0.5514445900917053, -0.11639139801263809, -0.2827056646347046, 0.38498902320861816, 0.18099947273731232, -0.14071500301361084, -0.07223732024431229, -0.896027147769928, 0.3120013177394867, 0.3781906068325043, -0.49511757493019104, -0.106865398585796...
iPod Deployment Info** to **iPad Deployment Info**. If you're using a **Main Storyboard**, copy that too. However, the iPad does not simply scale everything up from the 320\*480 / 640\*960 iPhone screen to the 768\*1024 / 1536\*2048 iPad screen. @elgarva correctly says that this would look terrible. Instead, the iPad v...
[ -0.3245808780193329, -0.04836885631084442, 0.5230613350868225, -0.19108888506889343, 0.10943835973739624, 0.22244474291801453, 0.3470170795917511, 0.20712149143218994, -0.5434665083885193, -0.8939213156700134, 0.3477798104286194, 0.594413161277771, -0.12870830297470093, -0.2174130380153656...
aesthetic reasons - iPhones often end up containing a deep and confusing navigation tree for tasks that the iPad can fit on a single screen.
[ -0.027564773336052895, 0.4156685769557953, -0.03022414818406105, 0.18223543465137482, 0.2993375062942505, 0.23224632441997528, 0.4504048526287079, 0.2785624563694, -0.18206031620502472, -0.3414463400840759, -0.13448046147823334, 0.28464648127555847, -0.3558407723903656, -0.1846702098846435...
I want to check if my string contains a + character.I tried following code ``` s= "ddjdjdj+kfkfkf"; if(s.contains ("\\+"){ String parts[] = s.split("\\+); s= parts[0]; // i want to strip part after + } ``` but it doesnot give expected result.Any idea? You need this instead: ``` if(s.contains("+")) ``` [`co...
[ -0.19727054238319397, -0.10610610991716385, 0.5006428360939026, -0.18171854317188263, -0.025200802832841873, 0.07458419352769852, 0.3150257468223572, -0.41403302550315857, -0.030355678871273994, -0.5152353048324585, -0.5166130065917969, 0.42825615406036377, -0.3503114879131317, 0.068697288...
Please provide your feedback on my solution against following requirements. **Requirement (similar to):** 1.a let say that authentication Token is made out of the Email and date and is encrypted 1.b authentication Token is send back to the client through header 1.c authentication Token is stored on client and serve...
[ -0.05569538474082947, 0.12480072677135468, 0.604015052318573, 0.046157173812389374, -0.08890450745820999, 0.049960289150476456, 0.34601864218711853, -0.459623783826828, -0.15805426239967346, -0.5881269574165344, -0.027078675106167793, 0.3755268454551697, -0.002453692490234971, 0.0173025038...
in cookie with token stored in database. (assume that encrypt,decrypt operations are done properly ) **Your feedback/commments?** according to your error, you spelled **'abstract'** incorrectly. ``` Warning: include_once(Zend\Db\Table\Abstarct.php) [function.include-once]: failed to open stream: No such file or dire...
[ 0.05508318170905113, 0.11331240832805634, 0.2251577526330948, -0.09130407124757767, 0.14065305888652802, -0.21647825837135315, 0.41372886300086975, -0.3975733518600464, -0.3236786723136902, -0.5898445844650269, -0.14220166206359863, 0.6075818538665771, -0.4983293116092682, 0.13446146249771...
library, so I'll assume it's required. You may try and add the line `autoloaderNamespaces[] = "Zend_"` to your application.ini, it won't hurt and might help make sure the Zend library is included. so that the library is properly included. Then your library folder should look like: ``` /project_path /library ...
[ 0.5549301505088806, -0.010134896263480186, 0.177030548453331, 0.13754825294017792, 0.06482252478599548, -0.3442443311214447, 0.23362712562084198, -0.34149298071861267, -0.19222445785999298, -0.5414001941680908, -0.12338747829198837, 0.6645836234092712, -0.2595358192920685, -0.2471827417612...
been some changes since version 1.8. If you are new to ZF this should not be your first book as it will drive you crazy making things work, if you are familiar with ZF it contains some great info. I have the updated code for this book, so if you need more help...
[ 0.4874347448348999, -0.1680021584033966, 0.27811741828918457, 0.031685490161180496, 0.0012144895736128092, -0.44357478618621826, 0.2050035148859024, 0.14774076640605927, 0.02674000710248947, -0.7349932193756104, -0.06585729122161865, 0.6259139180183411, -0.3248828649520874, 0.0280008781701...
I want to change the header's height of Accordion, I use a css to set the header's height. ``` #panel1 .x-accordion-hd{ height: 40px;} ``` The height is changed but the content of the panel is covered by the header and when the panel is collapsed the next header will cover part of the previous header. Here is the pi...
[ 0.028399424627423286, -0.0037643788382411003, 0.762333333492279, -0.1674015372991562, 0.13404642045497894, 0.2798737585544586, -0.18098218739032745, -0.3791237473487854, -0.6459081172943115, -0.7055601477622986, -0.050003159791231155, 0.6385185718536377, -0.28093844652175903, -0.1144520640...
xtype:'container', padding:'25px 0 0 0', html:'panel content' }] },{ title:'Panel 2', items:[{
[ -0.3780806064605713, -0.06593992561101913, 0.5753406286239624, 0.040924981236457825, 0.05601654201745987, 0.08818280696868896, -0.3223121464252472, -0.002486428478732705, -0.15665380656719208, -0.7027781009674072, -0.3701286017894745, 0.2804413437843323, -0.3175933063030243, -0.00778640294...
xtype:'container', padding:'25px 0 0 0', html:'panel content' }] }] ```
[ -0.19985686242580414, 0.19938182830810547, 0.5049331188201904, -0.02757781557738781, 0.019402172416448593, -0.08397620171308517, -0.21118831634521484, 0.11290646344423294, -0.03876357153058052, -0.8069818615913391, -0.3146548271179199, 0.24647171795368195, -0.4543989598751068, 0.2254167348...
I am trying to add minutes to a timestamp in CakePHP. I want the timestamp to be grabbed when the form is processed. Keep in mind, I'm just learning this stuff. Here is my form code in my index view... ``` <?php echo $this->Form->create('Text'); $expirations = array('9999999'=>'Never','10'=>'10 Minutes','60'=>'1 Hou...
[ 0.4145151376724243, 0.007338028866797686, 0.6399314999580383, -0.23852884769439697, 0.35816171765327454, 0.22704315185546875, 0.12113376706838608, -0.18985441327095032, -0.12573540210723877, -0.5426116585731506, -0.07292887568473816, -0.1084861010313034, -0.003140760585665703, 0.2389104366...
for your help. Attribute lookup falls through the prototype chain, which matches quite well to dynamic scopes. Just pass your own environment of dynamically-scoped variables to use around instead of using Javascript's lexical scoping. --- ``` // Polyfill for older browsers. Newer ones already have Object.create. if ...
[ 0.1468447893857956, -0.08869929611682892, -0.21783727407455444, 0.08397123217582703, 0.06256487965583801, 0.07637283205986023, 0.32319629192352295, 0.12353100627660751, -0.11409184336662292, -1.04975426197052, 0.12037809938192368, 0.5187751650810242, -0.36331692337989807, -0.02317953482270...
given proto without any side-effects. return new cons(); }; } ``` --- ``` // Define a new class function dyn() {} // with a method which returns a copy-on-write clone of the object. dyn.prototype.cow = function() { // An empty object is created with this object as its prototype. Javascript // will follow ...
[ 0.019202345982193947, -0.13597790896892548, -0.27054187655448914, -0.2648460268974304, 0.16997544467449188, 0.35606589913368225, 0.12126924097537994, -0.060741785913705826, 0.16628503799438477, -1.0126081705093384, 0.008076888509094715, 0.35860732197761536, -0.5696614980697632, 0.200873285...
f(env) { env.x = 3; g(env.cow()); } ``` --- ``` // Create a new environment. var env = new dyn(); // env -> {__proto__: dyn.prototype} // Set a value in it. env.x = 1; // env -> {x: 1} // Still has dyn.prototype, but it's long so I'll leave it out. f(env.cow()); // f(): // env -> {__proto__: {x: 1}} // Call...
[ -0.012319587171077728, 0.07357905060052872, 0.5427421927452087, -0.18608435988426208, 0.10305942595005035, 0.39088937640190125, 0.2170596718788147, -0.27315106987953186, -0.022355154156684875, -0.8719239234924316, -0.10479399561882019, 0.42489850521087646, -0.20796166360378265, 0.199485763...
// caller's env.cow() // env.x -> 3 // attribute lookup follows chain of prototypes // > env.x = 2 // env -> {x: 2, __proto__: {x: 3, __proto__: {x: 1}}} console.log(env.x); // env -> {x: 1} // still unchanged! // env.x -> 1 ```
[ 0.12279859185218811, 0.050215043127536774, 0.45100679993629456, -0.12371163815259933, 0.05730735883116722, 0.2301684468984604, 0.2225753664970398, -0.39703434705734253, 0.09964204579591751, -0.6127226948738098, -0.1277334839105606, 0.6289306879043579, 0.01579098217189312, 0.117009662091732...
On ICS, I'm getting an android.os.NetworkOnMainThreadException error when using UrlConnection - even though I'm making this request in a Service that runs on it's own process, and was called asyncronously to be done via Messenger. Changing the StrictPolicy had no effect, I still get the error. What can I do? edit: t...
[ 0.05228028446435928, 0.10720619559288025, 0.38538259267807007, 0.24638408422470093, 0.09988141059875488, -0.11603224277496338, 0.31832435727119446, 0.07181533426046371, -0.45747944712638855, -0.9969905018806458, -0.13427093625068665, 0.3718503415584564, -0.37785112857818604, 0.420880436897...
CPU intensive (such as MP3 playback) or blocking (such as networking) operations, it should spawn its own thread in which to do that work. More information on this can be found in Processes and Threads. The IntentService class is available as a standard implementation of Service that has its own thread where it schedul...
[ 0.21367789804935455, -0.1579202264547348, 0.41536644101142883, 0.021956181153655052, 0.04856036975979805, -0.08101292699575424, -0.14558568596839905, 0.0717238187789917, -0.23586387932300568, -0.7000195384025574, -0.2936726212501526, 0.6306290030479431, -0.2190876454114914, 0.0675093680620...
I used php code from tutorial and it worked fine. But when I am rewriting it to me it gives me null. This code gives me what I want I mean it gives data in JSON format: ``` $q=mysql_query("SELECT * FROM people WHERE birthyear>'".$_REQUEST['year']."'"); while($e=mysql_fetch_assoc($q)) $output[]=$e; print(json_encod...
[ 0.12803970277309418, 0.1286945343017578, 0.5272064805030823, -0.13311995565891266, -0.020130092278122902, 0.18798759579658508, 0.3366493880748749, -0.32126152515411377, -0.08738550543785095, -0.42778342962265015, -0.08426108956336975, 0.14341500401496887, -0.09389389306306839, 0.3173225522...
Because I trustfully don't understand. It looks the same to me. To make a pattern with `LIKE` use a `%`. Put it around or at any end, beginning or end. ``` $username = mysql_real_escape_string($_REQUEST['usern']); $q=mysql_query("SELECT username, firstname, lastname, email, phone1, skype, city, description FROM mdl_...
[ 0.16458997130393982, 0.16755373775959015, 0.5580669641494751, -0.24953867495059967, 0.21696391701698303, 0.04631073772907257, 0.4248514473438263, -0.112760029733181, -0.1634097397327423, -0.6066238880157471, -0.24512864649295807, 0.1750883311033249, -0.6384311318397522, 0.38382259011268616...
| // You also missed this space --+ ``` **Note** your query is wide open to SQL injection. Just think if someone inserts year as `'; drop table people; --`. Use [mysql\_real\_escape\_string](http://php.net/mysql_real_escape_string) to sanitize those field. ![enter image description here](https://i.stack.imgur.com/A...
[ -0.08668134361505508, 0.09778407216072083, 0.5135152339935303, 0.053381215780973434, 0.17155112326145172, -0.07142291963100433, 0.3049818277359009, -0.1040852963924408, -0.4175306260585785, -0.6196165680885315, -0.2561294138431549, 0.2934727370738983, -0.1499967724084854, 0.344955146312713...
I have an Android project that displays results, using a simple listview. What I need is to display an image at the top of listview as follows: ![Before scrolling ](https://i.stack.imgur.com/6djn0.png) ![After scrolling](https://i.stack.imgur.com/m7oak.png) Please note, the image on top, should be scrollable. Would ...
[ 0.38737839460372925, -0.09273754805326462, 0.8960055708885193, -0.15448886156082153, -0.438223272562027, -0.20301826298236847, 0.20529262721538544, -0.2168739289045334, -0.22632135450839996, -0.7446253895759583, 0.0023600037675350904, 0.6747649312019348, -0.2766636908054352, -0.03407792374...