skysight-inc/HackerNews huggingface dataset:
> And Mullvad doesn't have mobile support yet.

You mean (I think) it doesn't have it's own native app. Connecting to Mullvad's VPN works fine on Android using OVPN (as do many of the VPN providers).

Sent via LineageOS using Mullvad :P
The form-factor and feel of the iPhone 4 is awesome. I broke a phone a while back, and resurrected my old 4 so I could at least send texts, and loved how it felt. Too bad it's nigh-unusable else-wise.
None of the other examples involved a computer generating an answer for you, hence are a slightly worse fit for an analogy here.
In the article the creator of the font said that they see it as "an echo or a simulacrum", IANAL, but i would say that that recreation is a work of its own under at least copyright law. And ignoring the legal angle for a moment, they did put a lot of work into it, so asking money for it is not wrong imho
In the past I used it for torrenting. Nowadays because it adds a layer of privacy from companies and governments. I trust my government now but I don't have to trust my future government. I am pretty sure I don't do anything illegally, but a future government might not think so.

Like in the UK when they wanted to ban porn (I think?). Something harmless today (legally speaking) can become an issue in the future.
Shortly after I graduated from college, I switched from Arch to Ubuntu and it was a bigger step in growing up than getting my actual diploma
I have gone one step further, to Windows 10.

I finally removed Ubuntu from my home laptop too. I'm now using it in WSL with VS Code.

Everything day to day works better. My shares mount easily, my media players work, but best of all I get proper versions of Word and Excel. I still manage a bunch of Macs at work, but I have come to regard them as the BetaMax computer. Worst of all this is BetaMax, with the users not having noticed that the rest of the world has BluRay. I get so many Mac Users telling me 1990's anecdotes about things Macs do better than Windows. "Macs update silently in the background". No they don't. Windows 10 does a pretty good job of it though.

I have narrowed it down to the real truth. Macs look cool when you are sat in a hipster coffee shop with your hipster book pro. That and stuff with iPhone compatibility, home user stuff.
If you use it for privacy, might as well use DDG instead of Google to add another layer :p
Thanks so much! This was exactly the sort of industrial benchmark I was after.

Am I correct in summarizing your experience as:

The possible encumbrance caused by types at prototyping phase is paid back several times when refactoring a production codebase?
Mullvad has mobile support with WireGuard.
I don’t manually type the Unicode characters for any of that because I’m usually using TeX, where typing three dashes becomes an em dash and there are commands for Greek and other characters. You can also configure the right alt key to be used for this kind of stuff.

If you want to use GNOME, it includes a good color management interface that will look oddly familiar coming from macOS. There’s other ways to do it too: https://en.wikipedia.org/wiki/Linux_color_management

As for messaging, I’ve heard good things about KDE Connect. Not sure if it works with iOS though.

For pretty user-interface and default fonts, you can edit a fontconfig file that will let you specify aliases for fonts and some pretty complex configuration to get the right font in each saturation. See https://wiki.archlinux.org/index.php/Font_configuration
Public wifi access.
I don't understand why you think overpopulation is not a problem.

If the population of India halved over night, there would be half as many mouths to feed; there would be much less unemployment people could afford to charge higher wages for unskilled jobs (because there would be less competition to drive prices down.) How would that not be an improvement?
I wish Google would take a note from Mozilla's add-on submission process and allow the source to be uploaded as a separate package. It's simple to test that the source package builds to match the compiled code and gives a more easily readable method for audting. It would also avoid this sort of nonsense.
What is "right-knowledge"?

Edit: Can the editor tweak the title? It's not just a little confusing to me, others here have mentioned the same issue.
Big props to Jeff.

As he says repeatedly in his posts if you don't like his art style or games you're free to find other games.

He's been supporting himself successfully this way for over 25 years despite the criticism. Clearly there is a community of people who favor his style of games depsite "the old school art style"
Ask HN: What are your hacks/tricks to read the books in the age of distraction?
I think that's different, first because the neural network has an indirect relationship with the physics, and second because Feynman was operating under a handicap: he was asked to give an explanation in terms the listener (who didn't know any physics) would understand.

