This is an early work by Cai Ca. (Cai Ca's Weibo: Tencent @fyc009cc, Sina @cyfcc)...
Interoperability between IPv4 and IPv6
IPv4 is currently the most widely supported network protocol, where computers are identified by IP addresses. Theoretically, it can accommodate up to 2 32 2^{32} 2 32 network devices (IPv4: 8 hexadecimal digits). Unfortunately, these addresses have been exhausted, and it's truly a mystery how major ISPs allocate limited IP addresses to an infinite number of computers. IPv6 is far more impressive, with each address containing 32 hexadecimal digits, allowing for 2 128 2^{128} 2 128 network devices. These IP addresses will be more than sufficient before humanity perishes due to Earth's inability to sustain us. This protocol is championed by major internet companies including Google, DNSPod, and others. However, currently in China, IPv6 seems to be used only in universities,...
A Piece of JS for Ultimate Resistance Against Developer Tools
The most frustrating part of website development is having your painstakingly crafted templates ripped off using developer tools, as Chrome Dev Tools and Firebug possess immense power. (No explanation needed) Developer tools were once invincible, until this piece of JS emerged. http://publicdn.cdn.duapp.com/js/wqnmlgb.min.js Source code + author information: /* Plugin Name : WQNMLGB Plugin Author : Xider Plugin Version : 1.2 final Plugin Site : http://lab.i-xider.com Now Support : Chrome , Safari , FireFox ( NOT ALL ) , Opera ( NOT ALL ) , IE ( NOT ALL ) 请原谅我把原生JS和JQuery混为一起写 */ function fuckyou () { window . location = 'http://i-xider.com/#呵呵' //Redirect current window to blank page } function ck () { console . profile () console . profileEnd ()...
Bad Apple NG Fixed and Enhanced Version
This update fixes several issues. The frame rate statistics were actually incorrect (due to my brain-fart code), and the frame rate remained at 20 FPS throughout the entire video. The FPS statistics have now been changed to processing delay. (PS: The program automatically adjusts for processing delay.) Some users reported that it did not run properly on 64-bit OS. It was likely an int64 issue. Now it has been changed to longint, and the issue should be resolved. Added a statistics feature (you can turn it off by changing the third line from stat=true to stat=false). Data file download: /usr/uploads/2013/03/badapple.7z Source code: (compile with FPC 2.6 by yourself) uses crt,dos; const stat= true ; inx= 79 ; iny= 24 ; yanchi= 50 ; yanchitj= 800 ; type pic= array [ 1 ..inx, 1 .....
Bad Apple NG: Enhanced Bad Apple Playback System
UPDATE: If encountering issues like failure to open or runtime error 2, please check the instructions at Bad Apple Command Line Art Version regarding data files!!! My previous Bad Apple Command Line Art Version was successfully reposted by classmate WotorDho and enhanced with delay calibration to maintain consistent FPS when system lags. However, he used a custom XCrt unit from his Wenlan Killer project, which contains redundant code and is hard to understand. After studying XCrt, I modified my player to achieve the same effect (theoretically with better performance). Additionally, I optimized the Telnet transmission that previously wasted bandwidth by sending full frames. The new version only updates changed pixels, significantly reducing data transfer....
Discover More eMule Users with Headless Files to Speed Up Downloads
eMule is a well-known P2P protocol where users can search for other eMule users online and access desired resources. The eMule protocol consists of two parts: ED2K and KAD. ED2K operates similarly to BitTorrent, requiring clients to maintain a server list. During downloads, clients connect to servers to obtain lists of other users before establishing connections - much like Tracker servers in BitTorrent. The unique aspect is the KAD network, which allows direct user searches without servers. However, KAD searches are slow due to the inefficiency of scanning IPs individually. eMule addresses this by allowing KAD exchange through ED2K: clients discover peers via ED2K, exchange KAD contacts, connect through KAD, and repeat. But repeated connections still consume significant time....

Installing LRC Lyrics Display Plugin and Enabling SRS WOW-like Sound Effects in Ubuntu
My ASUS laptop originally had a sound card driver in Windows 7 that included a technology called ASUS Sonic Focus. Its principle involves adjusting the audio equalizer to create a psychological Dolby surround effect, making listeners perceive the sound as spatial. After enabling Sonic Focus, I found the audio quality significantly improved. (I'm not an audiophile.) However, on Ubuntu, there's naturally no Sonic Focus – ASUS wouldn't bother supporting such a rapidly evolving system. Dolby and SRS also don't provide Linux support, so the open-source community developed Extra Stereo to replicate these features. There's also Crystalizer, which enhances high-frequency loudness for clearer sound. Those who've used Creative Sound Blaster or X-Fi cards should be familiar with this. Meanwhile,...
Porting Bad Apple to Telnet and Successfully Screening It
Today, after tinkering for half a day, I successfully ported Bad Apple to my VPS's Telnet service using the command-line animation version I published earlier. To view it yourself: telnet xuyh0120.tk or telnet 5.175.156.249 Round 1. Porting to SSH Since I originally promised a classmate I'd implement this via SSH, I started there. First, I uploaded Bad Apple to my VPS at /opt/badapple , which contains two files: badapple and badapple.in (the resource file with a modified extension). useradd badapple passwd badapple # 密码我设的badapple su badapple # 切换过去 chsh # 输入/opt/badapple/badapple exit When testing via SSH, I encountered Error 2 (resource file not found). I recompiled locally (the VPS lacks FPC), changed paths from relative to absolute, re-uploaded,...
Bad Apple Command Line Animation Version
Bad Apple is an animation produced by Touhou Project in Japan. The entire animation uses a method similar to shadow play, featuring only black and white colors, yet achieves 3D visuals through entirely hand-drawn frames! The effect is excellent with no frame skipping or dropping. Due to its monochromatic nature, many enthusiasts have ported it to various platforms. I've seen versions running on calculators, Raspberry Pi, and even JavaScript implementations. I also wrote a Pascal program to play Bad Apple, though it operates entirely in the command line. I'm too lazy to provide the compiled binary. Since I use Linux, it would be useless for Windows users anyway. Therefore, I'm sharing the source code below—compile it yourself using FPC. uses crt; var fin:text; i: longint ; s:...
W3 Total Cache Implements Memory Caching
W3 Total Cache uses disk-based caching by default. For shared hosting users, this may be the only option available. However, VPS users have significantly more flexibility, especially when using VPS providers with efficient overselling techniques (Host1Free?) where disk speeds are relatively slow. In such cases, you can leverage your surplus memory for caching. I've set up three WordPress test sites on SAE, OpenShift, and Host1Free VPS respectively. Among these, only the VPS allows for full customization, making it our focus today. (Note: SAE's file read/write restrictions prevent W3 Total Cache from even saving configurations.) Additionally, W3TC supports PHP Opcode caching solutions (such as Zend Optimizer (not Zend Guard), eAccelerator, XCache, APC, etc.)...