Found some cool glow effects. Couldn’t actually get them to work in my context, but it’s the thought that counts.
Passing selected value into HTML select onchange handler
So you have a <select> element and you want to call a handler, but you need to pass the selected value to the handler because you have multiple instances of the same <select> and can’t access them by ID (because there is many, one of which will have the new selected value, but you don’t know which). The solution is to pass in the newly selected value, like this:
<select onchange='handle_change( this.value )'>
Easy-peasy!
Web Content Accessibility Guidelines (WCAG) 2.0
Read a little bit of the Web Content Accessibility Guidelines (WCAG) 2.0… should come back to this when I have more time.
Differences between Arithmetic, Geometric, and Harmonic Means
WinKey+R in KDE
So I found this:
Go into “Global Keyboard Shortcuts”. Under “Run Command Interface” you’ll find ‘Run Command’. Under “KWin” you’ll find a ‘Show Desktop’ entry which is the equivalent of minimize all.
thisworks deep sleep stress less
Found this product in my bag called ‘deep sleep stress less’. Who doesn’t want that? Seems legit. :)
Anyway if it works and I want more I can get it here.
Preserving file modification time in Subversion (svn)
Today I found this thread from which I learned:
svn co --config-option config:miscellany:use-commit-times=yes https://example.com/svn/repo/proj
You can also set the option in your svn config, but you probably don’t want to do that.
Multiline strings in JavaScript
Read an interesting article about multiline strings in JavaScript over on Stack Overflow, which referenced the Google JavaScript Style Guide which I thought was interesting.
Comments per page in WordPress
Today I wanted to change the number of comments per page from 20 to 200 but I didn’t know how. Turns out you can adjust this by clicking ‘Screen Options’ (top right) and picking a new value.
Multilingual capitalisation regular expression (regex)
Found a cool regex over here that would find capital letters across languages. Couldn’t get it to work in JavaScript though…
^([\p{Lu}\p{Lt}]\p{Ll}+)+$