skysight-inc/HackerNews huggingface dataset:
I noticed the site's name has Africa with a K, and I thought nothing of it other than branding, but then I saw one of their recent articles spelled the name of the continent with a K as well. Here is perhaps why:

http://www.informafrica.com/information/why-do-some-people-s...

(It was apparently originally spelled with a K and it symbolizes a repurposing of the term by Africans themselves)
C11 got user defined generics, FYI.

https://en.cppreference.com/w/c/language/generic
> Have you looked at government infrastructure projects?

You assume that they work with the same enthusiasm on the projects we benefit and on the projects they benefit.
Then again, clones of games from 1980s in modern engines are considered toy projects. The equivalent on the web is considered standard practice.
A High Performance Replacement of Bytes.Buffer from Intel Go Team
Oh yes please. I work as a games programmer at a massive studio and it looks like 90% of people here prefer complete darkness during the day, to the point where they have these umbrella-like covers above their desks to cover any light from the lamps that somehow miraculously are still on. Me and few other people occupy a little corner next to a window that we stubbornly refuse to close the blinds on, despite bi-weekly requests to do so from our artists. If I had to work in the darkness I'd genuinely consider leaving - it gives me a headache.
The same amount of data, but not by the same route.
An Institutional Review Board [1] is a mechanism most research organizations use to ensure that any research conducted is done in an ethical manner.

[1] https://en.wikipedia.org/wiki/Institutional_review_board
Way better than loading megabytes of .js just to display stupid animations and other useless gimmicky stuff.

This file is just in consonance with this website's style: concise, terse, to-the-point and with minimal bs.

Of all of my currently in-rotation news websites, this loads and reacts the fastest, no matter where I am or how crippled my current connection is. I am sure they are factoring load times and speed over 'shiny new features'.

Keep going, YC!
Yep, that's about how much JS your site should contain if you're a sane person.
A company wanted to buy the homeautomation subreddit
>Instead of trying to understand why 80% of the people are leaving, try to find out why 20% are staying.

That's a survivorship bias. You have to analyze both groups in order to improve the ratio.
>If you want to flip again, then you know what option you prefer.

Nope.

Of course if you see A coming originally and don't want to flip again, then we know that you're OK with A.

But if you do want to flip again, then you just know that you don't prefer A -- you can't deduce from that that you want B.

You can still:

(a) prefer B
(b) dislike both
The War on Drugs has been far more than a "bad law". It's arguably fucked up at least two generations of minority Americans, mostly black men.

And some years ago, at perhaps the peak of that war, we had a US administration that dealt in illegal drugs in order to buy weapons illegally from declared terrorists, and then illegally provided said weapons to counterinsurgency forces, explicitly violating the express will of Congress. And then the Vice President, a former CIA Director, who was nominally in charge of the operation, was subsequently elected President. And some years later, his youngest son, with no obvious qualifications for office, was elected President for two terms, and broght to his administration many of the advisers and operatives who had carried out the drugs-for-weapons program.

I mean, it's hard to make up stuff this this!

What do you point to, from the 70s through the present, that exemplifies the "rule of law" in actual practice?
Well the incentive for China is simple since it uses all Chinese sources so the costs get higher than necessary but it's a foreign government flipping the bill so they don't care plus there is no competition.

The risks in Africa are great but when China has got your back as a company the math is different.

Not to mention we're talking Chinese concrete here that building will be turning to dust in less than 5 years they do the same in China after all and that's why it's not smart to buy property long term there although it's culturally necessary to be able to have a family there.

They may be building grand buildings but they use sub par materials so they are no build to last so I predict the debt will last longer than what they offered for it.

I works in China because the handle the supply and demand internally but it's a different story when they start exporting that.
How does it compare to their desktop counterparts?
Thanks for the feedback. Useful stuff.

Is there any chance I can get a contact of yours? (I am always in the middle of a project that can benefit from the constructive criticism of smart people, so I will be happy to stay in touch)

You can use the contacts in my profile if you don't want to post yours' here.

