Thursday, June 27, 2013
Tuesday, June 4, 2013
How to start a java program without the console in windows?
Write the following code in a "bat" file. Now double click on the batch file to run the jar.
PS: replace the path of jar with your desired jar path.
AUTHOR: OBSCURE
PS: replace the path of jar with your desired jar path.
AUTHOR: OBSCURE
Monday, June 3, 2013
View PIDs and command lines of all running Java processes in Windows
The following line will shows PIDs of all running Java processes in cmd:
and to kill a process from windows cmd:
AUTHOR: OBSCURE
and to kill a process from windows cmd:
AUTHOR: OBSCURE
Sunday, June 2, 2013
Unicode characters are showing as question mark(?) instead of real value in nusoap webservice client.
Web service send correct unicode characters, but nusoap converts them to question mark(?). Solution is, adding the following lines after creating nusoap client
AUTHOR: OBSCURE
AUTHOR: OBSCURE
Tuesday, May 14, 2013
Saturday, December 29, 2012
Transferring files over SSH - SCP command
Labels:
command-line,
filetranser,
Linux,
open-ssh,
scp,
ssh,
terminal,
Ubuntu
Sunday, December 23, 2012
Saturday, December 22, 2012
Enable Hibernate in Ubuntu 12.04
In Ubuntu 12.04 and newer, hibernation has been disabled by default in policykit. To enable hibernation, you can follow official documentation here.
Before enabling hibernation, please try to test whether it works correctly by running
pm-hibernate in a terminal. The system will try to hibernate. If you are able to start the system again then you are more or less safe to add an override.To do so, start editing:
sudo gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
Paste the following lines:
[Re-enable hibernate by default] Identity=unix-user:* Action=org.freedesktop.upower.hibernate ResultActive=yes
Save and exit gedit.
Restart and hibernation is back!
Or run the following code to just reset the menu:
killall unity-panel-service
Source: How to enable hibernation?
AUTHOR: OBSCURE
Wednesday, December 5, 2012
Serial Port Communication From Java - RxTx Installation.
Want to communicate with serial port using Java? You may want to try RxTx library. It's easy to use.
To install follow the instruction below:
To install follow the instruction below:
The official RxTx binary pack is available here. The provided link will download the distro with some standard binaries (for linux 32bit, 64 bit, etc). If binaries for your specific operating system are not included, you may consider recompiling RxTx yourselves.
For a custom Win64 RxTx distro, have a look at the CloudHopper's web site.
To install it, unzip the distribution file in a temporary place and do the following copies:
- File RXTXcomm.jar should go under JDKDIR/jre/lib/ext/
- The necessary library( .so for linux, .dll for windows) should go under JDKDIR/jre/bin/
Sunday, December 2, 2012
Ambiguity problem in C++
Functions with predefined value can cause ambiguity in C++. See the example below:
If I call this like this, the first call is ok, but the second call give the ambiguous function error.
AUTHOR:
OBSCUREIf I call this like this, the first call is ok, but the second call give the ambiguous function error.
AUTHOR:
Subscribe to:
Posts (Atom)