CV format

Recruiting and interviewing developers is a tough trade. Mostly because many people send their CVs in .doc or even worse — .docx format.

The one and only acceptable format should obviously be PDF.

This way your tables and extra formatting won’t look like shit.

Posted in PDF

Opening files in apps using terminal

Sometimes it’s so handy to open a certain, probably hidden, file with your favourite code editor or at least TextEdit or Notepad. Take that, nano!

The following command will help you out with that. Let’s open Homestead.yaml, located in ~/.homestead with good old Sublime Text:

open -a 'Sublime Text' ~/.homestead/Homestead.yaml

If the app name doesn’t contain spaces, you can lose the quotes.

iOS explicit content restriction

I was wondering why some of my songs weren’t syncing to my iPhone. I really wanted to listen to “The Hunting Party” by Linkin Park, but several songs were just missing. Then I noticed only the explicit content songs were missing.

Now, by default, my iPhone thought I don’t want any explicit songs. That’s not so nice. Anyway, to improve your experience and let you listen to your favourite songs go to:

Settings > General > Restrictions

You will need to enable those, create a passcode, too.

Now in the “Allowed Content” section, choose Music, Podcasts, News & iTunes U and enable Explicit:

Explicit option

Posted in iOS

Laravel and “Connection refused” problem

Say you clone a Laravel project and need to perform database migrations. So you do the following:

php artisan migrate

And the result is this:

SQLSTATE[HY000] [2002] Connection refused

And you think right away “Right, I forgot to configure my database properly”. But even after updating the config/database.php file or the .env file the result remains the same.

For me the solution was adding the port number. First I add it to the .env file:


And then fetch it in the config:

'port' => env('DB_PORT', 8889)

Git commands

Improve your speed!*

git commit -am 'commit message'


git add -A
git commit -m 'commit message'

You be the judge.

* That works only if the file is already being tracked.

Busy ports

As it often happens, you need to run a local server on a certain port. Let’s pick port number 3000 for this particular example. Sometimes, for whatever reason, that port is busy. And sure enough you will get an error, like this NodeJS one:

Error: listen EADDRINUSE

This is easily resolved with two steps.

1. Find the PID (process ID) that’s using that port:

lsof -i :3000

You will see a table containing some information, where the 2nd column is the PID we’re looking for. It’s a number basically, like 36185

2. And kill the process:

kill -9 36185

Now you can start your server or use the port the way you intended.

There are a few discussion whether to use kill -9 or kill -15, since the -15 options “gives the target process a chance to clean up after itself.” However, often it doesn’t shut the process down and you end up using -9 anyway. You can read more about that issue here.

Gmail tips and tricks

A nice little way to trick the email address uniqueness is to add some dots. That said, for Google Mail the following are all the same:

  • first…

Besides that, you can be a bit more specific, using format. So, say

  • first…

are all gonna arrive to your inbox.