2005年10月 Archives

bayosphere

drupal を使ったサイトということで見に行った bayosphere.com は
Dan Gillmor が立ち上げたサイトだった。

http://www.future-planning.net/x/modules/news/article.php?storyid=782

ちゃんと読んでないことがばればれ。

ここから
http://dangillmor.typepad.com/
ここへ
http://bayosphere.com/
http://bayosphere.com/blog/dangillmor

ISO 639 Language Codes

http://www.w3.org/WAI/ER/IG/ert/iso639.htm
http://www.unicode.org/onlinedat/languages.html

Library of Congress (639-1 と 639-2 の違いほか色々)
http://www.loc.gov/standards/iso639-2/faq.html

mod_rewrite

旧社名でのアクセスを振り向けなおしたり、http を https に向けなおす
rewrite rule をメモ。

<IfModule mod_rewrite.c>
    RewriteEngine on
    # www.oldcompany.com is deprecated
    RewriteCond %{HTTP_HOST}    !^www\.newcompany\.com [NC]
    RewriteCond %{HTTP_HOST}    !^$ [NC]
    # redirect http access to https
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule ^/(.*)          https://www.newcompany.com/$1 [L,R]
</IfModule>

de.lirio.us

オープンソースな del.icio.us

http://de.lirio.us/rubric
http://www.unmediated.org/archives/2005/04/slashdot_open_s.php

ソースコード
http://de.lirio.us/code

Perl で、Rubric モジュールが必要。
http://search.cpan.org/dist/Rubric/

Trac チケットのコンポーネント

コンポーネント名を日本語にしてみる。

[apache@mc2 apache]$ trac-admin /var/trac/test component rename component2  会員受付

PuTTY で「変換」を UTF-8 (CJK)、サーバ側のロケールが ja_JP.utf8 など UTF-8 であれば、
コンポーネントの日本語もとりあえず機能している模様。
できれば、この辺は ASCII で済ませたいけど、どうしてもという要求があれば
これでも動きそう。


ユーザIDの最大値

| No Comments | No TrackBacks

linux kernel 2.4, IA 32ではユーザはいくつまで作れたっけ?

[root@kit root]# cat /etc/redhat-release
Red Hat Enterprise Linux ES release 3 (Taroon Update 1)
[root@kit root]# uname -r
2.4.21-9.EL
[root@kit root]# grep 'model name' /proc/cpuinfo
model name      : Intel(R) Celeron(R) CPU 2.00GHz
[root@kit root]#

64k の上からスタート。 Powers of Ten 状態で。

[root@kit root]# useradd -M -u 100000 -g users foobar1
[root@kit root]# useradd -M -u 10000000 -g users foobar2
[root@kit root]# useradd -M -u 1000000000 -g users foobar3
[root@kit root]# useradd -M -u 100000000000 -g users foobar4
[root@kit root]# useradd -M -u 10000000000000 -g users foobar5
useradd: ユーザID 4294967295 が重複しています
[root@kit root]#
foobar1:x:100000:100::/home/foobar1:/bin/bash
foobar2:x:10000000:100::/home/foobar2:/bin/bash
foobar3:x:1000000000:100::/home/foobar3:/bin/bash
foobar4:x:4294967295:100::/home/foobar4:/bin/bash
     1 000 000 000 OK
   100 000 000 000 NG (丸められた)
     4 294 967 295 上限

ぱっと見でわからないので計算。

[dxy@kat dxy]$ bc
bc 1.06
Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
1024*1024*1024*4
4294967296
[dxy@kat dxy]$

なので、4G個 (2^10 x 2^10 x 2^10 x 2^2 = 32 bit)が上限と。

Postfix, Courier-IMAP, OpenLDAP, OpenSSH, Apache などの
user land application 達はどこまで対応しているのだろうか。

Equalizer 350 L7

probe string は HTTP レスポンス中の先頭 1000 バイト以内に
なければいけないらしい。1000 バイトは案外短い。

Equalizer の初期設定値では send/recv バッファが小さいらしく、
HTTPS 通信時にパフォーマンスの低下がおきた。
send/recv バッファを拡張してもらうと、動作が改善した。

デフォルト 現行値
------- ----------- ----------
send 16KB 64KB
recv 8KB 64KB

/go/ を mod_rewrite で

| No Comments | No TrackBacks

時々ある
/go/blahblahblah を /product/whatever/index.jsp
とかいう感じで redirect してくれるあれを試した。

httpd.conf に以下の内容を追加。

RewriteEngine On
RewriteMap map txt:/usr/local/apache/conf/rewrite.txt
RewriteRule ^/go/(.*) ${map:$1} [L]

rewrite.txt に以下のように記述

a       http://foo/blog/1023/
b       http://bar/wiki/1025/

これで

/go/a は /blog/1023
/go/b は /wiki/1025

へリダイレクトされるようになる。

SSL 証明書

| No Comments | No TrackBacks

http://www.comodojapan.com/pro01_01.html
ロードバランサ構成で、コストがかけられない場合に利用するとよさそう。

About this Archive

This page is an archive of entries from 2005年10月 listed from newest to oldest.

2005年9月 is the previous archive.

2005年11月 is the next archive.

Find recent content on the main index or look in the archives to find all content.

Pages

Powered by Movable Type 5.01