Sunday, September 11, 2011

Network connection problem in windows 7

I had been having problems with windows 7 as it was taking so much time to connect to the network(upto 15 mins…way more than what it used to be). So I finally made up my lazy mind to see whats wrong. I ran the troubleshoot test on the network connections but it didn’t solve the problem. I noticed the following

Diagnostics policy service is not running. After some googling I found out that system restore could solve the issue..nope that’s not possible any alternatives ????

Program Manager_2011-09-11_01-24-00

Finally from a forum I found out that removing all the network adapters and then rebooting the system will solve the problem. If by mistake you remove the network drivers you will have to reinstall it. 

Diagnostic Policy Service start, stops - Google Chrome_2011-09-11_14-32-53

Luckily the above method solved my problem. The network adapters got created again after I rebooted and things were happy and all good again. Hope it helps!!!!

Wednesday, August 3, 2011

A great GUI for keytool-keytool-iui

I had always used the command line arguments while creating the keystores, creating self signed certificates, importing the trusted certificates till yesterday when I thought enough is enough and started googling for “best gui keytool”. Options came up and I found this beauty I should say, the work of some “smart person”. Now there is no more complaining about using keytool. Here is a video which explains how to use it.

Digitally signing JAR files using KeyTools IUI

Tuesday, August 2, 2011

Useful book on linux commands

Being a daily user of linux, I can always find my way out but sometimes remembering the commands with arguments is quite difficult. Ofcourse there is google but nothing helps like a command book or a cheat sheet. Came across this book which always works out for me. Searching for keywords in this book just works out for me.

Ubuntu Linux Toolbox: 1000+ Commands for Ubuntu and Debian Power Users by Christopher Negus and Francois Caen

Using wireshark with remote capturing

I have been using wireshark lately in my project. With a lot of issues coming up on the firewall port openings wireshark is a very useful software which can avoid hours of wastage. Came across a blog which has used wireshark wisely.

http://blog.nielshorn.net/2010/02/using-wireshark-with-remote-capturing/

Thursday, July 28, 2011

Using Jarscan

Did you know there’s a tool that can help you search through JAR files to find Java classes or packages? I’ve been using it for years and I am often surprised that so few Java developers have it in their toolbox. Of course, it’s very handy for resolving those pesky NoClassDefFoundError and ClassNotFoundExceptions, but my favorite use case is to find the location of a class and JAR file on my hard-drive so I can decompile it to understand what some vendor’s proprietary code is actually doing behind the scenes. I know vendors frown on this, but whatever; I’ve got a job to do.

The tool is called jarscan and you can read more about it or download it here.

It’s just a little jar file that executes as a command-line program. On my Windows virtual machines, I put the jar file in C:\JarScanner\

If you’d like to find a Java class called “SystemProperty” somewhere in the “C:\IBM\WebSphere\PortalServer” directory. You would execute the following command:

java -jar C:\JarScanner\jarscan.jar -dir c:\IBM\WebSphere\PortalServer -class SystemProperty

That command would then search through every jar file that it can find in the PortalServer directory, including sub-directories. If it finds the specified class file, it reports the location and name of the Jar file containing the class. You can also search for packages, not just class files.

For Help, type the following command:

java -jar C:\JarScanner\jarscan.jar -help

How to change port numbers in freeradius

The port numbers for freeradius is configured in the file radiusd.conf. Leaving it as 0 will pick the ports for auth and acct from /etc/services. I guess the values would be 1645/1646. You can manually set the values to 1812 and 1813 as shown in the below screenshots and restart the freeradius server. It just works!!


2011-07-22_11-56-02.png


2011-07-22_11-56-10.png


From /etc/services


2011-07-22_11-57-06.png

How to increase the log level in weblogic 11g

To increase the log level just login to the weblogic console and select the server from the environment and goto the logging tab. Here you can find options to increase the log level.

I have set the log level to debug- the most talkative



Disable plugins in Google chrome

I tried to disable the unnecessary plugins filling up my system memory and came across this site which tells you on how to do it
How To Disable Individual Plug-ins in Google Chrome
Disabling the plugins in chrome is not as straight forward as in firefox.

Tuesday, July 19, 2011

Find out the weblogic version from domain


To find out the weblogic version you can just open the config.xml from the domain folder and see the weblogic version