Better HN
topnewbestaskshowjobs
Log inSign up

Syrup-tan

278 karma · joined Jan 22, 2015 (11y ago) · 60 submissions

Feel free to reach me at ~ syrup+hn at denpa dot moe
Submissions

comment 10y ago · link · parent

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_...

comment 10y ago · link · parent

How to mislead with bar graphs; the tutorial

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

comment 10y ago · link · parent

https://xkcd.com/1627/

I think you added an "H"

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

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

7.

Tor NoScript visit tracker(bitbucket.org ↗)

44 points · by Syrup-tan · 10y ago · 21 comments

comment 10y ago · link · parent

Seems to have a pretty interesting attitude.

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

comment 10y ago · link · parent

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...

comment 10y ago · link · parent

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.

11.

ZeroNet – Decentralized websites using Bitcoin crypto and BitTorrent network(github.com ↗)

115 points · by Syrup-tan · 10y ago · 25 comments

comment 10y ago · link · parent

I would consider NSFW ~2:45 into it

comment 10y ago · link · parent

You have a ";" at the end of your URL which breaks it.

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

comment 10y ago · link · parent

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...

comment 10y ago · link · parent

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

16.

Shellscript for generating ssl certs with acme-tiny(gist.github.com ↗)

2 points · by Syrup-tan · 10y ago · discuss

comment 10y ago · link · parent

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

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

I meant from a purely feature perspective.

comment 11y ago · link · parent

That was a different trade-off, you are making this tradeoff by not living somewhere else.

edit: clarifying the subject trade-off

comment 11y ago · link · parent

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

comment 11y ago · link · parent

The blog post seems to be missing the full PGP signature.

comment 11y ago · link · parent

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)

comment 11y ago · link · parent

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/

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

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).

comment 11y ago · link · parent

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.

comment 11y ago · link · parent

for quality-of-life;

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

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

12