OS X Quick Dock Setup
04 Feb 2015defaults write com.apple.dock autohide -bool true &&
defaults write com.apple.dock autohide-delay -float 0 &&
defaults write com.apple.dock autohide-time-modifier -float 0 &&
killall Dock
defaults write com.apple.dock autohide -bool true &&
defaults write com.apple.dock autohide-delay -float 0 &&
defaults write com.apple.dock autohide-time-modifier -float 0 &&
killall Dock
⌘ = command⌥ = option⌃ = control__Shortcut__ | __Action__ ------------- | ------------- __⌘__ T | go to file __⌘__ __⌃__ P | go to project __⌘__ R | go to methods __⌘__ ⇧ P | command prompt __⌃__ G | go to line __⌃__ ` | Python console
__Shortcut__ | __Action__ ------------- | ------------- __⌘__ L | select line (repeat select next lines) __⌘__ D | select word </br>repeat to select others or multiple editing __⌃__ ⇧ M | select content into brackets __⌘__ ⇧ Enter | insert line before __⌘__ Enter | inter line after __⌃__ ⇧ K | delete line __⌘__ K-K | delete from cursor to end of line __⌘__ K-Delete | delete from cursor to start of line __⌘__ ⇧ D | duplicate line(s) __⌘__ J | join lines __⌘__ K-U | upper case __⌘__ k-L | lower case __⌘__ / | comment -> line or selection __⌘__ __⌥__ / | block comment __⌘__ Y | redo or repeat __⌘__ ⇧ Z | paste and ident __⌃__ Space | autocomplete <br>repeat to select next suggestion __⌃__ M | jump to matching brackets
__Shortcut__ | __Action__ ------------- | ------------- __⌘__ __⇧__ A | select content into tag __⌘__ __⌥__ . | close tag
__Shortcut__ | __Action__ ------------- | ------------- __⌘__ F | find __⌘__ __⌥__ F | replace __⌘__ __⌥__ G | find next occurrence of current word __⌘__ __⌃__ G | select all occurrences of current word <br> (multiple editing) __⌘__ __⇧__ F | find in files
__Shortcut__ | __Action__ ------------- | ------------- __⌘__ __⌥__ 1 | Single column __⌘__ __⌥__ 2 | Two columns __⌘__ __⌥__ 5 | Grid (4 groups) __⌃__ [1,2,3,4] | Focus group __⌃__ ⇧[1,2,3,4] | Move file to group __⌘__ [1,2,3...] | Select tab
__Shortcut__ | __Action__ ------------- | ------------- __⌘__ F2 | Toggle bookmark F2 | next bookmark ⇧ F2 | previous bookmark __⌘__ ⇧ F2 | clear bookmarks
__Shortcut__ | __Action__ ------------- | ------------- __⌘__ K-W | delete from cursor to mark __⌘__ K-A | select from cursor to mark __⌘__ K-G | clear mark
Good Xcode themes collection in one archive on [Github](https://github.com/hdoria/xcode-themes), with install script too!
$ git clone https://github.com/hdoria/xcode-themes.git
$ cd xcode-themes
$ ./install.sh
$ 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/
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:
When to use?
How to trigger?
Triggered From
Runs On
Limitations / Drawbacks
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!
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);
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.
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.
adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screenshot.png
Evernote seems to be great tool for note taking and keeping pretty much everything you want organized. I used to use a wiki but recently I decided to give Evernote a second or third or fourth try. I am not sure what the number here is but this is the first time it actually clicked with me and I think I am actually going to use it instead of my wiki and switch to it completely. They just didn't have the the ecosystem in place when I tried it the first X times. Now they cover almost every platform and the support on the desktop is just great!
There are some limitations for every account be it a free account or premium or even business account. When I first thought about the limitations I thought - that sucks... But then I thought - hey, let's put this in perspective and see how "real" these limitations are.
So the limits are:
| Number of notes | 100,000 | If you crete X notes daily and never delete single note then:</p>
So, after putting it into a bit of perspective – it doesn't look that bad, right :) Besides, even in 10 years I bet the computational power would jump to such a level that the limit would be raised to 1 million notes and then it would be impractical to hit the limit in a lifetime (of course we need to take into the account the fact</td> </tr> |
| Tags | 100,000 | There are many speculations but many linguistic experts agree that an average adult has a vocabulary size of 20,000 to 35,000 words. Including the most obscure ones that you can think of. So I would say you are pretty much safe here as you are going to run of any meaningful means of managing the tags before you run out of quota |
| Tags per note | 100 | That's a lot for every give post. And this limit is not even interesting that much. |