Posts

OpenLDAP installation and configuration.

In the openLDAP installation and configuration README I followed they were asked to install the latest version of Berkely DB. At the moment I was installing it was 4.8.26 but after installing it I was unable to up the server. [ ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1) ] error was appeared. Finally I found the reason and it worked for me. In the LDAP release notes it is stated that the most stable version of Berkely DB for openldap_2.4.21 is db-4.7.25. Then I install this version and reconfigure the LDAP server. It worked fine. Here are the full steps that I have followed. I installed it on top of the SSL. Installing Berkely db-4.7.25. Download the compatible version (for your particular LDAP version) of Berkeley DB f rom http://www.sleepycat.com/download/index.shtml gzip -d db-4.7.25.tar.gz tar xvf db-4.7.25.tar cd db-4.7.25 ../dist/configure –prefix=/usr/local/ make make install Installing TSL(I install openSSL) Dow...

Spring 3.0 Article

I have found the following slide show a spring 3.0 is very much interesting and explain most of the features it has in new release. http://www.slideshare.net/sbrannen/whats-new-in-spring-30-2560016 What's New in Spring 3.0 View more presentations from Sam Brannen .

Send SMS via email

Following will lead to send sms for international careers via email. Most of mobile carriers offer free Email To SMS gateways which can be used to forward simple text emails to a mobile phones. And the good news, majority of those gateways are free and available to the general public. You just need to know the number and the carrier of the recipient to start emailing them to mobile phone. Below we put together a table listing free email to SMS gateways for different carriers. You can use as quick reference both for US and international mobile numbers. Free Email To SMS Gateways (Major US Carriers) Carrier Email to SMS Gateway Alltel [10-digit phone number]@message.alltel.com Example: 1234567890@message.alltel.com AT&T (formerly Cingular) [10-digit phone number]@txt.att.net [10-digit phone number]@mms.att.net (MMS) [10-digit phone number]@cingularme.com Example: 1234567890@txt.att.net Boost Mobile [10-digit phone number]@myboostmobile.com Example: 123456...

Photo Compression Tool For Linux

Following is A good quality photo compression tool can able to compress photos as batch. It supports many difference image formats. Phatch is a simple to use cross-platform GUI Photo Batch Processor which handles all popular image formats and can duplicate (sub)folder hierarchies. Phatch can batch resize, rotate, apply perspective, shadows, rounded corners, ... and more in minutes instead of hours or days if you do it manually. Phatch allows you to use EXIF and IPTC tags for renaming and data stamping. Phatch also supports a console version to batch photos on webservers. PHATCH = photo + Batch http://photobatch.stani.be/download/index.html ubuntu installation : apt-get install phatch Getting start http://photobatch.wikidot.com/getting-started

Ajax with Jquery

Following is simple example code can be use to send the ajax requests using JQuery. Sending Ajax request with JQuery is much more easier than can apply more user friendly messages to user $.ajax({ type: "POST", url: "some.php", data: "name=John&location=Boston", success: function(msg){ alert( "Data Saved: " + msg ); } }); http://docs.jquery.com/Ajax/jQuery.ajax Note : In IE browsers it convert and process the XML response string as Text prevent that can use as following $.ajax({ url: "data.xml", dataType: ($.browser.msie) ? "text" : "xml", success: function(data){ var xml; if (typeof data == "string") { xml = new ActiveXObject("Microsoft.XMLDOM"); xml.async = false; xml.loadXML(data); } else { xml = data; } // Returned data available in object "xml" } There are much more options can be specified in aja...

Drools Configurations

Message Driven POJOs!

Image
Message Driven POJOs! Posted on August 11th, 2006 by Mark Fisher in 2.0 , JMS , Spring . Of all the new Spring 2.0 features and improvements, I must admit that Message-Driven POJOs are one of my personal favorites. I have a feeling that a lot of other Spring users will feel the same way. Here I am providing a quick introduction. There is a lot more to show, and I will follow this up with other posts. For now though - this should provide you with enough information to get up and running with some truly POJO-based asynchronous JMS! I hope you are as excited about that as I am Prerequisites: You will need the following JAR files on your classpath. I've also listed the versions that I am using (any spring-2.x version should be fine. I just dropped RC3 in there about 2 minutes ago in fact): activemq-core-3.2.2.jar concurrent-1.3.4.jar geronimo-spec-j2ee-managment-1.0-rc4.jar commmons-logging-1.0.4.jar log4j-1.2.9.jar jms-1.1.jar spring-2.0-rc3.jar Setup the En...