Rayhan’s blog (raynux.com)

Rayhan’s Personal Web Blog Site

Entries Comments


Http Client Class for PHP development

13 June, 2009 (13:01) | PHP, Reference, programming | 7 comments

Tags: , , , ,


RayHttp, A Simple Http Client Class for PHP Development.
This class is designed to provide quick http reqest method to access external website. A CURL alternative to php native file_get_contents method. It can work without any configuration and can be called anywhere is your application using singleton design pattern. Unlike other Http client class in php, [...]

IPTABLES quick command list

15 April, 2009 (12:09) | Fedora, Linux, Reference, Ubuntu | No comments

Tags: , , , ,


Iptables is the default and powerful firewall that works on almost all Linux version including Ubuntu and Fedora. Here I have listed some important commands and a short description of each command for quick help. It can help people who already know little Iptables.

manage chain:
# iptables -N new_chain // create a chain
# iptables -E new_chain old_chain [...]

Install Additional softwares by a single command on Ubuntu

21 November, 2008 (02:49) | Linux, MySQL, PHP, Reference, Ubuntu, personal | 8 comments

Tags: , , , ,


I have created a bash script file to install almost all necessary softwares to run and work on a Ubuntu box. I have tried this script in Ubuntu 8.04 Hardy Heron and Ubuntu 8.10 Intrepid Ibex. Softwares I have placed in this script covers PHP-MySQL development and desktop applications for graphics, multimedia, to Internet [...]

Store and Display image from MySQL database

20 November, 2008 (16:09) | MySQL, PHP, Reference, programming | 36 comments

Tags: , , , ,


A basic approach to upload and save image to a MySQL database and then display the image from the database.
First you need to create a table in MySQL Database to store the image data. Log into you database and run the following sql command:
CREATE TABLE  `images` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(100) default NULL,
`size` int(11) [...]

Recovering Ubuntu or Fedora Linux after installing windows

21 September, 2008 (01:40) | Fedora, Linux, Reference, Ubuntu | 4 comments

Tags: , , , , , ,


Running linux with windows in dual boot mode is not hassle free at all. Specially if you reinstall or repair windows, your linux system will disappear. As a newbie you may stop using linux or reinstall it again instead of solving the problem. In this article I will share my experience on how to recover [...]

GPRS Connection from fedora linux using my moto L6

19 July, 2008 (22:19) | Fedora, Linux, Reference | 6 comments

Tags: , , ,


This is how I connect to internet from fedora box using my motorola L6 GPRS modem. I use this procedure with Teletalk connection.
After a fresh fedora installation I enter the following command in the shell. This command creates a wvdial configuration file for my modem.

# wvdialconf /etc/wvdial.conf

Now I need to modify some contents of wvdial.conf [...]

Good commenting practice in PHP.

26 June, 2008 (12:50) | CakePHP, PHP, Reference, programming | 1 comment

Tags: ,


Currently I am working on the documentation of my software written in PHP. From this documentation project I have found that proper commenting of code is a good documentation. If you write your code base along with comment then you don’t need to worry about the API Documentation of your software. You just have to [...]

SVN Server backup & Restore

25 June, 2008 (12:00) | Reference, SVN | 1 comment

Tags: ,


Most of the time I forget what I did to solve a problem in the past. So I have decided to do some shorthand documentation. This post is on how did I import my project repository to the repository of my assembla account. First I took the backup of my repository in my windows pc [...]

Painless css layout implementation with float clearfix tweaking.

24 June, 2008 (13:36) | CSS, HTML, Reference | 1 comment

Tags: , ,


Most of the time I forget what I did to solve a problem in the past. So I have decided to do some shorthand documentation.
This is how I solve a very tricky problem when working with css in layout designing. I add the following css rules in my style file.

.clearfix:after {
content: “.”;
display: block;
height: 0;
clear: [...]

 

Free cPanel hosting provided by EOMY.NET