Wednesday, March 27, 2013

Problem with development-master git workflow

If you have development-master git workflow and you have hotfixes to master that were cherry-picked to development - then you need to merge all to master back - you will not have Fast-forward merge (so you loose commit/comment/tag history).

To keep history you need rollback to common point in time, and to merge from that point, and to preserve hot-fix history you need "merge -s ours":




# backup for master in special branch
git fetch -p
git checkout -b release_1_3
git push origin release_1_3
# reset master to common commit with development 
git checkout master 
git reset b666156da5d1756ddfe7123ed4f1688f9c69cf6a --hard
git push --force
git clean -fd
# fast forward merge with development
git merge development 
git push

#do fake merge merge to keep hotfixes in history of master "-s ours"
git merge -s ours release_1_3

#drop temporal branch
git branch -D release_1_3
git push origin :release_1_3




Saturday, March 16, 2013

XChat integration with Unity


there is a way to add xchat icon in the Unity top panel, so when you hit X it minimizes there. By default it will disappear and you will not be able to activate it.

Solution:
Launch "dconf-editor" , navigate to desktop.unity.panel in tree edit "systray-whitelist" to put 'xchat' to list.

you also need integration with Unity : sudo apt-get install xchat-indicator

To have notifications: do right click on channel, menu "Extra Allerts", and select all sub menus ("Beep on message", "Blink Tray Icon", "Blink Task Bar"). You will see blinking messages at icon that you allowed in dconf-editor.

Hint: to rejoin to few channel on startup, you need to join that channel and then in left tree of channels by means of right click add them to Favorite.

Tuesday, February 26, 2013

GSoC 2013 notes

http://www.google-melange.com/gsoc/document/show/gsoc_program/google/gsoc2013/help_page

Very useful book for organization/mentors that try to participate in GSoC: http://en.flossmanuals.net/GSoCMentoring/


My Questions to GSoC:

1) can one person be administrator and mentor in same time in one organization?.
answer.

2) Can one person propose two organizations(project) to GSoC ?

answer.


Steps in registering
0) Creating mailing list and registering IRC channel, both are required at step 4 but you need MAIN mail-list and IRC, so all projects will share same, as in registration you do not have place to put mail-list for each project.
1) Ideas page should be complete
2) Projects pages are polished.
3) register as Organization Administrator https://google-melange.appspot.com/gsoc/profile/org_admin/google/gsoc2013
3.1) Ask to register back-up admin too, as his username will be required in step 4.
4) register as Organization http://www.google-melange.com/gsoc/org/application/google/gsoc2013

registration keeps 2 weeks ... Links to edit at Google Melange site - administrator info, organization info.


Good example of Organization Application:
https://github.com/sympy/sympy/wiki/GSoC-2013-Organization-Application


Comparison organization participants of Google Summer of Code 2012 and 2013 - here.

Optimization for SqlDeveloper


Update file:
<sqldeveloper folder>/sqldeveloper/bin/sqldeveloper.conf

With content:
# from https://forums.oracle.com/forums/thread.jspa?messageID=9773884
AddVMOption -XX:PermSize=128M
AddVMOption -XX:MaxGCPauseMillis=50
AddVMOption -XX:GCPauseIntervalMillis=200
AddVMOption -Xms50M
AddVMOption -Xmx300M
AddVMOption -XX:MinHeapFreeRatio=10
AddVMOption -XX:MaxHeapFreeRatio=10

AddVMOption -XX:+AggressiveOpts
AddVMOption -XX:+UseStringCache
AddVMOption -XX:+OptimizeStringConcat
AddVMOption -XX:+ScavengeBeforeFullGC
AddVMOption -XX:+UseConcMarkSweepGC
AddVMOption -XX:+UseCompressedOops

# from https://blogs.oracle.com/angelo/entry/improving_the_performance_of_jdeveloper
AddVMOption -XX:+UseGCOverheadLimit

Work experience should be better.

Spring examples from Spring engineer