Jul 29

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.

written by rzelazko \\ tags: , ,

Jul 25

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:

sudo apt-get install libstdc++2.10-glibc2.2

this worked for me.

written by rtokarski

Jul 24

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:

eclipse -vmargs -Xmx

with the <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=<memory size> argument:

eclipse -vmargs -XX:MaxPermSize=

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:

-showsplash
org.eclipse.platform
-vmargs
-Xms512m
-Xmx512m
-XX:PermSize=256m
-XX:MaxPermSize=256m

written by rtokarski

Jul 10

Eclipse with integrated PDT, Aptana, RemoteSystem and Subeclipse:

Download and add import to update manager file:
http://rafekz.one.pl/eclipse.xml

written by rzelazko

Jul 10

If you need set height of one div as long as other div (both div float left) you must do some tricks.

Base code:

#wrapper { clear: both; }
#cola { float: left; width: 100px; }
#colb { float: left: width: 100px; }
<div id="wrapper">
<div id="cola"></div>
<div id="colb">Some content.</div>
</div>

Now if you want to have same height in cola and colb you must add:

#wrapper { overflow: hidden; }
#cola { margin-bottom:-32767px; padding-bottom:32767px; }

written by rzelazko

Jul 10

Install
To install hamachi on debian or ubuntu follow steps:

sudo su
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 <network> [<password>]
  • Create your own network
    sudo hamachi -c /etc/hamachi create <network> [<password>]
  • Log in to hamachi
    sudo hamachi -c /etc/hamachi login
  • Go online
    sudo hamachi -c /etc/hamachi go-online <network>
  • List users in your networks:
    sudo invoke-rc.d hamachi status
    (you can enter this command twice to view nicknames)

written by rzelazko

Jul 09

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

written by rtokarski

Jul 05

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:

[ServiceEx]
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

cd C:\Program Files\ServiceEx
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.

written by rzelazko \\ tags: , , , , , , , ,