News for hackers. Stuff that matters.

Syrup-tan

Re:Cache-Control: immutable on Wednesday May 11, 2016 @11:07PM (#11681072)
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_...

How to mislead with bar graphs; the tutorial

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

Re:LKML: New syscall: leftpad() on Thursday March 31, 2016 @09:39PM (#11401981)
https://xkcd.com/1627/

I think you added an "H"

Re:Integrating a VT220 into my life on Tuesday March 22, 2016 @07:35PM (#11340839)
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.

Re:Safety Check for Brussels on Tuesday March 22, 2016 @08:25AM (#11335948)
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.

Re:Tor NoScript visit tracker on Thursday March 10, 2016 @11:22AM (#11260074)
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

Seems to have a pretty interesting attitude.

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

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

Re:Show HN: CLJS Fiddle – ClojureScript on Wednesday March 02, 2016 @10:46AM (#11210622)
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.
Re:John McAfee offers to unlock killer's iPhone for FBI on Saturday February 20, 2016 @09:14AM (#11140080)
I would consider NSFW ~2:45 into it
Re:Google Will Soon Shame All Websites That Are Unencrypted on Wednesday January 27, 2016 @06:58PM (#10984629)
You have a ";" at the end of your URL which breaks it.

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

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

Re:When Are You Really an Adult? on Friday January 08, 2016 @05:43PM (#10868874)
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

Re:Learning (needlessly) hard technology on Monday November 30, 2015 @11:56AM (#10650346)
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

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.
Re:A Brief History of Chat Services [pdf] on Tuesday November 17, 2015 @03:11PM (#10583625)
I meant from a purely feature perspective.
Re:Walmart's $10 smartphone isn't actually $10 on Tuesday November 17, 2015 @01:06PM (#10582857)
That was a different trade-off, you are making this tradeoff by not living somewhere else.

edit: clarifying the subject trade-off

Re:A Brief History of Chat Services [pdf] on Tuesday November 17, 2015 @12:48PM (#10582737)
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

Re:How to destroy Bitcoins? on Tuesday November 17, 2015 @12:21PM (#10582554)
The blog post seems to be missing the full PGP signature.
Re:Walmart's $10 smartphone isn't actually $10 on Tuesday November 17, 2015 @12:10PM (#10582461)
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)

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/

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.
Re:21.co Bitcoin Computer Now on Sale on Monday November 16, 2015 @02:03PM (#10576338)
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).

Re:Ask HN: Writing code with diff-readability in mind? on Friday October 16, 2015 @04:32PM (#10401827)
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.

Ask HN: Writing code with diff-readability in mind?

While this isn't a very dire or pressing matter, I think it would be interesting to discuss.It's often considered good practice to use trailing commas in multi-line arrays (where language syntax rules permit); e.g. [ 'a', 'b', 'c', ] going further, would it also make sense to start an else-if check train with ``if false; ' ' ? e.g. if false; else if check 1; etc else if...

( Read More... | 14 comments | 15 points | on HN )
Re:Apple CEO Tim Cook: 'Privacy Is a Fundamental Human Right' on Thursday October 01, 2015 @07:30PM (#10315544)
I believe it's more of an education problem, than of people actually welcoming the intrusions.

Older »