Gift idea: Plantronics Discovery 925

discovery925_black

Bluetooth handset Plantronics Discovery 925 can be a really good Christmas present for web workers. It’s stylish and elegant. The headset offers a hight quality voice and adaptive noise reduction. But the most interesting feature in my mind is ability to connect to the mobile and PC in the same time. So, you can make mobile or Skype call using one headset.

The handset Plantronics Discovery 925 is available in black, gold, cerise, royal blush and majectic purple colors. So, it’ll suit both men and women. Its price an expensive a bit – $149.95, but it’s good investments.

Perfect notebook for travellers

ACER   Aspire 1410

If I’d travel a lot I’d buy the ACER Aspire 1410 notebook. It looks like netbook and costs the same. But instead of Atom processor it’s equiped with stronger Intel Celeron. The rest spec includes 11.6-inch LCD display with 1366 x 768 resolution, GMA 4500MHD graphics, a 6-cell battery, 250 GB hard drive, and up to 4GB of RAM. The Acer Aspire 1410 offers a bunch of communication options – 802.11b/g/Draft-N Wi-Fi, Bluetooth, Gigabit Ethernet. Additionally it sports HDMI out (can be connected to the TV in hotel), integrated webcam (video chat with family, relatives and friends), 5-in-1 card reader and Dolby-optimized surround sound system with two built-in stereo speakers (have relax after meeting). It just misses optical drive but it isn’t so big deal I think.

The wight of the the Acer Aspire 1410 is just 1.35 kg, battery life is up to 6 hours and the price is €383. All of this makes that notebook the perfect choice for web workers who should travel a lot.

Add Google Wave into Thunderbird 3

Wave

Thanks to Content Tabs now it’s possible to add into Thunderbird 3 some useful for you web tools. Here is a receipt from Quetzalcoatal how to integrate Google Wave in the Thunderbird 3. It’ll help to open Wave cleanly and conveniently inside one of tabs, and even keeps it open after restarting of Thunderbird.

[via Lifehacker]

Log for Mysql console session

To log Mysql console session use option –tee (two dashes!) with full path to the log file:
mysql -uroot my_db --tee=/tmp/mysql_console.log
As result the file /tmp/mysql_console.log will contains all commands and queries with result of their executions. That might be helpful to keep your queries for using next time or for troubleshooting.

The author of the post, where I found that useful info, said that each time the Mysql session is started with logging the log file will be replaced. In my case it isn’t. As I expected the new messages just are appended to the log file.

VIM and Mysql integration

I use VIM with additional configuration instead of IDE. That configuration includes code explorer using ctag, syntax checking for PHP and Perl and run Perl scripts (syntax highlighting is not a subject of discussion ;)). Also I should run Mysql queries often. So, I decided to add integration with Mysql to VIM. I managed to do that thanks to that simple solution. Just add this code to your .vimrc:
to select database:
map <C-d> :call SwitchDB()<CR>
:function SwitchDB()
: let g:current_db = input("Database > ")
:endfunction

to run query:

map <C-m> :call Doquery()<CR>
:function Doquery()
: if !exists("g:current_db")
: call SwitchDB()
: endif
: let query_string = input(g:current_db . " > " )
: if query_string != ""
: exe "!mysql " . g:current_db . " -e \"" . escape(query_string, '"') . "\""
: endif
:endfunction

So, when you press Ctrl-d the VIM gives you a prompt to type database name, Ctrl-m will run query. Sure you can use the your preferable combinations of keys. Also you may extend the login functionality by adding prompt for database host and user or hardcoded that information in the SwitchDB() function.

Using VIM to construct queries in the Mysql shell even much easier. Just specify VIM as default editor:
export EDITOR=vim
After that type \e in the Mysql shell. It’ll bring you VIM window where you’ll able to type your query. To finish with editing just type ZZ as usual. To run built query type ; and press Enter.

As result we’ll have possibility to run Mysql queries directly from VIM and using VIM to create queries in the Mysql shell.

GooSync goes to 100% commercial

Logo

I’ve used GooSync to sync my Google Calendar with calendar on my Nokia E65 for couple years. It covers all my unassuming needs. But recently I received a notification from GooSync that they discontinue free version of their service. As an option for all free users they offer version Lite for €7 per year. Well it isn’t so big money to help the good and useful service improve its quality or just survive.