Thursday, August 30, 2007

Enable Read/Write Access to NTFS partition with Ubuntu

It was a big trouble for me to write data to NTFS partitions while i'm working on the ubuntu(Edgy).My ext3 partitions are almost overflowing while there is an ample space in the NTFS partitions.It was so annoying... :)

I found a solution called "ntfs-3g" (http://www.ntfs-3g.org/).it has been some time since the release and believed to be stable.

it is very easy to configure and might not take much time

  • First you have to edit the sources list
sudo gedit /etc/apt/sources.list

  • Add Following lines and save

deb http://flomertens.free.fr/ubuntu/ edgy main main-all
deb http://ntfs-3g.sitesweetsite.info/ubuntu/ edgy main main-all
deb http://flomertens.keo.in/ubuntu/ edgy main main-all

  • Get the pgp key for the installation

wget http://flomertens.free.fr/ubuntu/givre_key.asc -O- | sudo apt-key add -

  • Then Updaete and Upgrade the system
sudo apt-get update
sudo apt-get upgrade

  • Automatic configuration of ntfs-3g
sudo apt-get install ntfs-config
sudo ntfs-config

(changes might be active after a reboot)

Now you are done and ready to fly.. :)


Wednesday, August 1, 2007

Architecture of the Fund Management Module

the fund management module can be split in to 3 main sections namely budgeting,fund management and accounting.apart from those it will contain a reporting section.

Budgeting package


Fund Management package




Accounting package





the element "Lia_Debt" will contain all liabilities and debtors.element "In_Exp" will contain all incomes and expenses."Cash_Bank" will contain all cash items.the "Transac" item holds the control of each transaction
the disconnected element "Monthly_Bal" will contain all balances for each month.

Wednesday, May 16, 2007

Do you know about Database Transactions

The power of Information Technology has reached to many new areas for past few decades.software systems hold a large portion of that production
Almost all those systems have a back end with a database..but do all developers concern about the integrity and the robustness.

To implement integrity among vital database tables you should implement database transactions.

what is a transaction -
A transaction is a unit of activity wchich will be done completely or not at all

what a transaction does -
Normally we have to update several database tables to complete a single task.what happen if one table fails to accomodate relevant data while other tables accept their data..the whole system become unstable incorrect.
If we enable transactions and execute all necessary queries within a transaction it guarantees that all queries will execute or none of them do

Characteristics of a transaction -
A transaction comprices "ACID" properties

*Atomic - transaction complete fully or not at all

*Consistency - database enters from one consistent stage to another consistent stage

*Isolation - elements in a transaction isolated until it is completed

*Durability -once the user has been notified of success, the transaction will persist


Simple mysql transaction example -
start transaction;
update account set balance = balance - 1000 where number = 2;
update account set balance = balance + 1000 where number = 1;
commit;
in any error we could have use "rollback" keyword to completely rollback the transaction

Database support for transaction-

Almost all database supports transactions.but mysql MyISAM database engine does not support transaction..luckily mysql InnoDB engine supports transaction.so if you work in a mysql environment and need transaction support you should use the innodb engine instead of the default MyISAM engine.

MySQL -ADOdb - PHP example with transactions -

debug =true;
$db->Connect('localhost','root','','test');
$db->Execute('create table tab_temp1(name char(10),age char(10)) type=InnoDB');
$db->Execute('create table tab_temp2(name char(10),age char(10)) type=InnoDB');

$db->BeginTrans();

$ok=$db->Execute('insert into tab_temp1(name,age) values("test","20")');
if ($ok) $ok=$db->Execute('insert into tab_temp2(name,age) values("test1","30")');

if ($ok) $db->CommitTrans();
else $db->RollbackTrans();

?>

you should note that adodb need "mysqli" or "mysqlt" drivers instead of general "mysql" driver inorder to enforce transactions

Tuesday, May 15, 2007

The Apple iPhone


Did you managd to take glimpse at the revolutionary Apple iPhone..The IT pioneer Apple enters to the phone market with that gadget.

Simply it is not just a mobile phone.It is a rich mobile phone,an iPod and also a internet communications device..furthermore it is very attractive and the design is top class


wish we will have that phone in the market very soon