“Web”目录存档

Spotify要向中国开放了!预计在2010 一月~六月

2009年12月1日,星期二

Spotify我很早就介绍过了。今天Techcrunch的消息:预计在2010年第1个或者第二个季度,Spotify要向中国开放了!

The headline points from his talk were that we can, as we expected, see a US launch in Q1 2010 as well as a launch in Germany and China in Q1/2 (so no pressure then).

[...]

China is also going to be a huge market for Spotify. Khan knows it well – he launched and exited an internet advertising company in China years before it even appeared on most people’s radar.

He says the number one online activity there is music and guess what, “no-one buys music in China”.

Device wise Spotify “would like to be everywhere”, even if it has a “partial connection” like a car. They are looking to be in TV Screens, gaming consoles, but likely more for premium users only rather than free, ad-supoorted users.

看了下Shakil Khan还是有一些中国背景的。。。

Spotify最凶残的竞争对手将是QQ音乐。希望Spotify能在内地直接设服务器,或者至少在HK或者Singapore弄一个镜像,否则速度太慢了。

Spotify所说的车载和手持设备,这个领域更加凶险,老巢位于成都的中国移动12530.com,技术烂网站烂什么都烂,但是就是有牛逼的后台和巨额资金投入。也是中国移动内容战略比较关键的一环。。。。。Spotify跟这种国家级老大哥老流氓老black社会,如果真斗上了估计是也是凶多吉少。。。。

Spotify想称雄国内音乐市场,甚至合法塑形付费音乐产业,现有的功能配备是肯定不行的。必须大刀阔斧本地化。否则注定被竞争对手学习消化并且山寨,然后Spotify被冷落而小众。还有个很大的风险就是Guns n' Roses这种著名乐队,可能被竞争对手恶意举报。。。。。

PS 欢迎加入在豆瓣的Spotify小组

网易的Flash这个跨域请求怎么还没修正啊?

2009年11月30日,星期一

crossdomain.xml 貌似也是对的?

btw 看到这则新闻,很搞。。。

H.264果然牛逼啊

2009年11月25日,星期三

经常在手机上看美剧,320x240的屏幕,所以对画质要求也不高了。所以经常去优酷直接下载flv看。

对比一下下面两个片段,都是用优酷官方工具直接下载的,用hex编辑器暴力保存了前面2.2MB一截:

Two And A Half Men S02E21

Two And A Half Men S02E22

都是2.2MB多一点的flv,时间长度也差不多,但是第一个是H.263+MP3,第二个是H.264+AAC,后者的画质和音质明显比前者好n倍。而且后者在1280x800分辨率下观看,我都相当满意。。。。。。

H.264牛逼。。。。。。不知道Google收购那个VP8会不会更加牛逼。。。。呵呵。。。

BTW,看了下Dark Angel,两个感觉,Fox真他妈的混蛋。砍Dark Angel拍Firefly,然后又砍Firefly。第二个感觉,那就是9/11和金融危机对老美影响看来是挺大的。现在都他妈去做低成本sitcom去了,也很少有老美当年拯救世界那种英雄主义气魄的电视剧了。美帝颓废了。

Matheatre - Unit Circle Trigonometry

2009年11月22日,星期日

很囧的一首歌。歌词官网有,

In the style of:
Gilbert & Sullivan - When I Was A Lad

Zero, π over 6 and more,
The next one to know is π over 4,
Then π over 3 and π over 2,
Are all of the radians I’ll tell to you!

r is 1, circumference is π times 2

O, thirty, forty-five, sixty, ninety!
That’s why I love unit circle Trigonometry.

O, thirty, forty-five, sixty, ninety!
That’s why I love unit circle Trigonometry.

The x’s are 1, square root of 3-
Over 2 horizontal they must be.
Square root of 2 over 2 and next are,
One half and zero the stately x.

Secretly they’re cosine but that’s coming next.

O, thirty, forty-five, sixty, ninety!
That’s why I love unit circle Trigonometry.

O, thirty, forty-five, sixty, ninety!
That’s why I love unit circle Trigonometry.

Zero, one half, and square-root of 2-
Over 2, that’s "y" I’m telling you,
Square-root of 3 over 2 and 1.
Sine is the height at any radian,

The square-root of 4 over 2 is 1!

O, thirty, forty-five, sixty, ninety!
That’s why I love unit circle Trigonometry.

O, thirty, forty-five, sixty, ninety!
That’s why I love unit circle Trigonometry.

Now there are three other quadrants to
The unit circle that is in your view,
I’m not going to sing them,
You can work them through,
And while you are doing that I’ll say to you:
r COSINE is X!…And r SINE is Y!
So we all love unit circle Trigonome - tri!

r COSINE is X!…And r SINE is Y!
So we all love unit circle Trigonome - tri!

btw, thesixtyone.com是Django做的网站哦。。。

GReader里图片较多的RSS按j跳过之后进度条会跳动很烦

2009年11月17日,星期二

在Google Reader里经常遇到网友分享的图片很多的帖子,例如u148和掘图志。这个时候如果想按 j 跳过就麻烦了,因为图片没加载完,看下一篇帖子的时候滚动条老跳动。

这个问题其实我很早就解决过,IE下,按Esc这个键,可以停止所有页面的图片加载(同时提示下IE里按Esc可以停止GIF动画播放和停止背景音乐),不刷图片了,页面自然就不会跳动了。

但是这个问题在Chrome下又出来了,Chrome下Esc也会停止页面加载,但是可能因为Google Reader采用了frame或者iframe之类的框架页,Esc似乎对框架页不起作用,这个算webkit的bug吧?

