Categories
Programming

Woke up this morning

Woke up this morning, went to my Enterprise Computing class (an amusingly basic programming class I was encouraged to take because it’s VisualBasic .NET), to do this silly problem where using a loop calculate how long it would take to pay for payment making wage per hour:

Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
        ‘ Declarations
        Dim payment, wage, totalWage, hours As Single
 
        ‘ Get input
        payment = Val(txtPayment.Text)
        wage = Val(txtWage.Text)
 
        ‘ Do the magic
        hours = 0
        totalWage = 0
        Do While (totalWage < payment)
            totalWage += wage
            hours += 1
        Loop
 
        ‘ Print the result
        lblResult.Text = hours
    End Sub

Yea, I feel really good. And yes, that’s supposed to be a loop. πŸ˜€ Well worth getting out of bed ;-). Got a good laugh out of coming to class to see that as the lab.

Categories
Funny In The News Programming

America’s Most Eligible Bachelor

According to this I’m potentially America’s Most Eligible Bachelor. I’m as nerdy as it gets. I’m writing this while taking a break from something that I was really enjoying: debugging a web app! Can you get any more nerdy?

Apparently that article hasn’t quite gotten around yet. πŸ˜‰

Categories
Programming

Project Naming

It’s long been a tradition to name products, revisions, and milestones. We’ve all done it. We all still do it. Sometimes the names are rather boring “Longhorn”, sometimes a bit more creative. Looking at the Firefox roadmap tonight I noticed ben recently updated it so that Deer Park 1.1 alpha is Strippenkaart (Dutch transportation ticket, presumably influenced by the recent Xtech convention) [Google Link | Wikipedia (nl)]. Having spent quite a bit of time in Holland on family vacations (my mothers Dutch), I read it a bit more literally initially, than as a usual product name. Rather strange.

The phrase “Chicken Cutlet” has a rather different meaning in Dutch than in english though.

Project names are fun aren’t they?

And no, I don’t speak Dutch despite all that travel. I’ll recognize a word or two, that’s about it.

Categories
Funny Programming

I’m a geek

If your reading this blog, you already know that. Well, this blog post gave me a really good laugh [hat tip Photo Matt]. It describes me so well. I don’t have that many geeky shirts though as my Firefox shirt is about the only one decent enough to wear (though if you want to apply to advertise on my back, contact me, and send your company/product’s shirt, I’m always willing. Polo’s perfered, T-Shirts accepted). That really is a classic post. I really like #2 “Your body/sex appeal are nothing compared to the power of a processor”. Brilliant. So well written.

Categories
Personal Programming

A Boring Day

Spent most of the afternoon working on my Principles of System Design Project (crossing another off the todo list).

Also hacked up a really cool toy that you will see hopefully in the next couple of days.

Next up is a History of American Art paper.

Categories
Personal Programming

Paul Graham on College

Paul Graham, whose writing I greatly admire wrote an excellent bit on College recently. Being a college student myself, I found this to be by far the most interesting thing he’s ever written (and there’s quite a bit of competition there). A few things he wrote stick out in my mind:

The way to be good at programming is to work (a) a lot (b) on hard problems. And the way to make yourself work on hard problems is to work on some very engaging project.

Couldn’t agree more, and considering that I’m a geek, this one comes rather naturally. I didn’t need to make an effort to accomplish this one, it just happened for me. I guess that’s a good thing.

In fact, the amount of math you need as a CS major is a lot less than most university departments like to admit. I don’t think you need much more than high school math plus a few concepts from the theory of computation. (You have to know what an n^2 algorithm is if you want to avoid writing them.) Unless you’re planning to write math applications, of course. Robotics, for example, is all math.

Finally someone with credibility admits this one. One of the reasons I avoided the CS major was simply my dislike of math (and more importantly the dislike it has for me). It surprises people that I know how to program without a CS degree. It surprises people even more to know that I royally stink at math (just ask any former math teacher/professor I’ve had). Nobody believes that I can code because of this… well go figure I can.

The worthwhile departments, in my opinion, are math, the hard sciences, engineering, history (especially economic and social history, and the history of science), architecture, and the classics. A survey course in art history may be worthwhile. Modern literature is important, but the way to learn about it is just to read. I don’t know enough about music to say.

I agree with the one omission of a Business degree. It goes very well with a CS degree should you pursue one. Simply for the reason that just about whatever you do with your CS degree will take advantage (if not require) it. Take for example a corporate IT department. To advance, you’ll need a business background. A small company? You can bet a business degree will prove critical to your success. Startup? Hello, that is a business. Having a product is 10% of a successful company. The other 90% of it is a good business to support, continue, sell, market, manage that product. Take a look at the dot com bubble to see why Business ranks. To his credit he does mention economic history, which is also important. No matter what you’ll be involved in business if you want to succeed. Either with a startup, or with a corporation, understanding the business implications of decisions you make are essential to how you’ll be valued as an asset.

Of slightly less interest (at least right now) is the topic of Grad school, which I agree with. Though with a business degree, it has more merit than it likely will with a CS degree.

Overall a great (and recommended) read.

Categories
Apple Google Mozilla Programming

In memoriam, Jef Raskin

In memoriamI noticed this on Google this evening.

He definitely had an impact on my life, and we never even met. If it wasn’t for the Macintosh, I doubt I’d ever have gotten into computing, never which means looked at IT as a career, and never gotten into hacking Mozilla, and perhaps not even web development. Assuming computers were usable enough for the web to come about.

It’s amazing how much a part of my life computing is. If it wasn’t for him. Likely that wouldn’t have happened. So here’s a late post, to a computing hero.

Categories
Programming Web Development

Zen of CSS Design

Zen of CSS Design is out. I think I’ve got to pickup a copy of that book. For now just added to the wishlist. Looks rather good. David Shea is rather brilliant. I’m curious if anyone has seen it yet (and what they think of it).

Categories
Programming Web Development

Coding with Timezones

I’ve got a bit of a complex question here for all you professional web developers:

Environment
Website targeting international users in all 24 timezones. Website based in US.

Problem Summary
How do you handle timezones correctly? What is the best strategy?

Problem Expanded
The particular problem I see is Daylight savings. I’ve seen several sites ask it based on GMT (-5 for New York for example). Now what that misses is Daylight Savings. Not everyone in all timezones participates, and each has a different time when they implement it. Keeping it in GMT isn’t exactly desirable either, since users need to know the time (in their timezone).

Anyone take on the issue? I’ve searched high and low, and yet to see a good solution. Most just leave it as GMT, or hide times (put it in very low contrasting color compared to it’s background for example).

Categories
Programming

3 Projects

I’ve got 3 ongoing projects at the moment consuming my time. Yes they are rather intensive projects….

not to mention I have school πŸ˜‰

When they break, it will be big.

So this blog will be somewhat more quiet over the next few weeks.