tips

If you have been having trouble connecting to the internal servers at the Yukon Government by their short name over the VPN then this tip is for you.

This tip is tested with Windows 7 and IE8. Other OSes and browsers may not give the same results.

1. Ensure you have the hosts file with the short name - the Service Desk should be able to provide this. It goes into <Windows>/System32/drivers/etc

2. Set IE8 to NOT Automatically Detect Settings. Under Internet Options -> Connections -> Lan Settings deselect the Automatically Detect Settings checkbox.

Tips for Lllllllloyd

Llllllllloyd IM'd me to ask for my top 3 tips of using OS X so I figured it would be a quick and short post. I have 3 sections instead: OS Tips, Apps I Use, Etc!. These are only valid for Leopard 10.5.2+.

.:OS Tips:.

Get a mouse with many buttons and set the non useful ones (e.g. beyond left/right/middle) to things like show desktop, show Spaces (a.k.a virtual desktops), show all windows of app. Very useful.

I don't use TimeMachine. I do regular backups with CarbonCopyCloner. This reminds me to donate some funds to the project...

I am not paranoid enough to turn on FileVault but I do use the screensaver password utility.

I have a UPS plugged into my Mac so it will gracefully shutdown when (not if) the power goes out.

Install Bonjour on Windows clients and you can do printer sharing with 2 clicks on the Mac.

.:Apps I Use:.

I use apps that have lots of goodness and/or Mac'ness baked in so ports of Windows apps and ugly Java apps really need to kick bottom for me to use them. Cool doesn't cut it for me.

Email/RSS feed management: GMail and Reader - I just find it easier to keep it all online (or in the cloud as the cool kids says these days) than sync with various products. Mail is nice but meh, Calendar is nice but meh, Address Book is really lacking.

Skype: IM & Voice calling

AdiumX: Instant messaging for everyone

VoodooPad Lite: a personal wiki, still kicking the tires on this one to see if I should buy it or not (i.e. do I use it regularly)

Firefox3 and Safari: some sites don't like one or the other. FF3 wins on plugins/extensibility and Safari wins on native OS integration.

VirtualBox: for free virtualization - it runs Ubuntu Server 8.04 lovely

AppFresh: keeps everything up to date or at least lets me know when I am lagging

OpenOffice 3 Beta: works, a bit buggy, definitely an early beta in the classical sense

.:Etc!:.

I will not use MobileMe/.Mac. It costs too much and doesn't offer a compelling feature set for me to use. I am savvy enough to emulate the functionality through other means or just don't need the tools they offer at that price point.

iPhoto: you will either love it or not. I love it but wish it had better metadata gathering functionality.

I really like our HP printer it works great with OS X.

Always, Always, Always buy AppleCare. Always.

I spent waaaay too much time figuring out this one and the web is full of half-answers to this problem.

To configure a Tomcat 5.5 server realm to work with Active Directory you can crib from the following setup.

Make the following changes to the %CATALINA_HOME%/conf/server.xml file.

<Realm className="org.apache.catalina.realm.JNDIRealm" debug="0"
connectionURL="ldap://<AD SERVER ONE HOST NAME:PORT>"
alternateURL="ldap://<AD SERVER TWO HOST NAME:PORT>"
connectionName="<"DOMAIN"\"USER NAME TO BIND TO AD">" <!-- e.g. internal\serviceacct -->
connectionPassword="<YOUR PASSWORD FOR THE ABOVE ACCOUNT>"
userBase="<DN TO YOUR USERS IN AD>" <!-- e.g. OU=Users, dc=foo, dc=baz -->
userSearch="sAMAccountName={0}"
userSubtree="true"
roleBase="<DN TO YOUR GROUPS IN AD>" <!-- e.g. OU=Groups, dc=foo, dc=baz -->
roleName="CN"
roleSearch="member={0}"
roleSubtree="true"
/>

Then make the required security changes to your web.xml file for your application and you will be able to authenticate against your AD installation.

We have been rolling out internal instant messaging at the Big Green N for a few months now in a grass roots/guerilla technique. It has been a rousing success.

One of the major risks of using the publicly available tools (Yahoo, GTalk, MSN) is that all your corporate data is flowing over the public internet. Unencrypted and ready to be analyzed by the purveyors of those networks. Any reasonably company should realize that putting corporate data over an insecure public network is akin to letting competitors have a peek at your future product strategy.
This is not sensible.
When an organization has awareness of all avenues of communication their employees can use they can relax knowing that collaboration is still occurring, but within the rules defined by the organization. No public virus laden spam-bots sending messages, annoying your employees, while not denying the edge that instant messaging and presence notification provides.

One of the initiatives I have taken upon myself while under the N has been to roll out secure internal instant messaging. The major requirements of the system was for it to be open (as in standards), extensible (as in the programmable sense), architecturally compliant (Java & Oracle), scalable and finally - easy to administrate and use (less end user training and better cross-company adoption).

dealing with spam

