「Geekなぺーじ」へようこそ。 このサイトは、同類を増やすべく技術メモを公開しています。 内容としては、情報技術/通信技術(インターネット技術)の分野で初心者~中級者向けです。 お探しの情報が無い場合には、お問い合わせ頂ければできる範囲で内容を増やして行きたいと思います。 暖かい心で見守って頂ければ幸です。
via del.icio.us/popular Apacheのフォルダローカルな設定ファイル.htaccess で使いそうな設定をかたっぱしから書き込んだファイル。 メイン、スクリプト関連、ヘッダ(キャッシュや最速化)、URL書き換え、認証、SSL、開発中サイト、というようなジャンルごとに、よく使われそうなディレクティブがずらずらと並んでいる。PHPの設定、cool URLの設定、エラーページ、認証の掛けかた、などなど。 書き換えるべきところは英単語で何を書くのかわかるようになっているので、コメントとあわせて思い出しながらコメントを外していくとそれなりに使えそうな .htaccess が作れるかもしれない。僕なんかは細かい設定方法すぐ忘れてしまって検索することが多いので、これで楽になりそう。 # 本当に不要なものはコメントにせずファイルから消すべきだし、安定運用に入ったら.htaccess
GT Nitro: Car Game Drag Raceは、典型的なカーゲームではありません。これはスピード、パワー、スキル全開のカーレースゲームです。ブレーキは忘れて、これはドラッグレース、ベイビー!古典的なクラシックから未来的なビーストまで、最もクールで速い車とカーレースできます。スティックシフトをマスターし、ニトロを賢く使って競争を打ち破る必要があります。このカーレースゲームはそのリアルな物理学と素晴らしいグラフィックスであなたの心を爆発させます。これまでプレイしたことのないようなものです。 GT Nitroは、リフレックスとタイミングを試すカーレースゲームです。正しい瞬間にギアをシフトし、ガスを思い切り踏む必要があります。また、大物たちと競いつつ、車のチューニングとアップグレードも行わなければなりません。世界中で最高のドライバーと車とカーレースに挑むことになり、ドラッグレースの王冠
Windows XP SP2とWindows Server 2003 SP1のTCP/IPスタックでは、不完全な外向きのTCP同時接続数を10接続に制限しています。接続数が10に達した場合、接続要求はキューイングされ、ある一定間隔で処理されるようになります。 この制限は、ホストがワームに感染した際、他のホストへの影響を最小限にするため、Windows XP SP2とServer 2003 SP1で新たに実装されました。しかしこの制限は、不完全な外向きのTCP接続を大量かつ同時に張るアプリケーションにおいては、大きなパフォーマンス低下を招く可能性があります。例えば、P2Pシステムや脆弱性スキャナなどが挙げられます。特に脆弱性スキャナは業務で利用するケースが多いと思いますので、パフォーマンス低下は非常に致命的です。 これを回避する選択肢の一つとして、TCP同時接続数制限の無いプラットフォームを
inetd や xinetd (以下 inetd) はインターネットサービスをデーモン化するのに共通している処理を担い、ほとんどの時間をアイドル状態で過ごすその手のサービスに必要なリソースを節約する役割を果たします。 inetd のひとつ面白いところは、inetd でサービス化したいプログラムの標準入力/標準出力がクライアントソケットの入出力に接続されるところです。例えば daytime 相当のサービスを自分で作ろうと思った場合 #!/usr/local/bin/perl # daytime.pl use strict; use warnings; use DateTime; use IO::Handle; STDOUT->autoflush(1); STDOUT->printf( "%s\n", DateTime->now(time_zone => 'Asia/Tokyo') ); と標
外で集まったミーティング。みんなインターネットに接続したいが、イー・モバイルを持っているのは1人だけ。この人のノートPCをアクセスポイントに変えて、全員がネットに接続できないだろうか? イー・モバイルを皮切りに、定額制の高速ワイヤレスインターネット接続サービスが現実のものになった。電波状態が良好であれば1Mbps以上の通信速度が得られるので、出先などで複数のPCやWi-FI端末からインターネット接続を共用できないかな、なんて思うことも当然あるだろう。 実は、インターネットに接続しているPCがWindows XPやVistaの場合、無線LANのアドホック接続機能を利用すれば複数の無線LAN機器でインターネット接続を共有できる。Windowsの「インターネット接続の共有」(ICS)機能を使い、無線LANのアドホック接続を使ってインスタントLANを構築。インターネットに接続しているPCをアクセス
30万個ぐらいの静的ファイルを配信するサーバーの選び方 で静的な配信サーバに関することが述べられている. naoyaさんが公開されてるInside Hatena Bookmark's Backend の資料などを読むと、mod_perlなサーバーやMySQLサーバーの選び方の参考になったりするわけですが、世の中を見渡してみても、静的コンテンツ(画像とか)を配信するサーバーの指南書らしきものはなかなか見あたりませんでした。 なので、経験を元に書いてみることにします。 ということらしい.書いてあることはすべて同意だけど, つい3ヶ月くらい前まで 平均15k×1万URL×50億httpアクセス/day 平均4KByte×100万URL×3億HTTPアクセス/day な画像サーバと某所で向き合ってたため,ちょっとは役に立てるかもしれないと思ったので,私の経験を書いてみようと思う. 動画配信の負荷分
余っているマシンをお手軽にNASにできます。管理はすべてブラウザから可能で、RAID0・1・2が可能で、なおかつSamba、FTP、NFS、UFS、FAT32、EXT2/EXT3などをサポート。ベースになっているのはFreeBSD。 ダウンロードは以下から。 FreeNAS: The Free NAS Server - Downloads ISOイメージなどでダウンロード可能。 公式サイトは以下。 FreeNAS: The Free NAS Server - Home http://www.freenas.org/ 日本語のマニュアルとかが整備されて、日本語化されればそれだけでもかなり利便性が増すような。
Webアプリケーションが流行しています。Webブラウザ上で何でも実行させる昨今の風潮はいかがなものかと思いますが,これも時流なのかもしれません。Webプログラミングに習熟する前段階として,今回は基礎となるHTTPとCGIについて学びます。 WWW(World Wide Web)はもともと欧州合同素粒子原子核研究機構(CERN)で開発された,相互リンクした技術文書を参照する手段でした。文書間のリンクが世界中をクモの巣(Web)のようにつなぐありさまをもってWWWと名づけられました。 WWWが最初に登場した時点では,基本技術は次の3つしかありませんでした。 (1)HTML(HyperText Markup Language),相互にリンクされた構造を持つ文章を記述するマークアップ言語。 (2)URL(Uniform Resource Locator),各地のサーバーに分散した,文書を指定する記
携帯電話各キャリアは、そのゲートウェイのIPアドレス帯域を公開しています。 DoCoMo au SoftBank WILLCOM 携帯ブラウザからのアクセスの場合、このIPアドレスがソースアドレスとなるので、アクセス制御や判別のために使っている方は多いのではないかと思います。 今回は、このIPアドレス帯の更新を効率的に確認する方法についてのお話です。 更新されたかどうかの確認だけならアンテナ系のWebサービスを使えばよいのですが、それだけだと、 どのIPアドレス帯が追加・削除されたのかわかりづらい。 IPアドレス帯のコピペが面倒くさい。 といった不満点があります。 そこでNet::CIDR::MobileJPというPerlのモジュールの出番です。(作者はモバイルファクトリという会社の方のようです) このモジュールには与えたIPアドレスが携帯かどうかを判別する機能があるのですが、次のようにす
先週からなんだか家庭内LANの調子がおかしいのでLANケーブルが死亡したのかと思っていたのですが、どうやら連日の暑さでついにスイッチングハブがお亡くなりになったようです。 というわけで、家庭内LANなどで使用するスイッチングハブを購入するときにどういう基準で選べばいいかを実践してみました。ポイントは以下の5つ。 ・VCCI クラス B ・金属機体 ・温度 ・消費電力 ・ポート数 冷房が常に入っていないような室内でも安定して稼働するのはどれなのか、どれを選んでも一緒みたいな感じもするのですが、上記5点のような視点で選ぶと実は差があったりします。 各ポイントの詳細な説明は以下の通り。 まず今回の故障について。状態としては、いわゆる熱暴走状態のまま稼働し続け、ポートがいくつか一気にぶっ壊れてしまったらしい。通信できないわけではないのですが、パケットのロスが多すぎて転送速度がむちゃくちゃ遅くなって
twitter 界隈で話題になっていたので、個人向け web proxy であるところの polipo を入れてみました。 "Polipo — a caching web proxy" http://www.pps.jussieu.fr/~jch/software/polipo/ windows 向けには Phobos という人がポートしたインストーラバイナリがあったので、これをインストールしてみた。 http://interloper.org/tmp/polipo/polipo-1.0.4.0-win32.exe [2/29 追記] d:id:xanthus:20080229:p1 さんによりますと、配布元の polipo-1.0.4.0-forbidden-1-win32.exe の方をインストールすれば fobidden 機能が有効になってるとのこと! 最初 polipo のことよく
C++と Pthreads でミニマルなHTTPサーバを書く 『UNIXネットワークプログラミング』を読んでいると、自分でも何かネットワーク系の小さなプログラムを書いてみたくなりました。そこで、ミニマルなHTTPサーバを C++と Pthreads で書いてみました。 同じ著者の「詳解UNIXプログラミング」もそうだったように、今回の本もほとんどすべてのページに、重要なことが書かれています(最後のほうのXTIの部分は例外かもしれませんが)。 たとえば、27章ではネットワークサーバの実装として、次の設計方針がそれぞれ検討され、実際のコード付きで解説されています。 クライアントごとに fork 事前に fork - 各プロセスで accept 事前に fork - ファイルロックで accept を保護 事前に fork - Mutex ロックで accept を保護 (PTHREAD_PRO
ウチのチームでは Windows ファイルサーバが2台あります。その片方が今にも起動しなくなりそうな状態でハードレベルでヤバイです。でもファイルサーバの統合って意外と面倒。マシン名が変わると全ての人にショートカットを変更して貰ったり、ちょっとした Excel のマクロとかに埋め込まれた共有フォルダの名前を変更したりと想像するだけでウンザリします。 ┐(´д`)┌ 直感でマシン名くらい複数設定できるだろうと思ったので調べてみました。ありました。やっぱり。 @IT:Windows TIPS -- Tips:システム移行などのために複数のコンピュータ名を付ける ひとつのコンピュータに複数の名前を付ける - 日経トレンディネット コンピュータ名つまりは下の図のように確認できる名前は、正確には NetBIOS 名 と言うわけですが通常は1台のコンピュータにつき1つの名前しか設定できません。GUIの名
対象OS:Windows 2000/Windows XP/Windows Server 2003/Windows 7/Windows Server 2008 R2 本TIPSの情報は、記事公開時点(2012年03月09日)のものです。最新のPCでは、記事の通りの操作でWake On LANによるコンピュータ起動が行えない場合があります。また、記事中で紹介しているフレンドコンピューターのツール「WOL Controller」は、配布が終了しています。 また、最新の状況を反映したWindows 10向けのWake On LAN(WoL)に関する記事を公開しました。Windows 10でWoLを行いたい場合は、以下の記事を参照してください。 解説 リモート・デスクトップでログオンしたいコンピュータや自動更新を有効にしていて[更新をインストールしてシャットダウン]を実行してしまったコンピュータなど
今日初めて知ったのだが、data スキームを使えば URIにデータを組み込めるそうだ。 以下のようにすれば、 dataスキームで、任意の画像を表示させる事が出来る。 <img src="data:image/gif;base64,BASE64データ"> たとえば、 google のロゴを dataスキーム を 利用して表示したかったら、 $ curl -s http://www.google.com/images/logo_sm.gif | openssl base64 | tr -d '\n' こんな感じで base64 化したロゴ画像データを 該当部分に、貼付ければ良い。 <img src="data:image/gif;base64,ここに貼付ける。"> 該当RFC: http://www.ietf.org/rfc/rfc2397.txt
特に従来 Windows9x/Me でネットワークを構成し、Windows 2000 や XP を追加した場合、お互いのネットワーク共有にアクセスできない場合があります。 ここでは、ネットワーク共有に接続できない場合にチェックすべき項目をリストし、各項目をクリアしていくことで、共有にアクセスできない問題の解消を手助けします。 チェック1:同じプロトコルを使っていますか? Windows95 は標準で TCP/IP がインストールされていません。 Windows98 以降は、LAN アダプターを追加すると、標準で TCP/IP がインストールされますが、TCP/IP が削除されていたり、構成されていない場合、正しく通信できない場合があります。 従来のネットワークで NetBEUI による通信が行われている場合、XP にも NetBEUI プロトコルを追加した方がよい場合があります。 XP
インターネットのデータ集 CHARSET 一覧 メールや HTML のエンコーディングに使う、 CHARSET の値の一覧です。 日本語のエンコーディングには、 ISO-2022-JP, Shift_JIS, EUC-JP 等があります。 → http://www.iana.org/assignments/character-sets ちなみに、 CHARSET やポート番号などは IANA と呼ばれる団体が管理しています。 当然、上記の URL は IANA のページからも辿れます。 具体的には、まず http://www.iana.org/ から Protocol Numbers and Assignment Services → c → Characters Sets と辿ってください。 国名コード トップレベルドメインにも使われているカントリーコードです (正確には一部違います
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く