In the case of folding, when we ask "why" we might be asking why it folds one way and not the other. Causation has consequences, like for example we might want to know whether a small change to one part of the protein will significantly change how it folds. We might say some amino acids cause the fold and others don't.

If you understand the mechanism behind something, you can control it better.

Or, if you're interested in machine learning, you could ask what changes to the neural network make prediction better or worse and which parts of it matter the most, when it might make mistakes, and so on.
Wanting code to compile on something other than gcc is not "caring too much", it's being responsible
I'm not an expert in C, but then what's the issue with strncpy() or any "n" functions? It prevents overflow AFAIK. Also what is the alternative (memcpy?) and why?
Let me ask you, why you think India is overpopulated?

>If the population of India halved over night, there would be half as many mouths to feed; there would be much less unemployment people could afford to charge higher wages for unskilled jobs (because there would be less competition to drive prices down.) How would that not be an improvement?

There will also be less demand for goods, ask those countries which have negative population replacement rate. Where will the demand come from if population halved that means half as much demand for your wheat, rice, and all other necessities.
And a nearly comparable (and orchestrated!) time-lapse evolutionary map of Europe, though extending back to only 400 BCE:

https://www.invidio.us/watch?v=UY9P0QSxlnI

Note that China was under a largely single and unified set of linguistic, cultural, and political organisation throughout the entire 3,000 year period you depict. The "modern" map of Europe has changed dramatically just in the past 30 years, let alone the past 100 - 200. Entire linguistic and cultural tribes have completely vanished, save for a few pitiful relic remains. Political continuity has been nil (Greece, Macedonia, Byzantine Empire, Rome, Moorish Spain, the Gauls, Britons, Celts, and Germanic tribes, the Rus? (Swedish invaders, BTW), Holy Roman and Austro-Hungarian Empires? Soviet Bloc? Independent Baltic and Balkan states? Ireland, under English subjugation since 1601, the north to this day. Poland as the pinball kid of Prussia, Russia, and Germany.

That's Europe.

Addenda: The extreme extents of the Chinese empire varied greatly. The bulk of the population, then as now, was in the eastern coastal region, largely the Yellow and Yangze river floodplains.
Sounds interesting. Tell me more. What do you use to host it on? Do you ever run any X/window systems?
You're thinking of it from the wrong direction. It's not about talent, but just another advertising channel. Why people follow an influencer can be for all sorts of reasons, but those are not important.

An ad on IG on a popular apparel keyword might be ~$1-$3 per click for a high cost demo (the exact demo who follows influencers). Apparel is notoriously inexpensive to create, so a shoe company could send out free pairs to a bunch of small (10k-20k followers) influencers and likely come out ahead.

This trick of using influencers to bypass the high cost CPC of IG proper is why IG keeps changing the algorithm to bury ad like posts and force either the brands to advertise directly or the influencers to pay to boost their posts.
For anybody else:

Why is strncpy insecure?

https://stackoverflow.com/questions/869883/why-is-strncpy-in...

> strncpy() doesn't require NUL termination, and is therefore susceptible to a variety of exploits.
“Things just work in Linux” - please do share this magical setup you have because my experience over the last 20 years is that nothing just works. MacOS mostly works, Windows sometimes works, Linux never works.
Dunno how it is in the States, but here in Poland, the towns where you can buy a cheap-ish house are in general terribly boring, have small-minded people in them, have little public transport, and are often ugly and filled with smog in the winter. Big cities are not like that, but then houses there are expensive. So, I think I'm actually leaning towards living in a flat in a well-maintained big city, where there are multiple good places to eat out and the people on the streets don't make me feel sorry for them, vs living in a house in a drab small town.
Learn Datalog Today (Lisp in Summer Projects 2013)
I agree that burning fossil fuels release more CO2 into the atmosphere. I was not trying to imply that the rainforest will halt global warming, obviously it can’t because it’s been there the entire time.

However, I do believe just multiplying trees by weight does not accurately describe what carbon sequestration is. Trees are not the only place carbon is sequestered in a forest. Soil sediment, animals, and other plants also sequester. It’s also a home of biodiversity and nutrient run off that assists other parts of our global ecosystem. In turn, Carbon sequestration occurs over time; and it’s these rich, biodiverse ecosystems that produce the fossil fuels that we are burning, without them the carbon would never sink into the earth as it does.

Eliminating the rainforest halts the engine that cleans the atmosphere and removes the carbon and cools the earth. It would also dump millions of more tones into the atmosphere (even by your calculations). It would also disrupt global food chains which do produce our global breathable oxygen.

I’m not sure what your point is that you are making other than you imply that we don’t need to save the tropics because fossil fuels are worse; but I heartedly disagree with that implication.
Are we sure VPNs don't log / turn logs over to federal authority figures if pressed?
I don't know. But it seems to me there's a lot of misdirected anger in the air. Trump is investigating FAANG yet nobody is willing to give him the benefit of the doubt there. If everyone was screaming at government then maybe something would change.
That's a surprisingly small list, missing e.g. sscanf / gets / strtok / all the other "usual suspects" at least
I personally prefer windows as well. But I haven't yet been able to find a setup for it where all my unix centric software works. For example, if I want to debug in my IDE, I have to run it under WSL, since the project contains code that doesn't work on windows, and run an X-window server on Win10, which is flaky and means lots of manual setup.
This is something I sometimes also ponder. I think the answer is yes, as long as you keep your ultimate business goal in mind and optimize for workflow rather than looks. Yes, you do take longer to get going but once your setup is honed in you gain a little more time every minute you use your system.
Isn't a F11 supported as a shortcut in most of applications to switch to full-screen mode? I remember it was supported over vast majority GUI applications I used, when I was complaining on small screen, but now personally, I don't understand why somebody would need it make windows be maximized-to-workspace as in macOS. There isn't such huge dock, and application menus were redesigned to be in-app-hamburger-menus and finally displays manufactures now provide monitors with higher resolution than few years ago. If you really notice lack of focus / working space, you shouldn't look for typical GNOME/KDE DEs but for a WM (windows managers) like Sway/i3 or AwesomeWM, which helped me to be more productive, when I dab in multiple applications at once.
Though the irony of charging money for type design that was thrown in the river to prevent a certain someone from doing so is not lost on me.
If that's what he's arguing, the title is completely misleading.
Not to mention that several of the links in the article that aren’t Cato-produced either contradict or fail to support the authors’ conclusions that the links are supposed to support.
> Often the ones who have actual shops are sort of mafia types who won't bat an eye to burn your shop or murder you outright

This is a bit of fanciful exaggeration. There are a lot of small shopkeepers in India. There is no reason to believe they've been stabbing and shooting their competition.
strncpy() does not guarantee that the copied string would be terminated with a null byte ('\0'). For a call that looks like strncpy(dst, src, n), if there is no null byte in the first n bytes of src, the string copied to dst would also not contain a null byte.

Here is an example code to demonstrate the problem:

#include <stdio.h>
#include <string.h>

int main()
{
char a[] = "01234567";
strncpy(a, "foobar", 4);
printf("%.8s\n", a);
return 0;
}

Here is the output:

$ cc -std=c89 -Wall -Wextra -pedantic foo.c && ./a.out
foob4567

A C89-conforming alternative I use is a macro like this that guarantees '\0'-termination as the first thing:

#define strcp(a, b, c) (a[0] = '\0', strncat(a, b, c - 1))

An example from my code: https://github.com/susam/uncap/blob/master/uncap.c#L78-L87

Here is how to use it:

#include <stdio.h>
#include <string.h>

#define strcp(a, b, c) (a[0] = '\0', strncat(a, b, c - 1))

int main()
{
char a[] = "01234567";
strcp(a, "foobar", 4);
printf("%.8s\n", a);
return 0;
}

Here is the output:

$ cc -std=c89 -Wall -Wextra -pedantic foo.c && ./a.out
foo
If nature finds a new ecological balance that's incompatible with human life, does it matter?
The ditch itself is also filled with caltrops and ankle breaking traps. The fortifications behind the ditch usually involved a wooden palisade or stone walls. Even so, these defenses were generally for defending against small groups of loosely organized attackers. If a large force attacked, infantry and cavalry would deploy to the field to oppose the enemy with the fort perhaps protecting a flank or offering other strategic support.
> Edit: Let me address the performance part of your comment as well. I think using a game with 20fps as an example was to show that it could even achieve such performance. Languages like Java, C#, Clojure, Python, Ruby are normally bad choices for games as they are not performant enough. So most games are implemented in C++ with an embedded scripting language on top. So the fact a pure Clojure game can hit 20fps with lots of on screen object is actually pretty good in this case.

What? A hundred on screen objects is not a lot, and 20fps is a slideshow. Pure Java games regularly do 10x that (Minecraft says hello as a simple example, and it's considered badly optimized)

A "proper" C/C++ engine you'd expect 100x (thousand objects at hundreds of FPS, or things like Factorio which are 10s of thousands of objects at 60 fps).

The anecdote performance is what I'd expect from a joke language like Rockstar. I'm sure the poor performance is not Closure's fault necessarily, and it probably can fly in the right circumstances (or maybe even in a lot of circumstances). Just the anecdote's description makes Closure sound horrifically slow.
I hope it grows through community effort. This is a good sanity check sort of thing.
I think this comes from the fact that we have automated/formalized most of the meaningful work. If you spend 10% of the time solving problems and 90% playing petty office politics, it doesn't really matter how good of a problem-solver you are. Especially if most of the problem-solving part comes down to following clearly defined procedures.

The flip side is that the economic contribution of a single employee becomes vanishingly small, affecting the salaries, or rather what you can buy from them.

I agree with you that building your life on top of your natural strengths is the most fulfilling way of spending it (having done so myself), but I think these days it is extremely hard and is only possible if you manage to start your own business and grow it to the point where it can pay your bills.
Looks like Git has its own string type:

https://github.com/git/git/blob/master/strbuf.h

https://github.com/git/git/blob/master/strbuf.c

See this for the story of why strncpy/strncat are insecure:

https://en.wikipedia.org/wiki/C_string_handling#Replacements
User moves terminal-based workflow to Linux, finds it isn’t any worse. Neglects to try chunkwm.
It doesn’t ensure that there’s a null terminator in the resultant string. This may potentially lead to a later overrun when the copied string is read back.

(See also https://linux.die.net/man/3/strncpy )
Windows programmers are familiar with StrSafe.h, https://en.wikipedia.org/wiki/Strsafe.h and https://github.com/dotnet/coreclr/blob/master/src/pal/inc/st... which go a lot further.

Also found https://github.com/mubix/netview/blob/master/banned.h on Github with a better list.
I guess it depends on what you're using your VPN for, but I prefer to run my own VPN on a vps. I use vultr and pay $5/mo. I also get to host a collabra server for my nextcloud setup on the same server so it just makes economic sense to use a vps rather than paying $5/mo (or more) to just get a VPN and also not have control of my data.
I have colleagues that swear by some of the new Microsoft portable machines.

The few times I’ve had a look at Windows 10 I’ve been seriously put off by all of the ‘junk’ that is automatically installed, e.g. candy crush etc.

I also worry about Windows still being a big target for malware.

What can die hard Win10 users tell me about these concerns?
Within that context, negative income tax was sought to replace welfare, social security, Medicaid, etc. Is that the case with UBI?
Responsible? What an hyperbolic statement.
Could you enlighten me on what would be the significant negative consequences?
I hope that your mental equation take into account the missed usefulness of GCC only attributes, flags and extensions by being clang compatible.
Thank you for that, that’s exactly right.
I use it for privacy for other stuff, but use it system wide so it screws up my regular searches that I don't need that level of privacy for.
>Make lots of money, use the extra money for things that matter to you.

"I'll fix it later."

I suppose this is how the people building our surveillance state justify the work they're doing?
Ingest - the free version as I'm sure you're aware is 32bit only. So it is limited in how much data it can address. But the /rate/ of ingest I'd imagine is close to that of the 64bit, with the caveat that you'll hit the ceiling sooner (untested).

The system I was working with was ingesting in the order of 10s of millions of rows per day from multiple sources. This was obviously the 64bit version.

Also if you do plan on using it for anything beyond tinkering and personal research I'd review the licensing. I'm not too sure what is and isn't allowed.

Time ordering - yes. The typical architecture of a production system in KDB will have something called a Tickerplant (TP), a process through which all updates must traverse. This will stamp its own timestamp on all the updates it receives.

So for time ordering - you can (1) use the TP timestamps, and/or (2) have your source nodes also provide a timestamp in their own column (eg sourceNodeTimestamp), and then you've got some means of detecting skew across your systems with comparisons to the TP timestamps. You could then order your data by whatever timestamp you want to use in your queries.
The issue is that strncpy doesn't guarantee that the destination string is null-terminated after a copy, particularly in the case where n is shorter than the original string, so you could run into overflows if you then ran strlen() or similar against it.

Here's a good explanation from Raymond Chen: https://devblogs.microsoft.com/oldnewthing/?p=36773
In GTK2 and 3, you can switch to the emacs key theme and then edit the files in /usr/share/themes/Emacs/ to have meta instead of ctrl. Alternatively, use a key rebinding daemon like https://github.com/snyball/Hawck to rebind the specific keys globally. Long-term I don't think this is worth it though because the programs are not built to support it like they are on a native Cocoa environment. You kind of just have to suck it up and get used to different key bindings in different environments.
Yes, and in fact it was a seminal discovery that one can calculate (‘calculus’ means ‘pebble’) by manipulating symbols.
Two more very good Prolog books: The Power of Prolog[1] and Simply Logical: Intelligent Reasoning by Example[2]. I also recommend visiting the Awesome Prolog list[3]. There is also a very interesting extension of the Prolog - Probabilistic Prolog, aka ProbLog[4]. And modern ISO-compatible implementation in Rust language - Scryer Prolog[5].

[1] https://github.com/triska/the-power-of-prolog/

[2] https://book.simply-logical.space/

[3] https://github.com/klaussinani/awesome-prolog

[4] https://github.com/ML-KULeuven/problog

[5] https://github.com/mthom/scryer-prolog
>There are a lot of small shopkeepers in India. There is no reason to believe they've been stabbing and shooting their competition

Have you ever owned a non IT business? I am in India and my friends who have successful shops received death threats many times. One even sold his hotel because his son was getting kidnapped all time.
Those choices are much easier without children.

Once you have children, then you need to be in the better school districts, in the area with better income security, hence you’re now competing with other parents also trying to secure as much as possible for their children, and on the treadmill you go.
strncpy have the danger of not putting a null character at the end of the destination , if source is longer than num.

> Copies the first num characters of source to destination. If the end of the source C string (which is signaled by a null-character) is found before num characters have been copied, destination is padded with zeros until a total of num characters have been written to it.

No null-character is implicitly appended at the end of destination if source is longer than num. Thus, in this case, destination shall not be considered a null terminated C string (reading it as such would overflow).
> Where will the demand come from if population halved that means half as much demand for your wheat, rice, and all other necessities?

How does it matter if there is still enough demand for these goods to be sold out? Remember prices are controlled by the government for basic necessities such as these.

> Let me ask you, why you think India is overpopulated?

How is this relevant to overpopulation being or not being a problem?
I have used i3 and Arch. I prefer a Mac with chunkwm and iTerm2.