Viktor on Open Source, Scaling, Unix/Linux and Entrepreneurship.

Sync your devices over the air for free

May 25, 2011 2:23 pm    Posted by Viktor Petersson    Comments (0)

I hate wires. I particular hate having to use wires to syncing devices.

Luckily, there are ways to avoid them (in most cases). If you are having issues with this, the solution is not to buy MobileMe. Google App/Gmail is all you need. I just posted up an article over at the YippieMove Blog that will tell you how. After reading it, you should be able to sync your Mac, iOS device(s) and Android device(s) wirelessly — for free.

Updates to WireLoad

May 16, 2011 11:38 am    Posted by Viktor Petersson    Comments (0)

2011 has been a big year for WireLoad. We have launched two brand new products (Blotter and Quiet) in a completely new vertical, namely the desktop market for Mac OS X. It has been a very interesting experience, and we certainly did not foresee the success we’ve had. Just a few weeks ago, Blotter was named ‘App of the Week‘ in Leo Leporte’s show MacBreak Weekly. Blotter has also been on the Top-10 list for productivity apps in the Mac App Store, and we’ve been the #2 app in the entire Korean Mac App Store (and top 10 in the entire Japanese Mac App Store).

With all of this success, we knew that we had to do two things that we’ve had in mind to do for some time:

  • Convert WireLoad from a California LLC to a Delaware C-Corp
  • Redesign our website for wireload.net
  • Create a logo for WireLoad

Now we have done this, and we feel a whole lot better. That said, 2011 is far from over and we have plans of doing some pretty amazing new things the year, so stay tuned. Now I just need to take care of this website, as this design is both broken and getting kinda old.

I leave you with a screenshot of the new WireLoad.net website.

The new WireLoad.net

How to travel safely with your computer

May 13, 2011 12:18 pm    Posted by Viktor Petersson    Comments (0)

Regardless if we travel in business or on a vacation, we tend to bring our computer with us (at least I do). Common sense tells us to not check in our computer, but there are other things that we really ought to do.

The first thing you want to do is to use disk encryption. The reason for this is simple: if you lose your laptop, nobody can access your files. This really isn’t as difficult as it may sound to set up. Mac OS X comes with two built-in types of disk encryption:

  • Encrypted disk images
  • FileVault (encrypted home directory).
    • The encrypted disk image is great if you just want to protect a few files, but FileVault is better if you want to protect all your files. It should however be noted that FileVault comes with a pretty major drawback: it only allows you to do TimeMachine backups when you are logged out of your account.

      It should also be mentioned that Lion will come with full-disk encryption, which makes dealing with encryption as an end-user both easier and more secure.

      If you’re not on a Mac, you can instead use TrueCrypt, which is a great Open Source encryption tool available for all platforms (including Mac OS X).

      The second thing you want to do is to install Prey. This is a really awesome free service that allows you to track your computer if it gets stolen. In addition to tracking your stolen computer geographically, it also allows you to snap picture using the webcam, along with other cool features. Prey is available to most platforms, including Android.

      With this advice on how to travel safely, I hope you have a pleasant next trip.

      PS. Do not forget to keep proper backups of your data. TimeMachine makes this easy, but don’t rely on a single copy of your backups. Hard drives are cheap, but your data is hopefully worth a lot (at least to you). Ds.

For a few months now, we’ve been working on migrating our physical architecture for YippieMove over to CloudSigma. We got everything up and running swiftly, with the exception of one thing: CARP.

As it turns out FreeBSD’s CARP implementation doesn’t really work very well in a virtual environment. (For those curious about the details, please see this mailing list post.)

In order to get up and running with CARP on CloudSigma, you need to do the following:

  • Download the FreeBSD kernel source
  • Download this patch (mirror)
  • Apply the patch (cd /usr/src/sys/netinet && patch -p0 < /path/to/esx-carp.diff)
  • Recompile and install your kernel (make sure to include “device carp” in your kernel config)
  • Add “net.inet.carp.drop_echoed=1″ to /etc/sysctl.conf
  • Reboot into the new kernel

That’s it. You should now be able to set up CARP as usual. For more information on how to configure CARP, please see my article Setting up a redundant NAS with HAST and CARP. That article also includes detailed instructions on how to download FreeBSD’s kernel source and how to compile your kernel.

As a technical side note, I got this working with FreeBSD 8.2 and the kernel source from the RELENG_8 branch.

Credits: Matthew Grooms for the patch and Daniel Hartmeier for great analysis.

Quiet – A great productivity app

March 14, 2011 2:43 am    Posted by Viktor Petersson    Comments (0)

Last week we launched our second application for Mac OS X. The application is called Quiet and is the best productivity tool I have ever used. The idea behind Quiet is simple. If you were to remove all distractions and only focus on one task at the time, you get more work done. This is exactly what Quiet does. It simply allows you to focus.

Let’s say you’re writing an important email that requires 100% of your attention. You would then simply bring up Quiet, and pick ‘Focus on Mail’ (assuming you’re using Apple Mail). Quiet would then bring up your Mail window on a black background. But that’s not it. In addition, Quiet will also do the following:

  • Put you in away mode on IM (Adium, iChat and Skype)
  • Disable the new-mail notification sound from Mail.App
  • Disable Growl

Once you exit the ‘focus-mode’, everything will revert to normal.

Here’s an example of how Quiet looks like in action:

Writing an important email in Quiet

