skysight-inc/HackerNews huggingface dataset:
There are official cheats in GTA V (not Online) too, entered by opening the in-game mobile phone (iFruit) and dialing a certain number, for example 1-999-MAKEITRAIN to change the weather. A full list is here: https://gta.fandom.com/wiki/Cheats_in_GTA_V#Phone_Cheats

There are also many unofficial mods, including one called "Angry Planes," which has all kinds of aircraft following you and falling out of the sky all around. One big repository is: https://www.gta5-mods.com/

While mods are not allowed in GTA Online, the game has a history of various bugs and glitches, which have been mercilessly exploited over the years: duplicating vehicles and selling them to generate income, flying under the map and shooting other players from underneath, etc. God mode was also possible numerous times due to bugs, and there was a time when a payout for a mission would have increased up to 20 times if Internet connection was lost and then restored at a certain time when it completed. For some players finding these has been more appealing than playing the game itself.
Useful articles for increasing personal productivity
> The business is employing you, not the other way around.

It's a two-way street. You are providing your services to the company in exchange for compensation. It's an unequal relationship, to be sure, but the company needs employees to exist and survive.

> If you don't like it, you are free to move on.

If only life were that simple, and if jobs were so plentiful and easy to come by that people could be so picky. Sure, a lot of tech workers are in a great place financially such that they can quit in protest (and lose their health insurance, among other things), but most workers don't have that luxury.
There was a presentation at SCALE 18x earlier this year (pre-shutdown):

* https://www.youtube.com/watch?v=G39tJdmLuAI
Weird. I just had a full case replaced this week for my 2017 MacBook Pro (for free)
Agreed. Sometimes it takes a keen eye though. Presence of strays need not mean they are not look after by the locals (in fairness, neither does it imply the complement)
How does it compare to OpenSCAD, which now also has an a story on the front page:

* https://news.ycombinator.com/item?id=24514978

There was a presentation at SCALE 18x earlier this year (pre-shutdown):

* https://www.youtube.com/watch?v=G39tJdmLuAI
Have a look at Nim, I was presently surprised when I recently tried it out. Now if there was just a better way of integrating with numpy it would be my goto language for writing computation intensive modules for python.
Similar false friends in Dutch: Concurrentie
Poop knives, arachnophobic entomologists win 2020 Ig Nobels
Precursor – Mobile, Open-Hardware, RISC-V System-on-Chip (SoC) Development Kit
For some people, perhaps a lot of people, many meals are just fuel. Those sandwiches are an acceptable unit of fuel, they come in an acceptable variety at acceptable prices and can be bought in an acceptable amount of time.

You don't have to make decisions about what to order, you don't have to queue (or at least not for very long), it's acceptable fuel.
The author seems to think we are "safe" from impact events, but that seems awfully glib and based more on pop culture takes like movies than facts.

Our track record for noticing near Earth objects is pretty poor and largely due to amateur astronomers. I don't think there is any consensus on what sort of space mission we could mount to divert one either. We are a long way from "planetary defenses have never been stronger": https://youtu.be/QkpP5Nz7zuY?t=34
This is due to people sharing malware:

https://www.techradar.com/news/mozilla-suspends-firefox-send...

The content can't be scanned server-side because uploaded files are encrypted
I know what you are talking about. They had rolled it out in my region and I loved it. Now they seem to have rolled it back
I often feel like this. CAD software is almost expensive enough that I want to just write my own.

Which is, I guess, why it costs that much. The empirical measure of the value it creates, for me, is how much they can charge for it before I just do it myself. And Fusion 360 clears that bar.
In a similar vein, there's also a crowdfunding campaign for the documentary 'Breaking Bitcoin'. It's to be about how Bitcoin was hijacked and throttled.
http://flipstarter.breakingbitcoinfilm.com/
Oh dear. A stunning failure of another Firefox product which was hyped to hot air: [0]

Looks like Mozilla really needs to find something to actually be more competitive than their current offerings of 'VPNs', 'File Sharing' and 'Web Browsers'.

