2009-09-01から1ヶ月間の記事一覧
Rhaco::import('network.http.Http'); $url = 'http://www.kmusiclife.com/'; $headers = array( 'User-Agent'=>'Mozilla/5.0', 'abc'=>'postdata' ); list($head, $body) = Http::request($url, 'POST', $headers); echo $body; rawdataを送りたいときは Rh…
firefox3.xのgoogle notebookアドオンはここからdownload出来ます。 http://googlenotebookextension.blogspot.com/2009/06/google-notebook-extension-for-firefox.html上記サイトが消えた場合にこちらどうぞ google-notebook.xpiGoogle notebookのfirefox…
白バックだから動いているのか動いていないのか分からん!三半規管が弱いオレは酔う。まじ酔う勢い。しかも日本の畳の家では使えないやん。日本の家にはやさしくないなー。 そもそも日本の家はそんなに広くないからねー。
iPhone用に映像を変換する方法です。1.携帯動画変換君をダウンロード http://mobilehackerz.jp/contents/3GPConv2.携帯動画変換君を解凍後、下記ファイル(Transcoding.ini)を保存(存在する場合は上書き保存)iPhone動画用Transcoding.ini設定ファイル3.…
頭の上のiphoneが気になって気になって仕方が無い。iPhone: iPhone ARiderはスゴいぞ!
Google does not use the keywords meta tag in web rankingkeywords metaは検索ランキングに影響しないし、description metaはスニペットに使うがランキングには影響しない。
Google Calendarとiphoneのカレンダーを同期する方法がなかなか無くて非常に悩んだのでここに書くことにした。ちょっとでもわかりやすくなればいいっす。環境はGoogle AppsでGoogle Calendarを利用していることを前提としています。Google Appsでなくとも動…
AmazonをPHPのライブラリPEARから使う方法です。APIの変更が多くあるAMAZONなので今のところはこれでAPIの利用が可能です。下準備としてhttp://aws.amazon.com/よりアカウントを取得してAccess Key IDとSecret Access Keyを取得します。 http://aws.amazon.c…
Criteriaクラスを使ったORマッパーは非常に柔軟でプログラマのミスを減らしてくれたりしますが、SQLをダイレクトに書いたほうが早いことはあります。奨励はされませんが、まぁ分かりやすいこともあって使うことも多々あるかと思います。project.xml
project.xmlでrequire="true"になっている場合はupdateの際にrequireの項目にダミーデータを入れてあげてください。ダミーを入れないとエラーが出ます。その他unique="true"が設定されている場合はuniqueのカラムにダミーを入れたTableObjectを作成しQ::equa…
Apparel,Automotive,Baby,Beauty,Blend,Books,Classil,DigitalMic,DVD,Electronics,ForeignBooks,GourmetFood,HealthPersonalre,Hobbies, HomeGarn,Jewelry,Kitchen,Magazines,Merchants,Miscellaneo,Mic, MilInstruments,MicTracks,OfficeProducts,OutdoorL…
rhacoでのdeleteの仕方を書き忘れていました。INSERT, SELECT, UPDATEができればDELETEはかんたんだお。project.xml <project rhacover="1.6.1" version="0.0.1" name="rhaco_test" xmlns="http://rhaco.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://rhaco.org http://m.rhaco.org/xsd/project_1_6_x.xsd"> <…</project>
xmlだけではなくhtmlも強力にパースするライブラリさん。 phpでスクレイピングするならrhacoが最適です。こんな便利なものはありません。 <xmp> <?xml version="1.0" encoding="UTF-8"?> <user> <id>3724581</id> <name>Yuta Konishi</name> <screen_name>kmusicl</xmp>…
oauth.zipをダウンをロード oauth.ziplibrary/oauth/に内容を展開。内容はOAuth.php, TwitterOAuth.phpTwitter OAuth Clientで( http://twitter.com/oauth_clients )アプリケーションを登録。登録内容は簡単。アプリケーション名とアプリケーションのURLを入…
iPhoneの着信音を作る方法がたくさんWEBにあって分からない。どれが一番いいのか・・・。mp3もwavファイルもaifファイルもちゃんと揃っているのに分からん。iTunesでaacに変換するとか意外と面倒。aacに変換して〜〜こーすればiPhoneにはいる。そうだffmpeg…
rhacoではてなのサービスを利用するためのライブラリです。arbo.network.services.HatenaAPIが使いにくかったから作った。Hatena.phpをlibrary/mashiroに保存 class Hatena{ function Hatena($user, $pass){ $this->user = $user; $this->pass = $pass; $thi…
いつも大変お世話になっております。 株式会社金沢市産業の小西と申します。夏も終わりを告げ、そろそろ涼しくなってくるころですね。いかがお過ごしでしょうか。 さて、先日の〜の件についてですが〜*1 冒頭に必ず相手の会社名を入れること。株式会社、有限…
project.xml <project rhacover="1.6.1" version="0.0.1" name="rhaco_test" xmlns="http://rhaco.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://rhaco.org http://m.rhaco.org/xsd/project_1_6_x.xsd"> <database name="rhaco"> <table name="items" admin="true"> </table></database></project>
project.xml <project rhacover="1.6.1" version="0.0.1" name="rhaco_test" xmlns="http://rhaco.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://rhaco.org http://m.rhaco.org/xsd/project_1_6_x.xsd"> <database name="rhaco"> <table name="items" admin="true"> </table></database></project>
index.php require('__init__.php'); Rhaco::import('arbo.network.services.TwitterAPI'); $tw_user = 'username'; $tw_pass = 'password'; $tw = new TwitterAPI($tw_user, $tw_pass); // twitterへ投稿(update) $tw->status_update('This is test post.');
project.xml <project rhacover="1.6.1" version="0.0.1" name="userauth" xmlns="http://rhaco.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://rhaco.org http://m.rhaco.org/xsd/project_1_6_x.xsd"> <database name="userauth"> <table name="users" admin="true"> </table></database></project>