I have been running Drupal since about 2003, thanks to Boris. (Take that either direction you want BMann... ;)) And now that is is starting to "get popular and take over the world" - in quotes because I am sure Boris has said this at some point in the last few months - I am getting slammed by spambots.

I have about 13000 spam posts on my personal blog (it Googles quite highly) and less on this site. I used to use the Spam module when I was running Drupal 4.x but when I moved to 5.x that module was not ready for prime time so I skipped the installation.

Whoops.

Now, I have remediated this fact by putting the more capable (hopefully) Akismet spam module in place. Sure, it required me to get a WordPress.com user account (took all of 30 seconds - good work Lloyd & Co.) to get an API key to use this module but when I had the thing up for a grand total of a minute and the spam blocked count was already at 1, I know I had a winner.

If you run Drupal - use a spam guard of some sort. Or enjoy pressing Delete 260 times, as I will when I finally get around to removing the backlog. I guess I should file a feature request "Ability to purge an entire queue"...

I finally got Mercurial 0.8.1 (a distributed SCM) up and running on my intelMac. It is not difficult but requires some additional steps that don't seem to be noted anywhere obvious that I could see.
The issue is that Mercurial will not work on a standard 10.4.6 install. Everything compiles, installs and kinda runs but every time I went to clone a remote repository the app would blow up.

So here is quick little how to:

  1. Acquire Mercurial 0.8.1
  2. Acquire the most recent Python build. I used the Universal Python 2.4.3 package from the folks at Pythonmac.org
  3. Install the Python 2.4.3 package and ensure you are using version 2.4.3 (type python in a Terminal.app window)
  4. Follow the instructions on the Mercurial site, they will work now

I hope this saves you the time it took me to fiddle around with things.
To make a wild stab in the dark guess as to why things didn't work I would say it's to do with the use of GCC 3.3 on the standard OS X Python distribution and GCC 4.0.1 in the above linked Python package.

The reason for all this is that I am trying to see if the Spam module is ready for Drupal 4.7 (Spam is the only module that I will delay upgrading for).

I received a nice email from a person asking if I had updated the ATOM support I welded into the Aggregator (version 1) for the latest release of Drupal (4.6.6). I wanted to say "Thanks" to the person (Tom) for contacting me and also to let him know the response I sent got eaten by some email forwarding rules on his end.

Since Tom seemed to enjoy the functionality and the fix is quite simple I have patched the 4.6.6 Aggregator (version 1) to support ATOM feeds for those that do not wish to move to Aggregator2. I am confident this works with 4.6.5 as well since there are no differences between the 4.6.5 and 4.6.6 Aggregator (version 1) releases.

I have again gone with a drag and drop replacement method so if you grab the attached file below in your modules directory, overwriting your current Aggregator.module (that you make a back up of first!).

You can now subscribe to Atom feeds as you would subscribe to any RSS/RDF feed in Drupal!

Note: if you download the file and it is named aggregator.module.html then rename it to aggregator.module before copying into your modules folder.

I have just finished the longest install session of Drupal ever. 20 minutes.

As I am still learning Tiger (OS X 10.4.x) and more specifically the Intel release I have had to find/update some of my base utilities used with Drupal. This is also the first time I have used MySQL 5 (5.0.18 in my case) with Drupal and what follows here are the steps I had to follow to get it up and running on my iMac (Intel).

I am assuming that your install is fairly new and that you have installed MySQL at this point. Once installed you will be running MySQL 5.0.18 and the default Apache and PHP installed by 10.4.5.

Step 1: download Drupal 4.6.6 (or 4.7 Beta 6)
Step 2: setup your database, load the schema, configure Drupal
Step 3: update the php.ini file in /etc/ to put the mysql.sock file in the same location as MySQL places it. In my case, this was /tmp/mysql.sock. If you have not already created the php.ini file you can copy the php.ini.default file to php.ini and edit that.
See this Apple Tech Article for more detailed information
Step 4: reload Apache
Step 5: continue Drupal'ing

Now with this out the way I can finally test my changes that add ATOM support to the 4.6.6 Aggregator.

software generalist

I was surfing the web and came across this book and its excerpts on the Pragmatic Programmers site. (A great site by the way).

It has put me in a reflective mood. I have always tagged myself as a software generalist. I don't specialize in any particular platform or framework. I specialize in technology and in understanding that most of what technology is built up on is recycled from previous iterations. There really is nothing truly *new*.

The above article just reinforces my belief that you have to keep running fast, but at the same time relax. If you have the proper training and a good "network" one can always find work. Just remember to invest in yourself frequently via education, experimentation and conversations.

Just placing this up here so I remember it:

To create a connection pool / jdbc resource under Sun One Web Server 6.1.

This is heavily influenced by: this link

Step 1 -- Set up the connection pool via the web admin interface

  • Under Java -> JDBC Connection Pools - create your new connection pool using the proper Oracle driver (9.x in my case)
  • Enter in user, password, URL (jdbc:oracle:thin:@[IP]:[port]:[name]
  • IMPORTANT: set Transaction Isolation to Read-Committed or Serializable and Guarantee Isolation Level is set to "on"
Syndicate content