skysight-inc/HackerNews huggingface dataset:
Ask HN: Best way to learn new programming language and it's conventions?
Hello,
I'll give the tl;dr first:
tl;dr: Would like to learn C, best way?

So, I have been programming with some different, quite common languages, most of all - not a surprise - javascript. I... well, I don't really enjoy JavaScript, but it's what pays my salary and brings the bread to the table, so I can manage. I would like to learn some new language to improve as a programmer. I learned python quite "well" doing a school project using just python.
Now, after reading some articles and posts, I would like to learn C (unless there's a better option? Haskell? Rust? Lisp?). The new language should be somewhat challenging, and I would like to learn some new "of thinking".

Why C? Well, I do a lot of work in unix (linux/osx) environment, and instead of doing bash scripts, I maybe could (when needed) use C instead of Bash/Python.

Thanks in advance for all the replies, I appreciate it.
The Stadium is not only in Brasilia. All over the country they built stadiums for world cup that are underutilized or in places where there isn't even a league to play into it.
But if the high level accademics don't move to access on their own, government certainly has a large role in encouraging and incentivizing them to make the change, especially considering they provide a large amount of funding for academic institutions and research. Government action can certainly help us get there faster and more certainly than were we to wait for people to do it of their own accord.
Meter is already specified by fixing the speed of light. Seconds are defined in terms of Cesium atom vibrations.
Makes sense. If my tax money is going to a study, I should see all results and supplementary data.

Right now I'm researching a few studies that have been shown to be... "not 100% forthcoming"... thanks to some court documents, drafts, and collusive emails found in PACER. It has forever changed the way I'll look at any research, government-funded or not.
Server-Side Rendering doesn't always make sense
Yep ;D
and what good is that page when the font size is unreadably small?
>> Ligeti's Musica ricercata's (1951-3) first movement almost only A (the entire work explores having a limited number of notes).

Just to clarify regarding Ligeti's Musica Ricercata, each successive movement incorporates a new interval. First movement only deals with unisons (and octaves), the 2nd movement adds minor 2nds, and so forth.
Sure: for someone with a bank account and who rarely has a reason to make international transactions, that's true, mainly because WU makes bank-free international money transfers easy. But that would be true of anyone you don't personally know asking you to send money internationally.

But just because the majority of the time you see WU mentioned is for a scam doesn't mean the majority of transactions they are involved with are scams or fraud.
A mostly unrelated question, in case any metrology geeks are around: why is the Kelvin an SI unit?

Naively, there seem to be multiple approaches to derive temperature from other, more fundamental units. Like using the thermodynamic definition, 1/T = dS/dE, or using Boltzmann's law to approach temperature from the mean kinetic energy of gas particles. Are none of them suitable for precise measurement?
That would make sense, for the same reason men's vitamins don't have iron in them.
You don't need a think tank to figure this out.

We only have stuff because people work.

Paying people not to work means they won't make stuff.

People who remain working will have to be taxed heavily to pay others not to work, increasing the remaining workers incentive to not work.

Eventually you arrive at a utopia where we have nothing and no one works.
These look pretty good indeed. However, I think they are still making the HP 12C? If so, I'll probably go for that.
China I think.
Does anyone have the definition of involuntary manslaughter used for the case? My memory and a basic search show involuntary manslaughter to generally be quite different from this: http://criminal.findlaw.com/criminal-charges/involuntary-man...
> "jailed or fined dozens of people after peaceful but unsanctioned protests, and fined or detained worshipers for practicing religion outside state controls"

+

> "Torture remains common in places of detention"

=

Not going to be on my list of travel locations.
Ceci n'est pas une photo. :)
How does magma spend its time before it erupts?
Experienced Software Engineering Intern Looking for Internship/ Summer Job
Is anyone hiring Software Developer/Engineer, Technology Analyst interns or temporary roles in New York City area?
I didn't realize Mozilla was doing this. It breaks my heart. I don't really know what to think when even browser developers aren't safe from integrating the JS libs-of-the-moment into their debuggers.

At this point, I guess there's nothing left to do but accept our new JavaScript overlords. I was already forcing myself to accept Node.js and now it'll have to be that list of 7 other trendy things ("React, Redux, Immutable, Mocha, Enzyme, Webpack, Yarn").

This is definitely not the computing future I hoped for, but it's the one we have.
Bandcamp page with the music: http://recordings.irritablehedgehog.com/album/randy-gibson-t...
I'm curious how well this works. A big part of design (aside from visual pleasantness) is information hierarchy, in which layout (order/spacing/size/etc) of various pieces of content is manipulated (via css) for emphasis (or deemphasis).

When you turn off all the styles, you're still getting an information hierarchy (top to bottom) - but it's now being determined by the order of html elements on the page, not the layout the designer used css to achieve. These hierarchies were probably the same on the early-web, but not so much these days.
I didn't say North Korea had no culpability.
Criminals rarely self-identify. It's everyone else's job to do that.
It's not specific to Ask; any text post (as opposed to a URL post) will have grey text. I believe this is to encourage people to post links instead of text, though arguably now that Ask and Show have dedicated front pages they should get special treatment.
Read this comment: https://www.reddit.com/r/teslamotors/comments/5welnn/my_car_...
There's no good coming out of this case whatsoever. Just a very sad reality. The whole thing leaves me sore. A case like this shows the limits of the justice system I believe. It cannot deal with the complexity of the issue, and it has very little means to enact an outcome that will help anyone.
If you play "Four Violins" alongside Four Pillars you get quite a pleasing result.
Not a single comment here actually addresses the content of the article. Just pointing that out.
thats ok, you dont have any way of knowing. your post does kind of make me think you are someone who doesn't know what you dont know, but thats ok since im that person often too. i dont understand what about rhythm you are trying to explain. like, what is the question you are answering. that the moeller stroke / hard soft eighth notes (or swung, the two seem to kind of do the same thing in alot of cases) is imitating an echo? i guess it can sound a bit similar? i think it has more to do with establishing a hierarchy of beats, or creating a kind of forward motion. if you dont create a hierachy of beats, just like you do with bars, sections etc, you can lose some form, which gives you less shape to the piece. its also a product of the way some instruments are played, like guitar, where upstrokes are naturally weaker than downstrokes. i do not understand what you mean about causality. i dont hear it that way. i guess in most cases, to keep it simple, i hear it as tension and release, same as harmony or melody.
2017 GROWTH HACKS: OPTIMIZING ORGANIC MARKET SHARE
Everyone working with binary in the terminal should be told about about stty sane. Very useful.
see also: lots of techno music
>> There's no good coming out of this case whatsoever.

Would you mind explaining this further? I'm not sure I understand your position from your comments.
Tesla want a system that works all the time, even if that means it kills some pedestrians once in a while.

Waymo want a system that has a zero accident rate, even if that means it can't operate in the rain.
It's important to remember that Assange is not simply operating a content-neutral distribution platform. He has the ability to time or suppress releases at whim to influence global politics. And so his whims are of great importance in judging the risk-vs-reward of Wikileaks.
I'd put money on having this over turned. It's a pretty long stretch to call this manslaughter based on the definition of the law (linked elsewhere in this thread).
Also, were you able to find any papers in number theory? That's a huge gap as it is one of mathematics's primary subfields. Analysis seems to represented, as well as topology (via "geometry").
> The DNC leaks certainly had a lot of missing emails that may have served to provide context for conversations that were used as "evidence" of misdoings.

Where is your proof of this? I'm not being flippant. You take an unsubstantiated claim and argue against it with an unsubstantiated claim.

Note however, that the unsubstantiated claim that Wikileaks releases all materials without editing or redaction is extremely well-vetted, and the belief that they do redact is, so far as I know, only held by you.
The planet orbits are approximately elliptical. There are deviations, precisely due to the mass of Jupiter, as well as the other planets. See https://en.wikipedia.org/wiki/Discovery_of_Neptune#Irregular... for a practical example.

To the extent that the planets orbits can be considered elliptical, they orbit the barycenter of the entire solar system, including the Sun, Jupiter, and the other planets. Where that's located relative to the Sun-Jupiter barycenter changes a bit, as the Sun-Jupiter system as a whole orbits around the common barycenter.

But we can make some estimates for how big that offset is. The Sun-Jupiter barycenter is offset from the center of the sun by M_{Jupiter}/(M_{Sun} + M_{Jupiter}) * R_{Sun-Jupiter}, here M_{X} is the mass of X and R_{X-Y} is the distance from X to Y. At aphelion, Jupiter is at 8.16e11m from the sun according to https://en.wikipedia.org/wiki/Jupiter, and its mass is about 9.5e-4 that of the sun, so the offset ends up being about 7.8e8m. The radius of the sun is about 6.96e8m, for comparison (according to https://en.wikipedia.org/wiki/Sun).

OK, what about the other planets? Saturn is about 1/3 the mass of Jupiter and about 2x further from the sun. So its impact on the overall solar system barycenter is about 2/3 that of Jupiter. Neptune is about 18x lighter than Jupiter and about 6x further away, so that's another 1/3. Uranus is about 22x lighter than Jupiter and about 4x further away, so that's another 1/6-1/5. The other planets don't really matter for this calculation with the number of significant figures we're using, because they're both lighter and closer in (e.g. Earth is about 1/316 the mass of Jupiter and 5x closer to the sun, so its impact is about 1/1500 that of Jupiter).

So if Jupiter, Saturn, Uranus, and Neptune all happened to line up the barycenter of the Sun-Jupiter system would be about halfway between the center of the sun and the solar system barycenter. To the extent that they don't all line up, the separation between the Sun-Jupiter and overall barycenters will be smaller. And if Saturn and Neptune both line up on the opposite side from Jupiter, that puts the solar system barycenter pretty close to the center of the sun.
Yeah, I've found that generally to be the case with superficially ridiculous sounding cases. Google the details of the famous 1990s McDonald's coffee scalding lawsuit. It wasn't just hot coffee. It was PWR nuclear reactor core hot coffee that caused serious third degree burns.

This girl sounds like a psychopath. Gender stereotypes keep a lot of people from seeing it. Reverse the genders in your mind.
Shape-shifting ‘4D’ printed objects could pave the way for outer space structure
The libraries list is a little misleading. For clarity:

React - the base JS framework

Redux - store/state management

Immutable - a library for making data immutable in JS

Mocha - a testing framework - dev only, not used at runtime

Enzyme - a testing tool complimenting mocha - dev only, not used at runtime

Webpack - a build tool for assembling/minifying the code - dev/build step only, not used at runtime (though will affect performance as it determines the structure & loading of the code files)

Yarn - a package manager! Not sure why this is even​ listed at all really, not very relevant in the article. Possibly the author is just a Yarn fan and wanted to include a plug - obviously dev only.

Summary: 3 are used, the rest are dev tools, not really "seen" by the end user.
That is idiotic. The state forcing a business to accept a customer no matter their records?
There are photos of him on others parts of the website
What if I told you, Scala compiler can understand SQL queries?
Moment.js is good, I understood everything with basic JS knowledge and coming from python
If you don't like low-contrast, perhaps check out jwz.org or angersock.com
I'm not sure why it's legally relevant that this happened over text message — isn't this just a specific manifestation of speech made to convince someone to kill themselves? Why is this different than e.g. finding someone on a bridge and telling them to jump?
On a side note, Remittances are a huge boon. The largest source of foreign direct investment(FDI) (by far) in India are remittances[1].
Even today, after many years of inflation, the PPP of my salary(affording me a middle class status here) here is 10-20 times of what it was,and would still be, in India.

[1]https://en.wikipedia.org/wiki/Economy_of_India#Remittances
I think the semantics are good too, but it is still problematic. And note that selecting doesn’t really enhance contrast on Macs.
Migrating from DynamoDB to Postgres – Why and How
The contribution of Jupiter to the overall solar system barycenter is about the same as that of Saturn and Neptune combined (see numbers in https://news.ycombinator.com/item?id=14576751 ). So I guess it depends on how you define "main"....
This is outrageous. The defendant is a child. Children do stupid things. Especially in a society in which 3/4 of the people believe that there is a "better life" after death, is it any wonder she said the things she did? Up to 20 years for a minor for involuntary manslaughter. How is that justice? Adult murderers often get less.

Anyway, it's a great argument for using something like Signal with expiring messages on.
I've always had mixed feelings about Assange going back to the beginning of WL. While I take my hat off to what he has claimed is the purpose of WL, I never quite trusted Assange the man. It always felt to me like the kind of power that WL has needs to be wielded by a person of great moral integrity and Assange never struck me as that kind of person.

Information is powerful and it can be used both to force transparency and it can be used as a weapon. My impression is that Assange views it more as a weapon that he can use against others.

Nobody can operate effectively in a 100% transparent environment. I was living overseas when WL released the State Department communications and most of the information released pertaining to the country I was living in revealed little of noteworthiness. It was all tabloid level stuff where some ambassador made a dismissive or insulting comment about some government official in a report back to Washington.

How would any of us like every email we've ever written to be put into the public domain? If we were doing nothing illegal what purpose would it serve to let everyone know that I hate my aunt's cooking and tried to get out of a family dinner in June of 2013? The only thing that information would do is embarrass me and strain my relationship with my aunt. No public good comes from it.

And that's where I see many of the WL releases being. Many leaks seem to stir up trouble where nothing illegal or malicious is actually occurring.

So, an organization like WL has a great responsibility. I applaud them for uncovering deceit and illegal activities, and I think we need some outside force doing it, but they also need to use that power in a way such that they don't try to prove their own importance by releasing information that is merely sensationalistic in order to heighten their brand.

I've never trusted Assange to be the kind of person who can make that distinction. WL would be much better off in the hands of someone/people who were far less concerned about elevating their own notoriety and were able to better able to separate the mission of WL from the politics.
While I agree with you in regard to wages and their employees treatment, I was referring to the way monied people view the store and those that shop there.
The Scarface of Sex
From what I've read about the case it was the fact that he got out of the car (i.e. decided not to kill himself) and she told him to get back in. She knew he wasn't fully in control of his actions because of his mental state and so telling him to get back in, whether she wanted him to die or not, was reckless. IANAL though.

Any lawyers here who could explain the details of how they satisfied the elements required to prove involuntary manslaughter?
So wrong. #191919 is very high contrast. Many/most sites use #333 for the text most of us perceive as "black". You can also check contrast ratios on a number of sites and you will see that #191919 & #fff make a pair that pass all guidelines at all text sizes.
Antarctica Is Melting, and Giant Ice Cracks Are Just the Start
I am not readily finding that. Can you provide links?
To be fair that is partly its own population to blame, some people will even looking at you funny if you're not in the public sector(personal experience, and not just me).

It was pretty obvious that the stadium would be a big failure, all stadiums outside of major football cities are(Cuiabá, Manaus), even stadiums in big football cities struggle to negotiate with clubs and end up empty most of the time.

I just can't agree that Brasilia was built to escape the country's population, it was built just to overspend abundant injection of foreign investment.
Ask HN: Hottest trends right now?
I can't really seem to find a place which compares different technologies, such as Django, Spring, Phoenix, Rails, et cetera. What are the hottest trends right now? If you'd be starting a new startup now, or a larger project what would you use? Would you use AWS? Azure? Something other?
Except he was in the UK for almost 2 years fighting the extradition to Sweden. The whole time he was saying the Swedish extradition was "actually an attempt to get me into a jurisdiction which will then make it easier to extradite me to the US" as if the UK is any less likely to cooperate with the US. If the US wanted him they could have asked for extradition from the UK during those 2 years.
>> Up to 20 years

Up. To. Pretty sure her age (and other factors) will be taken into account when a sentence is passed.
I don't see Amazon buying Instacart. I also didn't see Amazon buying Whole Foods. Maybe Walmart saves this sinking ship.
*FULL* HTTP/WebSocket Server Framework, C++11 Header-Only, Beast and Boost.Asio
The Beast library now offers a complete server framework as an example you can build and run: https://github.com/vinniefalco/Beast/tree/master/example/server-framework

Its got these features:

* Comes with a WebSocket echo port handler (sync and async)

* Comes with an HTTP port handler (sync and async)

* Configurable PortHandler concept for user-defined behaviors

Create your own "ports" by writing a class to take ownership of sockets from incoming connections, plug it in to the server framework, and then publish it as open source so other people can use your ports!

The HTTP ports that come with this example are extensible, defining a Service concept which handles HTTP requests. A Service List aggregates Service objects, and the implementation gives each one a chance to handle the request in turn (kind of like a router, but more powerful!) The example comes with two services:

* file_service serves files from a path on your system, like a web server

* ws_upgrade_service lets you accept WebSocket connections from the same port as your web server and hands them off to the websocket port handler!

As with PortHandler, you can write your own Service types and plug them into this extensible framework, then share them with other people. For example you could implement a simple Troll-box style WebSocket chat Service which plugs right in to the framework and release that as your own open source library!

This is all built on top of Beast to show off the power of the library. People have asked for higher level functionality. You spoke - we listened! Now you can create a richly featured HTTP/WebSocket server in just a matter of seconds by cloning the server-framework example!

Beast: https://github.com/vinniefalco/Beast

Documentation: http://vinniefalco.github.io/beast/index.html
Same in Canada. But by "basic" it really is basic. No online banking, no chequing. In-branch transactions with a teller only!
There's some difference between obsolete--a method that gets replaced by an improved method later on--and just plain wrong.
Korean Web Hosting Company Agrees to Pay 397.6 BTC to WannaCry
Not all poor people are homeless...
TLDR: The company’s CEO is bankrupt because of the attack, and this is a series of public announcements that describe how he's trying to recover from the ransomware.
He couldn’t afford the price that the hackers were asking and is selling his company to afford the ransom money.
He already paid a portion of it and is asked to pay the rest of it for the remaining encryption keys.

The announcements are published at http://notice.nayana.com/ but they are in Korean and the website goes down frequently.
I guess that's the precedent set here. That there is no difference between saying it in person/phone/text.
In the Middle Eastern and Islamic Studies section, five of the ten cited papers are about Turkey. Another is about representation of Islam in the Australian media.

This... doesn't seem like a very representative selection of 'timeless' papers.
Man, I wish presenters at conferences would learn this.

Really, just that they'd learn that the contrast range on their laptop is huge compared to the contrast range on the projector that everyone else is looking at, especially when you're far from the screen.

Surprisingly (to me) I saw really-light-blue-text-on-white as well as the hipster-dark-colors-on-black at the last conference I was at. Neither was legible...
So - unless anyone has more trustworthy sources - Assange has offered his testimony for years as long as they would meet him in the embassy and Sweden has refused.
Honda NSX vs. Audi R8 V10 vs. Porsche 911 Turbo – Chris Harris Drives
This is indeed the reason.

When making ID cards for my children, I was too lazy to also apply for a passport at the same time. Applied a few weeks later and the photos got rejected because they were the same as the ID ones. According to the clerk, they can be identical only when both submissions are on the same day.
Even assuming that Amazon breaks the Instacart contract I'm not seeing the downside for them. Every single grocer should be more eager than ever to partner now that Amazon has shaken them to their core. It makes more sense for everyone to outsource delivery to Instacart than to have every grocery chain or retailer try to recreate it on their own. The scale of all the non-Amazon grocers should keep costs down.
I feel the opposite way. WL seems fairly harmful, but Assange is a hacker, he's one of us, taking on state-level actors. I kinda have to root for him a bit...
what about apple gift cards? heavily used by scammers. are you attacking Apple because malicious users abuse their stored value cards?