<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/wordpress-mu-1.2.3-2.2.1" -->
<rss version="0.92">
<channel>
	<title>Shunsuke Saruwatari</title>
	<link>http://www.illigal.uiuc.edu/web/saru</link>
	<description>Personal Webpage</description>
	<lastBuildDate>Wed, 24 Oct 2007 22:23:20 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>[jena] how to read seq</title>
		<description>jena can read seq from rdf file.

If there is following rdf,


&#60;rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" &#62; 
  &#60;rdf:Description rdf:about="http://www.illigal.uiuc.edu/saru"&#62;
    &#60;rdf:_3&#62;Uncategorized&#60;/rdf:_3&#62;
    &#60;rdf:_2&#62;programming&#60;/rdf:_2&#62;
    &#60;rdf:_1&#62;Books&#60;/rdf:_1&#62;
    &#60;rdf:type rdf:resource="http://www.w3.org/1999/02/22-rdf-syntax-ns#Seq"/&#62;
  &#60;/rdf:Description&#62;
&#60;/rdf:RDF&#62;


And, you execute following code,


Model model = ModelFactory.createDefaultModel();
InputStream in = FileManager.get().open("sample.rdf");
model.read(in, "");

seq ...</description>
		<link>http://www.illigal.uiuc.edu/web/saru/2007/10/24/jena-how-to-read-seq/</link>
			</item>
	<item>
		<title>[jena] how to write seq</title>
		<description>JENA can make list using seq on RDF.


Model model = ModelFactory.createDefaultModel();        
        
Seq seq = model.createSeq("http://www.illigal.uiuc.edu/saru");        
seq.add("Books");
seq.add("programming");
seq.add("Uncategorized");
        
model.write(System.out);


We can create seq by ...</description>
		<link>http://www.illigal.uiuc.edu/web/saru/2007/10/24/jena-how-to-manage-seq-1/</link>
			</item>
	<item>
		<title>[jena] minimum rdf</title>
		<description>
Model model = ModelFactory.createDefaultModel();        

model.write(System.out);


this outputs


&#60;rdf:RDF
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" &#62; 
&#60;/rdf:RDF&#62;

 </description>
		<link>http://www.illigal.uiuc.edu/web/saru/2007/10/20/jena-minimum-rdf/</link>
			</item>
	<item>
		<title>[LAMP + Ajax] naming rule</title>
		<description>I couldn't find naming rule for LAMP + Ajax. So, I am making my naming rule. This rule might reduce bugs in javascript and php.

In HTML tags

tag id attribute must be lower case and finished at "_id"
tag class attribute name must be finished at "_class"
tag name attribute is not added ...</description>
		<link>http://www.illigal.uiuc.edu/web/saru/2007/10/04/lamp-ajax-naming-rule/</link>
			</item>
	<item>
		<title>[javascript] incident bug</title>
		<description>When we use setAttribute, getAttribute, removeAttribute in IE, readonly should be readOnly. Same things happen in maxLength, bgColor, and so on. </description>
		<link>http://www.illigal.uiuc.edu/web/saru/2007/09/30/javascript-incident-bug/</link>
			</item>
	<item>
		<title>[javascript] solve browser incompatibility</title>
		<description>Color

use rgb color parser

Event

use Event class in prototype.js

Element

don't use same tag id name, javascript variable name, and tag class name, and use Element class and $()  in prototype.js.
I think we need naming rule at id name, variable name, and class name.
like

 tag id name: xxx_id
 javascript variable: elmXXX (like ...</description>
		<link>http://www.illigal.uiuc.edu/web/saru/2007/09/20/javascript-solve-browser-incompatibility/</link>
			</item>
	<item>
		<title>[javascript] color compatibility of IE and Firefox</title>
		<description>javascript sometimes makes browser depended color compatibility problem.

This javascript library solves the problem.
http://www.phpied.com/rgb-color-parser-in-javascript/

It's like

var el = document.getElementById("mycolor");
var color = new RGBColor(el.style.backgroundColor);
alert(color.toHex()); // #cccccc
alert(color.toRGB()); // rgb(204,204,204) </description>
		<link>http://www.illigal.uiuc.edu/web/saru/2007/09/19/javascript-color-compatibility-of-ie-and-firefox/</link>
			</item>
	<item>
		<title>[mysql] sql query: combine two table</title>
		<description>combine two tables, count specific values, order by the count, and show only top 10.

SELECT table1.comment_id comment_id, count(table1.comment_id) point, parent_id, subparent_id, text FROM table1 LEFT JOIN comments ON table1.comment_id=table2.comment_id WHERE board_id=1 GROUP BY table1.comment_id ORDER BY point DESC LIMIT 10 </description>
		<link>http://www.illigal.uiuc.edu/web/saru/2007/08/28/mysql/</link>
			</item>
	<item>
		<title>[eclipse] divide editor window</title>
		<description>1. right click editor tab.



2. select "New Editor".





3. drag down to status bar.



 </description>
		<link>http://www.illigal.uiuc.edu/web/saru/2007/08/25/eclipse-divide-editor-window/</link>
			</item>
	<item>
		<title>[php] dynamic class loading</title>
		<description>When you want to load MyClass via string variant,

$classname = "MyClass";
$object = new $classname(); </description>
		<link>http://www.illigal.uiuc.edu/web/saru/2007/08/18/php-dynamic-class-loading/</link>
			</item>
</channel>
</rss>
