22 September 2010

banners for mosaic theme

via www.sixapart.jp

I changed theme of this blog which is using a image file on this page.

seealso:

14 September 2010

20 steps

That means all the 43,252,003,274,489,856,000 positions of the Cube require no more than 20 steps to get the Cube in shape.

via www.wired.com

It's an interesting number. I've never been solved the Rubik’s Cube. I'm missing just 20 steps.

08 September 2010

Did you try Google Scribe?

Google released a new product on their labs, named Google Scribe. This product is awesome. If you've never try this, you should check Google Scribe.

Google Scribe provides a bookmarklet for using Google Scribe anywhere. Then I tried to use Google Scribe on TypePad. It's very simple.

First, you should add the bookmarklet on your browser. The bookmarklet is a part of footer on Google Scribe. Next, go to TypePad, and go Compose page on TypePad. Then you click Google Scribe bookmarklet. You'll see "Loading Google Scribe" message on top of your browser window. And you'll see "Google Scribe enable". Okay, you can start to use it!

google_scribe

My English is poor, but Google Scribe helps me to write English. Thanks, Google Labs!

seealso

27 August 2010

PotD: Chōchin

Picture of the day:

Have you ever seen a chōchin? Yes, it's like lantern. This picture was taken in front of a restaurant.

18 August 2010

あのコマンドのソースがほしい

ifconfig のソースコードがほしかったので このサイト を参考にソースコードをゲットしまして、以下その辺りの作業ログ。

# yumdownloader が必要ってことでまずは yum-utils をインストール。
$ sudo yum install yum-utils
# 次に対象のコマンドのRPMを探す
$ rpm -qf /sbin/ifconfig
net-tools-1.60-81.el5
# ダウンロードする。
$ yumdownloader --source net-tools-1.60-82.fc7
# 一応、RPMの中身を確認
$ rpm -qpl net-tools-1.60-82.fc7.src.rpm
# ファイルを展開する
$ rpm2cpio net-tools-1.60-82.fc7.src.rpm | cpio -id
# 肝心のファイルを展開
$ tar xvf net-tools-1.60.tar.bz2
# 移動して、
$ cd net-tools-1.60
# ここを見たかったのよ。
$ vi lib/interface.c

seealso:

17 August 2010

PotD: BE@RBRICK

Picture of the day:

These BE@RBRICKs are free gifts by buying PEPSI by PEPSI x ZOZOTOWN campaign. I didn't think about collecting them though ;p

16 August 2010

PotD: Hot evening

Picture of the day:

Tokyo is very very hot. I felt that today is the hottest day in this summer. This photo taken a view of Tokyo-Midtown from our office.

13 August 2010

NetAddr::IP for IPv6

I'm looking for Perl module for parsing IPv6. I found NetAddr::IP on CPAN. It looks good for me. If you know other recommendations which you felt good, please let me know on comment form. Thanks in advance!

IPv6 を操作したいので Perl モジュールを探しています。NetAddr::IP は割と良さげでした。でももしオススメなモジュールをご存知でしたらコメント欄で教えてくださいね。

 

$ cpanm NetAddr::IP
$ perl -MNetAddr::IP -le 'print NetAddr::IP->new(q{FD00::1})->addr'
FD00:0:0:0:0:0:0:1
$ perl -MNetAddr::IP -le 'print NetAddr::IP->new(q{FD00::1})->short'
FD00::1
$ perl -MNetAddr::IP -le 'print NetAddr::IP->new(q{FD00::1})->full'
FD00:0000:0000:0000:0000:0000:0000:0001
$ perl -MNetAddr::IP -le 'print NetAddr::IP->new(q{FD00::1})->full6'
FD00:0000:0000:0000:0000:0000:0000:0001
$ perl -MNetAddr::IP -le 'print NetAddr::IP->new(q{FD00::1})->version'
6
$ perl -MNetAddr::IP -le 'print NetAddr::IP->new(q{128.0.0.1})->version'
4

Hmm, AnyEvent has a few methods for parsing IPv6, but these methods are embedded in AnyEvent::Socket.

AnyEvent なんかも見たんですが自前で IPv6 の実装が入っていましたわ。うーむ。


追記

ふむ。AnyEvent::Socket::parse_ipv6 では

sub parse_ipv6($) {
   # quick test to avoid longer processing
   my $n = $_[0] =~ y/://;
   return undef if $n < 2 || $n > 8;

という感じで簡単な IPv6 アドレスのチェックをしていますね。これの方式でも IPv6 のアドレスの確認用途としては足りる気もします。

10 August 2010

iBus didn't work under Python 2.5 on Ubuntu 10.04

I'm using Ubuntu 10.04, and ibut-anthy is for Japanese input. Anyway, I wanted to use Python 2.5 for Google App Engine. Then I installed Python 2.5. Yeah, I was be able to use GAE. But I didn't input Japanese. I tried to re-install iBus and related stuffs. But it didn't look good. Hmm, ah,okay, so when I installed Python 2.5, I remained bin/python. This python was 2.5. ;p I removed bin/python as 2.5. Then I used Python 2.6 as default. Then iBus was just recovered. Hehe, just my two cents.

私は Ubuntu 10.04 で ibus-anthy で日本語入力をしています。で、Google App Engine を使いたかったので Python 2.5 をインストールしたら日本語が使えなくなりました。iBus 関連を再インストールしたりしたんだけど改善しなくて。そしたら Python 2.5 をインストールしたときに python の実行ファイルを残したままでした。そこで Python 2.5 の python 実行ファイルを削除して、デフォルトを Python 2.6 にしました。そしたら日本語入力も復活しました。Python をマルチで動かす人は気をつけよう。

05 August 2010

はてなロゴTシャツ&ステッカー、ゲットー!

via d.hatena.ne.jp

I

via www.hatena.ne.jp

Yay! I got hatena T-shirts and sticker. Thank you!!!

seealso 「はてなロゴTシャツ&ステッカー欲しい!」キャンペーン当選発表 - はてなダイアリー日記

Access Ranking

Powered by Six Apart
Sponsored links