HNHacker News
TopNewBestAskShowJobs

sukmaagung

20 karma · joined March 13, 2024

submissionscomments
sukmaagung··on All clocks are 30 seconds late
Interesting,

When I make word clock, I make it change from "SATU LEBIH DUA" ("ONE PLUS TWO", 01:02:00) to "SATU LEBIH TIGA" ("ONE PLUS THREE", 01:03:00) at 01:02:30.

But if I make digital clock, I make it change from 01:02 to 01:03 at 01:03:00.

sukmaagung··on F3 – Fight Flash Fraud
The problem is the fake storage can just overwrite the new data on top existing data. Then you always confirm new data is correct because it broke the old ones.

But something like 2TB micro SD when actually it only has 64GB capacity, that will be very long time waiting 2TB to fully written.

How about write some file, then verify sometimes the new sometimes the old one, repeat until full.

Write(0.h2w) Write(1.h2w) Read(1.h2w) Write(2.h2w) Write(3.h2w) Read(3.h2w) Read(2.h2w) Write(4.h2w) Write(5.h2w) Read(5.h2w) Write(6.h2w) Write(7.h2w) Read(7.h2w) Read(6.h2w) Read(4.h2w) Write(8.h2w) Write(9.h2w) Read(9.h2w) Write(10.h2w) Write(11.h2w) Read(11.h2w) Read(10.h2w) Write(12.h2w) Write(13.h2w) Read(13.h2w) Write(14.h2w) Write(15.h2w) Read(15.h2w) Read(14.h2w) Read(12.h2w) Read(8.h2w) ...Read(0.h2w)

sukmaagung··on A Real Life Off-by-One Error
It works. It is actually my secret technique when solving "find five differences".
sukmaagung··on ASCII 3D Renderer for JavaScript
So, as long it uses only text, it can be called ASCII art, not just characters from space to tilde (or null to tilde)?
sukmaagung··on Base 10 is not a good base
Radian don't give simple numbers for simple angles. For example the right angle, in degrees it is 90deg, in radian it is 1.5707963267948966... Better using tau-radian, it is 0.25tau (right angle is 0.25 of full circle).
sukmaagung··on Show HN: Comma Separated Values (CSV) to Unicode Separated Values (USV)
Instead of using separator-character:

a <comma> b <comma> c <enter> d <comma> e <comma> f

why not using header-character:

<row><cell> a <cell> b <cell> c <row><cell> d <cell> e <cell> f