Saturday, March 29, 2008

MySQL 3x to MySQL 5

Last week I was tried to migrate a database server which was running on MySQL 3x to a lampp platform with MySQL 5x. I faced an interesting problem.

In MySQL 3x index, option... can be used as field names, but not in MySQL 5x. Beucase when I do mysqldump and try to restore it into MySQL 5x, it gave errors... And those errors were pointed to those error fields

Mostly Joomla and Mambo databases give this problem.

Solutions :
1. When we do the mysqldump we can add '`' to the field names (plz go through the mysqldump manual)
2. We can manually search for this kind of errorness field names and put '`' around it :-)

I was under the impression that the new version always supports for the older version. But that is not always true ;-)

Monday, March 24, 2008

ta-LK language pack for Joomla 1.5.2

Joomla! has added ta-LK (Sri Lankan Tamil) support to Joomla 1.5.2. Currently the installation packs are available and very soon the site and admin language packs will be available in the Joomla! org site... I am very happy to say that I also involved in this language pack preparation work :-)

http://dev.joomla.org/content/view/42/66/

Monday, February 11, 2008

Quantum Computers



Canadian startup company D-Wave demonstrated a 16-qubit quantum computer. The computer solved a sudoku puzzle and other pattern matching problems. The company claims it will produce practical systems by 2008. Skeptics believe practical quantum computers are still decades away, that the system D-Wave has created isn't scaleable, and that many of the claims on D-Wave's Web site are simply impossible (or at least impossible to know for certain given our understanding of quantum mechanics).

If functional quantum computers can be built, they will be valuable in factoring large numbers, and therefore extremely useful for decoding and encoding secret information. If one were to be built today, no information on the Internet would be safe. Our current methods of encryption are simple compared to the complicated methods possible in quantum computers. Quantum computers could also be used to search large databases in a fraction of the time that it would take a conventional computer. Other applications could include using quantum computers to study quantum mechanics, or even to design other quantum computers.

But quantum computing is still in its early stages of development, and many computer scientists believe the technology needed to create a practical quantum computer is years away. Quantum computers must have at least several dozen qubits to be able to solve real-world problems, and thus serve as a viable computing method.

http://computer.howstuffworks.com/quantum-computer2.htm

Saturday, February 2, 2008

Differently abled people - II

In a night, I met a blind poor person on a street… He had an injury on his leg too . So he was walking with a stick. He heard my foot sounds, he asked : “Sir, could you help me” and then he asked that “I need to buy some hoppers”. So what I did is, I just hold his hand and asked him to stay a place and then I went to buy some hoppers. Time was 9.00 pm pass... almost all the shops were closed. So took 20 minutes to buy hoppers… But I was not sure that whether the man will wait this much time for the hoppers at the place I asked to be…
When I go there, he was waiting… Then I gave the hoppers… He gave money, but I didn’t get it. So he said that he will put that money in a temple on my name  These people have self respect than normal people… isn’t it 
If I was him, I won’t wait that much time for hoppers… So I asked him, how do u believe that I will bring hoppers and waited more than 20 mins? He said : “Sir, you know… you touched my hand and asked me to stay here… From that touched I got to know that definitely you will come with hoppers” .
Hmm… Compare to their abilities, we have nothing…. Self respect... Sound sensitivity… Touch sensitivity….

Friday, February 1, 2008

Differently abled people

One day we had a meeting on the topic ‘differently abled people’. One Greek Prof. (Whose first language is not Greek!) also was there and he is fortunately / unfortunately blind. I know, the word blind is politically not correct. But I am using here because the Prof. was not like the word ‘differently abled’. He said that, they are obviously blind… the word ‘differently abled’ make them different and separate them and its hurts than word ‘blind’. In that meeting he also talked computers and their functionalities… wow… how this man can talk about button and their colors…  This is his intellectual part of life.
The other part of his life is : 
During the break, we had tea… the Prof wanted have a sugarless tea.. So the one who served tea went to bring one… But during that time other people were having tea… while they having their cup and soccer were touched and made sounds… the Prof. thought that, someone has waiting to give him a tea and he just prepared his hands to get the tea cup… He waited a bit, and then realized that the tea is not for him… So took the hands back… I didn’t see any reaction on his face at that time. I don’t know how to tell my feeling I had that time… Each and every sound is matters for them… I don’t know how these people are living with many failures… they do face this kind of thing in each and everyday… oh... They are really great…

