This past week, during a team off-site at work, I was re-introduced to
the Eisenhower matrix; a handy device for prioritizing tasks and
deciding how and when to handle them. It gets its name from this quote
from US President Dwight D. Eisenhower:
I’ve wanted to upgrade my video setup for a while now. The [Logitech
C920] I’ve been using is quite decent, but I figured that if I’m only
going to produce more video content going forward, the upgrade would be
worth it. And I figured that doing the upgrade before I record my
might be a good idea.
Now that an increasing number of people are staying at home, more people
are asking me for advice on how to get started with live streaming. I
think this is great (yay for sharing knowledge!), so I want to share
some of that advice here to make it more broadly accessible. This advice
is primarily targeted at people live-streaming technical content, but
may also be applicable beyond that.
Okay, so, you are trying to install Windows on a laptop or something for
your friend. But you use Linux, and don’t have a Windows box easily
accessible. You’re armed with a USB drive, a Linux system, a Windows
ISO, and little more. Now what?
I’ve been playing around with the idea for a new podcast along with a
couple of other Rustaceans recently, and a little while back we decided
to go ahead and record an episode on the newly release Rust 1.36.0 (stay
tuned!). Yesterday, I spent some time trying to get all the “stuff” set
up to actually release the podcast, and it resulted in perhaps the most
frustrating few tech-related hours I’ve had in a few years.
Aleph One’s excellent Smashing the Stack for Fun and Profit article
from 1996 has long been the go-to for anyone looking to learn how buffer
overflow attacks work. But the world has changed a lot since then, and
the original attacks will not generally work on modern 64-bit machines.
Some of this is due to many new defense mechanisms that are now enabled
by default (see Paul Makowski’s Smashing the Stack in 2011 for an
overview), but those can be disabled if
all you want to do is understand how these attacks work. What cannot
easily be avoided any more though is 64-bit execution environments.
A while ago, I built a system-tray application in Rust to notify me of
new e-mail called buzz. It was working
fine, but every now and again, it would fail to connect to the mail
server on boot if it started before my network connection was up. Sounds
easy enough to fix, so I just added a loop around my connect
(even made it have exponential backoff!) and considered the issue dealt
Rust has been seeing increased adoption, both in academia and industry,
over the past few months. This is great news for the language and its
community. However, it inevitably also means that a number of people
with relatively little experience in Rust are exposed to Rust codebases,
and, in many cases, are asked to modified them.
One of the first decisions one has to make when learning to program is
which programming language to learn. In some cases, the choice is made
for you, dictated either by the language used in a class, or by a
framework you need to use, but often you will have at least a few
About six months ago, I started my first large-scale Rust-based project.
I’d dabbled with the language in its early days, but back then it was a
different beast, and not particularly approachable. I decided to try
again, and I’m glad I did. Rust is quickly becoming my favorite language
for all systems work (which is most of what I do anyway), and has
largely replaced both Go, Python, and C/C++ in my day-to-day.
For the past few months, I have been a Teaching Assistant for MIT’s
6.824 Distributed Systems class.
The class has traditionally had a number of labs building on the Paxos
consensus algorithm, but this year, we decided to make the move to
Raft. Raft was “designed to be easy to
understand”, and our hope was that the change might make the students’
For 6.824 we are using Piazza
for class communication and Q&A. Over the course of the semester, a
number of good questions have been asked that may be of use to others
trying to come to grips with Raft. A selection of the questions and
answers are given below. These are all adapted from the questions and
answers given by 6.824 students and TAs.
For the past few months, I have been a Teaching Assistant for MIT’s
6.824 Distributed Systems class.
In the past, the class has had several labs building on the Paxos
consensus algorithm. This year, we decided to make the move to
Raft. Raft was designed with the explicit
goal of being easy to understand, in the hope that this would make the
students’ lives easier.
The Internet has become a critical part of almost every part of our society — it provides information, communication, and entertainment to billions of people every day, and enables coordination and collaboration between people and business across the globe. Unfortunately, this crucial piece of infrastructure is poorly understood by a large majority of the population; the myriad of technologies (both hard and soft) that let your laptop connect to your bank or to your mom’s Skype window could just as well be magic as far as average person in the street is concerned.
A while back, I got my hands on the 3rd generation Lenovo X1 Carbon. Having been a happy owner of the first generation, and intentionally skipped the second generation, I was obviously excited. With my X1 Carbon, I also chose to add the WWAN LTE card (a Sierra Wireless EM7345) so that I can work while on the road using a data SIM.
Recently, online video streaming sites have started to dominate the scene when it comes to watching TV shows online, and is slowly surpassing the use of torrents for a large number of non-technical users. Sites like Project Free TV and Watch Series index this content, providing users with lists of seasons and episodes, along with multiple mirrors for each video.
R is a great tool for writing small programs that compute statistics or visualize data, and could potentially replace the wide usage hacked-together bash, perl or python scripts that output gnuplot commands. In particular, the ggplot2 library makes creating beautiful (and complex) plots extremely simple. However, one problem in particular is preventing this vision from becoming reality: R does not support interactive scripting.
Linux is great - we all know this. However, as most Linux enthusiasts painfully experience more often than they’d like, Windows is still occasionally needed for certain applications. While WINE and VirtualBox VMs takes care of most use-cases, there is still the occasional game or application that you’d really just rather run in a plain old Windows environment with no layers between the OS and the hardware. Having an external drive you can boot Windows directly from is perfect for this purpose, and as MIT offers Windows 8.1 Enterprise for free to its students, I figured I’d take a stab at it.
Wi-Fi devices all have a (mostly) unique address burned into them when they are manufactured so that a meaningful media access control (MAC) protocol can be developed. This MAC address needs to be unique on your network so that your Wi-Fi access point knows which device is sending it data, and which device it should reply to.
After reading this great post on how in-app purchases are ruining the gaming industry, I felt an urge to play Dungeon Keeper again. Since I run Linux, however, playing games is not always such a trivial affair. WineHQ (unhelpfully) told me that Dungeon Keeper does not run very well under wine 1.5, but given that 1.5 was released early last year, I figued I’d give it another shot.
If you have ever had to plot something, chances are you’ve come across gnuplot. It’s a very versatile plotting tool, and once you get used to the syntax and quirks, you quickly start using it from everything from throwaway data visualization to plots included in papers.
Problems involving searches are very common in computer science, and they are often N-dimensional, meaning you are looking for a combination of values that yields some outcome. For example, you might be looking for all pairs of numbers whose sum is 50. This is trivial to express in most modern programming languages, and would usually be done with a nested for loop like this:
Yesterday Game Dev Tycoon went viral with its decision to punish pirates in an unusual, but quite ingenious way. Helping their popularity was probably the fact that the game is available for both Windows, Mac and Linux, and so users were downloading it like crazy! Unfortunately, the Linux version seems to be riddled with bugs at the moment, and for some users getting the game to run in the first place seems to be causing massive headaches.
You probably know me. Or someone like me. The guy who always raises his hand in class or who has a question or comment regarding whatever idea is being discussed. You might find people like me annoying. I’ve never understood why there seems to be so few of us though. Ever since I was a kid, I’ve wanted to question things; to figure out why or how. Unfortunately, it seems most people don’t. Or rather, it seems as though people are afraid of asking questions. Whether it is from fear of showing that they don’t know or from not wanting to take up other people’s time or something else entirely, I’ve never been able to understand. I do know, however, that it disturbs me.
I’ve always considered myself a programmer, a coder. I came up with ideas, or other people did, and I wrote the code needed to make them work. Only recently have I realized that not only is programmer not sufficient to describe what I do, it is not even what I want to be doing.
After switching to systemd a while back, I have been annoyed by having to enter the decryption key for my /home partition on every boot. My root partition is unencrypted, as are all the other partition except /home, but having to enter the key makes the boot process seem slower than it really is since the password prompt appears in a plain white-on-black tty. Also, due to the concurrent nature of a systemd boot, the password prompt is often intermangled with other boot messages. This happens even with the “quiet” boot parameter since fsck results are still printed. For a while I tried to ignore the problem, but one lazy afternoon I decided to come up with a somewhat prettier solution.
So, you’ve got a list with overflow:hidden, and you want to make it scrollable with touch?
And perhaps you don’t want to include a library such as [iScroll]((http://cubiq.org/iscroll-4), you just want simple scrolling with as little code as possible.
Perhaps you even stumbled across the fairly simple solution proposed by Chris Barr on his blog, so you start using it (replacing all .pageY with .pageX for horizontal scrolling), and your content scrolls like never before!
I’m a big fan of Android. I have written a few apps, have two phones running it, and I happily recommend it to friends. There is one problem though; the Android experience is riddled with paper cuts. Seemingly minor annoyances that all together make for a frustrating user experience. Google attempted to mitigate some of these in Ice Cream Sandwich, but they somehow managed to introduce a slew of new ones.
Over the past couple of days, I have developed my first two applications for the Android Market; Tuples and PencilWise. The first is a simple tool for storing key-value pairs, or tuples, of information you need to remember such as your bank account numbers, your PGP fingerprints, etc.. The second is a mobile version of the puzzle page by the same name.
Ever since my initial install of Windows 7, there has been one thing nagging me. The Windows welcome screen only ever displayed the avatar for the last logged on user and a blank image with the label “Other users”. When the latter was clicked, two text fields would appear prompting for username and password.
For those of you concerned with web usability, there are few better sources than Jakob Nielsen’s AlertBox.
At Bond University the IT department has now finally taken the step from an open wireless network with a login proxy to a proper WPA2 Enterprise setup.
How often have you found yourself creating a great new website design for a friend, family or a client, just to realize after all your HTML and CSS is done that the thing will need an administration panel? Way too often, the administration comes as an afterthought, and thus it ends up being incomplete, hard to use or in some cases absent. Two months down the track you end up being contacted again to do some “site updates”, and these just keep coming.
Update: It turns out the issue is even more general than I thought at first. It is in fact not just the HTC mobile sync program that causes these freezes; it is in fact any mobile syncing application. After launching the Sony Ericsson PC Suite today, I noticed that the issue returned immediately. I killed the process, and it ended again. Seems as though Windows 7 has issues dealing with mobile syncing software if the device is not connected..?
Almost all modern websites require some sort of administration, and this usually involves creating a separate administration page where articles can be added and users managed. Lately, I’ve been making quite a few new websites that will be released in the upcoming year, and all of these have been quite simple sites with a single user and where the administration consists mainly of adding simple news updates and updating page text. For these sites, a full blown administration panel is not necessary, and is also quite inconvenient as the user will have to go back and forth to see the results. So, what are the alternatives?
Update 2015-05-04: Note that much of the advice here will become outdated with HTTP 2, where there should be little to no performance degradation when serving many smaller files, and where compression might be on by default!
Ever so often, you come across a website that you would like to check regularly. Usually, this website is placed behind some sort of login, and therefore, you think, you might just as well forget it. A while ago, I found myself in the same situation. My university in Oslo published grades online, but gave you no warning when the exam results where published, so you had to check every now and then to see if you had any new ones. I figured that this was a bit bothersome, and wanted to find a way around it.
Have you ever wanted to watch a video online, but due to a slow connection or frequent dropouts, streaming is impossible to watch. In these cases, there is rarely a “Download” button that allows you to download the entire thing and watch it in full when it’s done. Evidently, this is a real-world application of Murphy’s law.
Nov 25, 2009
We all use the web differently, and all have the pages we cannot live without. Following is a list of the top websites I cannot live without. What are yours?
Google have been coming with a lot of new cool projects lately - From Chrome and Chrome OS to Wave and Social Search. Following this innovative trend, they have now announced that they’re working on a possible replacement for HTTP. Actually, it is not as much a replacement as it is an augmentation or “fix”. SPDY will still be using the headers and basic structure of HTTP, but will treat that structure quite differently and introduce several enhancements to make it more efficient and more suitable for the contemporary web context.
Google recently published a new feature on their Labs Search Experiments page: Google Social Search. By enabling this service, Google attempts to locate your friends and connections through online communities like Twitter, Facebook, GMail and Google Reader, and present you with search results that are not only relevant to your search phrase, but also to your social circle. For instance, searching for a restaurant will provide you not only with the regular search results for that restaurant, it will also give you blog posts, tweets and other publicly available messages from your friends, and their friends about what you search for. This may be a review, a comment, images or anything else that Google finds relevant.
So, you want to make websites, do you? Becoming a web developer is both very easy, and very hard at the same time. Mocking up a simple page online with some text and images is easy. Not only are there several WYSIWYG website editors (What You See Is What You Get) out there, but there are also several websites that allow you to create your page online directly through point and click. This is not web development.
The Mac of a friend of mine crashed the other day - complete harddrive failure. He turned it into the Apple store, and they decided to give him a new disk because they said they couldn’t recover the old one. Somehow, he managed to talk them into leaving him with the old drive so he could try to get at least some of his data back. My friend then came to me, and asked me to have a look at what I could find.
One of the greatest merits of the web, and at the same time, one of its greatest vices, is its decentralization. Data is scattered all over the place; and although this makes for a diverse and ( to a large degree ) uncensored source of information and news, it also means that you have to go to several different sites whenever you wish to see what has happened since you were last online.
Finally, my long-awaited ( on my part at least ) portfolio is live!
Update 21/11/09: The script now supports thumbnails for video and text, as well as timecodes for video and audio. FFMpeg is needed though..
I have recently bought two external SATA docking stations - one internal ( i.e. it fits in a 5.25” bay, and loads the drive from the outside like a large floppy ), and the other one completely external and connected through eSATA. For the first couple of weeks, I thought hot-swapping was not possible with these, and kept rebooting if I wanted to swap out a drive, however one day I came across a setting in BIOS describing how SATA drives should be treated. It was set to “IDE compatible”.. The other options were “Enhanced” and “AHCI”. I tried googling this, and soon found that AHCI is actually a technology that enables plenty of the cool features of the SATA technology - most notably hot-swapping!
Ever wanted to use a multi-monitor wallpaper / background image in Windows 7 ( or perhaps Windows Vista ), and found that it ends up showing a scaled down version of it of both screens? I did, and for a long time, I tried to find a piece of software that would enable me to stretch the image across both screens instead. For a while I gave up, finding no viable solutions. A couple of days ago though, I was playing around with the wallpaper controls in Windows 7, and just for fun I tried setting the background to “tiling”. And guess what? Suddenly, my multi-screen wallpaper stretched across both screens! “Stretch” and “fit” both seem to stretch the image across each screen individually, so you end up with the same image on both screens, but when tiling, if the image is large enough, the image will actually be put across both screens the way it is supposed to!
As a part of an university assignment, I am required to have a look at Google Docs, which I have been using for some time now. Perhaps not so much using it as having an account and creating one document, but still, I have had my look around, and as with most Google products, I am quite impressed with what I see.
I have long been anticipating Android 1.6 ( nicknamed Donut ) for the HTC Hero, but HTC have been unusually quiet as to how far along they have gotten. This has been quite annoying as my new piece of software for the Android requires Android >= 1.6 to work.
As some of you may have noticed, my current portfolio is, mildly speaking, lacking a proper design ( http://thesquareplanet.com ). Over the last couple of days I have decided to do something about this, and have started to build several prototypes of a new design..
My first completely self-produced website has now been released to the public!
As any proper geek, I am quite fond of comics, and especially those related to mathematics, computers, dry humor and sarcasm. Although I follow several different stripes, there is one in particular that is almost always to my taste: xkcd. xkcd is, according to the site, “A webcomic of romance, sarcasm, love and language”, but also sports some computer-related stripes.
A couple of weeks ago, I came up with a great idea for a piece of software for the Android platform ( i.e. for my HTC Hero ). I have programmed quite a bit using Java before, but the Android SDK is quite complex, and frankly not entirely well-documented, so there were quite a few issues to stumble across.. Developing the whole thing took the better part of a weekend, only for me to discover that it would not work properly on Android 1.5 ( Cupcake ) which my phone uses, since I had developed it for Android 1.6 ( Donut )… In theory, there should be no relevant differences, but everything is tossed around when I run the program on my phone or a 1.5 emulator.
The first thing I noticed at Bond, and which continues to confuse me to this day, is the extremely low speed ( and quality - but that is a discussion for another day ) given to each user on campus. Wherever you log onto the network, your connection speed is limited to 1 Mbit/s, which is far below the 20 I am used to back home. The connection is also rather unstable, so you are lucky if you get much more than about 70-80% of that. This makes all downloads a real pain, as even leaving the computer online over the night is not enough.. Several days are often required, depending on what you download ( only legal material of course……. )
Before I dig into the CSS 3 draft, I am going to give a quick introduction to the basics of CSS for those who do not feel entirely comfortable with the apparent complexity of Cascading Style Sheets;
As a webdeveloper, feature additions and updates to commonly used libraries and languages are always exciting. Unfortunately, there is one core language of web development which has not received a proper update in years - HTML. Sure, we had XHTML, but in my opinion, that was more of a structural change than it was a rewrite of HTML. XHTML merely enforced a XML structure as well as standardize the elements used for various types of content.
As you might have gathered, my roommate and I have been setting up a new computer for the last couple of days. This is quite a beast, which it has to be as he will be working with some heavy video editing on it through, amongst others, Adobe Premiere Pro.
I just received my brand new HTC Hero today, and full of excitement I immediately unwrapped and booted the new phone. This was a pre-update phone, so the first order of business was to update the firmware.
This week I have been setting up my new computer - a complete beast with Intel Quad Core i7 processor, 12 GB memory, 4 * 1TB drives in RAID 1+0, etc. On this computer, I decided to put both Windows 7, which is provided for free through the MSDN Academic Alliance and Arch Linux ( which I fell in love with the first time I tried it ).
I have been working with computers and software development for about six years, mostly web based, but also desktop applications.
Jon Ferdinand Ronge Gjengset