Downtime and System Upgrade

July 24th, 2010 vivin No comments

Sorry for the downtime. My webserver had a failing hard-drive and I figured that while I was replacing the hard-drive, I would upgrade the entire machine as well. The box was a Pentium 4 1.4Ghz with 512MB of RAM that I hadn’t upgraded since I first built it in 2002. Now it’s been upgraded to a Pentium 4 2.4Ghz (hyper-threaded) with 1GB of RAM. Building from source will be a lot faster now! The whole upgrade process took a while because I was also in the process of upgrading another one of my machines and that took for EVER (some issues with shorting). Finally I had to install FreeBSD (version 8.0) on the new hard-drive as well as Apache, PHP, MySQL, WordPress etc. After I have everything set up, I’m going to make sure that I image the hard-drive so that I can restore it from backup easily.

Giving toys to kids in Iraq

June 28th, 2010 vivin No comments

This is an old video; I just found it. I uploaded it to YouTube since you can’t view it on the original DVIDS site. When I was in Iraq our unit commander’s (CPT Callaway) mother sent a bunch of toys over to us. We took these toys and handed them out to Iraqi kids.

Download ShapeWriter APK

June 22nd, 2010 vivin 41 comments

I tried to install ShapeWriter from the Android Marketplace yesterday and couldn’t find it (I was trying to reinstall it after flashing my phone with Cyanogenmod 5.0.8). After searching the interwebs, I found out that it had been removed from the marketplace on June 20th indefinitely (supposedly for QA issues). Luckily I had backed up the app using MyBackup Pro and still had the APK, so I was able to reinstall it. I’m putting the APK up here for anyone who needs to reinstall ShapeWriter.

Download ShapeWriter APK

StackOverflow FAIL

June 2nd, 2010 vivin 2 comments

I saw this question on StackOverflow today. I thought it was hilarious!

How do I hack into the government?

Funny StackOverflow question

Some pictures taken with my Nikon D3000

May 27th, 2010 vivin 1 comment

I bought a new camera a few months ago. It is a Nikon D3000 and it is my very first DSLR. I’ve always had point-and-shoot cameras and I’ve tried to take nice pictures with them, but they were obviously lacking. I finally decided to take the plunge and buy an actual DSLR. I got a very good deal from Amazon and got an entire kit, complete with a tripod. I also bought some filters. I’ve taken a bunch of pictures with it, but I haven’t really uploaded them anywhere. These are a few that I like; there are more and I may upload them later.

Bear in mind that the pictures are somewhat large and take a little while to load (around 10 seconds unfortunately; my upstream speed is crap).

Comments are appreciated :)

The XBOX is a piece of shit

April 22nd, 2010 vivin 2 comments

Thanks Microsoft. I have a console that’s barely over a year old and I already have an open tray error. I bought a new console because my old one died after I sent it back to you TWICE. It also had an open tray error. Thanks a lot Microsoft for MAKING SUCH A SHITTY CONSOLE. I have seen retarded monkeys make better console. Honestly, just what kind of shitty racket are you douchebags running? Are you guys so fucking stupid that you can’t even make a DVD drive that WORKS? Are you seriously THAT DUMB? Not only that, you want me to pay $99 to get it fixed because you retards are too damn stupid to make it right the first time? Fuck you.

vim: removing blank lines

April 6th, 2010 vivin 1 comment

This always seems to get me and I have to figure it out every time. Sometimes I have files with blank lines and I want to get rid of them. Here is how you do it in vim (one of the many ways, actually). First you want to get rid of whitespaces:

:%s/^\s\+$//

Note: I used a blockquote here because WordPress doesn’t like two forward slashes in the sourcecode tag.

Then, you have to do this:

:%!grep -v  "^$"

Of course, this only works in Linux, BSD, or any of the other Unices.

Categories: Nerdy Stuff Tags: , , ,

Comments issue fixed

April 5th, 2010 vivin No comments

The recaptcha plugin had an update which fixed the comments issue. Comments should no longer be marked as spam. I apologize if you commented here and your comment did not show up! It may have been deleted from the spam queue.

Regula: An annotation-based form-validator written in Javascript

March 30th, 2010 vivin No comments

Regula is an annotation-based form-validation framework written in Javascript. There already exist a few frameworks that address form-validation in Javascript, but I have found them to be somewhat lacking. I have thought about writing one of my own for some time, but I honestly had no idea what form it would or should take. I knew that I wanted to make one that was easy to use, flexible, and easily extensible (custom validation rules). I finally got an idea as to the form my framework should take, when I was looking at Hibernate bean-validation. I like the fact that you can set constraints by using annotations like @NotNull or @NotEmpty. That way, when you look at the bean, you are immediately aware of the constraints attached to it. I wanted to do something similar in HTML.
Read more…

Akismet flagging everything as spam

March 29th, 2010 vivin No comments

If you’ve been commenting on posts and now seeing anything, it’s because Akismet as been flagging all comments as spam. I don’t know why. I think it started after I upgraded WordPress. I’ve turned it off for now. Oh well.

Categories: Nerdy Stuff, Web Tags: , , ,