I found a very useful site to know all ways to convert any data types.
http://www.convertdatatypes.com/
Adrian Goh foot steps...
This is a place for me to remember all the past experience I had written.
Wednesday, October 10, 2012
Tuesday, October 9, 2012
Generate header file using Javah
-Create and Build JNI application
-Open command prompt
-Change directory folder contain .class
-Type command: javah -jni <folder name>.<class name>
-Open command prompt
-Change directory folder contain .class
-Type command: javah -jni <folder name>.<class name>
Friday, July 20, 2012
admin port 4848 already used when starting Glassfish
"There is a process already using the admin port 4848 -- it probably is
another instance of a GlassFish server.
Command start-domain failed."
This problem may happen when you set a static IP address.
You need to make sure hostname should not leave blank but fill with the current hostname of your server, when configuring static IP address in network settings.
Alternative way to solve this is:
type: vi /etc/hosts
find, <your-static-ip>, and put <your-host-name> <your-host-name> after the static IP address.
then save the file, and try to start GlassFish again.
Wednesday, July 18, 2012
Set MySQL user password (Suse Linux Enterprise Server 11 terminal cannot type '(' & ')'. )
I had experience an irritating problem where Suse Linux Enterprise Server 11 terminal cant type '(' and ')' parenthesis.
If someone who know what is the cause of this problem, please comment and share with me. Thank you in advance!
So, I find another solution to solve the above problem.
Using MySQL Workbench, connecting to the server which installed mysql.
Tips (If your workbench cant connect to the server):
It is probably cause by the default privileges set in mysql.
you need to edit /etc/my.cnf
add bind-address=0.0.0.0
to allow all remote client to gain access to mysql.
Then, you can now connect to MySQL Workbench with the IP address of the MySQL server.
After connected,
Go to, edit->preferences->SQL editor (tab)->untick 'safe updates'
and reconnect using Workbench.
Finally, execute following query to change password of new installed MySQL (where parenthesis is needed!):
UPDATE mysql.user SET Password=PASSWORD('your-password') WHERE User='root';
FLUSH PRIVILEGES;
Problem Solved.
Thursday, June 14, 2012
Check domain name server address in cmd
Open command prompt, type: nslookup <http address>
Monday, May 14, 2012
How to start VirtualBox on Boot
Command:
VirtualBox --startvm <Name of Virtual Machine>
VirtualBox --startvm <Name of Virtual Machine>
Wednesday, December 21, 2011
Variable memory size
While doing complexity theory assignment of 'assignment problem',
I learn that a good program should use as less memory allocation as possible.
Following list is the range of numbers on these defined variables,
(1) unsigned char : 0 through 255
(2) unsigned short : 0 through 65 535
(3) unsigned int : 0 through 65 535
(4) unsigned long : 0 through 4 294 967 295
(1) signed char: -127 through 127
(2) signed short: -32 767 through 32 767
(3) signed int: -32 767 through 32 767
(4) signed long: -2 147 483 647 through 2 147 483 647
The list shows that unsigned char is the smallest size of variable can be assign to a number,
Meanwhile signed long variable is large size and consume most memory allocation for a number.
Subscribe to:
Posts (Atom)