Sunday, December 30, 2012

Install Sublime text to Ubuntu

Sublime text - text editor that Mac user love to use, so let try it in Ubuntu,
What I like:
- it is quick
- outline view of whole file on the right side.
- Columns/Block selection, how to.
- line numbers as out of the box functionality.


sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get update
sudo apt-get install sublime-text

Wednesday, December 26, 2012

Git - merge till certain commit

Case: you need merge your master with with development branch but till certain commit(not till HEAD ) in development branch

it is simply:
-- I presume you are at development branch --
git checkout master
git merge 37e4218a4d51ad44952d30a5906cbe6b2e0a54d2

or do it by tag name:
git merge 0.5.10

and you will merge till this(37e421) commit, that is located in development branch.

Tuesday, December 18, 2012

Git commands to remember

Here I  will post command that usually use but sometime forget syntax, so rewriting them again with explanation help me to remember them :) :

remove all files from staging area - "git reset HEAD"

add to staging area only modified files - "git add -u"

remove all newly created files from working folder - "git clean -f"

change comment of the last commit - "git commit --amend"

get all remote branches to local repository - "git fetch"

create local branch base on existent remote branch - "git checkout -b development remotes/origin/development"

push to remote branch with 'force' after rebase - "git push --force origin SYS-551"

create new branch base on non commited changes - "git checkout -b short-status-form-sb" after that do "git add filepath ; ...."

push to remote newly created local branch - "git push origin my-new-feature"

show history of changes in terminal - "git log --oneline --decorate --graph"
show history of changes in UI - "gitk" or "gitk --all"

remove branch from local repository - "git branch -D SYS-551"

remove branch from remote repository  - "git push origin --delete SYS-551"

SVN style looks for logs output - "status -sb"

See all changes that are going to be pushed - "git diff --stat origin/master" or "git diff origin/master".

Get only the work your current topic branch has introduced since its common ancestor with master: "git master...test"

Revert one commit (revert changes that were done by commit) "git revert <SHA-1>"

Remove last commit completely from local repo - "git reset HEAD~1 --hard"

Find out which branch contains a change - "git branch --contains 50f3754"

Find out if a change is part of a release - "git name-rev --name-only 50f3754"

Get rid of all changes/commits in branch to remote git state "git reset --hard origin"

Convenient aliases, source:
git config --global "status -sb"
git config --global commit
git config --global checkout
git config --global branch
git config --global alias.bra "branch -a"
git config --global alias.chp cherry-pick
git config --global "pull --rebase"
git config --global "blame -b -w"
git config --global alias.cia "commit --amend"
git config --global alias.lg "log --pretty=format:'%h was %an, %ar, message: %s' --graph"
git config --global alias.who "shortlog -s --"

from Daniil Yaroslavtsev:
git config --global alias.l "log --graph --pretty=format:'%Cred%h%Creset %C(bold blue)<%an>%Creset%C(yellow)%d%Creset %s %Cgreen(%cr)' --abbrev-commit --date=relative"

Friday, December 14, 2012

Gitolite - get access to repository for all users except for one

All is written in manual :), it only takes a bit time to read all, try a lot to make it work.

general description about rules:
Nuances about deny meaning:

Deny - does not forbid read access by default.

Mu config, to give access to all except for mihail (trial group) that have access only to project3:

@trial    =  mihail

repo    project1
        -       =   @trial
        RW+     =   @all
        config gitolite-options.deny-repo = 1

repo    project2
        -       =   @trial
        RW+     =   @all
        config gitolite-options.deny-repo = 1

repo    project3
        RW+     =   @all

Unlock system user in Oracle 11 XE (CentOS)

1) sudo -iu oracle

2) make sure you have in .bashrc ". /u01/app/oracle/product/11.2.0/xe/bin/"

3) launch sqlplus
[oracle@azer ~]$ sqlplus / as sysdba
SQL*Plus: Release Production on Fri Dec 14 20:03:58 2012
Copyright (c) 1982, 2011, Oracle.  All rights reserved.
Connected to:
Oracle Database 11g Express Edition Release - 64bit Production
User altered.

Change password just in case.

[oracle@azer ~]$ sqlplus / as sysdba
SQL> alter user system identified by my-new-password;
User altered.
SQL> commit;

