Monday, October 1, 2007

Debian & Smarty Book

To day i came from Dhaka. Finally i got Debian from my friend Salahuddin Pasha(salahuddin66)
and i also meet Hasin Hyder and got one of his book from him,its "Smarty PHP Template Programming and Applications".

Wednesday, September 26, 2007

Bangla Web site

To day i Develop my first Bangla Web page (Unicode based) . I use Avro keyboard to write bangla in a notepad the use it in site.

Compile C program using PHP-5

To day i successfully compile a .c program using PHP-5. It just simple.I just use “System()” function on PHP-5. :)

Tuesday, September 25, 2007

Fun with Turbo C

Here is a program which show sin,cos,tan graph . Just copy and past in .c or .cpp file and compile and see :)

/**********************************************
* Fun with C. /
* Sin,cos,tan grapth in Turbo C. /
* Aughtor:Raquibul Islam /
* Email:rana_cse_05@yahoo.com /
* http://ranacse05.blogspot.com /
* http://ranacse05.wordpress.com /
* http://www.ranacse05.tk /
***********************************************/

#include
#include
#include

int main()
{
double i,cone,redian=22.0/(7.0*180.0);

int gdriver = DETECT, gmode, errorcode;
initgraph(&gdriver,

&gmode,"f:\\tc\\bgi");//Here is the path of ht

egevge file.

//---2 lines for axais.

line(50,50,50,400);
line(50,220,550,220);



for(i=50.0,cone=0;i<550.0;i=i+.1,cone=cone+.1)
{


putpixel(i,220-((sin(cone*redian))*50),2); //for

sine


putpixel(i,220-((cos(cone*redian))*50),3); //for

cos


putpixel(i,220-((tan(cone*redian))*50),5); //for

tan
delay(3);
}

delay(2000);


return 0;
}

Monday, July 9, 2007

Photoshop In Linux !

Its possible to work with photoshop under Linux . First install wine package . Its available in www.winehq.org . Then configure wine and select a directory as virtual C:// drive , then install the photoshop from any source by the help of wine
Applications>Accessories>Wine file
Then go to the directory and install the photoshop.
Now open wine file browser
Applications>Accessories>Wine file
From wine file browser select c:/ then go to
c:/Program Files/Adob/
Photoshop/Photoshop.exe

Here is a screenshot of Photoshop in Linux


Friday, July 6, 2007

Install pidgin in Ubuntu

Just copy the following code and past in one file named "pidgin"

CODE:
#!/bin/bash

sudo apt-get install libgtk2.0-dev libxml2-dev gettext libnss-dev libnspr-dev
sudo wget http://easynews.dl.sourceforge.net/sourceforge/pidgin/pidgin-2.0.1.tar.bz2


tar xvfj pidgin-2.0.1.tar.bz2
cd pidgin-2.0.1


./configure
make
sudo make install

then open the terminal and type

chmod 777 pidgin

./pidgin

Now search pidgin in Applications>Internet> Pidgin Internet Messenger
if you don't find pidgin here then try /home/rana/
pidgin-2.0.1/Pidgin Internet Messenger.
And enjoy :D

Note : Here /home/rana because my user name is rana replace it with your user name.

Tuesday, July 3, 2007

GRUB recovery after installing Windows XP

If any one use dual boot system then after installing windows again we lost GRUB loader. It can recover in various method. Here i discuss GRUB recovery using Live cd. For this we have to boot our system by Live cd.Then in terminal

sudo fdisk -l

to see the partitions,we'll see something like this..

Disk /dev/hda: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1275 10241406 c W95 FAT32 (LBA)
/dev/hda2 1276 2187 7325640 83 Linux
/dev/hda4 2806 9963 57496635 f W95 Ext'd (LBA)
/dev/hda5 2806 4080 10241406 b W95 FAT32
/dev/hda6 4081 5355 10241406 b W95 FAT32
/dev/hda7 5356 6630 10241406 b W95 FAT32
/dev/hda8 6631 9963 26772291 b W95 FAT32


Here my linux partition is hda2.
Now we have to type

cd /boot/grub

then type

grub

we'll see

grub>

in terminal.
then type

grub> root (hd0,1)
grub> setup (hd0,0)
grub>quit

Now reboot your Computer and watch.

Spacial thanks to Suzan bhai & Asad

Note: For hda1,sda1 it'll be (hd0,0),hda2,sda2 it'll be (hd0,1),hdb1,sdb1 it'll be (hd1,0)