Using the Latest Version of Flash on Ubuntu Firefox

About a year ago, Adobe ceased new feature development for its Flash plugin on Linux systems, providing only security updates. The Linux version of Flash remained at version 11.2, while the latest Windows version had already advanced to 15.0. However, Adobe collaborated with Google to develop Pepper Flash, which is integrated into the Chrome browser. Both Chrome and its built-in Pepper Flash have consistently stayed up-to-date on Linux. This raises the question: Since Pepper Flash is exclusive to Chrome, how can we make it work in Firefox? Some hoped Mozilla would actively support Pepper Flash, but the Firefox development team rejected the proposal: https://bugzilla.mozilla.org/show_bug.cgi?id=729481 Consequently,...

Compiling and Installing App Inventor on Ubuntu

App Inventor is a simple Android programming tool developed by MIT. By dragging and dropping objects on a webpage and setting up code in a flowchart-like manner, you can generate your own Android applications. If you install App Inventor's companion software on your Android phone or tablet, you can modify the interface on your computer and see changes reflected instantly on your mobile device. MIT provides an online version of App Inventor accessible through email registration. However, their website runs on Google App Engine. As we all know, Google's services have poor accessibility in China. Therefore, it's best to install it locally for uninterrupted programming. Download the source code First, you'll need a GitHub account. Visit https://github....

Installing Closed-Source Driver for BCM4331 Network Card on Ubuntu

The Ubuntu system supports a wide range of devices out-of-the-box because it includes numerous open-source drivers provided by the community. However, open-source drivers often suffer from stability and performance issues compared to official drivers. Due to licensing restrictions, closed-source drivers cannot be bundled with the installation media, so users typically need to install them immediately after setting up Ubuntu. As noted by Zhihu user Deng Boyuan: http://www.zhihu.com/question/22776909 Windows消失后:一时间世界人民给石油工地的电脑装上Linux和新开发的Linux上的工业软件,但是圈内就石油设备的驱动问题分成两派,美国的开源原教旨主义者坚持在墨西哥湾的钻井平台上使用开源驱动,导致产能大大下降;大庆油田被cnbeta的技术宅装上了5种桌面8种发行版并逐一美化跑分,而且要用石油设备放个Bad Apple,...

Illustration for Microsoft Accounts Experience Access Anomalies in Mainland China

Microsoft Accounts Experience Access Anomalies in Mainland China

On the evening of October 4, 2014, attempts to access Microsoft account login pages from China triggered invalid SSL certificate warnings, as shown: 颁发对象 公用名 (CN) hotmai.com 组织 (O) hotmail.com 组织单位 (OU) <未包含在证书中> 序列号 29 颁发者 颁发者 公用名 (CN) hotmai.com 组织 (O) hotmail.com 组织单位 (OU) <未包含在证书中> 有效期 颁发日期 14-9-23 截止日期 15-9-23 指纹 SHA-256 指纹 7B AC CB 75 4D A5 BA 45 1F C5 FA E5 10 6B CE 22 34 E3 14 0C 8A 3B 05 9B 36 B0 8C 47 C7 C1 97 2D SHA-1 指纹 30 F3 B3 AD C6 E5 70 BD A6 06 B9 F9 6D E2 41 90 CE 26 2C 67 Copied from Chrome. The "issuer common name being only a domain" and "hotmai.com" (missing 'l') indicate this was an SSL man-in-the-middle attack. The fake certificate content:...

Installing Ubuntu on a Macbook Pro

The macOS is indeed beautiful and smooth. However, VirtualBox runs terribly slow on it, and many functions that are simple to implement on Windows or Ubuntu require significant effort on Mac. Additionally, I've seen online articles showing that Ubuntu scores much higher than macOS in UnixBench tests. Therefore, I decided to install Ubuntu on my Macbook. After researching, I found my Macbook is a mid-2012 model (Macbook 9-2). According to Ubuntu's official wiki, Ubuntu can only coexist with macOS on this model – it cannot be installed alone, otherwise boot issues will occur. Seriously? Mac's bootloader and OS are separate! GParted in Ubuntu's live environment shows macOS created three partitions: a 200MB FAT32 EFI boot partition, an HFS+ formatted system partition,...

