Difference between revisions of "Assela Pathirana"

From assela Pathirana
Jump to navigationJump to search
Line 36: Line 36:
|width="55%" class="MainPageBG" style="border: 1px solid #F0FFF0; color: #000; background-color: #F0FFF0"|
|width="55%" class="MainPageBG" style="border: 1px solid #F0FFF0; color: #000; background-color: #F0FFF0"|
<div style="clear: right; text-align: left; float: right; padding: .4em .9em .9em" id="MainPageBox2">
<div style="clear: right; text-align: left; float: right; padding: .4em .9em .9em" id="MainPageBox2">
==EPANET-Python==
[[file:QT4Agg_Epanet_pressure.png|300px|right]]
When I started teaching programming for water professionals at UNESCO-IHE, I was compelled to use C/C++ as the language. This is due to the fact that EPANET2.0 and EPA-SWMM5.0 (Two main programes, students in my department had to learn) were written in C language. However, C/C++ is a horrible first language. Students have to cover at least three days of learning of arcane syntax and rules before they begin to write some semi-useful code. On the other hand, if I could conduct the classes in Python, they will see the `light' within a few hours! They can start doing interesting things at the onset of learning itself. What a way to stimulate learning!
I wanted to make it possible to call EPANET2 and EPA-SWMM5.0 procedures from python. Following is the first attempt: [[EPANET-Python|Read More...]]
==Capturing and Converting Digital Camcorder Video==
==Capturing and Converting Digital Camcorder Video==
There are hundreds of software applications that can capture Digital Video from a digital tape camcorder. Some for money and others for free. However, faced with several shoe boxes full of Mini-DV tapes, what I needed was a nearly automatic system. Like pop-in the cassette to the camcorder  and `press a button' to get the whole content of the cassette captured, deinterlaced and transcoded to MPEG-4 -- a format that is far more suitable for computer storage and playback. [[Capturing and Converting Digital Camcorder Video|Read More]]
There are hundreds of software applications that can capture Digital Video from a digital tape camcorder. Some for money and others for free. However, faced with several shoe boxes full of Mini-DV tapes, what I needed was a nearly automatic system. Like pop-in the cassette to the camcorder  and `press a button' to get the whole content of the cassette captured, deinterlaced and transcoded to MPEG-4 -- a format that is far more suitable for computer storage and playback. [[Capturing and Converting Digital Camcorder Video|Read More]]

Revision as of 18:30, 5 April 2012

Seminar titled 'I can teach as much as I like but does it lead to learning? Musings on teaching learning and related things' given 2012-MAR-29 at UNESCO-IHE Water colloquium.


Average teachers become good ones by developing a strong passion for their act. Some, then become excellent ones by learning to control this passion, so that students get more space to learn.


Random musings on various topics: Climate and water security, Small Island Developing States (SIDS), IT tools, Computer programming and Web-Applications, Citizen Science, ... Views are personal!

IMHEN Report on Climte Change in Vietnam

(C) Institute of Meteorology, Hydrology and Environment (IMHEN), Vietnam.

IMHEN conducted the project "Impact of climate change on water resources and adaptation measures" sponsored by the Government of the Kingdom of Denmark with the participation of consulting experts from the Danish Hydraulic Institute (DHI) and the participation of many Vietnamese agencies. read more

Refresher Seminar on Asset Management

Oude kerk clock delft.jpg

We conduct a ten day refresher seminar on Asset Management of Urban Water Systems. It is open for the UNESCO-IHE Alumni outside Zambia. Fully paid scholarships available. Non-Alumni can also apply, but only as paid participants. Read More..

Linux Has Arrived

DSC00181.JPG

I have been using Linux for about twelve years. In the beginning, largely for specialized tasks, but later I found myself increasingly using Linux for day-to-day computing activities. Today, it has grown into a truly user-friendly, powerful, yet unassuming system that provides a very viable system for home, office and educational computing. Especially the many features of today's Linux systems make them exceptionally well-suited for educational use. Read More

Running WRF Model on Windows

Windows fun.jpg

WRF Model runs on UNIX platforms only. While this generally is not a problem for dedicated research or forecasting entities, for the casual user having access to only a Windows computer is faced with difficulties in trying out the modeling system. It is quite possible to install a UNIX-like operating system (e.g. Linux, BSD) alongside Windows, the technical details involved is enough to keep casual user from doing that.

With the introduction of a number of a number of Virtualization solutions by various entities another path has become open to try Linux tools on Windows. That is to use a Virtual_machine envornment that runs a Linux operating system within a virtual computer that is installed within windows. The beauty of the approach is the fact that the user does not have to be tech-savvy to use such a solution. Once a good setup is designed and implemented, it will run practically on any windows computer that is reasonably powerful. Read on for details ...


EPANET-Python

QT4Agg Epanet pressure.png

When I started teaching programming for water professionals at UNESCO-IHE, I was compelled to use C/C++ as the language. This is due to the fact that EPANET2.0 and EPA-SWMM5.0 (Two main programes, students in my department had to learn) were written in C language. However, C/C++ is a horrible first language. Students have to cover at least three days of learning of arcane syntax and rules before they begin to write some semi-useful code. On the other hand, if I could conduct the classes in Python, they will see the `light' within a few hours! They can start doing interesting things at the onset of learning itself. What a way to stimulate learning!

