Mikael's blog

A developers seventh time trying to maintain a blog

I'm Not Dead...

… it’s just a flesh wound.

Jokes aside, I had planned to make a post last Monday about some HTTP HEAD/GET/POST and header request stuff I’ve done on the blog recently but something got in the way of me completing my work.

I still plan to do it when I get some spare time, but for now a simple I’m-still-here-post will have to suffice.

The last couple of weeks have been filled with work, migraines, sore throats and birthday parties. I also started watching a Canadian TV-series from 2004 called ReGenesis and it’s been taking up most of my time at night. I’m almost halfway through the 4th and final season now, so I’m expecting more blogging to be done in the coming week.

by Mikael Lofjärd

Say welcome to IBS!

The blog is now up and running on the new server (called IBS).

I’m not totally retiring the laptop yet as I might need it when the next Ubuntu LTS hits. And I have yet to try out if it’s the Atom processor that makes CouchDB run a little slower on the new machine or if it’s a 64-bit/SMP issue.

Anywhooo, I’m going to let it run for a few days to see if it’s up to the task so there might be some issues, resulting in unexpected downtime, popping up in the coming week. Do not be alarmed! =)

by Mikael Lofjärd

Tinker Time

It has arrived!

Now it’s up to me to get this thing put together and installed with some tasty Linux/Node.js/CouchDB action.

I also need to learn how to install Linux from an USB flash drive since I don’t have any DVDs at home. I almost can’t remember the last time I burned a DVD. I think it was roughly a year ago that I burned some photos I had taken at a friends wedding. And even then I had catch up on how to do it.

I fondly remember the old days when one could burn 200+ CDs at a LAN party.

I might have strayed a bit off topic now, so I will retire to my server build.

I’ll see you on the other side!

by Mikael Lofjärd

A New Home

I finally ordered a new server. It will probably take a few days to get it running (first I have to get the parts delivered), but at least I get to build a computer again. It was ages ago that I did my last build and I’ve never even touched an SSD or for that part anything using the SATA interface. That’s how old I am; when I built my last computer, we all used IDE.

The server computer is going to run my blog on a Linux OS somewhat similar to my current setup which means I don’t need that much power. I think the most server load I’ve had on this blog so far is about 3 simultaneous requests, so I opted for small and quiet.

The specs

  • ASUS AT5NM10T-I mainboard with an Intel Atom D525 CPU
  • Intel 320 Series 80 GB SSD
  • 2 sticks of 2 GB Kingston DDR3 RAM
  • Corsair TX V2 650W PSU
  • Lian Li PC-Q11B Mini-ITX tower

Now your two main responses might be: “an Atom processor for a server?”, or the more likely “why the hell would you need a 650W PSU to power that measly thing?“.

I had the same questions myself when I was looking for parts. The thing is that I really believe the Atom D525 which is a dual core 1.8GHz CPU will do the work at least as well as my old laptop with its 1.5 GHz Pentium M CPU. In fact, the CPU has been about the only part on my old laptop server that has never been a bottleneck. Node.js is not very CPU intense and my blog isn’t a ray tracer churning out the latest Hollywood CG movie on each request (although that would be quite awesome).

The choice of power supply really boiled down to price/availability/quality. Low power PSUs in the 100-150W range (even that would be a little over the top for my build) are hard to find these days and the cost is almost the same anyways.

PSUs in the 300-450W range are mostly made by “unknown” suppliers or are of lower quality. I wanted a power supply that had good reviews and won’t fail me. And since my Lian Li case can support a full size ATX power supply I went with that.

Expected outcome

Well I expect it to be quite a bit faster that my old server due to the SSD. I also expect it to draw much less power and it’s almost guaranteed to be a lot less noisy under load.

Both the Lian Li chassi and the Corsair PSU come with 140mm fans which bodes well for low noise. My choice of Atom processor means that there are no other fans needed on this system since the Atom D525 is passively cooled by a nice big heat sink.

My old laptop server had a slow 4200 RPM hard drive (might be a 5400 RPM after it got changed a few years ago) which is SLOOOOOW to say the least. The Intel 320 Series might not be the fastest SSD in the world (in fact it’s nowhere near that) but at 270 MB/s reads and 90 MB/s writes it should at least be a substantial performace upgrade and one less thing that makes noise.

The parts will likely arrive on Monday or Tuesday so I will probably lock myself in my office and start assembling right away. Until then I have to choose whether to stay with Ubuntu Server or move on to something new. The next LTS of Ubuntu is still a few months away and I really don’t want to make any big upgrades on the server once it’s up and running.

Stay tuned for more server stories in the coming week.

by Mikael Lofjärd

TODO 2012

Between my trip to the west coast for Christmas and my office being jammed up with boxes, there hasn’t been that much developing going on for me in the last few weeks. I have, however, not been able to stay away from it completely so a few nights ago I squeezed myself into my office chair and wrote some wierd scheduler/saga-mashup code that I’m going to need next week when I’m going back to work.

But that is a topic for another day (or night). Today I’m just writing down some of the stuff I will, and would like to, do during 2012.

My 2012 TODO list

  • Learn a few mobile web development frameworks. This will be my spring topic for my Tuesday workshops at work.
  • Scan all the codes from my IR remotes so that I can finally do something more that turn the TV on and off (although this was a nice feature to have during Christmas as I could connect remotely with my tablet and at the same time watch my living room through Skype as I turned my TV on for an impromptu burglar protection scheme).
  • Purchase and build a new server for the blog. My 9 years old laptop will hopefully be decommissioned A.S.A.P.
  • Upgrade all my Android devices to ICS so I can finally make some use of my client side certificates.
  • Probably redesign the blog just for fun.
  • Lot’s of refactoring.
  • Win the lottery.
  • Find more interesting topics to write about.

That’s basically my plans for now. Stay tuned to find out how it all works out!

by Mikael Lofjärd

Feeding the crowds

For a while now I’ve been trying to decide between ATOM and RSS for by blog feed, and yesterday one of our company’s owners asked me for a feed to my blog so that he could consume it at our new company web site.

I’ve finally decided to create an ATOM feed and if anyone has any problems consuming it, please contact me and I will try to fix it.

For now it’s not a full feed. Each entry contains the same amount of text as the archive listings since I’ve yet to figure out what to do about all the source code that’s in my blog posts. The source code formatting relies heavily upon CSS and I’m not even sure that I want my full posts in the feed.

Until I’ve made up my mind it will work mainly as a way of getting notified of new posts without having to visit the web site.

by Mikael Lofjärd

Santa Lucia

The time left before my holiday leave is running out fast and I’ve got a ton of stuff to do at work. To top it all off, this entire week is filled with urgent stuff to do, when I do manage to get myself home in decent time.

I apologize in advance for the lack of posts this week. I hope to get back up to speed soon.

by Mikael Lofjärd

Broken Archive

Turns out I broke the archive yesterday when there were suddenly two months to render posts for. It was a simple array indexing problem and now it’s up and running again.

by Mikael Lofjärd

Oh Crap: Redux

The commenting system had stopped working again. Christ, I really need to pay more attention to it. It’s probably been down since at least Thursday.

On the other hand, I managed to remove my old CouchDB views without crashing the server. I can keep telling myself that something worked out the way it should.

by Mikael Lofjärd

Refresh

I’ve done a fair bit of CSS and HTML work today, so you might need to hit F5 and refresh your cache if the site looks weird. =)

by Mikael Lofjärd

Sorry, sharing is not available as a feature in your browser.

You can share the link to the page if you want!

URL