スキップしてメイン コンテンツに移動

投稿

5月, 2012の投稿を表示しています

JSON

最近 JSON 形式のファイルを扱うことが多く、色んなライブラリを触ってきました。 どれも甲乙つけがたいですが、とりあえずいくつか紹介します。(そのうちコードサンプルを交えたレビューも書きたいと思います。) .Net用のライブラリ Json.NET : stackoverflowではかなり強く推薦されていました。 Jayrock Java用のライブラリ Jackson : これが一番使いやすかったです。annotationの機能はかなり便利です。 XStream : XMLのシリアライゼーションで有名ですが、JSONでも使えます。残念ながらまだ試したことはありません。。。 JSON Tools stringtree.org Json-lib : これも使ったことがあります。多機能すぎて、個人的には使用法を理解するのに時間がかかりました。ちょっと癖があると思います。

SourceForge.net: Platform

This entry is just for my memo. I always forget the sourceforge platform details and googling and googling again and again X( Project web and developer web platform : This page explains what language can be used on sourceforge web services including memory usage limitation etc. Release files for download Subversion repository administration SVN Admin Repo : This page is helpful when you would like to reset svn repository. Shell Service File Management Service : This page explains what protocols can be used for transferring files to source forge server.

ActionScript 3.0: Read catalog.xml

I have written reading catalog.xml program in ActionScript 3.0. I know my code is not perfect however I make my code public because I would like to help someone who would like to analyze catalog.xml... hope it helps :) In short the code is simply reading xml file. package utils.tool { public class CatalogXmlReader { // you should change the namespace based on flash version private static const NS:String = "http://www.adobe.com/flash/swccatalog/9"; public function CatalogXmlReader() { } public function create(xml:XML):SWCCatalog { var ns:Namespace = getDefaultNamespace(xml); if (!(ns.uri === NS)) throw new Error("Namespace is wrong"); var versions:XMLList = xml.child(new QName(ns, "versions")); var swcVersion:SWCVersions = new SWCVersions(); swcVersion.swcVersion = versions