Archive

Archive for the ‘Mac’ Category

World Time Clock

September 18, 2008 1 comment


The Clock APP of iPhone/iPod touch has World Time Clock Feature. The feature is very useful for me. Many developers from variouse countries apply to XOOPS Cube development. I can get the time of their countries.

Now Korea and Japan is in the same time zone, so I added Europa and South-America to the World Time Clock.

Categories: Mac, XOOPS Cube

RapidWeaver gives hints to us

April 24, 2008 3 comments

I had touched many many CMS, especially XOOPS2, eZ publish, TikiWiki and RapidWeaver. XOOPS2 shows the Nuke Doctrine. eZp shows the Page-Base Doctrine that is antithetical to XOOPS2. RapidWeaver shows a balance and gives big hint to us.

Problems of X2

XOOPS2 is good core, because module developers are promised freedom on programing. This freedom means that programers don’t need to consider connectivity with the core. The core manages only an existence of modules. The core doesn’t know what a content is. And each module defines each content.

But, it’s a problem that the core doesn’t know what a content is. Site owners can assign modules to the site, but can’t assign pages to the site. For example, it’s impossible to make a child pical page under a pico page. That is a spec and a limitation.

eZp’s merits & demerits

Personally I call a style like eZp “Tree Style”. That’s just CMS. Site Owners can make a new node of the site tree as a content under the root node. Also the owners can add a new nodes under the existing node. This issimilar to file system, ‘intuitive’ and flexible structure.

A node is an object that the eZp core defines. It’s possible that each nodes use each template, total access control, multi-language layer and the general management. The general management means that site owners can edit, move and delete node, even if the node is a special node that human being should not control directly.

Any contents should be controled as an object that eZp defines. That’s a merit and a demerit. When you get that you can assign static pages freely, you are surprised at possibility of the Node Style. But, when you try to install forum or blog like XOOPS, you encounter issues.

eZp handles a content as an object. A static page is an object and a node. Also a comment of forum is an object. A topic is a child node of the forum node. And, a responce is a child node of the topic node. Also a entry is a child node of the blog node. And a comment and a trackback are a child node of the entry node.

If your site have 344 messages of the forum, 36 entries and 2056 SPAM comments for the entries, the tree of your site has many node and complex structure. I don’t agree that a grain size of my profile page equals a grain size of a SPAM comment that recommends Viagra.

You can handle all contents as a node and an object of eZp, so it’s possible to move a comment node from the blog to the forum, make a multi-language layer to a comment node. But, there is no point.

eZp is very very excellent professional CMS. So it is not best way for all XOOPS owners. “Node Style” that handles all content as an object that the core defines is not perfect solution.

RapidWeaver

RapidWeaver is home page creation tool at Mac OS X. Basically, the RapidWeaver is similar to eZp. You add sibling pages and child pages to the existing page. RapidWeaver recognizes a page. So it’s possible to move, edit and delete each page.

But, Blog, Photos and Download type page are handled as a one page. Blog has many entries. These entries are data that Blog page manages. RapidWeaver doesn’t handle each entry as a page. You can move blog page to other page, but can not fetch a entry from the blog and move the entry to other page. That’s right. Nobody wants to do it. Of course, you can edit and delete entries at the blog management. See the following screenshot for more informations.

RapidWeaver gives many hint to us, so check 30 days free trial version if you have Mac OS X.

Categories: Mac, XOOPS Cube

Parallel programming for multi-core CPU

April 13, 2008 Leave a comment

I’ve finished reading this book. The book is sold in only Japanese, is written by FIXSTARS that is famous company about CELL programming, and explains how to start parallel programming with pthread and Wind32 thread API for the beginner. A little explanation about OpenMP and CELL is at the back of the book.

The book teaches data parallel, task parallel and pipe-line parallel to us though sample source code. Even if you have forgotten about pthread, you can recollect all. But, because Mac OS X doesn’t implement sem_init(), it is impossible to practice a sample program about semaphore. However, these days, condition variable of pthread is used instead of semaphore, so that’s no problem.

