Monday, February 2, 2009

Browse WAP Site on Computer

Sometimes we want to browse mobile wap site but at that time if we can browse it via mobile then it, obviously, makes us annoyed. So, Now you do not need to have a GPRS enabled mobile device. You can easily browse WAP site through MobileRunner.

Simply go to Mobilerunner.net and browse WAP site with the desired device.

You may have to create a account but it is absolutely easy than ever.

Saturday, January 3, 2009

Installing Fonts In Ubuntu

Sometimes we need to install new fonts in Ubuntu. Here is a method of installing fonts in Ubuntu.

-> Put the fonts on temporary folder (/tmp).
-> Open Nautilus file browser in root access (alt+F2 gksudo nautilus).
-> Go to fonts folder (/usr/share/fonts).
-> Creat a folder for your new font.
-> Cut and Paste the new font form temporary folder to the newly created folder.
-> Run font cache or type the code below in terminal:

sudo fc-cache -f

Thursday, December 18, 2008

Decompress The *.rar File in Ubuntu

Sometimes we need to download *.rar file from the website and we have to decompress the file to get the original file. In windows operating system its easy to decompress just right click to the file and click Extract Here...

But in Ubuntu to decompress the *.rar file open the Terminal window and type:
find -type f -name '*.rar' -exec unrar x {} \;

You can use 7-zip application (installing from add remove application) to easily compress and decompress the many types of format including *.rar

Installing Adobe Air in Ubuntu

If you want to install Adobe Air in your Ubuntu (Linux Operating System) then follow the instructions:


-> Download Adobe Air Linux (.BIN, 10.6MB)

-> Open Terminal and type
$ sudo ./thebinfile.bin
or
$ sudo /path/to/binfile.bin

Here thebinfile.bin and binfile.bin is the .bin file name of the adobe air.

Read Prothom Alo In Firefox

The daily Prothom Alo has no unicode version that is why it is difficult to read Prothom Alo in many web browser i.e. Opera, Firefox etc.

Now you can read Prothom Alo website in your Firefox then just install the Poroshmoni add-ons.

To download:
Mozilla registered user, Direct Download

You can use it both in Windows and Linux Operating System.

Monday, December 1, 2008

Back Up and Restore Gmail To Your Computer

Sometimes you need to save or backup the mails to computer or transfer is to another mail. You may do it through GMail and you need Gmail-Backup (4.35 MB) software. Firstly install Gmail-Backup in your computer and run it.
-> Give your gmail ID and password.
-> Locate the Directory where you want to backup.
-> Click Backup (Newest emails only may be checked in) then only Newest emails will be backup.
-> You may checked it out and set the date range that you want to backup.
To restore the emails just give your Gmail ID, password and locate the directory of backup file and then click Restore.

Saturday, November 29, 2008

Synchronous Counter Code for Xilinx FPGA

Verilog Code

module countersync(reset, Q, clock);
input reset;
input clock;
output [3:0]Q;
reg[3:0]Q;

always @ (posedge clock)
if(!rst)Q<=0; else Q<=Q+1; endmodule


Testbench Code

module testbench;
reg reset,clock;
wire [7:0]Q;
parameter STEP=60;


// Instantiate the module
countersync instance_name (
.reset(reset),
.Q(Q),
.clock(clock)
);

always#(STEP/2)clk=~clk;
initial begin
clock=1;reset=0;#(STEP-10);
reset=1;#(STEP*20);
$stop;
end
endmodule

Run Commands

We can run any program by typing code in Run window. To go to Run window Start > Run or (Ctrl+R) then type your code for desired program.

