skysight-inc/HackerNews huggingface dataset:
Hmm...

"The server always asks for new location data, every 30 seconds, even when no one is listening."

...

"Our task is to pause the timer when there are no websocket connections and start the timer when a client connects."

That sounds like asking for trouble. Maybe there's something I am not understanding, but why not have the timer run continuously and have the timer action check whether it needs to request location data?

Yes, that will cause the process to wake up every 30 seconds even if there is no action, but unless circumstances are very special that won't be a significant problem.
Show HN: Storybook – UI dev environment you'll love to use
I doubt it. The post explicitly states that s/he had to put him in a nursing home which means chances are that he cannot live comfortably independently.
I am a big fan of awk. I find it very beautiful. I admire the authors of awk so much. When I read the awk programming book, I find that has such clarity of thought. Kudos to you for your implementation!
Show HN: Spirit – The animation tool for the web
Course work tends to focus on the latest fads in languages. While the language chosen for a project definitely matters, in terms of engineers, I've found the languages known doesn't matter nearly so much as the ability to learn and evaluate languages. I'm far less interested in whether someone knows Scala than I am in if they know why Scala can be a good starting point for microservices.
you seem very certain soft (volume) speech can't harm. okay then you should be fine with this experiment (and confident about its result): let me put you into a room and have people come in for 8 hours a day and call you stupid, ugly, worthless, a disappointment, etc. in perfectly mild tones for exactly one month. we'll perform a mood/outlook/mental health assessment before and after. do you think there will be a difference in the two assessments?
Why military contractors?
Could one write a C compiler that intentionally caused noisy havoc in every situation left undefined by the language spec? As opposed to trying to do something reasonable. Then at least you’d know that you were on shaky ground?
Exactly.

I would add that the OP is motivated, in part, by Corporate America's current understanding of "AI" as little more than "glorified regression" and "glorified classification." There's a tremendous amount of hype, but really very little understanding outside of a few academic centers and Silicon Valley companies.
My guess would be that the selection of processed foods happens at a different level. Ugly produce is sorted out of batches that go to places sorting produce for retail. Whole other batches go into processed food. They are probably different varieties, harvested at different levels of ripeness.

Like no one would can any tomatoes that were harvested for retail, because those canned tomatoes would suck.
Alright this is going to be a dumb question but...

Every time I start a new personal project I say 'oh neat I can use Rust!' N hours later (where N is a large number) I realize Go is about as fast, much easier and more readable syntax, and so I use Go if I want something that isn't Node. I'm a web developer so maybe Rust just isn't useful for that, but is Rust purely a systems level language for making super low level stuff? Forgive my ignorance, but what do people actually use it for where it outshines other languages?
The Ultimate Key to Success in Life Is Hidden Within You
It's called agile essay writing.
Have a problem with front end frameworks? Try front end frameworks!
+1 for this. I do this at work for documentation. Markdown presents well on github and using Pandoc with Makefiles so I don’t have to remember the options for generating PDFs, Word format, etc.
I bet Domino's worked with the city and had some sort of explicit permission.
We are processing the requested change to your cookie preferences.

This may take up to a few minutes to process.
Umm, that time still exists. My resume is exactly like this, just says what I did and doesn't contain BS. IDK what you mean about "logging every second your time" but all government contractors require a daily timecard and did so in the 80s as well (according to my coworkers - I was a kid in the 80s). The reason being was so they know how much time to bill for!!

If you wanna work in hip startups then I guess it's different but if youre like me and working in boring industry like IBM and defense contractors, it's still like this. I'm old and boring, my job is a means to gain money, nothing more.

I don't spend a weekend tweaking css either, just a simple text resume simply formatted that I created in Google Docs and FWIW since I started working in industry my resume has had 90%ish success rate in getting job interviews. Of course, I also have only applied to jobs I'm interested in and I don't job hop like crazy.
Dont give my boss any ideas.
and netbios in the mix
Flarum – Forums Made Simple
a CEO of a public company should know that saying anything in public after thinking about it for only 20 seconds is just going to create disasters... Or make you POTUS.
The person you're replying to was joking.
I've been tinkering with writing a simple game in Golang as well. I don't think it's a good idea to lob in an entire web browser for a game, though. I've been using the go-gl stack:

https://github.com/go-gl

They have a wrapper for GLFW and OpenGL, I've been using GLES2 which has good compatability with everything. You have to be prepared to learn how to write shaders and use OpenGL, though, so it can be a bit intimidating. Here's the (extremely incomplete and very bad) game I have so far:

http://git.sr.ht/~sircmpwn/freefood
True. An alternative if you want to see all your selections highlighted would be to turn search highlighting using set incseach and hlsearch.

Use / to first select what you want to change. Then use cgn to make a change and . to repeat it. n will skip a change.

This still might not be exactly what you want and that’s fine. It’s always good to try new ideas and new software but for me vim gives me plenty of options already.
Noticed this too. I recall one person in the audience laughing uproariously at it - probably the only person that got the reference.
Even with such tech being open sourced, the operational overhead of running these at scale, especially in smaller startups, would lead to managed services still being used.
Out of curiosity, what are they paid in other countries?
It's like the Singularitists who passionately believe we're somehow going to transfer our consciousness into a machine, despite the fact that thousands of years of philosophy and science from countless angles of study have yet to actually solve the question of what consciousness even is.
Users flagged that and users will probably flag this as well.
Ten Slack apps at work and play by Modis
I hope you won't take it personally because you're far from the only one to say it (and I would have refrained from posting if I hadn't seen people taking this further in this thread), but I really wish people stopped using the "DNA is the source code of your body" analogy. It is used way more than what's it's actually worth, even though I can see how that analogy can be seductive. The structure of a program's source code is nothing like the way DNA encodes and propagates information. Even if you add a bunch of adjectives such as 'self-modifying', 'full of GOTOs', 'nondeterministic', 'live monkeypatched', and thus twist the picture many people have of the way source code translates into execution, it would still be misleading. We are a product of both our genome and environment, at the same time, all the time. Not one then the other. Or, if you will, the source code is its own executable. It doesn't make sense because the analogy doesn't either.

And that's not even taking into account non-DNA things that encode and propagate information, such as microbiota or anything linked to epigenetics.
I'm not a Netflix user, but IMO a proper binge includes muscle memory for the shortcuts to exclude openings, endings, teasers and in previous episodes intros...
See also https://github.com/oakmound/oak if you are interested in a pure-Go library (i.e. one which doesn't need cgo) with no HTML & JS dependencies. (Disclaimer: haven't used it so not sure what's the status; but reportedly it's been used by its author to write a game.)
> Repeatedly throughout the trip, they would hear that the really dangerous area started 50 miles ahead. When they reached that section, the locals there would say the same thing.

It's remarkable how local people's knowledge is, even in this day and age.
Keep it on disk in MBOX format. Many languages have libraries for it.
Why do they frame it as only “poor middle America”. I use to live in apartments that were going for
$1700/month for a three bedroom (now $2100 a month less than
3 years later) and there is a Dollar Store in the same complex as a Publix across the street. The city had a median household income of $100,000.

Suburbia welcomes dollar stores just as much as rural America.
But do they charge tuition to their bottom 60%? Stanford has a tuition program where its no-cost if your family income is low.
I think GP is getting at something else. As the length/complexity of the code goes to zero, the copyright and "all rights reserved" vanishes; this is well established, or else we'd all have to license "Hello world" examples from Kernighan and Ritchie's book.

If someone writes the same one-sentence pseudocode as GP in a book or blogpost, nobody could reasonably claim that an implementation would fall under the copyright of that book. And I think you'd be very hard pressed to argue it's copyrightable just because someone typed it out into real code.
Visualize the dependencies of any package in npm
I am not against regulation,I think it's needed,especially on the 3rd party code audit side.

What makes software security practices different is thay 'computer security' is much more than how securely the code was written. A perfectly written software could be rendered useless by incorrect configuration or bad admin security practices. Heck,even the cpu could be come faulty and compromise security as you've seen with the latest intel bugs.

Yes,software security needs to improve by a lot,but look at the whole picture and include operational security,system and network design,risk assesment and proper threat modeling practices.

Good and easy example - yubikey. Google hasn't had anyone phished in over a year or so due to their yubikey enforcement. Even of software security or bad human practices were a problem the check and balance of yubikey prevented compromise of data security.

Next Gen AVs are so good,there are companies that haven't had single malware infection in 1y+. Insider threat is being accounted for too as a result of ML+behavioral analytics.

Modern security assumes the software is riddled with bugs. For example, if MS word starts powershell or the browser an unusual program like cmd.exe,modern endpoint solutions would block+alert. They assume browsers and document processors are filled with holes,so they account for post-exploit behavior and that actually works well.
Type safety and zero cost abstractions are the two main draws.
True, maybe I should have added ...and non-experts who try to faithfully summarize them for us mere mortals.

Edit: actually, I think I would recommend everyone interested in this subject to read at least a few texts by actual experts (professors in cryptography and people who work for high-stakes security businesses), to get a taste of what it's all about.
Toronto has quite a few fake houses used as transformer stations with some looking pretty out of place with the boom in condo development.

http://spacing.ca/toronto/2015/02/18/transformer-next-door/

https://www.blogto.com/city/2010/10/toronto_hydros_not-so-hi...
On balance, the taxes may have played a role in decreasing smoking. It would be foolish to pretend that they didn't also play a role in some poor kids not getting new shoes for school or enough to eat during the summer. Some of us have enough empathy to care about that; for others humans are just economic knobs to be economically twisted.
Being good at 2 things is better than excellent at 1
hah, that went right over my head.
You already realized that env vars are an example of dynamic scoping, and someone mentioned exceptions downthread.

But pretty much any serious programming language has some (often crappy ad-hoc) implementation of dynamic scoping somewhere, because it's very useful. Take decimal contexts in python -- would you really like to pass number of significant digits and rounding mode to every operation? Sadly, it's also an example of a crappy ad-hoc implementation (broken with async).
I'm old enough to have typed papers in my youth. It sucked because you had to write it twice, one draft by hand, then type it up. When you were drafting you had to physically cut and paste, with scissors and tape. It was annoying and didn't improve workflow at all.
mail is not real-time messaging
Yes, and I've had to limit myself pretty severely on eating out.

Flip-side, is that I can put more effort into having good food. I eat enough bread that I like to bake a loaf every week, and having fresh home-made wholewheat bread available is pretty nice.

I do enjoy 1/2 a banh mi, for lunch, a couple times a week, but otherwise I've had to pretty much stop eating Thai curry, as it's just too many calories, esp. when you consider a regular lunch special of soup and (small) dessert in addition.
And even more so, a product of our cells and RNA soup and so on. There's a truly huge operating system that DNA operates in. I think of DNA, when I think of it as all in a coding way, as a top-level script on top of enormous machinery. Like a switch on a giant factory, that says 'man' when you flip it one way and 'mouse' when flipped the other. Does the switch encode what it means to be a man? a mouse? No.
Why include XHR in a view framework?
I don't understand why this is on github. Are you going to accept pull requests?
Issues with US infrastructure are not due to a lack of spending but a HUGE lack of efficiency in that spending. The US actually spends more than most OECD countries on this sort of thing.

The reasons behind this poor efficiency are complex and no one really knows how to fix it.

Here is an interesting article on the NYC Subway System. It's obviously about one small slice of US infrastructure but the general story is the same.

https://www.nytimes.com/2017/11/18/nyregion/new-york-subway-...

A lack of spending is not the problem.

Also, incidentally, since you mentioned "privatise the profits", it's worth noting that the Stockholm subway system is operated by MTR Corporation, a for-profit corporation based on Hong Kong.
Programming Breakthrough: How to Setup Your Pocket Relay Node on AWS
What version of Fortran were you using that you needed gotos?
I've written, typeset and published a book about a game (a variant of contract bridge) [1] using this toolchain: emacs org mode > Pandoc > Adobe Indesign (via ICML). Worked beautifully.

[1] https://www.santeonisto.com/swingbridge
There's an explicit global angle here. In many parts of the world $5k is way more than minimum wage for a year
> Some idiot would give a homeless person some giant bag of apples.

Is that the appropriate word for that person?
Living in GA, big business serves as somewhat of a beachhead against it from becoming another Mississippi.
SMTP send heap buffer overflow
https://curl.haxx.se/docs/adv_2018-70a2.html
I feel that everyone has a dark side. If I can't find it, I don't really trust or know who they are. Sometimes it's swearing, a cigarette habit, scars on their wrists, a public argument with their boss on Twitter. Sometimes it's a little darker.

Some slightly dirty stuff on the resume helps reassure me that you are a human being. I find it a little comforting, to be honest.

There are a lot of very sterile resumes. You won't stand out. You'll just be another guy who has built 6 apps, refactored a million dollar code base, worked 3 years with giant company XYZ.

But someone who makes a random Sonic fan art generator, that's going to stand out. Just as long as people aren't morally opposed to it, it should be fine.
Well said. I think the major problem here is not that PhatBeets is being out-competed by a more well funded company. The problem is that there is enough food in the world to feed everyone in the world and more, but because of economic inequality there are many people who cannot afford to put enough food on the table for them or their kids. It's not Imperfect Produce's fault that the world is so fucked up, and I love the mission of PhatBeet's. My take away is that if I was in PhatBeet's shoes I would be incredibly frustrated and would feel very powerless and might make a blog post with similar hyperbolic language lashing out at the easiest target I could find in a desperate effort to save everything I had been working so hard on for so long by any means necessary. If I were in Imperfect Produce's shoes I would feel like this ire has been misdirected at me when the real problem lies with extremely complex and difficult problems which exist in general in our society.
Taskbook – Manage and Sync Your Tasks and Notes in the Terminal
Low effort blog
You're probably thinking of Durandal, which was the predecessor of Aurelia (along with some brief history involving Angular, IIRC). Mithril is an entirely different project by different people, I believe.
Letter was dated in 1980, guy had like 16 years of experience on the belt already.

So he was 54 years at the time, and started coding at 38.

or maybe he started earlier and didn't mention it.

Would have been cool to work with him and makes you think about doing what you love for as long as you can
That's the whole argument around theism.
Repeat will only fix this particular case. If you did "dtf" and wanted "dff", repetition won't help.

Kakoune is kinda like vim in visual mode (or block visual) with multiple cursors.
There is a railway tunnel in Burnaby, BC with a ventilation structure disguised as a house.

https://www.google.ca/search?q=burnaby+tunnel+ventilation&oq...
Is that a personal or an official definition?

I think most people consider anything that they can't point to on a map with a precision better than 1000mi as 3rd world.
If you try to convince them, you must pick some proof that is actually proof. An automatic lander can do the same job without landing a person in the Moon (unless you think there were some secret cosmonauts visiting the Moon).

From https://en.wikipedia.org/wiki/Lunar_Laser_Ranging_experiment

> Lasers on Earth are aimed at retroreflectors planted on the Moon during the Apollo program (11, 14, and 15), the two Lunokhod missions, [...]
Kakoune doesn't come with any of these built in, however kak-lsp [1], the language server protocol client implementation, is fairly mature, and I wouldn't be surprised if it supported inline doc lookups. Certainly kakoune provides the facilities needed to implement that.

Cross-file grepping, and fancy fuzzy finders are considered beyond the scope of the editor, but the wiki has some tips for integrating a separate fuzzy finder program into kakoune [2].

Emmet would be super easy to implement but it just hasn't been yet to my knowledge.

[1] https://github.com/ul/kak-lsp

[2] https://github.com/mawww/kakoune/wiki/Fuzzy-finder
I was in Stockholm a few weeks ago and among other things, went to visit this subway station. Granted I didn't visit during rush hour, but it was quiet, clean and rather nice.

The station itself may be the deepest, but it isn't the busiest, and if you look at a map it makes sense. It's a single stop away from T-Centralan where all of the lines converge and it is the last station on the line. Leaving the station you emerge in a garden near the centre of the city, but there are other lines that will probably get most closer.

I went there in the middle of summer and honestly, the entire city didn't feel that busy in the same way London feels. I wouldn't be surprised if many locals are holidaying elsewhere, and Stockholm while a capital city, isn't at the top of the list of city destinations.

Also, shameless self-promotion and photos, but a friend challenged me to blog my trip and post online, click here for photos: https://consto.uk/2018/07/16/interrailing-into-stockholm-day...
The OP submission is actually included as chapter 6 in the book.
A string is the worst thing to return because it’s huge. Most people return () instead which is zero sized.

However when returning ! the compiler can optimize the entire error handling away.
To add to what cryptonector says, it was unimaginable and leagues ahead of everything else that wasn't £5k+ or a Unix workstation.

What were the choices? C64 and Spectrum were yesterday's news. PC's were 4 colour CGA or EGA if spending a fortune, could go "beep", and ran DOS or Windows 3 that supposedly multi tasked but in reality could background print or crash, yet cost loads. Mac's were single colour and oh so expensive. The ST was a quick cheap hack solely to ruin the Amiga's day after Atari failed to buy (rip-off) the Amiga. It had midi which meant it found a significant niche.

Amiga had prioritisable pre-emptive multi tasking that actually worked, and multi colours. It compared with workstations Even AmigaDOS that took a lot of flak was better than the others as it felt rather like Unix lite to use. Porting most unix command line and terminal apps was pretty trivial.

Most of the ideas were innovative; dozens of DMA channels, copper and blitter as co-processors with their own memory access, autoconfig that worked. Ten years later Windows 95 came out with plug and pray to finally end the pissing about with jumpers, shared interrupts and bios config. Wasn't as good as Autoconfig, nor anything like as reliable.

Workbench and Intuition were easily the best designed API of any of the OS's. Code sizes were tiny thanks to shared libraries. I remember when I had to switch to PC - one package I ran came on something like 15 or more Windows floppies. The Amiga version had come on 2, yet did more. The second disk was example files. It was the same when I tried my first GUI hello world under windows - why is this 50k when the amiga version, that had the same resizeable window, icons and such, was something under 1k? Why do I have to write all this glue code to do things the OS should be doing?

There was a Unix-like inclination to open standards and data sharing - IFF (jointly with EA of all people!), datatypes, Arexx. There was a Mac-like inclination to better hardware - HDDs and CDs were SCSI, avoid impacting the processor etc.

Commodore didn't know what to do with it and ended up marketing as a second rate console/games machine, cost cutting and delaying the next machines, and they had an asshole for CEO who was bleeding the company dry. The demo scene probably made more sales than C=.

It should have obliterated Microsoft and PCs as on every significant point it was comparing a Mercedes with a Trabant. The Byte and PCW reviews on its 85 release felt similarly. I imagine early Mac owners feel similar, for different but equally justified reasons.

It's hard not to be nostalgic or feel there was a huge missed opportunity to build the future on a better foundation.
My issue with these is they still use MicroSD cards. I basically want a Raspberry Pi with a SATA connector so I can use an actual hard drive or SSD.
How about xmpp?
> But that's kind of the point - no matter what "should" be, it's an unavoidable fact that desirable real estate / desirable location of living is an inherently scarce, limited, exclusive resource;

Yes, but the scarcity of real estate hasn't changed - there haven't been any holes suddenly opening up in the ground and decreasing the amount if available space. Nevertheless, housing prices have skyrocketed (and so have the number of homeless from what I've read).

So to stay in your frame of discussion, it seems the definition of what is "non-luxury" living space has shifted considerably.
Summertime Solus – The Roundup #7