I'm Dan Previte, a web developer and a geek in general living in Chicago and working for Caxy Inc.

EllisLab released the latest version of CodeIgniter on January 30th. They've made plenty of improvements and bug fixes, and you can check out the changelog on their site. I've been using CodeIgniter for projects at work for about six months and I love it. It's made my code much more organized and easy to modify. If you aren't using CodeIgniter, or some other kind of PHP framework, I suggest you try it out. It's lightweight, easy to learn, and the documentation is fantastic.

One feature that I've always wanted is multiple views. Most web sites are split up into chunks like the header, sidebar, main content and footer areas. With regular PHP, you'd just do a require() to load the part you want, but with CodeIgniter it always felt a bit messy doing that.

Now if you want to load multiple views, you can do the following:

one

That's a great improvement, but today I was working on something where I want to have the loader return the view instead of render it right away. I loaded up the code for the loader and found out that it's already there. I didn't see it mentioned in the wonderful user guide, but I tried it out and it works great. So if you want to load a view but have it return the view as a string instead of rendering it, all you have to do is:

two

I'll be using this all of the time now. It's a great feature that just makes sense a lot of the time.

Why Chicago Sucks Sometimes

December 10th, 2007

die.jpg

$100 fucking dollars because I was parked in front of a fire hydrant (the only place to park for a few minutes) in front of my building. I was on my way home from work and had to pee so badly I was bouncing in the car. I was there for less than 10 minutes with my hazards flashing.
The most expensive piss I've ever taken.

Tickets, traffic, lack of parking, and the homeless are the only things to not love about Chicago.

www is for queers.

November 26th, 2007

You may have noticed that if you go to www.null-logic.net, the www is stripped off and it takes you to null-logic.net. That's because the www is for queers.

It's a waste of time, it takes too long to say, and its no fun to type. The www isn't required, and I can't think of why it was ever there to begin with.

If you have a website, just redirect traffic from www.domain.com to domain.com. Oh, and if you're giving me a link, and you start with "go to double you double you double you" expect to be slapped across the face.

More about it here.

Compare your life to mine, and then kill yourselves.” – Bender/Dan

Updated 04/06/2008

This started as an email to everyone at work, but I thought I'd post it here to share with you losers.

Launchy http://www.launchy.net

launchy.png

Forget the Start menu. It sucks hard. Instead, hit ALT+Space and type the first few letters of the program you want to launch and hit enter. You won’t have to search through your Start menu folders trying to find the program you want. As you go it learns, and even forgives typos.

SFTPDrive http://www.sftpdrive.com
WebDrive http://www.webdrive.com

webdrive.png

Editing files locally and then uploading via FTP every time you want to see your changes sucks. A lot. Dreamweaver’s FTP sucks too. Use SFTPDrive or WebDrive and you can mount a server as a drive on your computer. Just open O:\httpdocs\index.html and save/edit it like it’s a regular file on your computer. No more changing a few characters, hitting upload, and uploading. Just click save in your app. WebDrive is almost the same thing as SFTPDrive, but like 4x as expensive. I've used both a lot and found that WebDrive is way better, but more difficult to learn.

E-Text Editor http://www.e-texteditor.com

e-texteditor.png

I’ve always basically used Dreamweaver as just a program with tabs and syntax highlighting. Now I just use E since it’s smaller/faster and even a little cooler for coding. “E is a new text editor for Windows, with powerful editing features and quite a few unique abilities. It makes manipulating text fast and easy, and lets you focus on your writing by automating all the manual work. You can extend it in any language, and by supporting TextMate bundles, it allows you to tap into a huge and active community.” You can write your own plugins, and I’ve even written a few for CodeIgniter.

CodeIgniter http://www.codeigniter.com

codeigniter.png

Ok so this only helps you if you're a PHP developer, but if you're reading my blog and you made it this far, you probably are.

CodeIgniter has made my life a million times better. I used to try really hard to keep the code for my websites organized, but it somehow always turned into a disaster. I've made about 5 sites with CodeIgniter at this point and I love it. The client can request rediculous changes, and because of how it's organized things still go smoothly. Or at least as good as it can get.

There are other PHP frameworks, a few too many if you ask me, but CodeIgniter scratched the right itch for me. CakePHP was a little too large and imposed it's own coding style on me. Symfony requires too much command line work, some people I'll be working with have never even touched the command line. Not really Symfony's fault as much as them being retards, but oh well. And then Zend just seemed like way too much overkill for me.

CodeIgniter is simple and flexible. Yay.

SQLyog http://www.webyog.com

main_multi.png

phpMyAdmin pretty much sucks so I had to look for an alternative. SQLyog is a great way to connect to a MySQL database and make changes. It lets you tunnel over SSH, has a graphical Query builder that helps with complicated JOINs, and a million other lil toys. Best of all it's not web based so it's fast, especially when entering data.

Vista Line-In Annoyance

November 4th, 2007

This is more of a note to myself than anything, but this took me about half an hour to figure out. For the most part I haven't had any issues with Vista since I've installed it, but today I wanted to connect my iPhone to the line in on my sound card and listen through my computer speakers.

After stripping a cable so it could plug into the iPhone (a whole different story), I plugged it into the line in port on my sound card and didn't hear a thing.

What you have to do is right click on the speaker icon in the tray, click "Recording Devices"

sound_menu.gif

Then click the "Playback" tab, and then double click "Speakers"

speakers_entry.gif

Then adjust the levels for Line-In. This should also work for the microphone.

levels.gif

It seems pretty buried, no idea why it's so much harder than it was in XP. I'm looking forward to buying my first MacBook Pro as soon as I can.