Sunday, March 23, 2008

PHP Warning: Module 'json' already loaded in Unknown on line 0

After installing a LAMP server on an old P3 800MHz machine - yes it is so old that it was picked up from my apartment storage room, I typed "php -v" and it says in the first line :
PHP Warning: Module 'json' already loaded in Unknown on line 0

It seems to be the modules json is loaded twice, I looked into the php.ini files and there it is:
extension=json.so

Simply commenting out that line solves the problem and yet leaves me the doubt where is it first loaded besides the time php.ini calls it. I guess there is something with the php5-json package I installed, it may already be included in php5 library and automatically loaded. That is not bad at all since the Debian team will maintain that package and give me the latest one. :D

Sunday, March 16, 2008

How did I tame my IE6 stand alone

Hooray,

Today morning, I wrote an entry about how difficult it is to have Firefox, IE7, IE6 and Safari running on a single machine. Now it is not really a matter anymore, thanks to someone has made a portable IE6, I can have an old friend back. There is also a Windows version of Safari 3, but it is still at beta stage and for some unknown reasons it crashed on my XP. (I will figure it out later.)

There are couples of tweaks need to be done before having IE6 operate properly. You can follow it here to enable cookies, append a "IE 6" title to the browser and fix the conditional comments feature in CSS. Life is just half beautiful again.

Later on, I found a Javascript bug on my site and, well, it is time to google for a good IE script debugger, I found this and this, and decided to use IE Developer Toolbar and Debug Bar since it looks neat and user-friendly. The functionality is somehow similar to the commendable Firebug of Firefox. If there is any problem, Script Debugger for Windows is my first candidate in the waiting list.

Web testing obstacles

Hi friends and folks,

For those who keep up with what I am currently doing, you may notice that our website is at pre-beta testing stage and I am very excited every time I think about it. But now there is one difficulty that I admit that I do not know how to solve, hope you guys can help.

I am testing HTML, CSS and Javascript on Firefox and IE7, the site seems to run well on those 2 standard browser but since I received several issues that it is broken on IE6, Safari and other older browser, the headache has started. For CSS issues, although it was the first pain for my head and I am not a CSS master, it was solved quickly by detecting and adding separate CSS file to separate browser.

Now comes the interesting part, playing with Javascript is fun but it is only the joy when you have the so-called "toys" in your hand. Without those tools Firebug, WebdeveloperToolbar, I feel confused. And that is the situation I currently face with IE6 and other unfamiliar browsers. It is even worse when my working environment only has Firefox and IE7. Fooling around between my laptop and PC is a waste of time. I really want to find a solution having everything on a single machine, I also hope in the internet, someone has made a Javascript debugger on IE6 or Safari. Then life should be much easier.

Well, meanwhile, I am downloading Safari on Windows and IE6 standalone to try out; fixing some PHP bugs with Eclipse and eh oh it's Sunday, may be going to the pool will refresh my mind a little bit.

Sunday, October 8, 2006

Người bán vé số

Chiều nay đi qua Sở Thương Mại chợt thấyngười bán vé số cụt hai chân đi bằng cái ghế gỗ, mời từng người mua vé số bên ngoài quán cafe sang trọng với bãi giữ xe toàn là Delan, Spacy. Hôm nay cũng là ngày bác Bill đến Việt Nam chơi, không biết nguồn quỹ từ thiện hàng tỷ đô la của ông có giúp gì được cho những người ấy chăng. Mà có giúp chắc cũng vào tay các quan lớn hết thôi, còn đâu đến những người "cù bất cù bơ".


Nếu một ngày tôi giàu có tôi sẽ tìm hết người già về lại một vùng quê, ở đó sẽ có một viện trẻ mồ côi để các ông bà già chăm sóc chúng. Ước mơ vẫn là mơ ước. Muốn vậy mình phải chăm chỉ làm việc kiếm tiền thôi.


- Rùa lật ngửa

Monday, May 29, 2006

Hello Vietnam

Chào cả nhà , đã lâu rồi /me không viết blog (dù đã nghỉ hè 2 tuần , nhưng còn nhiều việc để làm quá ) . Nhân dịp thức trắng đêm + coi blog bạn bè + nhớ lại những kỷ niệm xưa cũ ở trường TĐN + tâm trạng khi về VN = tạo nên entry này , đôi điều bộc bạch trong những giờ cuối ở Finland .

 

