Archive for April 2008

Open Letter to Mamootty from Free Software Community

no mammooty

Microsoft will be signing up Malayalam movie star Mammootty as one of the brand ambassadors for the Computer Literacy programme that is to be organized soon in Kerala, a Southern Indian State well known for its pro-free software policies. This is an open letter by Free Software Activists, Supporters and Users of Kerala to Mammootty.

http://fci.wikia.com/wiki/Open_Letter_To_Mammooty

Getting started with Hibernate

cute baby

I am trying to implement a demo with hibernate, for 6 months. Since I am not working with any hibernate, and because of my laziness too, I couldnt do that. Today I have taken some action to get it started.

This post will help you to insert and retrieve a value to/from a simple table using hibernate3

Dependencies:

1. Hibernate http://www.hibernate.org/
download the entire file and build it offline. Because we may need additional jars like xml, xerces etc along with hibernate.xml

2. MySql DB

3. MySql JDBC Driver http://dev.mysql.com/downloads/connector/j/5.1.html

4. If possible Eclipse to ease this assignment

TASK 1: DB PREPARATION

create a new db preferably, and create the following table

hibernate table structure

DROP TABLE IF EXISTS `hibernate`.`applabsuser`;
CREATE TABLE `hibernate`.`applabsuser` (
`USER_ID` int(11) NOT NULL default '0',
`USER_NAME` varchar(255) collate latin1_general_ci NOT NULL default '',
`USER_PASSWORD` varchar(255) collate latin1_general_ci NOT NULL default '',
`USER_FIRST_NAME` varchar(255) collate latin1_general_ci default NULL,
`USER_LAST_NAME` varchar(255) collate latin1_general_ci default NULL,
`USER_EMAIL` varchar(255) collate latin1_general_ci default NULL,
`USER_CREATION_DATE` date default NULL,
`USER_MODIFICATION_DATE` date default NULL,
PRIMARY KEY (`USER_ID`),
UNIQUE KEY `USER_NAME` (`USER_NAME`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

TASK 2: DTO PREPARATION

Please find the org.grassfield.User java file in the attached zip file.

To know about this step, please go thro the page http://www.allapplabs.com/hibernate/getting_started_with_hibernate_creating_pojo.htm

TASK 3: OBJECT TO DB HIBERNATE MAPPING DOCUMENT

Please find the org/grassfield/User.hbm.xml in the attached zip file

To know about this step, please go thro the page http://www.allapplabs.com/hibernate/getting_started_with_hibernate_mapping_pojo_with_persistence_layer%20.htm

TASK 4: HIBERNATE CONFIGURATION

Please find /hibernate.cfg.xml in the attached zip file

To know about this step, please go thro the page http://www.allapplabs.com/hibernate/getting_started_with_hibernate_configuration_file.htm

TASK 5:INSERTING AND QUERYING

Please find org.grassfield.TestHibernate and org.grassfield.TestHibernate2 for inserting and querying respectively.

I will be writing a loose sheet soon which may include detailed procedures. Hope this will be useful to just get started.

Attachment
hibernate demo source files

The picture given for this title is no way related to Hibernate, just to break the monotony :)

kanimozhi dot org dot in – An online magazine in Tamil for ‘healthy’ computing

tux

For those who cannot read tamil, this is an announcement regarding Kanimozhi - a new online tamil magazine

On 13-Apr-08, at 7:18 AM, ம. ஸ்ரீ ராமதாஸ் wrote:

வணக்கம்,

இன்றைய தினம் புத்தாண்டு கொண்டாடும் அனைவருக்கும் இனிய புத்தாண்டு நல்வாழ்த்துக்களை பகிர்ந்து கொள்கிறோம். கட்டற்ற கணிநுட்பத்தை ஒரு இணைய இதழின் மூலமாக உங்கள் அனைவரின் முன் படைக்கத் துவங்குவதில் பெருமகிழ்ச்சி அடைகிறோம்.

கணிமொழியின் முதல் இதழ் ஆறு கட்டுரைகள் கொண்டதாக உங்கள் பார்வையில் தவழ்கிறது. முதல் மாத இதழான இதில் கணிமொழி அறிமுகம்(1), கணிச்சொற் விளக்கம்(2), திறந்த ஆவண வடிவை ஆதரிப்போம்(3), ரெட் ஹாட் பொதி மேலாண்மை (4), அக்கம் பக்கம்(5), எம்பி3 கோப்புகள் இசைக்க(6) எனும் ஆறு தலைப்பில் கட்டுரைகள் வெளியாகியுள்ளன.

இதனை உருவாக்க ஊக்கமும் ஒத்துழைப்பும் நல்கிய அனைவருக்கும் நன்றியினை தெரிவித்துக் கொள்கிறோம். தங்களின் மேலான ஆதரவுடன் இது மென்மேலும் வளரும் என திடமாக நம்புகிறோம்.

கணிமொழியின் முதலிதழை வாசிக்க:

http://kanimozhi.org.in

முதலிதழில்…

(1) கணிமொழி அறிமுகம்

கணிநுட்பத்தின் பயன்பாடும் தேவையும் பல்கிப் பெருகிக் கொண்டிருக்கும் ஒரு காலக் கட்டத்தில் வாழ்ந்து கொண்டிருக்கிறோம். இதில் மென்பொருட்துறையின் தாக்கம் உலகம் உணர்ந்த ஒன்று. இன்றைய சூழலில் மென்பொருட்களை மேலோட்டமாக இரண்டு வகைகளின் கீழ் பிரிக்கலாம். முதலாவது பயனர்களாகிய நம் ஒவ்வொருவரின் சுதந்தரத்திற்கும் மதிப்பளிக்கும் கட்டற்ற மென்பொருள்.

தொடர்ந்து வாசிக்க: http://kanimozhi.org.in/01/01/kanimozhi-arimugam.html

(2) கணிச்சொற் விளக்கம்

நிரல் – குறிப்பிட்ட பணியினை செய்திடும் பொருட்டு கணினிக்கு இடப்பட வேண்டிய ஏவற்களின் தொகுப்பை நிரல் என்கிறோம். இதனை செய்நிரல் எனவும் வழங்குவர். நிரல் எழுதுவதை தொழிலாக கொண்டவர் நிரலாளர் ஆவார். இங்ஙனம் நிரலாக்குதற்கு பல்வேறு நிரலாக்க மொழிகள் துணை புரிகின்றன. சி, சி++, பைதான், ஜாவா, பேர்ல், ரூபி, பிஎச்பி இவற்றுள் குறிப்பிடத் தக்கவை

தொடர்ந்து வாசிக்க: http://kanimozhi.org.in/01/01/kanichor-vilakkam.html

(3) திறந்த ஆவண வடிவை ஆதரிப்போம்

உரையாக்கம், அளிக்கைகள், விரிதாட்கள் என நாம் அன்றாடம் பயன்படுத்தும் அலுவலகப் பயன்பாடுகளுக்கான ஒரு வடிவமென திறந்த ஆவண வடிவத்தைக் கொள்ளலாம். ஓபன்ஆபீஸ், கேஆபீஸ், அபிவோர்டு முதலிய பயன்பாடுகள் இவ்வடிவத்தைப் பயன்படுத்துகின்றன.

தொடர்ந்து வாசிக்க:
http://kanimozhi.org.in/01/01/thirandha-aavana-vadiva-adharavu.html

(4) ரெட்ஹாட் பொதி மேலாண்மை

காலங்கள் செல்ல செல்ல ரெட் ஹாட் லினக்ஸ் மிகவும் பிரபலமடைந்துவிட்டது, இரண்டே வருடங்களில் சிலாக்வேர்(இதற்கு முன் பிரபலமடைந்த) லினக்ஸை முந்திவிட்டது. இந்த வெற்றிக்கு கண்டிப்பாக சில காரணங்கள் இருக்க வேண்டும், அதற்கு மிக முக்கியமான காரணம் ஆர்பிஎம் (ரெட் ஹாட் பொதி மேலாளர்) ஆகும்..

தொடர்ந்து வாசிக்க: http://kanimozhi.org.in/01/01/rpm-arimugam.html

(5) அக்கம் பக்கம்

லினக்ஸ் என்றாலே பலரது நினைவுக்கு வருவது இன்றும் ரெட்ஹாட்தான். குனு லின்க்ஸை வணிக ரீதியாகவும் வெற்றிபெறச் செய்ததில் ரெட்ஹாட்டின் பங்கு மிகப்பெரியது. அத்தகைய ரெட்ஹாட்டால் ஊக்கமளிக்கப்பட்டு சமூகம் சார்ந்த முறையில் உருவாகி வெளிவந்து கொண்டிருக்கும் பிரபலமான குனு லினக்ஸ் இயங்கு தளம் பெடோரா ஆகும்.

தொடர்ந்து வாசிக்க: http://kanimozhi.org.in/01/01/akkam-pakkam.html

(6) எம்பி3 கோப்புகள் இசைக்க

எம்பி3 படைப்புரிமங்களால் கவரப்பெற்ற கட்டுப்படுத்தக் கூடிய ஒரு தொழில்நுட்பமாகும். சில நாடுகளில் அதனை பயன்படுத்த சட்டம் அனுமதிக்கலாம். சில நாடுகளில் அனுமதி இல்லாது போகலாம். ஆகையால் குனு லினக்ஸ் இயங்கு தள தயாரிப்பு நிறுவனங்களிடமிருந்து இதற்கான ஆதரவு பெரும்பாலும் இயல்பிருப்பாக கிடைக்காது.

தொடர்ந்து வாசிக்க: http://kanimozhi.org.in/01/01/mp3-koppugal.html

– ஆமாச்சு

Techies protest proprietary standards – seek policy : The Hindu

435264085_055e62da35.jpg

Techies protest proprietary standards; seek policy

Deepa Kurup

ISO adopts Microsoft’s Office Open XML as a document standard
13 of 19 members of BIS voted against Microsoft’s OOXML
More than technical flaws identified in OOXML’s document

BANGALORE: Ever since the International Standardisation Organisation (ISO) vote on April 2 adopted Microsoft’s Office Open XML (OOXML) as a document standard, techie blogs and websites have been inundated with posts and articles voicing their opposition to proprietary software and technical issues with the new standard.

Organisations and online communities — such as the Free Software User Group and the Free and Open Source Software — are looking to raise the issue more aggressively in the public domain. “We call the OOXML format a “banana standard.” Besides raising awareness, we want the Government to formulate a policy supporting Open Software and also appeal the ISO mandate,” said Anivar Aravind, a software consultant who will participate in a rally in front of the Town Hall on Tuesday to raise awareness about Open Document formats and demand a national policy on standardisation and use of Open Software.

In simple words, the problem is one of compatibility, an important issue in this digital world. For example, take the much hyped e-governance. If the Government maintains its land records in a certain digital format, and the documentation uses a proprietary format, then a user will have to keep upgrading his operating system to access the record. Proponents of Free Software argue that even with Microsoft’s old document format (.doc), a file created seven to eight years ago may not be recognised by a modern operating systems such as XP. “This is like being sold a house without being given the key to it. We need public support to take it to the policy level,” says Venkatesh Hariharan, who was part of a Bureau of Indian Standards (BIS) committee.

The BIS, which represents India at ISO, had 19 members of which 13 voted against Microsoft’s OOXML. Many academics and colleges (NIT-Calicut among others) have written open letters to TCS, Infosys, NASSCOM, Wipro (that voted to abstain) and Microsoft (voted in favour of OOXML). There is a rising fear among academics and advocates of free software standards that BIS will come under pressure in the absence of any national policy. Tamil Nadu and Kerala are the only two States who have a policy in place.

Very big voices like NASSCOM and Infosys that have not participated in even one meeting have voted irresponsibly. We fear that if such lobbying continues, academics and individuals like us will be put on the defensive, unless there is a policy in place

,” said Nagarjuna G., professor at the Tata Institute of Fundamental Research, who was part of the technical committee of BIS. This committee alone identified 200-odd technical flaws in OOXML’s 7,000 page document — the Open Document Format is 600 pages — and more than 1,000 others were identified internationally.

The National Knowledge Commission Report 2006 and the Eleventh Five Year plan for Information Technology recommend Free Software.

http://www.hindu.com/2008/04/15/stories/2008041554380500.htm

A professional accountant called GNUCASH – success story

All,

I am writing this post on a beautiful Sunday evening. I am trying to deploy an account software to maintain my own personal accounts. As a funny attempt, I tried to start writing my own code, out of laziness and lack of time I left it in halfway and searched for a simple software in sourceforge ; I came across some softwares. Most of them don’t have enough documentation, I have to pull my hair even to install it. Suddenly gnu-cash came to my mind. GnuCash, is a successful GNU software (Indian Linux enthusiasts say it is a replacement for Tally!). Amazing, they have a build for windows too.

It supports many important features, Budget, Vouchers, Bills, facility to maintain bank accounts etc etc. Here are some screenshots.

1. Account summary page

Gnucash account summary

2. Imbalance report

Gnucash imbalance report

3. General Ledger

4. Balance Sheet

Gnucash balance sheet

5. Reports – Expense analysis

Gnucash Expense analysis

You have full freedom to use/modify this software. Most of the linux distributions have this software, they have a build for windows also. A layperson like me is able to setup my own account at no time.

Then why dont you try it?