You couldn’t resist my new motorbike design :)

July 14th, 2008

I do get sick of seeing all the identically base design on motorcycles, I can understand it on racers, as they are honed to race, but a road bike has so much more breadth for design possibilities depending on lifestyle. I just love this Honda Cbr1000rr bike model, it makes me very happy when a design works, and at the same time, absolutely ignores convention.

As per our design, it will be equipped with a cooled motor to air from 200cc with a freedom for the lean angle; specially tuned Showa sports suspension, including 43mm inverted front forks;;a bike full of purpose , handling and a unique feel. Above all else it will be a bike that will offer a cost-effective hugely rewarding riding experience . I’m expecting the basic model to be completed within September 2009.

I don’t have much idea about how this design affects the mileage and performance (the dry weight will be less than 150kgs) , as I am still learning about it. If you are an expert in bike modelling and want to know more about the design, please email me sumith@sumith.net and I’ll get back to you.

Bookmark on del.icio.us Bookmark on furlBookmark on newsvineBookmark on blinklist

Buying and selling domains

April 17th, 2008

The term domain name has multiple related meanings:

* A name that identifies a computer or computers on the Internet. These names appear as a component of a Web site’s URL, e.g. en.wikipedia.org. This type of domain name is also called a hostname.
* The product that domain name registrars provide to their customers. These names are often called registered domain names.
* Names used for other purposes in the Domain Name System (DNS), for example the special name which follows the @ sign in an email address, or the Top-level domain names like .com, or the names used by the Session Initiation Protocol (VoIP), or DomainKeys.
* They are sometimes colloquially (and incorrectly) referred to by marketers as “web addresses”.

This article will primarily discuss registered domain names. See the Domain Name System article for technical discussions about general domain names and the hostname article for further information about the most common type of domain name.

Please see  Buying and selling domains for more information

Bookmark on del.icio.us Bookmark on furlBookmark on newsvineBookmark on blinklist

Internet Marketting - Basic Ideas

March 27th, 2008

Internet Marketting , also referred to as online marketing or eMarketing (or e-Marketing), is the marketing of products or services over the Internet. The Internet has brought many unique benefits to marketing including low costs in distributing information and media to a global audience. The interactive nature of Internet marketing, both in terms of instant response and in eliciting response, are unique qualities of the medium.

Internet marketing ties together creative and technical aspects of the internet, including design, development, advertising and sales. Internet marketing methods include search engine marketing, display advertising, e-mail marketing, affiliate marketing, interactive advertising, online reputation management and also Social Media Marketing Methods such as blog marketing, and viral marketing.

Internet marketing is the process of growing and promoting an organization using online media. Internet marketing does not simply mean ‘building a website’ or ‘promoting a website’. Somewhere behind that website is a real organization with real goals.

An Internet marketing strategy includes all aspects of online advertising online activity that promotes a company online, including websites, blog sites, article and press releases, online market research, email marketing, and advertising, as appropriate for the promotion of ones’ business.

Useful Links:  Search Engine Optimisation   | Internet Marketing | ECommerce

Bookmark on del.icio.us Bookmark on furlBookmark on newsvineBookmark on blinklist

Compiling XCache from Source

March 21st, 2008

For those of you that are not running RPM-based distros, you’re probably feeling a bit left out. Up until now, all of my tutorials have dealt with upgrading RPM-based distros. Well, that ends here. I’m going to walk through the fairly simple process of compiling and installing XCache for httpd from the original source.

The current stable release of XCache is 1.0.3. The “Unstable” release, made for PHP 5.1 & 5.2, is 1.2.0. Despite the label, I have not found anything “unstable” about the 1.2.0 version. That said, there have been a few issues reported on the vBulletin forums for users of PHP 4. If you are running PHP 4, I’d recommend that you use 1.0.3, just to be safe. Now, down to the work.

Assuming that you already have a full development environment on your system (gcc, gcc-c++, make, php-devel, etc.), the first thing you’ll need to do is to download the source tarball to your computer. Pick the version you want and then continue to the next step.

XCache 1.0.3 - PHP 4.x
XCache 1.2.0 - PHP 5.1 & 5.2

Once you’ve downloaded the source pacakge to your server, unpack it and then enter the “xcache” directory that was just created. At this point, you’ll want to run the following commands. Even a slow system should be done within 1 or 2 minutes, so don’t go anywhere.

    * phpize
    * ./configure –enable-xcache –enable-xcache-optimizer
    * make
    * make install

The output of “make install” is very important as it lets you know where the compiled module was installed. Make sure that you remember or write down that string.

Now that the xcache.so module is installed, you’ll need to configure it. If your install of PHP parses the /etc/php.d/ folder then you should create a file in that folder called “xcache.ini”. If not, just open your php.ini file and paste in the following:

