Sunday, December 25, 2016

Bypassing Torrent Block

Can't seem to access your favourite torrent sites lately? Getting an error page that says "Access to this website has been disabled"? That's your tax dollars at work. (Sort of.)

As requested by Foxtel and Village Roadshow, the Australian Federal Court has ordered the major ISPs (Telstra, Optus, iiNet, Dodo, TPG, etc.) to block access to 5 torrent sites, specifically:



From what I've read, Foxtel and Village Roadshow will have to pay the ISPs $50 for every domain that is blocked. Any new domains that they want blocked will have to go through the courts.

Based on my experience, Telstra and Optus are using DNS blocking. Simplest workaround is to use another DNS server, instead of your ISP's. Change your WiFi/Ethernet connection's DNS server configuration to point to for example, Google's DNS servers, 8.8.8.8 and 8.8.4.4. Problem solved.

Saturday, December 24, 2016

2 DS in 2 Days

No, not a 2DS. What I meant was, I somehow managed to get two DS consoles in two days.

So my kid saw me playing on my Nintendo DS Lite, and he wanted one for himself. Had a quick look on eBay and Gumtree. Would you believe these things are still selling for around $50 to $100 (from DS Lites to DSi's and DSi XLs)?

Anyway, found this guy on Gumtree selling his DSi and DSi LL relatively cheap ($20 and $30, respectively). Reason why they're cheap is because they're Japanese consoles, and there's no way to switch the language to English (Yes, I checked.) They should be able to take in any region cartridge and you should be able to just play away. Between the two, I decided to get the LL. (Bigger is always better.) I probably would've also bought the other one, if only he can find it. Instead of buying game cartridges, I went to oz3ds.net and bought myself an R4i Gold 3DS flashcart. True, there are cheaper alternatives out there, but I was told this is the gold standard.

Now that I think about it, I should've bought a DS Lite (since I already have an extra R4 DS just lying around), instead of buying the DSi LL, plus the flashcart. So this time I started looking around for a DS Lite. Found one for sale on Gumtree for $5. By the time I inquired, price has gone up to $20 ("due to popular demand"). I guess a lot of potential buyers got turned off by the price increase because I managed to snag it. Heck, even comes with an M3DSReal flashcart. Not the best, but hey, it's free. For the latest firmware, go here or here.

Tuesday, December 20, 2016

Downloading Brightcove Videos

Got some Brightcove webinars from work that I need to download, but finding it quite challenging. Most of the blog posts talk about disabling Flash, enabling developer tools, then setting device emulation and/or user-agent spoofing to Apple iPad.

Logic here is that Brightcove typically transports videos via Flash, as this makes saving videos for offline very difficult. By spoofing the device as an Apple iPad, the theory is that the Brightcove player should fallback to HTML5 mode and we should then be able to save the file as mp4.
So the steps are:

  1. Disable Flash via chrome://plugins
  2. Go to Developer Tools (Ctrl-Shft-I), and switch to Apple iPad mode.
  3. Go to Network tab and filter for mp4.
  4. Reload the page (F5) and wait for the mp4 link to show up.


What I noticed is that disabling the Flash plug-in doesn’t really help. I’m not seeing any mp4 URL. Other blog posts talk about rtmp hacking. Again, I don’t see any reference to rtmp on the Network tab.

Now that I think about it, Brightcove probably doesn’t even use Flash anymore, as almost everyone else is now using HTML5 for video streaming. A closer look at the network traffic shows that the Brightcove player is sending over binary blobs of video using xhr (XMLHttpRequest/Response). It’s possible that the player is not falling back to mp4 mode because it assumes the Apple iPad (and Safari) can handle HTML5 XHR. To test my theory, I switched the device emulation to Google Nexus 4, and this time the tricked worked just fine – even without disabling Flash. On the Network tab, I can see the mp4 link, which can be copied and pasted to your favourite downloader.

While this worked for now, there’s no telling what Brightcove might come up next. For reference, below are some blog posts on what other people have done.

Using rtmp:
http://johntantalo.com/blog/extracting-video-from-brightcove-player-with-rtmpdump/
http://forum.videohelp.com/threads/354508-Brightcove
http://www.benfrancom.com/2016/03/17/download-brightcove-videos.html
http://mrbluecoat.blogspot.com.au/2013/11/download-brightcove-videos-tutorial.html
https://www.reddit.com/r/techsupport/comments/2ro9vn/need_help_downloading_embedded_video/

Using mp4 fallback:
http://grumblesmeckerecke.blogspot.com.au/2015/01/how-to-download-brightcove-videos.html
http://words.bombast.net/download-brightcove-videos/
http://www.mikewebguy.com/2013/08/20/save-brightcove-videos-from-google-chrome/
https://tjkelly.com/blog/how-to-download-brightcove-video/

Sunday, December 11, 2016

Nougat on Grouper

Who would believe that the Nexus 7 (2012) 32GB WiFi tablet is still selling for $200 on ebay?! I mean, this thing is already 4 years old! I found someone selling it for $35 on Gumtree, so I immediately snatched it up.

Latest factory image for nakasi (a.k.a. grouper) is Android 5.1.1 (LMY47V). A check on XDA-Developers show that there's an unofficial AOSP 7.1.1_r4 Nougat build for it, so guess which one I went for?

Before anything anything else, given that this is a stock device, you have to first unlock the bootloader, root, and install a custom recovery. All these are done with WugFresh's Nexus Root Toolkit. Just tell NRT what Nexus device you have, and on what software level, and it will take care of downloading all the files that you need from the Internet. Remember to enable USB debugging on the device first!

If NRT/adb cannot detect your tablet when connected to your PC's USB port, you might have to download and install the Nexus 7 USB drivers:
https://developer.android.com/studio/run/win-usb.html
https://androidmtk.com/download-google-nexus-usb-drivers

If the drivers won't install properly on Windows 8.1 or Windows 10, you might have to disable Driver Signature Enforcement:
https://www.youtube.com/watch?v=Z6HbmjXONuk

Download ROM, 7.1 pico Gapps, and SuperSU here:
http://forum.xda-developers.com/nexus-7/development/rom-android-7-aosp-grouper-t3467514
Gapps have to be pico or else it won't fit in the /system partition given the size of the ROM.
With SuperSU, we'll be doing a systemless install (via recovery) to prevent potential bootloops.

In summary, here are the steps:
  1. Enable USB debugging on N7 (via Developer Options) and connect to PC via USB.
  2. Using NRT, unlock bootloader. Takes a loooong time for the N7 to boot up. Have patience.
  3. Enable USB debugging again.
  4. Again using NRT, root and install customer recovery.
  5. Boot to recovery using NRT's Advanced Utilities.
  6. Wipe --> Factory Reset. You might also want to Format Data if you want to start fresh with no leftover crap.
  7. Reboot to system. At this point, you can copy the ROM, Gapps, and SuperSU zips to the device via MTP.
  8. Again, boot to recovery using NRT's Advanced Utilities.
  9. Flash ROM and reboot to recovery.
  10. Flash Gapps and reboot to recovery.
  11. Mount the /data partition, if not already mounted.
  12. Open Terminal and enter the following command: # echo "SYSTEMLESS=true" >/data/.supersu
  13. Close Terminal and flash SuperSU.
  14. Reboot system.
Enjoy that Nougat goodness on your grouper!

Tuesday, November 22, 2016

Downloading Vimeo Videos

Downloading videos from the Internet for offline viewing is getting harder and harder.

For YouTube videos, I usually just cut and paste the URLs onto Dirpy for easy downloading. For the trickier ones that don't actually show you the video URL, you can simply let the video play out, then pick it off from the browser cache folder. Of course, that assumes you know where the cache folder is and which of the hundreds of files is the video stream that you're after. (I usually base it on the filesize and timestamp.)

Some of the video sites are now onto this. While streaming, the video file saved as chunks in the cache folder. If you don't know how to merge the multiple files, then there's no way for you to play them back again.

Another way video sites beat offline downloaders is to obfuscate the video source. Even if you view the page source, you're not going to find any file reference anywhere. In the end, the browser needs to know where the pull the video stream from, so it must be there somewhere. One way I discovered of getting around this is to use the "inspect element" option. By highlighting the actual video window/iframe, I was able to narrow down to the relevant section and search for the video URL. After that, it's just a matter of pasting the URL onto JDownloader, and letting it do its magic.

Friday, November 4, 2016

周杰倫 - 明明就

周杰倫 - 明明就

作詞:方文山
作曲:周杰倫
編曲:黃雨勳
製作人:周杰倫

伴奏版



*
糖果罐裡好多顏色
Tang guo guan li hao duo yan se
微笑卻不甜了
Wei xiao que bu tian le
你的某些快樂
Ni de mou xie kuai le
在沒有我的時刻
Zai mei you wo de shi ke

**
從故事記的城市裡
Cong gu shi ji de cheng shi li
我想就走到這
Wo xiang jiu zou dao zhe
海鷗不再眷戀大海
Hai ou bu zai juan lian da hai
可以飛更遠
Ke yi fei guang yuan

***
遠方傳來風笛
Yuan fang zhuan lai feng di
我卻在意有你的消息
Wo que zai yi you ni de xiao xi
深怕為愛守著秘密
Shen pa wei ai shou zhe mi mi
而我為你守著回憶
Er wo wei ni shou zhe hui yi

[Chorus]
明明就不習慣牽手
Ming ming jiu bu xi guan qian shou
為何卻主動把手勾
Wei he que zhu dong ba shou gou
你的心事太多 我不會說破
Ni de xin shi tai duo wo bu hui shuo po
明明就他比較溫柔
Ming ming jiu ta bi jiao wen rou
也許他能給你更多
Ye xu ta neng gei ni geng duo
不用抉擇我會自動變朋友
Bu yong jue ze wo hui zi dong bian peng you

Repeat *

Repeat **

Repeat ***

Repeat Chorus

明明就 明明就明明就他比較溫柔
Ming ming jiu ming ming jiu ming ming ta bi jiao wen rou
也許他能給你更多
Ye xu ta neng gei ni geng duo
不用抉擇我會自動變朋友
Bu yong jue ze wo hui zi dong bian peng you

Thursday, November 3, 2016

周杰倫 - 說了再見

周杰倫 - 說了再見

作詞:古小力、黃淩嘉
作曲:周杰倫
編曲:鍾興民



*
天涼了 雨下了 妳走了
Tian liang le, yu xia le, ni zou le
清楚了 我愛的 遺失了
Qing chu le, wo ai de, yi shi le
落葉飄在湖面上睡著了
Luo ye piao zai hu mian shang shui zhao le

想要放 放不掉 淚在飄
Xiang yao fang, fang bu diao, lei zai piao
妳看看 妳看 看不到
Ni kan kan, ni kan, kan bu dao
我假裝過去不重要 卻發現自己辦不到
Wo jia zhuang guo qu bu zhong yao, que fa xian zi ji ban bu dao

Repeat *

**
說了再見 才發現再也見不到
Shuo le zai jian cai fa xian zai ye jian bu dao
我不能就這樣失去妳的微笑
Wo bu neng jiu zhe yang shi qu ni de wei xiao
口紅待在桌角 而妳我找不到
Kou hong dai zai zhuo jiao er ni wo zhao bu dao
若角色對調妳說好不好
Ruo jiao se dui diao ni shuo hao bu hao

Repeat **

說了再見 才發現再也見不到
Shuo le zai jian cai fa xian zai ye jian bu dao
能不能就這樣忍著痛淚不掉
Neng bu neng jiu zhe yang ren zhe tong lei bu diao
說好陪我到老 永恆往那裡找
Shuo hao pei wo dao lao, yong heng wang na li zhao
再次擁抱一分一秒都好
Zai ci yong bao yi fen yi miao dou hao

Repeat *

妳的笑 妳的好 腦海裡 一直在繞
Ni de xiao ni de hao nao hai li yi zhi zai rao
我的手 忘不了 妳手的溫度
Wo de shou wang bu liao ni shou de wen du
心碎了一地 撿不回從前的心跳 身陷過去我無力逃跑
Xin sui le yi di jian bu hui cong qian de xin tiao, shen xian guo qu wo wu li tao pao
說再見 才發現再也見不到
Shuo zai jian cai fa xian zai ye jian bu dao
能不能就這樣忍著痛淚不掉
Neng bu neng jiu zhe yang ren zhe tong lei bu diao
說好陪我到老 永恆往那裡找
Shuo hao pei wo dao lao, yong heng wang na li zhao
再次擁抱一分一秒都好
Zai ci yong bao yi fen yi miao dou hao




Wednesday, October 19, 2016

周杰倫 - 手寫的從前

周杰倫 - 手寫的從前

作詞:方文山
作曲:周杰倫
編曲:黃雨勳



這風鈴 跟心動很接近
Zhe feng ling gen xin dong hen jie jin
這封信 還在懷念旅行
Zhe feng xin hai zai huai nian lue xing
路過的 愛情都太年輕
Ru guo de ai qing dou tai nian qing
你是我想要 再回去的風景
Ni shi wo xiang yao zai hui qu de feng jing

這別離 被瓶裝成秘密
Zhe bie li bei ping zhuang cheng mi mi
這雛菊 美的像詩句
Zhe chu ju mei de xiang shi ju
而我在風中等你 的消息
Er wo zai feng zhong deng ni de xiao xi
等月光落雪地
Deng yue guang luo xue di
等楓紅染秋季等相遇
Deng feng hong ran qiu ji deng xiang yu

*
我重溫午後 的陽光
Wo zhong wen wu hou de yang guang
將吉他斜揹 在肩上
Jiang ji ta xie bei zai jian shang
跟多年前一樣
Gen duo nian qian yi yang
我們輕輕的唱
Wo men qing qing de chang
去任何地方
Qu ren he di fang

**
我看著你的臉
Wo kan zhe ni de lian
輕刷著和弦
Qing shua zhe he xian
情人節卡片
Qing ren jie ka pian
手寫的永遠
Shou xie de yong yuan
還記得廣場公園 一起表演
Hai ji de guang chang gong yuan yi qi biao yan
校園旁糖果店
Xiao yuan pang tang guo dian
記憶裡在微甜
Ji yi li zai wei tian

***
我看著你的臉
Wo kan zhe ni de lian
輕刷著和弦
Qing shua zhe he xian
初戀是整遍 手寫的從前
Chu lian shi zheng bian shou xie de cong qian
還記得那年秋天 說了再見
Hai ji de na nian qiu tian shuo liao zai jian
當戀情已走遠
Dang lian qing yi zou yuan
我將你深埋在 心裡面
Wo jiang ni shen mai zai xin li mian

微風需要竹林 溪流需要蜻蜓
Wei feng xu yao zhu lin xi liu xu yao
鄉愁般的離開 需要片片浮萍
Xiang chou ban de li kai xu yao pian pian fu ping
記得那年的雨季 回憶裡特安靜
Ji de na nian de yu ji hui yi li de an jing
哭過後的決定
Ku guo hou de jue ding
是否還能進行
Shi fou hai neng jin xing
我傻傻等待
Wo sha sha deng dai
傻傻等春暖花開
Sha sha deng chun nuan hua kai
等終等於等明等白
Deng zhong yu deng ming deng bai
等愛情回來
Deng ai qing hui lai
青春屬於表白
Qing chun shu yu biao bai
陽光屬於窗台
Yang guang shu yu chuang tai
而我想我屬於 一個擁有你的未來
Er wo xiang wo shu yu yi ge yong you ni de wei lai

紙上的彩虹
Zhi shang de cai hong
用素描畫的鐘
Yong su miao hua de zhong
我還在修改 回憶之中
Wo hai zai xiu gai hui yi zhi zhong
你的笑容 該怎麼去形容
Ni de xiao rong gai zen me qu xing rong
為思念醞釀的痛
Wei si nian yun niang de tong
夜空霓虹
Ye kong ni hong
都是我不要的繁榮
Du shi wo bu yao de fan rong
或許去趟沙灘
Huo xu qu tang sha tan
或許去看看夕陽
Huo xu qu kan kan xi yang
或許任何一個可以想心事的地方
Huo xu ren he yi ge ke yi xiang xin shi de di fang
情緒在咖啡館
Qing xu zai ka fei guan
被調成一篇文章
Bei diao cheng yi pian wen zhang
徹底愛上你如詩一般
Che di ai shang ni ru shi yi ban
透明的淚光
Tou ming de lei guang

Repeat **

Repeat ***

Repeat *

Repeat **

Repeat ***

周杰倫 - 楓

周杰倫 - 楓

作詞:宋健彰(彈頭)
作曲:周杰倫



烏雲在我們心裡擱下一塊陰影
wu yun zai wo men xin li ge xia yi kuai yin ying
我聆聽沉寂已久的心情
wo ling ting chen ji yi jiu de xin qing
清晰透明 就像美麗的風景
qin xi tou ming jiu xiang mei li de feng jing
總在回憶裡才看的清
zong zai hui yi li cai kan de qing

被傷透的心能不能夠繼續愛我
bei shang tou de xin neng bu neng gou ji xu ai wo
我用力牽起沒溫度的雙手
wo yong li qian qi mei wen du de shuang shou
過往溫柔已經被時間上鎖
guo wang wen rou yi jing bei shi jian shang suo
只剩揮散不去的難過
zhi sheng hui san bu qu de nan guo

緩緩飄落的楓葉像思念
huan huan piao luo de feng ye xiang si nian
我點燃燭火溫暖歲末的秋天
wo dian ran zhu guang wen nuan sui mo de qiu tian
極光掠奪天邊 北風掠過想你的容顏
ji guan lue duo tian bian bei feng lie guo xiang ni de rong yan
我把愛燒成了落葉
wo ba ai shao cheng le luo ye
卻換不回熟悉的那張臉
que huan bu hui shu xi de na zhang lian
緩緩飄落的楓葉像思念
huan huan piao luo de feng ye xiang si nian

為何挽回要趕在冬天來之前
wei he wan hui yao gan zai dong tian lai zhi qian
愛你穿越時間 兩行來自秋末的眼淚
ai ni chuan yue shi jian liang hang lai zi qiu mo de yan lei
讓愛滲透了地面
rang ai shen tou le di mian
我要的只是你在我身邊
wo yao de zhi shi ni zai wo shen bian
在山腰間飄逸的紅雨
zai shan yao piao yi de hong yu
隨著北風凋零 我輕輕搖曳風鈴
sui zhe bei feng diao ling wo qing qing yao ye feng ling
想 喚醒被遺棄的愛情
xiang huan xing bei yi qi de ai qing
雪花已鋪滿了地 深怕窗外楓葉已結成冰
xue hua yi pu man le di shen pa chuang wai feng ye yi ji cheng bing