Archive for March, 2009

HowTo install OneSwarm on Ubuntu, Linux

This will lern you how to install OneSwarm on Ubuntu, Linux. First check that you have Java installed: sudo apt-get install sun-java6-bin sun-java6-jre Then you start the download, either you go to: http://oneswarm.cs.washington.edu/download.html Else for 32-bit OS, making folder Program, download, install and run it: mkdir Program wget http://oneswarm.cs.washington.edu/builds/OneSwarm_0_5_linux_x86.tar.gz tar zxvf OneSwarm_0_5_linux_x86.tar.gz cd OneSwarm ./OneSwarm [...]


Send mail via PHP

First of all you have to change in your php.ini file if you do not have any mail server installed on your server/computer. You can send through your ISP SMTP server. Change this line in php.ini: SMTP = localhost To any vaild SMTP server, in my case I use my ISP smtp-server: SMTP = smtp.bredband.net [...]


Apache2, PHP 5, MySQL 5, phpMyAdmin for Windows

Here comes a little howto install Apache2, PHP 5, MySQL 5 and phpMyAdmin for windows. In this tutorial I will use easyPHP which is a packed for these applications. First, go to www.easyphp.org for downloading easyphp 3. After you have download it just install easyphp. When it is installed run it and go to http://127.0.0.1/home/ [...]


Random letters with PHP

Since it was no already function for random letters in PHP i was google on it and found this one some where i do not remeber but works exemplary. function randomletters() { $chars = “abcdefghijkmnopqrstuvwxyz023456789″; srand((double)microtime()*1000000); $i = 0; $pass = ” ; while ($i <= 7) { $num = rand() % 33; $tmp = [...]


OneSwarm

Today was the first day I ever heard of the new sharing client that have already got great success. Since a lot of new laws have make it hard to legally download copyright products it have also come a lot of new ways how to get around thoose problem and OneSwarm is one of them. [...]


Center div with CSS

Simple example how to center a div with css. Open your CSS file and write: body { text-align: center; } .centerdiv { margin: 0 auto; width: 200px; text-align: left; } Now open your index or what ever you want to put your div and create it: <div class=”centerdiv”>text</div>