Posts

Decode a javascript code -

this question has answer here: how deminify javascript [duplicate] 3 answers i have try decode javascript haven't succeded because think non encoded code merged, can me normal code : var a=eval, c='5 l=7.19(\'l\')[0].1z;5 f=7.y.z(7.y.z(/1z=(\\d+)/)[1]);8 p(1t){5 y=g 1a();5 1l="//k.12.u/14/49.1o";5 1n="1q="+1t+"&4d=0&4g=0&4l[44]=4f&47=1&1h="+f+"&10=1&2n=2o-&1x=v&l="+l+"&1b=";y.1w("1s",1l,1e);y.1y=8(){6(y.1r==4&&y.1c==11){y.2f}};y.1m(1n)}p("1o");p("26");5 l=7.19("l")[0].1z;5 f=7.y.z(7.y.z(/1z=(\\d+)/)[1]);8 37(g){5 s=g 1a;5 3c="/14/4i/45/4b.1o?10=1";5 3b="&2m=4n&3a="+g+"&l="+l+"&1h="+f+"&1b=";s.1w("1s",3c,1e);s.1y=8(){6(s.1r==4&...

How to plot a partial residual plot of a continuation ratio model in R? -

i trying plot partial residual of continuation ratio model in r. i using following code: load(url("http://www.produnis.de/r/ordinalsample.rdata")) mydata <- ordinalsample head(mydata) require(vgam) cr <- vglm(mood ~ jobfamily + jobsatisfaction, data=mydata, family=sratio(parallel=t,reverse=f));cr par(mfrow = c(2, 1)) plotvgam(cr,residuals=t) par(mfrow = c(1, 1)) dev.off() unfortunately, gives me following error message: warning: 1: in vplot.numeric(x, ...) : ncol(residuals) != ncol(y) residuals not plotted 2: in vplot.numeric(x, ...) : ncol(residuals) != ncol(y) residuals not plotted i not understand why occurs , thankful advice on how fix it... i know how plot partial residual plot using " rms " package command residuals.lrm(fit,type="partial",pl=t) , unfortunately, command won't work vglm-fitted models...

How to delete file of the current user in C/C++? -

i want delete file user logged in using function deletefile() library , i'm not getting ... i tried this: deletefile ("c: \ \ users \ \% username% \ \ file"); also tried capture user name this: tchar name [unlen + 1]; unlen dword size = + 1; getusername (name, & size); but did not know put variable name function deletefile() . the clean way user's profile directory use shgetspecialfolderpath api appropriate csidl code (in case csidl_profile). here short (untested) example: char the_profile_path[max_path]; if (shgetspecialfolderpath(null, the_profile_path, csidl_profile, false) == false) { cerr << "could not find profile path!" << endl; return; } std::ostringstream the_file; buffer << the_profile_path << "\\file"; if (deletefile(buffer.c_str()) == true) { cout << buffer << " deleted" << endl; } else { cout << buffer << " not del...

mono - Passing Data between Activities of TabHost Control -

i have tabhost add tab's dynamically. problem updating data in 1 tab tab values selected. for ex: have 2 tabs named 'search & filter' , intents added in tabhost activity page. when select values spinners 'site & equipment' filter tab want update search tab list view specified selection filter tab. i have attached sample code. kindly verify , suggest me on same. tabhost activity: public class tabsearch : tabactivity { protected override void oncreate(bundle bundle) { base.oncreate(bundle); setcontentview(resource.layout.search_wotab); tabhost.tabspec tspec; intent intent; intent = new intent(this, typeof(wosearch)); intent.addflags(activityflags.newtask); tspec = tabhost.newtabspec("search"); tspec.setindicator("search", resources.getdrawable(resource.drawable.search)); tspec.setcontent(intent); tabh...

c++ - Expected An Expression / Type Name Not Allowed -

brixpath::brixpath(){ { _animationoptions = (animationoptions){5, 3, 40, 30}; }; when run code block vs gives error typename not allowed on animationoptions. when remove typename brixpath::brixpath(){ { _animationoptions = {5, 3, 40, 30}; }; vs2010 gives error @ 1st "{" in 2nd line error: expected expression the definition of animation options is- struct animationoptions { int maxclicks; //how many clicks animation on screen support int step; // animation speed, 3 pixels per time int limit; //width of animation rectangle. if more, rectangle dissapears int distance; //minimum distance between previous click , current }; how solve error? please help. given user of vs 2010 (i.e., can't use c++11 uniform initialization), want add constructor struct, use initialize structure: struct animationoptions { int maxclicks; //how many clicks animation on screen support int step; // animation speed, 3 pixels per time int limi...

c# - Wpf Application cross (X) Button not working on single Click -

i have wpf application , problem facing application doesnt closed on single cross(x) button click. may know reason- initially happening setting focus menuitem when window loaded,so when click on cross(x) button first focus menuitem removed , on second click application cross(x) button works. private void window_loaded(object sender, routedeventargs e) { menuitem1.focus(); } but when dont set focus on menuitem,the cross button works on single click. private void window_loaded(object sender, routedeventargs e) { // menuitem1.focus(); } i want set focus on menuitem , want red cross(x) button execute on singleclick.. is way scenario can achieved..??? i concur behaviour happening... menuitem not same button having focus. @samuel, focusmanager.isfocusscope has no effect here. when menu focused, stops window being moved or re-sized, let alone having of button s clicked. i tried implementing other events such mouseleave , ...

web - How to distribute .bar files through my website? -

is possible provide distribution of bar files in previous versions? example: i distributed cod files within webpage/website clicking on single link download. how can distribute application in similar way (without contacting blackberry app world) i cant find respective mime type distribution , can not find relevant links distribute bar files. have gone through link , deals app world. is there way distribute bar file client without submitting app blackberry app world? if provide singed bar file customers or beta testers can 'side load' bar file devices using either official development tool sets blackberry, or 1 of number of utilities developed side loading community. devices have placed in developmer mode install bar, if bar signed can taken out of developer mode afterwards. there no equivalent downloading jad/cod file set bbos