RIP Onedrive

今天 Onedrive 似乎、貌似、好像又“翘”了涅。正好用 Word 在线编辑文档编辑到一半,它奶奶个熊

只需 trace 域名 1drv.ms 便可知晓。现在到半途就嗝屁了。

   3    10 ms    12 ms     6 ms  61.152.51.53
4 7 ms 5 ms 6 ms 101.95.120.238
5 6 ms * 6 ms 202.97.57.157
6 24 ms 22 ms 21 ms 202.97.35.138
7 52 ms 53 ms 53 ms 202.97.6.50
8 * * * Request timed out.
9 * * * Request timed out.
10 * * * Request timed out.
11 * * * Request timed out.
12 * * * Request timed out.
13 * * * Request timed out.
14 * * * Request timed out.

7 月中上旬“翘”了几天,现在又“翘”了。看来距离被彻底的不可描述不远了吧。 ( 狗头保命)


Update: 当日(7/31)晚恢复了

WUnderground Free API is closed.

Have been used Weather Underground free API for my personal use for the last couple of years. However, it has been broken since yesterday. Unable to retrieve weather data and only thing I got from the response is “invalidkey”. Then I logged in to my weather underground developer account, there was an error message: “the API key has been disabled manually”.

So, what is wrong? I only use this key to show local weather information in my place, designed to fetch information every 15 minutes from wunderground.com, way below the limits. (Free API can have 500 calls per day, 10 calls per minute.)

Later, I found there is a message appeared on the homepage of WeatherUnderground API says “we will no longer provide free API keys“. Also there is a post on the official community website says “Your subscriptions, and therefore access, will continue to work through 12/31/2018.(https://apicommunity.wunderground.com/weatherapi/topics/end-of-service-for-the-weather-underground-api?topic-reply-list[settings][page]=4#topic-reply-list)

I also Googled, there were discussions about this since mid-2018. Looks like, they have planned for a long time. However, I searched my inbox, there is nothing sent from weather underground in the last year.

It is time switch to another weather API provider now.

(Workaround) To remove a stubborn package on Debian.

I have a Buffalo LinkStation, which I installed Debian Stretch on it.

Recently, I was trying to remove obsolete packages by using “apt-get autoremove” command after an update. Usually this process will take a couple of minutes. But this time, unfortunately there was a package (to be more specific, an old kernel) which refused to be removed by apt or dpkg. Continue reading (Workaround) To remove a stubborn package on Debian.

一不留神被转义字符坑了一小下。或者说是自己把自己坑了一小下。

之前写过个小程序,其中有个功能是通过源JSON中的title值对文件进行重命名。

本来就有文件名过滤的方法用于将JSON中的非法字符给替换掉。不过最近JSON格式略有改变,有些title里会加入转义字符(Escape sequence),比如 “ \t ”。这么一来如果在Windows下直接将这种title用于目标文件名是会报错的。已有的替换方法会将JSON中常见的非法字符替换为全角字符(比如 “ * ” 变成 “*” 这样),于是我就轻车熟路加上了对于 \t 的处理语句(其实只要清掉它即可)。不过没留神的是,因为 C# 里面平时替换反斜杠(backslash)的时候是用 2 条反斜杠作为 keyword 进行字符串替换。于是在加入这个新东西的时候,习惯性的输入 String.Replace(“\\t”, “”);

于是程序就很有个性的无视了源数据里面的那个\t,搞得我调试了好一会儿,最后发现是自己秀逗了,应该用 “\t” 作为关键字而非 “\\t”。因为 \t 已经是 C# 中自带的转义字符了[1],若在此使用 2 条反斜杠反而适得其反,使得意义完全不同了。

(环境:VS Express 2013 for Desktop)


[1] https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-2013/h21280bw(v=vs.120)

Adobe 的脑子被枪打了吧…

最新的 Flash player 30 居然出了瓷器国特色版。直接访问 get.adobe.com/flashplayer 会被重定向到 flash.cn,安装特色版会被捆绑安装 2144。

照网上教程用国际版离线安装包加上 -install -iv 10 参数断网安装,但是使用时依旧会弹出如图对话框(已经屏蔽了2144.com的域名……)。莫名其妙吧,大概阿刀伯已经发现这个对策了?

那么,吾等草民就只好这么办了:


想当年(10多年前)Macromedia Flash 红极一时,上学的时候还参加过一些 Flash 动画比赛。不过被 Adobe 收购后感觉真是王小二过年一年不如一年,每次更新就是安装包体积越来越大。

而且,近几年由于移动设备普及,使得 HTML5 视频越来越普及。国内的主流视频网站也基本提供了 HTML5 的支持,所以 Flash 已经不再像以前那样是上网冲浪的必备了。电脑里之所以还装着是因为偶尔可能碰到某些网站,用 Flash 显示视频或者图表。不过想了下,似乎有蛮长时间没有遇到这种情况了,那么还是右击–>卸载 ,say goodbye 吧。

最后,阿刀伯是疯了吗还是自我感觉太好?现在已经不是离不开 Flash 的年代了。你也不是 DVD 影碟分个大头鬼的区!这么做简直是搬石头砸自己脚。