« April 2007 | Main | June 2007 »

May 2007 Archives

May 2, 2007

One Crazy Month

In the next month...

* See midnight showing of Spider man 3 to keep up my geek cred
* I have to build some sort of wood structure (Corn Hole tossing game, what a name for a bbq name)
* Get a pre Alpha version of the software released
* Throw my brothers bachelor party
* Shop, pack, prepare for Honduras
* Sign far to many legal forms for me to be comfortable with
* Cut costs even more
* Come up with a Contract agreement with a new client
* Enjoy my new found freedom
* Visit my lovely girlfriend in Honduras and forget my stresses for awhile

The best part is I am so excited about everything all I would want is more time for this part of my life.

Beard-o Project: Honduras

Unlike the Australian Beardo project, I didn't travel with my beard. Instead my girlfriend went to Honduras giving me the first opportunity in a long while to grow one hell of a beard. If your not familiar with the Beardo Project, you might want to check those out before continuing on. I know to many it will make no sense and seem strange, but sometimes a man just needs to grow a beard.

The beard stays, you go.

So yeah I didn't do anything strange or really out of the ordinary this time with my beard, but it was still a good time. I did at least finally get a chance to grow one again. Women have been incredibly successful at suppressing the beard. When I have a girlfriend, they hate the beard so much, it really isn't worth the fight to grow one. When I am single I seriously diminish my dating chances by growing a beard, so I tend to only grow them during brief really busy or anti social stints, when I don't want to date. Seeing as I have been with Erin for the last year, I haven't had the chance to grow a really big beard. Erin left to go volunteer in Honduras for 4 1/2, I saw my chance, and I took it.

Dan + 3 months =

DanMayerFullBeard.jpg


beardCut.jpg

Dan + Scissors + Beard Trimmer + Mach 3 razor + 35 min =

DanMayerCleanShaven.jpg

So all the scraggly haired ups and downs over the last few months were great. I went skiing and had ice freeze in my beard. I showed up to work and over an hour later was asked by a co worker why part of my beard was blue to learn there was some toothpaste in my beard (Kristin, waiting an hour, I thought you cared...hehe)

Anyways, feels good like I said in another post, I feel like a new man, so why not make some changes. I guess the beards loose again while woman can claim another point in life. The beard will be back no one knows when, where, or why but it will be back... The beardo project, aiming to make the beards loved by everyone.

May 7, 2007

Congrats Shawn and Dina

Congrats to my brother who is now an MD, woohoo another Dr. in the family, better mean I get really cheap health care. Rock on for completing a goal that takes forever to achieve.

Also, congrats to my friend Dina who will be writing some for the Denver Post. Check it out here, Dina in the Denver Post.

May 8, 2007

The laws and you

The state of freedom in this country is scary for many reasons, one in the news lately is that it has become illegal to even print a standard 128 bit number, because that number meant something special to encrypting movies. It was against the DMCA to ever republish it, a company could now own a FREAKING number, and all uses of it. Well since this whole fiasco started some smart people found a way every single person can own a number and therefor make it illegal for any company to use, so go get the "deed" to your own number and eventually there will be no legal 128 number left to ever print under the DMCA.

"the folks at Freedom to Tinker would like to point out that you too can own your own integer. They've set up a script that will generate a random number, encrypt a copyrighted haiku with it, and then deed the number back to you. You won't get a copyright on the number or the haiku, but your number has become an illegal circumvention device under the DMCA, such that anyone subject to US law caught distributing it can be punished under the DMCA's anti-trafficking section..."
Read more about the ridiculous DMCA laws here.

May 9, 2007

Honduras bag

I now have a little bag were I am tucking away all the important things that I know I need to bring to Honduras... I am starting to get excited... The trip should be a blast. Rock on for world travel.

May 14, 2007

Good Startup Resources

Here is a list of some good start up resources that I have begun to check out on the web.

Paul Graham's essays

Clay Shirky's essays

OnStartups

Small Business Hub

Startup news

programming.reddit.com

Good start up books to read

Hopefully I will grow this list a bit more shortly, but for now that is some good information to get your started.

May 15, 2007

Now thats a car

I know a certain someone who may or may not have seen this image already but will no doubt be excited by seeing it again... It seems one DeLorean owner really loves back to the future, or there is a sequel coming out in about 5 years and this is actually a version that is back in time to save the world.

DeLorean2.JPG

Now I kind of want a DeLorean, but it has to be done up like that!

May 16, 2007

I am now at Pretheory

I know I don't actually post to this blog much at all, but I still occasionally add some stuff on it and I might slowly be bringing it back to life. So with that in mind I thought I should announce that I am now the co founder of a start up. Pretheory. If you want to keep up with the various projects we are working on the best place to check is over at the Pretheory blog.