Một , /me coi blog của bạn bè mà chợt giật mình, bỗng sực nhớ ra là mình cũng trải qua 3 năm high school. Có lẽ cuộc sống bận rộn (?) hằng ngày ở cái xứ lạnh lẽo khiến ta quên, cũng có thể hình ảnh của /me trong 3 năm đó nhạt nhòa, chẳng khiến phải mất công nhớ. Tiện nói về nhớ, đúng là chẳng ai nhớ đến mình, chỉ trừ thằng Thiện, vài đứa bạn thân lâu lâu hỏi thăm. Chậc , cái thời học sinh cấp 3 thật ko có kỷ niệm gì, ko bù cấp 2 đủ trò quậy phá, đánh nhau trầy da chảy máu nhưng cảm thấy vui vui .

 

Hai , chỉ còn hơn 4 tiếng nữa mình rời Finland . Cái đất nước khi /me đặt chân tới là 1 trang mới trong cuộc đời. Mọi thứ đều thay đổi, ngay cả cách nhìn đời, cách kết bạn. Cuộc sống với những người Việt ở đây ấm cúm như ở nhà. Học hành cũng thay đổi khá nhiều, trước khi ở VN, /me tham gia những trò hack vớ vẩn mà cứ tưởng mình là thứ dữ , là giỏi nhưng thực sự không phải. Thật sự chưa lúc nào thấy mình kém cỏi như bây giờ , không thể nào mở mồm nói chuyện với các geeks trong IRC.

 

Finland , Kuopio /me đã coi là nhà, xa nhà cũng thấy nhớ nhớ. Nhớ cái lạnh buốt xương , những cái thở dốc khi đap xe leo đồi đi học. Nhưng VN vẫn đầy tâm trạng hơn . Hello Vietnam , welcome me back. (Không chờ được cảm giác gặp lại ba mẹ , họ hàng, dứa em gái ngổ ngáo của mình). Dù gì cũng chuẩn bị cho cái nóng Sài Gòn , cái xã hội vội vã tất bật , và lo công ăn việc làm. Hy vọng về nước lần này sẽ học thêm được nhiều điều .

Tuesday, May 23, 2006

Gradually sudden shocks since I stepped in Europe.

To reminisce about the day I said goodbye to my family and friends , I have spent 1 year here mostly in Finland and I couldnt imagine such lots of shocks I have had to encounter .

 

The first thing , nowhere else but in Vietnam, life is enclosed with warm and kindliness . In this case , I mention the way people here treats each other,  especially in Finland.  Although they are gracious, good-hearted , it has been a custom for one person that he lives on his own and keeps silent until others query him  . Finnish is quiet (true in both literal and figurative sense).

 

The second thing , technology is nothing without distribution, effort and money . The first place in Europe where I set my foot was German . And it is inevitably indifferent from what I have thought in VN . Yes , it has tons of Ipod , XboX 360 , PDA; cheap , luxuriant mobile phones . But that creates the tendency to buy and more money goes away from my pocket . I can only feel comfortable if i have such amount of money . Actually , I dont have that much so that I dont feel easeful here .

 

So what does it mean : technology is nothing without distribution and effort . It means I'll get what I deserve to get . There is no longer the term I set in my mind years ago : study IT with inspiration ; but only being industrious can make a breakthrough in the ant-holl of thousands IT ants (Life is not easy , for sure).

 

.... to be continued with next entry ...

Sunday, March 26, 2006

Einstein Sprichwort

"Das Schönste, was wir erleben können, ist das Geheimnisvolle. Es ist das Grundgefühl, das an der Wiege von wahrer Kunst und Wissenschaft steht. Wer es nicht kennt und sich nicht mehr wundern, nicht mehr staunen kann, der ist sozusagen tot und sein Auge erloschen."

 


“Cái đẹp đẽ nhất mà chúng ta có thể trải nghiệm được là cái bí ẩn. Đó là cảm thức nền tảng trong cái nôi của nghệ thuật và khoa học chân chính. Kẻ nào không biết đến nó, không còn khả năng ngạc nhiên hay kinh ngạc, kẻ đó coi như đã chết, đã tắt rụi lửa sống trong mắt mình”

 


"The fairest thing we can experience is the mysterious. It is the fundamental emotion which stands at the cradle of true art and true science. He who knows it not and can no longer wonder, no longer feel amazement, is as good as dead, his eyelight has been extinct."