Posted on February 1st, 2011
Just one more day is the Chinese new year eve. The year 2010 is on the corner of the past, the new year of 2011 is waving at us. The last couple of months had been very troublesome to me. Mostly are the work related. Well, as I am looking forward to new chapter of the year, those unpleasant things are left behind.
As all being said, let's all have a very cherish, healthy and happy life year forward.
Posted on January 26th, 2011
只因开博以来,各种各样的留言都有。但是都是一些打着广告的旗帜来得。所以决定关闭的留言的功能。
Posted on January 26th, 2011
When setup the cron for running multiple programs, need to put the consumption of system resource in consideration. Especially the ones that will do lots of the I/O, that is not limit to file write, database insert, update. These are the ones that is very expensive when the data is large.
One of the solution to the problem is to setup one cron that will kick off one shell script, which will kick off the programs in the sequential order. Thus, it will cut down the number of the process (CPU, memory, etc) and also eliminate the OUT OF MEMORY problem on the PHP memory.
Posted on January 26th, 2011
最近回想我每每自认为已完成的工作,而实质是问题重重,故障百出。细数这些原因,我在此严重的检讨下我自己。主要的原因有三。
没有认真的的核对数据
一味草率的写码
没事再三的考虑问题
古人云,亡羊补牢,为时未晚。今后的每个工作项目要做到一下几点
反复的读透项目/任务的描述
尝试用Buttom-up的思维来解决问题
每次的项目的完成,但要再三的核对数据
不求数量,但求质量。
Posted on January 26th, 2011
或因在这此工作久了缘故,人也变的老油条了些许。对自己的要求也松散了些。最近接二连三的出了些状况,此风不可长。故此在这留个记录。 今后,一些恶习要改掉。专心的,认真的完成每一个任务。
Posted on September 27th, 2010
在种种的因素捣使下,我得好好的利用时间在2两月内好好的把蟒蛇与姜高相结合的利器磨好. 在11月30日我再来跟进此贴.
Posted on September 26th, 2010
Last night, me, Darren and JinLong three of us headed to Dallas BBQ in the St Marks for the dinner after long hours of playing ping pong. We just happened had the Japanese sushi on Friday night, and no one was into the hot and spicy Szechuan flavor yet. So, this BBQ rips was the choice recommended by D.
Dallas BBQ is located in St. Marks, on the corner of St. Mark Place and 9th St or 132 2nd Ave. We walked there from NYU law student dormitory, which is not far. D took the lead and I was just the follower. It is my first time there and my first impression of it by the look was just an ordinary restaurant that you would find anywhere in the NYC.
It is a small but not tiny restaurant stand on the corner of the street, and have tables and seats on the sidewalk that swing around the corner and barred with little fence. We walked in and agreed by a waiter whom I looked very familiar but don't remember who exactly he is (and I don't bother to find out). The waiter led us to outside tables and we settle on the last table in the corner on the back. D and JL looked at the menu and tried to order something and they did. We ordered two entries, Bar-B-Q Baby Back Ribs and Rotisseried Chicken and Crispy Shrimp. The meal came in very big portion, and that should serve three of us. Also, we ordered three drinks. D got Virgin Piña Coladas, I had Blue Bull and JL got corona.
They brought up the drink shortly after the we ordered. My Blue Bull was awesome. It taste a bit of sour and sweet with mint flavor, which gives the cold touch. I liked it. The waiting time wasn't too bad, roughly about 5 to 10 minutes, the food is ready. The Bar-B-Q Baby Back Ribs was served in one long narrow dish. It comes with French Fries, corned bread, and tender BBQ ribs with sources all over it. The Rotisseried Chicken and Crispy Shrimp comes in mid-size of dish, that has the fried shrimps, corn bread and baked potatoes, and medium cooked steak.
We all thought the steak was somewhat over cooked. But the BBQ was so tender, and tasty. We were all eating and chatting over various aspect of topics in no particular order. Food was good and chatting was fun, and we were all full. It was a nice dinner that I have, and I am sure I will bring my wife here sometimes.
Posted on September 20th, 2010
Sometimes under the linux, there are some .nfsxxxxxxx file that is can't be removed with the rm command. The creation of these files are the ones that was open (ex. edit file) and not being close properly due to lost connection or something. So the file system is still sparing the resource to these files, so to remove these files, we first then to how out what pid the files are linked to. Use the lsof can tell the info on these files
lsof .nfsxxxxxxxx
thus, will give you the pid number to the file, and we now can just issue the kill -9 command to release the resource, then the ghost file is automatically removed as well.
kill -9 pid_number
Posted on September 16th, 2010
MacBook Pro is a great laptop to use, however, some of the default installed softwares are couple version behind, such as Apache, python etc.. Well, it does not end here yet. There are two alternatives to get those goodies install on the Mac. They are Fink and Macports. Both are the program repository for porting the linux open-source software to Mac. What differiate the two is that Fink following the debian suite and Macports is mac. However, as what most current users suggested that Macports get update more frequency than Fink. So I decided to go with Macports.
To install the Macports, Apple Xcode developer tool is a must and that can be download from the Apple Developer Center. Once that Xcode is install, then get the copy of the Macports and install it as well. The installation process for the both is very straight forward, just follow their instruction.
All the softwares installed via the macports is under /opt/local directory. The folder layout of that folder is very similar to Ubuntu system. To install the software in the macports is very easy, just use the following commands
sudo port install package_name
sudo port uninstall package_name
As my needs, I install the PHP, MySQL, Apache2, Python, and Django. So, I install all of them via the macports using the command above. One thing is worth of noting is that after installed the Django, I need to setup the symbolic link to django-admin.py in the /opt/local/bin folder. So that the system will find its path to django-admin at execution time.
That is it. I got all the web development tools intall in my wholly new MacBook Pro.
Posted on September 16th, 2010
As a friendly reminder from ATT about the monthly bill is ready when I checked my email this morning, I logged into the ATT account online and check the bill. It came up to $156 something, I was like, WFT, why it is this much again.
So, I opened the bill in the full view, and checked each line (I have five lines in total on one account). Not surprisingly, there is two charges that was never requested but charged on one of the lines. I went look the detail of the charge and shown the charges are "Road Assistant" $2.99 and "Locate your family to up 5 people" $15.99. Man, I am charged for the "Road Assistant" for the second time again (was charged it on one of the other line earlier).
I called the customer service, and said: "I just spot check the bill and find there is two services that I am never requested but get charged." I read a lot of complaints about the ATT customer services online. However, I am never have any hard time with them. Maybe I am always in luck. So, what he did is check the services and remove all them and credit the charges back to me no question asked. So my final bill get adjusted down to $130ish.
I am opting to sign up the paperless statement, but I think I will pass that for now. Because I know I am not going to check the bill that often if I sign the paperless. Should be very suspicious about every bill that I am paying.