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.