Cheers!
I simply quit using it. I didn't replace it with anything else.

Maybe a lot were like me, and simply didn't care enough to keep using it.
Free will does not exist; Fee will!
Author, since you're commenting: you have the pinyin for San Ti wrong in the first line of your first major subsection. San is first tone, but it's marked in your post as 4th. (you have Ti
correctly in 4th)
The Single Piece of JavaScript on Hacker News (2016)
I've recently been researching this for my own needs, and this author's md -> pandoc -> etc chain is pretty much where I settled. Reading this article, I was hoping to find a way to point code blocks at a git repo (local, remote, w/e) so that as code changes, the book follows (I do mean during the formatting phase - not that an ebook would follow a remote repo to get code.) I did not find that solution in this article.

Has anyone come up with a method for doing what I want? Maybe the ```lang code blocks in md could take parameters like repo, file, line range; then an update to pandoc would fix it all right up. Thoughts?
To me, the real question isn’t if the mobile carriers throttle video, it’s if they equally throttle video. Video throttling has been happening for a long time. But what I’d really like to know is if a carrier (say ATT) was throttling Netflix, but not their own DirecTV app. DirecTV is already zero rated on ATT, but I’m not sure if it is also throttled.
Other than using ublock/umatrix to block as much 3rd party crud as possible, there's not much else you can do since most sites will be tightly coupled to their javascript.
If you're lucky, certain popular websites have their own extensions, such as Alternate Player for Twitch.tv[0], which help make the experience quicker and nicer, but you'll have to search for these if they exist.

[0] https://addons.mozilla.org/en-US/firefox/addon/twitch_5/?src...
I was going to write that as well. I worked at a place that had automatic curtains which covered the windows when it was sunny out. It immediately felt like a prison when they went down and that was a standing joke among employees.

I can't even imagine working in a place like that 8 hours a day. I would probably rather live in the woods or something.
> they have such an aversion to living really close to other people

I totally understand them. I am a very late millenial (born Sept 1996), but I don‘t want to live in a city center, especially not a big city.
It actually quite a hard thing to quantify, if I sit up in my wheelchair for too long you end up with pressure sores but on the other side lying down for too long can affect lung function and muscle tone which can make it difficult to eat which leads to all sorts of terrible ickyness.*

I think once you become quadriplegic you have bigger problems than your position when using your computer, but overall user on your back is definitely better for me than sitting up in my chair.

* Yes, that is the correct medical term.
Why is the continent with the most natural resources also the least developed?
The code is entirely self-contained. That's what makes it easier for future-you to understand and decipher. Dependencies won't have gone out of date, library versions won't have moved on, APIs won't have disappeared, etc.
You're talking about events nearly a millennium after the ones being discussed. Rome had no great influence in 389 BC, and it's incredibly unlikely that the Persians maintained copies of those records.
Having an Android Emulator is a death knell for any mobile OS.
It all but killed native application development for BBOS and Sailfish.
lol, the anti-remote propaganda gets more ridiculous every day.
The major argument is that if you build an SPA, you'll do a bad job. So... don't do a bad job?

This completely misses the major benefit of SPA: reusable web components made with the latest version of JS with a framework that updates the DOM from a view model. I guess you could accomplish that without SPA, but I'm pretty sure we're all here for the frameworks/es6/typescript/compnents, and SPA is just the deployment model. A deployment model which allows all that to happen with a fairly short initial load if you're doing things right.

If you're loading multiple megabytes in your first chunk in 2018, then you're doing it wrong.

All that said, are you making an 'application', or are you making an informational website?

If you're making a simple website, SPA is just silly. If you're making an application, and it just happens to be deployed via a browser, SPA, and more importantly, the things I mentioned going with it, are a huge productivity and organizational boost.
yeah. my guess is the compiler just outputs its intermediate format when it sees map assignment and can just do whatever it wants.

for reference you can play around with this by doing:

go build test.go
go tool objdump ./test

then search for test.go in the output and you should be able to find the go 'assembly' for your functions. also, if you use a big enough struct type then go will call into a memcpy() style routine to do the assignment.

test.go:32 0x108d791 488d15d7170300 LEAQ go.string.*+255(SB), DX
test.go:32 0x108d798 4889542410 MOVQ DX, 0x10(SP)
test.go:32 0x108d79d 48c744241803000000 MOVQ $0x3, 0x18(SP)
test.go:32 0x108d7a6 e835c2f7ff CALL runtime.mapassign_faststr(SB)
test.go:32 0x108d7ab 488b7c2420 MOVQ 0x20(SP), DI
test.go:32 0x108d7b0 488d742430 LEAQ 0x30(SP), SI
test.go:32 0x108d7b5 48896c24f0 MOVQ BP, -0x10(SP)
test.go:32 0x108d7ba 488d6c24f0 LEAQ -0x10(SP), BP
test.go:32 0x108d7bf e83807fcff CALL 0x104defc

0x104defc for me looks like it duffcopy from this file: https://golang.org/src/runtime/duff_amd64.s
Maybe a bit (a lot?) out there: why not go for a business degree instead, e.g. EMBA?

You mention “foreign country” so I’m guessing you can have access to good curriculums without paying the US premium on education (or just go for an online course).

Pros: the time and money is not “wasted” as you actually pick up new skills; the MBA card should be enough to trump any education requirement; and you become that most desirable of hybrids: the tech/data guy who can talk business (or vice versa).

Cons: significant time (and money) investment; doesn’t help you get expert DS jobs (you’d be aiming for team/program manager, consultant, etc)

My own experience: completed an EMBA in 2017. Ranked in FT’s top 10, the program cost was around 50 k€ (it’s increased a bit since) and I was able to get 25 k€ of outside funding. The program I followed lasts 2.5 years, meaning I was able to do it while keeping my job (and having a kid) without losing my sanity or my wife. Landed my dream job just before completing the curriculum for a nice 40% pay increase (not saying the EMBA alone had that effect, far from it —but it definitely helped).
It's more the side effect of upvoting the whole thread that makes me wonder.

https://stackoverflow.com/questions/705782/why-shouldnt-data...
In one case, an employee was going to work for a startup developing a new (completely novel) product in the same industry as former company. There was a non-compete clause in the employment contract. It was cheaper to wait a year before joining the startup than to litigate. I know both companies, and the claim of competition was tangential at best.

In another case, an employee hadn't signed the current employment agreement which was far more overreaching than the terms of employment they originally agreed to (but which were needed for the organization to pursue its new -- somewhat sleazy -- business model).

The organization fabricated criminal allegations and told the employee they would press charges if the employee didn't sign away their rights. That's criminal extortion, but if such threats are verbal, it's not something you can really prove. Best case outcome for employee was a (very public) mud throwing match against an organization with an extensive PR/press department. A lawyer took that one pro bono, but I think that cost that employee 3-6 months of their life, and in the end, they gave up on their next startup too (which was, again, in the same industry as their former employer, and difficult to do with new terms).

Both were big organizations (ones you would have heard of, and one of which is held in extremely high esteem as an 'ethical' organization). Both settlements involved signing away rights to talk about those settlements.
If anyone is curious this open source tool will convert markdown (with support for images) into pdf, epub, mobi and html:

https://github.com/softcover/softcover

It was written by the same guy who created the original Rails tutorial. You'll be able to generate books that look and feel like this https://www.railstutorial.org/book.

I've released a couple of PDFs using it, and it's pretty decent to work with. There's room for improvement but I haven't come across anything better.
Probably not yet, but I've heard this might be the case in the future.
I know, right? But I really, truly do forget sometimes. It's been over 10 years since I became quadriplegic, and I am old now so I'm allowed to forget things I think. :-)
A shell that looks like it was built by blind people is probably a hard sell for an "open" phone which many will already believe to be lacking in polish.
let and const are good practice in code that will be transpiled, or in Node.js, but they're newish features that don't have 100% browser support yet, so they shouldn't be used if your code has to run directly in a browser.

https://caniuse.com/#feat=let
It's not possible to legally purchase a plate for a registration you don't own. About 10 years ago the DVLA started to crack down on places printing plates without changing eligibility ahead of time.

I know we're already talking about the law, and there are always ways around this, but you're probably better off sticking a foreign plate on the car.
> Modern electronic cars use a single bus (CAN bus) that connect all electrical systems. The brakes, the engine, the wipers, the stereo...

Not true.

The automotive bus architectures I know first hand (admittedly far from all of them of course) have multiple CAN buses, plus other bus technologies as well (MOST/LIN/Ethernet).

I don't think it would even be possible from a bandwidth/latency standpoint to push everything across a single CAN bus.
Feed Your Head: Foods That Target Depression and Anxiety
I work for Fitbit. I don't speak for Fitbit, but the web page you cited does.

I don't see any claims to anonymize unshared data. I just see "We may share non-personal information that is aggregated or de-identified so that it cannot reasonably be used to identify an individual."
Counterfactual Explanations Without Opening the Black Box [pdf]
Facebook sues BlackBerry, claims it stole voice-messaging tech
I agree that because of common uses of things like match in Rust it makes it consistent to also do it for functions. I don't agree that the reason why it's consistent is because a function body is an expression (though of course you have more expertise than me on this one -- and Rust does actually treat scopes much more strictly than most other languages so you could argue every scope has the smell of a function call associated with it).
App Developer creates Animoji-like app for older iPhones, Apple Rejects it
This. Most modern strikes affect other working class people instead of the "1%" (?) they are supposed to be targeting.
> Skyscrapers are very expensive to maintain across decades. Ethiopia has a GDP per capita of $700.

I assume that part of the expectation is that that will rise rapidly (as it did in China). Whether that actually happens remains to be seen, obviously...
1partCarbon | Senior Web Dev | Edinburgh, UK | Fulltime

For the past 6 years, 1partCarbon has been successfully designing and building an extensive variety of software systems and apps for our clients.

As a senior software engineer, you will be responsible for initiating, extending and maintaining our current and future portfolio of projects. You will support your colleagues with your knowledge and experience and contribute to the overall health of the projects you are assigned to, contributing to code reviews and deploying solutions regularly to AWS infrastructure. We like to share knowledge amongst the team and as such mentoring of other team members would be part of your day to day job.

We use a range of technologies. Our core technologies are Ruby, JavaScript, Swift, Ionic, Java and Linux.

The ideal candidate(s) will have at least 5+ years software development experience some of which will have been working with Ruby and JavaScript and or mobile app development.

More details can be found here:
https://www.indeed.co.uk/job/senior-software-engineers-e912c...
Discussion: https://news.ycombinator.com/item?id=17884382
Not sure about the science here, but I have found the opposite to be true for me. I love natural light and crave it while I work. However, I have found that if the room is just a little too bright I will end up with severe eye strain and headaches after a day of work. Ambient light is the unfortunate cause.
For all big decisions I always end up using Socratic questioning. It never fails. It's like a pros / cons list but on steroids.

I wrote about it once in the context of using it to potentially learn a new technology, but it applies to everything.

You can check that out at https://nickjanetakis.com/blog/would-socrates-use-docker-tod...
Sounds like a good technique.

Get a book that is written in conversional language and learn the vocabulary of a page before reading it. This probably neither gets you speaking and writing in that language, but being able to read it is a good start.
> How do you know they're ANPR?

Just a happy coincidence that a large portion of my job is interfacing booking systems with ANPR installations. The ones down the road are MAV cameras. Not cheap.

Yeah, they might be using them as CCTV. But that's a lot of wasted money.
Yeah, Apple has some APIs for rendering widgets from vectors too, and Gnome (for icons) but most widgets, ui elements and apps are still bitmap based.
That's from UVB light, which doesn't really penetrate windows effectively.
It'll just be the third or fourth person then. Talk to the office manager if you want to enforce a natural light time from the top.
How to Procrastinate Productively
What does “security hole” mean to you?
Faster way to type a comma on your iPhone
CCleaner with Improved Privacy Options
Not sure if sarcasm, but that is a perk in some places: https://www.youtube.com/watch?v=gmn7tjSNyAA&feature=youtu.be
>, are written in GitHub Flavored Markdown (GFM) [...] code presented in the books is contained in the Markdown files in the form of fenced code blocks.

I understand the appeal of markdown but I avoid it for writing coding tutorials because it doesn't have an easy way to annotate code with graphics like arrows and floating callouts. Here are some visual examples of code enhanced by arrows: [1][2][3]

Also, all types of text files besides programming syntax can also be explained with graphical annotations such as configuration files or log output files. E.g.[4]

Therefore, I use MS Word because it makes annotation easy. (LaTeX can also do annotation but that has its own workflow issues such as the typical programmer not knowing it which means the team can't easily update the documentation.)

IMO, annotation is important because if we performed eye-tracking and heatmap tests with people reading code tutorials, we'd see that a significant amount of time is wasted with the eyes constantly shifting back and forth between the code and the subsequent paragraphs explaining that code that's located a few inches down the page. I also think this is one reason why live coding demonstrations can sometimes be more effective than reading a book because the presenter is wiggling the mouse (or laser pointer) around the exact spot of the syntax while he's talking.

This can be somewhat mitigated with adding inline code comments in the example but often, it still doesn't point to the exact point in the line that needs to be studied. Code comments also don't easily illustrate (because it has no spatial cues) how separate lines are related to each other.

One workaround of markdown's limitation would be to rasterize the code's text into an image and then use Photoshop to annotate. However, with MS Word, that cumbersome step isn't required.

[1] https://introcs.cs.princeton.edu/java/11cheatsheet/

[2] https://www.oreilly.com/library/view/head-first-python/97814...

[3] https://i.stack.imgur.com/D8JeF.png

[4] https://csharpcorner-mindcrackerinc.netdna-ssl.com/UploadFil...
Unlikely Meeting of Minds: Lebed Meets the Donald (1997)
I guess it's up for debate whether some of these are truly "useless".

Surely, these LEDs are there to indicate that an electric current is reaching its circuit?
Whatever it takes for the architect to be able to sleep at night. Then during construction, the client can tell the builder to obscure the whole wall of windows with conference rooms and managers' offices.
>but hiring managers know they need people with a formal education

It's the exact opposite: as better tools are developed, there is less "formal education" required. In the same way that Web Devs are in high demand, and nobody needs a Computer Science degree to do that work.

The reality is, "data driven decision making" is something businesses large and small are discovering they need. And often times that sort of analysis requires a regression, or maybe something slightly more sophisticated. What these businesses do not need is some cutting edge algorithm or complex AI pipeline.

There is a ton of gate-keeping in this space, as the the PhDs learn that domain experience and business acumen are more important than a deep knowledge of the algorithms. A significant amount of the work is cleaning and processing the data. This is the way of the world. At the end of the day, most business problems boil down to inference and prediction, and most times you don't need to be incredibly precise; the easy 80% will do.
> For me, sitting in the dark is depressing.

I feel much better in a dimly lit room. Not pitch black but a twilight kind of darkness.

However, I am autistic so that may have something to do with it. I only recently realised this. Ever since I've lived on my own I kept my curtains closed and my room dimly lit, but I never made the link to my autism or sensory issues. It seems kind of obvious in hindsight.

For some reason things that make 'normal' people happy have the opposite effect on me, and vice versa. For example, socialising makes me feel depressed while the more time I spend alone the happier I am. I don't think I've ever felt lonely either.
I don't see the point if it is required by browser.

Another minimalist JS REPL powered by Chrome: Ctrl + Shift + J (Windows / Linux) or Cmd + Opt + J (Mac).