October 2011
1 post
Moving to Blogger
Bored with Tumblr, moving to Blogger.
Current posts will stay intact on http://wardje.tumblr.com/. New blog will be on the usual http://b.wardje.eu. Tumblr has no obvious way to export posts so it really will be a fresh start (thanks a lot tumblr).
I’m guessing it’ll take a bit for the DNS settings to take effect.
August 2011
2 posts
4 tags
Make SuperTuxKart GP more challenging
I guess I quite like this game ;o
Doing 1 lap GPs of a lot of tracks on expert with 19 karts is decent fun, but the challenge was a bit gone. In hopes of at least making the races more challenging (winning the GP is still easy), I edited a configuration file to reverse the starting order at each track. So rather than the first starting in first position etc, the last starts first, then the...
5 tags
Show GP position during a race in SuperTuxKart
After quite some time, here’s an update!
In SuperTuxKart, I’ve grown to like doing Grand Prix with
19 AI opponents
Lots of races (for example, all of them and only 1 lap each)
This has sometimes lead to confusion during the race as to who my direct opponents were and who harmless flies. So I did what any sane person would do and dug in the source code to add it myself of...
July 2011
1 post
6 tags
Removing some subreddits from reddit's r/all
My recent suggestion on reddit to allow the removal of some subreddits from my r/all view didn’t get any attention, so I ended up throwing a Greasemonkey script together to do just that.
It’s nothing special and I wrote it 5 minutes ago so it might still be buggy, but I figured I might as well throw it on here.
// ==UserScript==
// @name No more...
// @namespace ...
May 2011
2 posts
6 tags
Digraphs and trigraphs in C++
TIL, as they say. This is completely valid C++ code, compiling without any errors.
#include <iostream>
int main() <%
int a<:5:> = <% 1, 2, 3, 4, 5 %>;
std::cout << a<:2:>;
return 0;
%>
It all has to do with so called di- and trigraphs. Of course I wouldn’t use these anywhere unless, somehow, absolutely necessary. No doubt it would only...
5 tags
Statistics of differences between commits
Because I seem to keep forgetting this one whenever I do feel like I need it, I figured I’d dump it here.
To see a more concise list of amounts that got changed between two commits, issue:
git diff --stat <old commit> <new commit>
Example output:
$ git diff --stat 8fd1f20200ff83a23a81 master
bachelorproject/main.tex | 114 +++++++++++++++++++++++++++++----
...
April 2011
1 post
5 tags
Keep SuperTuxKart up to date, revisited
I made a post a few weeks back about keeping Supertuxkart up to date. This has, above all, taught me one thing… Don’t publish stuff that you only wrote from memory.
So I just now took some time out to try things out myself again, starting from zero. Well, somewhat zero, I already have the correct header files and the likes installed and you’ll have to forgive me for not...
March 2011
4 posts
3 tags
Changing SuperTuxKart Ingame Ranking Display
You know what’s so great about open source games? You can so easily tweak them to your liking! When I play SuperTuxKart, I like to play it with a lot of other karts in the race, 19 others to be precise. When I do so, I also tend to do championships since I find them generally more appealing than the other aspects of the race.
However, the ingame ranking tends to only show the first few...
5 tags
Keep SuperTuxKart to the latest version
Updated 2011-04-19, see this post.
I enjoy playing some SuperTuxKart, but I also enjoy keeping up with its development and seeing changes immediately as they are pushed. Random PPAs will try their best, but if you really want everything, you’ll need to use the svn repository directly. I’ll give basic instructions for Ubuntu here, but whatever your distro is, the options are most...
2 tags
2 tags
I figured out the ending to INCEPTION
extracting:
brosenthal-:
So, you know how everyone thinks that the Top is his totem, but in the beginning he mentions that it’s actually Mal’s? Well, you see, if it’s not his totem, then it’s not going to properly work for him. Cobb’s totem is his WEDDING RING. Whenever he’s dreaming, he has a wedding ring on because, as he says, in his dreams, they’re still together. In reality, he’s...
February 2011
2 posts
2 tags
Curling ? [NSFW]
nmcpics:
4 tags
Disable Firefox Panorama's Zoom
When using Firefox Panorama (in day to day use, I still call it tab candy), I find the zooming in and out to be rather annoying as it looks a bit choppy on my laptop. However, a quick trip to the configuration settings solves this quickly.
Open a new tab and go to location
about:config
Now go to the key browser.panorama.animate_zoom and double click it to change it to false. No need for...
January 2011
5 posts
4 tags
Autoreplace outgoing text in XChat with Python
Having grown to like some unicode characters while talking on xchat, I decided there was a better way to enter them than to use CTRL+SHIFT+U + Numbers (linux) every time again. So I dug into the Python XChat interface a bit and threw together a quick script that will check everything you write and replace certain things with prettier unicode variants. Figured I’d post it here in case someone...
3 tags
XChat's Python interface
This is probably a nobrainer for a lot of people, but given my limited knowledge of Python I found this useful to write. Load the script and issue /inspect to see all the public methods of the xchat object.
# -*- coding: utf-8 -*-
__module_name__ = "XChat Inspect"
__module_version__ = "0.1.20100130"
__module_description__ = "Print the interface of the xchat object"
import xchat
def...
6 tags
WhatPulse starts up too soon
I am still faithfully running WhatPulse. However, when installing it on a fresh Ubuntu install on my laptop, I encountered that “good old” problem again where WhatPulse starts too soon. That is, after adding WhatPulse to the start up applications, it starts before the notification-area-applet which is a bit problematic since WhatPulse resides there by default.
In the old days, I used...
5 tags
Wolfram Alpha →
mathematicallyyours:
I realize that I haven’t posted in a while and there will be a more legitimate post of mathiness soon, but in the meantime, I sure hope I am not the first to point out the existence of this website to you. Wolfram Alpha is probably the coolest search engine on the intarwebs, specializing in math and boy can it do a lot.
May I give an example:...
10 tags
Bouncing balls in Masm 6.11
For my computer systems class, we have to write something in asm for the 80x86. I’m working on some bouncing balls (as in: it’s not finished yet) and I’d thought I’d share with the world in case someone else can learn anything from it.
It is hosted in its entirety @ https://github.com/Wardje/compsys .
I’ll probably add the DOSBox setup I use to the wiki one of these...
December 2010
4 posts
7 tags
Adding own Emblems to folders in Nautilus
Pro tip:
Are the available emblems in Nautilus not enough for you? You can easily add more by going to Edit->Backgrounds and Emblems. A window will open that allows you to add emblems at will. It’s really self-explanatory, but you might haven’t noticed that functionality yet, enjoy!
6 tags
Coloured Git Output
Pro tip:
You can enable git’s output to be coloured by issuing
git config --global --unset-all color.ui git config --global --add color.ui auto
Note that you can view all set configuration options with
git config -l
6 tags
Using .icns files on Linux - Ubuntu
I was downloading some icon packs from the ever wonderful Smashing Magazine and some of them contained only files with a .icns extension, Apple’s icon image format. Ubuntu was having trouble opening them (I’m guessing there’s license issues of some sort preventing Canonical from shipping Ubuntu with the codecs for it installed by default), but as usual there is a fix right around...
6 tags
Unlock all SuperTuxKart tracks
I’ve been playing some SuperTuxKart lately and quite enjoying myself. There was one thing that kept bothering me though, I wasn’t too great at it and really just wanted to do random races on whatever track available. Sadly enough, unless you complete challenges, you’re not allowed on a whole lot of tracks. I figured it was time to look for a workaround.
After checking out the...
November 2010
2 posts
5 tags
Find out your Ubuntu, Kubuntu, ... version
Just something small, apparently your version number is mentioned in /etc/issue so issuing
cat /etc/issue
in a terminal shows your version. Example:
ward@sekhmet:~$ cat /etc/issue Ubuntu 10.10 \n \l
8 tags
Nautilus elementary and being stuck with a certain...
After I installed nautilus-elementary on my laptop with a fresh Ubuntu 10.10 (“Maverick Meerkat”), I found myself being stuck with the tree view I had used briefly before installing. There seemed to be no easy way to change back to the Places view, so I dug around a bit:
First off, open gconf-editor by pressing ALT+F2 and entering
gconf-editor
Next, go to apps -> nautilus ->...
October 2010
3 posts
5 tags
LaTeX verbatim preserving indentation
In LaTeX, you can use
\begin{verbatim} if (1) { std::cout << "Hello world"; } \end{verbatim}
and it will show clear fixed width code, except for one thing; it doesn’t preserve your tabs. Rather annoying!
To solve this you can use verbatimtab in the moreverb package
\usepackage{moreverb} \begin{verbatimtab}[4] if (1) { std::cout << "Hello world"; } \end{verbatimtab}
The...
5 tags
Full name in the MeMenu
Quick tip to change the MeMenu in Ubuntu (upper right corner by default) to show your real name instead of your username.
Method A (terminal): Open a terminal and enter
gconftool -s --type int /system/indicator/me/display 2
Method B (GUI): Press ALT+F2 and enter
gconf-editor
Go to System -> Indicator -> Me, double click “display” and enter 2 as value.
6 tags
Turn off Firefox add-on compatibility check
Been trying to live the life trying out the Firefox 4 beta and found yourself annoyed with add-ons no longer working? Why not try turning that check off?
The method is relatively simple, but don’t screw up or it won’t work. Open Firefox and enter
about:config
in the URL bar. You’ll get warning telling you that you could break things, go past it. As a side note, you are hereby...
September 2010
17 posts
3 tags
VLC forward & backward keyboard shortcuts
This is a small one, but has proven to be o so awesome when watching… about every show I watch.
Alt + Left/Right = Backward/Forward with about 10 secs Ctrl + Left/Right = Backward/Forward with about a minute
I’m gonna assume other media players have this too, or something similar at the very least. If not, then they really should.
1 tag
It's time to get serious...
With my new academic year about to start again, it is back to more serious/useful posts for this. The random funny “shit” goes in the twitter feed (@wardmuylaert, see box on the right).
Holiday is over!
4 tags
5 tags
4 tags
4 tags
... fucking ...
OkTrends Racial Stereotype #1
In the course of researching this article and, in particular, comparing white guys to black guys, a handy shortcut occurred to me:
If you’re trying to figure out if white dudes like something, put fucking in the middle, and say it out loud. If it sounds totally badass, white dudes probably love it. Let’s see this principle in practice:
Source
6 tags
5 tags
7 tags
Operation Never Give Him Up
http://www.youtube.com/watch?v=rgUrqGFxV3Q
5 tags
5 tags
6 tags
Honesty (House S02E22 - Forever)
Chase: ECMO could kill him.
House: You don't start him on ECMO and that infection could rampage through his body like pistons fans after a championship. But you do it your way. Nothing more honest than a dead baby.
4 tags
4 tags
3 tags
If football is so spectacular, why does it take cheerleaders to excite the...
4 tags
4 tags
You kids should make design like you make love; passionately, attentively, and...
– http://twitter.com/AngryPaulRand/status/20929222095
@AngryPaulRand
August 2010
26 posts
4 tags
PhD in Pictures →
5 tags
3 tags
6 tags
Fonts and Ubuntu
As far as I could find out in my quick lookaround, there seems to be a lack of a default, decent font viewer-and-manager-in-one. Here are some general tips I came across while checking things out:
Your personal fonts folder:
/home/username/.fonts
Systemwide fonts folder:
/usr/share/fonts/
Fontconfig cache updater:
fc-cache
and to force an update (and show the checked folders):
fc-cache -fv
...
6 tags
The Official God FAQ
Question: “Is there a God?” Answer: “No.”
[ Source ]
2 tags
If people can’t figure out your user interface, perhaps it’s too crowded....
– Lukas Mathis in Nobody reads your dialog boxes, a fantastic article. go read it. (via mnmal)