Posts

How to enable remote debugging JBoss 6

If you look into the standalone.bat/.sh you will find detailed usage. standalone.bat --debug this will start your JBoss server in standalone mode listening on port 8787. If you want override the port you can do that with simpliy adding the number at the end. standalone.bat --debug 8888

JBoss only works on localhost:8080

Image
As I was playing around with JBoss 6 and I found that by default it only binds to localhost. ie.: If you type in your machine's name and port into the browsers address bar ("http://machine:8080") it won't respond. To make this work you need to add the "-b yourip" parameter on startup. For example on windows it would look like this standalone.bat -b 192.168.1.64 You can also configure this in the standalone.xml You can also find some further reading in the documentation .

Where is the Microsoft.Cpp.Win32.user.props file on Windows XP?

The reason why you landed on this page is because you found out that the global Tools/Options/Projects and Solutions/VC++ Directories capability has disappeared from Visual Studio 2010 and you need to locate Microsoft.Cpp.Win32.user.props file to add some directories to all of your projects. I found it here: C:\Documents and Settings\%USERNAME%\Local Settings\Application Data\Microsoft\MSBuild\v4.0

GIMP 2.6 ghost lines appear with Wacom Bamboo Pen

When you try to draw with the pen it appears that GIMP miss reads the coordinates and creates horizontal and vertical ghost lines. This has been reported as a bug here. Thanks to Aapo Rantalainen there is a bugfixed version available at his PPA to get it, just follow the advice given at bug report page. Procedure: 1. Remove GIMP with Software Center 2. Open Terminal and type the following: sudo add-apt-repository ppa:aapo-rantalainen/gimp26-noghostline sudo apt-get update sudo apt-get install gimp

Wacom Banboo Pen on Xubuntu 11.10

To get the Bamboo Pen to work on Xubuntu 11.10 all you have to do is to follow the advice given on this page: http://linux.goeszen.com/how-to-install-the-wacom-bamboo-on-linux.html Make sure that you rebuild the kernel module every time you upgrade your kernel.

CentOS 6.0 minimal install networking vmware

The other day I've installed CentOS 6.0 i386 and found that I have no network connection. Quick google search told me that it has got turned off by default. So to enable it one needs to do the following. Edit /etc/sysconfig/network-scripts/ifcfg-eth0 and add ONBOOT="yes" BOOTPROTO="dhcp" . Save then service network restart and network is up and running.

wc -l on windows

So you have a set of txt files that contain data and you would want to count the number of lines/records in those files. Naturally you would use wc -l, but then you realise that you are on windows. Here is one solution that can be used: for /f %g in ('dir /b *.txt') do type %g | find /v /c "ZZZZCCCC" Assuming that you knnow for sure that there is no line that would contain the string "ZZZZCCCC".