How to install Oracle 11g Express Edition (XE) on CentOS

Tuesday, December 11, 2012

How to create new repo at gitolite

1. get access to gitolite-admin repository

2. clone it and do changes to git/gitolite-admin/conf/gitolite.conf

3. do push

4. update Cgit website configuration at file /etc/cgitrc

5. provide mail notifications: copy 'config' from existing repo to new repo at server.

"<repo>/config" content:

    repositoryformatversion = 0
    filemode = true
    bare = true
        mailinglist =
        emailprefix="[GIT] "
    showrev = "echo "All Branches: "; git branch; echo; echo "Summary of changes:"; git log $oldrev..$newrev; echo; echo; git diff-tree -p --stat --summary --find-copies-harder $oldrev..$newrev;"

To automate all this steps please read this.

Attention: command for 'showrev' is not ideal and send empty mail in case of branch merges, and branch removal.

Monday, December 3, 2012

Gitolite - Change default config template file for repositories

We use gitolite for git server, and we use mail notifications after any push to repositories to manage and be notified about changes that are done by other developer.

After push in gitolite-admin repository, I need to login to git server and manually copy hook file and config for hook:

My thread in google group to make automatically.

Books to read about Java and best practices

Good todo list for reading to improve your skills of java developer:
one day I will have to time, to do it :) .

How to remove Switch Workspace icon on Launcher panel in ubuntu 12.04

I have never understand why it is impossible to remove from Launcher panel(vertical panel) Trash icon and Switch Workspace icon, most people do not use them and for some people it is even dangerous.

Here is a way to remove Switch Workspace icon:
1) Apply updated for 12.04 at least for December 1, on clean 12.04 this approach did not work for me.
2) Aplly following commands, copy-paste from here.

sudo add-apt-repository ppa:ikarosdev/unity-revamped 
sudo apt-get update && apt-get dist-upgrade
3) Restart the system and open
, go to
Ubuntu Unity Plugin
switch to the
tab and turn off
Show "Expo Icon" in the launcher

