April 2008
6 posts
Dealing with XML namespace in Javascript
JavaScript++かも日記: ブログタイトルを読み込む2
If you process XML with Javascript, note that you have to use getElementsByTagNameNS, but you can’t use getElementsByTagNameNS on IE. The part of sample code for this issue in the linked article is
if(document.all) var wksubject = xdoc.getElementsByTagName("dc:subject") else var wksubject = xdoc.getElementsByTagNameNS( ns_dc ,"subject")
(The sample code in...
Markdown viewer
I have tried several ways to write and organize my personal memo. I used to use Twiki, Trac, etc. But wiki is too much. You have to set up web server and write document on your browser. So I wanted another way which is easier than wiki. I was looking for something like this. The data is text file, but it’s possible to customize the presentation.
I found that Markdown is the one. I can write...
Simple rule for deciding what logic to put where
Best Practices in MVC Design with CakePHP
Anything that doesn’t deal in some way with your application’s core business logic (i.e. session …When you are not sure if you should put a logic into model or controller here is a good rule to remember.
Anything that doesn’t deal in some way with your application’s core business logic (i.e. session management,...
Assign an HTML file to the Internet zone
When you open HTML file with Javascript from local HDD, you see security alert at the top of browser window. To avoid this, put the following strings at the top of your HTML file.
<!-- saved from url=(0014)about:internet -->
The ‘14’ represents character length of ‘about:iternet’.
Thanks JavaScript++かも日記, see also How to strengthen the security settings for the...
Five reflections
Gosei (5 reflections) is 5 questions to reflect a day by student of bluejacket school in the early Showa Era. The linked article describes that the good point of this is evaluation of your attitude. Here is my translation.
Were you sincere?
Were you true to your word?
Were you full of spirit?
Did you do your best?
Did you scamp your work?
According to wikipedia, the following...
Illustration of open source licenses
The linked article explained characteristics of several open source licenses and possible combination of it when you use it. The following licenses are explained with illustration.
GPL
LGPL
MPL (and CPL, EPL)
MIT license and BSD license
And CC (Creative Commons) is also explained in the article.
Summarizing basics of these license according to the article,
GPL
If a software contains...