Posts

assign number every time an event occurs in r -

i have data: t <- c(na,na,na,1,na,na,na,na,1,na,1) dt <- data.table(t) t 1: na 2: na 3: na 4: 1 5: na 6: na 7: na 8: na 9: 1 10: na 11: 1 is possible create new column z , assign number in ascending order every time 1 occurs in t column, this: t z 1: na na 2: na na 3: na na 4: 1 1 5: na na 6: na na 7: na na 8: na na 9: 1 2 10: na na 11: 1 3 thank you we can create logical index of non-na elements in 'i' , assign ('z') sequence of 't' dt[!is.na(t), z := seq_along(t)] dt # t z # 1: na na # 2: na na # 3: na na # 4: 1 1 # 5: na na # 6: na na # 7: na na # 8: na na # 9: 1 2 #10: na na #11: 1 3

reporting services - Bar Chart with Vertical Axis Max value set but can't see data label -

Image
i have report have set max value axis range. once rendered , bar graph has exceeded max value axis can't see data labels. have tried playing smart labels no avail. how can see data label bar graph once exceeds max value axis? increase max value on vertical axis (or set auto)?

How do I read Element in specific XML file in C#? -

my file xml: <document xmlns="http://www.abbyy.com/finereader_xml/finereader10-schema-v1.xml" version="1.0" producer="abbyy finereader engine 11" languages="" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xsi:schemalocation="http://www.abbyy.com/finereader_xml/finereader10-schema-v1.xml http://www.abbyy.com/finereader_xml/finereader10-schema-v1.xml"> <page width="1006" height="636" resolution="300" originalcoords="1" rotation="rotatedupsidedown"> <block blocktype="text" blockname="" l="979" t="613" r="1006" b="636"><region><rect l="979" t="613" r="1006" b="636"/></region> <text> <par linespacing="890"> <line baseline="17" l="985" t="620" r="1006" b="636"...

android - Removing Sherlock Actionbar library Theme not found -

i have removed actionbarsherlock library , adapted code. errors in style.xml <style name="theme.mytheme" parent="theme.sherlock.light"> what have use instead of sherlock.light theme? if using appcompat library, use appcompat.light @style/theme.appcompat.light else try using holo.light. @android:style/theme.holo.light

in need of an arduino i2c lcd libary -

i have uno r3 atmega328 can't seem match i2c lcd library (i have 20x4 lcd). see websites offer broken links. can tell me can right library at? ide should using board windows 7? all you'll need wire library (included w/ arduino ide) , library lcd here

JavaFX: Run ChangeListener -

ho can run change method inside changelistener in initialization. since run when changes happen. example have textfield want set it's value 0 when it's empty, , this: textfield.textproperty().addlistener(new changelistener<string>() { @override public void changed(observablevalue<? extends string> observable, string oldvalue, string newvalue) { if (!newvalue.matches("\\d*")) { textfield.settext(newvalue.replaceall("[^\\d]", "")); } if (newvalue.isempty()) textfield.settext("0"); } }); but @ start of application changed method not called. how work around issue? there's no way access listener added property. keep reference it: changelistener<string> textfieldlistener = (observable, oldvalue, newvalue) -> { if (!newvalue.matches("\\d*")) { textfield.settext(newvalue.replaceall(...

javascript - Make navbar responsive without changing custom css and effects -

i created site using jekyll , used this theme. however, problem site navbar has links, not collapse when opening website in mobile. in all, navbar not responsive @ all. want make responsive, without changing css. should do? site has bootstrap , jquery included. this header html code: <header class="site-header"> <div class="container"> <a id="site-header-brand" href="/" title="xyz"> site title </a> <nav class="site-header-nav" role="navigation"> <a href="/" class=" site-header-nav-item hvr-underline-from-center" target="" title="home"> home </a> </nav> </div> </header> and here css: .site-header{ padding-top:20px; padding-bottom:20px; width: 100%; posi...