Wednesday, May 30, 2007

Missing Maddy

Maddy has become one of the well known person in the Europe and especially in UK.
Maddy(Madeleine McCann) has become popular all of sudden(She is missing for the last few weeks i.e from may 3rd). There is a website setup to find her and there is a big reward if some one is going to find her (2.6 million pounds).

I dont know where maddy is but her parents got a chance to visit Pope (read yesterday's news). so many things are happening around. there is a fund setup to search her,posters every wehre, a website etc....

I am thinking of millions of kids who dont have basic facilities... there is big fund (out of donations) setup for finding maddy.How about all other little boys and girls?

How wonderful it will be to see all other kids in the world too getting this much of attention? There are many kids who are abandoned by parents, some are sold because parents can not feed them properly or they are just greedy. some are forced to do things that are illegal. All these things can be avoided if we care for all kids not just maddy.

Saturday, May 26, 2007

Configuring PHP for MySQL

Well, i too took some time to configure PHP to connect with mysql database.

Shortcut:
If you dont have time or patience to download individual installers and configuring them etc.. then download xampp and install it (I didnt try this but website says that it does everything for you).

Well, if you want to have the fun of doing it by yourself then the following info will be useful. Usually many people face difficulty in configuring mysql for php.(for the first time when we do this).

Download the latest versionf of the softwares required
I downloaded the following softwares for setting up everything.
MySql5.0(community version)
Apache 2.2
php-5.2.1-Win32

you can start reading install.txt that can be found within the php root folder. it contains all the steps that you need to follow for your configuration (specific to OS and other things).

save a copy of php.ini-recommended as php.ini (within PHP root folder).

Configuring apache with PHP module:
you have to add the following lines into httpd.conf (assuming you are working on windows). in my case PHP is installed in C:/php5. you may want to change as per your local configuration.

#PHP related configuation
LoadModule php5_module "C:/php5/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php5"

Thats it, you should be able to run PHP programs.

MySQL configuration in PHP.

With recent versions of PHP, MySQL is not bundled along with PHP distribution directly.For windows users mysql dll (libmysql.dll) is bundled with php distribution.

PHP doesnt implicit contain mysql support for 2 reasons
1. Most of the linux\unix systems have mysql versions installed already
2. MySQL comes with GPL License where as PHP follows apache (am i correct?) license.

Because of the above 2 reasons PHP doesnt support mysql directly. To work with mysql you need to do small configuration changes in the php.ini file.
set the extention_dir appropriately, inmycase it was:
extension_dir = "c:/php5/ext/"

then search for extension=php_mysql.dll
remove the semi colon (uncommenting the line).
save the php.ini file.

Now we also need to do small change. there is a library libmysql.dll which should be available in the path (it is referenced in the php_mysql.dll). So add the path to the file into the system PATH variable. shortcut here is placing the file into c:\windows folder (but this is not the right approach)

Now restart your apache. everything is configured now.

Harinath.in

Here is an announcement. I got a personal website. It is still underconstruction but still you can have a visit to the page at http://harinath.in

These days i am trying to learn PHP\MySQL site building. Was browsing through lot of sample web templates and trying to customize, creating simple programs like sending email through php, form validation, javascript validation etc.

The goal for me now is to have sufficient information about building a website in php\mysql. Validation, rolebased access,handling the postbacks in the page, creating a re-usable web page template (with place holder for server side functionality) etc.

In general, I am trying to create a single php page with multiple functional components that can be included based on the user request.

Some of tools/webpages that i found useful are
DBDesigner
PHP IDE
Zeroweb web templates
oswd.org
openwebdesign.org

Problem with internet is we got hell lot of junk, and filtering what is re-usable is very difficult. sometimes i find google silly, it gives you all stupid results while some other search engines like altavista give some useful references.

Sunday, May 20, 2007

RIA

Rich Internet Applications, Adobe Flex 2.0, Microsoft Silverlight, Sun Micro systems JavaFX... This is what I was reading about during this weekend.

RIA technologies are something that want to give the web clients the functionality of desktop applications making the end user experience the WOW effect.

Adobe Flex 2.0 is the best possible RIA technology available.It is essentially because It depends on the Flash and also it does support multiple server side technologies like J2EE,Coldfusion, PHP etc. Flash Player 9.0 has all the client side stuff that is required. Its proven, every one of us has experienced Flash. its true.

Microsoft is betting on its Flash Killer Formulation and it calls it Silverlight. At the outset it looks fine. Its essentially depends on Java script for all the event handling and XAML (MS specific XML format) is used for asynchronous communication,it depends on microsoft existing technologies to get its share from the market.

Sun is bit late to enter into RIA technology stream. It want to levegate on the JRE1.5+. It want to add Java Swing stuff into its newly found script JavaFXS script which is a declarative language and can use the JRE feature to the max extent.


What is missing is a common thought in this process. Why cant there be a common mechanism all this companies can depend upon. By inventing multiple different technologies that are trying to achieve the same purpose but with altogether different approach will make it costly to the world. The result: Incompatible solutions which cannot talk to each other. People will be forced to pay for the mistakes of not theirs.

Wednesday, May 16, 2007

Book keeping

One of the difficult things i had in recent days is book keeping. Filling up lot of MS OFFICE stuff which i dont understand what is stands for or how that can be useful.

Leading small team or a big team shouldnt be a big botheration as long as we are clear about the work. But how to handle a case where you are forced to fill lot of book keeping documents?

The goal of a software consultancy should be always how to keep the client happy (so that we get money), and accumulate the knowledge that can be re-usable (so you save effort while serving another client) and could think of making a generic product/service/framework that could help the organization.

just a random thought.

Ant and the grasshopper

An interesting story (though it is a lengthy one).
Ideally it should go to my forwards blog,but as it looks relevant to the current context in india. it got a place in my main blog.

Thanks to Pandurangaswamy for the email

OLD VERSION...
The ant works hard in the withering heat all summer long building his
house and laying up supplies for the winter. The grasshopper thinks the
ant's a fool and laughs & dances & plays the summer away. Come winter,
the ant is warm and well fed. The grasshopper has no food or shelter so
he dies out in the cold.

MODERN VERSION (excellent)

The ant works hard in the withering heat all summer long, building his
house and laying up supplies for the winter. The grasshopper thinks the
ant's a fool and laughs & dances & plays the summer away. Come winter,
the shivering grasshopper calls a press conference and demands to know
why the ant should be allowed to be warm and well fed while others are
cold and starving.

NDTV, BBC, CNN show up to provide pictures of the shivering grasshopper
next to a video of the ant in his comfortable Home with a table filled
with food.

The World is stunned by the sharp contrast. How can this be that this
poor grasshopper is allowed to suffer so?

Arundhati Roy stages a demonstration in front of the ant's house. Medha
Patkar goes on a fast along with other grasshoppers demanding that
grasshoppers be relocated to warmer climates during winter. Amnesty
International and Koffi Annan criticize the Indian Government for not
upholding the fundamental rights of the grasshopper. The Internet is
flooded with online petitions seeking support to the grasshopper (many
promising Heaven and Everlasting Peace for prompt support as against
the wrath of God for non-compliance) . Opposition MP's
stage a walkout.Left parties call for "Bharat Bandh" in West Bengal and
Kerala demanding a Judicial Enquiry.CPM in Kerala immediately passes a
law preventing Ants from working hard in the heat so as to bring about
equality of poverty among ants and grasshoppers.

Lalu Prasad allocates one free coach to Grasshoppers on all Indian
Railway Trains, aptly named as the 'Grasshopper Rath'. Finally, the
Judicial Committee drafts the Prevention of Terrorism Against
Grasshoppers Act [POTAGA]", with effect from the beginning of the
winter.

Arjun Singh makes Special Reservation for GrassHopper in educational
Insititutions & in Govt Services.

The ant is fined for failing to comply with POTAGA and, having nothing
left to pay his retroactive taxes, his home is confiscated by the
Government and handed over to the grasshopper in a ceremony covered by
NDTV. Arundhati Roy calls it "a triumph of justice". Lalu calls it
'Socialistic Justice'. CPM calls it the 'revolutionary resurgence of
the downtrodden' Koffi Annan invites the grasshopper to address the UN
General Assembly.

Many years later...The ant has since migrated to the US and set up a
multi billion dollar company in silicon valley . 100s of grasshoppers
still die of starvation despite reservation somewhere in India ....

As a result loosing lot of hard working ants and feeding the
grasshoppers, India is still a developing country..... .

Saturday, May 12, 2007

Asha kiran

While looking at the recent changes of To Make a Difference i come across the blog of somya a person related with IIIT Hyderabad, and then i found out about Ashakiran. an initiative by IIIT students and faculty. Read more about Asha kiran.

Thursday, May 10, 2007

JavaFX & Sliverlight

What is this fuss all about? Microsoft with Silverlight and Sun with Java FX, couple of more WOW effects on the internet. By having couple of more different solutions to the user experience. Lot of interesting things about both the technologies. I will post my understanding about the technologies as and when time permits.

http://www.sun.com/software/javafx/

http://silverlight.net/

Wednesday, May 09, 2007

Kitchen experiments

Food has been a little problem for me in Edinburgh. The solution.... Preparing food on my own. Yes it is a good time pass for me (apart from spending time on my laptop). and i get to do lot of experiements in kitchen (some of them fail like the bread upma which tasted real bad :-( ).

Somerfield is a good shop where you get all items that you require. Its kind of Trinetra (as in Hyderabad, India). A supermarket chain across UK. I didnt like the ready to eat biryani and other items. they didnt taste good for me. I need something spicy (not too spicy). Most of the food that i get over here is not at all spicy and other thing is you dont know what will the food be consisted of. many items consist beef which i dont like to take (i didnt like the taste, i remember i had bad experience in The Park Restaurant, Chennai).

Well other side effect of self cook is that you eat too much. My wife is asking me to go for jogging or do something of that sort. Hmm i am lazy enough to go out.
only thing i do is get up, get ready, get 25 and reach recarton.work till 5.30 or 6 in the evening, get 25 back, get down at Haymarket and walk straight to home (some times get down at somerfield itself to buy some stuff or the other).

Edinburgh is a nice place, you can go for a walk or jog any time through out the day (because the weather is almost like mornings in india).


One important thing about SEED is now Ananth is shifted to London. SEED strength is almost double now. lots of changes to come.


Last weekend i went to zoo and some other places in Edinburgh, i created 2 albums (birds and animals, flowers and leaves) on picasa. if you have time you may want to go through them.


http://picasaweb.google.co.uk/harinathreddy

JFreechart

Being a tech lead for a DOTNET project, and now talking of JFreechart (actually no free time now a days).. Its bit contradictory, but pavani's mail made me look into this in my off office hours. Its nice java API for chart.

I was going through the blog of the guy who has been able to keep JFreechart active. the proud owner of JFreechart (Dave Gilbert who owns www.object-refinery.com/.

He is an interesting personality on 2 accounts.

He worked for what he wanted to. (On JFreeChart for around 6 years). He created the API and is managing it dedicatedly.

Secondly, He sticked to what he believed in. Didnt give in to the corporate pressures to sell or join some company.. As some one rightly said, instead of writing software for some company accountings, It is good if you can stand on your own and do something that you always want to do. Dave is doing that. Thats great Dave