text
stringlengths
0
30.5k
title
stringclasses
1 value
embeddings
listlengths
768
768
tried 8 time(s). 2012-04-09 12:28:30,351 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: hbase/192.168.15.20:54310. Already tried 9 time(s). 2012-04-09 12:28:30,356 FATAL org.apache.hadoop.hbase.master.HMaster: Unhandled exception. Starting shutdown. java.net.ConnectException: Call to hbase/192.168.15.20...
[ -0.2876858115196228, 0.05675620958209038, 0.5021483898162842, 0.059864725917577744, 0.12446503341197968, 0.31054967641830444, 0.6506837010383606, -0.5303447842597961, -0.33611997961997986, -0.4384288489818573, -0.18753619492053986, 0.2612610161304474, -0.41197288036346436, 0.12147662788629...
at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:244) at org.apache.hadoop.fs.Path.getFileSystem(Path.java:187) at org.apache.hadoop.hbase.util.FSUtils.getRootDir(FSUtils.java:364) at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:81) at org.apache.hadoop.hbase.master...
[ -0.08813841640949249, -0.055899299681186676, 0.4143710136413574, -0.01287427544593811, -0.19185036420822144, 0.08114875853061676, 0.476985365152359, -0.4606105387210846, -0.570153534412384, -0.6387543082237244, -0.46824362874031067, 0.24971337616443634, -0.17037361860275269, 0.297050088644...
60000 2012-04-09 12:28:30,362 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 0 on 60000: exiting 2012-04-09 12:28:30,362 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 1 on 60000: exiting 2012-04-09 12:28:30,362 INFO org.apache.hadoop.ipc.HBaseServer: IPC Server handler 2 on 60000: exiting 2012-...
[ 0.13476797938346863, 0.17216721177101135, 0.2972715497016907, 0.17484068870544434, -0.24802008271217346, 0.43265461921691895, 0.4905470609664917, -0.3483608365058899, -0.4240294396877289, -0.5654643177986145, -0.21617504954338074, -0.2584265470504761, -0.17331214249134064, 0.11801419407129...
exiting 2012-04-09 12:28:30,364 INFO org.apache.hadoop.ipc.HBaseServer: Stopping IPC Server listener on 60000 2012-04-09 12:28:30,369 INFO org.apache.hadoop.ipc.HBaseServer: Stopping IPC Server Responder 2012-04-09 12:28:30,450 INFO org.apache.zookeeper.ClientCnxn: EventThread shut down 2012-04-09 12:28:30,450 INFO org...
[ -0.3131418526172638, 0.07078821212053299, 0.675392746925354, -0.047489382326602936, -0.2959631383419037, 0.21208415925502777, 0.6153088212013245, -0.5162019729614258, -0.3964502513408661, -0.40701428055763245, -0.28652215003967285, 0.25689026713371277, -0.1906701922416687, 0.33204832673072...
of ip in configuration files replace with localhost if you want to use ip instead of localhost then make sure that ip and equivalent domain name is there in your hosts file and replace all occurance of localhost with your ip. problem related to namenode generally occurs due to misconfiguration of host or IP
[ -0.10676736384630203, -0.22922219336032867, 0.32789096236228943, 0.2482021450996399, 0.2394053190946579, -0.4363064765930176, 0.16776128113269806, 0.3074466586112976, -0.41510555148124695, -0.8249529600143433, -0.2907043695449829, 0.37727493047714233, -0.253968745470047, 0.4505367279052734...
I'm trying to change the size limit of an upload. I know I have to change those directive, in Apache configuration (some can't be changed using ini\_set) ``` php_value session.gc_maxlifetime 3600 php_value max_input_time 3600 php_value max_execution_time 3600 php_value upload_max_filesize 10M php_value ...
[ 0.06628987938165665, 0.052375324070453644, 0.723115086555481, -0.04554624482989311, -0.13938339054584503, -0.09144902974367142, 0.37878546118736267, -0.30786311626434326, -0.3408863842487335, -0.6424458026885986, 0.053866319358348846, 0.5871956944465637, -0.2224966287612915, 0.209205061197...
Symfony) My question, then, is how can I avoid this problem ? I don't want to set those values for the whole application, only for a specific action. This is possible, depending on how you map to your front controller. If you're doing it via rewrite rules then you can use a `<Location>` instead of `<Directory>` block ...
[ 0.37505999207496643, -0.02259969152510166, 0.4992942214012146, 0.12103790789842606, 0.14200308918952942, -0.13637785613536835, 0.01903708092868328, -0.027768094092607498, -0.3042788505554199, -0.6893297433853149, 0.020850548520684242, 0.6291759610176086, -0.23708271980285645, 0.07725249975...
^/index.php [L] <Location /foo/> php_value ... </Location> ``` If that's not the case, you'll need to tell us more about your application structure.
[ 0.3183704614639282, 0.3133952021598816, 0.4191150665283203, -0.15855450928211212, 0.14115463197231293, -0.20212750136852264, 0.005431240424513817, 0.32419008016586304, -0.09554889053106308, -0.6316883563995361, -0.11945242434740067, 0.23932477831840515, -0.14357061684131622, 0.067591488361...
I'm trying to create a custom `SELECT` query to find my Personal Best races from WordPress Custom Types where the times are a custom meta field. This is the query I used to select the posts. I've simplified it for debugging, but eventually I want to select several term slugs and find the `MIN` for each using `GROUP BY...
[ 0.4142340421676636, -0.21791920065879822, 0.02046743780374527, 0.29195746779441833, -0.22837892174720764, 0.36784324049949646, -0.17250096797943115, 0.021929269656538963, 0.03915685415267944, -0.6112678050994873, 0.5716119408607483, 0.2133496254682541, -0.1812858134508133, 0.15483728051185...
p.post_date, p.post_title, m.meta_value as pb_mins FROM $wpdb->posts p,
[ -0.09987733513116837, -0.017296649515628815, 0.5167555809020996, 0.21613174676895142, 0.13204427063465118, 0.25503233075141907, 0.1709883213043213, -0.08673045039176941, -0.1920192688703537, -0.4050214886665344, -0.4887256324291229, -0.08958713710308075, -0.0835355594754219, 0.502947688102...
$wpdb->postmeta m, $wpdb->term_relationships tr, $wpdb->term_taxonomy tt, $wpdb->terms t WHERE p.ID = tr.object_id
[ 0.11908435076475143, -0.2065526396036148, 0.349295973777771, 0.17062756419181824, -0.1631176769733429, 0.059785351157188416, 0.006662848871201277, -0.1893155872821808, -0.12942470610141754, -0.5082046389579773, -0.40450435876846313, 0.45972132682800293, -0.1231834813952446, 0.3447880148887...
AND p.ID = m.post_id AND tr.term_taxonomy_id = tt.term_taxonomy_id AND tt.term_id = t.term_id AND p.post_type = 'runs' AND m.meta_key = 'ssr_duration_min'
[ 0.09823409467935562, -0.30284327268600464, 0.2671719491481781, 0.057436078786849976, 0.19355295598506927, 0.39333924651145935, 0.06164037063717842, -0.3494783937931061, -0.46318861842155457, -0.18225808441638947, -0.221206933259964, 0.6673485636711121, -0.09085161238908768, 0.2498884946107...
AND t.slug in ('10mi') ``` (I'm outputting the results to an array and using `print_r` to check it temporarily.) This selects the two races/runs with the '10mi' term and displays the correct times/date/title for them. The problem comes when I add the `MIN` function: ``` SELECT t.slug, ...
[ 0.2900319993495941, -0.24969972670078278, 0.07338853180408478, 0.17764458060264587, 0.4621819853782654, 0.4882969558238983, -0.12140067666769028, 0.03622658550739288, 0.10588043928146362, -0.48382502794265747, 0.35582828521728516, 0.733106255531311, -0.022587891668081284, 0.153634712100029...
p.post_title, MIN(m.meta_value) as pb_mins ``` The correct (minimum) time is selected, but the other details (date, title) are from the OTHER 10mi run/race. I've tried changing the `FROM` clause to use `LEFT JOIN` and also `INNER JOIN` but the same thing happens: it's fine for...
[ 0.3309149444103241, -0.040367934852838516, 0.2446613311767578, 0.0533963106572628, 0.35417577624320984, 0.012448837980628014, 0.2770980894565582, -0.321418434381485, -0.1291670799255371, -0.5079846382141113, -0.1516118347644806, 0.3344407379627228, 0.1581907719373703, 0.08049527555704117, ...
both '10mi' runs but gives the wrong output when I add the `MIN` function. Thanks for any help you can offer. This is my first post here so please let me know if I need to add any more details. I never got round to posting my solution to this. It's been a while now, so I can't fully remember how I even arrived at it (...
[ 0.4236566722393036, 0.1800645887851715, 0.2553369402885437, 0.3751591742038727, 0.007612693123519421, 0.23752939701080322, 0.1783100813627243, 0.49773648381233215, -0.274939626455307, -0.7630724310874939, 0.07421518862247467, 0.3940317630767822, -0.11946990340948105, -0.012086255475878716,...
SELECT p1.ID, m1.meta_value, t1.name FROM $wpdb->posts p1,
[ -0.1005982905626297, -0.15537340939044952, 0.1270783394575119, 0.2452162504196167, 0.0919315442442894, 0.2863571047782898, 0.06899324059486389, -0.1657819300889969, 0.03666623309254646, -0.6090605854988098, -0.24572725594043732, 0.04897033050656319, -0.35770076513290405, 0.1085253730416297...
$wpdb->postmeta m1, $wpdb->term_relationships tr1, $wpdb->term_taxonomy tt1, $wpdb->terms t1,
[ -0.011133263818919659, -0.17834573984146118, 0.3950504660606384, 0.10302889347076416, -0.17241473495960236, 0.07937362045049667, 0.08955170214176178, -0.12877409160137177, -0.10381413251161575, -0.5608311295509338, -0.3806029260158539, 0.41361868381500244, -0.2388916164636612, 0.3183675408...
( SELECT t2.slug as pb_distance, MIN(m2.meta_value) as pb_duration FROM $wpdb->posts p2,
[ -0.06420531868934631, -0.45427513122558594, 0.25207310914993286, -0.22637814283370972, 0.199429452419281, 0.01944282278418541, 0.4219520688056946, -0.19631130993366241, -0.36872005462646484, -0.5761821269989014, -0.18678098917007446, 0.18883271515369415, 0.012953882105648518, 0.30517810583...
$wpdb->postmeta m2, $wpdb->term_relationships tr2,
[ -0.21184402704238892, -0.12669767439365387, 0.2894820272922516, -0.03145239129662514, -0.03745513781905174, 0.1460227370262146, 0.16508416831493378, -0.12075623124837875, -0.08552327007055283, -0.49874502420425415, -0.353213906288147, 0.43130776286125183, -0.25714635848999023, 0.2366102337...
$wpdb->term_taxonomy tt2, $wpdb->terms t2 WHERE p2.ID = tr2.object_id
[ 0.19429543614387512, -0.2757719159126282, 0.18396984040737152, 0.08846662938594818, -0.17953398823738098, -0.08207269012928009, 0.054976530373096466, -0.18451400101184845, -0.2521072030067444, -0.5181941986083984, -0.2224171906709671, 0.5751123428344727, -0.252145916223526, 0.1949932426214...
AND p2.ID = m2.post_id AND tr2.term_taxonomy_id = tt2.term_taxonomy_id
[ -0.15995439887046814, -0.11199704557657242, 0.43501976132392883, 0.036751698702573776, 0.18509970605373383, 0.3529781103134155, -0.23888161778450012, -0.23138459026813507, -0.413417249917984, -0.3166970908641815, -0.38781416416168213, 0.5148887634277344, 0.023602981120347977, 0.19302049279...
AND tt2.term_id = t2.term_id AND p2.post_type = 'runs' AND p2.post_status = 'publish'
[ 0.06873419880867004, -0.059485845267772675, 0.44011127948760986, 0.0050653754733502865, 0.17592962086200714, -0.004796553868800402, -0.02645636349916458, -0.19800731539726257, -0.13512301445007324, -0.06615981459617615, -0.5189985036849976, 0.48129698634147644, -0.21313442289829254, 0.1245...
AND m2.meta_key = 'ssr_duration_min' AND t2.slug IN $slugs GROUP BY
[ -0.15294726192951202, 0.03037825971841812, -0.028018301352858543, -0.04979292303323746, 0.02139757014811039, 0.35621386766433716, -0.02058248035609722, -0.21897464990615845, -0.46218401193618774, -0.35767054557800293, 0.29899030923843384, 0.5565516948699951, -0.17039047181606293, 0.1999178...
t2.slug ) pb WHERE p1.ID = m1.post_id AND p1.ID = tr1.object_id AND tr1.term_taxonomy_id = tt1.term_taxonomy_id AND tt1.term_id = t1.term_id
[ 0.1325068324804306, -0.35922685265541077, 0.1846928894519806, -0.07918878644704819, -0.052996132522821426, 0.4981691539287567, -0.23755738139152527, -0.3334541618824005, -0.16434870660305023, -0.27183252573013306, -0.024655330926179886, 0.5275194048881531, -0.2717323303222656, 0.0811590701...
AND p1.post_type = 'runs' AND p1.post_status = 'publish' AND m1.meta_key = 'ssr_duration_min' AND t1.slug in $slugs
[ 0.005611137952655554, -0.09709765017032623, 0.23467865586280823, -0.006586239207535982, 0.13802054524421692, 0.31640729308128357, -0.01423049345612526, -0.16844385862350464, -0.36284440755844116, -0.17425791919231415, 0.194110706448555, 0.5913887619972229, -0.26710763573646545, 0.183947563...
AND m1.meta_value = pb.pb_duration ORDER BY meta_value+0 ```
[ -0.29613611102104187, 0.07033777981996536, 0.3374771475791931, -0.39807695150375366, 0.07270453125238419, 0.2904371917247772, 0.36919254064559937, -0.42193812131881714, -0.3936329782009125, -0.11325043439865112, -0.35390928387641907, 0.5058211088180542, -0.45859578251838684, 0.072285532951...
In a debugger I "froze" when executing such line of code: `lock (myvar)` Obviously someone else is holding `myvar`. However I expect at this line that `myvar` should be free. So I want to know which part of code holdes `myvar` (from another thread diffenetely). How can I do that? I know which thread holdes it (because ...
[ -0.06965482234954834, 0.05926542729139328, 0.3701695501804352, -0.16876475512981415, 0.02524360455572605, -0.061831120401620865, 0.4846181571483612, -0.2753661870956421, -0.26583221554756165, -0.35753560066223145, -0.2605529725551605, 0.4857056140899658, -0.47041305899620056, 0.37495741248...
that's about it. The rest should come from your code's logic.
[ 0.43524736166000366, 0.3393150866031647, -0.32919371128082275, 0.28570201992988586, -0.004687631968408823, 0.020822489634156227, 0.26327604055404663, 0.045010484755039215, -0.04722136631608009, -0.08270468562841415, 0.04932589828968048, 0.618369996547699, 0.1343400478363037, 0.016972914338...
I use Box2d. I create ChainShape. Suddenly, I need to continue the chain. I know command `SetNextVertex(b2Vec2(-2.0f, 0.0f));` **How use it? How to continue the chain?** The `lock()` statement uses the `Monitor` class which does not support querying the locking threads. In Fx 4.5 you can check `Monitor.IsEnter...
[ 0.8874899744987488, -0.07661494612693787, 0.5267112255096436, -0.3040647804737091, 0.024263307452201843, -0.24656794965267181, 0.25429633259773254, -0.36458852887153625, -0.08748051524162292, -0.4572823643684387, 0.06589273363351822, 0.6806726455688477, -0.4053803086280823, 0.2095492631196...
I am using the HTML button tag but the style mentioned below should only apply to the top menu rather than the other button tags in the site. I tried using the code `button.menuButton:hover` but it does not work ``` <button id="menuButton" type="button" name="menuButton" title="Logout"> <img src="images/commonicon...
[ 0.38538283109664917, 0.1141962856054306, 0.7287200093269348, -0.35748934745788574, -0.020180784165859222, 0.1394144743680954, 0.11294722557067871, 0.036529552191495895, -0.10166968405246735, -0.8255365490913391, -0.06308483332395554, 0.48829397559165955, -0.2248590588569641, 0.106540285050...
only specific buttons, you should specify a class only in those button tags. for example: This is the button class: ``` .mybutton { border: 1px dashed #CCCCCC; border-bottom: 2px ridge Lime; } ``` And while declaring the button: This button will have the style : ``` <button id="menuButton" type="button...
[ 0.1701688915491104, 0.06587370485067368, 0.6447482109069824, -0.16802769899368286, -0.11235209554433823, 0.23248936235904694, -0.3110707104206085, -0.23440514504909515, -0.2918161451816559, -0.6654624938964844, -0.2802773118019104, 0.35934969782829285, -0.48528361320495605, 0.1172333136200...
I have to implement one web2py application which has to access java code (which has code to connect to the remote machine) but not sure whether we can do it in web2py or not.My PC has Java 1.6, Python2.7 ,web2py ,eclipse installed. Use case is : I have created one button in web2py application and upon clicking the bu...
[ 0.17234599590301514, -0.018421566113829613, 0.1994865983724594, -0.03541606292128563, -0.11081802845001221, 0.054809994995594025, 0.08917365968227386, -0.01307531725615263, -0.3103189468383789, -0.735920250415802, 0.1045648381114006, 0.5097566843032837, -0.4727804660797119, -0.039319515228...
to import that class from python code? 3. How to instantiate java object from python code? 4. And how to invoke java method from python code? Regards, Piks I would consider looking into webservices. If you could expose url from java, that will route to a method/function of java where logic is performed and it returns ...
[ 0.18332497775554657, -0.22077032923698425, -0.14320099353790283, 0.2765154242515564, -0.3962237238883972, -0.1681869775056839, 0.1864258050918579, -0.06307559460401535, -0.31547415256500244, -0.7140044569969177, 0.05869177356362343, 0.5756240487098694, -0.1209239810705185, -0.0998269468545...
just hash\_arrays/dictionaries with some special qualities. So if you can serialize and deserialize the object and expose apriopriate urls you will be fine. Also there is implementation of web2py in jython. But then the entire stack will be in JVM and i may be more complex to work with.
[ 0.034847650676965714, 0.029528990387916565, 0.370216429233551, -0.03682640194892883, -0.5133827924728394, -0.03633574768900871, 0.2309303879737854, 0.17353692650794983, -0.3867476284503937, -0.8229649066925049, 0.09270064532756805, 0.4626022279262543, -0.31678226590156555, 0.01591996289789...
OK so basically I want to start listening for a single update from a `BroadcastReceiver`, and for some reason all the providers are disabled from my access. Here is the code snippet ``` LocationManager locationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); C...
[ 0.39790889620780945, -0.08711905032396317, 0.7424169778823853, -0.24662694334983826, 0.3240686357021332, -0.22208821773529053, 0.36239197850227356, -0.33122795820236206, -0.39174842834472656, -0.8249397873878479, -0.3430282771587372, 0.5612733960151672, -0.16838710010051727, 0.375530570745...
"enabled..."); allProviders = locationManager.getProviders(true); for(int i=0; i < allProviders.size();i++) { Log.d("location test", "enabled provider " + i + ": " + allProviders.get(i)); } ``` and my logcat results ``` 04-09 11:23:35.763: D/location test(32576): major provider null 04-09 11:23:35.763: D/locatio...
[ 0.14810900390148163, 0.0551169253885746, 0.6754902005195618, -0.19038225710391998, 0.1305859088897705, 0.046007055789232254, 0.6822608709335327, -0.28147056698799133, -0.31758540868759155, -0.7459461688995361, -0.47044798731803894, 0.7706828713417053, -0.4189969301223755, -0.09883155673742...
a permission issue. If anyone runs across this again then just add the use permissions to manifest ``` <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> ```
[ 0.18377910554409027, 0.19433476030826569, 0.42082729935646057, -0.007057119160890579, 0.3281022608280182, -0.1084839254617691, 0.0795518085360527, -0.1072147935628891, -0.2882833182811737, -1.0147686004638672, -0.10103226453065872, 0.45808735489845276, -0.41564226150512695, 0.2030044198036...
I have to filter out certain elements from an array in javascript and thought of using underscore.js for this purpose. As I am new to it,some help is appreciated.Please refer the code below , I have to find A \ B and assign the result to C . Does underscore.js has any convinience method to do that ? ``` function test...
[ 0.2458382546901703, 0.19755733013153076, 0.009490417316555977, -0.45226553082466125, 0.03911780193448067, -0.03147849440574646, 0.5658043622970581, -0.43142271041870117, -0.03423825651407242, -0.22925180196762085, -0.2169116884469986, 0.43132713437080383, -0.40088698267936707, -0.025530397...
alert(c); } ``` By using `difference` method: ``` var c = _.difference(a, b); ``` <http://documentcloud.github.com/underscore/#difference>
[ 0.1976281702518463, 0.09660347551107407, 0.40283292531967163, -0.3342270255088806, -0.06486469507217407, 0.10497558861970901, 0.014786864630877972, -0.5769113898277283, 0.004250941798090935, -0.2031494379043579, -0.13520638644695282, 0.458473265171051, -0.4899143874645233, 0.02566927857697...
Our Web application is based on IE9, which means only IE9 can open the pages in our site. We'll prevent user to browse our site when their browser is not IE9. But sometimes we had to send a link to user's email box to complete some actions and they will open the link directly with their default browser, the problem is...
[ 0.42878884077072144, 0.2106112688779831, 0.4613293409347534, 0.2090059369802475, -0.030551282688975334, -0.27960264682769775, 0.2782200574874878, 0.1237499862909317, -0.18790706992149353, -0.755797266960144, -0.09069444239139557, 0.436494916677475, -0.3569077253341675, 0.17728610336780548,...
what the default browser is. I have tried using ActiveXObject, but it only works in IE. I want have a script which can open IE browser in Firefox/Chrome page. It sounds like you want to have a link in an email that activates a *specific* program on the user's computer rather than the program that they've identified sh...
[ 0.3408823609352112, -0.08802703768014908, 0.34250813722610474, -0.20376940071582794, -0.0976284071803093, -0.3650236129760742, 0.44374531507492065, -0.0014853236498311162, -0.13062357902526855, -1.0807750225067139, -0.07356443256139755, 0.7659612894058228, -0.7307304739952087, -0.106803499...
you to the relevant site. (Apple does this with iTunes.) But your users would have to install the handler (and, of course, you'd have to write it). An easier answer might be to have the users install any of the ubiquitous "open in IE" add-ons/extensions that exist for Chrome, Firefox, etc. They follow the link, then c...
[ 0.46248525381088257, 0.16322800517082214, 0.574646532535553, -0.02235514111816883, -0.09364654123783112, -0.4607454538345337, 0.4416215121746063, 0.2431299239397049, 0.006042373366653919, -0.9235975742340088, -0.4464472830295563, 0.48735931515693665, -0.3917715549468994, -0.076675772666931...
Chrome and Firefox.
[ 0.3099614381790161, 0.11308688670396805, 0.2303047627210617, -0.03794455900788307, 0.12767423689365387, 0.05346452817320824, -0.4447944164276123, 0.062125314027071, -0.01268854457885027, -0.5000366568565369, -0.3610379695892334, 0.4752557575702667, -0.2810298800468445, 0.08349068462848663,...
Currently I am reading the book: Lions\_Commentary\_on\_UNIX\_6th\_Edition, together I am trying to understand the source code of unix v6, and I found some code intriguing: e.g. ``` . = 40^. ... . = 60^. ``` This is some PDP-11 assembly which I am not very good at, so could anyone explain to me what did these codes ...
[ 0.3255428373813629, 0.5107899308204651, 0.06759197264909744, -0.2147965431213379, -0.2783966362476349, -0.07135920226573944, -0.04582023620605469, -0.10265592485666275, -0.3273744583129883, -0.6020708680152893, -0.10328982025384903, 0.5931145548820496, -0.16689813137054443, 0.2228527367115...
is to move the assembler location counter around. If the statement read ``` . = 40 + . ``` it would mean change the location counter to 40 (octal) + the current value of the location counter. What confuses me is that the `^` is an unary operator that according to the MACRO11 manual I have doesn't make sense in this...
[ -0.17266148328781128, -0.006023199763149023, 0.649615466594696, -0.40890252590179443, 0.24245667457580566, 0.2483551800251007, -0.21819846332073212, -0.11465618014335632, -0.34716111421585083, -0.32505714893341064, -0.06580445915460587, 0.5661959052085876, -0.3388359546661377, 0.0944589152...
``` for i=0:255 m(i+1)=sum((0:i)'.*p(1:i+1)); end ``` What is happening can anyone explain. p is an array of size 256 elements same as m. ``` p = (0:255)'; m = zeros(1,256); for i=0:255 m(i+1)=sum((0:i)'.*p(1:i+1)); end ``` `m[i+1]` contains the scalar product of `[0,1,2,..,i]` with `(p[1],...,p[i+1])` You c...
[ -0.22922933101654053, -0.04583275690674782, 0.8609905242919922, -0.38611218333244324, 0.0074132755398750305, -0.10426884144544601, 0.19881205260753632, -0.44008293747901917, -0.4938843250274658, -0.3085238039493561, -0.35229966044425964, 0.18212689459323883, -0.5142608284950256, 0.27903494...
Why doesn't this PHP PDO snippet work? ``` $DBH = new PDO("mysql:host=$host;dbname=$dbname", $user, $pass); $STH->bindParam(':fftb', $fftb); $STH->bindParam(':st', $st); $STH->bindParam(':la', $la); $STH->bindParam(':cf', $cf); $STH->bindParam(':total', $total); $STH = $DBH->prepare("INSERT INTO orders (fftb...
[ -0.008474023081362247, 0.17655415832996368, 0.41218069195747375, -0.36520299315452576, -0.2905254364013672, 0.22820697724819183, 0.44663119316101074, -0.5001706480979919, 0.01542908139526844, -0.4714173376560211, -0.5127005577087402, 0.251201331615448, -0.5083050727844238, -0.0118937371298...
Here's what I expected to be a perfectly straightforward question, but I can't find a definitive answer in the Guides or elsewhere. I have two attributes on an ActiveRecord. I want exactly one to be present and the other to be nil or a blank string. How do I do the equivalent of :presence => false? I want to make sur...
[ -0.11456573009490967, -0.11636298149824142, 0.3243887722492218, 0.1345440149307251, -0.04892406240105629, 0.10116638243198395, 0.47359415888786316, -0.10278915613889694, -0.08862873166799545, -0.673357367515564, -0.05360300466418266, 0.5281027555465698, -0.2437964826822281, -0.017694571986...
=> "!first_attribute.blank?" ``` Or perhaps there's a more elegant way to do this... I'm running Rails 3.0.9 ``` class NoPresenceValidator < ActiveModel::EachValidator
[ -0.15254642069339752, -0.16231901943683624, -0.060873206704854965, 0.04868932068347931, -0.040054164826869965, -0.04404471442103386, 0.26953715085983276, 0.05035651847720146, -0.38144123554229736, -0.8263673186302185, 0.16930708289146423, 0.6371162533760071, -0.33245429396629333, 0.2334623...
def validate_each(record, attribute, value)
[ 0.3061044216156006, 0.14517100155353546, 0.0022195696365088224, 0.20670649409294128, -0.03193015977740288, -0.35012802481651306, 0.5484143495559692, -0.5657511353492737, -0.09561771154403687, -0.07780278474092484, -0.12627333402633667, 0.42312586307525635, -0.1948036253452301, -0.086925432...
record.errors[attribute] << (options[:message] || 'must be blank') unless record.send(attribute).blank? end end
[ 0.05458107963204384, 0.12432171404361725, -0.021644461899995804, 0.13251842558383942, 0.05880126729607582, 0.04223089665174484, 0.22416755557060242, 0.08753186464309692, -0.43044182658195496, -0.2937830090522766, -0.1463492065668106, 0.41603267192840576, -0.13301630318164825, 0.36114177107...
validates :first_attribute, :presence => true, :if => "second_attribute.blank?" validates :second_attribute, :presence => true, :if => "first_attribute.blank?" validates :first_attribute, :no_presence => true, :if => "!second_attribute.blank?" validates :second_attribute, :no_presence => true, :if => "!first_attribute...
[ -0.18542002141475677, 0.29735907912254333, 0.19369997084140778, 0.16994816064834595, 0.038341306149959564, 0.2122248411178589, 0.13229624927043915, -0.3794178068637848, -0.21267634630203247, -0.37762680649757385, -0.38326844573020935, 0.37487348914146423, -0.06639178842306137, 0.0179635882...
On the same IIS web site, I have two ASP.NET web applications called /foo and /bar. Both use forms authentication and I want users to be able to log in and out of both sites independently. With the standard configuration for forms authentication, it seems to send a cookie path of "/" for the forms auth cookie. This me...
[ 0.3983701467514038, 0.25295504927635193, 0.6426765322685242, -0.19325140118598938, -0.053245313465595245, 0.09382802248001099, 0.1698949784040451, -0.43203204870224, -0.24329784512519836, -0.735974907875061, 0.050474006682634354, 0.4140644967556, -0.3047007918357849, 0.0007672479841858149,...
into /foo and /bar independently :-) However there is a further and more nasty problem: If the user tries to log into /Foo (with a capital F), IIS directs them to the web application /foo, but they can never log in because the browser (chrome in this case) is case sensitive when deciding whether to send the cookie base...
[ 0.2672446370124817, 0.3239455819129944, 0.4301306903362274, -0.217850461602211, -0.1575830578804016, -0.0020659691654145718, 0.5989988446235657, 0.07823192328214645, -0.25203338265419006, -0.6026099324226379, -0.07936426997184753, 0.4747988283634186, -0.3878050148487091, 0.0086549809202551...
somehow, but since I stumbled upon this question I thought I should add my few cents. To solve the issue use different cookie names in web.config. Something like: ``` <authentication mode="Forms"> <forms name=".ASPXFORMSAUTH_FOO" loginUrl="public/login.aspx" cookieless="UseCookies" slidingExpiration="true"/> ...
[ 0.20736613869667053, 0.4008823037147522, 0.4678828716278076, 0.06820105016231537, -0.10587727278470993, -0.09597327560186386, 0.21167486906051636, -0.2529226243495941, -0.1277851015329361, -0.6019129157066345, 0.008976886980235577, 0.38846662640571594, -0.17168782651424408, -0.006436388008...
I was having a look at this question: [Getting random value from a SQLite table](https://stackoverflow.com/questions/10068099/getting-random-value-from-a-sqlite-table) and it got me wondering if one can duplicate records using SQL. More specifically, is there a construct that allows to transform these records: ``` id|...
[ 0.23439669609069824, -0.09887463599443436, 0.17118984460830688, 0.1887679398059845, 0.13479480147361755, 0.2548103928565979, -0.20148377120494843, -0.2734494209289551, -0.47181302309036255, -0.29504114389419556, 0.1942519098520279, 0.40666085481643677, -0.04933913052082062, 0.0746953785419...
SQL dialect; any really, but ideally the most agnostic approach would be the best. **ANOTHER EDIT:** Can it be done within a single SQL statement in say sqlite? You can use a "numbers" table (it's handy for various operations): ``` CREATE TABLE num ( i UNSIGNED INT NOT NULL , PRIMARY KEY (i) ) ; INSERT INTO num (i)...
[ 0.13586543500423431, -0.08954646438360214, 0.24445316195487976, -0.23717059195041656, -0.2000730186700821, -0.19923919439315796, 0.41921961307525635, -0.04084596037864685, -0.041944053024053574, -0.4322330951690674, -0.31383296847343445, 0.5679790377616882, -0.29027310013771057, -0.1906537...
There is of course a limitation on this approach. The query will not produce all the wanted rows, as soon as you have a value in the `count` column that exceeds the maximum value stored in the Numbers table. If the values in the `count` column are unbounded, then only an iterative or recursive solution (like the other ...
[ -0.3984103500843048, -0.05067407712340355, 0.1261226385831833, 0.28129079937934875, -0.02741265669465065, 0.21055996417999268, 0.23710307478904724, -0.3717197775840759, -0.01784818060696125, -0.4871754050254822, -0.3510091304779053, 0.49027279019355774, -0.36628609895706177, 0.086691223084...
I need a button that takes login for certain user without entering the password. This will be done by admin. How can I do this? Or devise.token\_authenticatable is the only normal solution? You could use `token_authenticatable`, but there are also helper methods called `sign_in` and `sign_out`. By giving `sign_in` a ...
[ 0.24027642607688904, 0.015807127580046654, 0.15677039325237274, 0.040553174912929535, 0.1531650573015213, -0.2810779809951782, 0.2935030162334442, -0.043879393488168716, -0.1156628206372261, -0.8268052935600281, -0.013961419463157654, 0.40971091389656067, -0.0470389686524868, -0.0195984020...
I have a program that starts constantly juggles between 3 separate timers. The main thread of my application has a while loop which constantly checks if a global variable has been set to true and if it has, it will stop one timer and launch two other ones - one continuously, another to stop it automatically if it isn'...
[ 0.3748503625392914, 0.14063112437725067, 0.4676818549633026, 0.06417267769575119, 0.0023490467574447393, 0.05017787590622902, 0.5169193148612976, 0.06752165406942368, -0.35752686858177185, -0.23020923137664795, 0.10848204791545868, 0.6992359161376953, -0.16091610491275787, 0.16672615706920...
way to decrease that number by decreasing the speed of the while loop or something? Thanks. > Is there a way to decrease that number by decreasing the speed of the while loop or something? Yes, you could insert a call to `Thread.Sleep(n)`. With a granularity of ~20 ms. But the far better option would be using a Wai...
[ 0.29293736815452576, -0.5213897228240967, 0.4270192086696625, 0.19249315559864044, -0.04412287846207619, 0.11310210078954697, 0.22553910315036774, 0.08016928285360336, -0.6169053316116333, -0.5260880589485168, 0.42726564407348633, 0.5417511463165283, -0.1478922814130783, 0.1786844730377197...
I have two WCF services Exchange1.svc and Exchange2.svc both setup to be RESTful JSON consummables. Exchange1.svc works fine, but when I try to post to Exchange2.svc, I get an Endpoint not found message. What am I doing wrong? My IExchange2 interface is: ``` [ServiceContract] public interface IExchange2 { [Syste...
[ 0.0016221558908000588, 0.12622375786304474, 0.5374202728271484, -0.282038152217865, -0.12991125881671906, -0.06411124020814896, 0.6918097138404846, -0.2598835825920105, -0.07992871105670929, -0.8770696520805359, 0.21839863061904907, 0.46214085817337036, -0.1877504289150238, 0.2112500965595...
</behavior> <behavior name="MyNamespace.Exchange2Behavior"> <webHttp/> </behavior> </endpointBehaviors> </behaviors> <services> <service name="MyNamespace.Exchange1"> <endpoint address="" binding="webHttpBinding" behaviorConfiguration="MyNamespace.Exchange1Behavi...
[ -0.3639748692512512, 0.1322520226240158, 0.4081783890724182, -0.22997894883155823, -0.2874818742275238, 0.2623847723007202, 0.4840056598186493, -0.364766001701355, -0.2455766201019287, -0.7092005014419556, -0.1304752379655838, 0.4448588490486145, -0.15448418259620667, 0.05571236088871956, ...
my post since the answer did not help. Since you are hosting in IIS with svc you don't need to set an address in your binding as I was saying in my previous answer. The baseaddress will be the location of you server. Ex: `http://localhost:49701/Exchange2.svc`. If you hit this address you should get to a WCF Service web...
[ -0.02344743348658085, 0.07994112372398376, 0.869610607624054, -0.11178217828273773, -0.3598114848136902, -0.07699557393789291, 0.3463200032711029, -0.3634929358959198, -0.2573917508125305, -0.5646196007728577, 0.1301097422838211, 0.18690285086631775, -0.1747685670852661, 0.5327077507972717...
body of the request body you set `{ memberID:"123" }` change 123 to whatever value you want to send to your service. Or you can send the data in the address like: `http://localhost:49701/Exchange2.svc/InsertReading?memberID=123` If you now execute your request it should return a response 200 OK.
[ 0.3940349519252777, -0.26351436972618103, 0.6566925644874573, 0.047500040382146835, -0.10959165543317795, -0.024375256150960922, 0.10520392656326294, -0.6300657987594604, -0.1874912530183792, -0.497742623090744, -0.2615917921066284, 0.3185496926307678, -0.1503024846315384, 0.01503661461174...
I run following queries : ``` a. select * from TABLE_TEMP ``` The query is executed successfully but, no rows are returned. the returned dataset is empty and contains 0 rows. The execution plan of this query can be downloaded from : [Execution Plan Query a](https://docs.google.com/open?id=0B4OsGTJgg3DhY0k4a3JnWjJRY...
[ 0.17287836968898773, 0.26227065920829773, 0.353626549243927, 0.14906275272369385, 0.0196662750095129, -0.05300762876868248, 0.6052132844924927, -0.1026352271437645, -0.15807566046714783, -0.6441941261291504, -0.01852676458656788, 0.23223760724067688, -0.3950110375881195, 0.4783067107200622...
familiarising yourself with [the documentation](http://msdn.microsoft.com/en-us/library/ms176064.aspx). In particular, the section on index checking with respect to database compatibility levels and: > In earlier versions of SQL Server, the values for the per-table and per-index row count and page counts can become in...
[ -0.08199813216924667, 0.40321609377861023, 0.521975576877594, 0.2061953991651535, 0.10819169878959656, -0.3402220606803894, 0.40829503536224365, -0.18991513550281525, -0.13502661883831024, -0.32090818881988525, 0.013311625458300114, 0.5859730839729309, -0.3963489234447479, -0.0000872511445...
Can I pass an array to printf directly: ``` char text[1024] = "text"; printf("%s", text); ``` Or should I explicitly cast it to a char pointer: ``` char text[1024] = "text"; printf("%s", (char*) text); ``` I'm asking because I thought maybe it copies the array elements directly into the va\_list instead of puttin...
[ 0.08344338089227676, 0.10784915089607239, 0.3393494784832001, -0.17302583158016205, -0.15837475657463074, 0.24323315918445587, 0.43943721055984497, -0.44025275111198425, -0.02183123119175434, -0.6708622574806213, -0.24095159769058228, 0.6865821480751038, -0.3235187530517578, -0.08602739870...
What I need is: I need to delete the entire line but need to keep the matching strings. matching pattern starting with **`Unhandled`** and ending with a **`:`** I tried the below code which prints the matching pattern, but I need to delete the extra lines from the file. ``` perl -0777 -ne 'print "Unhandled error ...
[ -0.2819005250930786, 0.1987636685371399, 0.6805187463760376, 0.10050003230571747, 0.01592952385544777, 0.30037301778793335, 0.6203527450561523, -0.3708815276622772, -0.0941028967499733, -0.6903626918792725, -0.22102805972099304, 0.4369802474975586, -0.24404610693454742, 0.11012887209653854...
-0777 -i -pe 's/.*?(Unhandled error .*?):.*/$1/g' filename ``` This will replace error block with matched string in the file. **`-0777`** : will force Perl to read the whole file in one shot. **`-i`** : means in-place editing of files. **`-p`** : means loop line-by-line through contents of file,execute code in...
[ -0.17165058851242065, -0.05882541090250015, 0.6304071545600891, -0.08451493084430695, -0.24376361072063446, 0.09387052059173584, 0.5298194885253906, -0.2476789504289627, -0.24565087258815765, -0.44916483759880066, -0.5236214399337769, 0.6135412454605103, -0.35164713859558105, -0.2508730590...
[ *This question is regarding [IObservable / Rx](http://blogs.microsoft.co.il/blogs/bnaya/archive/2010/02/19/rx-reactive-extension-for-beginner-part-1.aspx)* ] ### Working Fixed Delay ``` var frequency = TimeSpan.FromMinutes(5); Result.Delay(frequency).Subscribe(i => Debug.WriteLine("After Fixed Delay")); ``` ### P...
[ 0.16427825391292572, -0.30931100249290466, 0.8097391128540039, -0.16939863562583923, 0.0652945339679718, 0.178658127784729, 0.0690280869603157, -0.36213311553001404, -0.5964948534965515, -0.34695059061050415, -0.1401098221540451, 0.5641334652900696, -0.46834486722946167, 0.4297075867652893...
I initialized an Array as ``` Double[][] myarr = Enumerable.Repeat(new double[12], 13).ToArray(); ``` Then in a loop i am incrementing values like ``` myarr[0][0]++; ``` This causes all values like myarr[1][0], myarr[2][0], myarr[3][0] ..... myarr[12][0] to increment by one. This problem is not occurring when ...
[ 0.11156460642814636, 0.046005960553884506, 0.19317547976970673, -0.41257303953170776, -0.4812086522579193, 0.16053594648838043, 0.5271128416061401, -0.5921947360038757, -0.24170604348182678, -0.3252519965171814, -0.18376277387142181, 0.23074276745319366, -0.34343278408050537, 0.16422605514...
.Select(ignored => new double[12]) .ToArray(); ```
[ 0.25830918550491333, 0.008070522919297218, 0.1941547989845276, -0.2971652150154114, 0.41961780190467834, 0.039324428886175156, 0.4533826410770416, -0.2712678611278534, -0.11457753926515579, -0.5261840224266052, -0.21716734766960144, 0.7052412033081055, -0.4417916536331177, 0.31807014346122...
I want to dynamically increase the height of tableview cell according to Content of textview in cell. Here I create textview and add that textview in cell as subview. So according to content of textview height of tableview cell is get fixed. Any one know how to do that. Thanks in advance ``` - (CGFloat)tableView:(UIT...
[ -0.19004327058792114, 0.05588054284453392, 1.0178242921829224, 0.003272952977567911, -0.19932982325553894, 0.033960163593292236, 0.26154184341430664, -0.5096904635429382, -0.45453590154647827, -0.792294979095459, 0.1305992156267166, 0.6249315738677979, -0.008299577981233597, 0.172192558646...
dwnqwdjvqhdq nwwdjqwvdhjqwd qwdhjvhvbjd n qhjdvqdw dbqw wbdww."; CGSize size = [temp sizeWithFont:[UIFont systemFontOfSize:13.0f] constrainedToSize:CGSizeMake(300, 5000) lineBreakMode:UILineBreakModeWordWrap];// calculate the height rowHeight = size.height+10; // i use 10.0f pixel extra b...
[ -0.25195369124412537, -0.3579674959182739, 0.947280764579773, -0.07008399814367294, 0.03775295242667198, 0.403652548789978, 0.33830493688583374, -0.582817792892456, -0.2543448507785797, -0.7118328213691711, -0.12708264589309692, 0.4275526702404022, 0.189043790102005, 0.05050305649638176, ...
I am currently using tomcat 6 as my Web Server. I have a very small application which should not take long to deploy on server, but my tomcat is taking too long start. It is taking most of its time in following step. INFO: Starting Servlet Engine: Apache Tomcat/6.0.16 I don't know why it is taking much time. Same...
[ 0.26414167881011963, 0.1278943568468094, 0.6146441698074341, 0.04972100630402565, -0.19285883009433746, -0.1891634464263916, 0.4229258596897125, 0.014308142475783825, -0.3129514753818512, -0.5724052786827087, -0.0003950691025238484, 0.4931800365447998, -0.14654414355754852, 0.3993757665157...
the server is being started in a debug mode, pause its thread several times and examine stacktraces. There may be possibly some library that populates its Spring application context, weaves advised objects, initializes file storage, whatever. If so, you will see it from stacktraces.
[ 0.19689933955669403, -0.2557079493999481, 0.5703460574150085, 0.07127850502729416, 0.1438821405172348, -0.15728311240673065, 0.16022472083568573, 0.20674994587898254, -0.2779303789138794, -0.4343946576118469, -0.12044839560985565, 0.18250028789043427, 0.0022464911453425884, 0.1458993107080...
I've to develop an android application that allows users to chat I want to make textView that handle their conversations in Balloon as shown in the picture below ,, can anyone inform me how can I do that ???? thanks in advance ![enter image description here](https://i.stack.imgur.com/3tLXe.jpg) create two balloon...
[ 0.5465721487998962, -0.09092828631401062, 0.5382328033447266, 0.16755960881710052, 0.0768260806798935, 0.13345570862293243, -0.1037394180893898, 0.04459422081708908, -0.363276869058609, -0.7176838517189026, 0.09392992407083511, 0.2058846652507782, -0.22217442095279694, -0.20595195889472961...
The question is : Find the maximum sum possible in an array of positive integers by selecting the elements in such a way that no two elements are next to each other. there is an answer like this : but what is the best answer for this question > Let's denote the array by "t" and index it from 0. Let f be a > functio...
[ -0.2823343276977539, -0.32477179169654846, 0.05720119923353195, -0.0555826760828495, -0.07634161412715912, 0.005297351162880659, 0.18008913099765778, -0.6236897110939026, -0.21186406910419464, -0.4739757180213928, -0.24940618872642517, 0.4392113983631134, -0.46642163395881653, -0.199100568...
>= 2 If the array has n elements we need f(n-1). ``` Thanks in advance. Solution you proposed is [good one](http://www.glassdoor.com/Interview/Find-the-maximum-sum-possible-in-an-array-of-positive-integers-by-selecting-the-elements-in-such-a-way-that-no-two-elements-QTN_250824.htm). Similar approach (page 7 [here]...
[ -0.10102996975183487, -0.03418254852294922, 0.33373990654945374, -0.34219324588775635, -0.0026174429804086685, -0.06851872056722641, 0.12486374378204346, -0.635628879070282, -0.2661522626876831, -0.5568394064903259, -0.19555282592773438, 0.3905623257160187, -0.27620530128479004, -0.1757039...
On enabling ssl mode in Tomcat 7, I'm getting the following error on my tomcat logs I have genrated .key file using openssl like below ``` openssl genrsa -des3 -out localhost 2048 ``` And I given the path to my key file in tomcat server.xml > SEVERE: Failed to initialize end point associated with ProtocolHandler >...
[ -0.021778803318738937, -0.23178932070732117, 0.5120501518249512, -0.08502618223428726, -0.039207350462675095, -0.4897839426994324, 0.8342512845993042, -0.3019861578941345, -0.16379393637180328, -0.8059117197990417, -0.27985960245132446, 0.9964027404785156, -0.36238303780555725, -0.13797928...
depending on whether you're using the APR connector or not. If you're using the [APR connector](http://tomcat.apache.org/tomcat-7.0-doc/apr.html#HTTP/HTTPS), it makes sense to use OpenSSL to generate the keys/certificate, since it's the format it expects. (There are a number of tutorials to generate self-signed certif...
[ 0.03901581093668938, 0.30591103434562683, 0.5497636795043945, -0.166826531291008, -0.10801155865192413, 0.12795789539813995, -0.039027199149131775, -0.27798742055892944, -0.40902137756347656, -0.4520001709461212, -0.2992111146450043, 0.40635815262794495, -0.08379368484020233, 0.00681416131...
`PKCS12` keystore type. (You could convert your PKCS#12 file into a JKS store, but that's not necessary.) However, if you don't have any keys/cert yet, the easiest way to generate a self-signed certificate for Tomcat is to use `keytool` directly. This will produce a `JKS` keystore, which is the default type. [`keytool...
[ 0.20187711715698242, 0.033319227397441864, 0.22415943443775177, 0.07315345108509064, 0.10455358028411865, -0.32487252354621887, 0.5218088626861572, -0.02168099209666252, -0.28220444917678833, -0.3568437993526459, -0.36324459314346313, 0.4955376386642456, -0.14265023171901703, 0.05496178939...
I am using `Asp.Net/C#` in my project.I am using `Forms Authentication`.Currently I call `FormsAuthentication.SignOut()` on click of Asp.Net button.It works well , but my requirement is that I need to log out a user from horizontal menu option > Logout That would be Html menu , so how do I call `FormsAuthentication....
[ 0.3261716067790985, 0.09052485972642899, 0.7008699774742126, -0.13579611480236053, 0.018089866265654564, -0.31745049357414246, 0.12955203652381897, -0.17799913883209229, -0.12140721082687378, -0.9745656847953796, -0.06203233078122139, 0.2836655080318451, -0.13687440752983093, -0.0716041624...
same for you. For example, you can have AJAX service that will call above code or simply speaking, you can have logout.aspx page that will call `FormsAuthentication.SignOut()` in say `page_load`. Such a URI can be invoked from jquery to get you what you want. In your case, you should simply have a link to logout as...
[ 0.14892567694187164, -0.151014044880867, 0.6269088387489319, 0.3194752633571625, 0.12489451467990875, -0.25184768438339233, -0.06045658141374588, 0.10579924285411835, -0.4453471899032593, -1.0214184522628784, -0.12068010866641998, 0.3438118100166321, -0.1309250444173813, -0.085754312574863...
Please any one let me know how the `SelectMany` operator in Rx works. I don't know more about this operator in Linq either. Please explain this with the help of a simple example, and also in what occasion we will use this operator in Rx. `SelectMany` combines projection and flattening into a single step. Suppose you h...
[ -0.021478744223713875, -0.32988470792770386, 0.2532144784927368, -0.0822271928191185, -0.14358757436275482, 0.14317896962165833, -0.32902470231056213, -0.5137068629264832, -0.2322792261838913, -0.7672560214996338, -0.2823761999607086, 0.5450652837753296, -0.4137793779373169, -0.15850372612...
(there are actually several overloads). For a practical example, suppose you have a function `DownloadFile(filename)` which gives you an Observable which produces a value when the file completes downloading. You can now write: ``` string[] files = { "http://.../1", "http://.../2", "http://.../3" }; files.ToObservabl...
[ 0.14146703481674194, -0.30104485154151917, 0.861289918422699, -0.06348910927772522, 0.3438807427883148, -0.20362797379493713, 0.03138937056064606, -0.21729514002799988, -0.3094538450241089, -0.6266129612922668, -0.32235920429229736, 0.7338138818740845, -0.3486148715019226, 0.35015746951103...
Console.WriteLine("Completed!")); ``` All 3 observables of `DownloadFile` are flattened into one, so you can wait for 3 values to arrive to see that all downloads are completed.
[ -0.14035414159297943, -0.09688712656497955, 0.9933550357818604, 0.07688413560390472, 0.4256838858127594, -0.13465093076229095, 0.31609228253364563, -0.04321158677339554, -0.0767122283577919, -0.8295518159866333, -0.3423604369163513, 0.7189459800720215, -0.08900955319404602, 0.1397876888513...
I have two arrays: ``` $array1 = array(1=>1,10=>1,12=>0,13=>13); $array2 = array(1=>"Hello",10=>"Test",12=>"check",13=>"error"); ``` Here $array1 has keys and values. Now I want to take the first value from $array1(as 1) and I want to check if this is repeated in this array . Here 1 is repeated two times so I want ...
[ 0.10374140739440918, 0.08019693940877914, 0.10480199009180069, -0.4302905201911926, -0.2972477972507477, 0.3430226445198059, 0.18005028367042542, -0.5547212958335876, -0.25954386591911316, -0.5575790405273438, 0.21760150790214539, 0.6976906657218933, -0.39261394739151, -0.05026457831263542...
the value of 1 and the value of 10 from $array2 is merged then displayed. Like 12 has 0 this is not repeated so simply take value of 12 from $array2. Like 13. How can I do this? This is really rough, but a simple way of doing it could be: ``` <? $array1 = array(1=>1,10=>1,12=>0,13=>13); $array2 = array(1=>"Hello",...
[ 0.46260395646095276, -0.012012293562293053, 0.07592550665140152, -0.4599919021129608, 0.05956088379025459, 0.0019845599308609962, 0.5595368146896362, -0.6985039710998535, -0.19191348552703857, -0.4436402916908264, -0.08980545401573181, 0.6102660298347473, -0.19582629203796387, -0.192451134...
you're first key is always going to be `1` by the way.
[ 0.06596501171588898, 0.44137170910835266, 0.13092678785324097, -0.05671767145395279, 0.09610991925001144, -0.18494586646556854, -0.13540463149547577, 0.45559462904930115, -0.15508222579956055, -0.4205878674983978, -0.19308112561702728, 0.45453912019729614, 0.06700854003429413, 0.2454488277...
So, I am writing a computer speeder in batch, and I am baffled by this problem: ``` @echo off cls color 02 :licence title Computer Speeder 2012 (Free licence) cls echo This is the free version of Computer Speeder 2012. echo. echo Do you wish to license this copy? [Y]es or [N]o. choice /c NY /n if ERRORLEVEL 2 goto lic...
[ 0.388598769903183, 0.24012883007526398, 0.5872287750244141, 0.17511671781539917, -0.2621716260910034, -0.0985998883843422, 0.4436010718345642, -0.7548373937606812, -0.13225536048412323, -0.14059676229953766, 0.18821004033088684, 0.36090925335884094, -0.34721606969833374, -0.163404598832130...
deleted the file. Check the recycle bin, check you echo put it in the correct path or re-purchase the echo software because it has an individual code. pause goto startup1 ``` For some odd reason, it executes all of this code chronologically: First it asks if you want to license the copy of the software. If you press ...
[ 0.6958476305007935, 0.18651019036769867, 0.3374953866004944, -0.18892237544059753, -0.11249937117099762, 0.02333741821348667, 0.35241127014160156, -0.20278963446617126, -0.059847742319107056, -0.09253989905118942, 0.07843884080648422, 0.3814604580402374, -0.5089074969291687, 0.355365097522...
what I am doing wrong? Im a noob kinda :/ The latest edition of this book is for Rails 3.2 (with Asset Pipeline). You should put your stylesheet under `/app/assets/stylesheets`.
[ 0.16129159927368164, 0.02806730568408966, 0.07787387818098068, 0.022039279341697693, 0.1126711517572403, 0.04592487961053848, 0.4812734127044678, 0.110958531498909, -0.12987400591373444, -0.5858615040779114, 0.04991193860769272, 0.5250612497329712, -0.014255341142416, -0.18452206254005432,...
I want to crop images in PHP. Cropping in rectangular shape is all common and easy to do. Can you guide me that how i can crop image in shape other than square like in oval or round shape. ![Cropped](https://i.stack.imgur.com/9DK61.jpg) ![Original Image](https://i.stack.imgur.com/p8xQU.jpg) You can actually do that w...
[ 0.3860461711883545, -0.02696027047932148, 0.5007001161575317, 0.030980948358774185, -0.3728365898132324, 0.04372075945138931, 0.0030546619091182947, -0.2678595781326294, -0.3517249822616577, -0.7199967503547668, 0.15410813689231873, 0.6170397996902466, -0.09602538496255875, -0.148854017257...
I am learning backgroundworker class in WPF. The code below is in file MainWindow.xaml.cs ``` using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input;...
[ 0.0886320099234581, 0.06298743188381195, 0.3781074285507202, -0.07891132682561874, 0.18107908964157104, 0.17313964664936066, 0.2954917550086975, -0.27100157737731934, 0.08354251086711884, -0.9286394119262695, -0.3048761188983917, 0.45823919773101807, -0.09970394521951675, 0.369883447885513...
backGroundWorker = ((BackgroundWorker)this.FindResource("backgroundWorker")); } private void button1_Click(object sender, RoutedEventArgs e) { button1.IsEnabled = false; Flow pro = new Flow(20,10); backGroundWorker.RunWorkerAsync(pro); } pri...
[ -0.0043092030100524426, -0.5002819299697876, 0.5391488075256348, -0.14583364129066467, 0.4466264545917511, 0.3659021258354187, 0.5030337572097778, -0.19218744337558746, -0.3307892084121704, -0.4426889717578888, -0.32050445675849915, 0.6643837690353394, -0.5464490056037903, -0.0035064059775...
void backgroundWorker_DoWork(object sender, DoWorkEventArgs e) { Flow pro = (Flow)e.Argument; e.Result = pro.NaturalNumbers(); } private void backgroundWorker_ProgressChanged(object sender, ProgressChangedEventArgs e) { progressBar1.Value= e.ProgressPe...
[ -0.05323091149330139, -0.2687978148460388, 0.41437968611717224, -0.1874428242444992, 0.5193575024604797, 0.5184506177902222, 0.34886041283607483, -0.07483789324760437, -0.3303287625312805, -0.3816208243370056, -0.16486644744873047, 0.6767960786819458, -0.5782421827316284, -0.06978103518486...
backgroundWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e) { if ((int)e.Result == 1) MessageBox.Show("DONE"); progressBar1.Value = 0; } } } ``` The code below is in file Flow.cs ``` using System; using System.Collections.Generic; using System.Linq; u...
[ 0.20519424974918365, -0.1608174592256546, 0.7714053392410278, -0.2549045979976654, 0.3398821949958801, 0.3833218514919281, 0.20135770738124847, -0.21440166234970093, -0.2874421775341034, -0.4111170768737793, -0.3644144833087921, 0.3817877173423767, -0.6456401348114014, 0.040798451751470566...
public int X { get; set; } public int Y { get; set; } public Flow(int x, int y) {
[ 0.18425139784812927, -0.41340526938438416, 0.44107991456985474, 0.08583846688270569, -0.11173631250858307, 0.023220807313919067, 0.3168010711669922, -0.2710564136505127, 0.2189377248287201, -0.3735949397087097, -0.30605629086494446, 0.6038451194763184, -0.5217472314834595, 0.04551965370774...