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.
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
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
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?
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.