[xcache-common]
    zend_extension = /usr/lib/php4/xcache.so

    ; required for >=php5.1 if you turn XCache on
    auto_globals_jit = Off

    [xcache.admin]
    xcache.admin.user = “admin”
    ; paste the output of md5(”password”) below
    xcache.admin.pass = “”

    [xcache]
    xcache.size = 32M
    xcache.count = 1
    xcache.slots = 8K
    xcache.mmap_path = “/dev/zero”
    xcache.cacher = On
    xcache.optimizer = On

Based on your configuration, you may want to make a few changes. If “/usr/lib/php4″ was not where “make install” claimed to have installed the xcache.so module, change it. Likewise, if your system has multiple processors (count logical cores from Hyper-Threading), change the value of “xcache.count”. Finally, if you plan to use the web admin interface, you’ll need to fill in “xcache.admin.pass”. This value should be a MD5 of the password you want to use (if you need an MD5 generator, try this one).

If you filled in the password, you should also copy the contents of the “admin” folder from the “xcache” source folder to somewhere web-accessible. No changes need to be made and the “config.php.example” file should be left as-is.

At this point, all that’s left is to restart httpd and you should be good. Check your phpinfo() once you’ve restarted httpd to make sure that xcache is listed.

Bookmark on del.icio.us Bookmark on furlBookmark on newsvineBookmark on blinklist

How to replace a string in a file with another string using replace command

March 21st, 2008

If you want to replace a string ‘gmail’ with ‘hotmail’ in all the files under a folder, say ’sumith’ , then go under the folder sumith, then issue command

replace gmail hotmail — *

If you want to replace the string ‘aol’ with ‘yahoo’ in just a single file say ‘techie’, then issue the command

replace aol yahoo –techie

Bookmark on del.icio.us Bookmark on furlBookmark on newsvineBookmark on blinklist

ventrilo server

March 21st, 2008

Ventrilo is a proprietary Voice over IP program with clients for Microsoft Windows and Mac OS X. Most users of Ventrilo use a headset or microphone and use the program to talk freely to each other, similar to a telephone conference call. Ventrilo is often used by multiplayer computer game players.

ventrilo server setup how to changing ventrilo serverteamspeak servers hosting

Bookmark on del.icio.us Bookmark on furlBookmark on newsvineBookmark on blinklist

Game Servers

March 21st, 2008

Game servers can be classified as listen servers and dedicated servers. Listen servers are run on the same machine as the game client. When the client disconnects, the server is shut down, as the server and host client are run together. Listen servers usually cannot support many players, due to bandwidth and CPU requirements. The software running the listen server typically limits the number of players for this very reason.
online call of duty 4 servers order call of duty 4 game servers team fortress 2 servers

Bookmark on del.icio.us Bookmark on furlBookmark on newsvineBookmark on blinklist

VOIP/Teamspeak server hosting guide.

March 21st, 2008

TeamSpeak is proprietary Voice over IP software that allows users to speak on a chat channel with other users, much like a telephone conference call. A TeamSpeak user will often wear a headset with an integrated microphone. Users use the TeamSpeak client software to connect to a TeamSpeak server of their choice, from there they can join chat channels.
free ventrilo server hosting teamspeak servers setup guide teamspeak server information

Bookmark on del.icio.us Bookmark on furlBookmark on newsvineBookmark on blinklist

PHPList installation problem with fantastico

March 21st, 2008

