Posts

Showing posts from October, 2011

Syntax Highlighting in Blogger

Image
Each code snippets must be represented with a highlighted and standard formatted style to make them more readable. However in blogger posts and other HTML pages, it is difficult to handle. Highlighting every reserved keywords (such as private, void, class in java language), keeping indention, spacing and other formatting issues as is in IDE even requires more effort than writing content of page. After a short research on internet, I found two ways to highlight syntax of code snippets in blog posts. The first one is embedding SyntaxHighlighter project's CSS and Javascript source files into blog template. The second one is simply creating a github.com account and creating gists at gist.github.com . How to Use Gist to Insert Highlighted Code Snippets in Blog Definition : Gist is a simple way to share snippets and pastes with others. All gists are git repositories, so they are automatically versioned , forkable and usable as a git repository . First login to www.git

ORA-02049 SQLException from iBatis 2.x with Spring in IBM WAS 6.2

Image
If the number of threads that try to access a datasource concurrently, exceeds the maximum number of connections to database; it will cause BadSqlGrammarException. Oracle database returns ORA-02049 error code in the detail of exception. There are two solutions, i googled on the web: one of them is increasing the SHARED_POOL_SIZE in init.ora on the database side. The other one is changing the datasource connection pools properties on the websphere application server as shown in the screenshot at the bottom of this post. Exception Log org.springframework.jdbc.BadSqlGrammarException: SqlMapClient operation; bad SQL grammar []; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException: --- The error occurred while applying a parameter map. --- Check the ${sql-map-id}-InlineParameterMap. --- Check the statement (update failed). --- Cause: java.sql.SQLException: ORA-02049: timeout: distributed transaction waiting for lock at org.springframework.jdbc.support.SQLSt

Free Public DNS Servers List

Image
Public DNS Servers' IP List & Provider Companys There are many free public DNS servers on world wide web, I intended to save a collection of them on this page. OpenDNS  208.67.222.222 208.67.220.220 Google Public DNS 8.8.8.8 8.8.4.4 Level 3 Communications 4.2.2.1 4.2.2.2 4.2.2.3 4.2.2.4 4.2.2.5 4.2.2.6 GTE 192.76.85.133 206.124.64.1 SpeakEasy  66.93.87.2 66.92.64.2 66.92.224.2 66.92.159.2 64.81.79.2 64.81.45.2 64.81.159.2 64.81.127.2 64.81.111.2 216.254.95.2 216.231.41.2 216.27.175.2 Cisco  64.102.255.44 128.107.241.185 UltraDNS(Advantage) 156.154.70.1 156.154.71.1 ScrubIt 207.225.209.66 67.138.54.100 Norton 198.153.192.1 198.153.194.1 Verizon 151.197.0.38 151.197.0.39 151.202.0.84 151.202.0.85 151