I wanted to make it possible to call EPANET2 and EPA-SWMM5.0 procedures from python. Following is the first attempt: Read More...

Capturing and Converting Digital Camcorder Video

There are hundreds of software applications that can capture Digital Video from a digital tape camcorder. Some for money and others for free. However, faced with several shoe boxes full of Mini-DV tapes, what I needed was a nearly automatic system. Like pop-in the cassette to the camcorder and `press a button' to get the whole content of the cassette captured, deinterlaced and transcoded to MPEG-4 -- a format that is far more suitable for computer storage and playback. Read More

Mirroring LAMP Website

DSC00143.JPG

This web site runs on Mediawiki with MySQL backend (Read details here: Mediawiki for personal webs. This is the story of setting up automatic syncrhonisation between my development machine (DM) and the (cheap, no-frills) web hosting account. Read More

Cross Compiling C and Fortran

TreeTrunk.jpg

Recently I had to mix two large models written in C and Fortran (95 standard) to build a single monolithic program. In theory cross compilation is easy -- in practice its far from it. Your run off the mill 'hello world' implemented in C and called from Fortran (or vice versa) is one thing, but marrying off two large programs (numerous code files in each) written in two languages is a whole different story. Following is an account of my experience: Read More

Dependency Walker -- A remedy for distribution headaches

2007-12-23 14.10.54 0000000270Tivoli-vialla andriana and Este 222.jpg

If you have ever tried to give away a reasonably complicated program that was written and compiled on windows to another user you should be very familiar with complaints of missing DLLs, and other dependencies and module mismatches etc., etc. These erros can manifest themselves in many forms (The procedure entry point could not be located in the dynamic link library; The application or DLL is not a valid Windows image or even Program too big to fit in memory.) This is particularly so if you happen to be developing with a complex build environment that is tightly integrated with windows system, like visual studio (I often use Visual C++ 2005/2008 express (free) editions and they create a lot of trouble in deployment!) read more...

Remote Editing in UNIX

Unlike Windows, UNIX computers were always meant to be accessed both locally (in front of the computer) and remotely (from somewhere remote). Even with today's high speed network communications, editing with a graphical editor like gedit over the network can be a tedious experience. You hit a button and wait ages for the user interface to be updated!. Of course if you are comfortable with vim or emacs editors which don't need any graphical interface, they you are fine. But for those who don't know these, there is WinSCP. Read more ...


SITES ON THE SERVER

[ Family web | Assela's web | Chandani's web | Medhini's web | Ayumie's web ]