Trash icon still at panel :(, If you know how to remove it, please let me know.

Update: for 13.04 - there will be standard way to do this, link.

Saturday, December 1, 2012

Hotkey Maximize and Minimize window in Ubuntu 12.04 (Unity)

In older Ubuntu there was hotkey(shortcut) to Maximize and Minimize window.
In Unity(12.04) these was changed:
Maximize - Ctrl+Super+UpArrow
Minimize - Ctrl+Super+DownArrow

Wednesday, November 14, 2012

Print a folders structure to file

I come to a tast to examine whole source code structure on SVN and propose restructure it to new layout. some projects were grouped in sub folders.

Install "tree" tool:
sudo apt-get install tree

Command to print tree, without temporary and useless folders, dig in 4th level:
tree -L 4 -d -I "target|webapp|doc|docs|site|src|deploy|sh|java|data|scripts|lib|conf|work|bin|web|webscr|META-INF|hibern|www|css|images|templates|test-conf" > structure.txt

Output is like:

├── auth
│   ├── apache-modules
│   │   ├── auth_client
│   │   │   └── test
│   │   ├── googleauth
│   │   │   └── example
│   │   ├── jansson-2.2
│   │   │   └── test
│   │   ├── m4
│   │   └── mod_some_auth
│   ├── auth-client
│   ├── auth-errors
│   ├── auth-server

Problem with switching LibeOffice windows by Alt+Tab and in vertical panel

Issue is open for this problem:
Please vote to raise importance of this bug.

Workaround suggested Matthias Niess in bug comments:

switching works fine if open SpreadSheet from Dash and then open files from Cntl+O.

as an option you can install LibreOffice4 from official site - but in this case you loose Unity integration of menu, (instructions for installation).

looks like fixed in latest ubuntu updates (March 2013), I aslo updated Libreoffice to 4.0 by

sudo add-apt-repository ppa:libreoffice/libreoffice-4-0
sudo apt-get update

.... and do install from ubuntu Center, and now Libreoffice works fine.

Sunday, November 11, 2012

Change order of sections in Jenkins Sections View Plugin

We use "Section View Plugin"  to manage numerous configuration and group them to ease search and making a family of configurations.

List of all issues of this plugin.

My proposition:
JENKINS-15798 - Allow changing order for Sections in configuration.
Please vote if you have the same problem

SevNTU Checkstyle version 1.6

We finished new version of our extension for Checkstyle - release 1.6.
I updated wiki pages to allow other developers easily join the project.
Read our publications, in Russian language, latest is for 1.5.3 release, for 1.6 will be soon.

Release 1.6.0 (21/October/2012):

LogicConditionNeedOptimizationCheck -  This check prevents the placement of local variables and fields after calling methods in '&&' and '||' conditions. Done by Ilja Dubinin.
"if (isVisible() && active)" == should be refactored to ==> "if (active && isVisible())"
Reason: swap of conditions expressions will be beneficial, but some time you can find logic that in isVisible() change 'active' variable value and this optimization will not be correct - but this is sign of bad  design!

ForbidCCommentsInMetods -  Check prevents usage of C-style (/* ... */) comments inside method body. If you have class declaration inside method body with JavaDoc you will get error too, that is sad side effect for now, but I did not met such cases for now, so I thunk it will be incentive to move class out. Done by Ilja Dubinin.
Reason: C-style of comments are problem for future investigation, it should be treated as DEBUG/temporal comments, but should be cleared finally.

InterfaceTypeParameterNameCheck -  Checks that interface type parameter(for template) names conform to a format specified by the format property. Default format is ^[A-Z]$. Done by Dmitry Gridyushko.
Reason: to avoid template types to be like <INPUT>, <CUSTOM>, <LISTENER> and force developer to name them by 1 letter <I>, <C>, <L>. to clearly indicate nature of variable in code down the file.

All details are here:
We will do bug fixing in 1.6.1 and 1.6.2 as always, please test and report bug ...... .

Saturday, November 10, 2012

Keyboard shortcut to access google search field

I remember that I used google's shortcuts  feature to navigate links and focus to search field. But looks like there is not such feature.

but, you can at least easily access google's search field without anything preconfigured.

1) Type "hello" in google search filed
2) Press Enter.
3) Press "Space" to examine rest of the page on bottom.
4) Press "Backspace" key and you will be moved to search field with cursor in it. Clear content and type smth else.

How to do complete copy of static web site

One my fried asked me to grab/copy one site that was simple and static to let him change it a bit and make his own site base on it.

Example of command that do copy of site that will be ready to copy to new hosting:

In my Windows past time I installed special application to do this :), one more point to enjoy command line tools of Linux.

Friday, November 9, 2012

Ubuntu get popularity from other Linuxes

Ubuntu become more and more popular, but is it due to new users that come from Windows ?

I do believe to wikipedia statistics as it only resource that is visited by all internet user no matter what OS or browser they use.

data sources links:

Result show that Ubuntu get popularity from other Linux systems, but we see 0.07% of grow :) in general.
Does it mean that Linux users become more lazy and choose Linux that works out-of-the-box, and fed-up with doing all from scratch ? or it is just statistical rounding that significant grow other OS in amount of users
red - decrease of popularity.
green - grow of popularity.

Wednesday, November 7, 2012

How to get all logs from Mysql server

For CentOS:

Put following to /etc/mysql/my.cnf: 
general_log = 1 
general_log_file = /var/log/mysql/mysqld.log 
log-warnings = 2 
log-error = /var/log/mysql/mysqld.error.log 
slow_query_log =1 
slow_query_log_file = /var/log/mysql/mysqld_slow.log 

Restart Mysql service (service mysqld restart) 
Setup logging: 
mysql> SET GLOBAL general_log = 'ON'; 
Check logging variables: 
mysql> SHOW VARIABLES LIKE "general_log%";

Tuesday, November 6, 2012

Why there is not network coverage in San Francisco MUNI underground

I did not found answer on this , but I am fed up with long commuting underground without coverage.
BART underground have good signal.

I tried to contact support at
Please send them request to raise this problem again an again:

My question at forum:

Monday, November 5, 2012

Convert SVN project to GIT

sudo apt-get install git-svn

There is a good manual to moving projects from SVN to GIT (In Russian):

To get list of all users for user-map:
svn log > log_all.txt
cat log_all.txt | grep "^r[0-9]" | cut -d" " -f3 | sort | uniq -c > svn-git-users-map.txt

Empathy problems in Ubuntu 12.04

1. Problem to be notified about new/missed message for Empathy.

2. When you quit from Empathy in launch panel, Empathy disappear from panel but still launching (see problem above to show it in tray top panel):

Monday, October 29, 2012

Demand GoToMeeting support for Linux

GotoMeeting does not support Linux at all, even Wine and  CrossOver does not help.

Please help to raise question for support again and again, fill form:

Friday, October 26, 2012

Location of visualvm.conf in ubuntu for Java VisualVM

Sun Java 6 VisualVM
Sun Java 6 Monitoring & Management (VisualVM)

In doc we have <visualvm_installdir>\etc\visualvm.conf

so for linux/ubuntu it is:


to avoid OutOfMemory on heap dump ivestigation you can change in visualvl.conf
for default values "-J-Xmx256m" to "-J-Xmx4G"

Sunday, October 21, 2012

Turn off sound in Krusader on delete operations in Ubuntu

Sounds are not configured in Krusader, but in common KDE settigns. To manage them install KDE system settings, source:

sudo apt-get install system-settings

Launch system-settings from terminal, and navigate to KDE Workspace settings.
Remove "Play sound" selection from event:

Wednesday, October 10, 2012

Mongo: get all results to file instead of page iteration
paragraph "Differences between scripted and interactive / Printing".

connect to host:
> db.users.find()

to do the same from shell:

./mongo --quiet --eval "db.users.find().forEach(printjson);" > 1.txt

Attention: for prefix ".forEach(printjson);" without it you will get error like
DBQuery: mydb.users-> undefined 

Thursday, October 4, 2012

Browser HL-4570CDW for Ubuntu 12.04

Drivers are not in ubuntu set of driver, need to be installed manually:

installed both packages by means of Ubuntu Center. Center show WARNING of package structure but still allow you to install. I continued installation - works fine.

After drivers are installed, driver could be seen(automatically picked up) from install printed wizard. Install driver before launching "Printing" application.

After "Print Test Page" is done - need to go to printer and press button "GO" on printer.
Printing from other application does not need this.

Tuesday, October 2, 2012

Thunderbird: use MS Exchange address book

Thunderbird with LDAP, instruction.

It works fine on mine(under vpn):

Directory server property

Name: reveredata (or whatever you like)
Hostname: <servername>.<domain>.local
Base DN: OU=Users,OU=MyBusiness,DC=<Domain>,DC=local
Port number: 389
Bind DN: <domain>\<user name>
Use secure connection (SSL): not checked
Don't return more than: 200 results
Scope: Subtree
Search filter: (objectclass=person)
Login method: Simple

Thunderbird: Open link with different browser

I am just searching for convenient way to open links from Thunderbird in different Web browsers.

For FireFox there are good plugin Open With. I wish to have such addon in Thunderbird. I asked author   ... but no answer.

I in one year I searched the same problem and found a lot of requests/question for the same problem - :).

One of workaround that I use now -

Copy paste from this forum:

* Navigate to "Edit --> Preferences --> Advanced" in the Thunderbird menus and click on the "Config Editor" button.
    * Search for the following three entries:
          o network.protocol-handler.warn-external.http
          o network.protocol-handler.warn-external.https
          o network.protocol-handler.warn-external.ftp
    * Set the value of each of these three entries to true (you can do this by double-clicking on each entry, then close the "about:config" window and click "OK" on the "Thunderbird Preferences" window).

Friday, September 28, 2012

Tuesday, September 18, 2012

How to color grep result output

On one meet up I noticed that some representative have colored grep result that is convenient:

So it is not a rocket science - link.

Briefly do:
export GREP_OPTIONS='--color=auto'

Sql Developer installation tuning and tips

Install SQLDeveloper
1 Unzip to folder ~/java/

2 Provide path to JRE

mkdir ~/.sqldeveloper/
echo "/usr/lib/jvm/java-6-sun/" > ~/.sqldeveloper/jdk
run SQLDeveloper from the shell

cd ~/java/sqldeveloper && chmod ogu+x && ./
3 Import connections to DBs.

Right click over "Connections" root node in Connections view - "Import Connections". 2 RI: Please add latest connections config here

 Connections file is here:

Configuration of SQLDeveloper:

0) If you have problems with rendering please change Theme to "Classic 10.1.3" in  Tools/Preferences ... Environment.

1) Change auto formatting in SQL Developer - menu tools/preferences in tree "code editor/Completion Insight"
unselect "Change case as you type"

2) Tools/Preferences tree Databases/NLS  property "Date Format" make as "YYYY-MM-DD" and update other date-time formats too by this.

3). install third-party Driver, for example MySQL goodlink, MSSQL goodlink2,
Download driver MySQL site.
Download MSSQL driver:  JTDS site
All drivers: list.
 Tools:Preferences menu, Database -> Third Party JDBC Driver .

Viewing Multiple Tables

You can have tabs open for more than one table. Just click the Freeze View button (it looks like a push pin) when you are viewing a table; and when you click to display another table, the tab for the first table will remain open.

Tuesday, September 11, 2012

eCoberture is dead, Eclemma is a king

There are two major projects for coverage testing in Eclipse: eCobertura, EclEmma.

EclEmma is active and good for Eclipse.

eCoberture is outdated and have painful bug with clean up coverage, but cobertura it is used in Sonar project.

Krusader Editor does not save settings in Ubuntu 12.04

Krusader in Ubuntu 12.04 does not save settings of its editor(KrViewer).
this cause creation of backup file (with '~' at the end) on each edit(F4) -> save operation for file.

File: ~/.kde/share/config/krusaderrc is not related for this.
No complains in group:

workaround is here.

To alternatively ease problem - change internal editor to smth else:
Settings / Configure Krusader ... tab General , tab View/Editor , Editor: /usr/bin/gedit
or /usr/bin/geany

Saturday, September 8, 2012

Eclipse complains about 1.5.0 is missing

During compilation of some opensource project you could come up to error "artifact 1.5.0 is missing" in Eclipse, but compilation works fine from terminal.

Problem is in what JDK Eclipse use and provide it the same path.
check correctness of $JAVA_HOME
You need to check $PATH variable to be sure that required JDK is in Path.
Even you have JAVA_HOME/bin in path, java could be taken from other location due to the fact that it could be found in path early than your, to check it:
which java
ls -la /usr/bin/java
ls -la /etc/alternatives/java
Make sure that /etc/alternatives/java points to your JDK. In my case it was to OpenJDK but my JAVA_HOME was pointed JDK 1.6. So I removed all openjdk packages from Synaptic in Ubuntu and  after that all worked fine.

Similar problem is described here.

Thursday, August 30, 2012

Linux command 'Less' short list of commands

Linux command 'Less' short commands:
source, source2.

h - show help

f - scroll page forward
b - scroll page backward
g or "<" - go to begin of the file
G or ">" - go to end of the file

/PATERN - search
n - search for next appearance
N - search for previous appearance

tail mode:

Press Shift-F. This will take you to the end of the file, and continuously display new contents. In other words, it behaves just like tail -f.
To start less in the tail mode, execute:
$ less +F /var/log/messages
To scroll backwards, you must first exit the follow mode by pressing Control-c.

reload latest lines from file, one time 'tail mode':
Shift+G - got to the end of file
Shift + ">" - load till the end of file, press few times if you expect changes to file.

Friday, August 3, 2012

Quick Notes application for Ubuntu 12.04 with Unity support

