Sometimes we need to convert density independent pixels(dip/dp) to pixels to set view properties like width or height. Here how it is done using Java. Resources r = getResources(); int px = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 300, r.getDisplayMetrics()); myEditText.setWidth(px);
I tried to install proftpd in webmin and I broke ftp in zpanel. I got following error message when I run proftpd command. root@Ubuntu12:~# proftpd Ubuntu12 proftpd[1400]: Fatal: LoadModule: error loading module 'mod_sql_mysql.c': Operation not permitted on line 38 of '/etc/zpanel/configs/proftpd/proftpd-mysql.conf' And I searched everywhere but I couldn't find anything. But following command make my error vanish . apt-get install proftpd-mod-mysql If it asked what mode, choose 'stand-alone'. root@Ubuntu12:~# proftpd And it must be running.
Comments
Post a Comment