text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
your frames per second. In general, when your code is slow, it helps to use Instruments.app to figure out where your code is spending so much time. Since you're using a framework this will be less helpful because you'll end up finding out what functions your code spends a lot of time in, and then figure out how to red...
[ 0.4969598054885864, -0.036518532782793045, 0.25624874234199524, 0.40190842747688293, -0.017403436824679375, 0.06374814361333847, 0.22135750949382782, -0.06745254248380661, -0.32736942172050476, -0.7007972598075867, 0.19989274442195892, 0.5031066536903381, -0.2464514523744583, -0.2917826175...
I'm trying to write an MPI version of a program that runs an odd/even compare-split operation on n randomly generated elements. Process 0 should generated the elements and send nlocal of them to the other processes, (keeping the first nlocal for itself). From here, process 0 should print out it's results after running...
[ 0.14429110288619995, -0.09049634635448456, 0.19894908368587494, 0.08515585213899612, -0.1753712147474289, 0.32278648018836975, -0.08936139941215515, -0.2698003649711609, -0.12554605305194855, -0.8416544198989868, 0.16242346167564392, 0.1271633356809616, -0.38044309616088867, 0.149711504578...
any hints that people could give me. Here is my code <http://pastie.org/3742474> Right now I'm pretty sure that the deadlock is coming from the Send/Recv at lines 134 and 151. I've tried changing the Send to use "tag" instead of myrank for the tag parameter..but when I did that I just keep getting a "MPI\_ERR\_TAG: i...
[ -0.14595955610275269, -0.06860150396823883, 0.5134395360946655, 0.07275015860795975, -0.08770595490932465, 0.10472888499498367, 0.46119189262390137, 0.27405694127082825, -0.2564404606819153, -0.9334282875061035, 0.08512848615646362, 0.3227474093437195, -0.2376965582370758, 0.07006260752677...
but is still deadlocking. <http://pastie.org/3744691> I fixed the above test case by changing the tag at line 83 from "myrank" to "tag". Well the test case works, but when the actual algorithm is added in like in my program it deadlocks.. So, I think I've narrowed the deadlock down to this chunk of code. **It looks t...
[ -0.16528910398483276, -0.2624388635158539, 0.9283661842346191, -0.19560852646827698, 0.026816973462700844, 0.037247829139232635, 0.5067588686943054, -0.18058666586875916, -0.2991122603416443, -0.3280181884765625, -0.1377951055765152, 0.2209095060825348, -0.40157192945480347, 0.138184219598...
nlocal, MPI_INT, oddrank, 1, MPI_COMM_WORLD, &status); else MPI_Sendrecv(elmnts, nlocal, MPI_INT, evenrank, 1, relmnts, nlocal, MPI_INT, evenrank, 1, MPI_COMM_WORLD, &status); CompareSplit(nlocal, elmnts, relmnts, wspace, myrank < status.MPI_SOURCE); } ``` The...
[ -0.3862655460834503, -0.192361518740654, 0.5033679008483887, -0.061003342270851135, -0.01576049067080021, 0.39758461713790894, 0.2980809807777405, -0.20845820009708405, -0.3036443889141083, -0.7489620447158813, -0.17286550998687744, 0.4354247450828552, -0.4735824763774872, 0.09296979010105...
tags have to be positive integers in the range from 1 to some implementation-dependant maximum which is guaranteed to be at least 32k. The deadlock is pretty easy to understand; look at what the non-rank zero processes are doing: ``` else { // The rest of the processes // Receive nlocal randomly generated e...
[ -0.04573958367109299, -0.2763211131095886, 0.47019827365875244, 0.09107401967048645, 0.18351459503173828, -0.16983257234096527, 0.06760480999946594, -0.4670567512512207, -0.38794517517089844, -0.2907431423664093, -0.016798894852399826, 0.41727346181869507, -0.47663772106170654, -0.01642275...
MPI_Send(elmnts, nlocal, MPI_INT, 0, myrank, comm); } ``` So they're doing one receive, and one send back. But processor 0 is doing much more than this; it sends everyone their data, then executes a bunch of send-receives to process 1 (evenrank) and MPI\_NULL\_PROC (oddrank). But the send-receives to evenrank are n...
[ -0.42668354511260986, -0.2729799151420593, 0.3630416989326477, -0.024673111736774445, -0.13511832058429718, 0.34433141350746155, 0.2980378270149231, -0.2835375666618347, -0.5609818696975708, -0.65354323387146, -0.16911420226097107, 0.15418925881385803, -0.4259267747402191, -0.0406183376908...
I have a Jsfiddle application [here](http://jsfiddle.net/fPtMq/27/). If you type in a question in the textarea, and then click on the "Add Question" button, it appends the question and a question number in the table below (you can teest this a couple of times if you wish). Now below the table is a file input which is...
[ 0.44155141711235046, 0.2340242713689804, 0.46875301003456116, -0.42944082617759705, -0.444702684879303, -0.10083319246768951, 0.12231770157814026, -0.2073148936033249, -0.3119632303714752, -0.8183935284614563, 0.16435964405536652, 0.3214317858219147, -0.20879676938056946, -0.31241053342819...
for each row? If you Google `UIView` you'll end up at the documentation - [UIView Class Reference](http://developer.apple.com/library/ios/#documentation/uikit/reference/uiview_class/uiview/uiview.html) Then you need to look down the list of methods until you find something that sounds like it will roughly fit your nee...
[ -0.012992064468562603, 0.04573247954249382, 0.4851987659931183, 0.1543319821357727, -0.26394185423851013, 0.29454562067985535, 0.1660098433494568, -0.4600018262863159, 0.05576783046126366, -0.9368717670440674, -0.018400978296995163, 0.4739038050174713, -0.25149932503700256, -0.075518444180...
I have a little questions regarding Elastic IPs and its charge. Some blogs says that Elastic IP will charge you by the bandwidth you use > > Elastic IP addresses **charge by bandwidth** and have an hourly price > > when they are not attached to a running instance > > > From > <http://things.zarate.org/scaling-a-s...
[ 0.27524489164352417, -0.2392507642507553, 0.587950587272644, 0.1554046869277954, -0.32530930638313293, -0.13563653826713562, 0.09349881112575531, -0.20641852915287018, -0.5688483119010925, -0.41510099172592163, 0.20169539749622345, 0.6774060726165771, -0.3095293641090393, 0.045971155166625...
between instances using public or elastic IP > > address even in the same region you pay regional data transfer > > rates(0.01$ per GB in/out). > > > From > <http://www.cloudiquity.com/2009/02/using-amazon-ec2-public-ip-address-inside-ec2-network/> See AWS calculator screenshot -> <http://shareimage.org/images/lz...
[ 0.1920575499534607, -0.2593816816806793, 0.4206700921058655, 0.07389640808105469, -0.20287713408470154, 0.14440879225730896, 0.2818092703819275, -0.05424954742193222, -0.39123350381851196, -0.8606298565864563, 0.058095406740903854, 0.37555912137031555, -0.2744234502315521, 0.10587863624095...
the data transfer charge question from the Elastic IP address charge one, insofar they are completely independent from each other: Elastic IP addresses -------------------- Allocating and using one [Elastic IP addresses](http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/using-instance-addressing.html#using-in...
[ -0.11761581152677536, -0.4169040620326996, 0.511420726776123, 0.3472801446914673, -0.5197331309318542, 0.026912391185760498, 0.17985185980796814, -0.585695743560791, -0.272415429353714, -0.27929678559303284, -0.19545453786849976, 0.5676029324531555, -0.24175946414470673, -0.239785835146904...
hour on a pro rata basis** > * $0.00 per Elastic IP address remap for the first 100 remaps per month > * $0.10 per Elastic IP address remap for additional remaps over 100 per month > > > *[emphasis mine]* The rationale behind this approach is explained in the respective FAQ [Why am I charged when my Elastic IP addre...
[ 0.22495707869529724, -0.20253920555114746, 0.7329204678535461, 0.06448108702898026, -0.3669019341468811, -0.06080159544944763, 0.4710254371166229, -0.42777571082115173, -0.06095509231090546, -0.3177381157875061, -0.0295444056391716, 0.7008959650993347, -0.2818047106266022, -0.3450114130973...
explained in section *Data Transfer* on page [Amazon EC2 Pricing](http://aws.amazon.com/ec2/pricing/) (and detailed by some FAQs): You primarily pay for *Internet Data Transfer*, i.e. *data transferred "in" and "out" of Amazon EC2*, which specifically excludes the following: > There is no Data Transfer charge between...
[ 0.26690852642059326, -0.45240938663482666, 0.49896809458732605, 0.5586273074150085, 0.22430430352687836, 0.015652457252144814, -0.03780154883861542, -0.2209160476922989, -0.15641777217388153, -0.45648738741874695, -0.2948850393295288, 0.27016061544418335, 0.32730555534362793, 0.06110422685...
be charged as Internet Data > Transfer on both sides of the transfer. ### Caveat The important caveat to be aware of indeed follows below that statement though: > **Public and Elastic IP and Elastic Load Balancing Data Transfer** > > > * $0.01 per GB in/out – If you choose to communicate using your Public or Elas...
[ -0.016150228679180145, -0.29747697710990906, 0.6898430585861206, 0.4494990110397339, -0.10321948677301407, -0.3278965651988983, 0.10964863002300262, -0.2844986319541931, -0.4083644449710846, -0.5027524828910828, -0.2464665174484253, 0.5478958487510681, 0.006352619733661413, -0.134905263781...
get > better network performance) by using your private IP whenever > possible. ### Remedy Not mentioned in the aforementioned paragraph is an important and quite helpful feature of the AWS DNS infrastructure though, see [Public IP Addresses and External DNS Hostnames](http://docs.aws.amazon.com/AWSEC2/latest/UserG...
[ -0.05960460379719734, -0.39240992069244385, 0.5432750582695007, 0.3071743845939636, -0.11388988792896271, -0.1632041335105896, 0.5381807684898376, -0.3018845021724701, -0.017768889665603638, -1.157226800918579, -0.0645671859383583, 0.7694931626319885, 0.04894755408167839, -0.00777155207470...
DNS (e.g. `ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com`) to the *Private IP address* when you are using it inside the Amazon EC2 network, and to the *Public or Elastic IP address* when using it outside the Amazon EC2 network. Like so you get the free *Availability Zone Data Transfer* and reduced charge *Regional Data T...
[ 0.09057669341564178, -0.3320148289203644, 0.3786413073539734, 0.18745337426662445, -0.2243562489748001, -0.1882823407649994, 0.004261805675923824, 0.06167128309607506, -0.42661723494529724, -0.917647659778595, -0.5347108840942383, 0.3197879493236542, -0.11573931574821472, 0.398046493530273...
addresses directly (i.e. without DNS), which is thus usually best avoided for this and other reasons in the context of EC2.
[ -0.015324720181524754, -0.1800340712070465, 0.3273475170135498, 0.12459002435207367, -0.0780644416809082, -0.6593801975250244, 0.16067244112491608, 0.018241815268993378, -0.29529279470443726, -0.43927937746047974, -0.9804904460906982, 0.14552155137062073, -0.13603255152702332, 0.0983819589...
When I run this program, I enter the username as `"dcole"` and the password `"test"` but when I enter them they return with `"ÿûÿû ÿûÿû'ÿýÿûÿýdcole"` and `"ÿþÿþ ÿþÿþ'ÿütest"`. Here's the code: ``` clientoutput.write("Please enter your username: ".getBytes("UTF-8")); clientoutput.flush(); String username = clientinput...
[ 0.2207655906677246, 0.283133327960968, 0.7741839289665222, -0.2662601172924042, 0.14093327522277832, 0.2753450870513916, 0.6412323117256165, -0.3292103409767151, -0.08023581653833389, -0.7770771384239197, -0.25117552280426025, 1.0458394289016724, -0.1284179389476776, 0.1366293877363205, ...
need a dynamic amount of sounds then you should change to using an `NSArray` ``` // .m NSString *MySounds[3] = { @"sound1.wav", @"sound2.wav", @"sound3.wav", }; @implementation ... ``` Then in your method you need to add a little extra logic ``` - (void)playSound; { NSString *path = [NSString strin...
[ 0.11703675985336304, -0.5044559836387634, 0.6989961266517639, -0.08446767181158066, 0.3331111669540405, -0.0011619159486144781, 0.3616899847984314, -0.5148445963859558, -0.35791337490081787, -0.48829951882362366, -0.1632990539073944, 0.9835851788520813, -0.16768349707126617, 0.134174183011...
[error description]); } else { [audioPlayer play]; } } - (NSString *)nextSoundName; { static NSInteger currentIndex = -1; if (++currentIndex > 2) { currentIndex = 0; } return MySounds[currentIndex]; } ```
[ -0.3128262162208557, -0.3600042462348938, 0.7306673526763916, -0.01745535247027874, 0.3807416558265686, -0.1986285001039505, 0.21164728701114655, -0.3252449929714203, 0.012111716903746128, -0.49670711159706116, -0.2587401866912842, 0.9320950508117676, -0.14105869829654694, 0.53788310289382...
I am currently working on my project for my professional course. I am implementing a digital diary. I would be having a diary page (a multiline textbox maybe) And a TextView on top to show the current DATE (without time). How do I show a NON-editabale textbox with today's date shown in it. Try this: ``` word-wrap:bre...
[ 0.4396844804286957, -0.0005131978541612625, 0.3705715835094452, 0.14079931378364563, 0.3263741731643677, -0.2648809850215912, 0.13914421200752258, 0.1854790598154068, -0.1279263198375702, -0.6719706058502197, 0.1582072228193283, 0.08007300645112991, 0.10925202071666718, 0.15630927681922913...
Is there a plugin in eclipse that when you type 'new JavaClass' it will auto import like 'import java.class.JavaClass' just like in FlashDevelop where-in when you type 'new MovieClip' it will put automatically 'import flash.display.MovieClip' ? Thanks. When you type a class name without the package, invoke the Content...
[ 0.1809878945350647, -0.28535372018814087, 0.2588609457015991, 0.08467528223991394, -0.3050915002822876, -0.3975498080253601, -0.2075866460800171, -0.058425575494766235, -0.19576400518417358, -0.6631700992584229, -0.031456779688596725, 0.7961515784263611, -0.28749677538871765, -0.3300156295...
I have learned that Windows uses UTF-16LE on x86/x64 systems. What about Linux? Which Unicode encoding does it use: UTF-16LE or UTF-32? <http://www.xsquawkbox.net/xpsdk/mediawiki/Unicode> says > ### Linux > > > On Linux, UTF8 is the 'native' encoding for all strings, and is the format accepted by system routines lik...
[ 0.09360983967781067, -0.11787863820791245, 0.4006081819534302, 0.011357109993696213, 0.1115393340587616, 0.09806422889232635, -0.0663144513964653, 0.16724029183387756, -0.23219819366931915, -0.61441570520401, -0.4236869812011719, 0.5291265249252319, -0.20650134980678558, -0.073260717093944...
those require wide character support -- NUL bytes allowed inside strings.
[ -0.22832977771759033, 0.08909066021442413, -0.07298297435045242, 0.03185378760099411, 0.03738316148519516, -0.04354967921972275, -0.05138949677348137, 0.1636836975812912, -0.1418457329273224, -0.13039258122444153, -0.7544095516204834, 0.2667802572250366, 0.03417394310235977, -0.25137984752...
Could some one please explain to me what the difference in the following is: ``` $var = 'something'; function myFunc(){ global $var; // do something } ``` and (note: the reference sign &) ``` $var = 'something'; function myFunc(&$var){ // do something } ``` I can't understand the difference between th...
[ 0.1309041976928711, -0.11161673814058304, 0.4231797456741333, -0.3213696777820587, 0.01857006549835205, 0.022117989137768745, 0.3600391447544098, -0.21132321655750275, -0.27337735891342163, -0.3346934914588928, -0.1811319887638092, 0.6511205434799194, -0.3769507110118866, 0.203494355082511...
would return 3 here aswell.* --- I understand those part already, But what i don't understand is the difference between these two approaches, am i wrong to assume that these two approaches are technically the same thing, with different concept of how they are wrote by the coder and also how they are handled by PHP? ...
[ 0.5577654838562012, 0.3543684780597687, 0.22944220900535583, 0.15624672174453735, -0.3232539892196655, -0.1849304884672165, 0.24424448609352112, -0.19997549057006836, 0.026362426578998566, -0.45844516158103943, 0.34530574083328247, 0.762643575668335, -0.23238348960876465, -0.03321493417024...
new variable names while keeping the pointer to the variable in the functions scope. There is no technical difference at all between your two examples; they will always behave in an identical manner. That leaves us looking for other types of differences, and there is a pretty significant code quality difference here: ...
[ 0.022769996896386147, -0.09128862619400024, 0.3154350519180298, -0.028933772817254066, -0.2383187711238861, -0.05031866207718849, 0.258282333612442, -0.07225649803876877, -0.18482406437397003, -0.5493205785751343, -0.04091735556721687, 0.7616543173789978, -0.4023416042327881, 0.26208776235...
does not apply to *this* example) is that the first form can only be used if your variable is in the global scope to begin with; the second will work everywhere. You should also take into account that both these methods have an in/out argument. Normally you would not be writing code like this if it were just one argum...
[ 0.061242520809173584, -0.17435915768146515, -0.06027040630578995, -0.1321534514427185, -0.3412507176399231, -0.2969588339328766, 0.3357415795326233, 0.11123910546302795, -0.23164169490337372, -0.4409242868423462, -0.039609067142009735, 0.468174010515213, -0.5805213451385498, 0.021542020142...
with multiple values rather than take multiple arguments by reference to make the code even easier to follow. So in conclusion: * They do the same thing * If you are going to use one of them, prefer the second form (clearer, more flexible) * Consider using *none* of them and doing things otherwise if it doesn't requi...
[ 0.3268541097640991, 0.23472855985164642, -0.08983888477087021, -7.236934607135481e-7, -0.12604056298732758, 0.1560458540916443, 0.30122533440589905, -0.41374579071998596, -0.3051643967628479, -0.55655837059021, -0.06801208108663559, 0.6221801042556763, -0.33279991149902344, -0.195257216691...
In view A, I have a text field. I tap a control to push in a new view controller B. View B only has a text view whose frame should be adjusted to accommodate the keyboard, and I always set the text view to be the first responder and the keyboard should show immediately when view B is pushed in. I do the usual keyboard...
[ -0.09550847858190536, -0.003982659429311752, 0.7455390095710754, -0.5312930345535278, -0.37890011072158813, 0.31448301672935486, -0.055522091686725616, -0.23999950289726257, -0.13923023641109467, -0.6708278656005859, -0.19919143617153168, 0.9632883667945862, -0.2973185181617737, -0.1283813...
keyboard is already shown when I push in view controller B, I won't receive UIKeyboardWillShowNotification/UIKeyboardDidShowNotification. Any suggestion to handle this situation? To resign first responder then become first responder again is not a good solution that I dropped immediately the first time I thought about ...
[ -0.18019898235797882, -0.30939123034477234, 0.6635926961898804, -0.15802796185016632, -0.09157201647758484, 0.06551068276166916, 0.3768761456012726, -0.12850208580493927, -0.2930488884449005, -0.6305525302886963, -0.12417829036712646, 0.6786007285118103, -0.22747434675693512, 0.21561293303...
in software engineering. So I believe it deserves a bug report and I did one — [#11205521](http://openradar.appspot.com/radar?id=1643406).
[ 0.24315553903579712, 0.34418341517448425, 0.14710012078285217, 0.11885251104831696, 0.5292152762413025, -0.09338466823101044, 0.39806997776031494, 0.01700543239712715, -0.7432694435119629, -0.12015639245510101, -0.14929814636707306, 0.6015554070472717, 0.40045079588890076, -0.3323175311088...
here is the layout im trying to achieve. <http://i.imgur.com/kA0yw.jpg> I have a repeating swatch of the background that is set to the html's background so the grey paper tecture repeats beyond the design. Then i Have the bamboo illustration that goes on top of that set to the background of the body. I cant seem t...
[ 0.40602409839630127, 0.1410544365644455, 0.16182725131511688, 0.09314630925655365, -0.3080112934112549, 0.2660881578922272, 0.06656107306480408, -0.0346846729516983, -0.21443921327590942, -0.7540817856788635, 0.26632148027420044, 0.19163067638874054, 0.07703082263469696, -0.115933299064636...
figure this out it seems like it has to be the simplest thing to do this is what it looks like now- <http://i.imgur.com/55dPe.png> here is the code ``` <html> <body> <div id="wrapper"> <div id="header"></div> <div id="content"></div> </div> </body> </html> ``` and the cs...
[ -0.18670126795768738, -0.08618932217359543, 0.6563267111778259, 0.06716839224100113, -0.17609338462352753, 0.16365984082221985, -0.22158583998680115, -0.2902277410030365, -0.32629522681236267, -0.7276315689086914, -0.24204179644584656, 0.08744452893733978, -0.19478827714920044, -0.12250847...
in the second line are longer than the ones on the first line? That's because they're not ASCII spaces, so emacs doesn't recognize them as spaces. Rather emacs thinks they're variable names, so it complains to you that there's no variable called " " (thus the space in the void-variable error).
[ -0.0967789888381958, -0.25446414947509766, -0.0038164607249200344, 0.13696835935115814, -0.0022610370069742203, 0.18560482561588287, 0.03783524036407471, 0.281304270029068, -0.3930967152118683, -0.3582218885421753, -0.19758020341396332, -0.10684232413768768, -0.2897321879863739, 0.25870636...
I have two pages, one page for input, another page for the options, how to send value form page to another page on xPages Mobile Controls, or is there another way to make like this. See my sample page: 1. Page 1:User Input <http://i1248.photobucket.com/albums/hh490/dannysumarnach/page_1_form_user_input.jpg> 1. Page ...
[ 0.5025546550750732, -0.07830308377742767, 0.338804692029953, -0.33819618821144104, -0.07549425959587097, 0.07197244465351105, -0.22914481163024902, -0.6652023196220398, -0.25442856550216675, -0.6301748156547546, 0.15565823018550873, 0.7591074705123901, -0.2673115134239197, -0.1832166314125...
I'm trying to learn rspec. I can't seem to test a rails controller method. When I call the method in the test, rspec just returns an undefined method error. Here is my test example ``` it 'should return 99 if large' do GamesController.testme(1000).should == 99 end ``` and here is the error: ``` Failure/Error: Ga...
[ -0.004405003506690264, 0.19080902636051178, 0.25715702772140503, 0.08164870738983154, 0.0003723725094459951, -0.39821216464042664, 0.17664293944835663, -0.12310772389173508, -0.16370417177677155, -0.5858227610588074, 0.08819062262773514, 0.6189643740653992, -0.2675400674343109, 0.204419299...
controller.testme(1000).should == 99 end end ``` In a rails controller spec, when you put the controller class in `describe`, you can use `controller` method to get an instance :P Obviously, if `testme` method is private, you still have to use `controller.send :testme`
[ 0.13242417573928833, -0.5030466318130493, 0.04688175022602081, 0.28524184226989746, -0.043304864317178726, -0.19649682939052582, 0.09476494789123535, -0.32155588269233704, 0.09945729374885559, -0.6339448094367981, 0.1827937811613083, 0.24839459359645844, -0.2550850212574005, 0.265338361263...
So I need to create a graph that basically looks like an ascending line graph. on the x-axis will be time, and on the y-axis will be achievements that the user has unlocked. Each achievement shown will be a specified height above the previous, and a certain distance across the x-axis depending when they were unlocked. ...
[ 0.32241496443748474, -0.030118759721517563, 0.3955935835838318, 0.24963445961475372, -0.12201067060232162, -0.0380520224571228, 0.26932409405708313, -0.2950422763824463, -0.19167760014533997, -0.5862736701965332, 0.17444247007369995, 0.35439401865005493, 0.21417956054210663, 0.116209141910...
The regular expression `^/wp-[^./]+\.php$` matches: * wp-config.php * wp-commentsrss2.php * wp-pass.php * wp-rdf.php * [...] But I need another regex which matches all above except wp-login.php. Is it possible to define an exception within that regular expression? How? Thank you in advance. Use ``` ^/wp-((?!login)...
[ -0.004602100234478712, 0.12160760164260864, 0.4553082287311554, -0.11376440525054932, -0.3293648958206177, 0.028369257226586342, 0.5378257036209106, 0.016510741785168648, -0.29547318816185, -0.2188277542591095, -0.34315258264541626, 0.751757025718689, -0.6068964600563049, -0.38385683298110...
I was wondering if I can require a user to login to my site before they can comment using facebook comments? Right now if a user views a page with facebook comments (because I have a public facing section) then they can comment even if they aren't logged into my site (because they are logged into facebook). Can I hav...
[ 0.7783467769622803, 0.15178832411766052, -0.005586506333202124, 0.25400424003601074, 0.062211520969867706, -0.3356887996196747, 0.2525404989719391, 0.2694697380065918, -0.40248557925224304, -0.641603946685791, 0.2687120735645294, 0.6890496611595154, -0.17887073755264282, 0.1870636492967605...
page1.jsp and see if it works: ``` <portlet:renderURL var="clickRenderURL"> <portlet:param name="jspPage" value="/WEB-INF/view/page2.jsp" /> </portlet:renderURL> <a href="<%=clickRenderURL %>">Click here</a> ``` If it does than may be this is the issue with quotes (""). If it does not then can you provide more...
[ 0.005788977723568678, 0.0503416582942009, 0.6197380423545837, -0.30644547939300537, -0.3662382662296295, -0.027128182351589203, 0.281866192817688, -0.30921509861946106, -0.10500983893871307, -0.6459054946899414, -0.3124295175075531, 0.6946657299995422, -0.2371036261320114, -0.2934097349643...
Okay, so I was teaching my girlfriend some c++, and she wrote a program that I thought wouldn't work, but it did. It accesses one more element in the array then there is (for instance, accessing array[5] for an array of size 5). Is this an instance of a buffer overflow? My thoughts on it are that it's writing to/access...
[ -0.03493371605873108, 0.2793598771095276, 0.15230102837085724, -0.31976744532585144, 0.2144964188337326, 0.16586558520793915, 0.10269514471292496, -0.08876532316207886, -0.38644304871559143, -0.5032896399497986, -0.04756379500031471, 0.3381764590740204, -0.5382982492446899, -0.042872726917...
<< size << " elements in this array." << endl; cout << endl; cout << endl; cout << endl; int array[size]; for (int counter = 1; counter <= size; counter++) { cout << "Please enter a value for element " << counter << "." << endl; cin >> array[counter]; } cout << endl; cout << endl; for (int counter = 1; co...
[ -0.11460211127996445, -0.11423666030168533, 0.4238639771938324, -0.5544684529304504, -0.11770562827587128, 0.23755554854869843, 0.3340299725532532, -0.42367392778396606, -0.10810276120901108, -0.6022622585296631, -0.23494890332221985, 0.2903449237346649, -0.5570263862609863, 0.134128436446...
flavors. Here are a few: 1) It will kick your dog. 2) It will reformat your hard drive. 3) It will work without a problem. In your case, with your compiler and on your platform and on this particular day, you are seeing (3). But try it elsewhere, and you might get (1), (2), or something else completely (most likely...
[ 0.11224783211946487, -0.29940298199653625, 0.4228764474391937, 0.21070531010627747, -0.04838684946298599, -0.1687970608472824, -0.03615166246891022, 0.04969727247953415, -0.13642364740371704, -0.5158454775810242, -0.18582701683044434, 0.6546138525009155, -0.38027656078338623, -0.0193098653...
``` storeChildren : function(coreid, data) { $.each(data, function(id, type) { $.core.children[coreid] = {}; $.core.children[coreid]['id'] = id; $.core.children[coreid]['type'] = type; }); } ``` ($.core.children is an object) I want the resulting array/object (I prefer objects) to look like this (exc...
[ 0.2053920179605484, 0.49097487330436707, 0.1554935723543167, -0.06203186511993408, 0.40416982769966125, 0.31350958347320557, 0.3864302933216095, -0.33652326464653015, -0.08871299773454666, -0.5725878477096558, -0.14047381281852722, 0.19148805737495422, -0.5138596296310425, 0.48333203792572...
$.core.children[coreid][id] = type; }); } ```
[ 0.14262601733207703, 0.14384445548057556, -0.04493061080574989, -0.05073915049433708, 0.5973594188690186, 0.06466004997491837, 0.4595072567462921, -0.0833316370844841, 0.27598387002944946, -0.7149627804756165, -0.3451356887817383, 0.3394988775253296, -0.31770437955856323, 0.401506423950195...
I've implemented a WebGrid. Sorting, paging and filtering do not work together. They work when you use them alone. When you combine the three, at the same time, filtering doesn't work. The symptom: Filter the resultset, then sort. or Filter the resultset, then go to next page. In both cases, the filter is lost....
[ -0.03178606927394867, -0.19577597081661224, 0.33453091979026794, 0.03557664155960083, -0.16644969582557678, -0.05517543852329254, 0.22568055987358093, -0.27150529623031616, -0.14447645843029022, -1.0484981536865234, 0.2146846354007721, 0.19509626924991608, -0.365211546421051, 0.08132642507...
sort or a pagination that it's not submitting the form. ``` public ActionResult MyPage(int? page, int? rowsPerPage, string sort, string sortdir, string orderNumber, string person, string product) ``` I've looked around on SO and elsewhere. There are plenty of examples and people asking ...
[ 0.005165239796042442, 0.014800895936787128, 0.45385199785232544, -0.13427861034870148, -0.32568541169166565, 0.025988398119807243, 0.056026168167591095, -0.14072203636169434, -0.44391974806785583, -0.6604760885238647, 0.06635137647390366, 0.22392812371253967, -0.2674511671066284, -0.075395...
follows: ``` @using (Ajax.BeginForm("MyPage", null, new AjaxOptions { InsertionMode = InsertionMode.Replace, UpdateTargetId = "myGrid" }, new { id = "filter" })) { <div class="right"> <select id="rowsPerPage" name="rowsPerPage"> <option>15</option> <option>25</option> <o...
[ -0.28836482763290405, -0.5339381098747253, 0.4239741861820221, -0.2015213519334793, 0.13680559396743774, 0.1420985609292984, -0.17550531029701233, -0.3303382992744446, -0.04650052636861801, -0.8588883280754089, -0.1028599888086319, 0.5939552187919617, -0.11334514617919922, -0.3798314332962...
</select> </div> <div class="table"> <div class="tableRow"> <div class="tableCell"> Order Number </div> <div class="tableCell"> Person
[ -0.5635036826133728, -0.2611319124698639, 0.060574304312467575, -0.1644056737422943, -0.2989344000816345, 0.37833669781684875, -0.09447682648897171, 0.11849477142095566, -0.29619497060775757, -0.5358921885490417, -0.5436877012252808, 0.2202451229095459, -0.03667972981929779, 0.035281706601...
</div> <div class="tableCell"> Product </div> </div> <div class="tableRow"> <div class="tableCell"> <input type="text" id="orderNumber" name="orderNumber" />
[ -0.261586993932724, 0.009288642555475235, 0.5713907480239868, -0.27593982219696045, -0.2315988838672638, 0.2491649091243744, -0.18976879119873047, -0.23451730608940125, -0.17668908834457397, -0.5729453563690186, -0.41319000720977783, 0.21650910377502441, -0.07551469653844833, 0.20533922314...
</div> <div class="tableCell"> <input type="text" id="person" name="person" /> </div> <div class="tableCell"> <input type="text" id="product" name="product" /> </div>
[ 0.049717240035533905, 0.024875644594430923, 0.3082006871700287, -0.35199829936027527, -0.11070858687162399, 0.42616596817970276, -0.4051535129547119, -0.15012553334236145, -0.08864330500364304, -0.45724359154701233, -0.5071517825126648, 0.18238086998462677, -0.07639934867620468, 0.31505548...
<div class="tableCell"> <input type="submit" class="button" value="Search" /> </div> </div> </div> <br/> <div id="myGrid"> @Html.Partial("_MyPage", Model) </div> } ``` The grid is implemented as a partial view like this: ``` <script type="text/javascript"> $(docum...
[ 0.14350268244743347, -0.28348612785339355, 0.33290770649909973, -0.24233871698379517, -0.08447062969207764, 0.2944343090057373, -0.017873317003250122, -0.3449676036834717, -0.020593611523509026, -0.9473786354064941, -0.1282358318567276, 0.4812279939651489, -0.3226984441280365, -0.116193972...
}); </script> @{ var grid = new WebGrid(canPage: true, rowsPerPage: Model.rowsPerPage, canSort: true, ajaxUpdateContainerId: "grid", ajaxUpdateCallback: "resetUI"); grid.Bind(Model.rows, rowCount: Model.TotalRecords, autoSortAndPage: false); @grid.GetHtml( tableStyle: "fancyTable", headerSt...
[ -0.20779213309288025, -0.3080892562866211, 0.6143519282341003, -0.030356505885720253, 0.11898268014192581, 0.262697696685791, 0.3585719168186188, -0.28509360551834106, -0.18443545699119568, -0.880651593208313, -0.2848396599292755, 0.42888790369033813, -0.2419348657131195, 0.132718667387962...
previousText: "Previous", htmlAttributes: new { id = "grid" }, columns: grid.Columns( grid.Column("OrderDate", "Order Date", format: @<text>@((item.OrderDate != null) && (item.OrderDate.ToString("MM/dd/yyyy") != "01/01/0001") ? item.OrderDate.ToString("MM/dd/yyyy") : "")</text>), ...
[ -0.5026147365570068, -0.16322273015975952, 0.9477624297142029, -0.1309109628200531, 0.16636820137500763, 0.5254508852958679, 0.1404220312833786, -0.384447306394577, -0.5176907181739807, -0.5936378836631775, -0.4478958547115326, 0.208858460187912, -0.12586192786693573, 0.23040688037872314, ...
grid.Column("Person", "Person"), grid.Column("Product", "Product"), grid.Column(format: (item) => Html.ActionLink("View", "Details", new { id = item.orderNumber })) ) ); } ``` When building the pagination and sort links, the WebGrid helper takes into account all **query stri...
[ -0.18554529547691345, -0.09124177694320679, 0.8175750970840454, 0.1178208440542221, -0.06431581825017929, -0.010474846698343754, 0.06198692321777344, -0.035916559398174286, -0.10138167440891266, -0.9097816944122314, -0.1857847422361374, 0.2597242593765259, -0.43597909808158875, 0.297726482...
been entered by the user in this form are not present in the query string, so they are not part of the pagination and sort links and when you click on one of those links the values are lost. This is by design. So one way to fix that is to replace your AjaxForm: ``` @using (Ajax.BeginForm("MyPage", null, new AjaxOptio...
[ -0.1193423718214035, -0.283735454082489, 0.5066166520118713, 0.06275182962417603, -0.287110835313797, 0.02972722426056862, 0.25606057047843933, 0.06143456697463989, -0.03746867924928665, -0.9530899524688721, -0.32306909561157227, 0.38293567299842834, -0.40477004647254944, -0.26950484514236...
UpdateTargetId = "myGrid" }, new { id = "filter" })) ``` Now, when the user wants to filter something and hits the Search submit button the values he entered in the search form will end up in the query string and when rendering the WebGrid helper will use them to generate its Sort and Page links and of course when yo...
[ 0.02844662219285965, -0.3697679340839386, 0.8845844268798828, -0.14772146940231323, -0.12273922562599182, -0.4692159593105316, -0.13341213762760162, -0.2511062026023865, -0.31253573298454285, -1.0435891151428223, -0.22166486084461212, 0.6720616817474365, -0.4998527467250824, -0.08931600302...
I am new to jQuery plugin creation and created a plugin for my project [Tumblr style tagging]. [I know there are so many plugins available but i want to create myself :D] here it goes ``` (function($) { $.fn.Tagger = function () { this.each(function() { //codes goes here ...
[ 0.20151856541633606, -0.1929982304573059, 0.34250661730766296, -0.039057809859514236, 0.0678330510854721, -0.24678508937358856, 0.29949626326560974, -0.2772265374660492, 0.12124805152416229, -0.6492010951042175, -0.15149231255054474, 0.6852779984474182, -0.41426095366477966, -0.05040840432...
something like this to create taggable input ``` $("#IdOfTheElement").Tagger(); ``` Now i created the UI and need to get the value of the UI. For example user types `meta` as `google` , `yahoo` ,`msn` .... so that i need to get the values as `google,yahoo,msn` . i want to know the method of doing this [not the co...
[ 0.0029647143092006445, 0.044245123863220215, 0.8413212895393372, -0.005397316068410873, -0.0481100007891655, -0.1680663824081421, 0.27305346727371216, -0.26519614458084106, -0.10462403297424316, -0.7320924997329712, 0.03468465059995651, 0.5582280158996582, -0.2198352962732315, 0.0410845950...
{ return this.each(function() { //codes goes here }); }; })(jQuery); ``` by returning the orignal selector match you are able to continue the daisy chain of commands. so if `$('#ID')` was a form field, then `$("#ID").Tagger().val();` would return the value
[ 0.2541346549987793, -0.4828614592552185, 0.5359291434288025, -0.1882535070180893, 0.17781482636928558, -0.3064558207988739, 0.32376113533973694, -0.5149300694465637, 0.1297181248664856, -0.34429261088371277, -0.2230832874774933, 0.7847483158111572, -0.39656680822372437, 0.2408720850944519,...
I have a website for dance academy where Users can register and add/drop dance classes. In the web page to drop a particular dance, for a particular user, the dropdown displays her registered dances. Now I want to delete one of the dances from the list. So I'll remove the row from the table and also from the dropdown...
[ 0.4033396542072296, 0.06564383208751678, 0.3737003207206726, 0.08848205208778381, 0.02842608466744423, -0.07028264552354813, 0.0819774866104126, -0.2463117390871048, -0.30287885665893555, -0.3374760150909424, 0.16386687755584717, 0.12798336148262024, -0.3388451337814331, 0.2461987733840942...
// Retrieve the username MembershipUser currentUser = Membership.GetUser(); var username = currentUser.UserName; // Retrive the userid of the curren user var dancerIdFromDB = from d in context.DANCER where d.UserName == username
[ -0.13425683975219727, -0.21365202963352203, 0.8595374822616577, -0.21416234970092773, 0.02655130624771118, 0.26359274983406067, 0.16126617789268494, -0.20952683687210083, -0.17647810280323029, -0.4603443443775177, 0.13555502891540527, 0.2664107382297516, -0.3637918531894684, 0.308776259422...
select d.UserId; Guid dancerId = new Guid(); var first = dancerIdFromDB.FirstOrDefault(); if (first != null) { dancerId = first; }
[ -0.4257623255252838, -0.727593183517456, 0.5482576489448547, -0.11601965129375458, -0.18561574816703796, 0.34452882409095764, 0.19879479706287384, -0.410235196352005, 0.02705766074359417, -1.025016188621521, -0.12439112365245819, 0.27119874954223633, -0.2334684580564499, 0.2381747812032699...
dances.DataSource = (from dd in context.DANCER_AND_DANCE where dd.UserId == dancerId select new
[ -0.15399694442749023, -0.23547235131263733, 0.7156712412834167, 0.2968085706233978, 0.013751424849033356, 0.017725633457303047, 0.18922071158885956, -0.5226820111274719, -0.4115539491176605, -0.7938235402107239, -0.12885473668575287, -0.02525206096470356, 0.060661617666482925, 0.3313672840...
{ Text = dd.DanceName,
[ 0.1644006073474884, 0.2147841900587082, 0.4097764492034912, 0.14983779191970825, 0.28611457347869873, 0.013023209758102894, 0.5133288502693176, 0.004583518952131271, -0.3039787709712982, -0.39402490854263306, -0.03598654270172119, 0.24552428722381592, 0.0534529909491539, 0.0721243470907211...
Value = dd.DanceId }).ToList(); dances.DataTextField = "Text"; dances.DataValueField = "Value"; dances.DataBind(); } protected void dropthedance(object o, EventArgs e) { String strDataValueField = dances.SelectedItem.Value;
[ 0.2948196828365326, -0.3690864145755768, 0.7041555643081665, 0.07743155211210251, 0.09597799181938171, 0.15265299379825592, 0.461026668548584, -0.6307060122489929, -0.34755638241767883, -0.23370669782161713, -0.3190547525882721, -0.03626159578561783, -0.28121522068977356, 0.248263314366340...
int danceIDFromDropDown = Convert.ToInt32(strDataValueField); var dancer_dance = from dd in context.DANCER_AND_DANCE where dd.DanceId == danceIDFromDropDown select dd; foreach (var dndd in dancer_dance) {
[ -0.17462411522865295, -0.20719948410987854, 0.6625511050224304, -0.16314883530139923, -0.197102889418602, 0.22059550881385803, 0.6263472437858582, -0.6549285054206848, -0.11195345222949982, -0.5410151481628418, -0.11370182037353516, 0.44508931040763855, -0.22608880698680878, 0.101576447486...
context.DANCER_AND_DANCE.DeleteOnSubmit(dndd); } try { context.SubmitChanges(); } catch (Exception ex) { Console.WriteLine(ex); }
[ -0.15521574020385742, -0.3132268488407135, 0.5049901008605957, -0.14851140975952148, 0.030081167817115784, 0.43834006786346436, 0.6467059850692749, -0.5769830346107483, -0.23046550154685974, -0.3225877583026886, -0.099460169672966, 0.2548445165157318, -0.18534740805625916, 0.11203622072935...
} ``` The problem is in the line: ``` String strDataValueField = dances.SelectedItem.Value; ``` The strDataValueField is always getting the minimum id from the list of dance item ids in the dropdown (which happens by default). I want this to hold the id of the dance selected by the user. The last on you specified...
[ 0.18550580739974976, -0.1859644204378128, 0.5260184407234192, -0.00882543995976448, -0.09603280574083328, -0.1202460452914238, 0.2933526933193207, -0.641048014163971, -0.26075246930122375, -0.3497677743434906, 0.01231373380869627, 0.3491285443305969, -0.36708179116249084, -0.01921976916491...
//codes goes here }); }; })(jQuery); ``` by returning the orignal selector match you are able to continue the daisy chain of commands. so if `$('#ID')` was a form field, then `$("#ID").Tagger().val();` would return the value
[ 0.2710379958152771, -0.4224112629890442, 0.4551375210285187, -0.1363753229379654, 0.22849547863006592, -0.28710904717445374, 0.3182341456413269, -0.44252315163612366, 0.10417591035366058, -0.3352259695529938, -0.2700367569923401, 0.7537062168121338, -0.40139323472976685, 0.2208174914121627...
Hi I want to send data to the server and then have the php file save it. But currently I can't get even a simple POST to work. This is the javascript and html part: This function is declared in the head: ``` function sendTableToServer(){ var xhttp; if (window.XMLHttpRequest){ xhttp=new XMLHttpRequest(...
[ -0.0967143326997757, 0.02436114475131035, 1.0884588956832886, -0.2306615561246872, -0.1362374871969223, -0.04774639382958412, 0.3390568196773529, -0.6090343594551086, 0.07581659406423569, -0.471586138010025, -0.23295901715755463, 0.40745124220848083, -0.5177212357521057, -0.042510319501161...
the php file ``` <?php if (isset($_POST["fsong"])){ echo 'trying'; $song = $_POST["fsong"]; echo $song; echo 'ok'; } ?> ``` When I click the button, nothing happens. If I use a `<form>` and a submit button, the php file is loaded by the browser, and I can access the input. However, I want to use a f...
[ 0.07339751720428467, 0.11153990775346756, 0.5431888103485107, -0.08346187323331833, -0.2605447471141815, -0.18002329766750336, 0.6958649754524231, -0.3726963996887207, -0.009455523453652859, -0.3090364336967468, -0.10238546878099442, 0.30401039123535156, -0.36622223258018494, -0.0934522673...
want to get data from the page, just create a form and submit it: ```js var form = document.createElement('form'); form.action = 'http://www.example.com/do-something'; form.method = 'post'; var song = document.createElement('input'); song.type = 'hidden'; song.name = 'song'; song.value = 'Song Name'; form.appendChild(...
[ 0.17443491518497467, 0.15429367125034332, 0.4707544147968292, 0.1248660683631897, 0.060989782214164734, 0.05917174741625786, 0.327597439289093, -0.43490487337112427, -0.049502182751894, -0.5049340128898621, -0.5395098328590393, 0.2249331921339035, -0.2584041953086853, -0.03963065892457962,...
I am wondering if there is a way to flatten a multidimensional array (i.e., of type `ndarray`) along given axes without making copies in NumPy. For example, I have an array of 2D images and I wish to flatten each to a vector. So, one easy way to do it is `numpy.array([im.flatten() for im in images])`, but that creates ...
[ 0.22995153069496155, -0.011018550954759121, 0.3989652693271637, -0.1299830675125122, -0.45375555753707886, 0.3400466740131378, -0.18136045336723328, -0.6401179432868958, -0.3788772523403168, -0.8069354891777039, -0.13659371435642242, 0.2898847460746765, -0.2865515947341919, 0.2694431841373...
[10, 11, 12, 13, 14], [15, 16, 17, 18, 19], [20, 21, 22, 23, 24]]) ``` Or `reshape` it: ``` >>> a = numpy.arange(27).reshape((3, 3, 3)) >>> b = a.reshape((9, 3)) >>> b[0] = 55 >>> a array([[[55, 55, 55], [ 3, 4, 5], [ 6, 7, 8]], [[ 9, 10, 11], [12, 13, 14],
[ 0.05456188693642616, 0.11473888158798218, 0.0807119682431221, -0.21886925399303436, -0.02599196322262287, 0.6619647741317749, 0.3079456388950348, -0.5364104509353638, -0.2034112811088562, -0.49331870675086975, -0.43761759996414185, 0.178136944770813, -0.1764431595802307, 0.2342574149370193...
[15, 16, 17]], [[18, 19, 20], [21, 22, 23], [24, 25, 26]]]) ``` Under most circumstances, these both return a view of the original array, rather than a copy.
[ 0.2650739252567291, 0.35146695375442505, 0.08197447657585144, -0.1359109878540039, 0.20423217117786407, 0.39612478017807007, -0.03180273622274399, -0.19034142792224884, -0.29759785532951355, -0.4780304729938507, -0.49564865231513977, 0.5139287114143372, -0.2243703305721283, 0.2167389839887...
Here is my code- ``` <?php $con = mysql_connect('db', 'table', 'p/w'); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("db", $con); $result = mysql_query("SELECT * FROM computers WHERE KEYWORDS='Computers,Desktops'"); echo "<table border='1' width='100%' >"; ...
[ 0.12554778158664703, 0.27674683928489685, 0.582656979560852, -0.3186040222644806, 0.18050582706928253, 0.2396547943353653, 0.42104923725128174, -0.675791323184967, -0.010114294476807117, -0.5649886131286621, -0.1465419977903366, 0.27177199721336365, -0.333135187625885, 0.30029454827308655,...
to display image from db stored as path here in one of the columns ``` echo "</tr>"; } echo "</table>"; mysql_close($con); ?> ``` can anyone help? thanks ``` <?php $con = mysql_connect('db', 'table', 'p/w'); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("db", $con); $result = mysql_q...
[ 0.298565536737442, 0.0410706028342247, 0.8624667525291443, -0.2625598907470703, -0.39921826124191284, 0.3822011649608612, 0.41063642501831055, -0.6051629185676575, 0.07901342213153839, -0.7412439584732056, -0.10433223098516464, 0.538730800151825, -0.39581188559532166, 0.3344498872756958, ...
echo "<td><img src='folder_name/".$row['image_name']."'></td>"; echo "</tr>"; } echo "</table>"; mysql_close($con); ?> ``` **folder\_name**=Name of the folder where image is saved **image\_name**=field name of the image in your table name computers
[ -0.06091681867837906, 0.09059993922710419, 0.2949669361114502, -0.2687126398086548, -0.022875679656863213, -0.06565852463245392, 0.19922934472560883, -0.6288372874259949, -0.22052785754203796, -0.6284717917442322, -0.24425947666168213, 0.5198485255241394, -0.49681156873703003, 0.1175444722...
Assume that I have a text file separated by colons. I understand how to display the entire text file or any specific column using `awk`. However, what I want to do is to get the `awk` output and then display it by adding my own text using a shell script? For example, assume that my text file is: ``` England:London:GMT...
[ 0.11670606583356857, 0.11012490093708038, 0.599953830242157, -0.013906043022871017, -0.0012768954038619995, 0.3891165554523468, 0.2516860067844391, 0.440738707780838, -0.08702720701694489, -0.7121899127960205, -0.4543619453907013, 0.22170479595661163, -0.5830819010734558, 0.023832984268665...
|awk -F: ' ...> {printf "COUNTRY: %s\nCAPITOL: %s\nTIMEZONE: %s\n\n",$1,$2,$3}' COUNTRY: England CAPITOL: London TIMEZONE: GMT COUNTRY: USA CAPITOL: Washington TIMEZONE: EST COUNTRY: France CAPITOL: Paris TIMEZONE: GMT ```
[ -0.20378562808036804, 0.05271172523498535, 0.9657257795333862, 0.17159530520439148, 0.23222023248672485, 0.3674953281879425, 0.3187714219093323, 0.7645193934440613, -0.5270548462867737, -0.5884734988212585, -0.4835365414619446, -0.41707396507263184, -0.3841409385204315, 0.34121090173721313...
I have the following query that works well. ``` SELECT DISTINCT city,region1,region2 from static_geo_world where country='AU' AND (city LIKE '%geel%' OR region1 LIKE '%geel%' OR region2 LIKE '%geel%' OR region3 LIKE '%geel%' OR zip LIKE 'geel%') ORDER BY city; ``` I need to also extract a column named 'id' but thi...
[ -0.050494205206632614, 0.02578543685376644, 0.5544196963310242, 0.3897930383682251, -0.03770535811781883, 0.06745829433202744, -0.046457577496767044, -0.014296870678663254, -0.2548587918281555, -0.8924842476844788, -0.12392117083072662, -0.21095915138721466, -0.18869468569755554, 0.5406790...
the follow ``` ID Country zip region1 region2 region3 City 1 AU 3323 geelong victoria Geelong 2 AU 3324 geelong victoria Geelong 3 AU 3325 Geelong North victoria Geelong ``` I want to get the distinct set
[ 0.08343467116355896, -0.061876170337200165, 0.4103339910507202, -0.1971900463104248, -0.1333957314491272, 0.19257503747940063, 0.5518872737884521, -0.1518736034631729, -0.3359213173389435, -0.3143733739852905, -0.29060158133506775, 0.21648406982421875, -0.3880155682563782, -0.1653814315795...
of city, region1 and region2 as there can be duplicates on different post codes. This the current query does. But I also want to get the ID as this is what I will put into the DB for the selected record as a reference. Results Wanted: I wanted to be able to get the unique 'city,region1,region2 being ``` geelong gee...
[ 0.12054097652435303, -0.022481080144643784, 0.6215190291404724, -0.2526850700378418, -0.31117215752601624, 0.2809700667858124, 0.6085290908813477, -0.2228298932313919, -0.6906123757362366, -0.34059906005859375, -0.09174463152885437, 0.07866960763931274, -0.4700551927089691, 0.3812381923198...
geelong geelong north victoria ``` Hope this explains it better. Just need to include the returned Distinct records ID as well. You cannot do what you seem to be asking for: Input data: ``` ID City Region1 Region2 --- ------ -------- -------- 1 geel1 geel2 geel3 2 geel1 geel2 geel3 3 geel4 geel5 ...
[ -0.23845872282981873, -0.1998578906059265, 0.509494960308075, -0.4742667078971863, -0.17701192200183868, 0.34065476059913635, 0.4157548248767853, -0.015900403261184692, -0.9789447784423828, -0.23731236159801483, -0.06445983797311783, 0.261147141456604, -0.4047572910785675, 0.44041556119918...
duplicate rows, there is no longer a unique ID for a row. You state > How can I get the same UNIQUE set of records as above but also get the 'id' for each record But for the first returned row there are three possible IDs and it makes no sense to ask for "the 'id' for each record". EDIT If you just want, say, the ...
[ 0.006277238484472036, -0.05341239646077156, 0.3376373052597046, 0.5154396891593933, 0.2638934552669525, 0.3956919312477112, -0.3415337800979614, 0.12620534002780914, -0.5506116151809692, -0.8054074645042419, 0.07632209360599518, 0.04201020672917366, -0.34159526228904724, 0.5502606630325317...
I'm just wondering how it's possible to do type checking in pascal? I have been searching for hours now but I haven't been able to find anything useful. Example: ``` var number: Integer; begin write('Enter a number: '); read(number); if {How am I supposed to check if 'number' is an Integer here?} then wri...
[ 0.2222668081521988, 0.12185923010110855, 0.18063047528266907, -0.3449086546897888, -0.12520833313465118, -0.09050241112709045, 0.5469550490379333, 0.032887134701013565, -0.1366976648569107, -0.711796224117279, -0.0782119557261467, 0.7978588938713074, -0.3336348533630371, 0.1133045107126236...
the result of the last IO operation writeln('integer successfully read:',number) else writeln('invalid input'); ``` Note: the typical answer is often "just read a string and do the conversion yourself", however it is difficult to do that nicely without making assumptions about the terminal type. For clear and...
[ -0.03487982973456383, 0.009032005444169044, 0.3163434863090515, -0.20815996825695038, -0.12003254145383835, -0.1815701276063919, 0.541037380695343, -0.33261534571647644, -0.015955425798892975, -0.44835570454597473, -0.3602560758590698, 0.8506408929824829, -0.08420193940401077, -0.180935874...
Days ago, my teacher told me it was possible to check if a given point is inside a given rectangle using only bit operators. Is it true? If so, how can I do that? This might not answer your question but what you are looking for could be this. [These are the tricks](http://graphics.stanford.edu/~seander/bithacks.html...
[ 0.24615578353405, 0.12544652819633484, 0.024429727345705032, 0.08223553746938705, -0.061554916203022, -0.04046371951699257, 0.007934629917144775, 0.08026385307312012, -0.4391685426235199, -0.6293646693229675, 0.22351810336112976, 0.22772306203842163, -0.4178125560283661, 0.0619641207158565...
a word has a byte between m and n** > > > When m < n, this technique tests if a word x contains an unsigned byte value, such that m < value < n. It uses 7 arithmetic/logical operations when n and m are constant. > Note: Bytes that equal n can be reported by likelyhasbetween as false positives, so this should be chec...
[ -0.024377448484301567, -0.14442946016788483, 0.08474556356668472, -0.18878714740276337, 0.2207518219947815, 0.1783309429883957, 0.3207778036594391, -0.6745362281799316, 0.24960874021053314, -0.7859211564064026, 0.04346902668476105, 0.5323183536529541, -0.0745072215795517, -0.09828732162714...
that takes one more operation (8 total for constant m and n) but provides the exact answer is: > > > > ``` > #define hasbetween(x,m,n) \ > ((~0UL/255*(127+(n))-((x)&~0UL/255*127)&~(x)&((x)&~0UL/255*127)+~0UL/255*(127-(m)))&~0UL/255*128) > > ```
[ -0.022656014189124107, -0.009759503416717052, 0.4721727669239044, -0.43126142024993896, 0.195968359708786, -0.0836062803864479, 0.0845666229724884, -0.5032292604446411, -0.1536058932542801, -0.6374930739402771, -0.13946712017059326, 0.5256885886192322, -0.07783250510692596, 0.0811330676078...
I'd like to create a simple site on NodeJS. For example, it has two files (app.js - main application file) and router,js (a url file). I'd like to know - if it possibke for anyone just to access mydomain.com/router.js to get the source code of my application? I'm asking 'cause for example in PHP you cant just access to...
[ 0.5040494203567505, 0.1606544852256775, 0.2739928662776947, 0.23964594304561615, -0.14662030339241028, -0.16895443201065063, 0.20777785778045654, 0.3116174340248108, -0.3167159855365753, -0.7134990692138672, 0.18022222816944122, 0.3163689970970154, -0.274276465177536, 0.3378036320209503, ...
for could be this. [These are the tricks](http://graphics.stanford.edu/~seander/bithacks.html) compiled by Sean Eron Anderson and he even put a bounty of $10 for those who can find a single bug. The closest thing I found here is a macro that finds if any integer *X* has a *word* which is [between *M* and *N*](http:/...
[ 0.1765938401222229, -0.05779057368636131, -0.1363593339920044, -0.2132948487997055, -0.04960571974515915, 0.2967512905597687, 0.34050121903419495, -0.27222976088523865, -0.20067638158798218, -0.5871277451515198, 0.15533097088336945, 0.7035477757453918, -0.5057028532028198, -0.1503787338733...
constant. > Note: Bytes that equal n can be reported by likelyhasbetween as false positives, so this should be checked by character if a certain result is needed. > > > Requirements: x>=0; 0<=m<=127; 0<=n<=128 > > > > ``` > #define likelyhasbetween(x,m,n) \ > ((((x)-~0UL/255*(n))&~(x)&((x)&~0UL/255*127)+~0UL/255*...
[ 0.13522811233997345, -0.08864568918943405, 0.20940588414669037, -0.13652795553207397, 0.33785468339920044, 0.01830528862774372, -0.008923274464905262, -0.7061340808868408, 0.29758989810943604, -0.7530398368835449, 0.15463586151599884, 0.6841897368431091, -0.27840903401374817, -0.1680203378...
I have a photo gallery I am working on building, and I have a previous and next button that show and hide and change opacity depending on hover and such. Right now I have a wrapper around the image itself, then I have two divs inside at 50% width, left for previous, and right for next. I want to instead do this by dete...
[ 0.5027831792831421, -0.22998443245887756, 0.9225118160247803, -0.23586106300354004, -0.031608182936906815, 0.2997679114341736, 0.04200845584273338, -0.44026270508766174, 0.12955652177333832, -0.8542672991752625, 0.10030137002468109, 0.6101159453392029, -0.14695556461811066, 0.0304775796830...
0.5); } ); ``` Using mouse location instead of `.photo-previous` and `.photo-next`. Use the `mousemove` event. ``` $("#photoContainer").on('mousemove', function(e) { var mouseSide; if ((e.pageX - this.offsetLeft) < $(this).width() / 2) { mouseSide = 'L'; } else { mouseSide = 'R'; } })...
[ -0.10346316546201706, -0.2970215678215027, 0.6667909622192383, -0.3360804319381714, 0.1851932853460312, 0.08917979151010513, 0.0839395672082901, -0.5424113869667053, -0.34825462102890015, -0.7991344928741455, -0.03988306224346161, 0.7026991844177246, -0.09624132513999939, 0.111504100263118...
I have a gridview with Template field. I add a checkbox in templatefield . Autopostback is true for checkbox . I fill grid in Load-page and creted column dynamic . ``` if (!IsPostBack) { FillGrid(); } ``` I use update panel ``` <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <Content...
[ -0.07619352638721466, -0.1864217072725296, 0.8657699227333069, -0.1539253443479538, -0.21938231587409973, 0.16668760776519775, 0.10657180845737457, -0.5679374933242798, -0.13342848420143127, -0.9906883239746094, -0.08251940459012985, 0.5178612470626831, -0.11748561263084412, -0.05372089147...