Archive

Archive for November, 2009

rubyのTwitter::Base.new().verify_credentialsのメソッド?一覧

November 11th, 2009 No comments

verify_credentialsメソッドは認証したユーザについての情報を返す
Mashとかいうhashっぽいので定義されていて、何故かメソッドのごとく” . “でアクセス出来る
例)Twitter::Base.new(oauth).verify_credentials.screen_name

created_at
description
favorited
favourites_count
followers_count
following
friends_count
geo_enabled
href
id
in_reply_to_screen_name
in_reply_to_status_id
in_reply_to_user_id
location
name
notifications
profile_background_color
profile_background_image_url
profile_background_tile
profile_image_url
profile_link_color
profile_sidebar_border_color
profile_sidebar_fill_color
profile_text_color
protected
rel
screen_name
source
status
statuses_count
text
time_zone
truncated
url
utc_offset
verified
Tags: ,

rubyのTwitter::Base.newで得られるメソッド一覧

November 11th, 2009 No comments

使い方は気合いで

require 'twitter' # ver 0.7.0

==
===
=~
__id__
__send__
b64encode
blank?
block
class
client
clone
dclone
decode64
decode_b
delete
direct_message_create
direct_message_destroy
direct_messages
direct_messages_sent
disable_notifications
display
dup
enable_notifications
encode64
enum_for
eql?
equal?
extend
favorite_create
favorite_destroy
favorites
follower_ids
followers
freeze
friend_ids
friends
friends_timeline
friendship_create
friendship_destroy
friendship_exists?
frozen?
get
hash
help
id
inspect
instance_eval
instance_exec
instance_of?
instance_variable_defined?
instance_variable_get
instance_variable_set
instance_variables
is_a?
is_list_member?
kind_of?
list
list_add_member
list_create
list_delete
list_members
list_remove_member
list_subscribe
list_subscribers
list_timeline
list_unsubscribe
list_update
lists
memberships
method
methods
nil?
object_id
post
private_methods
protected_methods
public_methods
put
rate_limit_status
replies
respond_to?
send
singleton_methods
status
status_destroy
taguri
taguri=
taint
tainted?
tap
to_a
to_enum
to_json
to_s
to_yaml
to_yaml_properties
to_yaml_style
type
unblock
untaint
update
update_delivery_device
update_profile
update_profile_colors
user
user_timeline
verify_credentials

以上

Tags: ,

Ubuntu9.10とgrub2

November 9th, 2009 No comments

カーネルの更新が来たんですが何故か従来どおりmenu.lstが吐き出されました
#9.10からはgrub.cnfというのを使っていて、ユーザレベルではrootでも編集不可です
原因は何故かgrub-pcパッケージではなくてgrubが入っていたせいでした;
何でこんなことになっていたのか本当に意味不明です…
grub-pc入れてupdate-grub2やったら新しいカーネルが表示されました
しかし自動で選択してくれません;
これについては疲れたのでまだ調べてないです…

Tags: ,

SuperFetchを無効に

November 7th, 2009 No comments

VistaではSuperFetchで頻繁に使われるファイル(exeも含む)を予めメモリ上に置くことで動作の高速化を謳っている

しばらく使用した感想から言うと、この機能は糞である

最初、メモリが6GBもあるのでページファイルは要らないだろうとサイズを0にした
その後、しばらく時間を置いてVMwareでUbuntu9.10(2GB割当)を起動しようとしたら、
なぜかメモリが確保できませんでしたとかいうエラーでVMwareが落ちた…

その時起動していたのはFirefoxとTweetdeck、AviraAntivirを含むいくつかの常駐ソフトだけだ
どう考えても6GBあって不足するはずはないのだが…

そう考えながらタスクマネージャを見ると、確かに空きメモリが2GB以下になっていた…
よく見るとその上のキャッシュ済みという項目が4GBほど食っていた
#酷いときは残り50MB以下まで食うときもある…
そう、SuperFetchのキャッシュ済みサイズである
節操がない、などという次元ではない
単なるキャッシュなんだから他のソフトが必要とするならその領域を開放して明け渡せばいいのに、そうならなかった
結果、VMwareは起動できなくなった
ページファイルの使用が前提の設計のようだ(もしくは一度に2GB消費するソフトを起動したので間に合わなかったのかもしれない)
せめてこのSuperFetchの最大サイズを指定できればまだいいのだが…
もしくはソフトウェア単位でホワイトリスト登録方式とかだと間違いなく使える機能なんだが;
#ぶっちゃけFirefoxと他いくつかのソフトぐらいしか常用するものはないし

仕方ないので現在はSuperFetchサービスを無効にしている
有効にしていても四六時中HDDをガリガリ舐めて精神衛生上よろしくないし…
それでもキャッシュ済みが1GBぐらいあるんだけども、もうそこは我慢…
日に日にVistaへの信頼感が損なわれていくので、次の給料日には7Proにでもアップグレードしてしまおうかと思っている

多分、起動が異様に遅いソフト(Photoshop,Illustratorとか)を使っていてメモリが余裕で余っているならありがたい機能かもしれない
しかしながらブラウザなどのソフトを常に起動しておくのが普通の自分にとっては起動速度も糞もないのである

Tags: ,

VistaでBluetoothヘッドセットを使う場合の問題点

November 6th, 2009 No comments

VistaでもDR-BT140を使ってみたのですが、ペアリングが上手くいっても
使われるのはオンボードサウンドデバイスのままで、自動では切り替わりません
#再生デバイスを手動で切り替えれば使えます
XPでは設定すれば以降は自動で切り替わるのですが…

調べてみるとこんな文書が…

オーディオ出力が自動的にルーティングされていない、Windows Vista ベースのコンピューター上の Bluetooth のオーディオ デバイス
#日本語おかしいですが、機械翻訳されているためです

要約すると、Vistaでは
「Bluetooth音声デバイス繋いだら手動で切り替えてね♪これは仕様だよ♪てへっ☆」
ということで相違ないでしょうか…

あまりにも不便なので勘違いだと思いたいです;
どなたか自動で切り替える方法をご存知の方はご教授下さい
#同時に複数のデバイスに出力したい(排他制御)わけではありません、念のため

Tags: , ,