Showing posts with label How to. Show all posts
Showing posts with label How to. Show all posts

Setup Virtual Router (Windows)


Set the network details:
netsh wlan set <network_name> mode=allow ssid=<ssid> key=<password>
netsh wlan start <network_name>
Example:
netsh wlan set hostednetwork mode=allow ssid=ss key=ssssss
netsh wlan start hostednetwork
To stop the Wireless Hosted Network:
netsh wlan stop <network_name>
To see the Wireless Hosted Network details, including the MAC addresses of connected users:
netsh wlan show <network_name>
N.B: Run these commands in administrative mode.

Restore boot manager after installing windows 7 over linux



  • Boot from the ubuntu Live CD.
  • Open the terminal from applications -> Accessories -> Terminal.
  • Then find the partition of your Ubuntu OS from the list generated with the command,
    • sudo fdisk -l
  •  If your ubuntu(linux) partion is sda6,
    • sudo mkdir /media/sda6
    • sudo mount /dev/sda6 /media/sda6
  • After that you have to reinstall the GRUB
    • sudo grub-install --root-directory=/media/sda5 /dev/sda
  • If everything went alright you should be able to reach the GRUB boot menu when you restart the computer. You can find more information from here.

Some secret code of Mobile


*#92702689# -> Warranty settings.
*#7760# -> Production serial no.
*#bta0# -> MAC address of bluetooth.
*#9999# -> Firmware version.
*#2640# -> Security code.
*#7328748263373738# -> Default security code.
*#43# -> Call waiting status.
*#2820# -> Bluetooth info.
*#7370# -> Format mobile memory.
*#delset# -> reset GPRS & E-mail Setting.
*#06# : for checking the IMEI (International Mobile Equipment Identity).
*#7780# : reset to factory settings.
*#67705646# : This will clear the LCD display(operator logo).
*#0000# : To view software version.
*#2820# : Bluetooth device address.
*#746025625# : Sim clock allowed status.
*#62209526# : Display the MAC address of the WLAN adapter.
#pw+1234567890+1# : Shows if sim have restrictions.
*#92702689# : takes you to a secret menu .
*#3370# – Enhanced Full Rate Codec .
*#3370* – (EFR) deactivation.
*#4720# – Half Rate Codec activation.
*#4720* – Half Rate Codec deactivation. The phone will automatically restart


Only for NOKIA:
*#7780# -> Factory Restore.
*#3283# -> View set creation date.
*#746025625# -> Close the SIM timer.
*#67705646# -> Remove the operator logo.
*#73# -> Reset phone timer and game.
*#0000# -> Firmware version.
*#06# -> IMEI


Get own mobile number:
*Grameenphone: *111*8*2#
*Robi: *140*2*4# or call 1200 & press 4
*Banglalink: *511#
*Airtel: *121*6*3#


MAKEFILE (at a glance)


Sample code
 
project1: data.o main.o io.o
        cc data.o main.o io.o -o project1
data.o: data.c data.h
        cc -c data.c
main.o: data.h io.h main.c
        cc -c main.c
io.o: io.h io.c
        cc -c io.c #this is a comment

Syntex
target : source file(s)
command (must be preceded by a tab)

#command to use user defined makefile name
make -f mymakefile

Macros in make
The make program allows to use macros, which are similar to variables, to store names of files. The format is as follows:
OBJECTS = data.o io.o main.o
Whenever you want to have make expand these macros out when it runs, type the following corresponding string $(OBJECTS).

Here is sample Makefile again, using a macro.
OBJECTS = data.o main.o io.o
project1: $(OBJECTS)
        cc $(OBJECTS) -o project1
data.o: data.c data.h
        cc -c data.c
main.o: data.h io.h main.c
        cc -c main.c
io.o: io.h io.c
        cc -c io.c
You can also specify a macro's value when running make, as follows:
make 'OBJECTS=data.o newio.o main.o' project1
This overrides the value of OBJECTS in the Makefile

Special Macros
CC:
Contains the current C compiler. Defaults to cc.
CFLAGS:
Special options which are added to the built-in C rule.
$@:
Full name of the current target.
$?:
A list of files for current dependency which are out-of-date.
$<:
The source file of the current (single) dependency.

External Links:
http://www.eng.hawaii.edu/Tutor/Make/1.html
http://www.opussoftware.com/tutorial/TutMakefile.htm