Posts

internet explorer - Selenium python click on span class -

i trying automate intranet site. source code bunch of tables , consists of hundreds of codes below: <span id="gridview1_ctl51_lblcasetype"></span> </td><td nowrap="nowrap"> <span class="fakelink" title="edit case" onmouseenter="this.focus()" onclick="editcase('286658')"> 286658</span> </td><td nowrap="nowrap">1360428-0000</td><td align="center" style="color:red;"> <span id="gridview1_ctl51_label2">13,0</span> </td><td align="center"> <span id="gridview1_ctl51_label2">8,8</span> </td><td align="center"> <span id="gridview1_ctl51_label9">r</span> </td><td> <span id="gridview1_ctl51_label6">waiting info fr. suppl.</span> </td><td> <span id="gridview1_ctl51_label11...

sorting unique values in an array with Ruby -

is there way write method in ruby takes array of items , returns array without duplicates. without using ruby’s uniq method? so, output of array [1,5,"frog", 2,1,3,"frog"] [1,5,"frog",2,3] you getting unexpected end-of-input because using parenthesis instead of braces denote block. try: my_array.to_a.select{ |i| != } but isn't quite you'd expect. here alternative: my_array.group_by{|item| item}.keys hope helps

css - YUI3 Y.Panel - How to hide HTML contents while page is loading? -

i have panel i'm using modal dialog box, , such contents should hidden view while page loading. however, if use css set div's display:none or visibility:hidden yui show() & hide() methods don't work (eg, clicking button call modal dialog greys out screen, referenced div not appear). can point me towards best way this? thanks! try adding yui3-widget-loading container div . when y.panel instantiated, remove class. can define .yui3-widget-loading { display:none; } not visible during page load.

hadoop - Getting java.lang.NoSuchFieldError: INT_8 error while running spark job through oozie -

i getting java.lang.nosuchfielderror: int_8 error when trying execute spark job using oozie on cloudera 5.5.1 version. on appreciated. please find error stackstrace below. 16/01/28 11:21:17 warn tasksetmanager: lost task 0.2 in stage 20.0 (tid 40, zlab-physrv1): java.lang.nosuchfielderror: int_8 @ org.apache.spark.sql.execution.datasources.parquet.catalystschemaconverter.convertfield(catalystschemaconverter.scala:327) @ org.apache.spark.sql.execution.datasources.parquet.catalystschemaconverter.convertfield(catalystschemaconverter.scala:312) @ org.apache.spark.sql.execution.datasources.parquet.catalystschemaconverter$$anonfun$convertfield$1.apply(catalystschemaconverter.scala:517) @ org.apache.spark.sql.execution.datasources.parquet.catalystschemaconverter$$anonfun$convertfield$1.apply(catalystschemaconverter.scala:516) @ scala.collection.indexedseqoptimized$class.foldl(indexedseqoptimized.scala:51) @ scala.collection.indexedseqoptimized$class.foldleft(in...

php - URL perfectly working on localhost, not working on web server -

i've tried other solutions posted here, nothing worked.. i have following code on .htaccess doc. rewriteengine on rewriterule ^registrationform/([a-za-z0-9_-]+)$ registrationform.php?code=$1 rewriterule ^registrationform/([a-za-z0-9_-]+)/$ registrationform.php?code=$1 i receive email , clicking on url access registrationform.php i start registrationform.php that: <?php if (!empty($_get['code']) && isset($_get['code'])) { $code=$_get['code']; do knows why works on localhost not on remote server? the problem not how got code running in acquiring code. problem have occurred here. if (!empty($_get['code']) && isset($_get['code'])) { $code=$_get['code']; the line of code above not able code part part of querystring. querystring has been generated doesn't have word code in it. may want read this article .

how to? bootstrap - 2 Columns with 3 rows with equal height? -

i have 2 columns 3 "rows" (or 3 items). want have row 1 in both columns same height, in row 2 , row 3 same. i know how 3 rows having 2 columns. using 3 rows 2 columns not work on small device, because left columns should first , right column @ end. i want on desktop like: a1|b1 a1|right row same height, less content a1 a2|b2 no content|b2 no content|b2 a3|b3 on mobile should be: a1 a2 a3 b1 b2 b3 if use 3 rows 2 columns work equal height each row on desktop, on mobile have: a1 b1 a2 b2 a3 b3 your specific required cannot solved constructing 3 row 2 column. you should try wrap leftone(s) single div , rightone(s) single div. this <div id="left" class="col-md-8"> a1<br></br> a2<br></br> a3<br></br> </div> <div id="right" class="col-md-8"> b1<br></br> b2<br></br> b3<br></br> </div> this way in norma...

OSX Anaconda default python -

i have anaconda distribution installed on macbook local home directory /users/simon/anaconda when open iterm , type python see default osx install of python. saw thread here , implemented fix mentioned: mac using default python despite anaconda install my .bash_profile looks this: export path="$home/anaconda/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$path" a few strange things happen: when type python still see osx python despite having changed .bash_profile if source /users/simon/.bash_profile fixes problem. using python brings anaconda's python when quit iterm or restart computer , try load python again, goes osx version. .bash_profile remains unchanged. when try of above using terminal works fine. issues described above appear specific iterm2 , i'm not sure why how system use anacondas python instead of osx version? it seems $path redefined somewhere else in configuration. doesn't cause issue if know in order loaded ...