In last decade you may frequently heard of this type of softwares like file encrypter , zipper, file protect , folder protect, blah blah ...
Here comes the next one :P
Who need this ?
Professionals with most important files can use this to store in enterprise database ( remember mysql is enterprise )
Teens who cant keep SOME files (I meant files we used to keep Hidden ;) ) open to naive users or from family in file system can retreive the file whenever required :P
Throw away technique of zipping or writing it in cd and renaming this kind of files and so on ...
To maintain a collection of your confidential work where you actually not intend to keep in file system
What do I need to do so ?
install
i) free and open source Mysql database
ii) java runtime ( nowadays it can be seen next to kernel in every system )
iii) Terminal
Well I have setup whats next ?
Now download my java code from here and run the file
To run this application from the command line without Ant, try:
java -jar FileSecure.jar
Login into your Mysql with username password and database name ( this ia already configured by you during installation of mysql)
According to the Menu displayed do the seletion
Remember Hardest thing is:
i) Working in console environment
ii) Database is needed
iii) You have to upload and download each files one by one
iv) You must know the absolute path of file
v) even if ur family knows ur password they cant see files you frequently see ;) since its in blob format as records :P
It contains lump of bugs please report it immediately ....
Saturday, October 31, 2009
Friday, October 30, 2009
abc to qwerty Messaging
Is your hands sore of messaging on whole day with your abc mobile keypad ?
Are you in need of tracking all your messages your loved ones send with some database ?
Need of a online chatting environment for sms ?
Here you are ,
All you need is :
i) Any Linux OS
ii) Mysql database to store the message
iii) SMSD to track and send message
iv) gnokii Suite
Installing Linux :
I guess every one knows how to install linux in your desktop , if not Check this link
Installing Mysql database :
try sudo apt-get install mysql
or
directly from synaptic
Installing gnokii and smsd :
sudo apt-get install gnokii
and then
smsd as sudo apt-get install gnokii-smsd-mysql
Now you have setup a base :D
Step 1:
Configuring gnokii:
Connect your mobile via datacable or bluetooth to pc
create a file called /home/.gnokiirc
sudo gedit /home/.gnokiirc
add this lines to the file if you have Nokia mobile
[global]
port = /dev/ttyACM0
model = series40
initlength = default
connection = dku2libusb
use_locking = no
serial_baudrate = 19200
smsc_timeout = 10
[gnokiid]
bindir = /usr/local/sbin/
[connect_script]
TELEPHONE = +919xxxxxxxxx
[disconnect_script]
[logging]
debug = on
rlpdebug = off
xdebug = off
replace phone number field with yours
if you are not Nokia user try this link to configure your mobile
save the file
Open terminal and type sudo gnokii ---identify
it must say something like this
GNOKII Version 0.6.26
LOG: debug mask is 0x1
Config read from file /home/karthik/.gnokiirc.
phone instance config:
model = series40
port = /dev/ttyACM0
connection = dku2libusb
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 1
sm_retry = 0
Connecting
Serial device: opening device USB
Ignoring extra header, type 171, length 5
Found FBUS interface
Can't set configuration: -16
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00 |
Message received: 0x1b / 0x003e
01 39 00 08 00 01 58 38 00 31 56 20 30 35 2e 38 | 9 X8 1V 05.8
30 0a 31 38 2d 31 32 2d 30 38 0a 52 4d 2d 34 39 | 0 18-12-08 RM-49
35 0a 28 63 29 20 4e 6f 6b 69 61 20 20 20 20 20 | 5 (c) Nokia
20 20 20 20 20 20 20 0a 4d 48 00 00 00 00 | MH
Received message type 1b
model length: 6
Received model RM-495
Identifying...
Message sent: 0x1b / 0x0005
00 01 00 00 41 | A
Message sent: 0x1b / 0x0006
00 01 00 07 01 00 |
Message received: 0x1b / 0x001a
01 39 00 01 00 01 41 14 00 10 33 35 34 32 32 33 | 9 A 354223
30 33 30 30 33 39 33 31 37 00 | 030039317
Received message type 1b
Received imei 354223030039317
Message received: 0x1b / 0x003e
01 39 00 08 00 01 58 38 00 31 56 20 30 35 2e 38 | 9 X8 1V 05.8
30 0a 31 38 2d 31 32 2d 30 38 0a 52 4d 2d 34 39 | 0 18-12-08 RM-49
35 0a 28 63 29 20 4e 6f 6b 69 61 20 20 20 20 20 | 5 (c) Nokia
20 20 20 20 20 20 20 0a 4d 48 00 00 00 00 | MH
Received message type 1b
Received revision V 05.80
model length: 6
Received model RM-495
IMEI : 354223030039317
Manufacturer : Nokia
Model : RM-495
Product name : RM-495
Revision : V 05.80
Serial device: closing device
Step 2:
Then move on to smsd
Configure smsd very simple as follows in this link
replace this line as
mysql -u root -p your-db-password smsgw < /usr/share/doc/gnokii-smsd-mysql/sms.tables.mysql.sql
if you get access denied error
same thing in replace the sms line as below
and start the sms daemon
/usr/sbin/smsd -u root -d smsgw -c localhost -m mysql -p your-db-password -b IN -f /var/log/smsdaemon.log
Now all inbox and outbox messages will be in
smsgw database as inbox and outbox table :D
insert a tuple in outbox table to message to your friends
as
insert into outbox (number,text) values('+91987654321', 'message from sms daemon ;-)');
enjoy messaging by inserting values into database as above :)
to be continued ..........
Are you in need of tracking all your messages your loved ones send with some database ?
Need of a online chatting environment for sms ?
Here you are ,
All you need is :
i) Any Linux OS
ii) Mysql database to store the message
iii) SMSD to track and send message
iv) gnokii Suite
Installing Linux :
I guess every one knows how to install linux in your desktop , if not Check this link
Installing Mysql database :
try sudo apt-get install mysql
or
directly from synaptic
Installing gnokii and smsd :
sudo apt-get install gnokii
and then
smsd as sudo apt-get install gnokii-smsd-mysql
Now you have setup a base :D
Step 1:
Configuring gnokii:
Connect your mobile via datacable or bluetooth to pc
create a file called /home/.gnokiirc
sudo gedit /home/.gnokiirc
add this lines to the file if you have Nokia mobile
[global]
port = /dev/ttyACM0
model = series40
initlength = default
connection = dku2libusb
use_locking = no
serial_baudrate = 19200
smsc_timeout = 10
[gnokiid]
bindir = /usr/local/sbin/
[connect_script]
TELEPHONE = +919xxxxxxxxx
[disconnect_script]
[logging]
debug = on
rlpdebug = off
xdebug = off
replace phone number field with yours
if you are not Nokia user try this link to configure your mobile
save the file
Open terminal and type sudo gnokii ---identify
it must say something like this
GNOKII Version 0.6.26
LOG: debug mask is 0x1
Config read from file /home/karthik/.gnokiirc.
phone instance config:
model = series40
port = /dev/ttyACM0
connection = dku2libusb
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 1
sm_retry = 0
Connecting
Serial device: opening device USB
Ignoring extra header, type 171, length 5
Found FBUS interface
Can't set configuration: -16
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00 |
Message received: 0x1b / 0x003e
01 39 00 08 00 01 58 38 00 31 56 20 30 35 2e 38 | 9 X8 1V 05.8
30 0a 31 38 2d 31 32 2d 30 38 0a 52 4d 2d 34 39 | 0 18-12-08 RM-49
35 0a 28 63 29 20 4e 6f 6b 69 61 20 20 20 20 20 | 5 (c) Nokia
20 20 20 20 20 20 20 0a 4d 48 00 00 00 00 | MH
Received message type 1b
model length: 6
Received model RM-495
Identifying...
Message sent: 0x1b / 0x0005
00 01 00 00 41 | A
Message sent: 0x1b / 0x0006
00 01 00 07 01 00 |
Message received: 0x1b / 0x001a
01 39 00 01 00 01 41 14 00 10 33 35 34 32 32 33 | 9 A 354223
30 33 30 30 33 39 33 31 37 00 | 030039317
Received message type 1b
Received imei 354223030039317
Message received: 0x1b / 0x003e
01 39 00 08 00 01 58 38 00 31 56 20 30 35 2e 38 | 9 X8 1V 05.8
30 0a 31 38 2d 31 32 2d 30 38 0a 52 4d 2d 34 39 | 0 18-12-08 RM-49
35 0a 28 63 29 20 4e 6f 6b 69 61 20 20 20 20 20 | 5 (c) Nokia
20 20 20 20 20 20 20 0a 4d 48 00 00 00 00 | MH
Received message type 1b
Received revision V 05.80
model length: 6
Received model RM-495
IMEI : 354223030039317
Manufacturer : Nokia
Model : RM-495
Product name : RM-495
Revision : V 05.80
Serial device: closing device
Step 2:
Then move on to smsd
Configure smsd very simple as follows in this link
replace this line as
mysql -u root -p your-db-password smsgw < /usr/share/doc/gnokii-smsd-mysql/sms.tables.mysql.sql
if you get access denied error
same thing in replace the sms line as below
and start the sms daemon
/usr/sbin/smsd -u root -d smsgw -c localhost -m mysql -p your-db-password -b IN -f /var/log/smsdaemon.log
Now all inbox and outbox messages will be in
smsgw database as inbox and outbox table :D
insert a tuple in outbox table to message to your friends
as
insert into outbox (number,text) values('+91987654321', 'message from sms daemon ;-)');
enjoy messaging by inserting values into database as above :)
to be continued ..........
Friday, October 23, 2009
Simple chess
Is it too boring ..?
Then try my web chess , a simple php and mysql based application with simple GUI .
(guess you Know we need two people to play chess )
Try the link from anywhere around the world and choose opponent's from every where .
Have Fun :)
Then try my web chess , a simple php and mysql based application with simple GUI .
(guess you Know we need two people to play chess )
Try the link from anywhere around the world and choose opponent's from every where .
Have Fun :)
Remote car on 'C'
remote car on c
/** This is a basic hardware program in c interfacing a remote car
here consider a basic table
lpt port has pin 2-9 for data we can send data to it by calling
here we use only data pins 2,3,4,5 only
syntax : outport(port_address,number);
port address is 0×378 for lpt 2 and 0×3bc for lpt 1
well now move towards the code concentrate on lowest 4 bits
number data operation
1 0001 right steer
2 0010 left steer
4 0100 forward
8 1000 backward
5 0101 right steering + forward (right turn forward)
10 1010 left steering + backward (left turn backward)
6 0110 right steering + backward (right turn back)
9 1001 left steering + forward(left turn front)
this is the logic of code
*/
#include
#include
#include
#include
void circle() //to move in circular path
{int i=0;
while(!getch())
{
outport(0×3bc,5); // 5 = 0101 means on the right and on the forward
}
}
void rectangle()
{
int i=0;
coutl;cin>>b;
while(!getch())
{
outport(0×3bc,4); // forward
i++;
delay(1000*b);
outport(0×3bc,5); // right steer
delay(1000);
outport(0×3bc,4); // forward
delay(1000*l);
}
}
void zigzag()
{
while(!getch())
{
outport(0×3bc,5); //right forward
delay(3000);
outport(0×3bc,9); // left forward
delay(3000);
}
}
void manual()
{char c=’a';
while(c!=’x')
{
clear();
cout<<endl<<endl<<" use move keys for direction 'x' to exit";
c=getch();
if(c=='^[[A')
{
outportb(0x3bc,1);
delay(1000);
}
else if(c=='^[[B')
{
outport(0x3bc,4);
}
else if(c=='^[[C')
{
outportb(0x3bc,2);
delay(1000);
}
else if(c=='^[[D')
{
outportb(0x3bc,8);
delay(1000);
}
}
}
void manual(char choice, int time) // oveloaded fn for creative
{char c;
c=choice;
while(c!='x')
{
clear();
if(c=='^[[A')
{
outportb(0x3bc,1);
delay(time*1000);
}
else if(c=='^[[B')
{
outport(0x3bc,4);
delay(time*1000);
}
else if(c=='^[[C')
{
outportb(0x3bc,2);
delay(time*1000);
}
else if(c=='^[[D')
{
outportb(0x3bc,8);
delay(time*1000);
}
}
}
void creative()
{
char str[20];
int i=0,n[20];
while(str[i]!='x')
{
coutstr[i];
coutn[i];
i++;
}
i=0;
while(str[i]!=’x')
{
manual(str[i],n[i]);
}
}
void automatic()
{
clear(); int g,h;
cout<<" enter 1 to circle "<<endl<<" 2 to rectangle move"g;
if(g==1)
{
circle();
}
else if(g==2)
{
rectangle();
}
else if(g==3)
{
zigzag();
}
else if(g==4)
{
creative();
}
}
void clear()
{
int n=0;
while(n<300)
{
cout<<endl;
n++;
}
}
void menu()
{
clear(); int ch;
cout<<" 1 for manual"<<endl<<" 2 for automatic "ch;
if(ch==1)
{
manual();
}
else if(ch==2)
{
automatic();
}
}
/* now its time to open your car’s remote
step 1: find the wires which goes for right ,left forward backward
step 2: attach lpt ports pin 2 to right 3 to left 4 to forward 5 to backward and ground to pin 23
warning ! remove external batteries from remote which may leak at times
step 3: run this code and enjoy racing !
thank you !
by karthik selvakumar B
mail bugs to karthikselvakumar@tce.edu
*/
/** This is a basic hardware program in c interfacing a remote car
here consider a basic table
lpt port has pin 2-9 for data we can send data to it by calling
here we use only data pins 2,3,4,5 only
syntax : outport(port_address,number);
port address is 0×378 for lpt 2 and 0×3bc for lpt 1
well now move towards the code concentrate on lowest 4 bits
number data operation
1 0001 right steer
2 0010 left steer
4 0100 forward
8 1000 backward
5 0101 right steering + forward (right turn forward)
10 1010 left steering + backward (left turn backward)
6 0110 right steering + backward (right turn back)
9 1001 left steering + forward(left turn front)
this is the logic of code
*/
#include
#include
#include
#include
void circle() //to move in circular path
{int i=0;
while(!getch())
{
outport(0×3bc,5); // 5 = 0101 means on the right and on the forward
}
}
void rectangle()
{
int i=0;
coutl;cin>>b;
while(!getch())
{
outport(0×3bc,4); // forward
i++;
delay(1000*b);
outport(0×3bc,5); // right steer
delay(1000);
outport(0×3bc,4); // forward
delay(1000*l);
}
}
void zigzag()
{
while(!getch())
{
outport(0×3bc,5); //right forward
delay(3000);
outport(0×3bc,9); // left forward
delay(3000);
}
}
void manual()
{char c=’a';
while(c!=’x')
{
clear();
cout<<endl<<endl<<" use move keys for direction 'x' to exit";
c=getch();
if(c=='^[[A')
{
outportb(0x3bc,1);
delay(1000);
}
else if(c=='^[[B')
{
outport(0x3bc,4);
}
else if(c=='^[[C')
{
outportb(0x3bc,2);
delay(1000);
}
else if(c=='^[[D')
{
outportb(0x3bc,8);
delay(1000);
}
}
}
void manual(char choice, int time) // oveloaded fn for creative
{char c;
c=choice;
while(c!='x')
{
clear();
if(c=='^[[A')
{
outportb(0x3bc,1);
delay(time*1000);
}
else if(c=='^[[B')
{
outport(0x3bc,4);
delay(time*1000);
}
else if(c=='^[[C')
{
outportb(0x3bc,2);
delay(time*1000);
}
else if(c=='^[[D')
{
outportb(0x3bc,8);
delay(time*1000);
}
}
}
void creative()
{
char str[20];
int i=0,n[20];
while(str[i]!='x')
{
coutstr[i];
coutn[i];
i++;
}
i=0;
while(str[i]!=’x')
{
manual(str[i],n[i]);
}
}
void automatic()
{
clear(); int g,h;
cout<<" enter 1 to circle "<<endl<<" 2 to rectangle move"g;
if(g==1)
{
circle();
}
else if(g==2)
{
rectangle();
}
else if(g==3)
{
zigzag();
}
else if(g==4)
{
creative();
}
}
void clear()
{
int n=0;
while(n<300)
{
cout<<endl;
n++;
}
}
void menu()
{
clear(); int ch;
cout<<" 1 for manual"<<endl<<" 2 for automatic "ch;
if(ch==1)
{
manual();
}
else if(ch==2)
{
automatic();
}
}
/* now its time to open your car’s remote
step 1: find the wires which goes for right ,left forward backward
step 2: attach lpt ports pin 2 to right 3 to left 4 to forward 5 to backward and ground to pin 23
warning ! remove external batteries from remote which may leak at times
step 3: run this code and enjoy racing !
thank you !
by karthik selvakumar B
mail bugs to karthikselvakumar@tce.edu
*/
Eye cursor
Eye Cursor is a mobility-aided device for persons with
moderate/severe physical disabilities or chronic diseases as well as
the elderly
.
Mouse is one of the traditional method of controling a
computer. But handicap are not suitable for using mouse. Hence as a
replacement of mouse for them and easify us too in controlling our pc
we can have another method of controlling it. That is using eye’s
(pupil) motion to move cursor on screen and right and left eye wink to
make clicks around the pc’s . The plan is to make a cheaper
replacemnt of mouse hence every one gets benefited .
Main hardware parts needed are a vga camera with light
and a accelerometer , ir sensor all comes around a price of 2000 and
even gets decreased when fabricated into single hardware.
Java is used as software driver which works on set of
fractionally captured images and performs movemnet on screen
relative to pupil. And the add on features like retinal encryption is
implemented if user wants secure mode of transaction.
You can download the paper by clicking here
moderate/severe physical disabilities or chronic diseases as well as
the elderly
.
Mouse is one of the traditional method of controling a
computer. But handicap are not suitable for using mouse. Hence as a
replacement of mouse for them and easify us too in controlling our pc
we can have another method of controlling it. That is using eye’s
(pupil) motion to move cursor on screen and right and left eye wink to
make clicks around the pc’s . The plan is to make a cheaper
replacemnt of mouse hence every one gets benefited .
Main hardware parts needed are a vga camera with light
and a accelerometer , ir sensor all comes around a price of 2000 and
even gets decreased when fabricated into single hardware.
Java is used as software driver which works on set of
fractionally captured images and performs movemnet on screen
relative to pupil. And the add on features like retinal encryption is
implemented if user wants secure mode of transaction.
You can download the paper by clicking here
Saturday, October 10, 2009
Saving Private Ryan
Steven Spielberg's great movie. Rather animative or more fiction as rest of his movies , this one is a real paced movie about a war.
The movie is all about bringing back a man James Ryan from battle field to home , since rest of his brothers have dead in action .A troop of eight under Capt. Miller searches for Ryan . Every character is depicted more keenly and each one's death remembers the moment they lived before in film . Stale one is story of Ryan's remembrance of his brothers . Mass Death at sea shore and entry of battalion seems more wet .
Mysteries thing is why German troop man call's Upham( American translator under miller ) by his name before he is shot dead. Reiben's Head shot on German sniper remembers me the same thirst of revenge i felt in subramanipuram . Tasting fruits in middle of charge turns out the serious one which's needed to humorous . Same flash back trend can be viewed here. Old aged Hero Private Ryan comes back to his past war memories .
I can speak lot about the captains role. Highly responsible man open to all corporals. His response to all humorous questions from the troop soldiers states , how he value the question even from his lower grade soldier. The word FUBER is unexplained till end.
Im more impressed by the capt. Miller 's role . Exact mirror of a war at ohama beach . capt .Miller's Death makes every one mourn . Feel the real worth of every lives in war and spend a moment for them .
Saturday, October 3, 2009
Simple webpage for Ac 's
Well I have designed a website for commercial . but this is at very scratch . Just a basic elemnt. I have to build a lo on it above . Please do revieq on it. Negative feedbacks are always welcome .
This is apart for my uncle who needs a page for his own .
Click here for the Site
This is apart for my uncle who needs a page for his own .
Click here for the Site
Subscribe to:
Posts (Atom)