HNHacker News
TopNewBestAskShowJobs

Syrup-tan

278 karma · joined January 22, 2015

Feel free to reach me at ~ syrup+hn at denpa dot moe
submissionscomments
Syrup-tan··on Cache-Control: immutable
It's notable that appcache is now deprecated [0]

It's been replaced by Service Workers, but those can get reallly hard to deal with if they start caching themselves (!)

Chrome's devtools has ways to delete old service workers and such, but I've found that on Firefox it's next to impossible to debug.

[0] https://developer.mozilla.org/en-US/docs/Web/HTML/Using_the_...

Syrup-tan··on Film Dialogue from 2,000 screenplays, broken down by gender and age
How to mislead with bar graphs; the tutorial

https://denpa.moe/~indy/e75d18.png

Syrup-tan··on LKML: New syscall: leftpad()
https://xkcd.com/1627/

I think you added an "H"

Syrup-tan··on Integrating a VT220 into my life
Euhh, I'm not sure I understand your use-case, but e-ink displays aren't especially "cheap", or such. They take a noticeable amount of time to update the display, so doing things like typing, or viewing output from top(1) would be less than ideal. (This seems to get better with firmware, and being "smart" about which places of the screen get updated, generally)

The appeal, at least to me, is that they can display information with little energy cost. For example you could have it monitor the system's health and have it update every half an hour, showing graphs and such, and it would be able to do that for a very long time with a smallish battery.

Syrup-tan··on Safety Check for Brussels
It's a service, of sorts, for registered users to know if any of their friends are in the vicinity, and if they are safe.

It also allows users to mark themselves as "safe" if they were in the affected area.

Syrup-tan··on Tor NoScript visit tracker
I'm unsure why this is downvoted.

I think he is saying that users can't be tracked between page-loads using this method, or your risk sending multiple users the same token. (which is true, at least with this implementation)

The time they spend on the website, latency, etc can all be used to add to a fingerprint, but there isn't something magic that makes this accurate, especially without JavaScript.

Edit: please don't mind me ghostposting kthx

Syrup-tan··on Show HN: Sway, a tiling window manager and compositor for Wayland
Seems to have a pretty interesting attitude.

https://github.com/SirCmpwn/TrueCraft/issues/230

Syrup-tan··on Source: Microsoft mulled an $8B bid for Slack, will focus on Skype instead
The unofficial API community is also really great, and there are a plethora of libraries to choose from to get something working quickly.

https://blog.discordapp.com/the-robot-revolution-has-unoffic...

Syrup-tan··on Show HN: CLJS Fiddle – ClojureScript
Here's a simple modification to get the random number between 1 and 10

    [:div
     [:p "Hit Run to get a random number:"]
     [:h1 (+ 1 (Math.floor (* 10 (rand))))]]
If you weren't previously familiar with the syntax I figured this might help.
Syrup-tan··on John McAfee offers to unlock killer's iPhone for FBI
I would consider NSFW ~2:45 into it
Syrup-tan··on Google Will Soon Shame All Websites That Are Unencrypted
You have a ";" at the end of your URL which breaks it.

https://community.letsencrypt.org/t/how-letsencrypt-work-for...

Syrup-tan··on Disabling npm's progress bar yields a 2x npm install speed improvement
I had the same problem (and figured it was normal for a while), after some looking-into it I was able to fix it by unchecking "Treat ambiguous-width characters as double width" [0]

[0] https://denpa.moe/~syrup/Screen%20Shot%202016-01-26%20at%206...

Syrup-tan··on When Are You Really an Adult?
I can't help but feel that I'm doing this right now.

Hmmm, I wonder if it's possible to come to this realization just by thinking about it, and not having to hit rock bottom.

HMMM

Syrup-tan··on Learning (needlessly) hard technology
Depends on what you meant by "Payload" in the first comment. I assumed it to mean "a bunch of bytes", so you could have just used URL parameters, which don't have a standardised maximum length, but you can generally rely up to about 2,000[0] or so. If that wasn't enough, you could split up the requests like the other comments said[1], or go full hack-mode and use the cookies[2]. (using a Set-Cookie response header to clear them after the request was made)

Edit: Of course this isn't recommended, but I think the time wasted trying to convince the (seemingly terrible) manager could have been better spent.

[0] http://www.boutell.com/newfaq/misc/urllength.html

[1] https://news.ycombinator.com/item?id=10649995

[2] https://news.ycombinator.com/item?id=10650110

