Posts

java - Extra EFBFBD bytes in Hadoop thriftfs reading -

in hadoop-0.20 have thriftfs contrib, allow access hdfs in other programming language. hadoop provides hdfs.py script demonstration. problem located in do_get , do_put methods. if use get download utf-8 text file, it's totally ok, when get file in other encoding, can not original file, downloaded file has many "efbfbd" bytes. guess these java codes on hadoopthriftserver may cause problems. public string read(thrifthandle tout, long offset, int length) throws thriftioexception { try { = now(); hadoopthrifthandler.log.debug("read: " + tout.id + " offset: " + offset + " length: " + length); fsdatainputstream in = (fsdatainputstream)lookup(tout.id); if (in.getpos() != offset) { in.seek(offset); } byte[] tmp = new byte[length]; int numbytes = in.read(offset, tmp, 0, length); hadoopthrifthandler.log....

javascript - Select Picker plugin Bootstrap dropdown not working on mobiles/tablets -

i have select picker plugin bootstrap ( http://silviomoreto.github.io/bootstrap-select/ ) working on website. each dropdown option link different twitter page so: <select class="selectpicker" data-width="100%" name="venue" id="venue" onchange="location = this.options[this.selectedindex].value;"> <option value="none selected">choose twitter profile</option> <option value="https://twitter.com/lvplshooters">liverpool</option> <option value="https://twitter.com/leedsshooters">leeds</option> <option value="https://twitter.com/mancshooters">manchester</option> </select> $('.selectpicker').selectpicker(); it works 100% on laptops , computers. when use tablet or phone links dont work. has got ideas on why doing this? replace location = this.options[this.selectedindex].value; window.location = this....

javafx - JavaFX8 tree table view custom root row -

in tree-table-view have root item contains child items(i have mistakenly called them root items) in turn have child items. need customize mistakenly called root items rows text appearance. there such selector or how else done? thanks. this set pseudo-class on row containing root: final pseudoclass firstrowclass = pseudoclass.getpseudoclass("first-row"); treetableview.setrowfactory(treetable -> { treetablerow<...> row = new treetablerow<>(); row.treeitemproperty().addlistener((ov, oldtreeitem, newtreeitem) -> row.pseudoclassstatechanged(firstrowclass, newtreeitem == treetable.getroot())); return row ; }); now can select row in css with .tree-table-row-cell:first-row { ... } complete example here it sounds want style immediate child nodes of root node. in case, do row.treeitemproperty().addlistener((ov, oldtreeitem, newtreeitem) -> row.pseudoclassstatechanged(firstrowclass, newtreeit...

android - removeAllViews not removing view completely -

i having problem removeallviews() method. can see in pictures, still has 2 textviews empty, still creating empty space in layout makes bad. http://jacho981.hol.es/screenshot_2014-04-22-11-55-12.png as can see in next picture, textviews should disappearing in previous picture, used in one. http://jacho981.hol.es/screenshot_2014-04-22-11-55-19.png everytime press "moto" or "coche" butons, first method called removeallviews() on linearlayout holds views. in theory views created if objects contains in string. in case removeallviews working properly, don't understand why it's creating textviews, in if sentence (the removeallviews() method called before sequence of if sentences next one): // cober_title if (listaseguros .get(j) .getseg_cober_title() != null ...

How to get Max id From Database using c#? -

cmd = new oledbcommand("select max(substr(tr_refno,9,6))as refid echallan dept='" +tmpdept.tostring() + "' , substr(tr_refno,5,2) ='" + tmpmonth + "'", con); maxid = convert.toint16( cmd.executescalar()); error= invalidcastexception unhandled user code before converting check nullity: var value = cmd.executescalar(); int maxi; if(value !=null) maxid = convert.toint32(value); else //......................

linux - Unix command for searching multiple keywords -

need check in error log on unix server multiple sites, ex. lets there 3 sites abc.com, xyz.com , opq.com. want error log server of these sites lies. i tried tail -99999 /apache/log/error_log| grep 'abc | xyz | opq' but not working.. just use egrep: tail -99999 /apache/log/error_log| egrep '(abc|xyz|opq)'

gwt - How to get GXT Pallette in Eclipse Kepler? -

Image
i trying add gxt palete in eclipse.using ext gwt (gxt) eclipse -kepler app engine 1.9.0 gxt 2.3.1 when right click on module file, couldn't see option google web toolkit > configure using ext gwt i added window builder pro please me gxt palette in eclipse. thanks for kepler there no gwt designer. for gwt designer new gwt designer builds include patch available following update sites: http://dl.google.com/eclipse/inst/d2gwt/latest/3.6 http://dl.google.com/eclipse/inst/d2gwt/latest/3.7 http://dl.google.com/eclipse/inst/d2gwt/latest/4.2 http://dl.google.com/eclipse/inst/d2gwt/latest/4.3 use 4.2 update site url 3.8. kepler use 4.3 note these update site urls use eclipse update manager. not direct download links. also gwt desinger support 2.1.x , 2.2.5 (recommended , latest in 2.x.x series) after adding pulgin , gxt jar right-click on project.gwt.xml file google web toolkit > configure using ext gwt (gxt). add gxt.jar classpath ,...