↓ Skip to main content

Osx

Binding DashDoc with editors and Eclipse

·235 words·2 mins
If you use DashDoc (see http://kapeli.com/dash), it can be integrated with editor or Eclipse to allow automatically find selected text in Dash documentation sets: Sublime Text # This is easy - there is DashDoc plugin - https://sublime.wbond.net/packages/DashDoc The plugin is OS-X specific, because the DashDoc is Start Package Control (Cmd-Shift-P) select Install Package (type Install) select DashDoc The Ctrl-H does the search

Difference between matching and simple - Git push

·719 words·4 mins
Git message Git 2.0 from 'matching' to 'simple'. To squelch this message and maintain the current behavior after the default changes, use: git config --global push.default matching To squelch this message and adopt the new behavior now, use: git config --global push.default simple Options for push.default nothing - do not push anything. matching - push all matching branches. All branches having the same name in both ends are considered to be matching. This is the default. upstream - push the current branch to its upstream branch. tracking - deprecated synonym for upstream. current - push the current branch to a branch of the same name. From SOF:

Sublime text macro to insert timestamp

·64 words·1 min
Sublime text macro to insert timestamp # platform-edc $ cat ~/Library/Application\ Support/Sublime\ Text\ 2/Packages/User/time_stamp.py import sublime_plugin from datetime import datetime class TimeStampCommand(sublime_plugin.TextCommand): def run(self, edit): # formatting options at http://docs.python.org/2/library/datetime.html#strftime-strptime-behavior stamp = datetime.now().strftime("%Y-%m-%d_%H:%M:%S") # 2013-07-18 14:54:23 for r in self.view.sel(): if r.empty(): self.view.insert(edit, r.a, stamp) else: self.view.replace(edit, r, stamp) platform-edc $ Documentation - see

How to make screenshot from command line

·58 words·1 min
How to make screenshot from command line # platform-edc $ screencapture -i ~/Desktop/$(date +%Y%m%d%H%M%S).png libpng warning: zero length keyword libpng warning: Empty language field in iTXt chunk platform-edc $ screencapture ~/Desktop/A$(date +%Y%m%d%H%M%S).png libpng warning: zero length keyword libpng warning: Empty language field in iTXt chunk First one is “interactive” - Cmd-Shift-3 with selection tool, second is full screen

Case sensitivity and VirtualBox shared folder

·102 words·1 min
Case sensitivity and VirtualBox shared folder # Weird but true behaviour: I have the case sensitive encrypted disk (sparse bundle with HFSX type) mounted in VBox shared folders. All works fine, after VM starts: touch zz zZ creates two files, both “inside VM” ~/development/ATG/platform-edc as well as in OS-X. If the VM is suspended and resumed, it looses the case sensitivity inside the VM.

Usable mc color scheme

·10 words·1 min
Usable mc color scheme # Edit ~/.mc/ini insert [Colors] base_color=lightgray,blue:normal=blue,default:selected=white,brightblue:marked=yellow,default:markselect=yellow,gray:directory=brightblue,default:executable=brightgreen,default:link=cyan,default:device=brightmagenta,default:special=lightgray,default:errors=red,default:reverse=green,default:gauge=green,default:input=white,gray:dnormal=green,gray:dfocus=brightgreen,gray:dhotnormal=cyan,gray:dhotfocus=brightcyan,gray:menu=green,default:menuhot=cyan,default:menusel=green,gray:menuhotsel=cyan,default:helpnormal=cyan,default:editnormal=green,default:editbold=blue,default:editmarked=gray,blue:stalelink=red,default

Show lock screen indicator in OS-X menu

·51 words·1 min
Show lock screen indicator in OS-X menu # After HDD reinstall I lost most of my customizations (by choice decided NOT to restore from TM). The Lock in menu is provided by KeyChain Access, not by System Preferences. Open ‘KeyChain Access’ -> Preferences, select ‘Show keychain status’ and it is back:

German attack

·63 words·1 min
Suddenly I started to see all apps auf Deutsch: The cause was by mistake selecting additional language in Properties -> Internationalization (Österreichisches Deutsch) and the system added it to the list as language #1. Those programs that are localized, picked it up …. Here is how that list looks like after reorder :-) I care only for the first 11 languages anyway ;-)

Performance issues with Quicklook in OS-X Lion

·957 words·5 mins
I have been experiencing issues with Quicklook (press Space on file in Finder or Pathfinder) for some time: it took several second, sometimes 10-15 to show content of simple 1K large property file. It turned out that on of the QuickLook plugins, installed originally way back in Leopard and brought ahead with TimeMachine restores could have been the reason: the QLStephen. For more on that plugin see: http://whomwah.github.com/qlstephen/ https://github.com/whomwah/qlstephen To remove the plugin, go to ~/Library/QuickLook and delete the file (it is the bundle) QLStephen.qlgenerator.

Fixing Git plugin for Sublime Text 2

·105 words·1 min
After update, the ST2 started to complain about missing git command. Finding out Git on MBP: platform $ which git git is /usr/bin/git git is /usr/local/bin/git platform $ git --version git version 1.7.7.5 (Apple Git-26) platform $ /usr/bin/git --version git version 1.7.7.5 (Apple Git-26) platform $ /usr/local/bin/git --version git version 1.7.3.2 Fix the the Package file in /Users/miro/Library/Application Support/Sublime Text 2/Packages/Git - Git.sublime-settings (it is JSON file)