Syrup-tan··on Mark Zuckerberg Will Take Two Months Off from Facebook for Paternity Leave
I think GP's point was _why_ they were building what they were building. Gate's was just doing work in his field, whereas Zuckerberg was working towards his ideology. Gate's didn't have the strong sentiment towards his business that Zuckerberg did/does.
Syrup-tan··on A Brief History of Chat Services [pdf]
I meant from a purely feature perspective.
Syrup-tan··on Walmart's $10 smartphone isn't actually $10
That was a different trade-off, you are making this tradeoff by not living somewhere else.

edit: clarifying the subject trade-off

Syrup-tan··on A Brief History of Chat Services [pdf]
What about Discord[0]? I believe it uses it's own protocol, however there are already many unofficial API clients.

IRC-esque text chat, with Mumble-esque voice chat, with the best UX I've seen yet in a chat program[1]

[0] https://discord.gg/

[1] https://cdn.discordapp.com/attachments/115226319603630086/11...

Edit: s/seen ever/seen yet/, discord link

Syrup-tan··on How to destroy Bitcoins?
The blog post seems to be missing the full PGP signature.
Syrup-tan··on Walmart's $10 smartphone isn't actually $10
Off-topic; regarding your attitude: The pricing of different services can be considered part of the living cost of an area, and is one of the many trade-offs you make when you choose to (not) move to/from an area.

For example: Europe might have better access to internet, however I'm not a fan of their policies, so I can choose to pay a bit more for internet in Canada, and deal with the lock-in.

It's silly to consider someone an idiot based off a single trade-off that they make. (Considering them an idiot based on many trade-offs is a different story)

Syrup-tan··on Show HN: Real-Time Collaborative Watercolor Painting Using Twitch
I think it'd be cute to keep the absolute coordinate system, however create a simple web app which lets you point and click where you want it the brush go. For the Z coordinate, you could have a meter which goes up and down from 0-60 while you hold the mouse, and registers when you let go. (similar to many mini-game mechanics)

It could be done with the current Twitch stream in maybe 2-3 hours of dev work, thanks to Twitch using IRC for the chat backend.

Edit: s/coordinate system/absolute coordinate system/ s/but/however/

Syrup-tan··on Times Pulls Article Blaming Encryption in Paris Terror Attack
GP's point was that human's thoughts and intents are a lot different from randomness. It isn't likely that most people intend on running into pedestrians whenever they get in their car.
Syrup-tan··on 21.co Bitcoin Computer Now on Sale
Meta: Finally, a comment that isn't hung up on the scrolling behaviour, or the price of the mining power. It's notable the rsync.net has similar, terrible web behaviour, but we seem to have sane discussions about it's service.

On topic: I think the neat part of 21 is that it seems to be a step forward in realising microtransactions, in a decentralised manner. Right now the only way around microtransactions is having a centralised pool, where you e.g. put $5/month in, and it pays services out of that pool. The problem with paying services directly is the base fees associated with transactions (for CC, it's around $0.15 + 3%, through Stripe).

Syrup-tan··on Ask HN: Writing code with diff-readability in mind?
With JavaScript enabled on GitHub, the separate links highlight different sections of the code.

If you start with if check 1 (such as in w.sh), a refactor-er would have to s/elif/if on check 2 and s/if/elif on check 1 if he wants to swap their order. By having all of the checks start with elif (such as in w2.sh), the refactor-er can change the order of the checks without having to modify them, making cleaner diffs.

Syrup-tan··on Ask HN: Writing code with diff-readability in mind?
for quality-of-life;

https://gist.github.com/Syrup-tan/c78f781c9b500b802fec#file-...

vs https://gist.github.com/Syrup-tan/c78f781c9b500b802fec#file-...

Syrup-tan··on Apple CEO Tim Cook: 'Privacy Is a Fundamental Human Right'
I believe it's more of an education problem, than of people actually welcoming the intrusions.
Syrup-tan··on Tesla’s $140,000 Model X SUV Does 0-60 in 3.2 Seconds
I assume there are multiple steps you have to take in order to reach that performance, ie having to put it into ``Ludicrous mode'', then forcing the pedal to the floor. I assume it isn't something that could happen easily on accident.

It's also notable that Paul Walker wasn't driving when he died.

Syrup-tan··on Hiroyuki Nishimura, founder of 2channel, has taken ownership of 4chan
Can we get /prog/ back? <3
Syrup-tan··on The World Really Could Go Nuclear
If the PC is powered by coal energy, he's saying something like that.
Syrup-tan··on Magic PNG Thumbnails
In that case, how does the room disappear?
Page 1 of 2Next →