Doodling…

 

 

This one is taken from one of the covers of 100 bullets. If you are into comic books, this series is a must-read! I call this guy Mr. Smith instead of Agent Graves because Mr. Smith is so much cooler of a name for a cold-blooded narcissist. Ha!

One thing that would make Mission Control even better…

More keyboard shortcuts!

  • use the [tab] key to cycle open applications on the current desktop, [arrow up] to expose and cycle windows of that app, [enter] to select the focused window of the app
  • use digits 1-9 to directly jump to the first 9 desktop/fullscreen apps (focus on the foreground app on that desktop or to the fullscreen app – similar to using numbers to jump to a specific desktop in exposé)

Any SIMBL hackers out there willing to implement? :)

Apache initialization error when using mod_jk (CentOS)

Recently deployed a CentOS 5.3 server which came pre-packaged with Apache 2.2.3. Adding a mod_jk module to the Apache server would prevent it from starting, with the following error:

Starting httpd: httpd: Syntax error on line 993 of /etc/httpd/conf/httpd.conf: Syntax error on line 9 of /opt/Sabalive/SabaWeb/JBoss_Tomcat/tomcat-5.5.x/conf/jk/mod_jk.apache.conf: Cannot load /opt/Sabalive/SabaWeb/JBoss_Tomcat/tomcat-5.5.x/bin/jk/linux/mod_jk.so into server: /opt/Sabalive/SabaWeb/JBoss_Tomcat/tomcat-5.5.x/bin/jk/linux/mod_jk.so: failed to map segment from shared object: Permission denied

It turned out SELinux security policies were the culprit. Issuing the following fixed the issue:

setenforce 0

Now, this is a DEV box sitting behind the firewall so I can be carefree about security. I would advise understanding the security implications of this change prior making such changes in a production environment :p.

Installing w3m on OSX using Homebrew

I’m a big fan of the the command line. One of the reasons I bought a mac in the first place was because it had that *nix flavor out-of-the-box, and was also aesthetically appealing. I also used to run freeBSD on my old Dell laptop, so I felt right at home.

However, the lack of a package management did not sit well with me. A quick Google search revealed two popular options: Macports and Homebrew. For the longest time I swore by Macports, but I recently started using Homebrew. I must say, I am very pleased, to the point  I am seriously considering replacing Macports altogether very soon.

Anyways, installing Homebrew is a piece of cake; head over here for details. Next, I needed to install w3m for some fun terminal browsing :). This is where I hit a snag:

Error: Failed executing: ./configure --disable-debug --disable-dependency-tracking --prefix=/usr/local/Cellar/w3m/0.5.2 --disable-image Please report this bug: https://github.com/mxcl/homebrew/wiki/Checklist-before-filing-a-new-issue These existing issues may help you: https://github.com/mxcl/homebrew/issues/#issue/6626 It looks like an autotools configure failed. Consider re-running the install with '-vd' to keep 'config.log' around: brew install -vd w3m Gist 'config.log' and any error output when reporting an issue. Remember to include your config information: brew --config

As always, Google to the rescue. I found I just needed to link bdw-gc in my Homebrew config:

$ sudo brew link bdw-gc

Voila. ‘brew install w3m’ worked wonderfully from this point on.

Truecrypt on Lion

Truecrypt is a must-have on all my machines. I was saddened with initial reports this app did not work on OSX Lion. There is a workaround however, thanks to MacFUSE. Simply install MacFUSE, then Truecrypt, and voila, you are all set. Thanks Philipp for sharing this tip :). I did not have to restart my system as he advised for the change to take effect, but your mileage may vary.

One more reason I love Alfredapp

I’m a keyboard ninja. I cannot be bothered with reaching for the mouse and clicking on things when I can easily type or invoke those things using the keyboard. Naturally, keyboard shortcuts and tools that improve my workflow by keeping my hands on the keyboard are very welcome on my macs. So when I installed MS RDP, I was annoyed at having to select my remote desktops via mouse clicks.

Here’s where Alfred comes in (technically you could do this with Spotlight as well, but Alfred is just much cooler):

  1. save each server configuration somewhere on your computer (name it something useful, expl, RDPWORKSERVER01.rdp)
  2. bring up alfred, type “‘ RDPWORK…” (that’s a single quote, then a space, followed by the beginning of the configuration name). Then, press enter
  3. That’s it! RDP will automatically launch, with that configuration

 

The tip applies to pretty much any file type, but I’ve found it most useful with RDP. I name all my RDP sessions starting with the same string (expel, “RDP”); that way, I immediately see a list of machines available in Alfred and can navigate the list using the KEYBOARD!

What are some of you favorite Alfredapp tricks?

Hiya!

Ok, it’s only been three or four years, but I’ve decided to update my site. I’ll keep things simpler this time around and stick with WordPress instead of some custom, homemade solution :). Next, move all the content from the previous incarnation of this site to the WP database… Maybe next year XD.