Skip to main content

Posts

Showing posts from June, 2008

Display and Print Source Codes

One can use either "a2ps" or "trueprint" to print source codes. Today, I am going to experiment with "trueprint". A decent source code printing program should have the following requirements: Indentation is done correctly. Smart Spacing to avoid leaving out one-two lines of codes in previous page. Be able to convert to pdf or ps Be able to print two pages on one side The following are several examples of using the "trueprint" function: bash >> trueprint --portrait --language=cxx --intelligent-line-wrap --four-up --page-break-after-function --no-cover-sheet --output=EMMUtil_cpp.ps EMMUtil.cpp bash >> ps2pdf EMMUtil_cpp.ps EMMUtil_cpp.pdf bash >> rm EMMUtil_cpp.ps Please read the man page for further explanations. good day !!!

Boston Celtic is the NBA 2008 Champion

The sixth game between Celtics and Lakers was over a moment ago. I , as a KG's fan, was very excited to see KG get his first ring, and I truly hope this ring is the first of many to come. Many explanations can be found on why Celtics got their 17th banners. Personally, I think the Celtics and the Lakers have about the same offence and defence powers. I do believe that the main difference is because the Celtics have two game 7 in this playoffs (one with the Hawks and another one with the Cavaliers). On the other hands, the Lakers have never gone to game 7 this year, thus, they have less understanding of the anger/urgency/pressure of being pushed to the brink of failure. No one like that kind of feeling. But, I am convinced that kind of mindset is very important to get something worthwhile done. That is all, folks. Let's see next year if the Celtics and Lakers meet again.

Copy and Paste between Acrobat Reader and Emacs

Copy and paste between Acrobat Reader and Emacs under Linux can only be done once. If you copy and paste from Acrobat and Emacs the second time you will get the same result. Moreover, the “automatic-copy” from selecting does not happen when in Acrobat, and the “Ctrl+V” version of paste doesn’t work in Emacs. I have tried the following (failed) solutions: Use Glipper or Klipper to control the cut and paste history Use kghostview The solution I recommend Use xpdf