I used gnote for a while - it is good but it lacks a Unity support in Ubuntu 12.04 that is inconvenience.
Googling over internet  .... point to interesting application ZIM (

Just install "sudo apt-get install zim",
launch it and Menu Edit -> Preferences ... tab "Plugin" , enable  plugin "Tray Icon".

video tutorial

Beware of bug that make it slow to open:
You need to install latest version from ppa:
sudo add-apt-repository ppa:jaap.karssenberg/zim
sudo apt-get update
sudo apt-get install zim

To launch Zim notes on Ubuntu start-up, in tray, create shell script zim-in-tray.
echo -e '#!/usr/bin/bash\nzim --plugin trayicon' > zim-in-tray
chmod ugo+rx zim-in-tray

Open "Startup Applications" from Dash, create new launch configuration and point to zim-in-tray.

Sunday, July 29, 2012

Oracle user become locked

to_char(timestamp,'mm/dd/yyyy hh24:mi:ss') timestamp,
from dba_audit_session
where action_name = 'LOGON'
and username = 'USER1'
order by timestamp ;

-- under system

SQL to define who locked object:

SELECT c.owner, c.object_name, c.object_type, b.SID, b.serial#, b.status,
       b.osuser, b.machine, b.sql_id
  FROM v$locked_object a, v$session b, all_objects c
 WHERE b.SID = a.session_id AND a.object_id = c.object_id

SQL to define what SQL is performed during lock: 
 select * from sys.v_$sqlarea where sql_id = '<GET IT FROM PREVIOUS SQL>';

Saturday, July 28, 2012

ubuntu 12.04 items to install

0. Show images in menu items (Eclipse, Nautilus, ....).

gsettings set org.gnome.desktop.interface menus-have-icons true

1. Clipboard manager for working with a lot of text changes and storing  have full integration with Unity.

2. Sistem Monitor, link

    sudo add-apt-repository ppa:indicator-multiload/stable-daily
    sudo apt-get update && sudo apt-get install indicator-multiload

3. Coffeine, link
 It will help to not let Laptop to lock screen when you watch movie. - did not work for me.

4. Menu editor:

sudo apt-get install alacarte

Launch application "Main Menu", add them to Programming group, Do not forget to make "eclipse" file as executable.

5. dconf-editor
 desktop > unity > panel , update systray-whitelist with your application.

6. Audacious player (with Winamp view + Skins) 
and then "sudo cp WinampMP11.wsz /usr/share/audacious/Skins"

7. Notes for Ubuntu 12.04  (Unity friendly)
Just install "zim", launch and Menu Edit -> Preferences ... tab "Plugin" , enable  plugin "Tray Icon".

video tutorial -

8. Switch On Application list in "Stratup Applications"

9. Resolving problem with window activation of LibreOffice.
sudo apt-get install lo-menubar

10. turn off startup sound.
Never understand why this  feature still required. To switch it off, read.

11. set up different timezones to always know their time (good if your friends live in different countries):

12. For 2 monitors: Move window to a specific display using a keyboard shortcut
To make shortcut work I did logout and login.


Sunday, July 15, 2012

How to remove "Trash" and "Workspace Switcher" from unity panel in Ubuntu 12.04

Noway - It is hardcoded :)

Please vote for

workaround with recompilation of sources:

Saturday, May 26, 2012

Hot keys for ubuntu dash that helps a lot

Unity has more then just pretty view panel, mouse more and more become useless stuff for day to day rutines:

My hints:
This helps me to shutdown Laptop without mouse usage -  press Alt , type "shutdown".
switching to application by index - Supper + <NUMBER>.
long-press the Super key - shows hints for hotkeys,

Friday, May 25, 2012

tomcat 7 books

I will read "Apache Tomcat 7 User Guide" from

online version:

Monday, April 2, 2012

Eclipse icons

During Eclipse plugin development is convenient to have all icons that Eclipse use, as all of them are free and good.

Wednesday, March 21, 2012

How to make Fedora user a administrator that can install packages and ..?

If you have more that one usr on laptop and both of users are advanced and could manage it
you can add user to group "wheel" and he will be able to do the same as first user.

source of wizdom.

Laptop memory upgrade for Vostro 3550

I tried to upgrade my memmory on laptop Dell Vostro 3550,
compatibility issue puzzled me a bit I connected
with Dell support live chat, provide them ServiseTag and they offered me upgrade

I searche the same .. but in twice lower in price

finally I go to and it privided me compatible memory for my laptop. With 5% off cupon.
So bye memory is simple :)

Friday, March 16, 2012

Fedora 16 java plugin to FireFox

Even after installing jre, you will have problem with java applets in FireFox.
javaws http:/........xxxxxx.jnlp does not work - error "Command not found".

Useful link:

Logs of commands:

cd /usr/lib/firefox/plugins/
sudo ln -s /usr/java/default/lib/i386/
Restart FireFox

Monday, February 20, 2012

Idea of complete removing main menu from Thunderbird

I have an idea how to economize space in Thunderbird by means of existing addon "Tiny Menu".
It will be good if Tabbed area could contains buttons in the front(left side) to make it looks even more natural.

Gnome3 Alt+Tab behaviour

In Gnome3 applications are grouped be default during window switch by Alt+Tab. This is inconvenient when you have few windows from the same application (skype), and I always used mouse to select window in group, but I found in Fedora forum, that to switch between windows in group we could use Alt+`. Works fine!

Saturday, February 18, 2012

Importing contacts to gmail

I have a CSV file with all contacts that I took from old phone, now importing to google looks as simple step, as gmail support this. But problem was that Gmail expect CSV in different format that I have, after searching I found page, with link to Gmail CSV example, my copy is here. After 20 minutes of copy paste - I got csv that got CSV that properly imported to gmail contacts.
Note: to call from contact page - use international format( for Ukraine +380WWXXXYYZZ).

Wednesday, February 8, 2012

Gnome shell extensions for Ubuntu 11.10

Source of wizdom part1, part 2,

1. Install repository:

 sudo add-apt-repository ppa:webupd8team/gnome3
 sudo apt-get update

2. Install tool for extensions management
sudo apt-get install gnome-tweak-tool

3. Install all plugins, do not forget to switch them on in gnome-tweak-tool at "Shell Extension" tab, and LogOut after that
sudo apt-get install gnome-shell-extensions-alternative-status-menu  - to show Power Off in menu
sudo apt-get install gnome-shell-extensions-user-theme                     - different themes for gnome
sudo apt-get install gnome-shell-extensions-apps-menu
sudo apt-get install gnome-shell-extensions-drive-menu
sudo apt-get install gnome-shell-extensions-places-menu
sudo apt-get install gnome-shell-extensions-native-window-placement  - make thumbs be in proporsion to window size
sudo apt-get install gnome-shell-extensions-gajim
sudo apt-get install gnome-shell-extensions-gpaste - buffer manager
sudo apt-get install gnome-shell-system-monitor
sudo apt-get install gnome-shell-extensions-windowoverlay-icons  - overlay application icon to tumbnail
sudo apt-get install gnome-shell-extensions-weather -, copy RSS link, and put city code to settings

4. how to disable universal access settings icon

5. additionally remove Bluetooth icon, open the same file
sudo gedit /usr/share/gnome-shell/js/ui/panel.js
, and comment out

/*if (Config.HAVE_BLUETOOTH)
    STANDARD_STATUS_AREA_SHELL_IMPLEMENTATION['bluetooth'] = imports.ui.status.bluetooth.Indicator;


Switch to super user from non-admin user in Ubuntu terminal

Answer is simple:
su <admin login name>

Sunday, January 22, 2012

Ubuntu 11.10 and Thunderbird 9 and addons

Install Thunderbird 9.0 for ubuntu 11.10, source.
sudo add-apt-repository ppa:ubuntu-mozilla-security/ppa
sudo apt-get update
sudo apt-get install thunderbird

Exchange 2007/2010 Calendar and Task Provider
Google Contacts
No message Pane Sorting by Mouse
Provider for Google calendar
SmartTemplate 4
Folderpane Tools

- remove all controls(button, search area) from main toolbar to economize on vertical space - as toolbar contains never used buttons.


to show buttons for reply/forward/.... you can change preferences of CompactHeader, by right click over mail header/panel, select "CompactHeader Preferences" and select "right", result is below:

Saturday, January 14, 2012

Play DVD video disc in Ubuntu 11.10

It is necessary to install additional dvd libraries from medibuntu repositories, source of wisdom is here.
wget -c
sudo dpkg -i libdvdcss2_1.2.9-2medibuntu4_i386.deb
wget -c
sudo dpkg -i libdvdcss2_1.2.9-2medibuntu4_amd64.deb

Tuesday, January 10, 2012

Service command not found at CentOS 5.7

CentOS 5.7, attempt to restart PostgreSql server cause error

[root@server user]# sudo service postgresql initdb
sudo: service: command not found


 /sbin/service should be added it to environment variables like this

vi ~/.bash_profile



for errors of service startup review /var/lib/pgsql/pgstartup.log.