Author Archives: silverdrs

Set of “defaults writes” for a new machine

As I seem to repeatedly search for those whenever I set another machine up – I thought of maintaining here a list of those I (personally) find close to indispensable: Recent application tile: defaults write com.apple.dock persistent-others -array-add ‘{“tile-data” = … Continue reading

Posted in OSX | Tagged , , | Leave a comment

Better description of Rails rake “db” tasks

Reposted after https://jacopretorius.net/ (good job!) db:create Creates the database for the current RAILS_ENV environment. If RAILS_ENV is not specified it defaults to the development and test databases. db:create:all Creates the database for all environments. db:drop Drops the database for the current RAILS_ENV … Continue reading

Posted in Coding, Rails | Tagged , | Leave a comment

Useful online font identification tools

https://www.myfonts.com/WhatTheFont/ https://www.fontsquirrel.com/matcherator One of them will probably get you to the font you are in need of.

Posted in Uncategorized | Leave a comment

Rubygems: Rebuild native extensions

Reposted after “makandropedia”: Rarely, you might want to rebuild all gems with native extensions, because they might be compiled against outdated system libraries, resulting in some warnings or even segfaults or other ruby errors. You can do that using gem … Continue reading

Posted in Coding, Rails | Tagged , | Leave a comment

One – liner to batch rename files with regex-remove part of the filename

Don’t read this post. It’s only for me so that I don’t forget it 😉 After a long fight with bash, find, sed, … Here is the one – liner: for i in $(find -E . -regex ‘(.*[a-zA-Z]{3}[0-9]{3}[a-zA-Z]{3}_[0-9]{9})(\.[0-9])(\.[jJ][pP]([eE])*[gG])’) ; do … Continue reading

Posted in bash, Coding | Tagged , , , , | Leave a comment

One-bash-liner to get rid of .WMV container

For reasons known probably to only a very few, selected ones – videos contained in the “.WMV” container seem to have occasional problems with seeking and positioning when played back with XBMC (or “Kodi” if you adapted to the brave … Continue reading

Posted in Video | Tagged , , , | Leave a comment

Rails derailed again (and again)

Executive summary (aka TL;DR) Rails docs suck… erm, no. I mean they are great but most probably written by people who never actually had to use them. If you want to follow Rails Guides and install a fresh Rails environment … Continue reading

Posted in Rails, Rants | Tagged , , , , | 4 Comments