Rayhan’s blog (raynux.com)

Rayhan’s Personal Web Blog Site

Entries Comments


Panam City Tour- Esha Khan’s Sonargoan, Old capital

22 August, 2008 (01:14) | Bangladesh, personal | 2 comments

Tags: , , ,


Sonargoan . Panam City

It was Sunday, August 17, 2008. I got up at 10:00 O’clock because it was a government holiday. Probir came to my room saying about going some where. I was not prepare for this, in a sudden I told him to go Sonargoan of Esha Khan. Then I and probir convinced Zaed to accompany us which took about 1 hour.

Finally we started our journey toward Sonargoan at 11:30 AM from. Because of holiday we managed to reach there at about 1 pm. It was an imaging journey as none of we ever visited the place. We were in the dream when we entered the narrow street of Panam city. All the building standing two sides of the road were about 3 hundred years old. Most of them were in danger and any time could collapse. We learned the architecture of the then era. The structure of the building was our main subject as all of we were civil engineer. All the buildings were made using lime-concrete technology. In some building steel joist was used to bear the load of slab but most of the buildings were made of lime-concrete only even in the tension zone like slab. In the tension zone they used brick blocks in 45 degree angle so that they can act as compression member to resist tension like arch do. We found visible cracks here and there in most of the buildings. It was really a good experience for us.

But what we found was all the buildings were decaying and emergency look after and quality renovation work is highly required. The government is doing for some renovation work which is not sufficient. We need to save it because it is our Heritage. Finally we returned home with a great memory.

Tour Pictures

All the pictures were taken by mobile phone.

1
(I, Probir and our two little guide ridoy and autip.)

11
(I was thinking ….?)

10
(Picture of a dangerous slabs see bricks are in 45 degree angle.)

13
(Close view of a decaying wall made of lime concrete)

16
(Zaed, what is he doing with his guava)

View Photo Album of Panam Tour >

Listen MP3 on Fedora Linux box.

20 July, 2008 (00:03) | Fedora, Linux, Reference | 2 comments

Tags: ,


I receives lots of call from my friends to help them fixing mp3 problem in fedora. Some of them already have internet connection to their fedora box.

Here is a single command what can solve the problem if you have internet connection.


# yum -y install gstreamer*

This command will automatically find, download and install the GStreamer mp3 codec for you. Then you can enjoy the mp3 song with your favorite music player.

You can download xmms one of the popular mp3 player on your fedora system. It is a Winamp alternative to linux. To install this software enter the following command.


# yum -y install xmms*

After installing xmms you will find the menu Application -> Sound & Video -> Audio Player to launch the xmms player.

Varification Post for Technorati.com

19 July, 2008 (23:32) | Uncategorized | 1 comment

GPRS Connection from fedora linux using my moto L6

19 July, 2008 (22:19) | Fedora, Linux, Reference | 7 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 file. To do so I open the /etc/wvdial.conf using VI or other text editor. And replace the content of the file with the following text and save it.


[Dialer Defaults]
Modem = /dev/ttyACM0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = USB Modem
Phone = *99#
Username = A
Password = B
Stupid Mode = 1

I make sure to set username = A, Password=B and Stupid Mode = 1 and do not modify the line

Modem = .....

as this is my device name (this line can very with your phone set). Now whenever I need to connect to internet I just enter the following command to the shell.

# wvdial

Thats all. Same way you can turn your mobile set to internet from fedora with no or little modification.

I have started learning both Ruby & Python

15 July, 2008 (23:58) | programming, Python, Ruby | No comments

Tags: , ,


Today I have started learning Python, after a successful start I have found that in Python the code block is separated by indent. That means no closing braces or ending identifier. like


def whats_on_the_telly(penguin=None):
    if penguin is None:
        penguin = []
    penguin.append("property of the zoo")
    return penguin
  
def another_func():
    return 1

Here, the function definition ends at after a blank line followed by another definition. I was disappointed with this features of Python and found it is confusing for a large code base for manageability.

As a result I moved to Ruby. After installing Ruby in my PC I started learning the basics of Ruby Language. I have found some interesting features in Ruby language. But I am not impressed with some features like the way of return statement in a function definition.

This is my opinion as a beginner. Yet, I want to try both of them.

I have updated my resume.

10 July, 2008 (11:20) | personal | No comments

Tags:


Last night I have renewed my resume. It took me about 4 hour to make it good. Here is the link to my resume.

Good commenting practice in PHP.

26 June, 2008 (12:50) | CakePHP, PHP, programming, Reference | 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 use some software like PHPDoc or Doxygen to make the API in a minute. Specially I am using Doxygen in my project which is also used in CakePHP API documentaiton.

