Blogs
In the last few days, I get an increasing number of people coming up to me in the street and saying “But Stavros, how will I know if I have found the perfect man/woman/cyborg for me?”.
Worry not, gentle reader, for our science department is here to give you the answer to that question.
Imagine for a moment that, on a night out at the bar, you meet a girl/guy. You feel like you’ve never felt before the past week, and, whether it’s the alcohol thinking or not, you feel like you could really spend your life with them!
Not so fast, though.
I have an iPhone and iPod touch and recently bought Plants vs Zombies (again, I already finished the game on the PC) on both devices because I use them interchangeably and it’s just that good. A problem did quickly crop up, though, and the problem was “How can I quickly copy the game data from one device to the other?” I don’t want one device to be behind the other.
Initially, I tried to get AppBackup to backup both folders, copy the backup from the iPod to the desktop and then copy it to the iPhone and restore it in AppBackup, but that takes way too long.
After googling around a bit for a tutorial for a friend and failing to find a sufficiently succinct one, I decided to write my checklist here so I don’t forget. If you want to do passwordless authentication to an SSH server using SSH keys, these are the steps you should follow:
A month or so ago, my girlfriend decided to come see me, so I booked her a ticket online. We decided to go with easyjet as they were quite a bit cheaper, paid the 240 euros and were happy about it.
Cue next month, the day comes, my girlfriend goes to the airport all excited about coming over and easyjet tells her that her name is not the same as the first name listed in her ID card. I had used her pet name instead of her full, legal name (think “jenny” instead of “jennifer”) in the booking, not thinking twice about it (other airlines have accepted my misspelt last name just fine).
After spending the better part of an hour trying to forward a port in Linux using iptables, here’s what you should do and what you should remember not to do.
This technique should work on any distro that has iptables, such as Ubuntu, Debian, Fedora, Red Hat, RHEL, Gentoo, etc.
Today I had to write an assignment for my Evolutionary Algorithms course, which was to implement a genetic algorithm to solve the Traveling Salesman Problem. I wrote the Python code, it worked well but it took a while to find a good solution with 100 cities, and I realised it would be a few days before I could get a solution for the dataset with 3000 cities. I definitely needed to speed up my program somehow.
I decided to give Cython a try.
A few days ago, I tried to switch to BuySellAds to do my advertising. I figured that if I could get enough money to give the server a bit more memory, everyone’s experience would be improved. You may also have noticed that I changed the site’s domain from poromenos.org to korokithakis.net.
I tried to join the site a week ago and they turned down my application. When I asked them, they said that I didn’t have enough views.
In case you didn’t know, the default WPA key in Thomson/SpeedTouch routers is generated from the router’s serial. By some strange coincidence, so is the router’s SSID, which means that if you know the SSID (which is public knowledge), you can brute-force the serial.
There are programs to do this already, but they were not future-proof or open enough to work now, so I wrote a small Python script to do it. Just enter the last part of the router’s SSID (e.g.
These days I am trying my hand at a rewrite of Dead Man’s Switch, to add more features and generally improve the service.
One of these features was being able to add multiple emails in the “recipients” field, and I wanted to do this as cleanly as possible, so I decided to create a Django model with custom validation. This was not immediately obvious, as the docs didn’t mention much.
Well, I just got an Intel X25-M 160 GB SSD for my laptop (a MacBook), and I wanted to migrate all my partitions (I was triple-booting OS X, Ubuntu Linux and Windows 7) to the new disk.
This turned out to be less than a breeze, since there are a few caveats and the entire process takes time, but I will detail it here and maybe save some of you some time.
**WARNING: Don’t try any of this if you don’t know what you are doing!