29
Multiple IE’s
Running all MSIE on one Windows installation
To run all M$ Internet Explorer on one Winodows you can use: multiple-ie.exe. This program install IE version 3, 4, 5.0, 5.5 and 6.0 on your Windows.
25
Error while loading shared libraries: libstdc++-libc6.2-2.so.3
If you get an error like this one on Ubuntu,
error while loading shared libraries: libstdc++-libc6.2-2.so.3:
cannot open shared object file: No such file or directory
it means the library isn’t available and you need to install it. Although the Ubuntu package which contains this library isn’t obvious. You can install it via the following command:
this worked for me.
24
Allocating enough memory and solving OutOfMemoryErrors
By default, Eclipse will allocate up to 256 megabytes of Java heap memory. This should be ample for all typical development tasks. However, depending on the JRE that you are running, the number of additional plug-ins you are using, and the number of files you will be working with, you could conceivably have to increase this amount. Eclipse allows you to pass arguments directly to the Java VM using the -vmargs command line argument, which must follow all other Eclipse specific arguments. Thus, to increase the available heap memory, you would typically use:
with the your-memory-size value set to greater than “256M” (256 megabytes — the default).
When using a Sun VM, you may also need to increase the size of the permanent generation memory. The default maximum is 64 megabytes, but more may be needed depending on your plug-in configuration and use. The maximum permanent generation size is increased using the -XX:MaxPermSize=your-memory-size argument:
This argument may not be available for all VM versions and platforms; consult your VM documentation for more details.
Note that setting memory sizes to be larger than the amount of available physical memory on your machine will cause Java to “thrash” as it copies objects back and forth to virtual memory, which will severely degrade your performance.
You can also add this entry to eclipse.ini file:
1 2 3 4 5 6 7 | -showsplash org.eclipse.platform -vmargs -Xms512m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=256m |
10
Eclipse with PHP, Aptana, RemoteSystem and Subeclipse
Eclipse with integrated PDT, Aptana, RemoteSystem and Subeclipse:
Download and add import to update manager file:
http://rafekz.one.pl/eclipse.xml
10
Height 100% with divs.
If you need set height of one div as long as other div (both div float left) you must do some tricks.
Base code:
1 2 3 | #wrapper { clear: both; } #cola { float: left; width: 100px; } #colb { float: left: width: 100px; } |
Now if you want to have same height in cola and colb you must add:
1 2 | #wrapper { overflow: hidden; } #cola { margin-bottom:-32767px; padding-bottom:32767px; } |
10
Hamachi for Debian / Ubuntu
Hamachi is very easy, closed source hosted VPN service. It securely connects devices and networks, extending LAN-like network. It is absolutely free for non-commercial use. I have created deb package for easy install this interesting VPN clinet.
Install
To install hamachi on debian or ubuntu follow steps:
aptitude install build-essential
wget -c http://www.rafekz.one.pl/hamachi_0.9.9.9.20.deb
dpkg -i hamachi_0.9.9.9.20.deb
rm hamachi_0.9.9.9.20.deb
Whats next?
If you have hamachi installed you can:
- Join to network
sudo hamachi -c /etc/hamachi join your-network your-password
- Create your own network
sudo hamachi -c /etc/hamachi create your-network your-password
- Log in to hamachi
sudo hamachi -c /etc/hamachi login
- Go online
sudo hamachi -c /etc/hamachi go-online your-network
- List users in your networks:
sudo invoke-rc.d hamachi status
(you can enter this command twice to view nicknames)
9
ProFTP and Symlinks
Proftpd and mounting with bind option
There’s only one good way to export resources to chrooted enviroment – using mounting directores to several locations in the filesysem. If you want to have an exact duplicate of the /var/ftp/common directory available for user alex at his /home/alex/common, use one these commands:
mount -o bind /var/ftp/common /home/alex/common
To keep directories mounted permanently you need to add them into /etc/fstab ( or /etc/vfstab for Solaris ).
5
Hamachi Basic as Windows service
To install Hamachi Basic as Windows NT/2k/XP (Vista not supported) service you must follow few steps described in: http://www.itsatechworld.com/2006/01/17/hamachi-vpn-solution/
To install Hamachi Basic as Windows Vista service you must download ServiceEx.exe. Copy it to C:\Program Files\ServiceEx and create there file HamachiService.ini. Paste there:
ServiceExeFullPath = "C:\Program Files\Hamachi\hamachi.exe"
options = -srvany -config "C:\Documents and Settings\Administrator\Application Data\Hamachi"
desktop = false
Start=Auto
StartNow=false
Change there config dir. Now open command line as administrator, type there
ServiceEx install HamachiService
Close your hamachi (if runned), type in start/run services.msc and start your new HamachiService.
Warning! Currently I don’t know how to handle “Interact hamachi with desktop” on service tab.
To install any other things as windows service you can use tool: http://www.tacktech.com/display.cfm?ttid=197 or ServiceEx.


