Fight the Future

Java言語とJVM、そしてJavaエコシステム全般にまつわること

2010-12-01から1ヶ月間の記事一覧

JavaScriptで半角英数全角英数変換

参考にさせていただいたサイト JavaScriptで全角英数と半角英数の相互変換 - Rewish@hatena http://d.hatena.ne.jp/Rewish/20100427/1272296260 // 半角にしたい str.replace(/[A-Za-z0-9]/g, function(s) { return String.fromCharCode(s.charCodeAt(…

Rubyで暗号化ZipするときはZip/Ruby

Zip/Ruby - Ruby bindings for libzip. http://zipruby.rubyforge.org/ $ gem install zipruby -p http://プロキシ:ポート

CSS3のハナシ

web

CSS3について、少しずつ読んでいってます。CSS3 support in Internet Explorer 6, 7, and 8 http://fetchak.com/ie-css3/ CSS3の表現でデザインをちょっと素敵にするサンプル 8 http://webdesignrecipes.com/spice-up-web-design-with-css3/

jQueryの無名関数の組み立て方

ときどきわからなくなる。こちらのサイトが丁寧に説明してくださってます。jQueryの無名関数の組み立て方 ≪ kwLog http://blog.makotokw.com/2010/02/17/jquery%E3%81%AE%E7%84%A1%E5%90%8D%E9%96%A2%E6%95%B0%E3%81%AE%E7%B5%84%E3%81%BF%E7%AB%8B%E3%81%A6…

GeekToolのサンプル

Learning to love GeekTool - A primer (Part 2) - MacTalk Forums http://forums.mactalk.com.au/18/51067-learning-love-geektool-primer-part-2-a.htmlGeek to Live: Monitor your Mac and more with GeekTool http://lifehacker.com/244026/geek-to-live…

jQueryでBlink

参考にさせていただいたサイト jQuery Blink Plugin | www.antiyes.com http://www.antiyes.com/jquery-blink-plugin (function($){ $.fn.blink = function(options){ var defaults = { delay: 500 }; var options = $.extend(defaults, options); return th…

サクラエディタでnative2ascii

サクラエディタ用 native2ascii マクロ(管理人日記) - むぅもぉ.jp http://muumoo.jp/news/2006/06/05/0sakuranative2ascii.html

Jetty 7を組み込みで動作させる

参考にさせていただいたサイト Jetty/Tutorial/Embedding Jetty - Eclipsepedia http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty main()からJettyを起動 - ねこだいすき http://d.hatena.ne.jp/tubureteru/20100829/p1 pom.xmlには、 <dependency> <groupId>org.eclipse.</groupid></dependency>…

MavenでJetty 7を設定する

Jetty 7からeclipseのプロジェクトになったので、細かい設定がJetty 6までと異なってる。 http://mvnrepository.com/artifact/org.mortbay.jetty/jetty-maven-plugin <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>6.1.26</version> </plugin> eclipseのプロジェクトとなったバージョ…

Jetty 7で動作するHudsonのような実行可能なWARを作成する(Gradleも使う)

参考にさせていただいたサイト Executable WARs with Jetty ≪ EclipseSource Blog http://eclipsesource.com/blogs/2009/10/02/executable-wars-with-jetty/ これをGradleで実行するコードがGitHubで配布されてる。 https://github.com/xlson/standalone-war…

jQueryでローカルのJSONファイルを読み込む

参考にさせていただいたサイト ローカルファイルの読み込み - awacio.log http://d.hatena.ne.jp/awacio/20100220/1266625934 jQuery.get()でOK。 $.get("config.json", function(data){ var hoge = $.parseJSON(data); }); $.getJSON("config.json", functi…

Javaで「Access restriction」と出たときの対処

Description Resource Path Location Type Access restriction: The method xxx from the type xxx is not accessible due to restriction on required library xxx\Java\lib\rt.jar xxx.java /xxx line xxx Java Problem と出たとき。参考にさせていただい…

Maven2,3でのプロキシ設定

C:\Documents and Settings\ユーザ名\.m2 <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <proxies> <proxy> <active>true</active> </proxy></proxies></settings>

CentOSにRedmineを構築する(Rubyのインストールから)

RedmineはRuby 1.8.6以降でないとダメです。CentOS 5.5に付属しているのは、1.8.5…入れ替えましょう。参考にさせていただいたサイト http://marnica.blog66.fc2.com/blog-entry-66.html wget http://www.t.ring.gr.jp/archives/lang/ruby/1.8/ruby-1.8.7-p30…

Windows XPでもConsolasを使いたい

最近、とにかくプログラミングフォントがConsolasでないとイヤでイヤでたまりません。Windows XPでOfficeが2003とかだと、Consolasはありません。でも、Visual Studioを入れると、Consolasが入るそうです。 ええ、入れましたよ。フォントのためだけに、Visua…

Windowsのタブファイラーは「X-Finder」がオススメ

ファイルブラウザ・X-Finder http://www.eonet.ne.jp/~gakana/X-Finder設定 http://yusukezzz.net/blog/archives/1175 ・表示するカラムを固定する まずは適当にカラムを設定します 右クリック->カラムで表示するアイテムの選択、カラムをD&Dで並び替え 設定…

VirtualBoxでゲストOSのCentOSにリモートPCからSSH接続

まずはVirtualBoxとCentOSをインストールしておく。今回は以下のバージョンで。 ・VirtualBox 3.2.12 ・CentOS 5.5なお、CentOSをネットワークインストールする場合、プロキシサーバーがあると中継用にもう1台プロキシサーバーを必要とする。 http://d.haten…