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.
This semester, I’m taking a course on Android development. So I’ll be posting a bit more Android-related stuff as we go along. I’m developing on the MacBook Air, so get comfy with the command line.
To get started, grab a copy of the Android SDK. The Android Development Toolkit (ADT) bundle is pretty awesome. It comes with Eclipse and the plugin all setup already: http://developer.android.com/sdk/index.html#mac-bundle.
Unzip the .zip, so the full path be like: /Users/<YOUR-HOME-DIRECTORY>/Downloads/adt-bundle-mac-x86_64/.