Wednesday, July 24, 2013

Linux Brightness Issue

I have been a dedicated follower of Fedora for the past one year and it has been good but with one serious problem - brightness issue!!. A few laptops(mine included) seems to be having this problem with some variations. The problem of mine is that whenever i try to change the brightness using the brightness buttons in the keyboard or the brightness slider in linux(KDE or Gnome) the OS Freezes. No matter what keystrokes you try it doesnt give you a chance. I had been having this problem for sometime and then i found the solution. Here are the steps to glory

1.Open Console and go into root
2.Open /etc/default/grub file and add the kernel Parameters - splash acpi_backlight=vendor acpi_osi=Linux
3.Save the file and Close it
4.Execute the command (This will persist the setting from /etc/default/grub into /boot/grub2/grub.cfg) -- grub2-mkconfig -o /boot/grub2/grub.cfg
5.Open the file /boot/grub2/grub.cfg and check if you can see the parameters
6.Reboot

7.Test the kernel parameters are still there using the following command - cat /proc/cmdline
Note : Using tools like grubcustomizer will overwrite the kernel parameters. So make sure the parameters are there anytime you play around with tools that change the grub configuration. Once i changed the grub countdown timeperiod and the parameters were gone. I had to put them back with the above 7 steps.

I have tested this with Fedora 19 on Dell N5010. Iam quite sure it would work on other laptops having the same issue. Jus try this and lemme know

Hi From Bloglilo

From today im gonna try out this new blogging client bloglilo. Hope it works fine!!

Monday, April 8, 2013

UUID in Mule ESB

Most of the times in enterprise applications its required to trace the exection of a transaction so each transaction is given a unique identifier of its own. This unique identifier can be java.util.UUID. I have used this unique identifier in Mule ESB in the following way. I assign it to local variable and then use it as an identifier for the transaction and log it at every point with the normal logger output. This helps me trace the transaction.


Wednesday, January 2, 2013

NoSQL Database MongoDB

I have been spending quite sometime with the NoSQL database-MongoDB, should say it offers quite a punch. Shifting my tthinking from the relational model of the database to the document model was quite tough at first but as i progressed with the DB patterns it was easier to understand the document model and had a much less learning curve compared to RDBMS. With all the buzz going around on NoSQL Vs RDBMS, the coming days will be interesting to watch in the integration space and how these NoSQL database get supported in vendor COTS products. The story of how the map-reduce algorithm came from the Roman period was amazing. I didnt like using the command line tool hence i started using the UMongo database client in my windows machine. Im in the process of trying to use the MongoDB component in apache camel.


Tuesday, December 18, 2012

Schema Validation in Mule ESB

The following sample shows how to perform a schema validation in mule ESB



I have used an XSD validation in this example here.

Set Payload in Mule ESB

Using the setPayload transformer one can modify the payload of the incoming message.



Testing Restful Webservice using Apache Jmeter


There are a lot of blogs around building restful webservice using jax-rs. Here are the steps to test restful webservice using Apache Jmeter. 

Create HTTP Request defaults with the location where the service is running. In my case its localhost:10021


 Create HTTP Header manager with the type of content used in the service call. In my case its xml


Create the HTTP request. In my case its a simple get request.


Once its over, adjust the test thread according to your needs and run the test.

Create Bootable Linux USB

As i dont have a CD/DVD Drive anymore, i had to use this unetbootin software to create a bootable Linux USB. Works like a charm!!.



KDE Training and Tutorials

Being a recent convert to KDE(I dont hate Gnome but i figured its not for me anymore :() i was searching for a nice youtube playlist that could educate me on the latest KDE features. Luckily i found this series and it was really helpful.

Mule ESB flow involving JMS

The following is a integration flow involving jms and file endpoints. This flow listens for messages from a jms queue - kiran. Once it receives a message, it is forwarded to the 'All' flow control pattern which forwards the message to a File location as well to another jms queue - kumar. I have used ActiveMQ as the messaging broker. The following is the flow with its details. Jmeter as mentioned here can be used to test this flow.









Apache Jmeter Configuration For Testing Apache ActiveMQ

One of my favourite testing tool is Apache Jmeter(Wouldnt give up soap UI too!!). My project involved sending test messages to ActiveMQ from Apache Jmeter. I had to figure out how to make Jmeter work for ActiveMQ. After sometime of going through some pages from google i found the way to make it work. Here are the steps

1. Copy activemq-all-5.7.0.jar from activeMQ installation and drop it in C:\apache-jmeter-2.8\lib.

2. Create a project in Jmeter with the following configuration


3. Check the ActiveMQ console configuration for the queue. The queue 'kiran' has no messages enqueued in it.


4. Run the test plan in jmeter and check the ActiveMQ console again. You can see the messages enqueued.





That's how you can make Jmeter work for testing ActiveMQ!!

Tuesday, November 20, 2012

Tabs for Putty - SuperPutty

Working on different sessions on putty is always difficult if you're on production environment. SuperPutty is an organized tabbed interface for putty. A must-have for developers and adminstrators.

Best Tool for Editing PDF forms

I've been searching for a tool that can save the form data in PDF's. After trying out certain products i ended up with PDF-XChange Viewer. This is a lightweight tool and does what it says. A very good find indeed!!.

Monday, October 1, 2012

Took a Git Training

Completed 2-day training on git essentials from https://tutsplus.com/course/git-essentials/. Everyone looks at version control management/source code management as an important part of the project but never invests time on how to use these tools effectively. Its been a 'learn as you use' tool. I have used Apache SVN for like 3 years and i wouldn't say I'm an expert on it. All i have done is check in and checkout. Taking a formal training on git has enabled me to exploit the features of git which otherwise would be left untouched.

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