2,928 reputation
1027
bio website lekensteyn.nl
location Netherlands
age 21
visits member for 4 years, 2 months
seen 19 hours ago

Former Kubuntu desktop user, now using Arch Linux. Open-source enthusiast, programmer.

Interests: network protocols, Linux kernel, server administration, Android, breaking & fixing stuff.


May
3
comment Remapping Logitech K520 Fn keys on Linux?
@IgnacioVazquez-Abrams There is a way to swap the function keys such that you only need to press one key.
Apr
26
comment How to disable CSP in Firefox for just bookmarklets?
The on-demand feature is very important. I have bookmarklets that insert a quick eval-textarea with some features that does not fill the a large part of the page, one for creating a QR code for the current page and some other smaller parts. Those are not GH-specific. The power of bookmarklets is that they can be created and removed very easily. GreaseMonkey was already installed, but that is not going to solve the CSP issue. Thanks for the suggestions, perhaps a solution for Firebug will also be of benefit for bookmarklets.
Apr
22
comment Does git commit --amend overwrite the old commit completly?
git reflog expire --all --expire-unreachable=0 && git gc --aggressive --prune=now works for me. Credits to ducea.com/2012/02/07/…
Apr
20
comment On Linux, how can I find all files that contain a string and delete them?
It is easier to type -print (or -ls for more verbosity) than -exec echo rm "{}" \'. No need for external utilities.
Apr
20
comment On Linux, how can I find all files that contain a string and delete them?
... which can be shortened to: find -type f -exec grep -q 'foo' {} \; -delete (the quotes around {} are redundant, find is also able to delete files.). Note that grep accepts a regular expression. If you want to search for foo.bar, either escape this or pass the -F option to treat the pattern as literal.
Mar
7
comment How to parse a webpage into a text or excel file?
You can use Greasemonkey / a userscript / an extension / a bookmarklet to access the page.
Mar
7
comment How to parse a webpage into a text or excel file?
Try Javascript?
Sep
25
comment How can I force a malformed XHTML document to get loaded as HTML?
+1 because it is a usable solution.
Sep
25
comment How can I force a malformed XHTML document to get loaded as HTML?
Neat, I tried something similiar using document.write (ugly) or innerHTML/replaceChild or DOMParser, but none of them worked. This works great, thanks!
Sep
25
comment How can I force a malformed XHTML document to get loaded as HTML?
This will break hyperlinks and is also inconvenient given that there are multiple pages on that site that are broken. Isn't there a special URL of setting to get XHTML parsed as HTML? Also, I am not actually interested in fixing the markup and want to have the flexibility of browsers being able to parse malformed HTML without complaint. Having some display errors is fine, as long as I can read the page.
Jul
12
comment External (SSD) became read-only and it seems irreversible
I suggest you to put the SSD in a machine in which you can connect the SATA cable to and retry a firmware upgrade (if not everything is broken). A SSD firmware update over USB is asking for trouble.
Jul
12
comment External (SSD) became read-only and it seems irreversible
Wait, an external case over USB or eSATA? TRIM is not supported over USB.
Jul
8
comment Make winXP live USB or at least bootable USB from OpenSuse to play Diablo 3 from that USB
Just a side note, back up your data... it sounds like you never did. You can't trust your hardware to never break nor expect the software to be bug-free.
Jun
2
comment How to change pass phrase of full disk encryption?
I would like to add that creating an image of the whole disk is not necessary just for modifying the passphrase. Simply use something like cryptsetup luksHeaderBackup /dev/sda1 --header-backup-file /media/externalthing/somefile to backup the file. Replace luksHeaderBackup by luksHeaderRestore to restore the old keys again. Note that the header backup should be saved to a secure place (preferably another LUKS partition on a USB stick).
Feb
7
comment Which Linux is working on ASUS laptop
prime-ng has been dropped. Use Bumblebee instead. See also How well do laptops with Nvidia Optimus work?
Jan
28
comment What kind of switchable graphics technology does ATI/AMD have?
Thanks for clearing a lot thing up. Last question, are these modes mandatory? I.e. what if you're on battery and still wants to use the full power of both cards? Can fixed mode be disabled?
Jan
28
comment What kind of switchable graphics technology does ATI/AMD have?
"Earlier models of HP notebook PCs supported Fixed Mode while later models support Dynamic Mode." (citation from link in last post) -- does this mean that there exist machines which only support Fixed mode? According to h30434.www3.hp.com/t5/Notebook-Display-and-Video/…, there is support for both settings (although only one can be active at the moment which makes sense), but it's still unclear whether it applies to older (fixed) machines as well.
Jan
28
comment What kind of switchable graphics technology does ATI/AMD have?
So, AMD Dynamic Switchable (PowerXPress?) is like NVIDIA Optimus. Do you happen to know whether "Fixed mode" systems can be controlled manually? I found h20000.www2.hp.com/bizsupport/TechSupport/… mentioning "Fixed" and "Dynamic"
Jan
20
comment Change the search engine used by about:home in Firefox
This does not prevent Firefox upgrades from fiddling with this setting.
Dec
22
comment Will upgrading Firefox to the latest version clear my Awesome Bar database?
Uninstalling the old Firefox won't touch the Firefox profile which contains bookmarks, cookies and such.