[0] https://news.ycombinator.com/item?id=19367850
> what kind of warning that was ignored in 2020

Did you miss how many countries handled the COVID pandemic?

Even if malicious actors weren't taking notes on how to bring human civilization to a halt, a worse infection could easily decimate many nations.
Ar they safe though?
Well, then that's library dependent and not an intrinsic part of the language. So shipping Lua safely would mean having to swap or drop parts of the standard library for something a bit more robust.

Apparently, that's what Lunatik does so the work seems to already have been done.
No. Suppose I have a ring buffer, and the dashes represent the first page, and the tildes represent the second page (which just aliases the first page), and each dash/tilde represents a single byte:

https://i.imgur.com/NfZTICG.png

p = memory address of the beginning of the first page

o = the head index

s = the size

C = capacity = size of page

Now suppose I wish to append 10 bytes. I would simply do:

memcpy(p + (o + s) % C, input_data, 10)

s += 10

Or, to remove 15 bytes from the beginning, I would do:

o = (o + 15) % C

s -= 15

Because any given 'slice' of the ring buffer's space can be represented as a contiguous range of memory (thanks to the second page), I can use the already optimized memcpy routine for adding and removing data at the beginning or end of the buffer. But I still need to make sure that the head index is always updated modulo the capacity, or it will increment unboundedly, as you say.

As you can tell in the above example, I'm not adding/removing individual bytes. Magic ring buffers only make sense when you frequently need to add or remove several elements from the ends of the buffer. It's particularly well suited for when you have a stream of data and need to operate on it in chunks.

Here's a GitHub repo that contains an implementation of the magic ring buffer: https://github.com/willemt/cbuffer
thought note that "Shipping emissions in total emit more SO2 that all power plants in EU" is drastically different than "10 largest ships pollute more than entire Europe"

And yes, something should be done with pollution generated by shipping industry. Though I wonder what else you can do with bunker fuel. Store it?
Between Unix-based machines on the same network my go-to is netcat.

receiver$ nc -l 2000 > file
sender$ nc receiver 2000 < file

I usually check MD5 sums when I’m done.
> how little RAM a Rust app/container uses for the number of users hitting it

I thought that's only for syncronous libraries/frameworks? With async it blows out quite a bit. Everyone except rocket has got async functionality now too.
The costs are wrong. I had my 2017 MacBook's pro keyboard fixed this week (for free). They can't replace the keyboard alone, so they had to replace the whole bottom case, so fixing the keyboard I also got a new trackpad and a new battery.

The Apple repair confirmation email has two items listed, £290.83 for the case, £69 for repairs. It's £0.00 to pay because it's covered by Apple.
Cameroon is planning a Universal Health Coverage project
You don't need the matrix type in Numpy, it's just syntax sugar over a 2-dimensional array
The matrix class is now officially deprecated, FYI, so just use array everywhere.

I guess the generic way to write that would be A[bottom:top+1][::-1]. But the blame there goes to Python, not numpy, since the same is true of lists.
Ask HN: Do sleep trackers help you get better sleep?
Do sleep trackers (like that of the latest Apple Watch) actually give you relevant, actionable insights that you can use to get a better night's sleep?

Surely you also find this information out very quickly which begs the question why would you need a sleep tracker for longer than say, 2 weeks?
> Since GitHub repositories renaming their master branch did cost us significant money and almost caused downtime, I would be fully understanding if someone else is feeling outraged about it.

I think "outrage" is an inappropriate response. We're talking about removing nomenclature that has been (and continues to be) used to oppress an entire segment of society. I think removing that is worth a little money and downtime, if it comes to that. People who are "outraged" that it cost them some time and work probably could stand to show some compassion for their fellow humans.
While I share the sentiment I don't think this is going to help.

One of course wonders what else my computer is doing to render a piece of text/graphics I want to read/view and if all that is necessary and why I have 1Gbit Internet and still feel like I was on modem (sans blinking lights, linkup sounds and phone bills).

