Google Chrome Now Available for Linux

Today i installed Google Chrome on Ubuntu. It works great, now i have Opera, Firefox and Google Chrome on Ubuntu desktop. Great work Google for supporting Linux.

What Facebook Is For

Funny video explains use of facebook

Tags: , ,

Category: Web

PROFMediaPlayer

Found Open Source Flash player using adobe osmf at

http://blog.nicolasprof.com/profmediaplayer

Making FLV players with osmf is easy with video tutorial by R Blank

http://www.adobe.com/devnet/flash/articles/video_osmf.html

But making a UI is difficult task for many flash newbies. I was thinking that adobe should make a basic FLV player made available, so others can start from the player.

PROFMediaPlayer user interface is not much professional looking, still a good starting point, the player provide PSD skin, that can be modified.

XPGnome – Make Ubuntu look like Windows XP

XPGnome theme can make ubuntu look like Microsoft Windows XP.

Tags: ,

Category: ubuntu

Google Public DNS

Google started Public DNS service like OpenDNS.

Google Public DNS server IP address are

8.8.8.8
8.8.4.4

You can use google dns for resolving name servers by editing resolv.conf

vi /etc/resolv.conf

add

nameserver 8.8.8.8
nameserver 8.8.4.4

For more information on Google Public DNS visit

http://code.google.com/speed/public-dns/docs/using.html

See other Public DNS Servers at

http://blog.hostonnet.com/tag/opendns-server

Making MeidaWiki urls seo friendly

Open LocalSettings.php

Find

$wgArticlePath      = "$wgScript/$1";

Replace with

$wgArticlePath = "/$1";

Now create .htaccess file with following content

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?title=$1 [L,QSA]

Thats all. Now your media wiki installation have seo friendly url.

Tags: , ,

Category: Web

Limit number of connections for MySQL user

To limit number of mysql connection per user, edit /etc/my.cnf

vi /etc/my.cnf

In [mysqld] section, set value for max_user_connections.

[mysqld]
max_user_connections=40

This will limit mysql connections at a time for any user to 40.

PHP Tutorial Day 1

To run PHP programs you need a web server installed on your computer.

For windows, it is better install Zend Server Community edition.

Once you installed, you can start creating php programs. You need to upload Programs to DocumentRoot of the web server.

C:/Program Files/Zend/Apache2/htdocs

We will start with very basic phpinfo script.

In DocumentRoot, create a file with extenson .php, example phpinfo.php

Put following content in the file

<?php
 
phpinfo();

Now access the file with url

http://localhost/phpinfo.php

You will get php info page, it look some thing like

http://hostonnet.com/phpinfo.php

For creating php files, i recommend using notepad++ (for beginners) or ZendStudio for advanced users.

You ca download notepad++ from

http://notepad-plus.sourceforge.net/uk/site.htm

Category: PHP Tutorial

Can’t connect to local MySQL server through socket

While running symfony jobeet tutorial, i got following error

fwh@pc11-desktop:~/web/jobeet$ php symfony doctrine:build-sql
>> doctrine  generating sql for models
 
 
  While exporting model class 'JobeetAffiliate' to SQL: PDO Connection Error: SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/tmp/mysql.sock' (111)  
 
 
fwh@pc11-desktop:~/web/jobeet$

This is fixed by editing config/databases.yaml

Find line

dsn: 'mysql:host=localhost;dbname=jobeet'

Replace with

dsn: 'mysql:host=localhost;dbname=jobeet;unix_socket=/var/run/mysqld/mysqld.sock'

Changing computer name in ubuntu

To change computer name in ubuntu, run

sudo echo "computer-new-name" > /etc/hostname

Now you need to reboot to get the computer name changed.