skysight-inc/HackerNews huggingface dataset:
How to select an ideal array size in C?
So far I've seen so many pieces of code where arrays are declared with a seemingly random size, I mean, the size doesn't seem to have a specific reason, but it seems more like a magic number.
How do I select the size for my arrays? Is it just about putting on a big number? I still don't get it, and I feel like if I knew that, my code would get a lot better.
Thanks in advance.
But of course, the great thing about it is that the Chinese then get to send that same ballistic missle back to us.

Kind of a nice way to start to create some trust - it’s not a one way affair.
Introducing Docker Desktop Enterprise
Technology is designed as a hyperstimulus. The real world (suffering aside) sucks the same way fruit sucks compared with candy.
No, there’s no inherent need for every variable to allow a nothing.

There is a need for a nothing value in many cases and languages without an implicit null, such as Haskell, F# and Rust, employ an ‘option’ type. It’s a dedicated type that either contains a value or nothing. It forces you to declare when you expect a potential null and to check for it.
A modern browser is effectively on par with an Operating System complexity-wise. You need to implement a huge number of APIs (many of which are security-sensitive), you need to have a good UI, you need to be super fast while making all that play together nicely etc...

If you don't have a large team of developers and a few millions in the bank you basically don't have a chance.

As Google keeps pushing more and more features in the browser the bar keeps getting higher and higher. I'm actually surprised that Mozilla still manages to mostly keep up, but since it's mostly running on Google's money it's still not quite a relief.
Absolutely. But I for one would rather live in a world that had the diversity of both private and state-funded art, each with their own biases. Surely that's better than the single influence of the market?
I would not put philosophy in that list though. I've noticed those arguing about politics often add philosophers' quotes or ideas in their own vague arguments.
Why we choose rollup instead of webpack. We think it's not for everyone
The ET Interviews: Anti-Authoritarian Technology
Firefox is improving by leaps and bounds every day.

But the market is not a meritocracy, as much as some people like to pretend it is. Success in the market is much more to do with things like marketing, momentum, inertia, and general opinions. All of these things are favoring Chrome right now, and Mozilla is not in a position to turn this around.

And you may not have noticed, but being popular doesn't actually give you money when your product is free and features no ads or tracking. All you are saying is that "google should give mozilla more money". How do you suggest they diversify their revenue stream?
The sad things is that even if you received and apology, it would mean nothing, empty words repeated over and over and over.
Its distinguishing feature is that it can read EPUB books. I'm not entirely sure why you'd want that in the browser - I think someone looked at how all browsers these days have native PDF support, and thought, "I wonder if we could squeeze something else in there".
How to work with millennials when it comes to shopping
I gave money to these people, and I don't think it's a scam. They're just begging by another mean. Often I just assume they don't have the chop to just ask for cash, or want to ease me into giving. I just ignore their made up story and give them change if I have some. It's charity, not "being scammed".
What even is Tumblr at this point? Who would want to blog on a platform that restricts your speech so heavily?
And if it isn't "on sale", just put the course in your wishlist and you will get an email containing the discounted course within 3 days. Hasn't failed me yet
Japan has spent tens of billions to buy hundreds of F35 money to cure 20 phobia?
Ask HN: What is the best practice for reading large pieces of C code?
How do I read a large piece of code that has a lot of header files and source code files? Is there any method or is it just about reading it one by one? How do you do it efficiently?
Thanks in advance.
Luckily we can trust banks and medical data collectors!!!

https://mobile.abc.net.au/news/2018-12-03/commonwealth-bank-...

Oh yeah. Right...
FWIW, I use Firefox on High Sierra and I don't think it sucks at all.

About noscript:

Recently I was playing with it, in an attempt to curate which site is allowed to make connections to which domain but I discovered that I cannot do it on a per domain basis and every whitelisted entry was applied everywhere. Apparently that was something that could be configured at noscript's ABE panel which doesn't exist in the latest versions.

