Archive for January, 2009

22
Jan

Google Maps of the Traffic by Caxy’s Chicago office

Here's a look at the traffic outside our office via Google maps.

This is why I take the train.

If you live in Chicago, your car never gets above 30 miles per hour in the winter.

[inline]
[/inline]

 

Tech note: if you are interested in how this works in WordPress, the first step is to download a great plug-on for allowing for unformatted text in your blog:

http://www.ooso.net/index.php/archives/379
21
Jan

Cutting costs, staying green

As times get tough, perhaps the biggest issue facing businesses is cost management—small businesses in particular can only afford actions that cut costs immediately. So will businesses take this opportunity to ignore environmental consciousness to save cash? I’m hoping that the tide has turned enough that businesses will use a desire to become greener as a lens to filter all their cost savings through. At Caxy, we’ve upgraded our web server systems significantly in recent months, reducing our server landscape by 75% by running on fewer, more efficient systems. The primary goal was to reduce cost (which it did), but it also reduced our direct and indirect consumption of power, saved precious metals and decreased our production of difficult-to-dispose-of waste. As we look forward to the rest of 2009, we are simultaneously looking for cost savings solutions that can also do things like reduce our carbon footprint. The double-entendre of conserving resources here is interesting. In general, whatever we reduce in the company is reflected in reduced resource consumption. That means businesses need not look at cash vs. eco as an either/or situation, but rather as an opportunity to do both. All it takes is smart planning, in the short and long term—in the end, it’s all green.
20
Jan

Managing DNS and the hosts file on your Mac OS X system

Subtitle: Working with /etc/hosts and lookupd for Mac OS X If you are a developer looking to test web sites on your Mac or maybe you have different DNS for different locations (office, home, client, airport, etc...), you may need to temporarily override the authoratative DNS for a host. Checklist: First, open up the /etc/hosts file as root. In a Terminal (Applications > Utilities > Terminal) ...
% sudo vi /etc/hosts
Then go to to the bottom of the file and make an entry. The format is IP, followed by whitespace (tabs are nice) and then a list of space-separated domains. Don't forget the "www" version if you need it.
# IP Address  Host
127.0.0.1   yahoo.com www.yahoo.com
Then, voila, your computer will think that site is found at the IP you specified. What? Didn't work? You need to clear your DNS cache: (For Mac OS 10.4 ...)
% lookupd -flushcache
Later, when you're done fooling your machine, do the same thing again and just comment out or delete your (For Mac OS 10.5 ...)
% dscacheutil -flushcache
entry and flush your DNS again.
19
Jan

Where is my Google Analytics tracking code?

I have no idea why this is so hard to find, but if you're looking for the JavaScript code for your Google Analytics account, here's how you find it. (This is direct from Google's site, just not in an easy-to-find spot)
To find your personalized tracking code and account number, please follow the steps below. 1. Log in to your Google Analytics account. 2. From the Analytics Settings page, find the profile for which you would like to retrieve the tracking code. Please note that tracking code is profile-specific. 3. From that profile's Actions column, click 'Edit.' 4. Above the top right-hand side of the Main Website Profile Information box, click 'Check Status.' 5. Your tracking code can be copied and pasted from the text box in the "Instructions for adding tracking" section. When adding your tracking code to your web pages, make sure to paste it into the body section of your HTML code, immediately preceding the </body> tag. If you're adding tracking code to the new version of Blogger, the instructions may differ. Read more about adding code to your Blogger account. The Analytics account number will appear in the format UA-xxxxxxx-y. The '-y' towards the end refers to the profile number. This number is unique for each of the profiles within your account although the account number will be the same.