Currently we are programming in Ruby on Rails, and we are hoping to have our first project launched by early August. So if you have been following this blog at all, keep and eye on Pretheory now as well.


pretheory_logo.jpg

Argg I wish I was batman

Why oh why can't I be batman?

Playing basketball lately I learned that I need to be much taller and in far better shape. I bet batman can jump like 3 freaking feet.

Booyaah late night movie night... I'm off...

May 17, 2007

Really good post on regular expresions

I found that this was a really good post on regular expressions. Just a good beginner walk through that will have you more comfortable looking at any regex you run into while debugging someone else's code, or if your trying to add your own regular expressions yourself.

Regular expression walk through

May 18, 2007

Rails casts

A great way to keep up with some rails tips and ideas. I have started watching rails casts when I am eating a snack, working out, or just have a few minutes. It is a great and simple way to keep rails ideas fresh in your head. Most of the tips are fairly basic for now, but I am hoping they start dipping into more complex rails solutions. Or how to break out of the framework when it makes sense.

Railscasts

May 20, 2007

Ruby Email Archiver

Checking and receiving email via ruby.

If you need to get emails and check emails via a ruby script this should get you started in the right direction. I needed to copy down about six thousand emails from my pop server, so I wrote up this little script. Ruby makes email simple, you just need to know where to look and unfortunately most searches result in finding a 3rd party library that costs a pretty penny for email actions in ruby. What you really need is the Net::POP3 or the Net::IMAP. After going through the quick documentation and seeing some of the available code examples, writing the code is straightforward. This is just a very simple example, with hardly any error checking.

Download the source to Ruby Email Archiver

require 'net/pop'

Net::POP3.start('pop.yourdomain.com', 110,
'userName', 'myPass') do |pop|
if pop.mails.empty?
puts 'No mail.'
else
i = 0
pop.each_mail do |m| # or "pop.mails.each ..."
subject = m.header.split("\r\n").grep(/^Subject: /)[0]
subject = subject.gsub("Subject: ","")
subject = subject.gsub(":","")
subject = subject[0,10] if(subject.length > 10)
File.open("/archive/#{i}-#{subject}.txt", 'w') do |f|
f.write m.pop
end
#if you want to delete msg after archive
#m.delete
i += 1
end
puts "#{pop.mails.size} mails popped."
end
end

Ruby email to rss

A simple ruby email2rss example

When I was searching for some basic ruby scripts to download pop email I came across the email 2 Rss project on Ruby forge. Since I noticed there was no code available for the project yet I figured I would make a quick version up and make the code available, so anyone else searching for similar examples would have a starting point.

This code is just a functional example, but doesn't have any real options or error checking so use at your own risk.

Download the source to Ruby Email to RSS Feed

require 'net/pop'
require 'rss/maker'

version = "2.0" # ["0.9", "1.0", "2.0"]
destination = "/archive/emailFeed.xml" # local file to write

#create a new email Feed
content = RSS::Maker.make(version) do |rss|
rss.channel.title = "Dan Email Feed"
rss.channel.link = "http://www.pretheory.com"
rss.channel.description = "My newest emails"
rss.items.do_sort = true # sort items by date

Net::POP3.start('pop.yourDomain.com', 110,
'userName', 'myPass') do |pop|
if pop.mails.empty?
puts 'No mail.'
else
i = 0
pop.each_mail do |m| # or "pop.mails.each ..."
subject = m.header.split("\r\n").grep(/^Subject: /)[0]
subject = subject.gsub("Subject: ","")
subject = subject.gsub(":","")
subject = subject[0,15] if(subject.length > 15)
link = 'http://www.gmail.com'
body = m.pop
body = body[0,25] if(body.length > 25)

#create feed item
item = rss.items.new_item
item.title = subject
item.link = link
item.date = Time.now
item.description = body

i += 1
end
puts "#{pop.mails.size} mails popped."
end
end
end

File.open(destination,"w") do |f|
f.write(content)
end

puts 'Done. Thanks.'

May 23, 2007

Slow down

Well way to much is going on at once and I am going to forget a bunch of things. Hopefully I don't forget anything to important. So tomorrow is my last day to tie up loose ends... Yippie for some very exciting but very busy couple of weeks.

May 28, 2007

Bachelor Party

Well the bachelor party is over and I think it was a complete success. I am exhausted and have a lot of cleaning and packing to do, but I had an amazing time. Great fun with great friends that kind of weekend that really renews your love of life.

So tomorrow I am off to Honduras for a fun and crazy trip with my lovely girlfriend Erin. I doubt I will post until I return so peace out.