Teambox email setup – rails 3 – OpenSSL::SSL::SSLError (hostname was not match with the server certificate)

Dec 22 2011

add bypass_ssl_verification_for_open_uri.rb to config/initializers. Make sure the file has right owner/mod setup – I spent about couple of hours and later realize it was owner by root. You need to setup (under ubuntu – chown nobody:www-data bypass_ssl_verification_for_open_uri.rb).

Contents of bypass_ssl_verification_for_open_uri.rb
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE

My configuration for email settings

address: mail.mydomain.com
port: 26
authentication: plain
user_name: name@mydomain.com
password: secret
domain: mydomain.com
enable_starttls_auto: false

No responses yet

Spring Transaction in Java main method

Dec 09 2011

In standalone java project (main method) if you insert / update database it will not work. It is because you need to add the transaction management. You need to do programmatic transaction management. Here is the code you need to add in your main method.
Continue Reading »

No responses yet

Managing Java Memory – heap size, max perm size, GC collection etc.,

Nov 30 2011

1. –Xms512m and –Xmx2048m

Define the minimum and maximum heap space.
Continue Reading »

No responses yet

Windows 7 change COM Port – serial connected through USB

Nov 30 2011

Set up: Serial interface device connected to Windows 7 64 bit using serial to usb connector.

Step 1:
Open device manager from control panel, if you see unrecognized usb device the you need a device driver. Otherwise skip to step 2.
Continue Reading »

No responses yet

WebTest using https – javax.net.ssl.SSLHandshakeException

Oct 31 2011

Add to the webtest

<config useInsecureSSL="true" />

No responses yet

SEO friendly URL’s in Java

May 19 2011

If the application is open to all general Internet users, then it is almost mandatory to generate SEO friendly URLs, not just for e.g., the product URL but also the search results page in your application.

Continue Reading »

No responses yet

Java – Logging in high volume transactions

Nov 19 2010

Logging involves disk IO. I have run tests and in some cases logging affected the response time and in some cases I did not. However this is not about how logging affects response time.

Continue Reading »

No responses yet

SAXParserFactoryImpl not found Error

Oct 08 2010

Problem:

[java] 2010-10-08 11:29:36.273:WARN::FAILED HandlerCollection@79a2e7: javax.xml.parsers.FactoryConfigurationError: Provider o
rg.apache.xerces.jaxp.SAXParserFactoryImpl not found
[java] 2010-10-08 11:29:36.273:WARN::Error starting handlers
[java] javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
[java]     at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:113)
[java]     at org.eclipse.jetty.xml.XmlParser.<init>(XmlParser.java:68)

Continue Reading »

No responses yet

Generate environment specific properties file using ant replace

Sep 19 2010

If you want create your config file specific to each environment, then you could take the following approach. Assuming your environment specific properties are kept in folder structure as in the image. 

Continue Reading »

No responses yet

Adobe Photoshop trial download CS5

Apr 26 2010

If you are  having hard time to find the download link for photoshop cs5 dowlonad link , here it is. Please leave a comment if you find it useful.

https://www.adobe.com/cfusion/tdrc/index.cfm?ref=sup&product=photoshop

No responses yet

Older posts »