Reboot

by Mike on May 2, 2012

I moved my site to a new server with the new Ubuntu LTS release.  For some reason I decided to do this while out of town at a conference, which turned out to be a really bad idea.  50%+ packet loss and frequent loss of Internet connectivity turned it into a multi-day project.  I’m happy to say that the process has been completed and everything should be back to normal.

I apologize for the inconvenience.

{ 0 comments }

Postgresql on Mac OS X Lion

by Mike on November 26, 2011

Here is a quick note about something I’ve run into when installing Postgresql on Mac OS X Lion.  I use Homebrew to install Postgres, but when trying to enter commands like createdb or createuser I was getting an error asking me to verify that the server was running locally and accepting connections on the Unix domain socket.

There are binaries for Postgres in /usr/bin that are NOT from the install. I resolved this by opening /etc/paths and moving /usr/bin to be after /usr/local/bin. Once that change was made and I opened a new terminal I no longer had any of the previous issues.

{ 0 comments }

Check Your Apache Banner

October 7, 2011

Pull your web server headers sometime and see if you are giving out too much information. curl -LI http://your.webserver.here From a security perspective, giving out information about the version number of the web server, the underlying operating system, and the application software version isn’t the best idea. A couple things you can do to remedy [...]

Read the full article →

Unix Find Xargs And No Such File Or Directory

June 8, 2010

A useful command that I frequently use when looking for a particular string in a file is a find command piped to xargs grep. For example, if I am looking for the word Mike in any file inside of /usr/local I will type: [code] find /usr/local -type f | xargs grep Mike [/code] This says [...]

Read the full article →

Query Soap Service Using Ruby

September 29, 2008

OK, to get this out of the way. I know SOAP isn’t cool. However, there may still be times when you need to query data from a SOAP web service. This is an attempt to document the process of retrieving and working with that data. In this example I will describe how to query the [...]

Read the full article →

IE 7 And Word Wrap

September 25, 2008

I guess this is what I get for doing most of my testing in Firefox. I created an aspx page to be opened in a javascript window.open to allow a customer to preview some rendered HTML. I used labels in the aspx page and then populate those with data returned from a database. Everything looked [...]

Read the full article →

Ruby.Exe Unable To Locate Component Readline.Dll

August 30, 2008

I just installed ruby 1.8.7 on a Windows machine and when I started IRB I got this error: [code] ruby.exe Unable To Locate Component readline.dll [/code] The fix: Download the readline binary zip from here. Unzip the file. Change directory to the new directory created by unzipping the file. Change directory to the bin directory. [...]

Read the full article →

Ruby On Rails Development Environment On Ubuntu Linux 8.04.1

August 13, 2008

I just went through the process of setting up a new Linux desktop for Rails development. In an effort to keep it short and to the point, I’ve trimmed up some of the info that I found useful from wiki.rubyonrails.org. This is just a basic development stack. I plan to write another post on the [...]

Read the full article →

How To Change The Default Editor In Debian And Ubuntu

August 11, 2008

I’ve been a fan of Ubuntu Linux since I first started using it a few years ago. One of the first things I do when building a new Ubuntu machine is set the default editor to Vim. I have been using Vi for a long time and the keyboard shortcuts are very natural for me, [...]

Read the full article →

Grouping In Linq

August 8, 2008

I’ve been using LINQ for my data access piece in .NET for the last few months and I thought I would write a quick post on how I’ve found to do grouping. I’ve seen some examples where a ‘group by new’ is done with a list several fields to group by. I’ve also seen similar [...]

Read the full article →