Author Archives: Nobu

Extracting thumbs-up tracks on Pandora, paste into Spotify playlist

Finally, Spotify is here in US. Pandora's endless recommendation works pretty well, but sometimes I would love to listen to one particular artist songs or one song repeatedly. It seems there's no way to export bookmarked songs on Pandora to anywhere, so made it. Download Pandora-to-Spotify Google Chrome Extension You need to use Google Chrome, [...]

Posted in Create | 40 Comments

Facebook Connect for Chrome Extension

Unfortunately, Facebook JavaScript SDK doesn’t work on Chrome Extension because an extension is working with “chrome-extension://” protocol. Google provides a tutorial for using OAuth, but it seems there’s an easier way which is explained by Facebook. You can download source code from Github.

Posted in Create | Tagged , | 8 Comments

How to backorder an expiring domain name

I’ve registered on SnapName, Pool and NameJet. And, somehow, I’ve received a few emails from “Arthur Simmons”. It seems he’s a spammer, but his offer is actually not too bad. I could figure out the email is something weird because I don’t know him and the sender domain and his company name is quite different. [...]

Posted in Think | Leave a comment

Unexpectedly got a grayscale video on ffmpeg

When I encode a video from jpeg to avi or something, I get this message: % ffmpeg -f image2 -i foo-%03d.jpg foo.avi Input Stream #0.0 frame size changed to 680×420, yuvj444p and the video will be grayscale unexpectedly. When I make jpeg images from png with ‘convert’ (which is ImageMagick command) a blank/black image becomes [...]

Posted in Tweak | Leave a comment

Compiling httpd-2.2.16 and php-5.3.3 on Mac OS X 10.6.4

Probably because of upgraded ports packages, self-compiled PHP on MAMP suddenly became not to find libjpeg and some libraries. There’s a way to upgrade to MAMP1.9, but I’ve decided to switch to use self-compiled 64bit PHP. Removed all macports packages. http://trac.macports.org/wiki/Migration % sudo port -f uninstall installed % sudo port clean –work –archive all For [...]

Posted in Tweak | Tagged , , , | Leave a comment

Screenshots for UIKeyboardType

iPhone has several keyboard types: typedef enum { UIKeyboardTypeDefault, UIKeyboardTypeASCIICapable, UIKeyboardTypeNumbersAndPunctuation, UIKeyboardTypeURL, UIKeyboardTypeNumberPad, UIKeyboardTypePhonePad, UIKeyboardTypeNamePhonePad, UIKeyboardTypeEmailAddress, UIKeyboardTypeAlphabet = UIKeyboardTypeASCIICapable } UIKeyboardType; I took the screenshots for them.

Posted in Tweak | Tagged | 2 Comments

SweetCatcher for Skype is now on github

One year ago I released SweetCatcher for Skype. Now it is on github. I haven’t had any chances to upgrade it, but it might be worth to be open source. You can use a normal icon instead of the lovely heart one. SweetCatcher is using some codes from SkypeAPITest which is provided by Skype. I [...]

Posted in Create | Tagged | Leave a comment

Don’t define json_encode with Zend_Json

Some web servers are still working with PHP5.1.6. That means json_encode/json_decode is not supported by default. Although some libraries are using json_encode, for instance php-sdk for facebook, so I defined json_encode like this: function json_encode($data) { return Zend_Json::encode($data); } I didn’t know that actually Zend_Json uses json_encode in their code, so badly it will be [...]

Posted in Tweak | Tagged | Leave a comment

[Unsolved] Got “Peer certificate cannot be authenticated with known CA certificates” while using Twitter OAuth with PHP PECL_OAuth

Here is a dump for $oauth->debugInfo. ($oauth is an OAuth class from PECL_OAuth) array(2) { ["sbs"]=> string(240) “POST&https%3A%2F%2Fapi.twitter.com%2Foauth%2Frequest_token&oauth_consumer_key%3***%26oauth_nonce%3D16905507154beeed8c5ce2d0.02323759%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1273949580%26oauth_version%3D1.0″ ["info"]=> string(537) “About to connect() to api.twitter.com port 443 (#0) Trying 128.242.245.125… connected Connected to api.twitter.com (128.242.245.125) port 443 (#0) SSLv3, TLS handshake, Client hello (1): SSLv3, TLS handshake, Server hello (2): SSLv3, TLS handshake, CERT (11): [...]

Posted in Tweak | 1 Comment

jQuery plugin for Twitter OAuth via popup window (Facebook style)

Disqus and some applications are using Twitter OAuth, but their user flow is not sequential single window process. A child window comes up, then it shows twitter.com and user can click Deny/Allow through that popup. When the user hits the deny or allow button, the popup will be closed immediately and the parent window will [...]

Posted in Create | Tagged , , , , | 16 Comments