Accessibility controls - access.cpl
Accessibility wizard - accwiz
Add Hardware wizard - hdwwiz.cpl
Add/Remove programs - appwiz.cpl
Administrative Tools - control admintools
Automatic Update - wuaucpl.cpl
BlueTooth File Transfer wizard - fsquirt
Calculator - calc
Certificate - certmgr.msc
Character Map - charmap
Check Disk - chkdsk
Clipboard Viewer - clipbrd
Command Promt - cmd
Componant Service - dcomcnfg
Computer Management - compmgmt.msc
Control Panel - control
User Accounts - control userpasswords2
Date and Times - timedate.cpl
D.D.E shares - ddeshare
Device Manager - devmgmt.msc
DirectX - dxdiag
Disk Clean up - cleanmgr
Disk Defragment - dfrg.msc
Disk Management - diskmgmt.msc
Disk Partition Manager - diskpart
Display Properties - control desktop
Display propertied - desk.cpl
Dr. Wattson for Windows - drwtsn32
Driver Verification Manager - verifier
Event Viewer - eventvwr.msc
File and Settings transfer tool - migwiz
File signeture verification tool - sigverif
Find fast - findfast.cpl
Folder properties - control folders
Fonts - control fonts
Fonts - fonts
Game controlls - joy.cpl
Group Policy - gpedit.msc
Help and Support - helpctr
HyperTerminal - hypertrm
I.Express wizard - iexpress
Indexing Service - ciadv.msc
Internet Connection wizard - icwconn1
Internet Explorer - iexplorer
Internet Property - inetcpl.cpl
keyboard - controls keyboard
Local security settings - secpol.msc
Local Users And group - lusrmgr.msc
Logoff - logoff
Microsoft chat - winchart
Microsoft Movie maker - moviemk
Paint - mspaint
Microsoft Sincronization tool - mobsync

(will be finish soon)

FSM Code for Xilinx FPGA

Verilog Code (for sequence 0010)

module sequence(x, clock, reset, y, Q);
input x;
input clock;
input reset;
output y;
reg y;
output [2:0]Q;

parameter start=3'b000;
parameter got0=3'b001, got00=3'b010, got001=3'b011, got0010=3'b101;
reg[2:0]Q; //state variable
reg[2:0]D;

//next state logic
always @(x or Q)
begin
case (Q)
start: D=x ? start:got0;
got0: D=x ? start:got00;
got00: D=x ? got001:got0;
got001: D=x ? start:got0010;
got0010: D=x ? start:got00;
default: D=3'bxxx;
endcase
end

always @ (posedge clock)
begin
if(reset)
Q=D;
else
Q=0;
end

//output logic
always @ (Q)
y=Q[2];
endmodule


Testbench Code

module testbench;
reg x;
reg clock;
reg reset;
wire y;
wire [2:0]Q;

// Instantiate the module
sequence instance_name (
.x(x),
.clock(clock),
.reset(reset),
.y(y),
.Q(Q)
);

always #100
clock=~clock;

//input data bit
initial begin
clock=1; x=0; reset=0; #200
x=0; reset=0; #200
x=0; reset=0; #200
x=1; reset=0; #200
x=0; #200
x=0; #200
x=1; #200
x=0; #200
x=0; #200
x=1; #200
x=0; #200
$stop;
end
endmodule

8-bit Shift Register Code for Xilinx FPGA

Verilog Code

module shiftres(w, clock, Q);

input w;
input clock;
output [1:8]Q;
reg [1:8]Q;

always @(posedge clock) //Shift Resistor logic start
begin
Q[8]<=w; // Value of w count as Q[8]
Q[7]<=Q[8]; //Value shifted from Q[8] to Q[7]
Q[6]<=Q[7]; //Value shifted from Q[7] to Q[6]
Q[5]<=Q[6]; //Value shifted from Q[6] to Q[5]
Q[4]<=Q[5]; //Value shifted from Q[5] to Q[4]
Q[3]<=Q[4]; //Value shifted from Q[4] to Q[3]
Q[2]<=Q[3]; //Value shifted from Q[3] to Q[2]
Q[1]<=Q[2]; //Value shifted from Q[2] to Q[1]
end
endmodule


Testbench Code


module testbench;
reg w, clock;
wire [1:8]Q;

// Instantiate the module
shiftres instance_name (
.w(w),
.clock(clock),
.Q(Q)
);

always#100
clock=~clock;
initial begin
clock=1; w=1; #200
w=0; #200
w=1; #200
w=0; #200
w=0; #200
w=1; #200
w=1; #200
w=0; #200
$stop;
end
endmodule