Essential Software for a Fresh Windows 7 Install

A long time ago I wrote a list of software I always ended up installing on Windows XP. This is a revised list of what I use on my Windows 7 installation.

Internet

  • Google Chrome – I usually run the dev channel which is mostly stable for everyday use.
  • Firefox 4+

Development

Utilities

Office

Backup

  • Jungledisk for bulk image storage on Amazon S3
  • Dropbox for sharing smaller files among different computers

Multimedia

  • VLC
  • Wimp (norwegian service for audio streaming, a lot like Spotify)
  • FFDShow (adds codecs to Windows Media Player)
  • Picasa as image library

Omissions

I did not list a pdf viewer as I usually download the pdfs with Chrome and use the builtin viewer.

Gems not getting attached on Windows (7) with RubyMine 3

This night I had a frustrating problem. I bought RubyMine the other day for usage when learning Rails.

After 20 minutes I was ready to tear my hair out. No matter what I tried RubyMine kept saying that I needed to attach the rails gem. It also couldn’t execute tests since test-unit was not attached and so on. Gem install worked fine from the command prompt and bundle install did was working too.

Ended up being that I had set up both GEM_PATH and GEM_HOME last week when installing rails (I had trouble with windows permissions..). They pointed to different (non-standard) directories.. Setting up only GEM_PATH to the correct path worked wonders. For me this was ruby install dir\lib\ruby\gems.

E.g:

I:\Ruby192\lib\ruby\gems

After that life was fine again and the cortisol levels were dropping. :-)

TLDR: don’t change defaults on a poor development platform.

What I’m currently up to

I guess I’m not blogging much. I’ll try my best to fix that.

These days I’m occupied as a java developer at a company called Cicero Consulting. The company is a combination of several services, but they are all related to banking and finances. Luckily in a way that shouldn’t hurt us to much during the economic downturn.

The company is like a small family, and we’re currently about 20 people working there. We have 8 developers that does consultancy and product development. I started out with product development in on our core product called Cicero Financial Planner. It is product delivered in various forms to major actors in the Norwegian banking sector and enables them to do effective client counseling.

Fast forward to november and I was sent out as a junior consultant to a (for me) large project related to the financial field. Being a consultant is in many pretty different from working in the office. Both good and bad. I’ll probably write a post on this later as I get more time to compare. But the biggest change is perhaps working in a focused team again.

In the product developer setting we were 2-3 developers working on different parts of the product. This meant that you felt somewhat alone with what you were working on. In one way this was bad. It raised the threshold of starting a conversation about the aspect you were working on. I guess this is perhaps a bad personality trait that I have. I’ll work on it. On the other hand it also gave a lot responsibility and freedom to influence decisions during the development process. A huge bonus.

In the team and project context (in my specific case at least) the roles are somewhat reversed. There’s plenty of opportunity to discuss the different topics of the ongoing development process within the team, but smaller opportunities to be a part of decisions. This is both good and bad. It allows you to offload this work to others (or, it newer reach you), but it is frustrating when (in my eyes) bad decisions have are made. The decisions can also take quite a lot of time to clarify with the customer. Which is pretty frustrating when they’re minuscule in my eyes.

So, what do I favor? I can’t decide. Working for yourself, being your own boss and being allowed to make decisions contra the interaction and focus in a team. I think both have their merits. Either way, change is good and conditioning.

I guess that sums up my current status as to work.

New training gear is inbound

Today I ordered a couple of items I look forward to getting in the mail. The first is a Gymboss which is a interval timer with vibration and sound. I plan to use it for doing tabatas. Thanks for the tip Thomas!

The second item is a pair of mini bands from Iron Woody Fitness. I plan to use these on the bench press, push ups, x band walks and probably a myriad of other exercises and mobility work as I get acquainted with it.

Just hoping both items will arrive before Christmas…

Miktex/latex doesnt render text in pdfs properly

