Available languages

Useful links
Читать на русском

Tuesday, April 10, 2012

/* NO COMMENTS */

MY BIG NOTE : THIS SCRIPT IS NEVER EXECUTED at boot time IN UBUNTU 11.10. NO MATTER WHAT YOU DO.

/etc/rc.local

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
RETURNVALUE=0
synclient TapButton2=2 TapButton3=3
RETURNVALUE=$(($RETURNVALUE + $?))
echo $RETURNVALUE > /home/ted/rc.local.executed
exit $RETURNVALUE

Saturday, March 31, 2012

Compare files and directories in Ubuntu |or| Nautilus Meld Integration

I compare files and directories very often.
One day it seemed to me to be "too much" to open Meld and to copy-paste 2 paths into it to compare 2 files/directories.

So, I have written some scripts(and associated shortcuts with them) to make it easier and faster.
Download nautilus-meld-integration.tgz. It's free.
You'll find the scripts and all necessary information in the README.
Follow the README and you'll get it working(after about 2 minutes).

Feedback is always welcome.
Have a good day.

Tuesday, March 13, 2012

Create custom Unity launcher / Menu entry

There are quite a few applications, which don’t integrate directly with Ubuntu’s Unity shell by default. They either won’t get kept in the launcher or their icon is not displayed.

General Workaround

Type gnome-desktop-item-edit ~/Desktop/ --create-new
Create launcher. Place it into /usr/share/applications directory.

Taken from http://shuffleos.com/3274/how-to-create-desktop-launchers-in-ubuntu-11-10-oneiric-ocelot/

Workaround 1
Type gksudo gedit /usr/share/applications/.desktop
 

After entering the password, gedit will open in root mode.
Paste the following into the file:

[Desktop Entry]
Version=1.0 #or whatever version the software is
Type=Application
Terminal=false
StartupNotify=true
Icon=<> # fill in path to logo
Name=
Comment=<> # any description
Exec=env UBUNTU_MENUPROXY=0 <> # fill in path to the executable
Categories=Application; # add as many categories as you see fit
After filling in the required data in the file, save it and close it.

Next time you search for the application in the dash, it will be found with logo and all. You can drag&drop it on the launcher, or start it and right click then ‘Keep in launcher’.

Some of the software I have used this for are: Eclipse and Skrooge.


Taken from http://ubuntutechnical.wordpress.com/2011/11/10/create-custom-unity-launcher/


Workaround 2
Just do the following
wget  http://dl.dropbox.com/u/47950494/Create-Launcher
cp Create-Launcher ~/.gnome2/nautilus-scripts
chmod +x ~/.gnome2/nautilus-scripts/Create-Launcher
mv ~/.gnome2/nautilus-scripts/Create-Launcher ~/.gnome2/nautilus-scripts/”Create Launcher”
"Create-Launcher" is just a bash script, you can create it self. Do not forget to do "chmod +x Create-Launcher" afterwards. Its contents:
#!/bin/bash
gnome-desktop-item-edit --create-new ~/Desktop
Taken from http://shuffleos.com/3708/how-to-create-desktop-launchers-right-click-context-menu-ubuntu-11-10/

I hope everybody can do it now. (including me)

Friday, January 20, 2012

Top Coder SRM strategies & Kawigi Edit plugin

Top Coder SRM strategies - it's just a copy of this thread.
Top Coder Arena - Java Web Start Application or just Java Applet.
You can find all information about KawigiEdit here.
View all arena plugins.
How to Compete in SRM Algorithm Competitions - articles.

Tuesday, January 3, 2012

Split a big image in some smaller - Image Magick - Ubuntu Linux - Note 1

I have always been thinking and I'm still thinking that everything in Linux is very easy...

One small correction: if you know how.

Today I wanted to split one big screen-shot in some smaller parts so that they fit my screen...

Solution (is very easy)

convert big.png -crop '100x6.66%' small.png
 
This command splits a big image into an appropriate number
of smaller ones, each of following size: 100% of big width,
6.66% of big height. It was a good solution in my case.
 
More info at imagemagick.org

Wednesday, October 5, 2011

Acer Iconia Tab Linux Driver

There is no need to install any driver to browse/manage/control your Acer Iconia Tab from you laptop/desktop PC running Ubuntu (or any other Linux distribution, probably).
You only need to follow the instructions here to install and configure the latest Android SDK and here to let Android SDK know the rules needed to measure with your tablet.

That's it. See you next time.