Unfortunately, the person or people that will try more energy efficient client side will loose to ones that will use the newly gained performance to waste it on another cool effect.
Palantir just got its hands on the UK’s post-Brexit border and customs data
Magic wormhole is your friend
FWIW I agree with you. I’ve always found cython easier than Numba. And more performant.

I think Numba has a lot of potential and will improve as they fill out remaining language coverage and finalize the API. The idea of a LLVM JIT compiler for python makes a ton of sense.
"A pre-push hook that prevents direct code push to master branch"

and I would want

"spit out a warning if you created a branch and then try to commit to master"

Sometimes I would want to commit to master, I want an overridable warning iff I just created branch.
Contractor? You are making bank.
Your comment made me laugh out loud. It's so true, and even worse in the regions than in London.

As with most things in the UK, price comes before quality. Sainsburys, who used to be my "Thank God there's an okay sandwich" place when on the road switched to a lower quality supplier, to an online backlash [1]. I can vouch for the quality drop; after that there wasn't much difference between the major supermarkets.

1. https://www.thegrocer.co.uk/sainsburys-moved-supplier-before...
I haven't used Django, Rails, or Laravel but Elixir's Phoenix is significantly higher level than Rocket.
I would love to see pret move out a bit further where people live and WFH, or even have a delivery truck which works the local area.

My partner and myself both WFH in Peckham, we would love to buy a couple of sandwiches and coffees from pret via an app. We get the occasional falafel wrap on just eat but there are not enough quick delivery options for healthyish lunches.
Easy ways to copy files between nearby computers:

scp
The python 3 equivalent of -mSimpleHTTPServer
Samba

Or maybe I’m missing something.
> what prevents us to make these decisions

The vast majority of people are greedy, uneducated and selfish.

Fix that and you won't just fix climate change you'll fix a lot of our issues.
> This is the reason that game consoles disallow JIT-compilation - and hence games tend to use regular Lua rather than LuaJIT.

You can disable the JIT in LuaJIT and still get better performance because it's a different implementation of the VM.

> but I'd be surprised if it could prevent a script from running indefinitely.

You'd have to patch the standard library a bit to avid things like `string.find` causing trouble, but as far as core Lua features go, yes, you can do that and all you need is to install a debug hook (Preferably from C, because performance, but you can even do this 100% from within Lua)

-----

EDIT: Here's some benchmarks I did for this a while ago https://gist.github.com/DarkWiiPlayer/f639a38df53e39df63497c...
The predictions in the article are too generic. I don't think they have an accurate model to predict the exact probability of each side effect.

Extending this model to predict if a drug will cure a disease is very difficult. Side effects are very generic like "vomiting" and a wide set of drugs cause "vomiting" for a wide set of reasons.

If a drug is useful against a disease sometimes is very specific, for example if the drug makes enzyme X of one virus or bacteria use the drug instead of another substance Y, but it does not confuse the human version of X. Or if it blocks the enzyme X of one virus or bacteria, but it doesn't block the human version of X.

Some drugs are very generic, like some antibiotics, and sometimes you can use broad classifications like Gram positive or negative bacteria. But in many drugs the effect is more specific.

Note that the article was not published in "Nature" but in "Nature Communications". Nature has created a bunch of journals https://www.nature.com/siteindex#journals-N that have a less strict level than the original "Nature" journal and I have seen a few dubious articles published in these journals. I don't remember something specific about "Nature Communications", but a general personal warning about "Nature X".
On March 23rd, the Dow Jones Industrial average bottomed out at 18,500. It then peaked at 29,100 on September 2nd u nearly a third. And also about where it finished up 2019. So, define March 23rd as the start of the pandemic and write a click-baity headline. Nothing to see here, move along.
> The worst thing that could happen would be some 'world dictator' making universal rules