现在修正这个bug的机会来了,我已经向Chromium提交了这个issue,有Gmail帐号的同学们一定帮忙去顶啊,或者转帖这篇博文,让大家都来顶,让Google看到,让新版本改进这个bug

地址是:

http://code.google.com/p/chromium/issues/detail?id=19134

英文好的同学可以长篇大论软硬皆施,英文不好的同学在最下面的comment里输入一个 +1 顶贴好了。感谢各位支持咯。

更新: Google官方已经列为milestone-5的目标了,大家不用去++++++n了。当然有建设性的意见还是可以继续提出。官方已经抱怨spam了,大家就绕了chromium开发者了吧。。。。

Google TTS API

2009年11月17日,星期二

今天的Google Translate更新

下面的URL得到一个mp3

http://translate.google.com/translate_tts?q=Hello%20guys!&tl=en

以前的那个TTS需要一个参数,这次不需要了。

XX音乐批量下载

2009年11月14日,星期六

谷歌音乐是不错,但是专辑很不全啊,而且mp3的ID3信息也不标准,所以最近一直在alibaba几个高手做那个音乐站拖歌。虽然有官方下载工具,但是需要积分。所以只有自己动手了

http://xx.com/song/playlist?id=3590936,3590937 等等等等,得到一个XML文件

mp3的URL就是 <location> 字段里的,解密用的是这个ECMAScript函数,保存下面的代码为test.js到桌面双击运行就OK了

function jiemi(sourceString)
{
    var _loc9 = Number(sourceString.charAt(0));
    var _loc7 = sourceString.substring(1);
    var _loc5 = Math.floor(_loc7.length / _loc9);
    var _loc6 = _loc7.length % _loc9;
    var _loc2 = new Array();
    for (var _loc3 = 0; _loc3 < _loc6; ++_loc3)
    {
        if (_loc2[_loc3] == undefined)
        {
            _loc2[_loc3] = "";
        } // end if
        _loc2[_loc3] = _loc7.substr((_loc5 + 1) * _loc3, _loc5 + 1);
    } // end of for
    for (var _loc3 = _loc6; _loc3 < _loc9; ++_loc3)
    {
        _loc2[_loc3] = _loc7.substr(_loc5 * (_loc3 - _loc6) + (_loc5 + 1) * _loc6, _loc5);
    } // end of for
    var _loc4 = "";
    for (var _loc3 = 0; _loc3 < _loc2[0].length; ++_loc3)
    {
        for (var _loc1 = 0; _loc1 < _loc2.length; ++_loc1)
        {
            _loc4 = _loc4 + _loc2[_loc1].charAt(_loc3);
        } // end of for
    } // end of for
    _loc4 = unescape(_loc4);
    var _loc8 = "";
    for (var _loc3 = 0; _loc3 < _loc4.length; ++_loc3)
    {
        if (_loc4.charAt(_loc3) == "^")
        {
            _loc8 = _loc8 + "0";
            continue;
        } // end if
        _loc8 = _loc8 + _loc4.charAt(_loc3);
    } // end of for
    return (_loc 8) ;
}
var x=jiemi('6hAFio3F%%53%mt%mam2355965pt2pm%52EE%_E3pF3i262%1534%%..F%52+E9732xc227F396.'); WScript.Echo(x);

SPDY,HTTP,安全以及IPv4地址数量

2009年11月13日,星期五

今天Google发布的SPDY已经满世界飞了,我就不多说了,但是HN上的讨论提到有意思的几个事情

我们知道IPv4地址剩余不多是因为Internet的迅速发展,这其中主要是Web的增长推动的。

  • 比现有Web更好的安全性,例如SSL,则必然破坏中间缓存 intermediate caching
  • SSL还破坏了virtual hosting。例如Dreamhost上虚拟主机连Shared SSL都不能买
  • 所以我们依然还有IPv4地址剩余

SPDY应该还是很有前瞻性的,不过我觉得限制死gzip不太好玩,应该开放一个服务器&客户端插件接口让大家自己玩 alternative 加密啊,这样墙绝对要哭。

还有就是我前面提到的 Information Dispersal Algorithms,这个可以用于large binary transfer的优化。因为SPDY传输JPEG这种已经压缩过的东西没用。其实我猜如果现有CDN架构升级到IDA体系的话,安全性应该不是很重要了。呵呵。

Google Street View和Win XP那个Bliss草地壁纸

2009年11月8日,星期日

关于Windows XP默认Luna主题的那个Bliss壁纸,

这个其实是1979拍摄的。

Wikipedia上有个详细的介绍,cnBeta也介绍过了。

这个是2006年版的:

这个是Google Street View里看到版本:

但是最佳位置被Google挖去了。Wikipedia说exact location has imagery removed, and replaced with a new image。不知道为什么。。。。。

加州很漂亮哈。

Minor points about SNS, twitter & reddit

2009年11月6日,星期五
  • Twitter's new List feature is really nice, it jump into the fray and pulls social networking to a new latitude. Conventional SNS aims to build relationship between people, and List brings groups of people together, which transforms SNS computing from scalar into vector and from graph to hypergraph (Thanks lol). And it means linear algebra, matrix transformation and hell other heavy stuff.
  • Reddit's major subreddits are suffering from topic shifting. Proggit has been eternally septembered for a long time now. I was joking on ##proggit IRC that proggit should really be renamed to r/programming_talk, and here's the reply:

    <Vellos> Right, just like reddit/r/worldnews should be renamed to news_from_anywhere_that_is_not_north_america.

    and LOL.

  • Subreddits, should have a function called forking and merging. So does submissions.