Android FBreader screen grabs

I’ve been doing quite a bit of reading nowadays. Every now and then I happen upon good writing. These resonate with me, so instead of taking a screen capture, I’m re-posting here instead where someone, someday might perhaps admire (and go read the book). Brooks, Terry A Knight of the Word I was just in the neighborhood, and decided to stop by, share a few laughs, maybe see if you’re in the market for a boyfriend.

ProFTPD for CentOS 6

More of a note to self than anything. As usual, YMMV. Use RPMforge RepoForge package wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm rpm -Uvh rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm yum install proftpd -y chkconfig --level 345 proftpd on /etc/init.d/proftpd restart netstat -tnlp|grep proftpd Configure iptables iptables -A INPUT -p tcp -m tcp --dport 21 -j ACCEPT etc/init.d/iptables save etc/init.d/iptables restart New Linux user; e.g., foo useradd foo -p /path/to/home/directory passwd foo Does it work? Command: USER foo Response: 331 Password required for foo Command: PASS ******** Response: 530 Login incorrect.

CentOS httpd invalid command

Was configuring a CentOS 6 server recently, and I decided to comment out all httpd (i.e., Apache web server) LoadModule directives. Upon restart, there were several invalid commands, so I took the time to note ’em down as it wasn’t obvious (to me, at least) which commands were provided by which modules. I liken this to a cheat sheet to http://httpd.apache.org/docs/2.2/ then: Command Module AddHandler mod_mime Alias mod_alias BrowserMatch mod_setenvif DirectoryIndex mod_dir IndexOptions mod_autoindex LanguagePriority mod_negotiation LogFormat mod_log_config Order mod_authz_host TransferLog mod_log_config

OS X Icon file

When I use Terminal.app, I noticed that the OS creates this Icon file for folders that I created. It’s quite irritating, and Eclipse \o/ chokes on it. I never figured out why until today. So apparently it is a custom icon – albeit one I didn’t set, so feel free to clean ’em out: find . -name Icon\* | xargs rm -f References http://superuser.com/questions/298785/icon-file-on-os-x-desktop

Restoring Android app data via adb push

After reading CI6230 I decided to encrypt my phone storage. I was running CyanogenMod (CM) 10.1.2, which is awesome. But I digress. So… the encryption went fine. It took awhile, and things were A-OK until I decided to tinker with my phone – despite all of the horror stories and downtime I’ve endured (my colleagues can attest to that) and try Paranoid Android (PA) 3.94. I mean, we’re explorers aren’t we?

ADT XML layouts

So I’ve been fiddling around with ADT for a couple of hours. It’s possible to programmatically create layouts; i.e., an Android UI, but it’s not great. It’s way easier to define the layout in XML, and then bind whatever event handlers are required. Here we have a simple class: package net.waynekhan.blog.foo; import android.app.Activity; import android.os.Bundle; import android.view.*; import android.widget.*; import java.util.*; public class HWA extends Activity implements View.OnClickListener { protected void onCreate(Bundle savedInstanceState) { super.