WARNING: Your browser, IE6, released in 2001 and superseded by IE7 in 2006, is out of date. I advise that you either upgrade to IE7 or switch to a more standards-compliant browser.

Archive for the ‘News’ Category.

Makeover!

As you can obviously see, my website has received a makeover!

This won’t change much, with the exception that I decided to drop IE6 support (opting to show the IE6 users a message to upgrade) seeing how my IE6 traffic is very low

I floated the navigation/header bar at the top so you don’t have to scroll up to navigate elsewhere, I thought this might be a refreshing change to how you browse most websites. I also decided that the green was too much and switch to a much more neutral blue.

If anybody has any opinions on the new design, or suggestions, or find oddities, please let me know in the comments. Thanks!

ZSH: My Tale of Adventure

Hello guys, I’ve been extremely busy with homework of late. Many many reports, in addition to two finals, have kept me away from not only blogging but doing all of my normal activities.

Tonight, I took my first final and turned in much of what my headache has been. I came home a bit early, and decided tonight would be my relaxation time. I decided that since I hadn’t tried something new in a while I would try out a new linux shell, having only ever used bash (Bourne Again SHell, the default on many distros). I asked in #ubuntu-offtopic if anybody had a particular shell they suggested. tonyyarusso suggested original Bourne, so I decided I should probably just google and see what comes up.

What came up most often was ZSH. I decided, what the hell, all this hype surely can’t be for nothing. I began by installing it from the Ubuntu repositories:

sudo apt-get install zsh

Very simple. Once done, I typed “zsh” and away I went. I was immediately impressed with the start up configuration wizard. It asked if I wanted a vanilla configuration or to customize my own, and being a geek I opted to configure it myself.

There were a few levels of configuration. I changed all the settings, enabling everything that sounded neat. autocd, command correction, full tab completion, everything that sounded like it would be fun to play with. Once done, I went to gentoo’s documentation page for it and read what they had to say. I played with all the settings they listed, including setting up my own custom prompt.

I started it up and was immediately greeted with a different prompt than I’m used to. If I remember correctly, it simply said:

dmsuperman%

I decided I didn’t like that, since I like to be able to see where I’m at. I read further down the page, and after initializing the prompt package, I started playing with it. I ran ‘export PS1=”[%n@%m:%~]“‘ and was greeted with my new prompt:

[dmsuperman@blitzkrieg:~]

Much better.