Phplist can be installed using fantastico, however the installed software doesn’t work. It throws a blank page while trying to access phplist after the installation.

  • Fix: In the config.php file, go to the line that is define(”PLUGIN_ROOTDIR”,”/tmp”) and change the /tmp path to
    /home/username/tmp .This will make the page come up.
  • Bookmark on del.icio.us Bookmark on furlBookmark on newsvineBookmark on blinklist

    directadmin to cpanel : a partial BASH solution

    March 17th, 2008

    The following BASH script basically takes the files already available under the directories “backup” and “domains”, puts them nicely under one directory and tar-gzips it all. (the backup and domains directories come from untaring the User Backup created under DirectAdmin)

    you then have to upload the resulting tar-gzip to the newly created cPanel account and untar-zip it. The file manager in cPanel does this with a click.

    this script still has LOADS of problems, and if you’re unexperienced with the linux FS, permissions, etc… don’t come this way

    What this does, however, is saving a lot of time if the accounts in question have many e-mails accounts (I did this because some of my clients had 100+ emails), and also takes care of the user files (public_html and everything else)

    Resuming, this is what the script does:

    - copy the quota file
    - copy the IMAP folders and inbox folder of the main account
    - copy the squirrelmail settings
    for EACH e-mail account it does this:
    - generate the entry and update the shadow and passwd file with its username and password (you keep everyone’s passwords!)
    - copy the IMAP folders and inbox to the respective directory

    to the domain files, it does this also:
    - update references in every file (php, html, etc) by removing “domains/domain.net”
    (ie /home/skyhorse/domains/skyhorse.org/public_html becomes /home/skyhorse/public_html)

    This does not handle FTP settings, subdomain settings, dns settings, or anything else.
    But hey, it saved me hundreds of hours of pain…

    It is easily improved, so if you do, please send it back to me

    BTW, the scripts assumes you’re using the SAME username in directadmin and in cpanel for each account, and the same domains as well.
    It is also

    It can also take a bit of hard disk space, since it literally duplicates the accounts files. If this is an issue, script around it to use the /tmp directory or even better, do some pipelining with tar

    One last thing, although you see the CHMOD command being used, when untaring all files loose the damn permissions.
    you NEED to change the permissions manually (inbox NEEDS to be group writable) or find a way to resolve the issue, which I couldn’t.

    here it is anyway, remember to replace the variables with your own settings:

    # bash
    # Copyleft (C) SkyHorse 2004
    # for each account:
    # put passwd as passwd + shadow
    # quota (if != 0)
    # into ~/etc/%domain%
    GENDOMAIN=domain.com
    GENUSERNAME=accuser
    NEWACCPASS=accpass
    MYFILESPATH=/home/skyhorse/temp_sites

    mkdir result
    mkdir result/mail
    mkdir result/mail/$GENDOMAIN
    mkdir result/etc
    mkdir result/etc/$GENDOMAIN

    cp $MYFILESPATH/$GENUSERNAME/backup/$GENDOMAIN/email/quota result/etc/quota
    chmod 644 result/etc/quota

    touch result/etc/shadow
    chmod 640 result/etc/shadow

    touch result/etc/passwd
    chmod 644 result/etc/passwd

    chmod 660 $MYFILESPATH/$GENUSERNAME/backup/email_data/imap/*
    cp $MYFILESPATH/$GENUSERNAME/backup/email_data/imap/* result/mail
    cp $MYFILESPATH/$GENUSERNAME/backup/email_data/pop/$GENUSERNAME result/mail/inbox
    chmod 660 result/mail/inbox

    mkdir result/.sqmaildata
    cp $MYFILESPATH/$GENUSERNAME/backup/email_data/squirrelmail/* result/.sqmaildata

    ENTRY=`cat $MYFILESPATH/$GENUSERNAME/backup/$GENDOMAIN/email/passwd`
    for line in $ENTRY
    do
    login=`echo $line | sed s/[:].*//`
    pass=`echo $line | sed s/.*[:]//`
    mkdir result/mail/$GENDOMAIN/$login
    mkdir result/mail/$login

    echo $login:x:32120:622::/home/$GENUSERNAME/mail/$GENDOMAIN/$login:/usr/local/cpanel/bin/noshell >> result/etc/passwd
    echo $login:$pass::::::: >> result/etc/shadow

    chmod 750 result/mail/$GENDOMAIN/$login
    cp $MYFILESPATH/$GENUSERNAME/backup/$GENDOMAIN/email/data/pop/$login result/mail/$GENDOMAIN/$login/inbox
    chmod 660 result/mail/$GENDOMAIN/$login/inbox

    cp $MYFILESPATH/$GENUSERNAME/backup/$GENDOMAIN/email/data/imap/$login/.mailboxlist result/mail/$GENDOMAIN/$login/
    cp $MYFILESPATH/$GENUSERNAME/backup/$GENDOMAIN/email/data/imap/$login/mail/* result/mail/$GENDOMAIN/$login/

    touch result/mail/$login/inbox
    chmod 660 result/mail/$login/inbox
    done

    cp result/etc/* result/etc/$GENDOMAIN/

    #domain files
    cd domains/$GENDOMAIN
    #update file references - this one liner deletes domains/domain.net in every file of the tree.
    # efectively changes:
    #/home/username/domains/domain.net/public_html into
    #/home/username/public_html
    find ./ -type f -exec sed -i ’s/domains\/$GENDOMAIN\///’ {} \;

    cp -R * ../../result
    cd ../../result

    tar –owner=$GENUSERNAME –group=$GENUSERNAME -czf ../$GENUSERNAME-$GENDOMAIN.tar.gz *
    cd ..

    #upload tar.gz
    #I have ncftpput installed, but because most people don’t, I’ve commented it out
    #ncftpput -u $GENUSERNAME -p $NEWACCPASS localhost / $GENUSERNAME-$GENDOMAIN.tar.gz

    #database:

    #mysql

    #subdomains

    #ftp

    Bookmark on del.icio.us Bookmark on furlBookmark on newsvineBookmark on blinklist