One thing that annoyed me about using Vim was how much keystrokes it took to indent or un-indent a few selected lines of code. My (probably less than ideal) way of doing that was to go into visual mode, select the lines with the movement keys J or K, then use the keys to change the indenting which are
To indent another level, pressing dot after this would work.
In Visual Studio or a typical Windows text editor I’m used to simply selecting the lines by holding shift & moving the cursor keys up or down, then pressing TAB to indent and shift-TAB to un-indent.
I’m so used to using the cursor keys for text manipulation that it’s hard to unlearn this, so I was looking for key mappings to do the same thing in Vim.
Luckily this turned out to be rather easy. If you add the following to your vimrc file, you can shift-tab away to indent your code:
" TAB-mappings to allow indenting of selected text instead of using < & >
vnoremap <Tab> >
vnoremap <S-Tab> <
GNU Wget is a powerful tool when it comes to downloading files from the web or mirroring sites. It’s command line features can be daunting and not very obvious. With some experimentation, reading the (f..) manual and some Googling you can get it to do some pretty neat tricks for you.
All of that is from the command line too, which is great if you want to schedule this kind of magic or use it in a script.
For example, you might want to warm-up your site or WordPress blog so your homepage and all posts linked from it are present in your cache when a visitor arrives. I’m assuming you are using a caching on your site otherwise this is pretty pointless. For WordPress you can use a caching plugin like W3 Total Cache for example.
With Wget, it goes like this:
wget.exe http://n3wjack.net --spider --no-directories --level=1 --recursive
The command line parameters (in order) mean something like:
- Crawl n3wjack.net.
- Crawl it like a spider (follow the links).
- Don’t create directories for downloads.
- Crawl 1 level deep (so anything linked on the homepage is OK, but don’t go deeper).
- Do this recursively (so it actually goes 1 level deep).
- Follow only links that start with
"/209..." (it’s a regular expression).
This one is a trick to have it only follow links to blog-posts because my URL scheme begins with the year of the post (2015, 2016, …). It’s good until 2099, which should do the trick I guess. :)
This way I’m also avoiding it loading all tag, category or page links.
If your site has a different URL scheme you’ll have to change the accept regex pattern to fit your scheme.
You can download Wget from the GNU site. It’s Open Source and is available for Windows, Mac and various Unix systems.
For Chocolatey users, there is a wget package available to install it on your system.
You see this possibility for a lot of software downloads but if you’re like me you hardly ever end up doing it: verifying an install file’s MD5 or SHA-something hash.
For Open Source software this is however recommended if you aren’t downloaded from the official mirror (and even then) and certainly if it’s anything related to security (like Keepass for example).
But to verify that MD5 hash you probably need to install yet another piece of software you’re hardly going to need, so you end up not bothering at all.
Hold on a second.
If you have a recent Windows system with PowerShell installed, you probably have all you need to verify that MD5 hash.
Try this in the PowerShell command prompt:
Get-FileHash .\KeePass-2.30-Setup.exe -Algorithm md5
It should print out something like this:
Which happens to be exactly the MD5 hash code listed on the site for that version of the Keepass installer. Yay!
-Algorithm parameter it prints out the SHA-256 hash by default, but that’s longer and harder to compare visually even though it’s more precise.
That was easy and required no additional software.
Pretty damn sweet.
Photo by Julien Dumont, cc-licensed.
On the “good” old XP this required some trickery and knowledge of window specific shortcuts, but on more recent version of Windows this has become really easy to do.
So if you run into a situation where an application’s window is outside your visible area, because you disconnected a second screen for example and the app doesn’t automatically snap to the only screen left, simply do this:
- Keep the Windows key pressed and hit the cursor key left or right.
Your window will simply snap back to your current screen and all is well.
Using it with the up & down arrow will maximize or minimize the active window. Always handy to know those shortcuts if you have both hands on the keyboard anyway.
Photo by Dean Hochman, cc-licensed.
When using MSTSC (Microsoft Terminal Server Client aka RDP or Remote Desktop on Windows) to dial into a local HyperV virtual machine on my laptop it often happened that MSTSC crashed on me. When reconnecting afterwards, the VM was running just fine. So it seemed to be an issue on my local machine and not the VM. I assumed it had something to do with HyperV and RDP and didn’t look into it any further (I didn’t need it that much after all).
The exception code I got in my Event Viewer for the crash was
But then I kept having this problem so often when connecting to a physical machine in the network it annoyed me enough to Google for a possible solution.
One post pointed me in the right direction (which I can’t find anymore, sorry about that), being that it had something to do with sharing of local resources. In my case I recently activated the option to transfer sound between the remote and my local machine so I could use Skype & Linq.
Turns out that was indeed the culprit. Whenever my remote machine made a sound, my RDP client crashed. Bummer!
Turning off sound transferring to my host machine made the crashes go away. Sweet!
So if you also run into this, try turning off some of those local resources.
It still sucks if you need sound of course, but in my case, I can live with the silence.
Photo by Robin Gist, cc-licensed.
Here’s some music I liked in 2015 that I either talked about before or forgot to mention so far. I get stuff emailed to me, listen to it and then forget to write about it sometimes. Dang.
So I’ll mix those in here so they get their mention at last.
Ah, the good old dnb. If you haven’t already checked out the weekly Noisia Radio podcasts on Soundcloud it’s about time you did. You’ll hear new tracks, old ones and get a lot of inspiration on what tracks you can spend that New Years money on.
Another place to check for some fresh, dark drum’n’bass is Syk2ne’s Bandcamp or Soundcloud page. Lot’s of wicked EP’s right there and not strictly dnb either. It easily crosses over into the next category…
Here we have Ruby my Dear of course with his latest Balloon album. Then there’s Venetian Snares, as always, who not only released Your Face this year but also put up the awesome Thank Your For Your Consideration after fans stepped up when Snares hit a rough patch and could use some extra cash. Sissy Growl and Burgershot are my favorite tracks of 2015 for sure.
Mo breackore? Aww yiss. How about YabaiKore! from the Japanese breakcore collective the Ragga Terror Front. Some really wicked sick stuff in there. Totally worth a listen.
Here I have 2 podcasts/radio shows to point out, full of all the hardcore goodness you’d want. First there’s the PRSPCT Recordings radio episodes on Soundcloud. Awesome guests, “great” interviews and quite some nonsense in there. And smashing kicks of course.
We can’t leave without mentioning The Outside Agency podcasts as well. Not quite as frequent but that just makes them all the better.
Hope you find your type of beats and bass in here.
Enjoy the holidays, have a happy NY and see you back in 2016!
Photo by Martin Fisch, cc-licensed.
Writing a music review is both hard and kinda pointless. It’s music after all and as long as you don’t listen to it you can read all the text you want but you still won’t know what the hell it sounds like.
So I won’t be copying the info from the press release the lads at Kaometry records where so kind to send me for the latest Ruby My Dear release “Balloon“.
Instead I can say that it’s pretty damn solid breakcore album true to the style Ruby My Dear has developed over the years.
If you like his earlier work like the awesome Ginko EP or his earlier Doc Colibri exploits, you’ll love this one too. If his music is new to you but you like things from electronica artists like Aphex Twin, Venetian Snares or even a slice of Squarepusher, you’ll probably find this a treat as well.
So go check out the previews on the Kaometry records Soundcloud page. It’s coming out this Monday the 14th of December, so hit your record store and get that vinyl record or digital album full of breakcore goodness!