Finally the war is over and the peace is everywhere. people ride in the train
without the fear of another suside bomb attack. The evil leader is dead and he is
not comming back , the sri lanka is safe for another 100 years of time . Every
languate speaking ppl can live in peace for a long time. Kids are learning about the
history of this dirty war , so never will consider him as a hero and never follow
a character like him.
Tamil ppl also got the right to say their decision on a election. To vote to a
leader that they are believe. But something sad was happened ,a war criminal
was elected from the ppl's vote. :( too sad but nothing to do ! I have to say him
a minister but I'm telling him a war criminal continiously , because he commit
the crimes against the human beings.
This is the picture of him .his name can begin with these prifex ,
Mr. , War Criminal. , Murder. or Killer. like this
Yes his picture is this :
I think the our UMP Opposite side learder Mr. Ranil have a very good subject to
talk and critize these days instead of going other countries and make some international trouble against our country.
So why this happened ???? well I know the reasons now. But nothing we can do.
But it's very hate to tell that A WAR CRIMINAL IS SITTING AT THE PARLIMENT.
the tamil ppl on that area are new to a election, they can't underestand what
are the dirty chain behind the politics. Few tamil ppl are talking freely about
their politics ,they don't likes to critize. Some tamil ppl can't participate
to the election due to their "kulaya" . what the hell , infront of the law
everyone is same no matter what is you'r so called "Kulaya" .
tamil as a set of ppl who got a beatiful cluture and they really a beatiful ppl
that I really belive. There are so many valuable things in tamil cluture. Most of
them are come with the hindu tradition , they most of them are vegeterians , I'm
learning @ bambalapitiya day I go there for a class I eat only from a vegeterian
shop. But why the hell they can't underestand that a war criminal inside the
parliment to represent them. Well this is a question not a comment , I asking this
from all the tamil ppl why the hell you elect a war criminal into the parliment ,
and the most sad thing is one of a tamil person that I knew told that in his
web that he unable to participate to the election due to his low "Kulaya" , so
so sad ! what is the better of a war criminal than a person who have a low "kulaya" ???? Please tell me that ? There is nothing better in a war criminal
but most of the ppl in sri lanka even our hornable president is Unfortunate to
tell him a Minister because we had to not because we likes to.
I'm again it's too sad to tell this again and again a WAR CRIMINAL INSIDE THE PARLIMENT.
Monday, June 1, 2009
Saturday, January 10, 2009
Why you not somebody's boy friends yet ?
Well I totally agree that romance is a natural human relationship
well most of the Youth ppl are loving that relationship. But some
are really not. May be that's due to the ate of biological hormone
execution in their bodies , so I think it also a NATURAL thing.
Well we all love the nature, what we got from the nature is really
a gift for me. And I'm never going to say no thanks , thus I can't
and I won't.
Well I am a undergraduate student of BIT ( www.bit.lk) and I am 23
years old, so everybody asking from me why you not some body's boy
friend ? well I also have to ask something back from them why you
not some body's girl-friend(if female ) or boyfriend(if male).
and I want to clearly say them something , hay "You don't expect me
to get married before you marry ! ha ha ha ha ha !"
well I clearly have a question form them , why you expect and search
about someone's marriage or the relationship if you even don't have a one
yet ! The truth and the naked answer is you expecting others to get married
and see them in trouble. That means all the married ppl are in trouble.
Anyway there is a truth thing , someday we should marry but that day
is not today. well for me I am a undergraduate yet and I expect my
academic life more than this. well for somebody it's oky. But that's
my life.
So I think I am doing the correct thing , I'm on the good side and
the ppl who are talking like that in the evil side at all.
anyway those poor ppl cannot talk directly with somebody also !
I'm feeling sad about those guys and girls man !
well most of the Youth ppl are loving that relationship. But some
are really not. May be that's due to the ate of biological hormone
execution in their bodies , so I think it also a NATURAL thing.
Well we all love the nature, what we got from the nature is really
a gift for me. And I'm never going to say no thanks , thus I can't
and I won't.
Well I am a undergraduate student of BIT ( www.bit.lk) and I am 23
years old, so everybody asking from me why you not some body's boy
friend ? well I also have to ask something back from them why you
not some body's girl-friend(if female ) or boyfriend(if male).
and I want to clearly say them something , hay "You don't expect me
to get married before you marry ! ha ha ha ha ha !"
well I clearly have a question form them , why you expect and search
about someone's marriage or the relationship if you even don't have a one
yet ! The truth and the naked answer is you expecting others to get married
and see them in trouble. That means all the married ppl are in trouble.
Anyway there is a truth thing , someday we should marry but that day
is not today. well for me I am a undergraduate yet and I expect my
academic life more than this. well for somebody it's oky. But that's
my life.
So I think I am doing the correct thing , I'm on the good side and
the ppl who are talking like that in the evil side at all.
anyway those poor ppl cannot talk directly with somebody also !
I'm feeling sad about those guys and girls man !
Thursday, January 8, 2009
hack your ZTE 831 ADSL router
hi all , would you wonder what is the actual operating system inside your
ADSL router ?
well most probablly the answer is the linux ! wonder ? why it runs on a powerful 32-bit processor.
Don't be fan too much. That's it.
let me show you with the evidance ,
first of all you needs to log into the router using your telnet program , just click windows key and R and
on the run , just type telnet 192.168.1.1 , the default router address for ZTE 831
so then you will see a prompt asking the login name and the password , and the ZTE corp welcome message is also there.
try the those commands , cat /proc/meminfo for memory information and cat /proc/cpuinfo for cpu info ,
you can see that ZTE 831 device is on a 32 bit CPU core.
he he the cat command they saves that command on the /bin there , oky lets hack into deep.
the fun part is as the cat command , all the things inside the /bin are executing , so therefore : is there is sh
shell in that directory we can go to the shell of this router operating system. he he.So why don't we give up
a try ! ?
here .
now the fun part is this , sometimes those SLT engineers are 1000 talks about their SLT icons inside that web login of the router.I directly ask from them , but he said that it's an company secret. Well it's time to hack where it was. well if they are using the linux and GNU , they should open the source code and the binary versions too.
he he.
anyway this is fun , there is a directory called
/webs
see this pic , all are there. he he he he he he he .
Oky guys enoughf fun for today.
Let me go to the sleep with the laughf ! anyway they have to open the source code . he he. But sometimes never
mind ! may be not , he he he he he !
-- good internet user
ADSL router ?
well most probablly the answer is the linux ! wonder ? why it runs on a powerful 32-bit processor.
Don't be fan too much. That's it.
let me show you with the evidance ,
first of all you needs to log into the router using your telnet program , just click windows key and R and
on the run , just type telnet 192.168.1.1 , the default router address for ZTE 831
so then you will see a prompt asking the login name and the password , and the ZTE corp welcome message is also there.
try the those commands , cat /proc/meminfo for memory information and cat /proc/cpuinfo for cpu info ,
you can see that ZTE 831 device is on a 32 bit CPU core.
he he the cat command they saves that command on the /bin there , oky lets hack into deep.
the fun part is as the cat command , all the things inside the /bin are executing , so therefore : is there is sh
shell in that directory we can go to the shell of this router operating system. he he.So why don't we give up
a try ! ?
here .
now the fun part is this , sometimes those SLT engineers are 1000 talks about their SLT icons inside that web login of the router.I directly ask from them , but he said that it's an company secret. Well it's time to hack where it was. well if they are using the linux and GNU , they should open the source code and the binary versions too.
he he.
anyway this is fun , there is a directory called
/webs
see this pic , all are there. he he he he he he he .
Oky guys enoughf fun for today.
Let me go to the sleep with the laughf ! anyway they have to open the source code . he he. But sometimes never
mind ! may be not , he he he he he !
-- good internet user
Thursday, December 11, 2008
Your First program in J2ME
a little introduction to the J2ME
well it stands for the java 2 Mobil Edition. There are other two versions , J2SE and J2EE.
However, the J2ME also runs on a virtual machine , but due to the constrains in the
hardware and software resources in the small devices ( what is J2ME target for ) , the J2ME
virtual machine is somewhat different from the J2SE and J2EE virtual machines. It's commonly
known as alias KVM ( the killobyte virtual machine ).
however today we are going to develop a simple J2ME mobil phone application. well J2ME has a
big scope than the writing just software for the mobil markert. well J2ME covers even writing
software for even your television , washing machines like these small or large size devices
that have small computing resources.( well computing resources means hardware resources like
memory storage and computing speed , and software resources like threads processes , operating
systems , libraries and so on ...) .Think this is different from the normal desktop computing environments and server computing environments(high end computing). The application
programming for these kind of devices are just normally doing with special tools , cross compilers
and simulators like software tools and in-circuit debuggers , circuit probes like hardware tools.
well that's how the software for the embedded computers are developing. But in the J2ME ,
we just use just the java compiler but with different libraries to compile it , and for testing we
are using simulators. well today J2ME simulators are compltely prefect actually have less bugs
.Trully speaking leass and leass bugs. so feel free to use them. and those simulators supports
a good amount of debugging. so it's very easy to find your bugs in your program. And the
IDE's like the Netbeans are there for free of charge to make this development more babish.
so unlike other embedded software development the J2ME is just easy.
Allright the tools like the netbeans already avilaible for you ne. Then feel free to use them. Just
go to the www.netbeans.org and download a Netbeans pack that have J2ME integraded.
Opps , before you install the netbeans you need to install the JDK 5.0 or higher. Well they
are free. Then download them and install them.
Come to the Netbeans then , here we goes.
well netbeans is a IDE , that makes the programmers life babish. Believe me you just only need
some more mouse clicks and moves to compile and run your first J2ME mobil phone application.
well first open the Netbeans.
well go to the file menu and click new project.
select mobility and MIDP application.
and then click next . and then next screen give project name , location and folder ( your choices ).
and make sure that "set as main project" and "Create Hello MIDlet" ticked. then press finish.
then compile the project using the 'build' menu 'build main project'. and run it using the 'run' menu 'run main project'
then on the simulator just laungh the midlet.
you can see "Hello World" on the simulator.
well it stands for the java 2 Mobil Edition. There are other two versions , J2SE and J2EE.
However, the J2ME also runs on a virtual machine , but due to the constrains in the
hardware and software resources in the small devices ( what is J2ME target for ) , the J2ME
virtual machine is somewhat different from the J2SE and J2EE virtual machines. It's commonly
known as alias KVM ( the killobyte virtual machine ).
however today we are going to develop a simple J2ME mobil phone application. well J2ME has a
big scope than the writing just software for the mobil markert. well J2ME covers even writing
software for even your television , washing machines like these small or large size devices
that have small computing resources.( well computing resources means hardware resources like
memory storage and computing speed , and software resources like threads processes , operating
systems , libraries and so on ...) .Think this is different from the normal desktop computing environments and server computing environments(high end computing). The application
programming for these kind of devices are just normally doing with special tools , cross compilers
and simulators like software tools and in-circuit debuggers , circuit probes like hardware tools.
well that's how the software for the embedded computers are developing. But in the J2ME ,
we just use just the java compiler but with different libraries to compile it , and for testing we
are using simulators. well today J2ME simulators are compltely prefect actually have less bugs
.Trully speaking leass and leass bugs. so feel free to use them. and those simulators supports
a good amount of debugging. so it's very easy to find your bugs in your program. And the
IDE's like the Netbeans are there for free of charge to make this development more babish.
so unlike other embedded software development the J2ME is just easy.
Allright the tools like the netbeans already avilaible for you ne. Then feel free to use them. Just
go to the www.netbeans.org and download a Netbeans pack that have J2ME integraded.
Opps , before you install the netbeans you need to install the JDK 5.0 or higher. Well they
are free. Then download them and install them.
Come to the Netbeans then , here we goes.
well netbeans is a IDE , that makes the programmers life babish. Believe me you just only need
some more mouse clicks and moves to compile and run your first J2ME mobil phone application.
well first open the Netbeans.
well go to the file menu and click new project.
select mobility and MIDP application.
and then click next . and then next screen give project name , location and folder ( your choices ).
and make sure that "set as main project" and "Create Hello MIDlet" ticked. then press finish.
then compile the project using the 'build' menu 'build main project'. and run it using the 'run' menu 'run main project'
then on the simulator just laungh the midlet.
you can see "Hello World" on the simulator.
DEV C++ the problem with the system("PAUSE")
when you are writing a console mode win32 application using DEV C++ IDE , this is the
automatically generated main method that you get.
int main(int argc, char *argv[])
{
system("PAUSE");
return EXIT_SUCCESS;
}
some strange things are there , well nothing to worry , EXIT_SUCCESS is already defined as 0 .
so it's same like you saying
return 0;
anyway , what's the hell that system("PAUSE") , well
"PAUSE" is just a dos command , you can also "dir /p" or run any dos command using like that.
Just change your main method like this and compile and run.
int main(int argc, char *argv[])
{
system( "dir /p");
system ( "PAUSE");
return EXIT_SUCCESS;
}
then you will get the directory listing like this ,
so you now know what's this strange system("PAUSE"); really means is .
what it actually doing is ,
well learning object oriented ... just write bellow simple program and see what happens .
#include
#include
using namespace std;
class A
{
public:
// the constructor
A()
{
cout<< " The constructor called " << '\n';
}
// the copy constructor
A(const A& a )
{
cout << " The copy constructor is called" << '\n';
}
~A()
{
cout << "The destructor is called "<< '\n';
}
};
void takeA(const A& a )
{
}
int main(int argc, char *argv[])
{
A a ;
// the constructor must be called.
system ( "PAUSE");
return EXIT_SUCCESS;
} // the destructor must be called.
well but the output is just like this ,
The constructor is called
Press any key to continue....
well where is the destructor call ? well my friend Press any key to continue is comes from the PAUSE dos command. If you are not sure just go to the command prompt and type PAUSE and
see what happened.
so the destructor will be called after that. But you will unable to see it unless you run this program
using the command prompt. But if you run this on the command prompt window , you will see like this . 13 Dir(s) 6,477,045,760 bytes free
G:\Dev-Cpp>main
The constructor called
Press any key to continue . . .
The destructor is called
G:\Dev-Cpp>
so that's all the magic of the system("pause") as same as system("PAUSE");
automatically generated main method that you get.
int main(int argc, char *argv[])
{
system("PAUSE");
return EXIT_SUCCESS;
}
some strange things are there , well nothing to worry , EXIT_SUCCESS is already defined as 0 .
so it's same like you saying
return 0;
anyway , what's the hell that system("PAUSE") , well
"PAUSE" is just a dos command , you can also "dir /p" or run any dos command using like that.
Just change your main method like this and compile and run.
int main(int argc, char *argv[])
{
system( "dir /p");
system ( "PAUSE");
return EXIT_SUCCESS;
}
then you will get the directory listing like this ,
so you now know what's this strange system("PAUSE"); really means is .
what it actually doing is ,
suspend your program
call the operating system
open an operating system shell (relaunches the O/S in a sub-process)
the O/S must now find the PAUSE command
allocate the memory to execute the command
execute the command and wait for a keystroke
deallocate the memory
exit the OS
resume your program
well learning object oriented ... just write bellow simple program and see what happens .
#include
#include
using namespace std;
class A
{
public:
// the constructor
A()
{
cout<< " The constructor called " << '\n';
}
// the copy constructor
A(const A& a )
{
cout << " The copy constructor is called" << '\n';
}
~A()
{
cout << "The destructor is called "<< '\n';
}
};
void takeA(const A& a )
{
}
int main(int argc, char *argv[])
{
A a ;
// the constructor must be called.
system ( "PAUSE");
return EXIT_SUCCESS;
} // the destructor must be called.
well but the output is just like this ,
The constructor is called
Press any key to continue....
well where is the destructor call ? well my friend Press any key to continue is comes from the PAUSE dos command. If you are not sure just go to the command prompt and type PAUSE and
see what happened.
so the destructor will be called after that. But you will unable to see it unless you run this program
using the command prompt. But if you run this on the command prompt window , you will see like this . 13 Dir(s) 6,477,045,760 bytes free
G:\Dev-Cpp>main
The constructor called
Press any key to continue . . .
The destructor is called
G:\Dev-Cpp>
so that's all the magic of the system("pause") as same as system("PAUSE");
Subscribe to:
Posts (Atom)