text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
should be sufficient.
[ 0.23748455941677094, 0.24897876381874084, 0.011987430043518543, 0.12081024795770645, 0.1476885825395584, 0.11640731990337372, 0.19690686464309692, -0.09771347790956497, 0.005906839855015278, -0.33506447076797485, 0.03354261443018913, 0.528933048248291, -0.15237951278686523, 0.0325463004410...
How to decide `heuristic cost` for the `cities connected with roads` problem. The graph has non negative weighted unidirectional edges and no edge connects any vertex to itself. In this graph, there is only one edge between any two vertices. My aim is to get the shortest distance between `single source` and `single des...
[ -0.010223343037068844, 0.05337267369031906, 0.4947512447834015, 0.41387853026390076, -0.07560184597969055, 0.35444536805152893, -0.2775160074234009, -0.20732738077640533, -0.16353633999824524, -1.0307029485702515, -0.23913460969924927, 0.39988067746162415, -0.2517808973789215, 0.0728682577...
**path cost**, the calculated shortest distance from the start node to node `x`. Let `h(x)` be the **heuristic cost**, an estimate of the distance to the goal from node `x`. Because [A\*](http://en.wikipedia.org/wiki/A%2a_search_algorithm) is a **directed best-first** search algorithm. At each step it moves to the no...
[ -0.25966906547546387, 0.007562618236988783, 0.28035739064216614, -0.18412767350673676, 0.0632396712899208, -0.02635345235466957, 0.14472413063049316, -0.1581781953573227, -0.002184986835345626, -1.00491201877594, -0.4799196124076843, 0.41209676861763, -0.3514642119407654, -0.11260490864515...
your nodes are organized on a Euclidian plane, and your costs correspond to the L2 norm distance between the nodes, then the [Euclidian distance](http://en.wikipedia.org/wiki/Euclidean_distance) or L2 norm between the current node `x` and the goal node is guaranteed to be an [admissible heuristic](http://en.wikipedia.o...
[ -0.1853153258562088, -0.29375848174095154, 0.5681479573249817, 0.23886756598949432, 0.24242238700389862, 0.016212882474064827, 0.010916275903582573, -0.10125679522752762, -0.14426575601100922, -0.8176226019859314, -0.3357726037502289, 0.36752423644065857, -0.38042357563972473, -0.102479964...
which means we simply take the smallest possible step. This is certainly an [admissible heuristic](http://en.wikipedia.org/wiki/Admissible_heuristic) because the distance between any two nodes cannot be less than `0` (if we're assuming non-negative edge costs).
[ -0.05152824893593788, -0.19824446737766266, 0.37690597772598267, 0.03270401805639267, 0.36811670660972595, -0.2124035656452179, 0.175108402967453, -0.1961662620306015, 0.06383601576089859, -0.6321614980697632, 0.0867239236831665, 0.2719076871871948, 0.018945030868053436, 0.176776722073555,...
Hi Im running linux angstrom distribution on a remote device, I added .bash\_profile and .bashrc to /home/root since they didn't exist and I wrote this in them ``` PATH=/opt/qt-arm/lib:$PATH export PATH ``` But now when I login to this device and type $PATH I don't see the newly added path...Any Ideas?? > I added ...
[ -0.13749338686466217, 0.05618996545672417, 0.4764919579029083, -0.42339515686035156, -0.008571370504796505, -0.038669902831315994, 0.2569772005081177, 0.06400838494300842, -0.15079347789287567, -0.7905388474464417, -0.1577858179807663, 0.5759365558624268, -0.4037751257419586, 0.31341180205...
in `/etc/passwd`.
[ 0.09514518082141876, 0.20826973021030426, 0.1994297355413437, -0.25669625401496887, -0.1580294370651245, -0.04031296819448471, 0.17238974571228027, 0.2641714811325073, 0.03400868922472, -0.42941999435424805, -0.7791101932525635, 0.30001720786094666, -0.1436104029417038, -0.0648040175437927...
I am currently working on Project Euler for fun, and use Haskell for practicing. However, I encountered a problem, and I cannot seem to produce a smaller example, so here are the codes (for project euler 232): ``` buildNum (x, y) = multNum x y 1 [] where multNum num mul exp s = if (num > 10 ^ 100) then s else multNu...
[ 0.1035190299153328, 0.03500610217452049, 0.20843395590782166, -0.09225061535835266, -0.2130196988582611, 0.3479699194431305, 0.2858434021472931, -0.19023871421813965, -0.21841341257095337, -0.847031831741333, -0.17207597196102142, 0.11628270894289017, -0.06689022481441498, 0.10591536760330...
= num:s top = next `mod` 10 nexp = exp * 10 nNum = num + nexp * top sumBuild (x, y) = (head (buildNum (x, y))) * length (buildNum (x, y)) ``` Please ignore bad style here:) If I load this and run sumBuild(7, 5) here, I would get a exception: ``` *** Exception: Prelud...
[ 0.028275679796934128, 0.1429714411497116, 0.43131232261657715, -0.49856024980545044, -0.05281456187367439, -0.058559149503707886, 0.6211400628089905, -0.5141723155975342, -0.2346666157245636, -0.4796757102012634, -0.3238438069820404, 0.6831330060958862, 0.007614980451762676, 0.091120183467...
sumBuild to: ``` sumBuild (x, y) = head (buildNum (x, y)) ``` or ``` sumBuild (x, y) = length (buildNum (x, y)) ``` then it runs fine. This is really confusing for me, since there is no side effect and two runs produce different results (at least it seems to be such a case). What is the problem here? If someone...
[ 0.16835184395313263, 0.22146962583065033, 0.5080867409706116, -0.40463948249816895, -0.40171921253204346, -0.36164557933807373, 0.49760740995407104, -0.45560213923454285, 0.08965037763118744, -0.4434243142604828, -0.07100804895162582, 0.6187719106674194, -0.24430133402347565, 0.06617476046...
to avoid such bugs.
[ 0.26220545172691345, 0.3759077787399292, -0.3869883716106415, 0.21076899766921997, 0.5239112377166748, 0.034808408468961716, 0.384304940700531, 0.20102928578853607, -0.16326159238815308, -0.2635365128517151, -0.07970596849918365, 0.28082600235939026, -0.5372923016548157, -0.247555702924728...
Why should we include context object reference in the constructor while creating the Intent Object?? Example: ``` Intent i = new Intent(context object,Target.class); ``` This is the hint: ``` > :t sumBuild sumBuild :: (Int, Int) -> Int > let a = 7 :: Int > a > 10^100 True ``` As a suggestion try always explicitl...
[ 0.35478755831718445, 0.24438686668872833, 0.6146470308303833, -0.3109762966632843, -0.033078040927648544, -0.18892429769039154, 0.4429245591163635, -0.5427923798561096, 0.19607815146446228, -0.4305391311645508, -0.07954339683055878, 0.6026396155357361, -0.21253499388694763, -0.131146460771...
I'm trying to get a very simple Spring @mvc app to work and I'm running into what appears to be a mapping error. From web.xml: ``` <servlet> <servlet-name>works</servlet-name> <servlet-class> org.springframework.web.servlet.DispatcherServlet </servlet-class> <load-on-startup>1</load-on-startup...
[ 0.031658679246902466, -0.12514162063598633, 0.42979755997657776, -0.01193476002663374, -0.032893531024456024, 0.3513307571411133, 0.2285270243883133, -0.5866782665252686, -0.2468601018190384, -0.5647770166397095, -0.2522653043270111, 0.28330397605895996, -0.4767897129058838, 0.056260943412...
model.addAttribute("returnString","TESTController handled the request") ; return "SingleStringView"; } ``` works-servlet.xml: ``` <context:component-scan base-package="com.ami.dbconnect.controller" /> <bean class="org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping"/> ...
[ -0.24788935482501984, -0.09421101212501526, 1.0001016855239868, 0.19171905517578125, 0.4611017405986786, 0.38236722350120544, 0.4325008988380432, -0.3241370618343353, -0.2719205617904663, -0.5469497442245483, -0.29945752024650574, 0.7907517552375793, -0.45153942704200745, -0.24174599349498...
invoke the controller with the url: localhost:8080/works/test In tomcat7-stdout I see: 1106 [pool-2-thread-1] DEBUG org.springframework.web.servlet.DispatcherServlet - Published WebApplicationContext of servlet 'works' as ServletContext attribute with name [org.springframework.web.servlet.FrameworkServlet.CONTEXT.wor...
[ -0.07888542860746384, -0.04697981849312782, 0.7363051772117615, 0.16355811059474945, -0.15919183194637299, -0.0789300799369812, 0.38260698318481445, -0.5820022225379944, -0.2872846722602844, -0.4641190767288208, -0.24657006561756134, 0.4107167720794678, -0.22380048036575317, 0.155314847826...
or advice, beeky You need to move `@RequestMapping` annotation to your `serviceRequest` method. `@RequestMapping` at class level may be used to specify common path prefix for all `@RequestMapping`-annotated of that class, but it doesn't take any effect without annotations at method level.
[ 0.2979893982410431, -0.1333298534154892, 0.19220241904258728, 0.2090962827205658, 0.08278883248567581, -0.2450287789106369, 0.49790361523628235, 0.009788468480110168, -0.02730739675462246, -0.6274677515029907, 0.13577578961849213, 0.41432514786720276, -0.3132825791835785, 0.017829764634370...
I was wondering if any one knows how memory is handled with JS arrays if you have an array that starts with a high value. For example, if you have: ``` array[5000] = 1; ``` As the first value in the array, everything before 5000 simply does not exist, will the amount of memory assigned to the array cater for the u...
[ 0.234259232878685, 0.2485629916191101, 0.15788814425468445, -0.005674262065440416, -0.05977340415120125, 0.37150654196739197, 0.05711881443858147, -0.17484769225120544, -0.3389035761356354, -0.4598052501678467, 0.1557130515575409, 0.5006589889526367, -0.14148743450641632, 0.075510330498218...
:) When assigning a value to the `5000`th key, not the whole array is populated: ``` var array = []; // Create array array[5000] = 1; '1' in array; // false: The key does not exists Object.keys(array); // 5000 (it's the only key) ``` If you want to blow your new browser with arrays, populate a typed array:...
[ 0.12268117070198059, 0.27932196855545044, 0.7148967385292053, -0.22267776727676392, 0.008242995478212833, 0.08910002559423447, 0.2919297218322754, -0.5990579724311829, -0.13817282021045685, -0.8116503357887268, -0.16374807059764862, 0.8667893409729004, -0.3758726716041565, -0.0674049407243...
the page. PS. `6e9 === 6000000000`
[ 0.06104090437293053, 0.4077616035938263, 0.49769651889801025, 0.22694338858127594, 0.03790664300322533, -0.05994885414838791, 0.3949141502380371, 0.32680103182792664, -0.38970229029655457, -0.9321142435073853, -0.26855263113975525, -0.06986184418201447, -0.06956232339143753, 0.518292844295...
i am pretty ok with basic reg-ex. but this line of code used to make the thousand separation in large numbers exceeds my knowledge and googling it quite a bit did also not satisfy my curiosity. can one of u please take a minute to explain to me the following line of code? ``` someString.replaceAll("(\\G-?\\d{1,3})(?=(...
[ 0.2733781337738037, 0.24822475016117096, 0.4550275206565857, -0.0005279529723338783, 0.12133511900901794, -0.14397898316383362, 0.24866895377635956, -0.254296213388443, -0.011009261012077332, -0.3366650938987732, 0.027304816991090775, 0.805458664894104, -0.21096915006637573, -0.02679118700...
See this [explanation](http://www.regular-expressions.info/brackets.html) about `(?:...)` notation. It's called non-capturing group and means you don't need to reference this group after the match. `"(\\G-?\\d{1,3})"` is the part that should actually match (but only if the above-described conditions are met). Edit: I...
[ -0.5084682703018188, -0.04288140684366226, 0.3044097125530243, -0.19350653886795044, -0.2590995728969574, -0.08522101491689682, 0.10425234586000443, -0.4140026569366455, -0.06705064326524734, -0.2572287619113922, -0.21938665211200714, 0.2796877920627594, -0.5244459509849548, -0.29290825128...
that they're not followed by a non-digit, the engine will immediately give up instead of stepping one 3-digit group back.
[ -0.03490755707025528, -0.07801397889852524, 0.41319599747657776, 0.1954202651977539, -0.08281708508729935, 0.03822691738605499, 0.3326732814311981, -0.541154146194458, 0.021952280774712563, -0.23373274505138397, -0.2924061417579651, 0.31433790922164917, -0.1220518946647644, 0.0094079896807...
I'm looking for a Java/Scala library that can take an user query and a text and returns if there was a matching or not. I'm processing a stream of information, ie: Twitter Stream, and can't afford to use a batching process, I need to evaluate each tweet in realtime, instead of index it through Lucene RAMDisk and query...
[ 0.4212106168270111, -0.12308219075202942, 0.2342374622821808, 0.021633049473166466, -0.2862635552883148, 0.031873296946287155, 0.13473735749721527, -0.13761931657791138, 0.029338359832763672, -0.8147488236427307, 0.2114357054233551, 0.41360628604888916, -0.35329437255859375, 0.040530841797...
# => true TextQuery.new("-test").match?("some string of text") # => true TextQuery.new("NOT test").match?("some string of text") # => true TextQuery.new("a AND b").match?("b a") # => true TextQuery.new("a AND b").match?("a c") # => false q = TextQuery....
[ 0.22434288263320923, 0.08301471918821335, 0.12640196084976196, -0.11066578328609467, -0.3307124078273773, 0.09678932279348373, 0.4647332429885864, -0.2968989908695221, -0.008351155556738377, -0.235062375664711, -0.3168712854385376, 0.7520950436592102, -0.22759169340133667, -0.2454363256692...
NOT (c OR d))") q.match?("d a b") # => false q.match?("b")
[ 0.2043786197900772, 0.055192138999700546, 0.03058542124927044, -0.12061655521392822, 0.18143826723098755, 0.00422487361356616, 0.4937102496623993, -0.4920004904270172, 0.04869012534618378, -0.0787535235285759, -0.516914427280426, 0.7440195679664612, -0.43955233693122864, 0.1648061871528625...
# => false q.match?("a b cdefg") # => true TextQuery.new("a~").match?("adf") # => true TextQuery.new("~a").match?("dfa")
[ 0.0623861700296402, -0.12506920099258423, 0.24379661679267883, -0.32113808393478394, -0.30411607027053833, 0.2432219535112381, 0.3151935935020447, -0.36012354493141174, 0.15134969353675842, -0.5221803784370422, -0.37492886185646057, 0.6169424057006836, -0.28169572353363037, -0.087515950202...
# => true TextQuery.new("~a~").match?("daf") # => true TextQuery.new("2~a~1").match?("edaf") # => true TextQuery.new("2~a~2").match?("edaf") # => false TextQuery.new("a", :ignorecase
[ -0.02041631191968918, -0.15478956699371338, 0.3788616955280304, -0.14520661532878876, -0.213456928730011, 0.0708339586853981, 0.3049984276294708, -0.2828109860420227, 0.027344482019543648, -0.4899437427520752, -0.4131554663181305, 0.9390557408332825, -0.35907110571861267, -0.38200464844703...
=> true).match?("A b cD") # => true ``` Once it was implemented in Ruby it's not suitable for my platform, also I can't use JRuby just for this point on our solution: I found a similar question but couldn't get answer from it: [Boolean Query / Expression to a Concrete syntax tree](https://stackoverflow.com/question...
[ 0.016639137640595436, 0.07180831581354141, 0.3769490718841553, -0.0342009998857975, -0.26397570967674255, -0.32053542137145996, 0.49224618077278137, -0.4473614990711212, 0.061943840235471725, -0.15666647255420685, -0.1902220994234085, 0.6780270338058472, -0.5284423232078552, -0.40456148982...
reference this group after the match. `"(\\G-?\\d{1,3})"` is the part that should actually match (but only if the above-described conditions are met). Edit: I think `+` must be a special character, otherwise it's just a plus. If it's a special character (and quick search suggests that [it is in Java, too](http://java...
[ -0.4150308072566986, 0.03286910057067871, 0.2688710391521454, -0.11553402245044708, -0.21659138798713684, -0.032970573753118515, 0.19174544513225555, -0.4737035632133484, 0.0010331968078389764, -0.32719123363494873, -0.1969078779220581, 0.33202552795410156, -0.4879302382469177, -0.28127226...
one 3-digit group back.
[ -0.4441013038158417, -0.046679265797138214, -0.032347194850444794, 0.19803865253925323, -0.38961097598075867, 0.03861696645617485, -0.09965734928846359, -0.07271603494882584, -0.2543577253818512, -0.2576962113380432, 0.10889584571123123, 0.14281971752643585, -0.3058280050754547, -0.1433023...
I have two CSS rules following each other: ``` .some td:first-child:before { content:url('path/to/image.png')" " ; } .some .other:before { content:url('path/to/image2.png')" " ; } ``` Here's the HTML snippet: ``` <table class="some"> <tr> <td class="other">Text goes here</td> <td>Some more text.</td...
[ 0.04856302961707115, 0.04658883810043335, 0.28834572434425354, -0.2203124612569809, -0.14031082391738892, -0.20833739638328552, 0.2366429567337036, -0.10603230446577072, -0.22122842073440552, -0.8028453588485718, -0.02108384482562542, 0.18998189270496368, -0.20339204370975494, 0.0451276749...
straight, after [some](http://www.w3.org/TR/CSS2/cascade.html#specificity) [reading](http://coding.smashingmagazine.com/2007/07/27/css-specificity-things-you-should-know/), this is the specificity: * Id: **100** * classes: **10** * pseudo-*classes*: **10** * pseudo-*elements*: **1** * elements: **1** So that makes th...
[ 0.24899764358997345, 0.04546741023659706, 0.048039451241493225, 0.034189071506261826, -0.29316505789756775, -0.09478699415922165, 0.25128158926963806, -0.5088708996772766, -0.3022364377975464, -0.1960417926311493, -0.1641099900007248, -0.09124008566141129, -0.23873835802078247, 0.095793016...
I'm getting confused working with character string arrays. I'm trying to fill 2 arrays in a for loop. Within each array, all elements are the same. To conserve memory, for `array_person_name` I attempt to simply copy the pointer to the string stored by `person_name`. For `array_param`, the string that it stores the p...
[ 0.15612085163593292, 0.08553994446992874, -0.09834843873977661, -0.3261720836162567, -0.09014827758073807, 0.3037230372428894, 0.34833693504333496, -0.43483150005340576, -0.31223562359809875, -0.4825091063976288, -0.03411466255784035, 0.33866381645202637, -0.3652540445327759, 0.06792271882...
use malloc to allocate memory. Since my OS is 64 bit (Linux x86-64), I allocate 8 bytes for each of `arraysize` pointers. Although not shown, I free these two arrays at the end of the program. ``` int kk, arraysize; char person_name[101] = ""; char * array_person_name; char * array_param; ... strncpy(person_name, "J...
[ -0.04640529304742813, 0.19157756865024567, 0.21108703315258026, -0.20004381239414215, 0.11723711341619492, 0.5482653975486755, 0.20998071134090424, -0.6751775741577148, -0.3242935240268707, -0.495429128408432, -0.31035006046295166, 0.46917596459388733, -0.09670766443014145, -0.189567103981...
printing to screen */ printf("Here is array_person_name[0]: %s\n", array_person_name[0]); printf("here is array_param[0]: %s\n", array_param[0]); ``` The compiler returns the warnings: `warning: assignment makes integer from pointer without a cast` on the two lines inside the for loop. Any idea what I'm doing wrong? ...
[ 0.14111889898777008, 0.2061157077550888, 0.49345991015434265, -0.3518920838832855, 0.06534161418676376, 0.4005528688430786, 0.1322833001613617, -0.25232601165771484, -0.5508773922920227, -0.6237662434577942, -0.10534963011741638, 0.543199896812439, -0.5964624285697937, -0.12980231642723083...
I have a function (frequency) which that counts how many times each distinct value in a list occurs in that list. For example, ``` frequency "ababca" ``` should return: ``` [(3, 'a'), (2, 'b'), (1, 'c')]. ``` This works fine but now I need to sort the list using the first element within the list of the list usin...
[ -0.1721598207950592, 0.006562554743140936, 0.49213239550590515, -0.04676206409931183, -0.1913978010416031, 0.01942799985408783, 0.07235924899578094, -0.3404381573200226, -0.312513142824173, -0.47195425629615784, -0.10010270774364471, 0.6609681844711304, -0.4780099093914032, -0.009976605884...
Data.List (sortBy) results xs = sortBy (compare `on` fst) (frequency xs) -- or, if you prefer results xs = sort (frequency xs) ``` Links to documentation for [`on`](http://www.haskell.org/ghc/docs/latest/html/libraries/base/Data-Function.html#v%3aon), [`sortBy`](http://www.haskell.org/ghc/docs/latest/html/libraries...
[ -0.2138424515724182, -0.06559295207262039, 0.3684205114841461, -0.0720561295747757, -0.4020078182220459, 0.1190134659409523, -0.029675982892513275, -0.5496018528938293, -0.12796764075756073, -0.4289182126522064, -0.49207064509391785, 0.013718699105083942, -0.4562933146953583, -0.0519491955...
I'm trying to build s-expression objects using `boost::proto` with the following terminals: ``` typedef proto::terminal< const char* >::type string_term_t; typedef proto::terminal< uint32_t >::type uint32_term_t; typedef proto::terminal< float >::type float_term_t; ``` and using it like: ```...
[ 0.027538128197193146, 0.12062762677669525, 0.7489930391311646, -0.10479023307561874, 0.032131344079971313, 0.34992125630378723, 0.3955184519290924, -0.3786039650440216, 0.12678225338459015, -0.6923282146453857, -0.23299089074134827, 0.6595858335494995, -0.2912519872188568, -0.0557861328125...
boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::term<const char*>, 0l>::expr(const boost::proto::exprns_::expr<boost::proto::tag::terminal, boost::proto::argsns_::term<const char*>, 0l>&) Test.cpp:18:33: error: unable to deduce ‘auto’ from ‘<expression error>’ Test.cpp:18:73: error: expe...
[ 0.18876603245735168, 0.1330072581768036, 0.41173672676086426, -0.3009083867073059, 0.2398628443479538, 0.2399711310863495, 0.59389728307724, -0.2650247812271118, -0.029329881072044373, -0.2955377995967865, -0.23775073885917664, 1.0037224292755127, -0.32181650400161743, -0.22982755303382874...
return 0; } ``` In particular I find suspect the usage of the "bare" commas in the definition of v; I don't know if it is expected to be a new feature of C++11 or boost magic, but I won't expect it to work at least as is. **ADD** After a little bit of playing, we ended with discovering that the comma operator is a...
[ 0.0774109736084938, -0.06065508723258972, 0.08441038429737091, -0.28575700521469116, -0.022804321721196175, 0.24316556751728058, 0.2213568240404129, -0.37897196412086487, -0.10742384195327759, -0.5406432151794434, -0.21533513069152832, 0.7699697613716125, -0.2668010890483856, -0.0184629727...
string_term_t({"some"}))); proto::display_expr(v); } ``` (written for the future readers; the `()` enclosing `{ "foo" }` or whatver can be removed).
[ -0.11452323943376541, -0.3104904294013977, 0.7136650681495667, -0.6059407591819763, 0.17641106247901917, -0.15281838178634644, 0.37132036685943604, -0.057717215269804, 0.19228781759738922, -0.296671986579895, -0.7766697406768799, 0.8424924612045288, -0.43708062171936035, 0.2200542688369751...
I'm writing the spec for controller: ``` it 'should call the method that performs the movies search' do movie = Movie.new movie.should_receive(:search_similar) get :find_similar, {:id => '1'} end ``` and my controller looks like: ``` def find_similar @movies = Movie.find(params[:id]).search_similar end ``` ...
[ 0.20631267130374908, 0.016891930252313614, 0.8240193724632263, 0.011482993140816689, 0.050140123814344406, -0.32605627179145813, -0.07250173389911652, -0.6468133926391602, -0.3922002613544464, -0.49164965748786926, -0.007644462399184704, 0.6709210276603699, -0.17244040966033936, 0.38141709...
i invoke the Class (Movie) method and i don't see any way to connect "find\_similar" with object, created in the spec. So the question is -> what is the way to check if the method is called on the object, created in spec? ``` it 'should call the method that performs the movies search' do movie = Movie.new movie.sh...
[ 0.6625159382820129, 0.16040194034576416, 0.12213188409805298, 0.10077071189880371, -0.10071706771850586, -0.20052669942378998, 0.018673615530133247, -0.2840770184993744, -0.009999474510550499, -0.509833812713623, 0.2240908145904541, 0.7802058458328247, -0.12288474291563034, 0.4540931284427...
I want to remove the current `<tr>` and the yellow `<tr>` too when I click to the basket icon on the right. Here is a screenshot : ![enter image description here](https://i.stack.imgur.com/7temH.jpg) Here is my html code of the two rows which I want to delete by the click: ``` <tr> <td class="bar_td" ...
[ 0.189632847905159, -0.1598178893327713, 0.41443657875061035, -0.26854366064071655, 0.020485520362854004, 0.6029083132743835, -0.14108934998512268, -0.10929258167743683, -0.4993450939655304, -0.6298581957817078, 0.18613921105861664, 0.44551655650138855, -0.28549861907958984, -0.057501271367...
</tr> <tr class="ligne_suppr"> <td class="jr_td"> <img class="jour_prest" src="img/ico/jour_presta.png" alt="" width="16" height="16" /> Mardi 24 jan 2011 <p>ou</p> <img class="jour_prest" src="img/ico/jour_presta.png" alt="" width="16" height="1...
[ -0.3639295995235443, -0.08440232276916504, 0.5567583441734314, -0.3334595263004303, -0.2547057569026947, 0.8581789135932922, 0.1635683923959732, -0.47212424874305725, -0.5088703036308289, -0.3533993065357208, -0.2275879681110382, 0.784375786781311, 0.4197283387184143, 0.18996508419513702, ...
</td> <td class="cr_td"> <select> <option value="h9">10h30</option> <option value="h10">11h30</option> </select>
[ 0.2142006754875183, -0.45072829723358154, 0.3229902386665344, -0.04307582974433899, 0.20665226876735687, 0.4150283634662628, -0.0845484584569931, -0.6597806215286255, -0.1844884306192398, -0.4088926911354065, -0.23383496701717377, 0.6616055369377136, -0.05457790568470955, -0.11704079061746...
<select> <option value="h11">10h30</option> <option value="h12">11h30</option> </select> </td> <td class="rp_td">
[ 0.23566849529743195, -0.70803302526474, 0.11667776852846146, -0.1396426111459732, 0.21570459008216858, 0.38113194704055786, -0.016710305586457253, -0.8121817111968994, -0.17025062441825867, -0.2496546357870102, -0.2601717710494995, 0.6665470600128174, -0.13202901184558868, -0.1378259956836...
<select> <option value="h13" SELECTED>2h00</option> <option value="h14">3h00</option> </select> </td> <td class="mn_td">
[ 0.12498818337917328, -0.7934068441390991, 0.21888765692710876, -0.005627022124826908, 0.11850767582654953, 0.4489843249320984, 0.15993237495422363, -0.6748278141021729, -0.4300426244735718, -0.4634946882724762, -0.22100311517715454, 0.45782530307769775, -0.26262131333351135, -0.10774852335...
<select> <option value="h15">2h00</option> <option value="h16" SELECTED>6h00</option> </select> </td> <td class="tt_td">
[ 0.24844785034656525, -0.745236337184906, 0.14730697870254517, -0.06614641100168228, 0.11986158788204193, 0.30389299988746643, -0.09419658780097961, -0.6772444248199463, -0.24662290513515472, -0.2932586073875427, -0.2084585428237915, 0.7071812152862549, -0.1690981686115265, -0.2237293124198...
<strong>8h.</strong> </td> <td class="pttc_td"> <strong>148 &#8364;</strong> </td> <td class="cor_td">
[ 0.032389868050813675, -0.2744908928871155, 0.15738818049430847, -0.40190279483795166, -0.11697085201740265, 0.168461412191391, 0.2967599630355835, -0.680853545665741, -0.14889571070671082, -0.18441255390644073, -0.32458755373954773, 0.3603067994117737, -0.3933739960193634, -0.1914644241333...
<a href="#"> <img src="img/ico/corbeille.png" alt="" width="13" height="13" /> </a> </td> </tr> ``` and the Javascript code : ``` <script> $(".ligne_suppr a").click(function(e) { e.preventDefault();
[ -0.03977086767554283, 0.0755130797624588, 0.33462274074554443, -0.19676092267036438, 0.09340079128742218, 0.09672413021326065, 0.3958533704280853, -0.5132572054862976, -0.04568197950720787, -0.5588588714599609, -0.6153866052627563, 0.5229547023773193, -0.22168081998825073, 0.04641969129443...
($(this).parent()).parent().remove(); }) </script> ``` But with this code I can only remove the big `<tr>` and the yellow One stays. Have you any idea? ``` $('.ligne_suppr a').click(function(e) { e.preventDefault(); var parent = $(this).parent().parent(); // parent <tr> of the anchor tag var...
[ -0.06742744892835617, -0.015557334758341312, 0.455010324716568, -0.3902986943721771, 0.6443303823471069, 0.21649424731731415, 0.15942026674747467, -0.0825602188706398, -0.2301233857870102, -0.47048795223236084, -0.5360758304595947, 0.44923827052116394, -0.46205976605415344, 0.3617225289344...
I am using jquery uploader from [here](https://github.com/blueimp/jQuery-File-Upload) and I would like to know how do I get the total number of files has been added and not uploaded. There is no specific documentation on the new version so can anyone say me how do I do this? As I need to get this way "`uploading 1 of...
[ 0.38100242614746094, 0.020392468199133873, 0.5941698551177979, -0.12123268097639084, -0.1496371328830719, -0.15192408859729767, 0.16111306846141815, -0.4058821201324463, -0.6055658459663391, -0.49633029103279114, -0.0693342536687851, 0.8198866844177246, -0.27145999670028687, 0.134148895740...
every time a file has been added to the queue, so you could create a counter and increment it when the event is called. ``` var filestoupload =0; $('#fileupload').bind('fileuploadadd', function (e, data) { filestoupload++; }); ```
[ 0.24778063595294952, -0.3433625400066376, 0.5286712050437927, -0.23449857532978058, 0.031767286360263824, 0.05482877045869827, 0.19755081832408905, -0.3101988732814789, -0.4227098524570465, -0.4619894325733185, -0.1386203020811081, 0.32864055037498474, -0.4541513919830322, 0.36073881387710...
``` <?php $x = array("<b>","<i>","b","i","<h1>hello</h1>"); print_r ($x); echo "<hr>"; var_dump ($x); ``` outputs this in the html source! ``` Array ( [0] => <b> [1] => <i> [2] => b [3] => i [4] => <h1>hello</h1> ) <hr>array(5) { [0]=> string(3) "<b>" [1]=> string(3) "<i>" [2]=> str...
[ 0.15896685421466827, 0.19345584511756897, 0.47785061597824097, -0.2685006260871887, -0.26741427183151245, -0.11851399391889572, 0.5692341923713684, -0.5703144073486328, -0.16478879749774933, -0.4926578104496002, -0.15197260677814484, 0.41360217332839966, -0.51727294921875, -0.0043364735320...
changes to get it to work as follows: ``` array_walk_recursive($inputarray, function(&$v) { $v = htmlspecialchars($v); }); ``` Now this works fine in PHP5.3+
[ 0.22495198249816895, -0.3343409299850464, 0.9003313183784485, -0.32966557145118713, -0.07979200780391693, -0.0725257396697998, 0.5195031762123108, -0.4305173456668854, -0.33466240763664246, -0.6146163940429688, 0.06984204053878784, 0.5759029388427734, -0.42500412464141846, -0.1951669752597...
in my app I have some `text.setTextColor(Color.GRAY)`. Now I would like to use the same color from this class in my xml file for other fields whose color doesn't change. All I found in the xml files is `@color` which contains only entry "black", and `@android:color/` that also has some other weird entries like "dark\...
[ 0.5970414280891418, 0.07889562845230103, 0.09700759500265121, 0.10982667654752731, 0.04753950238227844, 0.07454675436019897, 0.3200821578502655, 0.2463909536600113, -0.10023479163646698, -0.998437762260437, -0.02688886970281601, 0.7184472680091858, -0.2527039051055908, 0.06389757990837097,...
code in XML file 0xff888888 - GRAY. Refer this [LINK](http://developer.android.com/reference/android/graphics/Color.html) for color
[ 0.12667424976825714, 0.08825883269309998, 0.040304720401763916, -0.31240570545196533, 0.3272695541381836, 0.5453944206237793, 0.0359271764755249, -0.09776774048805237, -0.07056048512458801, -0.7932978868484497, -0.2569979727268219, 0.6695281267166138, -0.35967281460762024, 0.04115220159292...
I have a menu option in my ActionBarSherlock Actionbar that kicks off an AsyncTask. I'm trying to get the icon to animate while the background task is running. I have it working, except when I click on the icon, the icon itself will "jump" a couple pixels over to the right, and it's very noticeable. Not exactly sure wh...
[ 0.05809629708528519, -0.19179627299308777, 0.8527995944023132, -0.26792097091674805, -0.18496347963809967, 0.31831684708595276, 0.46715739369392395, -0.36260131001472473, -0.21875391900539398, -0.6849474310874939, -0.07769518345594406, 0.7961426377296448, -0.20255863666534424, 0.0819539949...
rotation = AnimationUtils.loadAnimation(activity, R.anim.refresh); ImageView ivRefresh.startAnimation(rotation); refreshItem.setActionView(ivRefresh); //AsyncTask is kicked off here } @Override public boolean onOptionsItemSelected(final MenuItem item) { if (item.getItemId() == R.id.refresh) { ...
[ -0.023679474368691444, -0.14954206347465515, 0.8460701107978821, -0.28753694891929626, -0.47710707783699036, 0.5350806713104248, -0.10397321730852127, -0.5214076042175293, -0.45444896817207336, -0.4383230209350586, -0.45231446623802185, 0.5915353298187256, -0.08516287058591843, 0.183919310...
android:fromDegrees="0" android:toDegrees="360" android:pivotX="50%" android:pivotY="50%" android:repeatCount="infinite" android:interpolator="@android:anim/linear_interpolator" android:duration="1100" /> ``` UPDATE: Been fooling around with this, with no luck. It has nothing to do with the ...
[ 0.28969839215278625, -0.36477309465408325, 0.7600123882293701, -0.19415493309497833, -0.11928612738847733, 0.07111584395170212, 0.6948000192642212, -0.456556499004364, -0.21869762241840363, -0.303631454706192, -0.14305660128593445, 0.6747376322746277, -0.25731366872787476, -0.2007072418928...
consistency. Read this article I wrote on how to animate action items properly. <http://alexfu.tumblr.com/post/19414506327/android-dev-animate-action-items>
[ -0.15835049748420715, -0.16966411471366882, 0.40053650736808777, 0.1100238785147667, -0.2261492908000946, 0.41592782735824585, 0.660305917263031, -0.48879754543304443, -0.39439553022384644, -0.5359322428703308, 0.04687216132879257, 0.76832515001297, -0.10725925862789154, -0.451608180999755...
I have a datagrid nested inside the ItemTemplate of a ListBox. I'm trying to display a tree like data structure using this. My classes are as follows. The object in my data context contains a `List<Section>` named `Sections`, my ListBox is bound to this. Each `Section` contains a `List<Item>` named `Items`, the DataGr...
[ 0.21251896023750305, 0.2224438637495041, 0.4385640025138855, 0.007661723997443914, -0.028447836637496948, 0.013828197494149208, 0.11466612666845322, -0.11011245846748352, -0.26136142015457153, -0.7428637146949768, -0.08501038700342178, 0.222454234957695, -0.4224371910095215, 0.177953273057...
/><!-- this is initialized and filled with an ObservableCollection<Section> Sections when the window loads--> </Window.Resources> <ListBox x:Name="lstIngredients" ItemsSource="{Binding Source={StaticResource SectionSource}}"> <ListBox.ItemTemplate> <DataTemplate> <DataTemplate.Resources> ...
[ -0.12471768260002136, -0.3366234600543976, 0.47835686802864075, -0.07103250175714493, -0.15021878480911255, 0.20859332382678986, -0.05226994678378105, -0.48973995447158813, -0.33667781949043274, -0.6752467751502991, -0.48405730724334717, 0.1330087035894394, -0.18734511733055115, 0.05178048...
<DataGrid.Columns> <DataGridTemplateColumn Width="2*" Header="{lex:LocText ChickenPing.Shared:Strings:Measurement}"> <DataGridTemplateColumn.CellTemplate> <DataTemplate> <TextBlock x:Name="quantity" Text="{Binding Measurement}" TextTrimming="CharacterEllipsis" TextAlignme...
[ -0.026368645951151848, 0.06914059072732925, 0.455766499042511, -0.12312854826450348, 0.05931754782795906, 0.23914030194282532, -0.16649381816387177, -0.6412345767021179, -0.06415100395679474, -0.3245212733745575, 0.04863942414522171, 0.23170088231563568, -0.10797974467277527, 0.08911165595...
an Item object, I get a null reference--> </DataTemplate> ``` If the menu option is an action item, you should apply the style Widget.Sherlock.ActionButton to the ImageView to keep consistency. Read this article I wrote on how to animate action items properly. <http://alexfu.tumblr.com/post/19414506327...
[ 0.051188211888074875, -0.12994235754013062, 0.43742701411247253, -0.16048575937747955, -0.24763765931129456, 0.3036049008369446, 0.6680861115455627, -0.440335214138031, -0.3678574860095978, -0.45009487867355347, -0.2347763031721115, 0.6664149165153503, -0.30561235547065735, -0.238103196024...
I have this iPad app using Storyboard. There are some file that are marked as missing which used to be in the app. The message is really annoying me... ![enter image description here](https://i.stack.imgur.com/Qeol3.png) I did a clean, re-build, but they are still there. How do I get rid of the messages? Floating po...
[ 0.09281466901302338, 0.5164754390716553, 0.07455731928348541, 0.24545449018478394, -0.042666926980018616, 0.33240729570388794, 0.30024561285972595, 0.4557676315307617, -0.44619619846343994, -0.601432204246521, 0.5092149972915649, 0.10100653767585754, -0.03126120567321777, 0.093089871108531...
using Sum vs. manually summing the data. In the first you add each number to 615 as you go, in the second you add all of the numbers to each other an *then* add them to 615. It's a different ordering of adding the same data. Depending on which numbers you use either method could potentially result in more or less error...
[ 0.3838696777820587, -0.291195809841156, -0.07866796106100082, 0.043099481612443924, -0.3644578456878662, 0.38420370221138, 0.03344041481614113, -0.6515482068061829, -0.3882492184638977, -0.7407195568084717, 0.1703907549381256, 0.3528212308883667, -0.17270874977111816, 0.04955371469259262, ...
I m beginner asp.net mvc developer.And I don't understand, Why has used both Json and ActionResult in Account controller(for register, login and etc.) in default asp.net MVC 4 project? Thanks. It's because in the ASP.NET MVC 4 the Login and Register forms are shown in a jQuery dialog and both forms POST to the Account...
[ -0.14687833189964294, -0.05037694051861763, 0.5789097547531128, -0.06429646164178848, -0.32946914434432983, -0.04205623269081116, 0.35271313786506653, -0.0441860668361187, -0.37068110704421997, -0.5549286603927612, -0.26795992255210876, 0.6825432181358337, -0.13477826118469238, -0.05384305...
For my command-line-interfaces it's often nice to have a little ASCII art in the beginning, but those often contain many backslashes. For example: ```java System.out.println(" _____ _______ _____ _ __ "); System.out.println(" / ____|__ __|/\ / ____| |/ / "); System.out.println("| (___ | | / \ | | ...
[ -0.3851650357246399, 0.3737172782421112, 0.45523396134376526, -0.3474007844924927, -0.13155391812324524, 0.16616782546043396, 0.38746118545532227, -0.10476154834032059, -0.11629310995340347, -0.8621063232421875, -0.12391737848520279, 0.7569178342819214, -0.4634479582309723, -0.020905757322...
|_/_/ \_\_____|_|\_\ "); ``` But since every `\` needs to be a `\\` this often looks very ugly in code and it's very hard to find/fix an error in the 'font'. Is there a way to tell Java NOT to use escape sequences? No, Java doesn't have anything like the "verbatim string literals" of C#. If you want to do ASCII ar...
[ 0.013132949359714985, 0.14721307158470154, -0.10921879857778549, -0.006004356779158115, -0.14386703073978424, -0.0795271098613739, 0.6903262734413147, -0.09853566437959671, -0.1983993500471115, -0.6243082880973816, -0.14983363449573517, 0.4578351676464081, -0.4709337651729584, -0.253967821...
I made a simple GPS. app. for android, storing the route coordinates into file. I'm confused, I got more onLocationChanged event when I stand in one place. The bearing and speed was zero of course in the Location when the event comes, but it Is interested, because I used 1 meter for minDistance when I registered the Lo...
[ -0.01957947388291359, -0.07355491816997528, 0.4342634975910187, 0.1728854477405548, -0.08863786607980728, 0.12130862474441528, 0.4890346825122833, 0.15241782367229462, 0.08867998421192169, -0.8246857523918152, 0.31279048323631287, 0.4771048426628113, -0.03353777155280113, -0.32370454072952...
> **Possible Duplicate:** > > [Why do I always get the same sequence of random numbers with rand()?](https://stackoverflow.com/questions/1108780/why-do-i-always-get-the-same-sequence-of-random-numbers-with-rand) So yeah, this might seem slightly noobish, but since I'm teaching myself C after becoming reasonable at ...
[ 0.04337633028626442, 0.15637707710266113, -0.0857866108417511, -0.009285117499530315, -0.21111337840557098, 0.17851833999156952, 0.16382461786270142, -0.07347526401281357, -0.399810254573822, -0.5800256729125977, 0.22671043872833252, 0.21639953553676605, -0.21064402163028717, 0.16071434319...
function. I've tried including some generally used libraries, but nothing works. Here's the code: ``` #include "stdafx.h" #include "stdio.h" #include "conio.h" #include "stdlib.h" int main(void) { printf("%d", rand()); //Always prints 41 return 0; } ``` This because the `rand()` initializes its pseudo-rand...
[ -0.13261903822422028, -0.03131955862045288, 0.2027413547039032, -0.32638564705848694, 0.013249357230961323, 0.1004229336977005, 0.14110496640205383, -0.27028289437294006, -0.2485475391149521, -0.5035156607627869, 0.35862913727760315, 0.6092920303344727, -0.2113107591867447, 0.4240623414516...
Animal is the parent class of Cat class. ``` public static void main (String[] args) { Animal myCat1 = new Cat; //Allocation 1 Cat myCat2 = new Cat; //Allocation 2 } ``` What is the diffrerence of two allocation??Each is true ,isn't it? Neither of these are valid. You need `()`. Apart from that: * the first ref...
[ 0.16463063657283783, -0.20009757578372955, -0.13328705728054047, -0.19748680293560028, -0.24456024169921875, 0.09877301752567291, 0.07561000436544418, -0.06544248759746552, -0.17628663778305054, -0.41920509934425354, 0.041791755706071854, 0.5570997595787048, -0.7556490302085876, 0.32328844...
With zsh/oh-my-zsh/iterm2, excellent way to navigate through the terminal command history. If I issued a command say `knife cookbook upload application` few days before and to get the command, I can do `k` or `kni` or `knif` and press the up-arrow key, it'll iterate through the commands history that starts with `knife...
[ -0.20737046003341675, 0.17868860065937042, 0.5200015306472778, -0.20367521047592163, -0.17454057931900024, -0.07156351208686829, 0.11045268177986145, -0.05419033393263817, -0.03526005521416664, -0.8030734658241272, -0.03871610388159752, 0.5420196652412415, -0.01052868738770485, 0.417310357...
commands that starts with just `knife`. So, is there any way to get the commands that starts with two words? so that I just type two words and pressing up-arrow key to show only those commands that starts with two words typed. In addition to @Shep answer I would suggest changing `<C-r>` behavior from searching just on...
[ -0.22537103295326233, -0.1922532171010971, 0.33558109402656555, -0.20528890192508698, -0.316192090511322, 0.1531277745962143, 0.2905513644218445, -0.24294498562812805, -0.3024028241634369, -0.6776714324951172, -0.16892769932746887, 0.4224570393562317, -0.03235756605863571, 0.18529616296291...
search for commands that contain both `knife` and `node` separated by other words, as well as it won’t search for commands that contain `knife node` not at the start of the line (talking about `history-beginning-search-backward` widget).
[ -0.2848280668258667, -0.23096252977848053, 0.16315564513206482, 0.15123888850212097, 0.13380981981754303, -0.2885518968105316, 0.35375142097473145, -0.00013429239334072918, -0.1029655784368515, -0.7240605354309082, -0.2796576917171478, 0.21033503115177155, 0.02602400816977024, 0.1398568898...
How can we draw the shapes in Java like we do in paint? For example if I want to draw the rectangle this command will draw it: ``` g2.fill3DRect(mt, mf, 45, 45, true); ``` But how can I increase the or decrease the size of an object or shape during run-time using mouse like we did in paint? Use a [mouse listener]...
[ 0.13412413001060486, -0.09184706211090088, 0.43070584535598755, -0.31338587403297424, 0.00018790928879752755, 0.2454894781112671, 0.10646093636751175, -0.4805373251438141, -0.11397551745176315, -0.6449543833732605, -0.030188195407390594, 0.7383503913879395, -0.22312183678150177, -0.3796879...
same time. This is the most basic example of course. Look into double buffering and practice.
[ 0.42954665422439575, -0.06370337307453156, 0.206592857837677, 0.0060645402409136295, 0.22234217822551727, -0.277189165353775, 0.07927685976028442, -0.33749252557754517, 0.10850466787815094, -0.6634847521781921, 0.3363335430622101, 0.6143789887428284, -0.3134167790412903, -0.488736867904663...
For about a week now I have been trying to get a view to render. I have an application that needs to be able to export collections so I decided to use a line partial that renders as a `.txt` and `.csv` in the web browser. So far so good in terms of getting the entire collection to render (line by line). However, I am h...
[ 0.2674126625061035, -0.1260635405778885, 0.5071234107017517, -0.08511269092559814, -0.2154889553785324, 0.11792813986539841, 0.0854957103729248, 0.2280593365430832, -0.5431808829307556, -1.0703924894332886, 0.067569300532341, 0.4598674178123474, -0.19139060378074646, 0.47215521335601807, ...
layout 'csv' def index end def show @feed_template = params[:id] @products = Product.find :all @products.each do |product| unless product.size.nil? || product.size.empty? || product.size.kind_of?(Fixnum) @products << new_products_for(product) end end respond_to do |forma...
[ 0.08893077820539474, -0.040642354637384415, 0.6056561470031738, -0.4607575535774231, 0.0232830960303545, 0.17296187579631805, -0.004457816015928984, -0.363239586353302, -0.37083548307418823, -0.6046257615089417, -0.37780219316482544, 0.20596282184123993, -0.5523859262466431, 0.196619495749...
product.size.each do |p| products << Product.new(p.attributes) end products end end ``` View ``` <%= render partial: 'pexport/p', collection: @products %> ``` Partial ``` <%= p.sku %> <%= p.name %> <%= p.price %> ...... ``` I basically just need to get the controller method to work. The attribu...
[ 0.08449006825685501, -0.27913570404052734, 0.8168349862098694, -0.01194036565721035, 0.021011993288993835, 0.27376750111579895, -0.2101348638534546, -0.17842800915241241, -0.09715282171964645, -0.8154441714286804, -0.10528627783060074, 0.4487746059894562, -0.26629209518432617, 0.4472642540...
the right away but it has gotten to that point where I am going in circles so I figured I would post it. Yes. There are several ways that it can affect the performance. The standard protocol that people use is some variant of MSI (Modified, Shared, Invalid) sometimes with O (Owner) and often E (Exclusive) added to the ...
[ 0.31613144278526306, -0.0018293650355190039, 0.1435965597629547, 0.10889400541782379, 0.17594659328460693, -0.04229588806629181, 0.3234187960624695, 0.08901996165513992, -0.1708044856786728, -0.6972011923789978, -0.23739664256572723, 0.11295238137245178, 0.005943181924521923, 0.29335847496...
many operations that the core can perform at any given time. The impact of this on Core A isn't very high though since it is not in the critical path. The bigger impact is if Core A does a write again. Since the cache line is in the shared (or invalid) state, it must issue a request to upgrade itself to M or E. That re...
[ 0.01414903998374939, 0.034054841846227646, 0.3524075746536255, -0.13589419424533844, 0.30483514070510864, 0.023564616218209267, 0.46031835675239563, 0.04758450761437416, -0.3786699175834656, -0.8539333939552307, -0.4929320216178894, 0.434260755777359, -0.09697878360748291, 0.20629961788654...
not be blocked on this operation.
[ 0.4068605899810791, 0.36128920316696167, -0.22555580735206604, -0.05832742527127266, 0.18598319590091705, -0.502949595451355, 0.4804159998893738, 0.18714232742786407, -0.06348314136266708, -0.44496700167655945, -0.4082506000995636, 0.25618216395378113, -0.5226455926895142, 0.14484462141990...
I compile one test code with g++ without any issue. ```cpp #include "Python.h" int main(int argc, char** argv) { Py_Initialize(); PyRun_SimpleString("import pylab"); PyRun_SimpleString("pylab.plot(range(5))"); PyRun_SimpleString("pylab.show()"); Py_Exit(0); } ``` `g++ -o test te...
[ 0.00328232254832983, -0.012772468850016594, 0.3313617408275604, -0.17745746672153473, 0.1464076042175293, 0.16234257817268372, 0.2781105935573578, -0.5348877906799316, 0.1397240310907364, -0.7866540551185608, -0.22886981070041656, 0.41951632499694824, -0.4448310434818268, 0.000748254009522...
$(CXX) $(CXXFLAGS) $(INCLUDES) -o EClientSocketBase.o -c $(BASE_SRC_DIR)/EClientSocketBase.cpp $(CXX) $(CXXFLAGS) $(INCLUDES) -o EPosixClientSocket.o -c $(BASE_SRC_DIR)/EPosixClientSocket.cpp $(CXX) $(CXXFLAGS) $(INCLUDES) -o PosixTestClient.o -c PosixTestClient.cpp $(CXX) $(CXXFLAGS) $(INCLUDES) ...
[ 0.30960962176322937, 0.3158073425292969, 0.6069778203964233, -0.013176691718399525, 0.3103486895561218, -0.037684135138988495, 0.35595178604125977, -0.23404599726200104, -0.24419882893562317, -0.37214940786361694, -0.41222819685935974, 0.4780583381652832, -0.3843785524368286, -0.1129233166...
included from /usr/include/python2.7/Python.h:8:0, > > from Main.cpp:15: > > /usr/include/python2.7/pyconfig.h:1158:0: warning: "\_POSIX\_C\_SOURCE" redefined [enabled by default] > > /usr/include/features.h:163:0: note: this is the location of the previous definition > > /usr/include/python2.7/pyconfig...
[ -0.3597595691680908, 0.06084100529551506, 0.4728406071662903, -0.22384977340698242, 0.2846958637237549, 0.2582826316356659, 0.18492189049720764, -0.4490850567817688, -0.43940672278404236, -0.4843674898147583, -0.8045225739479065, 0.06871392577886581, -0.49258723855018616, -0.33282232284545...
> > /home/bbc/TWS/IBJts/cpp/eu-ats/Main.cpp:83: undefined reference to`PyRun\_SimpleStringFlags' > > /home/bbc/TWS/IBJts/cpp/eu-ats/Main.cpp:84: undefined reference to `PyRun_SimpleStringFlags' > > /home/bbc/TWS/IBJts/cpp/eu-ats/Main.cpp:85: undefined reference to`Py\_Exit' > > collect2: ld returned 1 exi...
[ -0.1958075910806656, 0.31349918246269226, 0.21168848872184753, 0.06406713277101517, -0.09836260229349136, 0.10499611496925354, 0.5580576658248901, -0.3712764382362366, -0.24786508083343506, -0.5156291127204895, -0.417028546333313, 0.2491014301776886, -0.3752165138721466, -0.081782326102256...
answer so the person who asked can mark it as the right answer, and the question won't remain 'unanswered' in StackOverflow.)
[ 0.043407898396253586, -0.0007624508580192924, 0.43128687143325806, 0.3404026925563812, 0.3168494999408722, 0.08199106156826019, -0.05330211669206619, -0.5952354073524475, -0.3403787612915039, -0.06326539814472198, -0.1961718499660492, 0.3579310476779938, -0.12209004163742065, -0.0092237805...
I currently have this as a search: ``` <%= form_tag users_path, :controller => 'users', :action => 'townsearch', :method => 'get' do %> <%= select_tag :county, params[:county] %> <%= submit_tag 'search'%> <% end %> ``` I have the following list in my user model: ``` COUNTY_OPTIONS = [ "Avon", "Bedfordsh...
[ -0.3613775372505188, -0.059387896209955215, 1.0085501670837402, -0.32377615571022034, 0.33232438564300537, 0.5611071586608887, 0.006476049777120352, 0.06655862927436829, -0.4131847023963928, -0.6307436227798462, -0.5548182725906372, 0.19624313712120056, 0.06335002183914185, 0.2780094146728...
"County Londonderry", "County Tyrone", "Cumbria", "Derbyshire", "Devon", "Dorset", "Dumfries and Galloway", "Durham", "Dyfed", "East Sussex", "Essex", "Fife", "Gloucestershire", "Grampian", "Greater Manchester", "Gwent", "Gwynedd County", "Hampshire", "Herefordshire", "Hertfordshire",...
[ -0.11016963422298431, -0.22758089005947113, 0.888047993183136, -0.18702292442321777, 0.04392038658261299, 0.7419080138206482, 0.1345544010400772, 0.4378669559955597, -0.248824805021286, -0.2492898851633072, -0.6331188678741455, -0.20240943133831024, -0.02400197833776474, 0.1759898662567138...
"Lothian", "Merseyside", "Mid Glamorgan", "Norfolk", "North Yorkshire", "Northamptonshire", "Northumberland", "Nottinghamshire", "Oxfordshire", "Powys", "Rutland", "Shropshire", "Somerset", "South Glamorgan", "South Yorkshire", "Staffordshire", "Strathclyde", "Suffolk", "Surrey", "Tays...
[ 0.4047321081161499, -0.09577476233243942, 0.656316339969635, -0.47898319363594055, 0.10396695137023926, 0.8905841112136841, 0.06348031759262085, 0.19113270938396454, -0.6288970708847046, -0.5256596803665161, -0.005053620785474777, 0.2794324457645416, -0.08838550746440887, 0.100997842848300...
the drop down menu? Check out the [API documentation](http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#method-i-select_tag) for `select_tag`. It says: ``` select_tag(name, option_tags = nil, options = {}) ``` Where `option_tags` is a string containing the option tags for the select box. You...
[ 0.011879566125571728, -0.3472294211387634, 0.6800145506858826, 0.1451190859079361, 0.2707182765007019, 0.12733294069766998, -0.46382901072502136, -0.168820321559906, -0.31209060549736023, -0.4097290337085724, -0.10157019644975662, 0.4871353507041931, -0.32908838987350464, -0.09855839610099...
I am implementing a ViewPagerIndicator that works as expected in vertical orientation. When I test in horizontal orientation, either by switching at run-time (physically turning the phone) or when the app starts in horizontal mode (phone was horizontal before the app started) I get a blank white space where the ViewPag...
[ 0.13798639178276062, -0.04571907967329025, 0.5779484510421753, -0.23096108436584473, 0.09635108709335327, 0.012940728105604649, 0.10017567873001099, -0.22712241113185883, 0.016629522666335106, -0.8490736484527588, -0.2739458978176117, 0.7014293074607849, -0.2875025272369385, -0.13117484748...
int OFFSCREEN_PAGE_LIMIT = 5; ViewPager pager = null; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.edit); int iPage = 2; // set the page based on caller...
[ 0.4597489833831787, -0.5911741256713867, 1.0233407020568848, -0.13378497958183289, -0.012787197716534138, 0.03519023582339287, 0.8099997043609619, -0.4923124313354492, -0.04175311699509621, -0.5730382800102234, -0.2789829969406128, 0.5649970173835754, -0.5785121321678162, -0.16142523288726...
iPage = bndlExtras.getInt("PAGE"); } ATViewPagerAdapter adapter = new ATViewPagerAdapter(this); pager = (ViewPager) findViewById(R.id.awesomepager); pager.setOffscreenPageLimit(OFFSCREEN_PAGE_LIMIT); pager.setAdapter(adapter); TitlePageIndicator indicator = (TitlePageI...
[ -0.31691357493400574, -0.14312885701656342, 1.036254644393921, -0.3105928897857666, -0.41424882411956787, 0.15717023611068726, 0.21953381597995758, -0.6061202883720398, -0.14416877925395966, -0.6909186840057373, -0.3387394845485687, 0.43462368845939636, -0.21410205960273743, -0.04806206002...
android:layout_marginLeft="0dp" android:layout_marginRight="0dp"> <EditText android:id="@+id/etName" android:inputType="textAutoComplete" android:layout_width="match_parent" android:layout_height="wrap_content" android:background="@drawable/edit_text" android:layout_margin="4dp" android...
[ -0.34737491607666016, -0.05286156013607979, 0.8718339204788208, -0.20869439840316772, -0.10400404781103134, 0.16189372539520264, -0.11983037739992142, -0.38498741388320923, -0.08114619553089142, -0.6394082903862, -0.15423505008220673, 0.5948437452316284, 0.14551697671413422, -0.06957995891...
[API documentation](http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#method-i-select_tag) for `select_tag`. It says: ``` select_tag(name, option_tags = nil, options = {}) ``` Where `option_tags` is a string containing the option tags for the select box. You can use other helper methods that...
[ 0.20263586938381195, -0.27048036456108093, 0.4444360136985779, 0.16420935094356537, 0.15637147426605225, 0.07455126196146011, -0.2141718715429306, -0.42988327145576477, -0.26341670751571655, -0.5572701692581177, -0.15984365344047546, 0.313372403383255, -0.4380919337272644, -0.1188089922070...