Current Status

Actively playing with all possible backend services

21 December, 2011

Horana - Colombo road planned to be rehabilitated

Horana - Colombo (120 bus route)  , Horana to Kahathuduwa (

 access roads to Southern Expressway) is

planned to be rehabilitated



The government has been able to obtain financial assistance of Rs 9,348.61 mn (USD 85.0 mn) from the Asian Development Bank (ADB) to rehabilitate roads connecting the Southern Expressway (SE). The total estimated cost for rehabilitation of the roads is Rs 11,613 mn (USD 105.6 mn). Six access roads to SE are expected to be rehabilitated under the above project.

Under the second phase of National Highways Sector Project 62 kms of national highway road sections on Matara-Akuressa (3.40 km), Hikkaduwa - Baddagana (14.34 km), Horana - Anguruwatota - Aluthgama (23.48 km), Katukurunda - Naboda (2.72 km), Kirulapona - Godagama (5.33 km) and Colombo - Horana (12.7 km) are planned to be rehabilitated. These selected 6 road sections usually experience high traffic volume. Therefore, the rehabilitation of these 6 road section will facilitate easier access to the new expressway while improving the transport efficiency of the national highways network.

The Road Development Authority (RDA) under the supervision of Ports and Highways Ministry will perform as the project implementing agency. The project is expected to be completed by 30th June 2016.


27 October, 2011

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.driver.OracleDriver");
        conn = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:tap", "username", "pw");
        return conn;
   }


now it is working!!

14 October, 2011

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..

06 October, 2011

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));

    }

    public static String forXML(String aText) {
        aText = aText.replaceAll("&(?!amp;)", "&");
        final StringBuilder result = new StringBuilder();
        final StringCharacterIterator iterator =  new StringCharacterIterator(aText);
        char character = iterator.current();
        while (character != CharacterIterator.DONE) {
            if (character == '<') {
                result.append("<");
            } else if (character == '>') {
                result.append(">");
            } else if (character == '\"') {
                result.append(""");
            } else if (character == '\'') {
                result.append("'");
            } else {
                //the char is not a special one
                //add it to the result as is
                result.append(character);
            }
            character = iterator.next();
        }
        
        return result.toString();
    }


}

09 September, 2011

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 permission is needed on a directory to be able to cd into it (that is, to make some directory your current working directory).

Execute is needed on a directory to access the inode information of the files within.  You need this to search a directory to read the inodes of the files within.  For this reason the execute permission on a directory is often called search permission instead.

You can think of read and execute on directories this way:  directories are data files that hold two pieces of information for each file within, the file's name and it's inode number.  Read permission is needed to access the names of files in a directory.  Execute (a.k.a. search) permission is needed to access the inodes of files in a directory, if you already know the file's name.

extracted from :http://content.hccfl.edu

16 August, 2011

MSc assignments



For 4th 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. 1)      User_name_password_policy
  2. 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..:


16 June, 2011

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

31 March, 2011

Use Your Time Productively



1) If possible, do more than one thing at the same time.
(listen to edu tapes while travel)

2) Don't do something later if it can be done concurrently with an activity at present.

(if two works can done same time do both, like shopping+dentist at same out)

3) Be organized in everything that you do.(hav a list of things you have to do, hav goal today, this week, month, year, life...)

4) Finish a work then and there(reply to an email when read it)

5) clean your desk everyday!!!
(clean ur desktop, inbox, sms in 5 mintues)

6) Take breaks of 5-8 minutes every hour. Do exercises!!


Dont!!!

1) Do not do something you dont need to do (checking email if you dont need to)

02 March, 2011

Seminar at CSE

I just participated for a seminar about FAST protocol.
Actually it was a Technical brief about the FAST protocol done by Mr.Daya Fernando of milleniumIT  at Colombo Stock Exchange auditorium.

I am the assigned person to implement market data reading application for Mobitel.

One interesting thing about FAST is that it used to keep “previous value” : where to keep this value is called “Dictionary”. Nother thing in this protocol something called “Presence Map” is used as the indicator of the interaction between template, dictionary and transmitted data.

Wooo.. there is lot to learn about the protocol I guess…. Have to spend hours with specs.. save me!!
If you guys know anything related which will be important to me, pls comment.

Some Popular Posts