pupua blog
ThunderbirdのLightning0.9がエラーで作動できない時の対処法
- 2010-01-23 (土)
thunderbird(メーラー)のアドオンLightning0.9をインストールしたのですが、起動すると、下記のエラーmoz-profile-calendar:// に保存されたカレンダーの準備中にエラーが発生してカレンダーが利用できなくなった時の対処法です。
プロファイル内のstorage.sdb というファイルを削除することで正常に治りました。
storage.sdb の場所は以下です。
↓
Windows Vistaの場合は、
C:\Users\< ユーザ名>\AppData\Roaming\Thunderbird
WindowsXP/2000の場合は、
C:\Documents and Settings\ユーザー
- Comments: 0
- Trackbacks: 0
オープンソースの写真管理システム「Phormer」インストール
- 2009-08-08 (土)
- opensource | photo
最近、オープンソースの写真(画像)管理システムを探していてローカルで動かした中でようやくいいのがあったのでインストールして使ってみています。
Phormerというオープンソースなのですが、phpとajaxを使った写真管理WEBシステムでmysqlなどのデータベースは使用しておらず非常に軽くて、RSSも標準装備でデザインも弄りやすいです。インストールも簡単です。オープンソースの写真管理システムをお探しならぜひ。
インストールしたバージョン(ver)はPhormer 3.31です。
Phormer 3.31のインストール手順
こちらからダウンロード。
ドキュメントルートを707にして、手動でdata、images、temp、の3つのフォルダを作成し707にindex.xmlを606にします。その後、ブラウザでアクセス。
ダウンロード後、解凍ファイルをサーバーにアップした後は以下のような流れです。
1.ドキュメントルート(アップロードした場所)のパーミッションを707に変更。
2.手動で「data」「images」「temp」の三つのフォルダを作成。
3.「data」「images」「temp」の三つのフォルダのパーミッションを707に変更。
4.index.xmlのパーミッションを606に変更。
5.ブラウザからアクセスしてインストール。
ソースは以下のような構成です。
FILES ARCHITECTURE:
===================
/{Installation Directory}
|
+- data/ # Keeps a set of .xml files like a database
| |
| +- adminPass.php # MD5-ed version of Administration Password
| +- basis.xml # Basic configurations like theme
| +- basis.xml.bku # A backup of last saved basis.xml
| +- ...
| +- p_00000i.xml # Data of Photo #i
|
+- files/ # Phormer's own files, like css
| |
| +- adminfiles/ # Administration area's files
| | |
| | +- addphoto.js # Javascript of adding photos
| | +- admin.css # CSS of admin.php
| | +- photos.xml.def # Default XML file of data/photos.xml
| | +- ...
| | +- help.js # Help messages
| | +- skeleton.js # Thumbnail skeleton picker js
| |
| +- cssfiles/ # Images of different themes
| | |
| | +- black_hbg0.jpg
| | +- ...
| |
| +- externalcss/ # Additional External CSS Files
| |
| +- phorm.js # JavaScript file of index.php
|
+- images/
| |
| +- 00000i_j.jpg # j-th thumbnail of photo #i
| +- ...
|
+- temp/ # Temporary/Draft photos/files which ain't public
|
+- admin.php # Administration area
|
+- css.php # CSS file of index.php, generates upon theme
|
+- funcs.php # Functions of admin.php and index.php
|
+- index.php # Viewable file for public
|
+- index.xml # RSS feed file, auto-generated
|
+- readme.txt # This file!
|
+- upload.php # PHP files of uploading photos (AJAX)
|
+- wv.php # Word Verification PHP
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Comments: 0
- Trackbacks: 0
RedirectMatchでのリダイレクトの動きについて
- 2009-06-01 (月)
- command
「 Redirect permanent 」では不適切だと気が付きました。 Joomla!はphpのクエリ(?item=~という表記)で動いていますが、これではSEO対策にならないので、 Rerightエンジンを使って、ディレクトリパスに変更しているわけです。
http://www.fulldigit.net/ index2.php?option=com_content&task=view&id=41&Itemid=28
↓
http://www.fulldigit.net/content/view/41/28/
つまり、上記の場合、「 /content/view/41/28/ 」といったディレクトリは見かけ上だけで、実際には存在しないわけです。
さて、千ページ説明した「 Redirect permanent 」は、転送先URLにも元のファイルへのパスを補完してURLを作成してアクセスしてくれる便利な機能ですが、Joomla!では問題があります。
例えば
http://www.fulldigit.net/debian/rerite.html
↓
http://www.fulldigit.net/content/view/41/28/
としたいわけですが、
Redirect permanent /debian/ /content/view/41/28/
と記述してしまうと、
http://www.fulldigit.net/content/view/41/28/rerite.html
といったURLになってアクセスされてしまいます。
ディレクトリパスは存在しないため、Rerightエンジンで変更されたパスにファイルが補完されてしまうと、思った通りのページに移動しないケースが発生してしまいます。
そうならないためには、「 Redirect permanent 」ではなく、「 RedirectMatch permanent 」を使います。
「 RedirectMatch permanent 」は、正規表現を使って、ファイル名補完なしにリダイレクトを行なうことができます。
なお、このサイトでは次のように設定しました。
RedirectMatch permanent ^/index\.html$ http://www.fulldigit.net/index.php
RedirectMatch permanent (.*)/LINUX/(.*)\.html$ http://www.fulldigit.net/content/category/2/3/9/
RedirectMatch permanent (.*)/site/(.*)\.html$ http://www.fulldigit.net/content/category/1/1/5/
RedirectMatch permanent (.*)/se/(.*)\.html$ http://www.fulldigit.net/content/category/3/9/27/
RedirectMatch permanent (.*)/debian/(.*)\.html$ http://www.fulldigit.net/content/category/2/6/10/
上記の設定では、あるディレクトリ(例えば、[/LINUX/]の配下にある、拡張子[.html]を持っているファイルが、すべて、右辺に設定したURLにリダイレクトする設定になります。
もちろん、この設定ではファイル名などが補完されることはありません。
- Comments: 0
- Trackbacks: 0
This is Japan! on Vimeo アジア臭漂う日本の写真
アジア臭漂う写真。
This is Japan! from Eric Testroete on Vimeo.
- Comments: 1
- Trackbacks: 0
WordPressをiPhone対応にするプラグイン「WPtouch」をインストールしてみた
- 2009-03-03 (火)
- WordPress | iphone | mobile | opensource | twitter
WordPressをiPhone対応にできるプラグイン「WPtouch」をインストールしてみました。
WordPressのプラグインとしてインストールすると、iPhone対応のブログになります。
最近、iphone / ipod touchのSafari用にCSSテンプレートやフレームワークなども良く見かけますが、「WPtouch」はWordPressの管理画面上からデザインやアイコンなんかも弄れるようで結構よさそうです。
WPtouch本家 – ソースのダインロード先
WPtouch: WordPress On iPhone ↔ BraveNewCode Inc.
http://www.bravenewcode.com/wptouch/
そういえば最近twitterもはやってるな。プラグイン入れてみよかな。
参考サイト
WordPressを簡単にiPhone対応にしてしまえる「WPtouch」:phpspot開発日誌
http://phpspot.org/blog/archives/2009/02/wordpressiphone.html
iphone / ipod touchのおススメ本
![]() |
自作アプリをApp Storeで世界に向けて販売できる!! iPhone SDKプログラミング大全 (MacPeople Books) 木下 誠 アスキー・メディアワークス 2009-01-07 |
![]() |
Objective-C Mac OS Xプログラミング 荻原 剛志 ソフトバンククリエイティブ 2006-04-07 |
![]() |
iPhoneサイト制作ハンドブック iPhone&iPod touch対応 向井 領治 インプレスジャパン 2008-12-19 |
![]() |
SwitchEasy CapsuleNeo for iPhone 3G/Black – Special Pack (PleiadesDirect限定品)SW-CAP-NEO-B-PD SwitchEasy |
![]() |
パワーサポート エアージャケットセット for iPhone 3G Clear PPK-71 パワーサポート 2008-08-08 |
- Comments: 1
- Trackbacks: 0
Pligg 1.0.0 RC2 インストール
- 2009-02-22 (日)
- mysql | opensource | php
Pliggは、Digg っぽいブックマーク型のソーシャルニュースサイトを運用できるオープンソースのCMSです。
ざっと見た感じ前の方が使いやすいような気もしますが、個人的にはこちらの方が好きです。
2009年2月19日にPligg 1.0.0 RC2にアップデートされたようです。
Pligg 1.0.0 RC2アップデート内容
- Many bug fixes to and improvements to make Pligg compatible with more web hosts
- Improvements to upgrade script
- IP Blocker module
- TinyMCE WYSIWYG module
- Social bookmark module
- Experimental Upload module for attaching files and images to articles. This product is still in an early beta stage.
- Delete Cache button from admin panel
- Made the language file easier to read and update
ダウンロードは以下から。
Pligg CMS | Open Source Content Management System for Social Networking
Pligg Content Management System Version 1.0.0 RC1 – 01.30.2008
Pligg Content Management System Version 1.0.0 RC2 – 02.19.2008
インストール方法などは下記のような感じです。
インストール
- Basic FTP skills
- PHP 4.3.0 or higher
- MySQL Database
- Create a mysql database. If you are unfamiliar with how to create a mysql database, please contact your web host or search their support site. Please pay careful attention when creating a database and write down your database name, username, password, and host somewhere.
- Rename settings.php.default to settings.php. Do the same for /libs/dbconnect.php.default.
- Upload the files to your server.
- CHMOD 755 the following folders, if they give you errors try 777.
- /admin/backup/
- /avatars/groups_uploaded/
- /avatars/user_uploaded/
- /cache/
- /cache/admin_c/
- /cache/templates_c/
- /languages/
- CHMOD 666 the following files
- /libs/dbconnect.php
- settings.php
- Open /install/index.php in your web browser. If you are reading this document after you uploaded it to your server, click on the install link at the top of the page.
- Select a language from the list.
- Fill out your database name, username, password, host, and your desired table prefix.
- Create an admin account. Please write down the login credentials for future reference.
- Make sure there are no error messages!
- Delete your /install folder.
- CHMOD 644 libs/dbconnect.php
- Open /index.php
- Log in to the admin account using the credentials generated during the install process.
- Log in to the admin panel ( /admin ) and you will then be presented with information intruducing you to Pligg.
- Configure your Pligg site to your liking. Don’t forget to use the Modify Language page to change your site’s name.
バックアップ
- Log into your site as admin
- Click on admin panel link
- Click on File and MySQL backup link
- Backup your files (and avatars) and your database
- Download the backup .zip files to your computer
- Delete the files from the backup manager
アップグレード
Please be sure to make a backup of your MySQL databases and files before upgrading to the latest version of Pligg. Some upgrades might require that you upgrade your MySQL database, so please make backups whenever upgrading.
These instructions do not support upgrading your template. Template upgrades require manual changes and should be carefully handled by the template author.
- Make a backup copy of your config.php and settings.php file to your computer. You should also backup all other files as mentioned above.
- Upload the file /install/index.html to your root Pligg directory. This will place an upgrade message on your site temporarily.
- Delete all of the files from your Pligg directory except /libs/dbconnect.php, /settings.php and the /avatars directory.
- Upload the latest version of Pligg to your server.
- Confirm that the CHMOD permission for config.php is 655.
- Confirm that the CHMOD permissions for the following files are all set to 777.
- settings.php
- /admin/backup/
- /avatars/groups_uploaded/
- /avatars/user_uploaded/
- /cache/
- /cache/admin_c/
- /cache/templates_c/
- /languages/
- /languages/lang_english.conf
- Navigate to and run the /install/upgrade.php script
- Delete the /install directory
- Login to Pligg’s admin panel /admin/, and confirm that all of the settings are correct. You should be able to view all of the pages by manually entering the urls such as /index.php.
- Once you have confirmed that everything works, delete /index.html from step 2 and you’re finished!
携帯版 行動ターゲティング広告、コンテンツマッチ広告の「NeoAd(ネオアド)
- Comments: 0
- Trackbacks: 1
MovableTypeをモバイル化してみました – MT4iインストール
- 2009-01-19 (月)
- Movable Type | mobile | opensource
mt4i 3.0.4
をインストールしてMovableTypeをモバイル化してみました。
MT4iは、MovableTypeのデータベースからデータを読み込み、文字コードを Shift_JIS に変換、携帯電話向けにレイアウトして出力し、ケータイ電話に対応させる為のPerl スクリプトです。
MT4iをインストールした当ブログのモバイルサイト
MT4iをインストールして携帯サイト対応した当ブログのモバイルサイトです。
↓
MovableType4のデータをそのまま取ってくるので、コンテンツの作り方は携帯サイト用に気にする必要もありそうですがこのままインストールして使用しても十分使えそうです。
これからテンプレートとかモバイルのseoまわりとか少しずつ触ってみたいと思います。
mt4i 3.0.4 注意事項インストール前の注意事項
- MT4iは文字コード EUC-JP(*.cgi, *.pl)及び Shift_JIS(*.tmpl)、改行コードLFで書かれています。
- Encode と HTML::Template が必須です。(リンクは現時点での最新のバージョン。インストールされる時点での最新のもので問題ないかと。)
mt4i 3.0.4 インストール準備アップロード前の準備
- ダウンロードした「mt4i3x.zip」または「mt4i3x.tgz」を解凍してください。
- mt4iを解凍してできるファイルは以下の通りです。
mt4i.cgi ----- MT4i本体。 mt4imgr.cgi ----- MT4i Manager。MT4i設定プログラム。 purge_old_cache.pl ----- 古いキャッシュをクリアする為のスクリプト lib ∟mt4i ∟Ad.pl ----- バナーエクスチェンジ。 ∟Cache.pl ----- キャッシュ読み書き。 ∟Config.pl ----- 設定ファイル読み込み。 ∟Log.pl ----- ログ読み書き。 ∟Func.pl ----- その他外部関数。 plugins ∟mt4i-purge-cache.pl ----- キャッシュをクリアする為のプラグイン tmpl ∟mt4i ∟blog_list.tmpl ∟comment.tmpl ----- コメント一覧テンプレート ∟comment_form.tmpl ----- コメント投稿フォーム ∟error.tmpl ----- エラーページ ∟footer.tmpl ----- フッター ∟header.tmpl ----- ヘッダー ∟image.tmpl ----- 画像表示ページ ∟index.tmpl ----- インデックステンプレート ∟individual.tmpl ----- 個別記事ページテンプレート ∟post_comment.tmpl ----- コメント投稿フォームテンプレート ∟recent_comments.tmpl ----- 最近のコメントページ ∟redirector.tmpl ----- リダイレクトページ ∟trackback.tmpl ----- トラックバック一覧テンプレート
- 「mt4i.cgi」及び「mt4imgr.cgi」をエディタで開き、一行目のPerlパスをインストールする環境に合わせて編集、保存して下さい。配布時は以下のようになっています。
#!/usr/bin/perl
さくらインターネット、ロリポップでは、このままで変更の必要はありません。環境によっては以下の場合もあります。
#!/usr/local/bin/perl
良く分からない場合は、サーバの管理者に問合せてください。
mt4i 3.0.4 インストールインストール手順
- mt4iはテンプレートのキャッシュを溜め込む為のディレクトリが必要です。MTホームディレクトリの直下に、以下の構成でディレクトリを作成して下さい。
MTホームディレクトリ ∟mt4i ∟cache ∟tmpl
- ファイル「mt4i.cgi」「mt4imgr.cgi」、ディレクトリ(フォルダ)「mt4ilib」、「tmpl」をサーバーにアップロード(すべて同階層に置くこと)。
- 「mt4i.cgi」と「mt4imgr.cgi」のパーミッションを「705」あるいはプロバイダ等で指定されているCGIプログラムを動かす際のパーミッション値に変更。
- Webブラウザより「mt4imgr.cgi」にアクセス。
- 「まず最初に、MT4i Manager にログインする為のパスワードを設定してください。」と表示されるので、希望のパスワードを入力して「保存」ボタンを押下。
- 「MT4i Manager のパスワードを設定しました。」と表示されるので、「戻る」ボタンを押下。
- パスワードを入力してログイン。
- 「メニュー」の「設定を編集する。」にチェックをして、「ENTER」ボタンを押下。
- 設定を編集して保存。設定値にはすべてデフォルト値が用意されているので、MovableTypeと同階層(mt.cgiのある場所)にインストールする場合は、何もしないで保存してもOK。ただし管理者モードを使用する場合は、「AdminPassword? – 「管理者向けURL取得」の為のパスワード」の変更が必須となるので注意。
- PCのWebブラウザより「mt4i.cgi」にアクセスして動作確認。
※2.0β6 以上からのアップグレードやFAQは
こちらのMT4i本サイトをご確認ください。
mt4i 3.0.4 モバイルのGoogleAdsense(アドセンス)モバイル向けGoogleAdsense(アドセンス)の設置方法
- モバイル向け GoogleAdsense(グーグルアドセンス)のコードを取得。
- GoogleAdsense(アドセンス)の文字エンコードには「日本語(Shift_JIS)」、サーバー サイドのスクリプト言語には「CGI/Perl」を選択すること。
- マークアップも本当なら「chtml」なのだけれど、配色なんかとの兼ね合いがあるので各自調整要。
- GoogleAdsense(アドセンス)の取得したコードを、ディレクトリ「lib/mt4i」以下に「Adsense.pl」というファイル名で保存。ソースコードの変更は一切しないこと。
lib ∟mt4i ∟Adsense.pl
- テンプレートの任意の場所に、下記のタグを挿入。
<TMPL_VAR NAME="ADSENSE">
ul>
/li>
- Comments: 0
- Trackbacks: 0
wizpy(ウイズピー)4GB Turbolinuxの使い方
Turbolinux のTurbolinux wizpy 4GB スマート ブルー P0695を買ってみた。
とにかくwizpy(ウイズピー)の使い方が全然わからない。。
wizpy試してみたを見てようやくFMラジオの聞き方がわかったけど。。
>wizpy(ウイズピー)右上のmボタンを長押しすると、メニューと再生画面を切り替えられる。メニューからはFMラジオを起動したり設定画面を出したりもできる。
だそう。ちょっとした隠れコマンドか。。。
Amazon.co.jp
Turbolinux wizpy(ウイズピー) 4GB
の商品紹介より
| Turbolinux wizpy 4GB スマート ブルー P0695 |
|
![]() |
Turbolinux 2007-10-04 売り上げランキング : 7 おすすめ平均 |
手のひらサイズのパソコン
単体ではマルチメディアプレーヤーとして。パソコン接続時には、特別なソフトウェアをインストールすることなく自分だけのパソコンに。インターネットやメールを自分専用の環境で楽しめる。使用するパソコンには履歴を残さない。
コンピューター接続時に実行可能な動作
wizpyはコンピュータに接続されたネットワークカードやキーボード、ディスプレイなどのリソースを使用して、wizpy本体に搭載された Turbolinux OS上で実行可能な動作をする。webブラウザやメールクライアントなどパーソナルコンピュータで一般的に使用される主なソフトウェアはすべて利用できる。
アプリ-ケーションソフトウェア
wizpyには以下のソフトウェアがインストール済み。その他のソフトウェアについては、wizpyダウンロードサービスで提供予定。
Webブラウザ[Firefox(ファイヤーフォックス)]
メールクライアント[Thunderbird(サンダーバード)]
オフィススウィート[OpenOffice.org(オープンオフィス)]
リッピングソフト/ IP電話ソフト/その他アクセサリ類
商品の説明
手のひらサイズのパソコン・ウイズピー(wizpy)。wizpyはパソコンに接続することにより世界中どこでも自分専用のOS環境が実現されます。また、wizpy単体ではマルチメディアプレーヤー機能を搭載しており、動画、静止画、音楽、ボイスレコーダー、FMラジオなどの機能を楽しんでいただく事が可能です。パソコンとして・パソコンに接続するだけで自分専用のOSが起動。・メールやブラウザの環境ごと持ち歩けるので、 どこにいても使い慣れた環境でインターネットが楽しめます。マルチメディアプレーヤーとして・動画や音楽の再生から録音、ラジオ、eブックまでマルチメディア機能を一台に集約・クリアな表示の256K色対応OLEDディスプレイ搭載。コンパクト設計・どのパソコンに接続しても自分のパソコン環境を再現。 会社、出張、海外に重いPCを持ち運ばなくてもOK! ・重さ約60g。メモリーとして各種データを携帯出来ます。プライバシー&セキュリティ・WEBの入力データの履歴ごと持ち歩くことが出来ます。・使用するPCには履歴を一切残しません。 他人のPCに入り込まない為、他人のセキュリティも守れます。
多機能マルチメディアプレーヤー Turbolinux wizpy 4GB スマート ブルー P0695
- Comments: 0
- Trackbacks: 0
- Search
- Feeds
- Meta










