Posts

Quote of the day

"There’s no cure for stupid"

Silent Thursday? Good idea for companies!!!

Image
This is a TED talk of Jason Fried, co-author of the best selling books REWORK , REMOTE, co-founder of Basecamp . In this talk, he discussed about the problem of companies's workplaces, the real distraction that prevent workers from making their job done, and what we can do to fix it.

Filter email addresses with egrep

You can use the following command to filter email addresses from text: egrep -o "\b[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9.-]+\b" For example, to get email addresses of all users with wp-cli: $ wp user list | egrep -o "\b[a-zA-Z0-9.-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9.-]+\b" Cool huh?!

Date & Time applet disappeared in Ubuntu 14.04 after update

Yesterday, after I updated my Ubuntu 14.04, the Date & Time applet on the top bar disappeared. I's looking at the System Setting of the time but the panel was gray, and I could not do anything. Luckily, there is a fix for that: $ killall unity-panel-service And the applet got back into its place.

How to merge PDF files in Ubuntu (14.04)

You can merge PDF files in Ubuntu using pdftk tool: $ pdftk file1.pdf file2.pdf cat output mergedfile.pdf Pretty neat huh?!

How I killed my Android phone and brought it back to life using ADB

Yesterday, I rebooted my rooted Android phone, the Lonovo P770, and I could not get the keyboard to work because the Language & Input settings kept crashing. I tried to do a factory reset but forgot that I uninstalled some of the Lenovo's stock apps including the stock launcher and keyboard. So, after the reset finished, the phone was useless because I could not open any apps. Basically, I couldn't do anything with my phone except for the settings app. But as a Linux user (proudly face :D) I wondered there is any way to install and configure my phone from a computer. And here it is: The Android's ADB ADB allows me to do a lot of things with my Android phone from a computer including install apps (apk packages) and apply some settings (for example: change keyboard, set language...). Here are the steps: 1. Install adb utilities in Ubuntu 14.10 (or 14.04) $ sudo apt-get install android-tools-adb android-tools-fastboot 2. Setup driver for my phone (Lenovo P770) ...

Google Code is being shutting down

Chris DiBona, Director of Open Source of Google just announced yesterday that Google will close its code repository service in about ten months and stop accepting new repo creation. They also provide some migration tools for developers: Google Code to GitHub exporter tool : http://code.google.com/export-to-github Stand-alone tools :  https://code.google.com/p/support-tools/ It quite a memory to me that Google Code is the first free repository service I used since I still was a student. It's not as great as Github but it's the only one available back then. References: [0] http://google-opensource.blogspot.com/2015/03/farewell-to-google-code.html [1]  http://www.wired.com/2015/03/github-conquered-google-microsoft-everyone-else/