搞了一个下午想找一个“可以信赖加稳定”的图片上传 API,而且要让 Titanium Mobile 支持。
第一个:尝试 PhotoBucket
免费帐号可以拥有 2GB,蛮多的。
但是它的 API 有点难做,支持的库又少到可怜,所以,最终放弃了。
第二个:尝试 Flickr
免费账号可以拥有 1TB,超多的,1TB = 1000GB = 1000 x 1000 MB.
它的 API 支持广泛,而且已经有善心人士设计出 Titanium Mobile API 了。它跟我已经使用的 Twitter API 应该是同一个人写的。但是在实际做的时候,一直上传不到照片。主
第三个:尝试 ImageShack
免费账号可以拥有 ??? GB,过后下载了 SkyPath iOS 版本获得了免费一年的 25GB。
它的 API 非常简单,简单到我可以完全100%自己写一个简单的 API Client 出来,然后非常顺利的,上传成功。
可以指定图片网址,或者直接让手机拍照然后上传照片。
这个图片上传功能将内建在我的程序库里。
Posted by fyhao
PHP str_replace Boyer Option
The PHP str_replace function signature
proto mixed str_replace(mixed search, mixed replace, mixed subject [, bool boyer])
It seem that PHP support boyer as an option (toggle on/off)
Boyer-Moore is a faster algorithm in search and replace, especially in large text search, mostly used in text editor.
PayPal从Java迁移到Node.js
PayPal从Java迁移到Node.js
http://goo.gl/MM8PPw
Keyword: Kraken Framework, based on Express + Grunt.
Ping back feature in blogging
Curious about Pingback function in my blog.
After googling, Pingback is a function implemented in blogging software including WordPress. What wordpress does is when your WordPress site enabled auto pingback, when you make a post, WordPress will ping all the links in your post, whenever the links in your post accept the ping (another WordPress blog), then your post will be linked to that another site where another site get the pingback from you.
Then, the blog author can track whoever reference their posts.
Awesome Remote Plane Singapore Airline
[imgshow]q:name=fbvideo,code=742879692407122,desc=remote plane singapore airline[/imgshow]