Building house on rock. (Matthew 7:24)

Web Technology

Switch on the LAMP with YUM

LAMP - Linux Apache Mysql PHP is the most common and easy setup for web hosting. It took me a while to clear some tedious problems I faced though. To make sure I don't have to dig out the net in near future, I'd better jot down the command I used for anyone's reference.

After some annoying time, I changed my setup to YUM, then it was as fast as switching the lamp on...

## to resolve DNS: ##
vi /etc/resolv.conf
search localdomain
nameserver 202.45.84.58
nameserver 202.45.84.59

## to add repository information to YUM ##
## gpgcheck=0 to make sure the unsigned mysql-devel can be installed ##
vi /etc/yum.repos.d/dag.repo
[dag]
name=Dag PRM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=0
enabled=1

## to install LAMP ##
yum install httpd httpd-devel
yum install mysql mysql-server mysql-devel
yum install php php-mysql php-common php-gd php-mbstring php-mcrypt php-devel php-xml
service httpd start
service mysqld start

## to configure mysql ##
/usr/bin/mysqladmin –u root password ‘111111’
/usr/bin/mysqladmin –u root -p111111 password ‘222222’
/usr/bin/mysql –u root –p
> use mysql;
> DELETE FROM mysql.user WHERE user=’’;
> FLUSH PRIVILEGES;
> GRANT ALL PRIVILEGES ON my_db.* TO ‘user‘@’localhost’ INDENTIFIED BY ‘222222’;

Files under /var/www/html is then php enabled~ :)

Eric

Algae and Browser

This time, I will let alone the technical stuff like covered call, albeit it's quite important. I want to talk about some interesting stuff from which I read recently.

Widgets Gadgets

Widgets or Gadgets are the new evolvement of the Web 2.0, of course again, not many people understand their meaning. I of course also cannot give an absolute answer, however, since Mar., I have been working on a Flash based widget myself, and I have this definition. Widgets or Gadgets are the mini applications which can call the web services through different interfaces. The through different interfaces part were added after my colleagues are talking to me about their fantasy on widgets and Nokia people told me about the widgets on nokia phones.

Google Map, I'm loving it

As there are so many movements about internet companies, as Microsoft, Google and Yahoo have all acquired their Internet Advertising Agents. Nearly the whole internet advertising industry has been eaten in last month after Yahoo bought RightMedia for $680m, Google bought DoubleClick (a major client of Yahoo) for $3.1bn, Microsoft bought Aquantive for even higher $6bn and leading advertising group WPP bought 24/7 RealMedia for $649m.

Flash 8

I know flash since Flash 4, at that time, probably I could have known all the functions ni the ActionScripts, however after these years of revolutions, I am left behind.

Though people may think I am good at writing Flash, (similar to nothing is impossible for PHP), there are something new and impressive I have recently found.

FFMPEG

That's amazing, can't believe there is such useful project existing.

Previously, I was quite impressed by the vendor platform of converting videos to FLV. However, after today, seems it is not that amazing afterall.

http://ffmpeg.mplayerhq.hu/

FFMPEG is a project for video and audio coding conversion. Today, I have taken a look and without trying the hassle of compilation, I have transcoded a 3GP to FLV video using windows command line.

Google Web Toolkit

Google is one of the best R&D company, and it's R&D is not only for themselves, but for everyone.

Yesterday, according to TechCrunch, I downloaded the Google Web Toolkit to play for a while. OK, I can tell you, that's the great news for Java geeks. As I always leave Java to Kennis, I find it amazingly troublesome. Well, I am not good enough as a programmer maybe.

Google Web Toolkit is one which you can use Java to write and after compilation, it will generate AJAX content, XML, HTML and Javascripts.

Friend of a friend

http://en.wikipedia.org/wiki/Friend_of_a_friend

It's one of the most crazy things I've seen about this web. FOAF is a standard to define your relationship with another person, as friend.

I have been writing some sort of Web 2.0 site and I am still thinking if I should use FOAF. However, seems it is just for sake of telling people I know this protocol than having real usage on it, at least today.

Anyway, it's interesting to know about this XML protocol for friends.

Meaning of Web 2.0

Here I found a piece of description which serves the best about what Web 2.0 actually means:

In addition to favoring simpler solutions built by leaner teams, the stuff labeled "Web 2.0" tends to have technological commonalities.

On the back end, it is most often powered by open source technologies like PHP or (especially) Ruby on Rails.

On the front end, it is mainly built with web standards—CSS for layout, XML for data, XHTML for markup, JavaScript and the DOM for behavior—with a little Microsoft stuff thrown in.