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:
http://stats.wikimedia.org/wikimedia/squids/SquidReportOperatingSystems.htm
http://stats.wikimedia.org/archive/squid_reports/2011-10/SquidReportOperatingSystems.htm

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: 
log=/var/log/mysql/mysql_log.log 
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 http://www.verizonwireless.com/b2c/contact/index.jsp
Please send them request to raise this problem again an again: https://wbillpay.verizonwireless.com/vzw/secure/contactus/email.action

My question at forum:
https://community.verizonwireless.com/thread/787208

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):
http://habrahabr.ru/post/144626/

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.
Workaround:

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):