If you want per domain rules I would suggest trying umatrix instead.
I complained here when the Windows Subsystem for Linux was released that Microsoft was capitulating to Linux, giving customers a migration path away from Windows. That Microsoft had lost confidence in the homespun Win32/Win64/UWP/... API's to court developers. I caught some flak for that, but I was right.

Here, again, we see Microsoft signalling surrender in a HUGE market. Why should I be troubled to run Windows 10, again? Where is the technical distinctiveness in rebranding Chromium? There is no advantage to Microsoft in doing that. It's less disgraceful to keep building out Edge than to rebrand Chromium.

I'm not claiming Microsoft has done a great job. Edge was another mixed bag in a long line of mixed bags on the Web front from Microsoft. But they did compete for a really long time with no shortage of technical distinctiveness. Active Desktop, in the right product manager's hands, could have been a really amazing system. IE6, when it came out, was technically very awesome, doing HTML5-like functionality 7 years before the other browser vendors.

I'd wager open sourcing Windows is next because they're not doing the brand any favors; they'll dump it and move on. Microsoft will focus on Azure and SaaS apps or whatever new market crops up and we'll all be poorer for it.

Windows 7 will be my last Windows unless some amazing direction change happens in the product. I'm just waiting for support to end. Debian Linux, here I come!
You do know that it's not a reskin of IE, and the rendering engine is different?
> Firefox inevitably shutters it's in-house efforts

That is Firefox. Shuttering that kills the project. It's like, I don't know, Tumblr deciding to ban porn or something.
If face to face, it is on a white piece of paper. If it is on skype, I just ask them to open up any code/text editor they want. Also, I allow them to use whatever resource they want. And yes, in both cases I would be watching them, the reason being I want to see the way they think and how they reason.
WHY AFRICA HAS BECOME a DUMPING GROUND FOR TOXIC WASTE FROM EUROPE
Cars had to "disrupt" their way into getting a bunch of infrastructure built for them too; they weren't sitting in factories until streets were filled with parking spaces and traffic signs.
Is Chrome really that far off from IE on market share when the MS anti-trust talk started?
I would recommend looking Haskell's Maybe and Rust's Option type to get a better idea of how this can be solved -- and how this article isn't really overrated (just commonly misunderstood).

They allow for explicit NULL-ness (which is a necessary concept) without falling into the trap of making everything implicitly possibly NULL. And when NULL-ness is explicit you are then forced to explicitly handle it in order for your program to compile (in the case of Haskell and Rust).
Indeed.

re Alexander von Humboldt: Andrea Wulf’s, The Invention of Nature[0], is an excellent overview of his work and impact.

It's quite shocking how little he is known; somewhat similar to James Clerk Maxwell.

[0] https://www.goodreads.com/book/show/23995249-the-invention-o...
It was a lot more random then expected. Totally liked it overall, specially the startup leave and the math behind headlines.

Keep it up..
> Or what do you even do about it?

All you need is a list of what width each type is.

> A handful of solutions already exist: - Use a higher-level language - Java

It doesn't require being "higher level". If anything it pushes code to a slightly lower level.
Those dirty commies all deserve a bullet in the neck
Knickers is a steer, not a cow.
For that reason they normally provide download/print links. Sending invoices/statements/pii through 3rd-party corporations through email is a privacy concern. Companies need to be able to control the entire loop to ensure privacy, which is why they are moving to the portal model with email alerts.
We've been meaning to run this comparison, but haven't gotten around to it yet. I expect it to work and am hoping to see some performance benefits. It should be fairly straightforward to see it working, the only reason we haven't tried so far is that we only have xrt hooked up and the TF infeed ops are not open source, so the existing code doesn't just work. It should be straightforward to hook up the xla service instead, but it's a bit of additional code to write that we haven't gotten to.
Scrum vs. Extreme Programming: X Key Differences
You also have to take into account the trade-offs! In my paper-clips in a jar example, lets say we want to find the string "var foo = bar" you take one clip from the "var" jar, but almost all files has "var" in it ... and there are also many files that has "foo" and "bar" in it! How do you sort the answers from there !? With a simple text/regex search you wouln't have that problem!
The accreditation issue can't be tackled until you build high-quality courses in traditional subjects. That's what many of these sites don't get. You need to look at what traditional university is offering THEN REPLACE IT WITH SOMETHING BETTER. Physics 101 and chem 101 are still important and people need to learn these subjects. You can't just build a new "university" and then just have a bunch of buzz word named courses.