Surely the worst thing would be to set up a Prisoners Dilemma trap where individual countries have a huge incentive to betray all the other countries by abandoning this tax and attracting all the large companies in the world to come and pollute there.
I once again don't have a good solution for 'how do I email a large file' but https://webwormhole.io/ is useful and simple, particularly for sending something big to someone you're video chatting with.
You can use one of the many servers that manage the users session for you and only override it if needed. Is there any real problem with a server that uses a cookie to only store the users session ID, storing the other data related to the session ID on the server? For most sites I wouldn't think there would be any issues with it.
Show HN: Beadifier – reproducing photos with toy beads
A single instruction that can run for a long time. That's the point.
If you keep doing malicious things, you no longer get to enjoy the benefit of doubt.
Getting Ultra Targeted Email Lists for Ecommerce via Instagram
I didn't measure any significant difference on memory consumption with async vs sync. I didn't even need to measure perf to notice a difference.
According to the press release, it was taken offline temporarily and after that they decided to do it permanently.
Yes, lots off apps today have the entire schema replicated in the browser, which means that every schema change you do in the backend must be replicated in the frontend. Madness.

If your UI is a copy of the database why not just give the user a phpmyadmin login instead?
> The scientific method is based on building on the shoulders of giants.
> The whole of the process is science

no. scientific research is proposing a useful model of an observable phenomenon. this is what you train for during a phd, at least in natural/life sciences: you learn how to test a hypothesis, not an easy skill.

refactoring code or transforming bunch of C++ into a python library is useful, but it's not science.

> What could be useful is openness in used tools and software and a way of getting citation counts for software used. It's nothing more than a table. That way the hotness of publication could start to flow for the underlying tools.

agreed 100%
What's to understand? I saw people at lunch eating wrapped rice things in Japan from the 7/11 which weren't that great compared to other places I could eat (especially the 'fresh' ones which were easy to find), but people still ate them.

In Singapore there were amazing food centers, and I saw Singaporeans eating at McDonald's! Why were they doing that when there were so many good options about?

I've never understood why people are so judgemental about what others eat.
For a fun demo of what they can do, check this out:

https://github.com/noahlevenson/stealing-ur-feelings
TIL github is one the biggest international munitions dealer
Very interesting. I would expect it to be much lower. I wonder how much of this is wasted on cryptocurrencies.
This is well known among iOS developers. Apple's approval process is far too cursory to catch malware. Also a lot of crapware gets through. The best you can say about it is that it filters out the really obvious stuff.
Except it is not "run by". It is caused by collective stupidity inherent to any group of random people that causes collectively suboptimal choices to be optimal from the point of any single group member.

With all the processing power and bandwidth I still feel the Web is much poorer than it was 20 years ago.
Leave to where exactly ... the company that writes perfect code? Little or no tech debt? Only possible in rare circumstances, probably when it is business critical that it be that way.
I keep finding myself falling back on OpenSCAD when trying to 3D model after getting frustrated with steep learning curve advanced CAD programs.

Even if you don't like the OpenSCAD DSL (it got it's quirks..) there are usually other options in more familiar languages. I use it via Clojure[1]. It's pretty fun, even for small stupid things like coding up a rolling oloid[2].

[1]: https://github.com/farrellm/scad-clj

[2]: https://www.youtube.com/watch?v=wXE3L8EU5U4
I did go to the gym occasionally, but it was more along the lines of pilates type stuff. Also walked the dog each day. So nothing crazy but I wasn't just sitting around.

Somehow I wasn't even underweight when I stopped, but in another couple of month I probably would've been. There is of course a good chance the calorie counting was wrong too.
Architect/programmer here:

Here is a list of how to be more resource efficient / cost effective:

1. Render dynamic assets to static html and cache them via a Content delivery network CDN. This will take far less cpu resources than rendering dynamic content and it will be faster to serve to the users.

2. Set reasonably long cache expire headers for content so that content are cached locally in the browser.

3. Use fast data structures such as hash-tables, tree structures that provides O(1), O(log n) lookup of your data whenever possible.

4. Use fast programming languages and frameworks such as Go-lang, C++, Rust, Scala and Java instead of slower languages. Fast programming languages uses less resources than slow programming languages.