P.S.
This book is sold in only Japan. In addition, the world have many books that may be better than this book. But, I tried to write this entry to keep same content of my two blog if at all possible.

Categories: Mac, Multi-core Tags:

PowerPC Personal Computer

March 21, 2008 Leave a comment

All major game consoles take PowerPC class. There are many special technics to write high-performance code on PowerPC. In holidays, we were able to try it with ApplePC, but that’s old story. Because ApplePC changed from PowerPC to Intel, there are not reasonable PCs to practice in PowerPC programing at home now. How can I try PowerPC and multi-core programing in home?

There are old mac mini, latest iMac and PLAYSTATION3 in my home.

My old mac-mini is not multi core, but that’s valuable for me, because the mac-mini is small, light and good to enjoy PowerPC programing.

The current my PC, iMac is dual core and good to practice in multi-core programing. However, intel core duo is not taken by major game consoles. Therefore, I can practice in pure multi-core programing, but that’s not useful directly for my job.

PLAYSTATION3 may be useful. It’s possible to install Linux and practice in heterogeneous muliti-core programing. Of course, heavy linux environment is inconvenient to program, than PS3 SDK, but there is no chose, because standard PCs don’t have heterogeneous multi-core. Fortunately, we can get all of tool-chain of PS3 except specialized libraries like SPURS.

PowerPC multi-core PCs like Power Mac G5 are valuable very much in retrospect.

Working hours are not enough to research multi-core programing. I should have researched more in R&D status. Now, our team had completed R&D and began developing a product. That’s good. But, I want time for more trial and error. My PCs are valuable a little for that.

Many expert developers got ways in multi-core parallel processing in games. I don’t arrive at such stages, yet.

I bought iMac

January 16, 2008 1 comment


Although I bought mac mini a few week ago, I bought also iMac. This iMac has enough spec for Vista, 3D Games and 3D Game Programming, so I could restart all of my free time projects. Am I rich? No, this is the family contribution.

I gave the HDD recorder as X’mas present to my parents this winter. Also my parents planned to give something to me. And they exchanged my new mac mini with a new iMac. I moved all data of a new mac mini to this iMac and sent the mac mini to my parents.

I planned to iMac, but I eliminate the need for buying it. I consider if we use a net to keep in touch, because it’s easy to publish a private blog for my family on dot mac.

Categories: Mac

mac mini came to home instead of iMac

December 29, 2007 1 comment


It’s a long story.

I have a friend who work at the electronics store. He is from the same province as me and is the same Carp fun as me. This winter, the poor baseball team came into a boil. Two star athletes considered leaving from the Carp by using FA. I discussed it with him.

I: “I believe Mr. Arai and Mr. Kuroda. They will decide to remain.”

He: “Impossible. They are in two minds. It means that they don’t have the reason why they remain. They will leave from the Carp. So the Carp will be end.”

I: “They are really hero of Hiroshima, so they will decide to remain and will become the winner as a player of the Carp at the next season. Bet your butt. If Arai or Kuroda will go, I will buy high-price computer from your store. But if both of them will remain, I will buy nothing from your store next year.”

And, both of them have gone. There is no justice in the world.

By this promise, I had to buy a computer with 200,000 JPY and greater. I promised him to buy iMac with 198,000 JPY and went to his prefecture. However, he said that his store can not handle Apple products. “Tell me first!”

Instead of iMac, I had to buy something as much as 200,000 JPY, to keep faith with him. Such electrical appliances are few. My choice was sony HDD/Blu-ray recorder. After a few days, I bought a new mac mini to exchange with PowerPC mac mini/XP, because my budgets were slashed.

This new mac mini has enough CPU to better my life, but the graphics spec is GMA 950 and only shared 64MB VRAM. The shader model of GMA 950 is 2.0, but it doesn’t have VertexShader and emulates it with software. For not less than a year, I can’t pursue GPU programing in my home, because I’m too busy from next month to March 2009. So the poor GPU spec will not be a big problem. But I’m sorry that I can’t play rich PC games like Crysis.

Categories: Baseball, Mac
Follow

Get every new post delivered to your Inbox.

Join 54 other followers