Until that happens, none of these MOOCs will obtain accreditation from any accreditation organization that is worthwhile. The quality offered by current MOOCs simply do not compare to what you learn from traditional university.
Firefox for me is really slow compared to Chrome, specially with uBlock.

I would recommend Firefox Focus/Klar instead.
It's such a tiny thing but every time I use it I'm impressed.
Pen and paper are always useful.
If we can figure out why certain animals are unable to process TV images, we may be able to replicate the effect.
My first thought was that this complements differentially private systems nicely, but seems like it was your intention to use it as a building block for things like that anyway. Very cool work! I think it's really important to have such secure primitives that are easy to build upon, maybe secure multiparty computation and such will finally become more widespread.
I wonder why this gets downvoted - seems pretty reasonable to me...
Show HN: Random Hunt – Open source platform to find random Product Hunt products
Still has more market share than desktop Safari and is still #2 behind chrome on the desktop. Probably its market share is being eaten by chromeos devices. Ultimately it would be really bad for the internet to have Google effectively own it, regardless of whether they have made mistakes or not firefox as a project is too important to allow to fail.
+1 recommendation for Bitwarden
This is actually what gives me hope they create a UWP like platform that runs well in windows based on Node-style interfaces and maybe React Native for Windows.
I actually install firefox through chocolatey and chocolatey through a powershell command, so I get to never open Edge even once!
I toured the US with my bicycle for 5 months this year on a Walmart bikes. Each one lasted only 1 month (1000 miles) before it developed serious mechanical problems like broken spokes. But it was much more economical than an expensive touring bicycle: For example, every time I flew domestically, it was very expensive to take it as checked luggage. So I left it at the airport and bought a new one at the other side.

A bicycle (or a scooter) weighs a fraction of a car, so even if I replace it frequently, it uses much less raw materials per mile, especially if you include the fossil fuels consumed.

I never rode a bird, but I was sad when I saw the cops banning them from Venice beach in August. Hopefully the city will embrace the new technology and build enough (shared) infrastructure (bike lanes / sidewalks).
Youtube is turning 14 next year and computers have been mainstream way longer than that. Personally I was a kid when it was the TVs fault and video games were making kids violent, but imo things turned out just fine.
Ask HN: SaaS builder community
Is there any such thing?
I had several thoughts recently about rejuvenating the Midwest and other areas affected by globalism and the government's indifference by turning it in a bigger version of Shenzhen. Basically bringing back industry by making sensors, micro-controllers, etc.

No idea how it would work in principle.
i've been on firefox for the last six months or so. very happy overall.
So how does NaN in Python and NA in R relate to NULL? I know Python has the None type, but it's not the same as NaN. One of the most annoying things in Numpy is that there is no way to indicate that an integer value is "missing", similar to NaN for floats. In R both integers and strings can be NA (if I remember correctly). So for numeric types at least, there is definitely the need to somehow indicate that a value is "missing".
It’s dominant enough that every cloud vendor has to support it. Even Microsoft.
This is why services like metamask will take over
about:config preferences can be customized using the user.js files. See https://github.com/pyllyukko/user.js/#installation for some examples.

For addons and other options you can use policies.json file, see https://github.com/mozilla/policy-templates/blob/master/READ...
If you haven't used Chrome, no wonder you haven't noticed Firefox sucking. But a side-to-side speed and responsiveness comparison of Chrome and Firefox is unfair even today.
Not stupid by any stretch, if you are in China. Alibaba is already making drone deliveries in Shanghai. A company in China called JD is amassing big fleet for drone delivery as well.

