As if the great firewall of China is not enough, they want to put a Dam on its people’s computers to reduce the flood of porn (so they say). The software is called “Green Dam-Youth Escort”. However, I really don’t think Chinese Communist/Capitalist government really cares about blocking porn. They require every new computer to install this software because they want to block other political websites and control the information flow. China wants to have its cake and eat it too. It likes to get the benefit of modern technologies and internet but also want to control information flow. I think they are fighting a losing battle. Sooner or later, they will lose.
Eclipse is a great tool but like any great tool with long history. I think Eclipse is getting bloated. It is so easy to break by just doing a simple upgrade.
Finding nursing homes for your elderly can be difficult. There are not many good site out there that is easy to find by simply typing in an address. So I decide to create one using Medicare’s free data. It is call US Nursing Home Finder . I think it is the best site to find a nursing home in US.
I need to find if there are some duplicate class in the a list of jar files. Here is what I did:
Go to the directory contains the jar files, can run this command:
find . -name “*.jar” -exec jar -tvf {} \; > list.out 2>&1
Then run:
cat list.out | grep Somepattern
I got this error when deploy and redeploy a service: java.lang.IllegalStateException: Endpoints already been registered or something like that. Google it without much luck. I will have to go to server/default/work directory and remove the jbossws folder and also the particular web service folder and then restart jboss. Then the problem will go away. JBoss sucks!
- install xcode tools from installation cd
- install Macports. go to: http://www.macports.org/
- sudo port selfupdate
- sudo port install mysql5 +server
- sudo port install ruby
- sudo port install rb-rubygems
- sudo port install rb-termios
- sudo port install rb-mysql
- sudo port install subversion +tools
- sudo port install git-core
- sudo port install freetds
- sudo port install rb-dbi +dbd_odbc
- sudo port install rb-odbc
- sudo ln -s /opt/local/var/run/mysql5/mysqld.sock /tmp/mysql.sock
- sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist
- sudo mysql_install_db5 –user=mysql
- sudo gem install -y rake
- sudo gem install -y rails
- sudo gem install -y capistrano
- sudo gem install -y mongrel
- sudo gem install -y mongrel_cluster
- install eclipse
- install Aptana plugin
- install Aptana Radrails plugin
Oracle is offering to buy Sun at $9.50 per share (http://news.yahoo.com/s/ap/20090420/ap_on_bi_ge/oracle_sun). That is bad news for Sun, Java and MySQL. Sun bought MySQL and I thought it was a great idea to compete with Oracle. Now MySQL is under Oracle and you know Oracle is going to kill MySQL because they don’t want free open source database to compete with their product. It is time to fork MySQL to a different open source project so that it won’t be controlled by Oracel.
Just created a website called MoMingle.com using ror plus a few plugins including geo-kit and twitter4r. It allows people to post location-based messages. It is definitely a good learning experience for me to design and build this website.
I have successfully moved all my ruby on rails websites to slicehost. No more Godaddy. Slicehost is great. Best hosting provider ever.