Be Among the 20% of the Best!

The Fastest Way to Open System Preferences on OS X

| comments

Hello there. It’s a tiny post today to save you a couple of seconds when opening the “System Preferences” app on OS X.

  • One way: Cmd+Space/F10/your shortcut for Spotlight/Alfred/etc., type something like “sys” (“System Preferences” should be suggested), Enter.

  • The fastest way I’ve found accidentally: press Fn+Option+F11/F12 => the “Sound” tab in “System Preferences” opens, and the search bar is already focused, so you can easily type e.g. “display” to go to Display settings. So you use Fn+Fx keys to change brightness, volume, etc., and by adding Option you can open the corresponding settings tab. Very quick!

Restoring Files From TimeMachine Backup Manually

| comments

TimeMachine is a backup system working out-of-box on OS X, supports encryption and is quite easy to setup. Backing up is only a half of the deal though; you may need to restore it some day. You can restore the whole system on a new Mac, and it’s also possible to get the individual files if the need arises.

Renaming Xcode Project

| comments

I’ve used shell commands to rename projects a few times, and it worked better than renaming from Xcode itself. Here are the steps (given we want to rename warnings_test => BestAppEver) (you may need to install a few extra tools with brew install rename ack):

Fast Shoelace Knot Post

| comments

A quick post for those of you who use boots/sneakers with shoelaces.

I was taught to make a know which is called “Two Loop Shoelace Knot”. It is good, but is untied once in a while. I came across the “World’s Fastest Shoelace Knot” by Ian Fieggen, which, I must say, can be tied much faster indeed and is also stronger. Here’s an image:

All in all, the website itself is fascinating too. It’s wholly dedicated to shoelaces and knots. There is even one that can be tied with one hand (related to Neurobics).

Jenkins: Matrix Job With Conditions

| comments

Let’s say I have an iOS project, and I’d like to build it in a number of configurations: “Debug”/“Release”, for device/simulator, and with/without debug logs. Jenkins has the multi-configuration (aka matrix) project build plugin for that. Not all of the steps are required/possible everywhere (e.g., testing is allowed in the simulator only, or checking the license is enough one time only).

Source Code License Check in Jenkins: Revised

| comments

This is a revised post on how to setup source code license check on your Jenkins. The first version is here. The basic idea is the same, but there are a few important changes described below. So to set this up, please follow the first post, except for a few values overridden here.

Jenkins: CocoaPods Podspec Linter

| comments

It’s a quick post on how I set up a build step to lint a podspec file. Quick check: if you’re not using CocoaPods to manage your iOS projects yet, you should try it (read on how to install it with rbenv here! So a podspec is a simple file that describes how your library’s metadata and how to include it in an app.