January 3, 2012 #wordpress

I use Page Links To plugin to redirect the "about" page to http://about.me/kinopyo url.

This plugin allows you to make a WordPress page or post link to a URL of your choosing, instead of its WordPress page or post URL. It also will redirect people who go to the old (or "normal") URL to the new one you've chosen (301 Moved Permanently redirects are standard, but you can choose a 302 Moved Temporarily redirect if you wish).

This functionality is useful for setting up navigational links to non-WordPress sections of your site or to off-site resources.

You can also use it to create a hand-crafted menu that links to pages, posts, categories, or anything within your site.

Reference:
http://www.kreci.net/web-development/how-to-make-wordpress-page-link-to-any-url/

January 3, 2012 #tumblr #tumblr

Click on the Account link in the top right hand corner of your dashboard.

Then click on theme.

Then in the top left hand corner you will see Tumblelog title.

Under that you will see the word "Untitled".

December 16, 2011 #iphone #mac #alfred #ios5 #reminder

Update

If you already upgraded to Moutain Lion OSX, you definetly don't need this, there is a navtive Reminder app built in :)

Original Post

You need to install Powerpack.

You can download Alfred extension here: http://www.dirtdon.com/?p=1261

Then launch your alfred, and type r foo, bar to create the reminder.
You can get the notification of Growl after it's done.

Create iOS 5 Reminders Tasks from Alfred

日本語

前提

AlfredおよびそのPowerpackのインストールが必要になります。

方法

http://www.dirtdon.com/?p=1261でAlfred用のExtensionをダウンロードしインストールします。

そうしますと、Alfred呼び出してr hogehogeでリマインダーが作成できます。

作成完了後はGrowlで通知もしてくれますー

Alfredについて

超オススメです。試してみてくださいー 特にPowerpack購入後は一気にパワーアップですよ!

November 22, 2011 #jquery #checkbox

jQueryでチェックボックスの状態を監視するイベントはclick eventを使う。

チェックされたかを判断するには$("#some_checkbox").is(':checked')がいい。

CoffeeScriptでのサンプルコード:

change eventも監視はできるが、取れる値は遅延されるみたいです。

The change event is sent to an element when its value changes. This event is limited to input elements, textarea boxes and select elements. For select boxes, checkboxes, and radio buttons, the event is fired immediately when the user makes a selection with the mouse, but for the other element types the event is deferred until the element loses focus.

参考:http://forum.jquery.com/topic/jquery-checkbox-checked-event

Overview

This is a tip to auto refresh your browser(s) when you hit Command + S(means saving file) in Textmate.

Steps

Open Bundle Editor, look for HTML, there will be a snippet called ‘Refresh Running Browser(s)’.

The code in the right side is very easy to understand. First it checks if one browser is opened, if yes, refresh it. By default it supports all the major browsers.

Bundle Editor Refresh Running Browsers

Set the Activation Key Equivalent to Command + S, and delete those file type in Scope Selector.
This way when you hit Command + S, text mate will save the file first and refresh all your opened browser.

If you want to just refresh a specific browser, like Safari, you can copy the snippet related to your browser.
Below is a sample for Safari.

Textmate auto refresh safari

日本語

目的

Textmateでファイルを保存(Command + S)したら自動でブラウザをリフレッシュしてくれる。

手順

Bundle Editorを開いて、HTMLのセクションの中の「Refresh Running Browser(s)」をクリックします。

右側のコードはわかりやすいです。まずそのブラウザが起動しているかをチェックして、リフレッシュします。デフォルトではFirefox、ChromeやSafariなど全部対応しています。

Bundle Editor Refresh Running Browsers

Activation Key EquivalentをCommand + Sに変更して下のScope Selectorを空にします
これでCommand + Sでファイルを保存した場合起動中のブラウザは全部リフレッシュされるはずです。

もし特定のブラウザだけリフレッシュしたい場合は、コピペーで新規にSnippetを作成し、該当のブラウザのコードだけを貼ればいいです。以下はSafariの例です。

Textmate auto refresh safari

June 4, 2011 #mac #ide #textmate

現象

Railscastsで紹介したhttps://github.com/jezdez/textmate-missingdrawerProject Drawerのプラグインをインストールした後に、ターミナルやTextMateのGUIでフォルダを開くときに画面が真っ白になる。ファイル一つ一つは開ける。

ターミナルで開いた時はこんなエラーを吐き出される:

mate*19082:903] Exception raised during posting of notification.  Ignored.  exception: '[NOTE: this exception originated in the server.*
 -*NSCFArray objectAtIndex:]: index (1) beyond bounds (1)'  invoked observer method: '-[OakLaunchHelper didLaunchTextMate:*'  observer: 0x1128a0  notification name: 'NSWorkspaceDidLaunchApplicationNotification'

原因

昔ProjectPlusというProject Drawerをインストールしたことがあり、どうやらその二つが衝突しているよう。

対策

~/Library/Application Support/TextMate/Plugins/ProjectPlus.tmpluginを削除

参考:http://ticket.macromates.com/show?ticket_id=188F672C

I encountered this problem when I synced my evernote in Mac OS.

Can't synchronize error, Content is not valid.

I googled and found this in the evernote support forum.

One of the Ruby gems replaces the built-in 'tidy' command in OS X (/usr/bin/tidy) with a broken script in the same location. You need to restore the original /usr/bin/tidy command that comes with OS X.

On my 10.6.6 box, that command is 65072 bytes:

~ $ ls -al which tidy
rwxr-xr-x 1 root wheel 65072 Aug 31 2010 /usr/bin/tidy

Once you've fixed that broken part of the OS, Evernote should work ok. You may also want to file a bug with the Ruby folks, who absolutely should not be replacing this file with their own.

It seems like that ruby gems in mac did a mess that replaced the /usr/bin/tidy command unintentionally.
So if your tidy file size does not match 65072 bytes, just copy on from other Mac OS, and chmod it.