Symptom: When producing pdfs with latex (miktex distro) it uses bitmap fonts, resulting in text that it is not possible to either select or search.
Solution: install the cm-super fonts with the miktex package manager (large package), or use the \usepackage{lmodern} command to use the lmodern fonts that are included with miktex.

This post at miktex support forum outlines the symptoms, cause and solution.

Trouble with Torrents (uTorrent) on Windows Vista with McAfee

My mother recently bought a shiny new dell with Windows Vista on it. I recently got my fingers on it, and it’s pretty darn alright. But I had one problem:
starting uTorrent was causing the system to slow down and also drop http traffic…

After consulting a friend we found out he had the same problem some months ago. The solution was simple: uninstall mcafee.

So I uninstalled mcafee, and now my linux iso download is blazing. :-)

Btw, you REALLY SHOULD install some other AV after uninstalling mcafee. I’ve been pleased with Avast which is free. Also I’ve heard good words about AVG, Avira and Nod32 (this is one of the best, but payware).

New Media I’ve Enjoyed So Far This September

Music

Zo� Keating

I discovered a German artist called Zoë Keating the other day while watching a photo series(the ‘audio slide’) on New York Times that was about China and the consequences of the rapid industrialization. Make sure to turn on the sound.

So far I’ve only listened to the music on her myspace page and downloaded a live album from eMusic. There’s also some videos up on youtube.

Oh, and it’s cello.

Talib Kweli

Good hip-hop without all the killing, bling and “hoes”. From the Wikipedia article:

Talib Kweli (born Talib Kweli Greene in Brooklyn, New York City on October 3, 1975) is an American MC from Brooklyn, New York. He is one of the best-known rappers in alternative hip hop, and is frequently critically acclaimed, despite not having seen significant commercial success. His name in Arabic means “student”, his last name in Swahili means “true”.

So far I’ve listened to his new album Ear Drum and a mix cd called Right About Now. Both good in their own respects. Although I’ve heard that his older material is better, so there is more to explore.

Blogs

I’m a regular reader of Stronglifts.com which is a blog about strength training. It features themes as technique (helped me improve my deadlifts) and nutrition (proponent of the anabolic diet – which I’m not on.. as of yet.).

Not to much, but some.

Lessons Learnt After Developing a Web Application – Coding

Yesterday I talked about how the project was executed in both the design and implementation phase. Today I’m ranting a bit more in detail about how we coded the thing in PHP (v5).

Database Access

Our Approach

When coding started, we agreed on (or rather, I pushed the view) that we should use the DAO pattern for our database access needs. To work easily with the database, and also to have the possibility of prepared statement we used Creole, a PHP database API that’s very similar to Java’s.

Soon, we had our DAOs. Though, all was not good. Eager to get going we started coding using our new functionality and didn’t bother coding up the corresponding service layer for them. This was alright to begin with since the application only had some basic CRUD functionality. The problems (or future problems if you want..) became obvious when we started adding functionality that cut across the model objects. Code cutting across the DAO layer was made. And this in turn led to duplicated code.

At that point, I guesstimate that our application was ~70% done. So, to go back and change everything into using a Service Layer wasn’t an option with the deadline closing up and the code was delivered with those nice dependencies within the layer.

Alternative Approaches

Looking back, I see that the Active Record pattern probably could have been a good choice.

The View (and Controller)

This was probably the hardest part to get done right. And there’s no real consistency in the approach here.

Some places the code for handling form data and get requests were in the same file, and the page posted to itself. I guess this is fine for smaller scripts, but some of ours were starting to get big quick, and doesn’t look very maintainable.. In other places there was sort of a controller. They took POST data and redirected with a header(“Location: foo”) call. This is a much more maintainable approach, and very MVC.

I think the issue would have been better solved using perhaps the Front Controller pattern or a good MVC implementation. Both coupled with a template language such as Smarty.

Summing up

Creole was a good experience. We lacked a good approach from the data layer and up. Using a framework like CakePHP or symfoni would probably been the best thing to do.

I think I have learnt a thing or two now.