↓ Skip to main content

Posts

2013

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

Miro's World 2.0

·63 words·1 min
The continuation of the old Wordpress blog with more agreeable tools: Github Wiki + Gollum, Markdown and Git. My old blog at Miro’s World has been kinda neglected in last two years. I have written several entries and published them only internally. I have decided now to pull those of the entries that do not contain customer references, code or customer IP out.

Endeca start scripts - Oracle way

·242 words·2 mins
I have ported the Oracle VM style management scripts into the Loyalty VM. The scripts are in the loyalty-endeca Git repo, originally in eVoucher branch but also merged into edc [tkuser@vm-lo1-hpr-ma endeca]$ ls -1 total 28 dev-check-environment.sh* dev-deploy-endeca-app.sh* dev-endeca-environmet.ini* dev-remove-endeca-app.sh* endeca-control* endeca-vars.txt* README.md* RewardsEndc/ dev-endeca-environmet.ini # This is environment setting script. ### MUST BE SOURCED IN source dev-endeca-environmet.ini ## or . dev-endeca-environmet.ini ## NEVER ./dev-endeca-environmet.ini endeca-control # Main script that manages three components of the system named:

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:

ATG Development using 'hidden' VM

·699 words·4 mins
Brief description of my latest setup I use for CPL and LCH - in case I forget it or somebody wants to replicate it. Inspiration for the setup came from https://www.youtube.com/watch?feature=player_embedded&v=cPt_1Vga-Nk Motivation - issues with VMs # VMs are great - they allow “packaged” dev environment and quick start for the new member of the team. Start a VM on local or remote host, connect with VNC or Remote Desktop and you are in business.