Illustration for I Felt the Deep Malice from Baidu

I Felt the Deep Malice from Baidu

``` Translation Notes: Title : "我感受到了来自百度深深的恶意" → "I Felt the Deep Malice from Baidu" (Captures the emotional tone and specifies "Baidu" as the source of malice) Categories : "一图流" → "One-Picture Post" (Common translation for image-focused blog/forum content) Tags : "[百度]" → "[Baidu]" (Proper noun retained without translation) Structure Preservation : Frontmatter formatting (e.g., --- , key-value pairs) unchanged Image path ( /usr/uploads/... ) and HTML tag syntax preserved Untranslated elements: date format, image filename ( wow.PNG ), technical paths All non-text elements (dates, URLs, filenames) remain intact per Markdown preservation rules....

Illustration for Jackie Chan Sends Jaycee Chan Flying 5 Meters: Are You Kidding Me?

Jackie Chan Sends Jaycee Chan Flying 5 Meters: Are You Kidding Me?

According to NetEase News http://ent.163.com/14/0820/20/A449AUVV00031H2L.html , Jackie Chan angrily struck his son upon seeing him, sending Jaycee Chan flying 5 meters through the air. Knocking a grown man 5 meters away? Truly a martial arts family! Let's calculate this using high school physics knowledge first, neglecting air resistance. Method provided by a classmate. If air resistance is neglected, Jackie Chan could kick a soccer ball 700 meters. What is the national team coach doing? Hurry and recruit Jackie Chan to play soccer! With air resistance factored in, a distance of 300 meters (estimated) is still incredibly impressive. Moreover, the force behind Jackie Chan's kick to Jaycee would need to be even stronger. Actually, I just want to ask one thing:...

Using Font Awesome Icon Fonts

Font Awesome is an open-source icon library. Its latest version 4.1 provides 439 vector icons that can match screens of various sizes and resolutions. It exists as a font, and a single 71KB file contains all these icons. These icons feature a unified style and can be conveniently used in various contexts. Installation First, download Font Awesome: https://fortawesome.github.io/Font-Awesome/assets/font-awesome-4.1.0.zip Then unzip the file and upload its contents to your website. Add the following code in the <head> section of your webpage: < link rel = "stylesheet" href = "http://your-website/folder/font-awesome/css/font-awesome.min.css" /> This completes the installation. Usage https://fortawesome.github.io/Font-Awesome/icons/ provides a reference table of icon class names....

Illustration for Adding an Easter Egg in "Developer Tools"

Adding an Easter Egg in "Developer Tools"

In Chrome Developer Tools, there's a section called the "Console" where we can add some Easter egg messages, for example: Welcome to Lan Tian @ Blog. If you can see these lines, then you definitely don't have a girlfriend. These messages can be output using JavaScript with the following implementation code: if ( window . console ){ var cons = console ; if ( cons ){ cons . warn ( '%cWelcome to Lan Tian @ Blog.' , 'color:#09f' ); cons . warn ( 'If you can see these lines,' ); cons . warn ( 'then you definitely don \' t have a girlfriend.' ); } } When cons.warn takes only one parameter, it outputs that sentence in the console. If it takes two parameters and the first parameter (the message) starts with %c , then the second parameter is CSS code. Using cons....

Configuring and Enabling SSL and SPDY Access in nginx

Latest news from the CloudFlare blog ( http://blog.cloudflare.com/google-now-factoring-https-support-into-ranking-cloudflare-on-track-to-make-it-free-and-easy ) indicates that Google may factor in SSL support as a positive ranking signal. Therefore, I've enabled SSL for my blog. Applying for a Certificate SSL requires a certificate on the server side. It's best not to generate this certificate yourself, as most browsers will flag it as untrusted. StartSSL is currently the only trusted certificate authority that issues free SSL certificates recognized by most browsers. You can follow the steps in this article: http://www.freehao123.com/startssl-ssl/ . In practice, since StartSSL connections can be slow, following the wizard might cause the process to hang. If it hangs,...