Posts

coldfusion - Is it possible to use C++ CFX tags in Railo? -

i had move several older websites running in coldfusion mx7 onto server running railo 4.2.1. these sites use either cfx_image or cfx_openimage tags resizing uploaded images. looks rewrite them use cfimage, i'm hoping these older sites working is, @ least know. does know of way use c++ cfx tags in railo 4.2.1? railo 4.2 supposed compatible cf 10 doesn't support c++ tags. it's intended compatible far cfml syntax goes there few things railo doesn't support, c++ cfx tags being 1 of them. support java cfx tags. read this but can use cfimage tag perform various image manipulation operations including image resizing. this <cfimage action = "resize" height = "number of pixels|percent%" source = "absolute pathname|pathname relative web root|url|#cfimage variable#" width = "number of pixels|percent%" destination = "absolute pathname|pathname relative web root" isbase64 = "y...

cron - Strange output of bash script -

i have bash script running on centos 6 cron sh /a/mem1.sh >/a/mem1.txt; if [ -s /a/mem1.txt ] ; mail -s "server low memory" < /a/mem1.txt server@example.com ; fi but under centos 7 works cron - issues strange 3-line additional output tput: no value $term , no -t specified tput: no value $term , no -t specified tput: no value $term , no -t specified so receive 2 emails - 1 normal script output should , email strange outputs above i checked line-by-line script commands inside - works without errors or warnings. google did not lot. in advance hint , how solve it. something running tput in script (presumably colorize output when can) , centos 7 has no term value set in cron environment tput complaining it. either remove calls tput script or set value term process via cron or add -t flag calls force particular term type.

Mysql entries by mutiple line file in Shell -

i can read file, problem insert of string read in file in mysql language. tried add strings contained file database (phpmyadmin). here shell : apps="/test/list.txt" app in $apps; mysql -utoto -ptiti -h localhost test << eof insert rpm (applications) values('$app'); eof done the problem result in database not values of file path of file. help...!

python - Is it possible to serve a static html page at the root of a django project? -

i have django app hosted on pyhtonanywhere. app resides @ username.pythonanywhere.com/myapp . serve static html page @ username.pythonanywhere.com . possible? serve index linking /myapp , /myapp2 , , other future apps. i can't seem find info on how this, assume have modify mysite/mysite/urls.py navigating root gives me 404 messages failing find match in urls. urlpatterns = [ url(r'^/$', ???), url(r'^admin/', include(admin.site.urls)), url(r'^myapp/', indluce('myapp.urls')). ] the previous best guess (a bad 1 know). should (correct me if i'm wrong) match root url, have no idea how "hey django static file", or static html should live, or how tell django lives. try not cut head off. i'm brand new django. p.s. i'm using django 1.8 in virtualenv on pa of course can. in cases need render template, use templateview . example: url(r'^$', templateview.as_view(template_name='yo...

java - Attempting to update ListView Items -

i working on listview starts off containing 4 items: event a, event b, event c, , event d. these 4 events stored in arraylist<event> called mevents , on button click filter out event b arraylist , update listview accordingly through adapter using notifydatasetchanged() . i using second arraylist<event> named newevents store events should displayed (event a/c/d) , clear mevents , set equal newevents . when button pressed, reason last list item gets deleted (event d) regardless of event attempt filter out. below relevant code, appreciated. listview code: public class listactivity extends fragmentactivity { private usercustomfilters musercustomfilters = new usercustomfilters(); // our database hostname , credentials string url = ; // string user = ; string pass =; sqlutils sqlu ; //the sqlutil object type initialized later depending on credentials given above. arraylist<event> mevents; //the array hold events pass around(to adapter,the li...

r - Meta-analysis with metafor package: Strange difference between rma and rma.mv -

i working on meta regression using metafor package. simple trial estimation is: m1<-rma(yi=coeff, sei=stderr, mods = ~ mt_timeseries + mt_bivariate, method="reml", data=y) next estimate same model rma.mv() , use random term rid factor identifying each single observation (no clusters of observations): m2<-rma.mv(yi=coeff, v=stderr^2, random= ~ 1|rid, mods = ~ mt_timeseries + mt_bivariate, method="reml", data=y) estimations m1 , m2 should yield same results (this idea supported note package author on http://www.metafor-project.org/doku.php/tips:rma.uni_vs_rma.mv ). but in fact, don't: > summary(m1) mixed-effects model (k = 886; tau^2 estimator: reml) loglik deviance aic bic aicc -4847.7988 9695.5976 9703.5976 9722.7309 9703.6431 tau^2 (estimated amount of residual heterogeneity): 0.0000 (se = 0.0000) tau (square root of estimated tau^2 value): 0.0007 i^2 (residual heterogeneity / una...

debian - Raspberry Pi Operating System Update? -

i have 2 pis, b+ , 2. have operating system (debian) use on b+ i'd use on 2. there way can make operating system work pi 2 without downloading fresh one? did try put sd card b+ r-pi new r-pi 2 ? i'm not sure when put sd card r-pi 2 r-pi b+ works. how old raspbian on old r-pi ? maybe helps : (article preparing sd card os r-pi 2) : http://thepihut.com/blogs/raspberry-pi-tutorials/16982376-updating-raspbian-on-your-microsd-for-the-raspberry-pi-2