HNHacker News
TopNewBestAskShowJobs

yoursunny

99 karma · joined May 19, 2021

submissionscomments
yoursunny··on LOL Verifier
I include my LOL video when I comment LOL: https://bit.ly/sunnyLOL

This ensures my LOL is authentic.

yoursunny··on A project with a single 11,000-line code file
Circa 2006, I was in college, and I got hired to write a webapp for a college department. I didn't know JavaScript could have classes and capture variables, so I made the app with entirely global variables and plain functions combined with `eval`. It's over 2000 lines, and nobody after me could understand it.
yoursunny··on Go’s major versioning sucks – From a fanboy
I develop experimental software where backwards compatibility is the least of my concerns. To avoid the SemVer nonsense imposed by Go and NPM, I simply name every version to be 0.0.yyyymmdd derived from commit date. If Ubuntu and DPDK can name their versions by date, why can't I?
yoursunny··on Defrag Like It's 1993
In case the second sudo wants to ask for password but there's no disk space for logging, it's safer to:

sudo bash -c 'dd if=/dev/zero of=/zeros; rm -f /zeros'

yoursunny··on An exposed apt signing key and how to improve apt security
I run a small apt repository without signing, delivered over HTTPS only. Then I tell users to put `trusted=yes` in the source line. There's no APT signing key, no risk of compromise, and no need to backup.
yoursunny··on Lego has designed a set that can't be taken apart
iOS Safari is crashing, 30 seconds after opening the article, every time.
yoursunny··on Building stuff from source
My software has only Makefile, but it works on both Ubuntu 20.04 and Debian 11. The Makefile calls meson & ninja & npm.

I tell macOS users to install VirtualBox and then build my software inside.

yoursunny··on The Benefits of Iframe Based Development
IFRAMEs still require a top-level page and their positions still need CSS.

I usually use FRAMESET and FRAMEs: they are positioned perfectly in a grid, with no need for CSS or TABLE. There's no postMessage API: you can write <A target=other-frame-name> to navigate to a page in another FRAME.

HTML5 doesn't have FRAMESET, but all the browsers still support HTML4 perfectly.

yoursunny··on HTTP is obsolete – it's time for the distributed, permanent web (2015)
NDN can work as a replacement for IP too, running directly over Ethernet or other link layer technology.
yoursunny··on An error message if you put more than 2^24 items in a JS Map object
Several years ago, I wanted to make a huge lookup table in Node.js during a research project, but the program stopped making progress after a while. This incident was detailed in my Quora answer: https://www.quora.com/What-would-you-need-64GB-of-RAM-for/an...

I incorrectly concluded that Node.js has a limitation on how much memory it could use. After reading this article, I now understand that the real reason is that I'm setting too many properties on an Object, exceeding V8's limitation.

yoursunny··on Canistilluse.com
> Anything that requires combining a click with the shift and ctrl/cmd keys is not going to go down well with the average user.

These users need to retake the computer literate 101 class.

When I'm in elementary school, we learned how to multi-select in the tutorial system that comes with Windows 3.1.

I don't know why Windows XP deleted these very important tutorials and replaced them with a webpage.

yoursunny··on Never Gonna Give You Up by Rick Astley reaches one billion views [video]
Does the one billionth rickroll recipient receive an award of sorts, like an MP3 player that plays Never Gonna Give You Up on repeat?
yoursunny··on Freenom, the free domains website, is a scam
Freenom free domains only grant you usage rights. The registrant listed in WHOIS is still their company. You don't own the domain.

I have a few Freenom domains, but they are only for short-term use (e.g. try out a new ACME client). Nobody should use a Freenom domain on a serious website.

yoursunny··on Google Maps updates 'dangerous' Ben Nevis route
I downloaded OpenStreetMap data from OpenAndroMaps, and was viewing it in c:geo geocaching app. I figured out the difference between contour lines and trails, the second time around.
yoursunny··on Google Maps updates 'dangerous' Ben Nevis route
I wish OSM can show the trails instead of a green blob in some of our state parks. Maryland USA.
yoursunny··on Google Maps updates 'dangerous' Ben Nevis route
OpenStreetMap also takes some get used to. I once mistook an contour line (denotes equal elevation) for a trail, and wondered why the "trail" needs so much bushwhacking.
yoursunny··on Hubble telescope has new lease on life after computer swap appears to fix glitch
It's amazing how much redundancy was built into those out-of-touch systems, 30 years ago. However, the number of backup units is finite, so let's hope the now-operating system can last for several more decades.
yoursunny··on Increasing HTTPS Adoption
I hope HTTPS-First mode would become the default, so that the full page warning can finally convince my classmate to adopt HTTPS on their website that "does not contain any private info so it doesn't need encryption".
yoursunny··on Goodbye, Fleets
I see Fleets as a thing that takes up a row in the Twitter mobile app, but I never clicked it. Now I hope Facebook says goodbye to Stories.
yoursunny··on TinyPICO – tiny fully-featured ESP32 board
This looks great. It's the smallest ESP32 board I've ever seen.

There needs to be an ecosystem of "hats" such as OLED screens and environment sensors and buttons, so that it's easier to build simple projects.

yoursunny··on Updating the Go Memory Model
If I have a uint64 counter incremented by C code and read by Go code, is it safe to do so without using any locks and atomic?
yoursunny··on Check If Email Exists
You'll get blocked by your hosting provider first. See a recent instance here: https://www.lowendtalk.com/discussion/comment/3237390/#Comme...
yoursunny··on I was let go for refusing to deploy a dark pattern
In 2007, I had a script on my website that records every click and every mouse move. When my classmates are reading my webpages, I'm watching a video simulation of their mouse moves.

My website doesn't contain any textbox, so there's no personal data except IP address. Nevertheless, I more or less know who's reading my page because every student has a static IP.

Nowadays, I don't collect mouse moves anymore, but I have navigator.sendBeacon() for video playback behavior.

yoursunny··on Stop using your work laptop or phone for personal stuff, because I know you are
In my agency, we are allowed to use work laptop for personal purposes, except certain prohibited software and prohibited sites.

I don't store files though: they are only accessed though the browser.

yoursunny··on PNG files can be animated via network latency
LowEndBox is full of scammers. https://talk.lowendspirit.com/ is cleaner.
yoursunny··on PNG files can be animated via network latency
I'm "guilty" of this on my video site https://pushups.ndn.today (does not work on iOS). So far one person figured out how to download those videos, after spending 4 hours studying my source code.
yoursunny··on Cool URIs don't change (1998)
Since I switched from ASP to PHP (2008), I avoided file extensions in page URI in most cases, and instead placed every page into its own folder. This is compatible with every web server without using rewrite rules.

When I switched from PHP to static generators (2017), most URIs continued working without redirects.

yoursunny··on Cool URIs don't change (1998)
I opened my website in 2006. Since 2009, I've kept all the links unchanged or redirected through two rebuilds.

It's a lot of work because I need to customize URI structure in blog systems and put complex rewrite rules.

To ensure the setup is more or less correct, I have a bash script that tests the redirects via curl. https://bitbucket.org/yoursunny/yoursunny-website/src/912f25...