https://www.popsci.com/china-drone-deliveries
The transmission of electricity itself generates a magnetic field. for an electron moving in a particular direction, a 90-degree magnetic force is emitted.

Try winding some copper around a nail and connecting the wires to a battery. You'll be able to pick up paperclips.

Superconductivity allows current levels to get high enough to generate massive magnetic fields so I don't think there's a difference.

but then I'm no particle physisict
Not gonna shed a tear for the self-important people who wanted to slap their wisdom on everyone signed with their real name. It's as much a failure of quora as it is their own.

Anyone remember the glory days of facebook , when real names were "revolutionary" and all the rage? Quora followed that cargo cult (founded by facebook people, after all) and the consequences of that choice are due today. We really need to introduce the concept of "expiring data" on the internet, personal or not. After a reasonable amount of inactivity, identities shuold be anonymized.
SEEKING WORK: Business Intelligence/Analytics, San Francisco, Available for Remote Work
I've been in the analytics/BI space for over 10+ years, working previously as Consultant at a Big 4 consulting firm and more recently working for startups and Fortune 100 companies in Silicon Valley. I have excellent communication skills and project management skills.

I specialize in the following:

* Reporting/Dashboarding

* Data Warehousing, data modeling

* Data Visualization

* Data Integration

* APIs

* Database Backup and Recovery

* Data automation

* ETL

* Natural Language Processing (NLP)

* Excel BI solutions

Technologies and specialities include:

* BI tools: Tableau/Tableau Server, Power BI, Oracle Hyperion, PowerPivot, PowerView

* Database Platforms: SQL Server, Oracle, MySQL, Amazon Redshift, Hadoop, Postgres

* SQL, Python, Hive, CMS integration, AWS, PHP

Links:

Website: http://www.klardata.com

Email: justin [at] klardata.com

Linkedin: http://www.linkedin.com/in/justinleu
I always forget that I should not use sarcasm on HN. Apologies.
Well, like we do with Russia, we (The US, the west in general) could sanction the hell out of them until they clean up their act.

Just sanction their oil sales, crank up production everywhere else to compensate. It would hurt but could certainly be done. Then demand they stop waging genocide on Yemen, and demand they convert from a brutal dictatorial monarchy to a democratic republic with actual human rights for women. Or something like that. We could do all that, but we wont.

The reason we wont is that we need Saudi Arabia to wage our (the US', the Wests') wars in the Middle East, and right now they've just lost their play in Syria, and the west is hoping that all those ISIS fighters they've deployed through Saudi Arabia that are leaving Syria will find a home in the desert in SA somewhere, instead of coming to us in the West. So right now, nobody wants to upset them, and so we get a nice show of the hypocrisy of our leaders, who speak of human rights only when convenient, while being friends with a psychopathic serial killer.
Will the homepage be Google... or Bing? There’s the question!
Nice article. I mostly agree, but I don't interrupt my workflow to immediately fix bugs that I encounter, which is what the authorette seems to encourage:

> But I don’t think that anyone else (including future Sophie) will ever feel as motivated to fix the annoying bug as much as I am in the moment that I hit it.

Instead I keep a running list of bugs I'd like to fix, adding bugs to the list as I find them, and I allocate some set time to go through the list. I find that my motivation to fix bugs doesn't usually drop if I wait until e.g. the "do whatever you want" block allowed by my job every Friday. If motivation dropped in such a short time as a week, the bug is not worth fixing.
Trading card games and D&D is ruining kids.
Depends for many people there is not a shortage of jobs to apply for, so coding a path through a maze which is just regurgitation rote memorised algos is a filter for us.

I do agree about a daylong set of interviews with 4 or 5 people that's also a filter id use.
> Tab Set-aside, the thing where you can suspend tabs and then bring them back later, instead of having a browser with dozens of open tabs all using up memory.

I'd never heard of this, so I thought I'd give it a go: it's not on the right-click menu but on a separate icon on the top left, where the System menu should be so I'd never looked there. It turns out to be handicapped by not being able to save/restore individual tabs, you can only push all of them off and then restore ones you want.

Edge is rather hostile to tab-heavy users in other respects - it doesn't restore them after close, and it just makes them smaller and smaller without any kind of scrolling. So beyond about 20 tabs it becomes hard to use, and you'd never reach 200.
But 10 years ago we all lived like that. Definitely 20.
On my Android TV, I can use my phone as a remote keyboard and copy/paste. But there are some apps which design their own inputs incompatible with the remote keyboard. When this happens I can plug in my physical keyboard directly to the TV.
It almost doesn't matter. Do you remember the hours and hours spent trying to debug something on IE that worked perfectly on Chrome/Firefox/Safari? All because MS didn't follow the standards that everyone was getting used to and had (mostly) advocated?

The thought of having to do anything remotely similar to that makes me shiver. Since MS made me go through that years ago, I simply will not go through that again. They did such a poor job with IE and it takes time for wounds to heal. Might sound a bit pathetic, but working life without having to develop for IE is much nicer. Chrome, Firefox and Safari generally behave in a similar manner. Yes, there are some inconsistencies, but nothing like IE. Especially the earlier versions (6!).
Tumblr has way more problems than a couple of nipples slipping through NSFW tags.
In bitwarden it works out of the box, so I think it’s just laziness.
One thing is testing if the fancy custom react component works properly in a particular browser at all, that should be the case in a certain browser+version across OSes and you'd want that available all the time.

The other thing is testing if some CSS is acting up in a specific Browser/Browserversion/OS/Screensize/Phone combination; that is probably a job for QA.
Probably true. The irony is that many other companies sprang up to actually build real drone delivery companies. There is one in Singapore (can't recall the name) that basically is trying to build drone landing ports (with lockers for storage) on each building in Singapore. The way it works is after you place your order, the drone is dispatched to the locker to make the delivery. The customer goes to the roof of the building where the locker is which then they use a code (sent by sms/e-mail) to open the locker. I thought it was a genius idea.

Edit: Looked it up. The company is called airbus with their skyways drone system. It is not related to the aerospace company of the same name.
I've always been curious about this, could you give more details? It would be interesting to know what a 8-bit chip costs vs a 32-bit one, for example.
Chromium, great. With this move, Google gets to take one more step toward total domination of the Web. I'll be honest, I use WebKit-Edge on my iPad and it's fine; but I believe that the desktop space needs a new engine. We need something that isn't Chromium or the Chromium-Gecko that's backing Firefox since the intro of WebExtensions. There's only one problem - that's a hard challenge, and just blindly following Google is the easy way out.
Chrome didn’t come to dominate the desktop browser market by forcing users’ hand, but by offering a better experience. The few times I used Edge, nothing gave me a remotely better experience, I only noticed small annoyances and moved on.
All those Princeton and Harvard economists travelling the world telling foreign governments how to run their economy lol. Does any politician in the US even read the emails the Fed sends them? Must be the most thankless job ever.
Return from years with Chrome to after the release of Quantum and I really happy with FF once again.
> Can you share more examples?

Keychain does not work, FF57 killed KSE.
I switched to DDG for the privacy, and a general desire to ensure that competitors to Google survive. But I've found I use the "bang" commands all the time.

Typing "w! foo" beats "wikipedia foo" every time.
That's exactly the point the author isn't making - which is that there should be an explicit distinction between Exists But Holds No Value and Does Not Exist.

0 is neither. It's clearly a number which can be used in arithmetic and defines a specific integer quantity. (Unless you think 0 is identical to NaN...)

The problem is that in some languages it's used for either or both of the above logical definitions, when it shouldn't be used for either.
They have all the same semantics as regular numbers? They all derive naturally from the Peano axioms.

You may be thinking of NaN.
"Marketing is hard"...yeah, that's why marketing people exist. You cannot do everything yourself, especially if you are entering a new territory (knowledge-wise).