Personal tools
You are here: Home kaeru's blog Archive 2007 August

Entries For: August 2007

2007-08-31

Merdeka!

http://kaeru.inigo-tech.com/blog/blog-images/malaysia.png

50 years of independence, and let's keep it that way!

2007-08-29

PloneSurvey for Plone 3.0

Filed Under:
Frameworks take longer to understand when initially developing, but when something uses a single standard framework, fixes and updates are a lot easier across the range of Plone add-on products.

PloneSurvey is a great online survey application, complete with branching, sub sections and export as csv/html of results. All a user needs to do is click and add different types of questions.

I've created  a patchset that applies to the current svn trunk version of it, that updates it for Plone 3.0 compatibility. I'm currently testing it, and so far it seems to work ok.

In keeping with Inigo commitment, all development is made available as FOSS and any changes are submitted upstream whenever possible.

http://plone.org/products/plone-survey/issues/37

In other news, a local SME, Central Management Catalogue Agency Sdn Bhd have successfully deployed Plone for their Intranet use as a replacement for SharePoint. Their IT project manager has gladly allowed their details to be shared and I will be providing a write up of their experiences.

IOSN ASEAN+3 is running with the support of InWent a programme called FOSS@Work which supports FOSS usage in SMEs in this region. I think a case study section for this project would be good to share experiences.

2007-08-28

loading multiple files that match a string with vim

Filed Under:

loading multiple files that match a string with vim using command line unix tools

Using the ever useful grep, with -l option, it outputs only the matching filenames:

grep -rl --exclude '*.svn*' CMFCore *

vim loads multiples file in one line separated by spaces. So I need to join the multiple lines into one, separated by space. Here we have the paste command. For each line, put a space as the separator:

paste  -s -d " "

Finally I wanted vim to load this in GUI mode with tabs, so we put it together:

gvim -p $(grep -rl --exclude '*.svn*' CMFCore *  | paste  -s -d " " -)
  • the part inside the $( ) is the output of the command.
  • using pipes | the output of grep (the list of files) is read by paste
  • the - in paste is telling it to input the stdout output of grep

I then quickly have my editor setup for work,

http://kaeru.inigo-tech.com/blog/blog-images/gvim-tabs.png/image_preview

Opium - History conveniently forgotten

Filed Under:

Reading some news regarding the large increase of exports of Opium in the English media today, I find it interesting that they conveniently ignore Britain's involvement in the Opium trade. They only cite a UNODC stat that says it's the largest opium farming production since 19th century China. Now if you didn't know about the history, you would think that the British had nothing to do with this. Ironically it's British troops today that are supposed to curb this activity in Afghanistan today.

To quote Wikipedia article on the Opium Wars in the 19th Century.

"As a result of high demand for tea, silk and porcelain in Britain and the low demand for British commodities in China, Britain had a large trade deficit with China and had to pay for these goods with silver. In an attempt to balance its trade deficit Britain began illegally exporting opium to China from British India in the 18th century."

Feel free to enlighten yourself with details of the two opium wars, and find out why Hong Kong was a British colony for so long.

2007-08-26

Chinese Steamed Fish

Filed Under:

On Cooking

Our 7 year old microwave oven, kicked the bucket a few weeks ago, and we replaced it with one of those combo ovens with a steam function. So I gave a go at cooking steamed fish.

There were a few recipes on the Internet, just like open source, while you can follow stuff step by step, you should get an understanding of what the ingredients do, to become a a better cook. With cooking, this involves a bit of experimentation, and after a while you start getting the hang of things.

I started of from this recipe. I changed a few things though, by stuffing the fish with chopped ginger, garlic and shallots. To make the sauce inside the dish tastier, I also liberally covered the base with onions and shallots also. Ikan merah (Red Snapper) works well for this. Instead of salad oil, I replaced it with sesame seed oil.

http://kaeru.inigo-tech.com/blog/blog-images/steam-fish-raw.jpg

The autocook microwave+steam feature undercooked it, so I make it a note to increase the weight next time by a 100 or so grams next time. So in total it's about ~20mins.

http://kaeru.inigo-tech.com/blog/blog-images/steam-fish-cooked.jpg

It turned out ok. For improvements on the next version, I think I would add some pickled green chillies (in vinegar) to the sauce to spice it up a bit.

Gourmet

While most of the focus on FOSS is on stuff like OpenOffice etc. one should not forget that, for a lot of normal home users that personal interest and hobby applications is what they could also use the computer for. For wannabe "Naked Chefs" or "Chef Wan", you can keep your collection in Gourmet. It also has nifty features like shopping lists and nutrition calculator. The former I find extremely handy.

http://kaeru.inigo-tech.com/blog/blog-images/gourmet.png

For more on this, check this posting by a user who converted from Windows:

http://www.nabble.com/Great-program-p8020886.html

Compared to the programs I was using on Windows before going to Linux this is an amazing program. The windows programs that were purchased would crash continuously, didn't like it if the files got too large, lost recipes with crashes and hated pictures beyond a certain size.

Enjoy your meal :)


Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: