skysight-inc/HackerNews huggingface dataset:
> However, what does the library function return to me as arrays it allocates?

Depends what the library function does of course. If it's shape preserving (e.g. if it's a map over the array), it'll generally preserve the axes of the input array.

> What if I do an outer product of two arrays with different base indices?

You'll get an offset array indexed by the product of the axes of the input:

julia> A = OffsetArray(1:3, 0:2)
OffsetArray(::UnitRange{Int64}, 0:2) with eltype Int64 with indices 0:2:
1
2
3

julia> B = 4:6
4:6

julia> A*B'
OffsetArray(::Array{Int64,2}, 0:2, 1:3) with eltype Int64 with indices 0:2×1:3:
4 5 6
8 10 12
12 15 18

> Whatever your answer, I suspect it is more cognitive overhead to remember than "always 1 based" or "always 0 based".

Sure, but the real point here is that in most situations, you don't actually care what the axes are, because you use the higher level abstractions (e.g. iteration over elements or the index space, linear algebra operations, broadcasts, etc.), which all know how to deal with arbitrary axes. The only time you should ever really have to think about what your axes are is if there's some practical relevance to your problem (OffsetArrays are used heavily in the images stack).
All nations are at least a bit nationalistic. If they weren't at all nationalistic, they wouldn't be nations.

Restrictions on the free flow of people are not a binary decision. Countries in the Schengen Area which have almost completely given up the ability restrict movement between their territory and 25 other nations are not restricting the movement of people as much as say North Korea which doesn't even let most of its own citizens travel abroad.
I expect to see that demand shrink. If I find his behavior lately to be weird, I think that other people will as well. I'm also perfectly happy to vote with my dollars.
That’s a right kind of wrong... and could work with FEA tensor too... ;)
whiteboard is more useful for design than code, i give them a computer to code on
It's amazing that Python 3 was 4 years old when this post was made and yet saying "Python" was still implicitly assumed by basically everyone to mean 2.x.
I take the opinion that people should have the option to round division (and compute remainders) however they want: down, up, to zero, to nearest (with different options for breaking ties).

https://github.com/JuliaLang/julia/issues/9283
If going Oracle played even a minor part in Amazon's success, then it was a fantastic call, even if now they have a migration task on their hands.

Both of these things can be true:

- we succeeded by betting the farm on a single vendor

- now we need to cut that dependency
Consistency across products - their PureOS runs Gnome.

c.f. Canonical running Unity on desktop and phone.
Perhaps both of you are right in your own way.

It is important and valuable to take time to reflect on how your behavior may have led to the negative outcome and think about how you could better yourself for the future - but take care not to be too self critical!

Many people spend too much time in self pity and sadness over this kind of loss (I'm certainly guilty of this). Once you've done the necessary self-reflection - please start to move on. Hanging on to idealized memories of "we" takes you down a road of pain and not towards the future. Let it go. If "negative reappraisal" helps you let go - when you are ready - so much the better.

Life is short, and your best "dating years" are an even shorter span of time - use them wisely - find someone worthy of you and enjoy your time together.
Agreed, misleading title. I know I've always functioned best at 9 hours. High school and early college, I remember my schedule: 9 hours. Mid-20s to mid-30s is vague to me, but after that, my partner says I always slept about 9 hours, and I still do. So I read this article with interest, but it says nothing to my situation. Shrug.
There seems to be broad agreement for the need for a set of software crypto implementations with a straightforward synchronous, static dispatching API. The discussions seem to be mainly around code organisation and plumbing that API as an underlying implementation used by the dynamic dispatch asynchronous crypto API.
But is there not a large body of work refuting that idea in the Mr. Plinkett reviews on Red Letter Media?
The great problem with the Xi regime shutting down free expression is that it will get into an epistemological bubble and never learn about problems and mistakes that it doesn't want to know about, and as a consequence its decisions will be more and more out of touch with reality.
Assuming it's not always-on.
In what context do you use it? I use a “mod” operator all the time for floating point calculations, and have never come across a need for the other one.

As one simple example, it is frequently useful to map floats into the range [0, 2π), but I have never once wanted to map positive floats into the range [0, 2π) while negative floats get mapped into (–2π, 0] by the same code.
In 1978, China had about the same GDP per capita as India. Today, China's GDP per capita is more than double that of India. China's economy has dramatically outperformed many democracies over the past few decades. Whatever you might think of the Chinese regime, they're clearly doing something right.
That equating homosexuality with being an alt-right troll is completely disingenuous to the point of being insulting.
But that's not the argument the author makes. He is worried about the apps getting compromised at the platform level.
I feel like I’ve made my thesis clear, and I’m not willing to argue it further. My apologies.
17 Alternative Ideas to Promote Your Ecommerce Store
David reached out to me around 5 months ago with a demo (it was a sales pitch) and I was thoroughly impressed! Very happy to see the product get even better. Good job to everyone at Retool! Will be signing up as soon :)
The threat model is "the backend server has a security flaw and gets exploited, dumping a bunch of information about my chats" or "the backend server is run by a company that wants to use the contents of my messages for analytics and I don't want that" or "a rogue employee with access to databases but not enough access to ship rogue code wants to read my messages".
I think it's because such banning made it abundantly clear that such behavior was not welcome. So that's more to do with social norms, I guess.
In 2002, only about 5% of incarcerated felons in the US received a trial[1]. The other 95% pleaded guilty, likely in the face of overwhelming pressure, insufficient legal representation, and the threat of many more years in jail if they took their case to trial and loss.

1: https://www.bjs.gov/content/pub/pdf/sc0204st.pdf
What about the surrogate dog "mothers"? I imagine that role is a pretty disgusting one to ponder.

With a mortality rate as low as 66% for a full litter, one has to wonder how realistic our dreams of human cloning really are.
It's worth pointing out that you can in fact forward function calls using GCC builtins, although not in clang without adding some assembly.

To quote the API documentation on Constructing Function Calls: "Using [built-in functions], you can record the arguments a function received, and call another function with the same arguments, without knowing the number or types of the arguments." [1]

[1] http://gcc.gnu.org/onlinedocs/gcc/Constructing-Calls.html
Definitely post a link! Are you doing stochastic modeling, and if so how do you structure the input data? I’d love to use similar techniques for other data modeling.
AMP promises me that the site won't load.
The Evolution of the Big Falcon Rocket
Some of the smaller tactical nukes might would work quite nicely in this regard.
Babel 7.0 Release Candidate Announced
Right?

Ask me about past projects. Want GitHub examples? Fine. But whiteboard coding some non-real-world problem?

I get that companies need some sort of filter, but whiteboard coding is not the answer, IMHO.
Interesting. My experience was in the US, and I would have kept that 0 unless my professor was feeling _very_ generous. I don't think it would be completely unheard of to have a professor with a policy like you described, but I never ran into it.

We wouldn't have been forced to drop out (at least not due to that exam in isolation), but the 0 would have been considered as part of our final grade for the course.
You lose the ability to bring in additional co-workers into the discussion for important decisions by making it private.
Use two VPNs sequentially.
Much easier to just buy an index.
Thieving isn't a good life -- for one thing, thieves lie awake at night worrying that someone's going to steal their stuff.
I only ask that you stop working on this shitty preview system you call AMP. I don't want preview versions of websites. I don't want broken pages that fail to load.
I don't trust google.com to host sites that aren't google.com.
The article draws very big conclusions out of thin air, four pages of text, two pictures, and a pretentious DNS record.

On the opposite side of the spectrum of journalism was the NY Times article from earlier today, about the Arizona aquifers. Great photography and research. Awesome Web presentation, too. Cheap journalism with big pretenses is a scourge on our society.
There's TunSafe, BUT with caveats: https://news.ycombinator.com/item?id=16515637
I appreciate Matt Levine's columns too, but the amount of information needed is relative to HN's capacity to discuss a topic substantively. In this case that capacity is unusually low, so the amount of substantiveness the article needs to provide is unusually high. The proof that this one didn't get there is in the pudding of the discussion that resulted.
Then why does Google constantly think I'm a city over? If their killer app is location search they suck at it.
Yeah, I don't buy that. If Stormfront and Daily Stormer can still be up, then there can't really be any credibility to that argument.
Which is not an unfair assumption given they do remove some things.
Well, I have indeed spent more time thinking about this than is probably healthy, but here are some nice edge cases to think about:

- https://github.com/JuliaLang/julia/issues/14826

mod(-eps(), 4.0)

- https://github.com/JuliaLang/julia/issues/17415

fld(1.0,0.2)

- https://github.com/JuliaLang/julia/issues/3127

mod(1.0,0.1)

- https://github.com/JuliaLang/julia/issues/3104

mod(0.95,0.01)

I'm pretty sure there are more issues.

re: mod 2pi, typically it is most accurate to reduce to (-pi,pi) (i.e. division rounding to nearest). Also to get it accurate you need fancy range reduction algorithms, hence julia has rem2pi
https://docs.julialang.org/en/stable/base/math/#Base.Math.re...
Udemy? It may not be a MOOC though but what's in a name if it serves the purpose... Also, O'Reilly Media is good. The only (major) downside is that they are not free (but largely affordable, methinks).
An object is just a struct with a well-known layout. What you cannot do with C is necessary to offer the same type guarantees.
great article! it would have been nice to have a comparison of yays vs nays, like for example 67% of engineers say nay, whereas 50% of companies on key values do have some sort of whiteboarding in their process. with the caveat of course that the kind of companies that talk to you (keyvalues) are probably more progressive anyway so there is selection bias.

but it very much does seem like whiteboarding is on its way out.
It could be worse. 10 years ago the California judiciary spent over $2 billion for a case management system that never worked.
That's a security concern he feels he can address for himself if Signal is made available to him on F-Droid. But for the overwhelming majority of Signal users, there isn't even in theory a security benefit, because they're exposed to their platform vendor no matter what Signal does.

Signal has decided --- sensibly, I think! --- to focus on the needs of the "normie" users. DeVault disagrees with that decision. He is welcome to do so, but it was Signal's decision to make, not his.
I too, have found error handling in Go to be quite good even if it is verbose. I like knowing where exactly an error has come from and that the language makes me think about how to handle them before continuing.

> ...but not annoyed by errors they don't care about. Telling which from which is highly contextual, and the language rarely has that knowledge.

Isn't this where the programmer's knowledge + a little thinking come into it? With experience you come to understand what kind of errors certain functions will return and then you spend a little time thinking about the context this error may appear. With this you determine whether the error has to be handled or can be safely ignored via a '_'.
It's equally illegal to perpetrate a hate crime on anyone of any race, nationality, gender, etc. It's a bit harder to do it on people who are not in a systemically-discriminated-against class, but if you find a way then it's a hate crime like any other.
AMP is just another reason to block third party scripts. If your page is blank, I'm going elsewhere.
They announced recently that they will be about a month late for the dev kit on their Matrix channel. Not surprising, and if they are only one month late I would consider them on time :)
Not really. Imagine taking a rectangular region of interest from an image. With offset arrays, you can use the original indices if that suits you. I’d say that’s strictly better than using always zero based offsets.
Well, when you first start your job, you won't really know the people you are working with so I don't see how it is that much different.
Not saying 9 hours isn't right for you, but if you track yourself using a device like Fitbit, you may be surprised by how much less you're actually sleeping.

I used to equates 8 hours of in-bed time to roughly 8 hours in sleep but found that unless I prepare for an ideal sleeping condition beforehand, it was more like 7.25 hours.

Now I try and set an in-bed goal of 8.5 hours so I can sleep roughly 8 hours.
The image bounding box labeling widget looks like a hidden gem!
This tool would shine where the dataset has sensitive information or the job is too specialized to use on Mechanical Turk.

https://docs.tryretool.com/docs/tagging-images-for-machine-l...
It's just marketing spin on what incubators and many early venture firms typically do, except your goal is particularly to exploit people from around the world who may not yet be savvy to how the SV system "works."

And before you object to the notion of exploitation, let's just contrast your quasi-moral claims about loss to "the economy from the loss of ideas and wealth they could have produced," to the rather huge liberties you'll take with the people who you'll be supporting. So are you really concerned about the grand loss to the world of people in whom the world doesn't sufficiently invest, or are you most concerned about maximizing venture capital? These goals are in logical conflict.
Yeah, no. People will see the vile toxicity right up front (it's not hidden at all there), and they'll leave in 5 minutes.
It's similar here in Sydney, where Mobike is the last company standing on the wreckage of ofo, Obike and ReddiGo. The local lunacy is not $50 fees per bike, but a requirement for cyclists to wear helmets or get slapped with $300+ fines, which is just not compatible with dockless share bikes.

Some personal bloggage on the topic:

https://gyrovague.com/2018/05/19/mofobikalypse-mobike-is-syd...

https://gyrovague.com/2018/02/19/mofobike-a-personal-compari...
Can a mod change the title to something less misleading please?
> People who do well in these roles typically have a brain that works in a certain way.

You know this how? Intuition?

People have all different kinds of backgrounds and brains.
Germany consistently places higher than the USA on international press freedom indices. The press, in general, is a protected institution there, whereas here, blowhards like Trump do their damnedest to intimidate journalists out of doing their job, which is to expose the dealings of government to the public.

And you don't have to read Hackernews for long to see how terminally fucked and anti-freedom the U.S. justice system is. Things like plea bargaining, money bail, and systemic racism in law enforcement and criminal proceedings make U.S. "freedom" illusory unless you're white and wealthy.

As for democracy, it's well known that votes in Congress can be easily bought in the US, far more easily than in Germany's parliament.
I believe that was parent poster's point, that there didn't seem to be much that US could have done. Hence it would seem suspect to draw much of a conclusion from as proposed by GP.
Joe Duffy's series on the Midori system goes into great detail about the problems in various error-handling scenarios and how they went about dealing with them: http://joeduffyblog.com/2016/02/07/the-error-model/
Tesla board to meet about going private, may ask Musk to recuse himself
Censorship of legal speech isn't the answer, ever. I can't wait for SV to find it's compass again and return to the love of free speech. That said, I do think we need a solution to have our open platforms where people can avoid certain things they find toxic. I don't want to read ideas from certain people, so letting the end user decide is the best solution.
I’m no more saying it was a bad idea at the time than Apple basing iTunes and later the App Store on WebObjects. If I’m consulting a startup that needs to move fast and get off the ground, I’m not going to tell them to worry about “vendor lock-in”. I’m going to tell them to use a cloud provider, use whatever “proprietary lock in” technology they need to to help them move fast and get funding and later if they grow big and they see thier needs change, then maybe suggest an alternative when it makes sense to hire a bunch of internal netops people to babysit servers.

But get a developer who knows there way around AWS/Azure and hire a third party company that can do some of the heavy lifting will save a lot money.

Yeah I consider myself one of those people. I think I can go toe to toe with most “AWS Architects” that only know netops especially since most of them don’t know development or devops on AWS.
> They are better at capturing thought process, high level understanding, system architecting ability, and a candidate's communication skills.

If that were the case, ask me about a past problem and my solution and to defend it, not the proper way to invert a b-tree.
I bet he thinks he is sick of it. But that doesn't excuse his behavior. Call me old fashioned, but someone with so much power and privilege should not be acting the way that Musk has been lately. These are just the basics we're talking about here. One wouldn't tolerate that kind of behavior from one's child, so why is it okay when our captains of industry do it? Part of being an adult, let alone one of the most successful people in the world, is accepting the fact that life is not always fair. Musk needs to grow up and get off of Twitter. Simple as that.
I love the idea there. I know I and many others were taught coding by being plopped in front of an empty editor window.

If I had to design a curriculum that wouldn't happen until very late in the process. Start by copying, then modifying, then adding and subtracting elements, then get to wholly original creation.

I also imagine this would cut down on cheating. No more empty page terror, or panic to grab a solution.
How is this freedom attributable in any direct way to restrictions on "hate speech"?
The author is a delusional crank. He is very deliberately ignoring the very cogent arguments for the Signal architecture in favour of some specious moaning about how play store is subverted by the NSA.

If you want a federated / onion-routed message transport, start coding. You can use the signal ratchet mechanism if you want, you just can't call the resulting shibboleth Signal. Distribute only by obscure methods, easily subverted by users installing malware versions with higher search rankings. Then stand back and watch as hardly anyone used your app.
Characterizing this kind of thing as just "I don't like what you said" is not being honest with your argument.
My closing keynote from the second Decentralized Web Summit
ANOTHER HOT BEACH DAY
Without knowing the intended use case of the code, the edge case behavior in some of these cases is pretty meaningless. Different behavior might make sense in different applications, and in many applications the choice is largely irrelevant. Whichever one you choose someone who wants the other version will have to work around it.

These examples don’t really have much bearing on the general usefulness of “remainder” vs. “modulo” though.
> by 4th grade I'd be teaching about slavery, racism, etc, and the kids would be then learning about a concept that was utterly nonsensical to the non-racism-indoctrinated kids. So I'm wondering what would happen if I never taught about racism at all.

Assuming these kids are in the U.S., then you omitting the topic from their 4th grade class would only omit a tiny portion of what they encounter in their lives. If my 4th grade teacher omitted something from history class, I don't think it's possible that I've never learned about it (assuming it has some significance).
Completely misleading title: "sets record low price" indicates that it has done something, but the article says it has not been built. This, it has not set any price. Someone has projected a price.
But because of those, other groups whom the Nazis and other alt-right groups would have targeted are more free to participate in the conversation.
As a Signal user, I just wish I could make my own personal fork of the desktop app and still talk to everyone without having to use the beta servers and fear of having access cut off, because the visual design and UX of the desktop app is absolutely atrocious. And the latest update that was pushed a few days ago was a massive step back; the bloated UI now looks like some iOS app from 2007. It's just embarrassing. And don't even get me started on the lack of a search function -- something the mobile client has.
For this reason I don't do living coding sessions. People have asked me `why` which I politely say the answer is no. They seem to like the boundaries I set for myself and my project's more than some sort of white board.

Yes, I've been turned down for jobs over the white board but I've had more positive results than negative.
I could see using a secondary core as a watchdog in an embedded environment-- if something went too wrong, perhaps the secondary CPU can either get some valuable logging data or stuff the system with code designed to restore it to a controllable state.
Exactly.

During my recent job search I was asked many questions I didn't know the secret algorithm to, but if those companies had given me the problem ahead of time and allowed me to research it -- just like what happens in real life -- I could have coded solutions to all of them.

And if you're worried about people just plagiarizing existing solutions, have them talk through it, as you say. Should be fairly clear if they understand each line or not.
The DS's original domain and another subsequent one, was deleted or taken over by the registrar, I thought?
> Andy Lutomirski was generally favorable as well, noting that he has tried to carry out some similar changes to the cryptographic code in the past. Support for hardware accelerators should, he said, be built on top of Zinc; code needing that support could then use the more complex API that would be required, and the Zinc implementations could be used as fallbacks when acceleration is not available or practical to use.

This seems like a flawless approach. The Zinc approach seems to be preferred (by those involved) for simple software-only use cases, and the more complex use cases seem to be composed of operations which Zinc could implement.

It's good that they're not just going to plop the thing in there in a degraded state (with probably worse performance [and DoS resistance] than the current out of tree/dkms distributions of wireguard).