Once my prompt was how I liked it, I began toying with various features. Here are my findings:

  • Tab completion is far superior to bash. It’s much more like how irssi handles tab-completion, where if you begin to type something, then tab, it will complete until it finds a conflicting character and stop. If you hit tab again, it will show you a list of all possible options, and if you hit tab one more time it will begin cycling through that list of options. I find this to be better, since the whole point of tab is that I can type as little as possible.
  • autocd rocks. It simply does. Type “..” and it understands that you want to go up a directory. Type “/etc” and it changes to “/etc”. This is awesome, because often I forget to type cd anyway.
  • Extended globbing also rocks. Finally, I can type “du -chs ./(A|B)*” and see how much disk space all of the items in a folder that begin with A or B take up.
  • Command correction is very helpful. If I type “mplzyer”, it will ask me if I meant “mplayer” and offer to always correct mplzyer to mplayer in the future
  • zsh has many neat prompt styles built in, with the ability to preview them. Typing “prompt -p” gives me a large list of named prompt styles and previews of each. Here are just a couple: elite2 theme with parameters `magenta':
    (dmsuperman@blitzkrieg)(129/pts/10)(09:36pm:02/23/09)-
    (%:~)- command arg1 arg2 … argn

    oliver theme:
    dmsuperman@blitzkrieg ~ % command arg1 arg2 … argn

    redhat theme:
    [dmsuperman@blitzkrieg ~]$ command arg1 arg2 … argn

    suse theme:
    dmsuperman@blitzkrieg:~/ > command arg1 arg2 … argn
  • The .zshrc file is much smaller than .bashrc. My .zshrc is under 15 lines, where my .bashrc is over 100

Shortly after playing with all of these new features, I changed my shell from bash to zsh permanently, and am now using it happily. I suggest you all at least give it a try. Here is my finished .zshrc:

# Lines configured by zsh-newuser-install
HISTFILE=~/.zsh_hist
HISTSIZE=1000
SAVEHIST=1000
setopt appendhistory autocd
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename ‘/home/dmsuperman/.zshrc’

autoload -Uz compinit
compinit
# End of lines added by compinstall

# Command correction
setopt correctall

# Prompt style
autoload -U promptinit
promptinit
export PS1=”[%n@%m:%~]“

# Extended glob
setopt extendedglob

# Load aliases
. ~/.zsh_aliases

Simply save this as your .zshrc and run it and you should be able to achieve what I have described above. Sorry bash, move over because zsh is the new shell for me. Until I find the next new thing to play with, at least.




I just wanted to add here, that I got tickets for Lamb of God’s upcoming tour and I am amped beyond all belief. Myself and a few friends from work (including butters) are all going to head over to the show as early as possible. It’s going to be sick. Anybody in the Columbus area that’s going, feel free to let me know, maybe you can come with us or something.

Life Updates and New Tech

Well, I’m back here again. Overall, things are going well for me. I picked up a bike, and my plan is to ride is as much as possible so by summer I’ll be able to ride it to work. I rode for 5 miles the other day, and it’s 10 miles to work. I’d like to get my speed to double what I went so it takes me the same amount of time.

I changed my mind on that desk. I decided that with all the transportation, tool rental, gas, etc., that building my own desk would be as expensive as just buying one and when I buy one it’ll be better anyway. So I did just that, you can see some pictures here. I also bought myself a new widescreen 22″ monitor, very nice, and bought another smaller 17″ off my friend. You can see all my new monitors in the last picture in that album. Overall, it’s a very comfortable and awesome setup now.

I’m using compiz 0.7.8 built from git, and that works just fine for 4 monitors. What I did was split them into 2 groups of 2 monitors each. Each group sits on a video card and runs an X screen with TwinView. I can’t move windows between each set of screens (the left 2 are attached, and so are the right 2), but I’ve found that I actually prefer that. I have the far right monitor dedicated to widgets and monitoring applications, then the next is usually for movies being the only CRT, then the left two are for my active applications.

I also added yet another drive to my system today, a 1TB drive this time. That brings the total to 5 drives, totalling 2.5TB storage. All 5 SATA, and I can’t fit anymore in now =P

My Hard Drives

I got hosting from tonyyarusso for a pretty good price, so you might see some progress finally being made on this thing since I can actually run it stable. The blog is currently being run off of it.

I’ve written a pretty cool application lately. I used Python, PHP, MySQL, and JavaScript to write an application that basically scans my entire music directory, loads the ID3 tags into the database, then lets me search and browse all my music and add it to a playlist. From there, I have a javascript MP3 player I wrote to play my playlist back. This is very useful for while I’m at work, and once I figure out how to get Python libraries installed on the server I’ll begin putting some of my music up here.

A screenshot of my player

I’ve added a twitter updates and blip.fm updates widget to the side of my blog. I made sure that the blip.fm player can be hidden, and when you hdie it it stays hidden.

At work, we’re planning on Nerf wars. I’m going to order a Maverick. It’s exciting. We’re all moving into cubicles. That’s not. It feels like a demotion, going from an office to a cubicle. Even some of the interns have offices -_- Oh well, I’ll just keep waiting until January when we supposedly get raises. Pay me enough and I’ll be a lot more willing to get screwed in other areas.

Lastly, I want to blog-whore my friend snuxoll. He may be extremely opinionated at times, but a lot of the time he’s spot on and usually pretty knowledgeable about things. Give him a read!

Well, that’s it for now. Signing off!

Twitter