jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
> So some of those things are true, but you can definitely and almost certainly should expire tokens (and reissue before expiry new tokens) after a short time window, which alleviates some of the security concerns mentioned.

That doesn't really help, because now you need some other sort of token to authenticate the user for handing out a new short-lived token, and that new token now has the same inability-to-revoke problem. You've just moved the problem.

> Some useful parts of JWTs is they can contain information that can act as a cache so that you don't have to go to the server to show certain parts of your UI or things like names and so on.

You don't need a JWT for this. You can just store that in localStorage directly. JWT is not a storage mechanism, it's more of an encoding format.
And, if you cost Amazon too much money by returning items that you don't like, don't match their description, are fake, or whatever, you get banned.

https://www.marketwatch.com/story/if-youre-returning-a-lot-o...
It's 2019, who cares? Everyone is doing it!
what nonsense is this? what slave ship?
I wonder if Google does proper X-testing (X as in exodus), but I guess they don't take care about a couple users leaving, as they're still busy spreading through the rest of the world. I still hope that just means the clock's ticking for the next dot-com bubble to burst so that a new generation of websites could blow up big.
wait what? i seldom hear about instagram. to be honest i am surprised every time it gets mentioned (same thing for snapchat). i thinking you have to be doing particular things or be part of certain spheres to occasionally run into instagram stories.

now, not the same about twitter. twitter is in the news, articles and everywhere. if anything instagram isn't as pervasive as twitter or facebook imo.
Comedy comment in a standard post? Downvotes.

Comedy name for a VC firm on a site where people hope they can get VC cash for their "it's the Uber of XYZ industry" start-up?

"Epic lulz sir! Taking jokes into the business world is brave!"
I imagine there might be a market for aging wine via electricity if it was cheap enough: https://www.bio-conferences.org/articles/bioconf/full_html/2....
Agreed. You might be interested in reading about AI alignment which is this concept applied to non-human intelligence, and like you said the same principle holds among people too. https://en.wikipedia.org/wiki/AI_alignment
Not only that, all attachments are publicly accessible.
The problem is that starting lunch too early can result in you losing your core business too quickly

That's exactly why it is a "dilemma," and not a "lack of vision."
I don't think they would enforce it, unless someone went out of their way to rat someone out for doing it. I personally know a few folks who have multiple Facebook accounts, and have long-considered doing it, too.
Thanks a lot for the ideas.

I'll have to do some benchmarking, but I doubt that javascript will be able to do this any faster. Each dot can take quite a few flops to get calculated. I would like to prototype a NaCl viewer though. I need to do some tricks to make the transitions smoother.
Both the first and second stage have venting ports.
I think it's a general tendency of people. Look at Luke, his name is on freaking everything; it's not like he's made any meaningful contributions.

People love seeing their name. It's just the way it is.
I'm surprised you said "Posterous and WordPress" and not "Posterous and Tumblr", since I see more similarity in the latter.

Regardless, I think Posterous boasts simplicity over WordPress.

A standard WordPress install starts you off with 7 different active widgets. There are thousands of WordPress plugins to do thousands of things.

Posterous is an example of "less is more", in my opinion.

I'm much more likely to read a Posterous blog(with standard themeing) all the way to the end than I am most WordPress blogs.
and yet, humiliation is the best way to make an enemy

Mockery and humiliation are not equivalent. Humiliation implies some degradation of people under our control. We should of course avoid such behavior, but public mockery need not entail humiliation.

I'm pretty sure that folks willing to commit acts of terrorism are already enemies. But I do agree that this sort of messaging has to be careful to differentiate the nitwit terrorists and the larger community from which they might draw support. Mock the former, not the latter.

I think its much better to have nothing to do with these people.

Alas, this does not seem politically feasible. Governments that fail to communicate anything to the public about terrorists are at risk of falling victim to demagogues in other parties.
The high speed sketching complementing Zimbardo's talk made for a unique experience.
Do you generally consider yourself a moral relativist then? Nothing wrong with it if you do.
I would disagree with that -- as just one example, modern chemotherapy is derived from the development of mustard gas circa World War I.
babies

babies and robots

and organic search with a great domain name
Counterpoint: An author once said to Winston Churchill that he never wrote unless the mood came upon him, but he replied to him that he would never achieve anything if he did so. "Lock yourself in your study from nine to one and make yourself write" he said. "Prod yourself, kick yourself, because this is the only way."

(From elsewhere on the internet)
I'm glad you brought this up. This has tremendously improved my experience with video lectures. For online classes, I do the same as you mentioned utilizing VLCs playback feature. Youtube's addition of playback speed has also been a huge improvement in consuming more technical content.
I think a reasonable definition is "customers/users come seeking you out instead of you having to sell them each individually".

You can be profitable without having traction, if you happen to land a couple big contracts through sheer force of salesmanship. (One of my previous employers was like this.) And you can have traction without profits - Twitter is the obvious example. The important thing is whether your users are looking for you to fill a need that they have, or whether you're looking for users to try and figure out what need you're solving.

Also, you can have traction and yet still rely on a big salesforce. Oracle's a good example: companies go seeking out Oracle when they have a big database problem, but they still need to talk to a salesperson to figure out how to integrate it with their specific needs and haggle out a price.
If you ever need to win over a non-techie, just remind them that macgyver was a hacker. And then get them free cable.
Except that the place tag isn't always based on population size. In some places, (e.g. UK), a common cultural definition of a "city" is archaic, and depends if the place has a Cathedral and/or charter from the monarch.

I give you the "city" of St. David's: http://www.openstreetmap.org/browse/node/3216768 It's in Wales, UK, and is tagged as "place=city". It's a small town of ~2,000 people. It has a charter from the monarch, and a cathedral. The "note" tag in OSM says: "the "city" is on paper, what's on the ground is a small town".

Humanity is complicated. :)
Yea, i dont have any of the money now, but soon i will get a job to where i am hoping to save around 180k. I was thinking of investing the 80+ into some kind of index and the rest will be for more risky investments.
That doesn't really map to computers, which spend an enormous amount of time waiting and doing nothing. Putting it off lets you collect when nothing is happening, which would otherwise be "wasted" time.

More in general, putting things off frequently means being able to handle them without interruption when the time is right; it's only a problem if the right time doesn't come up frequently enough (too busy). And context switching is pretty much guaranteed to be expensive in every circumstance, be it computers, your life, or a country.

Back to computers again, this would mean that the problem is being too busy, not that you put it off - they'll likely take about the same amount of time no matter when they're handled; if anything, they're more likely to be faster if done all at once rather than bit by bit, due to cache behaviors. At that point you know you have other, larger problems.
Jesus Christ, techcrunch is really milking this story
As good as San Francisco's baking culture is, surely there's NY-style (real! :)) pizza to be had?

