soruly

Joined 10 years ago

Karma
74
Submissions
46
Member since
Aug 25
[ my public key: https://keybase.io/soruly; my proof: https://keybase.io/soruly/sigs/UkKo2d1f00CyeBcwQPOPsu8eaduQg7ktwSVLkCPJqP4 ]
View on Hacker News

Recent submissions

Comment · 6 months ago
successful train lines in Japan are all built between CBD and some spots / attractions. Odakyu: odawara / hakone, Seibu: chichibu, keiou: Takao, toukyuu: Nikko / kinugawa, nankai: Takao.

Tourists spots are usually in the mountains and the CBD is near the sea. And residential area is developed between them along the lines so the trains carry bidirectional passengers to work or relax on the same line, higher utilization keeps ticket fare low.

Comment · 8 months ago
Comment · 8 months ago
The price changes will take effect on 1 April 2026 for both new orders and existing products.
Comment · 9 months ago
same here. sometimes it makes me feels guilty for using light mode. Maybe we should yell out something like "hold-on can't see anything"
Comment · 10 months ago
Comment · 1 year ago
CSCI 3210: Modern text encoding and processing

Learn unicode and utf-8.

Unlearn the 1 char = 1 byte concept

Not only encoding/decoding but searching and sorting is also different. We may also cover font rendering, unicode modifiers and emoji. They are so common and fundamental but very few understand them.

Comment · 1 year ago
Yes. As a site owner who keep fighting with bots and malicious traffic, I wish web browsers provide me a way to identify real users from bot traffic. Otherwise I'll have to put everything behind account registration.
Comment · 1 year ago
> "coherent desire" or "precise imagination" or "structured wishing."

the most precise way to express your desire is by giving computer commands, or you may call it programming.

Comment · 1 year ago
thanks for the tips. As my data has very low entropy, both can compress down to 3-4% of original size, but xz is a lot faster in compression.

raw size: 9612344 B

zstd --ultra -22 --long=31 => 376181 B (3.91% original, 4.088s compress, 0.013s decompress)

xz -z -9 xml => 353700 B (3.68% original, 0.729s compress, 0.032s decompress)

zstd -17 --long=31 could match the compression time of xz, but the size is bigger (405602 B, 4.22% original)

If you compare only the compressed size (not to the original size), .zst would be about 6-15% larger than .xz

Comment · 1 year ago
I think it depends on what you're compressing. I experimented with my data full of hex text xml files. xz -6 is both faster and smaller than zstd -19 by about 10%. For my data, xz -2 and zstd -17 achieve the same compressed size but xz -2 is 3 times faster than zstd -17. I still use xz for archive because I rarely needs to decompress them.
Comment · 1 year ago
Bi-directional gates are always open by default. One-way gate would close after a certain time to prevent people coming from the wrong side.
Comment · 1 year ago
There are charging machines that accept cash cards / debit cards, but only those issued by Japanese banks. So cash is the only option for touristists. You can go completely cash-less if you can use mobile Suica / ICOCA, which let's you charge your phone with Apple Pay / Google Pay (with osaifu-keitai).
Comment · 1 year ago
Yes, I believe so. JR East is now planning to fade-out magnetic tickets by using paper QR Code tickets.
Comment · 1 year ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton