2011
17
Feb

96336 Minutes

Only 66 more days before Entourage automatically checks for more email…

2011
09
Feb
2011
09
Feb

Sending email in Codeigniter with mail protocol

At work the other day I had to use the Email library in Codeigniter for the first time. The Email library is actually pretty great. Simple, yet powerful.

The emails that needed to be sent out needed to bcc about 20 or more different people. On my local machine I built out all of the code. I was using the sendmail protocol. Everything worked perfectly, even though I only used the “bcc” function instead of the “to” function.

Once I uploaded the files to the server, I found out I couldn’t use the sendmail protocol. I had to use the mail protocol instead. That’s when I started getting errors. When using the sendmail protocol, it’s perfectly happy being sent an array of “bcc” emails without a “to” email address. However, the mail protocol needed a “to” email address in order to work. So I ended up using the “from” email as the “to” email also and then passing the array of “bcc” emails like i was before.

Hopefully this helps someone else.

2011
09
Feb

Run Mac OSX in 64bit

If you are using a Mac computer, chances are, you probably aren’t taking advantage of the 64bit kernel that is built in. To check if you are using 32bit or 64bit;

  1. Click on the Apple logo
  2. Click on “More Info…”
  3. When the System Profiler window opens, on the left side, click on “System”
  4. On the right side there should be an area that says “64-bit Kernel and Extensions”

If it says “no,” you are running 32bit. It’s easy enough to fix.

Option A
Restart the computer, when it is booting up, hold down the 6 and the 4 keys on your keyboard. To verify is booted into 64bit, do the same steps as above.

Option B
This required some Terminal work as well as a restart. Inside Terminal, type
sudo systemsetup -setkernelbootarchitecture x86_64
This will require you to restart before you can start using the 64bit kernel. To verify is booted into 64bit, do the same steps as above. In case you want to go back to 32bit, inside Terminal again, you would type
sudo systemsetup -setkernelbootarchitecture i386
Once again, a restart is required.

The up side is that it gives you, give or take, a 30% increase in just about everything your computer does. But be careful. Some software and drivers aren’t ready for 64bit just yet.

2011
09
Feb

Why people that work with computers seem to have a lot of spare time

I found this on another site and thought it was great. Enjoy.

2011
25
Jan

How to Fix RSA Host Key Change Error on Mac

At work recently, we wiped a Fedora development server and reinstalled with the newer version of the OS. When everything was back up and running, I tried to connect to it through SSH. I got an error I hadn’t seen before about my RSA host key is wrong.

First of all, the error I was getting is below:

This was actually pretty easy to fix. Since you are already trying to SSH, this assumes you already know where Terminal is and you have it opened:

1) Inside Terminal, type
cd /Users/YOUR_USERNAME/.ssh
Where YOUR_USERNAME is your login name for your Mac. If you don’t what what it is, your login name is the word right before the $ in the Terminal window.

2) Inside Terminal again, type
rm known_hosts

That’s it. Your done. You can now go through SSH again. A new RSA key will be generated for you automatically. All this really did was delete a file named known_hosts inside the hidden /Users/YOUR_USERNAME/.ssh directory. Since it deleted the file, this also means that RSA keys for other SSH connections will be lost as well. However the next time you SSH to them, you will be given a new key automatically.