Friday, January 18, 2008

2nd world war and Computer age!

Nowadays I am reading the Book called “The Theory of Everything” by Stephen W.Hawking. It contains Stephen’s 6 lectures about Universe, Black holes, Origin of Universe, Time and finally the Theory of Everything. I am enjoying well …

In that book, in one place Stephen has pointed out (Here I am giving a summary in my words) until 1939 lot of the scientists was researching about Macro world things example: about Gravitational forces. But then due to the 2nd world war most of them were involved in Atomic bomb project and then after the war they have concentrated more on the micro world (I mean in the Atomic level)

Therefore if the 2nd world war is not happened, the scientists continued their researches on Macro world, about the Universe, Time, Relativity… They not much worried about the atomic world.

I think, because they have researched on the atomic world they were able to invent transistors. Without transistors we can’t talk about the computer age. So I think the 2nd world war made a change on our life and it led for the Computer Age 

Now, can you all imagine a world without 2nd world war?

Wednesday, January 9, 2008

Soooo touching :-(

I was walking around in a Target store, when I saw a Cashier hand this little boy some money back.

The boy couldn't have been more than 5 or 6 years old.
The Cashier said, 'I'm sorry, but you don't have enough money to buy this doll.'
Then the little boy turned to the old woman next to him: ''Granny, are you sure I don't have enough money?''

The old lady replied: ''You know that you don't have enough money to buy this doll, my dear.''
Then she asked him to stay there for just 5 minutes while she went to look a round. She left quickly.
The little boy was still holding the doll in his hand.

Finally, I walked toward him and I asked him who he wished to give this doll to.
'It's the doll that my sister loved most and wanted so much for Christmas. She was sure that Santa Claus would bring it to her.'

I replied to him that maybe Santa Claus would bring it to her after all, and not to worry.

But he replied to me sadly. 'No, Santa Claus can't bring it to her where she is now. I have to give the doll to my mommy so that she can give it to my sister when she goes there.'

His eyes were so sad while saying this. 'My Sister has gone to be with God. Daddy says that Mommy is going to see God very soon too, so I thought that she could take the doll with her to give it to my sister.''

My heart nearly stopped.

The little boy looked up at me and said: 'I told daddy to tell mommy not to go yet. I need her to wait until I come back from the mall.'

Then he showed me a very nice photo of him where he was laughing. He then told me 'I want mommy to take my picture with her so she won't forget me.'

'I love my mommy and I wish she doesn't have to leave me, but daddy says that she has to go to be with my little sister.'

Then he looked again at the doll with sad eyes, very quietly.

I quickly reached for my wallet and said to the boy. 'Suppose we check again, just in case you do have enough money for the doll?''

'OK' he said, 'I hope I do have enough.' I added some of my money to his with out him seeing and we started to count it.
There was enough for the doll and even some spare money.

The little boy said: 'Thank you God for giving me enough money!'

Then he looked at me and added, 'I asked last night before I went to sleep for God to make sure I had enough money to buy this doll, so that mommy could give It to my sister. He heard me!''

'I also wanted to have enough money to buy a white rose for my mommy, but I didn't dare to ask God for too much. But He gave me enough to buy the doll and a white rose.''

'My mommy loves white roses.'

A few minutes later, the old lady returned and I left with my basket.

I finished my shopping in a totally different state from when I started.

I couldn't get the little boy out of my mind.

Then I remembered a local news paper article two days ago, which mentioned a drunk man in a truck, who hit a car occupied by a young woman and a little girl.

The little girl died right away, and the mother was left in a critical state. The family had to decide whether to pull the plug on the life-sustaining machine, because the young woman would not be able to recover from the coma.

Was this the family of the little boy?

Two days after this encounter with the little boy, I read in the news paper that the young woman had passed away.

I couldn't stop myself as I bought a bunch of white roses and I went to the funeral home where the body of the young woman was exposed for people to see and make last wishes before her burial.

She was there, in her coffin, holding a beautiful white rose in her hand with the photo of the little boy and the doll placed over her chest.

I left the place, teary-eyed, feeling that my life had been changed for ever.. The love that the little boy had for his mother and his sister is still, to this day, hard to imagine.

And in a fraction of a second, a drunk driver had taken all this away from him.

Friday, January 4, 2008

Physics + Mathematics

Today I tried, but couldnt get the String theory, but found following description. Worth reading....

The language of physics is mathematics. In order to study physics seriously, one needs to learn mathematics that took generations of brilliant people centuries to work out. Algebra, for example, was cutting-edge mathematics when it was being developed in Baghdad in the 9th century. But today it's just the first step along the journey.

Algebra

Algebra provides the first exposure to the use of variables and constants, and experience manipulating and solving linear equations of the form y = ax + b and quadratic equations of the form y = ax2+bx+c.

Geometry

Geometry at this level is two-dimensional Euclidean geometry, Courses focus on learning to reason geometrically, to use concepts like symmetry, similarity and congruence, to understand the properties of geometric shapes in a flat, two-dimensional space.

Trigonometry

Trigonometry begins with the study of right triangles and the Pythagorean theorem. The trigonometric functions sin, cos, tan and their inverses are introduced and clever identities between them are explored.

Calculus (single variable)

Calculus begins with the definition of an abstract functions of a single variable, and introduces the ordinary derivative of that function as the tangent to that curve at a given point along the curve. Integration is derived from looking at the area under a curve,which is then shown to be the inverse of differentiation.

Calculus (multivariable)

Multivariable calculus introduces functions of several variables f(x,y,z...), and students learn to take partial and total derivatives. The ideas of directional derivative, integration along a path and integration over a surface are developed in two and three dimensional Euclidean space.

Analytic Geometry

Analytic geometry is the marriage of algebra with geometry. Geometric objects such as conic sections, planes and spheres are studied by the means of algebraic equations. Vectors in Cartesian, polar and spherical coordinates are introduced.

Linear Algebra

In linear algebra, students learn to solve systems of linear equations of the form ai1 x1 + ai2 x2 + ... + ain xn = ci and express them in terms of matrices and vectors. The properties of abstract matrices, such as inverse, determinant, characteristic equation, and of certain types of matrices, such as symmetric, antisymmetric, unitary or Hermitian, are explored.

Ordinary Differential Equations

This is where the physics begins! Much of physics is about deriving and solving differential equations. The most important differential equation to learn, and the one most studied in undergraduate physics, is the harmonic oscillator equation, ax'' + bx' + cx = f(t), where x' means the time derivative of x(t).

Partial Differential Equations

For doing physics in more than one dimension, it becomes necessary to use partial derivatives and hence partial differential equations. The first partial differential equations students learn are the linear, separable ones that were derived and solved in the 18th and 19th centuries by people like Laplace, Green, Fourier, Legendre, and Bessel.

Methods of approximation

Most of the problems in physics can't be solved exactly in closed form. Therefore we have to learn technology for making clever approximations, such as power series expansions, saddle point integration, and small (or large) perturbations.

Probability and statistics

Probability became of major importance in physics when quantum mechanics entered the scene. A course on probability begins by studying coin flips, and the counting of distinguishable vs. indistinguishable objects. The concepts of mean and variance are developed and applied in the cases of Poisson and Gaussian statistics.

Natural resources - a silly explanation!

Why should we worry about natural resources... ??

Now we all know that, birth rate is higher than death rate...
Therefore human mass is increasing over time and according to the Einstein's famous equation, E=MC2, energy requirement is also increasing. So this increasing amount of energy should be borrowed from nature. But the energy reaching to the Earth is constant (Via Sun and various cosmic rays).
In addition to that, the spaceships also take a lot of energy to outside the earth...

That is why we are facing natural resource scarcity.


what a silly explanation ha :-)

Tuesday, January 1, 2008

படித்ததில் பிடித்தவை - பொன்னியின செல்வன்

எனக்கு மிகவும் பிடித்த புத்தகங்களில் ஒன்று இது...

ஏனோதெரியவில்லை என்னை மிகவும் பாதித்த பாத்திரம் பூங்குழலி... அந்தப் பெயரால் ஆகவும் இருக்கலாம்.
அடுத்து ஆழ்வார்க்கடியான்... வந்தியத்தேவனின் வழியல்..:-)

எப்படித்தான் கல்கியால் அந்த 2300 பக்கங்களையும் வாசிப்போர் சிறிதும் சலிப்படையாமல் படைக்கமுடிந்ததோ?

கதையில் வரும் திருப்பங்களை என்னவென்று சொல்ல?

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