Showing posts from October, 2011

Syntax Highlighting in Blogger

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 account and creating gists at . 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

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

Free Public DNS Servers List

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 Google Public DNS Level 3 Communications GTE SpeakEasy Cisco UltraDNS(Advantage) ScrubIt Norton Verizon 151