Posts

Oracle database connection by Java - timezone error

Error I got : Error from db_connection.java -->> java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1 ORA-01882: timezone region  not found ORA-00604: error occurred at recursive SQL level 1ORA-01882: timezone region  not found Prev code:     public Connection getOracle() throws Exception {         Connection conn = null;         Class.forName("oracle.jdbc.driver.OracleDriver");         conn = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:tap", "username", "pw");         return conn;    } new Code:     public Connection getOracle() throws Exception {         TimeZone timeZone = TimeZone.getTimeZone("Asia/Kolkata");         TimeZone.setDefault(timeZone);         Connection conn = null;         Class.forName("oracle.jdbc.driv...

my tribute to Dennis Ritchie

News: Dennis Ritchie, father of C programming language and Unix, dies at 70 !! ;( :'( Dennis MacAlistair Ritchie. The man who created C with Kevin Thompson. Who helped develop UNIX. One of the greatest computer engineers ever. here i text some words to remind our memories for this great technologist... We need to remember that C and UNIX spawned a revolution in the computer industry. Every subsequent software owes something to these two... his words about them: C++ and Java, say, are presumably growing faster than plain C, but I bet C will still be around. - Dennis Ritchie UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity. Dennis Ritchie For those of us running Mac OS X, iOS, Android and many other non-Windows OS, we have him to thank. Many of those running Windows do too, as many of the applications you're using were written in C..

Escaping special characters in Java replace & > < \

i'm doing part in ETA system, which is a Webservice... So it was needed to replcae some characters form XML data. We have done this before sevaral time inside some methods... But this time as the best practice i write a simple method to do this... hope it might useful to you: Character Reference & &amp; < &lt; > &gt; " &quot; ' &apos; import java.text.CharacterIterator; import java.text.StringCharacterIterator; public class EscapeCharacter {      public static void main(String[] args) {         String str = " sdas\\d\\asa-&-adas-&-das-<-da->-sa ";         System.out.println(str);                         System.out.println(forXML(str));    ...

linux Directory permissions what real means of x

As i faced you might facing difficulties when understanding "X" permission for directory in linux. Read following and get some idea: In *nix systems directories are also files and thus use the same permission system as for regular files.  Note permissions assigned to a directory are not inherited by the files within that directory. Because directories are not used in the same way as regular files, the permissions work slightly (but only slightly) differently.  An attempt to list the files in a directory requires read permission for the directory, but not on the files within.  An attempt to add a file to a directory, delete a file from a directory, or to rename a file, all require write permission for the directory, but (perhaps surprisingly) not for the files within.  Execute permission doesn't apply to directories (a directory can't also be a program).  But that permission bit is reused for directories for other purposes. Execute permi...

MSc assignments

For 4 th semester of my MSc I m taking subject “Systems and Network Administration”.. For first two lectures we were given to make slide shows on topics “ 1)       User_name_password_policy 2)       Open_Source_license I was manage to collect some text in to slides.. Thought to share them with you guys… Pls find links here..: http://www.4shared.com/file/lyANo3NO/User_name_password_policy_-_Co.html https://rapidshare.com/files/763973730/User_name_password_policy_-_Copy.pptx http://www.4shared.com/file/rdeRLXyo/Open_Source_license_-_Copy.html https://rapidshare.com/files/2385254743/Open_Source_license_-_Copy.pptx

Horana CTB Employees on strike!

Horana CTB Employees on work stoppage demanding salary. Employees attached to Horana CTB Depot have gone on strike demanding their salaries and overtime payments on schedule. This has caused transport difficulties in the area. The employees point out they were compelled to take this action as there was no response to their continuous requests for a fixed payment schedule.

UK High Commissioner visited two companies in Horana

H. E. John Rankin, British High Commissioner to Sri Lanka and the Maldives, visited the operations of two UK-based garment companies in Sri Lanka – Coats Thread and Quantum Clothing. The High Commissioner visited the factories of the two companies in Horana town, in order to get an insight into customer-supplier cooperation between the two companies. This is my first visit to a garment factory in Sri Lanka. I think Sri Lankan products continue to be in high demand in the clothing sector in the United Kingdom, especially with higher end quality products for which it is renowned. I have been impressed by what I have seen here in terms of the quality and the production and labour conditions are great here and along with that the connection between the UK and Sri Lanka continues to get stronger, stated the High Commissioner