When you are commenting your code be careful to meet the commenting requirement/procedure so that those documentation software can understand your comment as a data.

Here is a simple example what Doxygen can easily parse for you.

    	
/**
 * Class A.
 * 
 * Class description.
 * 
 * @example example here.
 * @todo to do here
 * 
 * @package appname
 * @subpackage appname.subname
 * @author yourname
 * @since version 1.0
 */
class A extends Object{	
	/**
	 * Enter description here...
	 *
	 * @var type
	 */
	var $member1;	
	/**
	 * Enter description here...
	 *
	 * @param integer $param1
	 * @param string $param2
	 * @param array $param3 contains a array of data
	 * @return boolean
	 * @since version 2.0
	 */
	function doSomeThing($param1, $param2, $param3){		
		return true;
	}
}
    

So if you follow the commenting technique carefully, you don’t have to white API of your own.

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 with the following command.

Windows:
cmd> svnadmin dump c:\repo\proj1 > c:\proj_backup\proj1_date
Equivalent Linux command:
shell> svnadmin dump /repo_path/proj1 > /backup_path/proj1_date

Then I created a test repository and imported the backup file to the new test repository to see whether it is working. After that I deleted the test repository.

Windows command:
cmd> svnadmin create c:\repo_path\proj1_new
cmd> svnadmin load c:\repo_path\proj1_new < c:\proj_backup\proj1_date
cmd> rmdir /s c:\repo_path\proj1_new

Equivalent linux command:
shell> svnadmin create /repo_path/proj1_new
shell> svnadmin load /repo_path/proj1_new < /proj_backup/proj1_date
shell> rm -rf /repo_path/proj1_new

Then I created a zip copy of the backup file proj1_data to proj1_date.zip and imported the zip copy to my account of assembla. This is how I solved the problem related to backup & restore my project repository. Subversion_Tutorial is a nice SVN site for quick reference.

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: both;
	visibility: hidden;
}
/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
/* End hide from IE-mac */
/* row can be in any place */
.row{
	clear: both;
	margin-bottom: .3em;
}
.row:after {
	content: ".";
	display: block;
	height: 0;
	clear: both;
	visibility: hidden;
}
/* Hides from IE-mac \*/
* html .row {height: 1%;}
/* End hide from IE-mac */
.column{
	float: left;	
	padding: 0;
	margin: 0;
	margin-right: 15px;
	padding-right: 0;
}
.last{
	margin-right:0;
	padding-right:0;
}


Then I add the simple row, and column class to the html elements to get the work done. like


        <div class="row">
            <h2>Header</h2>
        </div>
        <div class="row">
            <div class="column">Home</div>
            <div class="column">Services</div>
            <div class="column">Products</div>
            <div class="column last">News</div>
        </div>
        <div class="row">
            <h2>Content</h2>
            <div class="column">Body Column 1</div>
            <div class="column">Body Column 2
                <div class="column row">
                    <div class="column">
                        Nested Body Column 1
                    </div>
                    <div class="column last">
                        Nested Body Column 2
                    </div>
                </div>
            </div>
            <div class="column last">Body Column 3</div>
        </div>        
        <div class="row">
            <div class="column">Footer Text</div>
            <div class="column last">Copyright text</div>
        </div>
    

Unwanted mobile number block options to save our teenage & young citizens

18 May, 2008 (14:01) | Bangladesh, personal | 1 comment

Tags:


Now its time to shout against mobile phone operators of Bangladesh to have unwanted
number block service.

There are lots of Bad guys in Bangladesh use mobile phone to irritate our
female citizens. What they do is they try with different combinations
on digits and do miss calls, write messages and search for female voice.

Though I am a male, my mobile number is a quite easy number like 01912xxyyzz.
As a result I get a lots of miss calls every days.

Even last day, I got seven miss calls from a number of Saudi Arabia. As some
of my relatives stay there, I backed the calls and found that it was
the same kind of matters.

Our teenage and young citizens are
bored & tired of unwanted mobile calls, messages and miss calls. I
know some families had to change their old mobile number because of
this problem.

And you know if some one ping you all the time
send messages showing sympathy to you like ours female citizens, the
ice of your heart will melt one day. Many of our female citizens are
being trapped by these approach. Many of these relations leads them
towards sexual relations. As a result our society are being corrupted.

But, if you have the chance to block the number at the beginning then a good
percentage of improvement will be there.

you may know that MSN IM, Yahoo IM, Google Talk, All email Services have
the options to block unwanted contact. And this is the right of
subscribers.

I am sure many of you should have the same kind
of experiences. Please tell your story and try to strengthen our voice
against this matters so that our mobile phone operators consider this.

« Older entries

 Newer entries »