5. This is one controversial since its not the current trend, but consider when to use Mini services / Monoliths instead of Micro services. A Monolith is a single process on one or more host it has access to local CPU cache and memory which is very fast. Mini services/Monolith will be more compute resource efficient than a Micro service where the service call has to be JSON serialized and travel over the network and then deserialized.

List of efficient web frameworks:

https://www.techempower.com/benchmarks/#section=data-r19&hw=...

List of search efficient data structures. Big Tech companies ask job interview questions on these data structures for reason of speed.

https://en.wikipedia.org/wiki/Search_data_structure
I live in a smallish city (200K to 500K population, depending on how you define the city bounds). I just stepped out (it's 11pm here) and looked up (it's not normally something I think about). It's pretty reasonable, you can definite see stars by the thousands, some of them very bright. The air here is very clear for city air. Out in the country it's definitely better though. The excursion I linked to was in a very isolated area, the Mackenzie Basin in Canterbury. The local authorities there have picked up this particular ball and are running with it. Recognising that they don't have much light pollution anyway, they have set about minimising what light pollution there is (eg street lighting points down, in general they try to avoid unnecessarily leaking light up). It does make for a genuinely impressive sky on a clear night. The excursion was great. The bus takes you to a very isolated spot, and they give you plenty of dark time to get your night vision working well. Recommended. The youngsters who were acting as tour guides were both from the Northern Hemisphere and they made a point of talking up the Southern sky, saying in general it is more interesting. I don't know much about astronomy and can't judge, but they made a good case. I had no idea that Alpha Centauri is only visible in this hemisphere for example. Maybe astronomy would be a good hobby. It "feels" more profound than chess, C++ programming, and the intersection of the two :- )
Yes - plus, something like Rails is great for getting people on board. If the first experience of a new language is being able to get shit done at record pace, it really motivates you to learn more about it as well.
RTX3080 TensorFlow and NAMD Performance on Linux
Thank you, I'll check them all out.
Canada Tesla driver charged with “napping and speeding”
It's more simple than that: pull the plug on the entire turing machine. Lua runs in a VM, so you can stop it from the outside, which wouldn't be possible if the code was running directly in the CPU (Without an OS underneath it, that is).
Does magic wormhole do firewall poking or just pass traffic through a 3rd party host? I couldn’t tell exactly what happens if the direct connection doesn’t work.
Cython offers the type of targeted compilation options you suggest. Also numba offers them in a more opinionated way that requires less overhead than Cython.

These are both long standard tools in scientific Python.
This is starting to happen. E.g.:

New iOS 14 feature warns you if someone is spying on you through your iPhone: Look out for the orange dot at the top of your screen

https://www.dailymail.co.uk/sciencetech/article-8744423/iOS-...
It’s really not which is why medical associations are putting more strongly worded guidance these days: https://www.spectator.co.uk/article/the-nhs-has-quietly-chan...
For transferring large files between machines that don’t necessarily have the same clients installed I find file.pizza quite convenient.

My understanding is it basically loads a JavaScript BitTorrent client and let’s you transfer using that protocol, so both ends needs to be online, but there is no file size limit, and good support on flaky connections.

There’s a few services like this, but I always find file.pizza to be the one that I remember the name of :)

https://file.pizza/

EDIT: as other people in this thread, I am also having trouble getting file.pizza to work, in both Safari and Chrome.

Maybe it isn’t the answer it used to be.
It's an economic argument; you are making a moralistic argument. Economics have achieved more in the last five years than decades of moral outrage over climate change.

I'm simply stating that increased demand for energy is currently being met (almost exclusively) through clean energy. Speeding that process up through more demand (which we have anyway) also speeds up the process of shutting down dirty capacity.

This is why coal is rapidly disappearing from most countries still operating coal plants. Unthinkable ten years ago, and yet nearly completed in some countries right now. Even the US is on a clear path to probably be completely coal free very soon.

The problem is not the demand but the dirty and expensive supply. I'm simply arguing to fix the supply problem by flooding the market with clean alternatives. The fastest way to do that is simply increase demand.