02 Mar 2015 Slack, HipChat, Flowdock and others are all the rave now but wait, wasn’t there something like that like… mmm… 5 (!!!) years ago? There certainly was something like that and actually much, much better thing. It was called Google Wave, now defunct.
It even had the bot functionality back then and many more features which were apparently waaay ahead of its time. It took 5 years and a company that only does that (that would be Slack) to get everyone who’s anyone to drink their cool aid.
Google Wave - RIP…
23 Nov 2014 Good Xcode themes collection in one archive on [Github](https://github.com/hdoria/xcode-themes), with install script too!
Using the install script:
$ git clone https://github.com/hdoria/xcode-themes.git
$ cd xcode-themes
$ ./install.sh
Manual install:
$ git clone https://github.com/hdoria/xcode-themes.git
$ cd xcode-themes
$ mkdir -p ~/Library/Developer/Xcode/UserData/FontAndColorThemes/
$ cp *.dvtcolortheme ~/Library/Developer/Xcode/UserData/FontAndColorThemes/
19 May 2014 Android has often more than one way of doing something but it is not because of a poor design, rather because of the many possibilities that are available to Android developer and it is important to understand the nuances between various options to achieve something and choose the right tool for the job.
Let's look at services:
IntentService vs. Service
When to use?
- The Service can be used in tasks with no UI, but shouldn't be too long. If you need to perform long tasks, you must use threads within Service.
- The IntentService can be used in long tasks usually with no communication to Main Thread. If communication is required, can use Main Thread handler or broadcast intents. Another case of use is when callbacks are needed (Intent triggered tasks).
How to trigger?
- The Service is triggered calling to method onStartService().
- The IntentService is triggered using an Intent, it spawns a new worker thread and the method onHandleIntent() is called on this thread.
Triggered From
- The Service may be triggered from any thread.
- The IntentService must be triggered from Main Thread.
Runs On
- The Service runs in background but it runs on the Main Thread of the application.
- The IntentService runs on a separate worker thread.
Limitations / Drawbacks
- The Service may block the Main Thread of the application.
- The IntentService cannot run tasks in parallel. Hence all the consecutive intents will go into the message queue for the worker thread and will execute sequentially.
07 May 2014 You can follow the official directions here
Or you can just use AppCleaner and drag the Plex Media Server app from the Applications folder and the AppCleaner will remove all the same files and folders for you in an instant!
05 May 2014 This is how to load custom font and set it as a typeface for a TextView
TextView txt = (TextView) findViewById(R.id.custom_font);
Typeface font = Typeface.createFromAsset(getAssets(), "CUSTOM_FONT.ttf");
txt.setTypeface(font);
04 Apr 2014
You'll always be able to make more money but you can not make more time. We'll all die but only a small select few are truly living
A truly inspirational video. It really made me want to sail around the world.
27 Mar 2014 Frustrated with flaky settings on Mavericks for energy savings? Puts your stuff to sleep when you don't want to and doesn't put it to sleep when you do?
pmset
comes to the rescue
I used the following command:
sudo pmset displaysleep 10 sleep 0
since I want my displays to go to sleep after 10 minutes and the computer never go to sleep.
To specify behavior for when on battery power use the -b
switch e.g.
sudo pmset -b displaysleep 5 sleep 15
to put your display to sleep after 5 minutes of idling and your computer after 15 minutes of idling.