I found it’s amazing how much work you’ll get done once you’ve removed all distractions.

Quiet 1.0 is available in the Mac App Store today.

For more information about Quiet, please visit the product page.

This solution is so ugly that I felt that I had to post it =).

I had a problem. Whenever I plugged in or rebooted, the a 3G modem into a Linux machine, it appeared on a different path (/dev/ttyUSBX). That creates some issues, as I’m using to connect to the internet, and Wvdial is using a hardcoded path to the modem. To fix this, I had to manually edit the file every time it changed. That’s very annoying. Now add in the fact that this is sitting on a remote machine that I have little physical access to, this is a real problem.

My initial approach was to turn to udev and write a rule for the modem that creates an automatic symlink, such as /dev/modem. Unfortunately, when you add usb_modeswitch into the mix, it breaks. For some reason, usb_modeswitch simply wouldn’t detect the modem when doing this, and hence render it useless.

Instead, I figured, if I write a Bash-script that automatically creates a symlink, that would take care of the issue. Of course, it is very ugly, but it does indeed work. Now I can simply run this script in Cron and that way know that I always have the correct path to the modem.

So how did this script look you may ask. This is how:

#!/bin/bash
MODEM=$(cat /var/log/messages |grep "GSM modem (1-port) converter now attached to" | tail -n 3 | head -n 1 | perl -pe "s/.*GSM modem \(1-port\) converter now attached to (ttyUSB.*)$/\1/g;")
CURRENT=$(ls -l /dev/modem | awk '{print $10}' | perl -pe "s/\/dev\/(ttyUSB.*)$/\1/g;")
 
if [ $CURRENT != $MODEM ];
then
	rm /dev/modem
	ln -s /dev/$MODEM /dev/modem
fi

I never said it was pretty, but it does indeed work. If you wonder what the ‘head’ and ‘tail’ part is all about, it is because the system creates three paths, but only the first one works.

Update: Turns out it is a bad idea to run this in Cron, as the logs will rotate. Instead, launch it at boot in rc.local, but make sure you insert a ‘sleep 10′ or similar to allow the modem to settle.

Update 2: Turns out there is a far more elegant solution to the problem. The system automatically generates a symlink for you. In my case, the modem is accessible via:
/dev/serial/by-id/usb-HUA_WEI_Huawei_Mobile-if00-port0
This means that you can hard-code that path instead of having to run a silly script to generate a symlink for you.

Spotify is probably one of the greatest apps I’ve used in recent years. It is the sole reason why I barely ever use iTunes anymore. Why would I bother downloading music when I can have access to a far larger music library at any given moment?

There is however one big problem with Spotify: How do you find new music? Spotify does come with a “What’s New”-section that I assume is somewhat tailored to my listening habits. Yet, it’s far from perfect. It doesn’t give you any recommendations for other artists that fits your taste.

Last.FM is a service that does this very well. What’s even better is that Spotify comes with built-in ‘scrobbling’ support for Last.FM (ie. sending what you are listening to to Last.FM).

What I used to do when I got bored of my current playlists was to go to Last.FM and turn their recommendations into a playlist in Spotify. It worked great, but it was a tedious process.

Now, along comes Lastify and does this completely automatically. It’s awesome. For some time, this is an idea that has been growing in my head. We (as in WireLoad) were thinking about launching something similar to Lastify for the past few months, but never had the bandwidth to do so. Now we don’t need to. Lastify does a great job already, so why reinvent the wheel.

What makes Lastify even greater is that it completely seamless (you do not need to do anything yourself) and the playlists are periodically being updated.
more>>

Blotter is now available

January 6, 2011 9:50 am    Posted by Viktor Petersson    Comments (0)

As of a few hours, Blotter is available in the App Store for Mac. We are super excited and this launch, and the App Store is really impressive.

Check it out right away!

Blotter is soon available

December 17, 2010 5:46 am    Posted by Viktor Petersson    Comments (0)

One of the biggest announcement Apple made in recent time was the announcement of the App Store for Mac. If you didn’t see the initial pitch, it is similar to iTunes App Store for iOS (iPad, iPhone, iPod Touch etc), but for native Mac OS X desktop applications.

We (as in WireLoad) wanted to be apart of this from the start, and got busy thinking about applications that we would like to see ourselves. The result is Blotter — an application that sits on top of your desktop and displays your calendar.


Blotter in action.

There are a few things that makes Blotter really awesome.

  • It does not consume much resources (barely any really).
  • It connects directly with iCal, so no configuration is required.
  • It sits on top of your desktop without being bothering you. It simply sits on top of your wall paper, but nothing happens if you click on it for instance. It just sits there.
  • It’s flexible. You can configure it in several different modes and positions on the desktop.

When App Store for Mac launches on January 6, you know at least one application that you need to get. I’ve been using Blotter for a few weeks now, and it’s hard to live without it. No longer do I miss meetings and events because I forgot to check the calendar (and/or set an alarm).

Check out some more screenshots and info over at the official Blotter page.

Red iGone for iPad is now available

December 15, 2010 2:39 am    Posted by Viktor Petersson    Comments (0)

I’m really excited about this. Red iGone, the red-eye removal tool I’ve been working on for some time, is now available on the iPad.

This is the first iPad application I’ve been working on, and the end-result is pretty awesome. While the web-version works great, the iPad version is far more intuitive, given the intuitive touch experience.

Direct iTunes link.

Let me know what you think.