Is this where I'm supposed to jump in and name some place in a town you've never heard of in Italy as having the actual best pizza in the world? (Unfortunately it doesn't have a sign and it's down an alleyway, you'll never find it, and the owner won't serve you if you don't speak correctly-accented Italian and have a large enough moustache. And it's only open twice a year and they don't take reservations.)

edit: Seriously though, if you're in San Francisco and looking for a good thin-crust pizza, the first thing you need to do is get on the BART. Then go to Cheeseboard in Berkeley. Try to do it on a day when they have a particularly delicious pizza, eg one of the ones with potato or anything with pine nuts. It's not "authentically" anything, it's just tasty.
Exactly, and FileLight was hardly the first to have it either. This sort of disk usage visualization is quite old.
Your domain will be seized. Two minutes on your site and I find a reproduction of a copyrighted menu and pizza shop logo. You think it may be fair use? Too bad, you're advocating for seizures, not the due process that would allow you to argue that in court. Are you sure about your position?
I have eaten at Pizaria Bianco after seeing it written up as the best thin crust in the country. I've also eaten Little Star and Patxi's somewhat regularly. Bianco serves a great pizza, though, I didn't think it was good enough for the 90 minute wait. I will try again when next in Phoenix. As an earlier comment suggested, experiments need to be repeatable.
ColdFusion and XML are relevant. I have the proof: http://i.imgur.com/QvtEhG6.png
She already pointed out that, more often than not, a sync license should be in order. YouTube is trying to claim their Content ID system usurps this right? Wow, people have accused me of hubris, but...wow...
This is something I was wondering, too. Using nginx, I can easily top 50,000 req/s (45Mbit/s) on smaller, static/cached content, using 4 cores and < 1GB RAM.
working almost 40 hours of week for only one company as a contractor _is_ illegal. In the eyes of the IRS you are an employee, not a contractor. But this is illegal for the employer rather than the employee in this case.
Seems buggy!
So is the argument that while companies can expect to save money on the whole whenever they hire women, not enough women apply? If so, women should have a much easier time finding work than men but get paid less. Is that what's happening?
First bug so far: opening yahoo mail hyperlinks stalls forever in the current tab. It is fixed by opening all links in new tabs.

Anyway, the built-in adblock is top-notch.
LastPass for chrome. I've used a lot over the years and this is the one I've settled on.
Bingo. Thanks. I knew there had to be something.

It's difficult to see how this could be made to work for a life form, because this is a very macroscopic process. On a microscopic level, well, we're all just ugly bags of mostly-water so we do it by suspending things in our mostly-water. As I understand it there are few to no good candidates for a silicon-friendly liquid base when you work through it.

(Interestingly, I have seen some suggestions that there could be other liquids that carbon-based life could be based on, such as ammonia. That said, it may not be coincidence that water is still almost certainly the best (accounting for the possibility that it's just the observer effect), and that's what all life forms reading this for the forseeably future are based on.)
I'm going to try and not come off as frustrated, but as someone who really enjoys and sees a place for both languages, I'm getting a little tired of the rust vs go zero-sum game thing here on HN. And at least you end your first paragraph with the acknowledgment that it's really "Apples to oranges really though." But -- since you did write that paragraph I'm going to address your points.

> Rust is an epic and amazingly rewarding to learn

I liked learning it too because it filled a pain point I've been feeling for years when it comes to systems programming. Can you specifically explain a bit why its "epic" and "amazingly rewarding" to learn?

> Rust is far and away the most modern, state of the art and most important programming language of our time

Holy guacamole that's quite the assertion by someone who, by their own admission, is still learning the language, how do you feel qualified to make such a ... well.. hyperbolic statement?

> Go compiles easily (pay for it later!)
By easily, I assume you mean quickly. How do you pay for it later?

> there's a lot of guarantees

Like what?

> After picking up Rust I feel like Go just offers nothing.

Why?

> Why not use Java or .Net instead of Go? Highly unlikely Go will be more performant than the JVM.

It already is, in some ways. Can you be more specific?

> Want something less safe and easier to write in, why not use Python, etc?

Go is less safe than rust?

> You can't write real time systems in Go and you never will be able to. You probably shouldn't write "systems" programs in Go.

Why do you personally think that? For example, I'd say that Rust gives you more control over memory. And has smaller binary sizes. But still, I've been frustrated by the overall size of binaries in both languages. Go in particular makes embedded programming near impossible (I was hoping to write software for my MIPS router in Go but was unhappy to discovery a nearly 12 MB binary file)

>Go has a couple built-in features that other languages can and will get with library addition. Go is a 1-trick pony I feel sometimes. It's an "in thing" that doesn't serve much of a purpose overall I feel. It looks like C but lets face it, it's nothing like it in terms of performance and never will be. It isn't a replacement for C.

Why do you get the impression that is Go's purpose?

> Is it Google looking at the same strategy as Sun/Oracle and Microsoft? Who knows.

Which is what, exactly?

> it feels like a regression

From what? Why?

> Developers, developers, developers!

Oh my god, you are a troll bot.
@briantakita If you read between the lines, what that says is all of our options are bad.

Unchecked population growth will exceed the limits of any system. No amount of conservation and "permaculture" will reduce the footprint of a nonmiserable human to less than a substantial fraction of what is currently, much less zero. You can't manufacture or farm virgin wilderness by any means. We eclipsed optimum population and blazed by sustainable population in the last millennium. We pay the price in this one.
I would caution that a two-phase commit is not always the best you can do. A two-phase commit is blocking and in event of failure during processing it can cause a deadlock. A three-phase commit offers the same level of guarantee but without blocking.
Jacquesm, yes, I agree completely. But the point of jokes like these is that they make a point succinctly and well enough. Hah.

But yes, building bridges is hard. So is building software. But the job of an engineer is solving a hard task within budget and within deadline.
This sounds like what the Japanese call Hikikomori (http://en.wikipedia.org/wiki/Hikikomori).

I saw a wonderful anime about a Hikikomori character recently, called Welcome to the NHK. It's on Netflix, and I recommend it to everyone since it's topical but also because it was oddly (and sometimes not so oddly) moving.
Ugh, I hate reporting about evolutionary biology. This isn't an egregious example, but the 'it challenges the idea that complexity increases over time', 'it calls into question the origin of the brain', 'forces scientists to question how animals got their start', 'evolution debate', etc, gives me the creeps.

In a country where more than 50% of the population thinks that evolution is bullshit, it doesn't help to try to phrase scientific disagreements to make it sound like it is some fundamental problem being argued about, instead of the placement of one phylogenetic branch.

Now, the science itself is interesting. The DNA sequencing is quite weak evidence, from what I can see (its been 20 years since I did my PhD, though), but the radical difference in biochemistry is a good sign that, if they didn't evolve twice from scratch, at least the common ancestor probably used the cells that later became neurons in a fundamentally different way.
I applied 3-4 times for PM roles at GOOG/FB/etc and each time my resume was auto-routed to folks recruiting for a senior software engineering jobs. I think what you say makes sense, so just don't give up on applying. My $0.02: of course I don't know for sure, but having some end-to-end product that you've made with UI etc. could help.
It'd be nice to see this overlaid on the area it represents because I can't make heads or tails of what I'm looking at.
I’m inclined to agree with you, but my sense of the status quo here is more libertarian than anything else. Might be confirmation bias.
When I tried to get my friend to switch to signal, they told me: "Signal is for drug dealers".

This isn't helping.
Gonna be negative but truthful here, I wouldn't use your thing, ever. I would google my problem then google alternatives then search hackernews or reddit for opinions and pick the one that seems best from there.

Why should I use appsolite?
I especially liked the feature that you can execute code inside the note by setting the corresponding command.
A few years ago my country's and other Latin American import and export system still partially run using an MS Dos app. I wouldn't be surprised if they would still be using it now.
> Can anyone give ballpark effort costs for writing a parser with a context-free grammar parser generator vs. parser combinators vs. by hand?

The few times I’ve attempted to use a parser generator, I could never figure them out. By contrast, when I started using parser combinators (in Haskell), I was able to start writing parsers almost immediately.

> I know good error messages are the main benefit of writing parsers by hand; can you also get those with parser combinators?

It depends on the library, of course, but they can get pretty good if you annotate your parsers correctly. For comparison, here’s the CSV parser from the article translated into Haskell (using ‘megaparsec’, https://hackage.haskell.org/package/megaparsec):

-- stack --resolver lts-17.9 script --package megaparsec
module Main where

import Data.Bifunctor
import Data.Void

import Text.Megaparsec
import Text.Megaparsec.Char

type Parser = Parsec Void String

quotedChar :: Parser String
quotedChar = label "string character" $ string "\"\"" <|> (pure <$> anySingleBut '\"')

regularVal :: Parser String
regularVal = takeWhileP (Just "a non-escaped character") $ not . (`elem` ['\r', '\n', ','])

escapedVal :: Parser String
escapedVal = char '\"' *> (concat <$> many quotedChar) <* char '\"'

value :: Parser String
value = escapedVal <|> regularVal

line :: Parser [String]
line = sepBy1 value (char ',') <* newline

parseCSVFile :: String -> Either String [[String]]
parseCSVFile input = first errorBundlePretty $ parse (many line) "" input

main :: IO ()
main = do
putStrLn "INPUT:\n-----"
putStrLn input
putStrLn "\nOUTPUT:\n------"
case parseCSVFile input of
Left err -> putStrLn err
Right r -> print r
where
input =
"this,is,a,test\n\
\1,\"an \"\"escaped,string\",2,3\n\
\whoops,\"there is,an unpaired,quote"

And the output:

INPUT:
-----
this,is,a,test
1,"an ""escaped,string",2,3
whoops,"there is,an unpaired,quote

OUTPUT:
------
3:35:
|
3 | whoops,"there is,an unpaired,quote
| ^
unexpected end of input
expecting '"' or string character

> Do parser combinators handle error recovery and stuff like that, or are you responsible for it?

It’s dependent on the implementation, but with ‘megaparsec’ it’s a combination of both. It’s often OK by default — e.g. my example above has no explicit error recovery — but in more complex parsers, you’ll need to wrap some components with ‘try’, to indicate that it needs to backtrack if an error was found. (There’s other error-recovery combinators as well, such as ‘withRecovery’ and ‘observing’, but in practise you mostly end up using ‘try’.)
From TFA:

"It was probably a way to affirm the ownership of the territory by a small prince or king at the time,"

Frustratingly I can't find a lovely quote I stumbled across recently that was (poorly paraphrased) something like 'Small men pointing at things on a map is the leading cause of war'.

It might have been from one of Simon Winder's superb European trilogy.

Certainly there does seem to be a trend amongst insecure monarchs and dictators eager to accurately audit their domain, and identify the neighbouring realms that desperately need to be liberated from their current owners / occupants.
I did misread it. To be honest, I thank him a lot more! Gitlab rules!
> Wasmer is an open-source runtime for executing WebAssembly on the Server.[1]

[1]: https://docs.wasmer.io/
Some countries actually do this, charge variable fines depending on net worth. The fine in this case is to de-incentivize bad behavior like reckless driving.
I think these days the US and UK require originating banks to keep part of the loan to avoid the whole "sub prime", "it doesn't matter if it's shit as long as you're not the one holding it" approach.
Apple aren't upstreaming their backends to LLVM, for example
PingDoctor is a great tool for locating and reporting these issues: https://geo.itunes.apple.com/us/app/pingdoctor/id1350044974?...
The world is turning more and more into neuromancer / shadowrun everyday..
One of the biggest financial issues facing this and other countries is people are conditioned to base affordability on the monthly payment. From cars and homes to every day subscription type services like Netflix to your cell bill.

Salesmen, well auto sales, are trained on the four square method to get you to buy. You could attribute the mortgage crisis a decade back as falling into this situation.

The barrier to buying a home used to be the down payment but creative financing is what got a lot of people in over their heads. It all about that cost per month.

Now people who over reach tend to forget all the other costs that come with auto and home ownership, namely insurance but owning a home has long term costs too.

https://www.consumerreports.org/consumerist/dealerships-rip-...
Evolution fucked us again. As a result, we feel drawn towards performing acts where we can be seen as doing good, not towards acts that do good. Being in a soup kitchen gives you witnesses, writing a check does not (especially with our shitty culture that often discourages people from talking about their philanthropic deeds).
The old Win32 controls can change their background color just fine. I used these controls in VB6 (1998) and they all had background and foreground properties. It will take time for each app, but won't require a full re-write. More like a single if condition in the startup code.

For this specific case of Notepad:

https://docs.microsoft.com/en-us/windows/win32/controls/wm-c...

> If an application processes this message, the return value is a handle to a brush that the system uses to paint the background of the static control.

Discussion from 2001 referencing the 1998 MSDN documentation:

https://www.vbforums.com/showthread.php?98513-How-can-I-trig...

<Rant>
People who haven't used Win32 in its hey day forget how many apps had awesome and unusual look and feel and only relate the the default Windows apps with no effort whatsoever at customization. Except the touch stuff, Win32 can do pretty much anything Metro can and probably more.
</Rant>