skysight-inc/HackerNews huggingface dataset:
I created an AI that can beat the first and second boss in my favourite pc game Dark souls 3

First boss:https://www.youtube.com/watch?v=zcbH7jt4w0w

Second boss:https://www.youtube.com/watch?v=IeEoQVT66t8

I am using cheat engine to get information from the game such as hero position, boss position, hero animation, boss animation, time since animation change, life, stamina, current rotation and the angle between the boss' heading and the hero. (to see if hero is behind or in front of or to the side/behind the boss)

When the boss or hero starts an animation i start a counter at 0. For every timestep that the animation is still running i increment that counter and feed it as inputThe AI has no knowledge about the lengths of the animations. It has to learn that.The animation names are converted to a one hot encoding and fed to the network

The different examples shown in the videos have only been trained for a few days in real time (only 1 instance of the game running). But the episodes are cherry picked. In the Iudex case it actually kills the boss almost every time, however Vordt is a lot harder to learn so these are the some of the kills that i have picked out.

Other games have APIs made for reinforcement learning so that the agent can take an action at each frame of the game. I have kind of hacked my own implementation and are actually doing keypresses with sleeps in between each step as i can't control the frames on a frame by frame basis.

I am using python and stable baselines for the reinforcement learning part. I made my own implementation of a "gym" for dark souls. Then i set up a lua script in cheat engine that opens a socket from this socket i read the state in my python script.
We germans love to criticize even huge improvements, don‘t we? 49€ is dead cheap for that ticket.
It's an abstraction. You shouldn't need to be familiar with every aspect of what it does.
It’s one of the most researched topics in science.

5 hours at 3 MET (a 2.5 mph walk is 3 MET) a week lowers your risk of cardiac disease by 70%. It’s not affected by gender for the basic numbers. This is from one of the bigger meta analyses I’ve ever read. The US’s exercise guidelines are based on it.

Can’t speak for the recommendation of endurance sports. Definitely not a requirement. The research does show that, in general, the more cardio the better.
One reason to specifically forbid new installations is to avoid stranding people when you later legislate provision out of existence altogether.

Sooner or later this is going away. If you announce you're not doing new installations, that starts a timer on the existing users. In 2028 everything in use is at least 5 years old. In summer 2035 everything in use is at least 12 years old. Politically that makes it a lot easier to sell an actual prohibition on supply than it will be for places where that's a sudden overnight change from "Sure, you can use gas" to "No, we're ripping that out".

My country has begun gradually getting rid of POTS copper wire telephone provision. You can still have it, for a little while at least, but we know it has limited lifespan, if you're an outfit who somehow didn't spot the signs and were shipping devices that expect a physical copper line to work, you've had your notice, in a couple of years stuff like that will drop dead. When it's gone, with it goes a bunch of expenses that most people don't benefit from at all. And yes, also some relatively modest benefits are gone too, but mostly it's a burden, we have better things to spend resources on. But you need to give people a heads up first, and that's what this legislation seems to do.
Thank you for your article. I had difficulty understanding the "Binary search implementation" section of the original article for various reasons, despite knowing what binary search is, being familiar with the 2k/2k+1 encoding (from binary heaps), and generally thinking I understood what you're trying to do. I wondered if was the only one struggling with this.

Among the difficulties:

"restore the index of the resulting element" - it's not clear what this means until after reading the remainder of the section (many times, in my case, due to other difficulties)

"We compare it against 4, 2, and 5..." - An error? You compared 'x' against 4, 2, and 3, or b[1], b[2], and b[5], but never against 5 - this would be to the right of 4 and a binary search would not visit it.

"..and so we just need to find the number of trailing ones in the binary notation and right-shift by exactly that amount." - You need to shift right that amount plus one. In your example for search(4), after the loop and prior to shifting k=11. In binary this is 1011, which has two trailing ones, but must be shifted right by 3 bits (not 2) to yield k=1 such that b[k] == 4.

"eytzinger: 4 2 5 1 6 3 7 8" - it took me surprisingly long to realize this was describing the permutation of values of a[] to indexes of b[] rather than listing the contents of b[] itself with the zero element elided (which coincidentally are the same for the first two elements, despite otherwise not making any sense). Perhaps brevity forces this sort of thing.

The presence of 8 in the example's array appears to be an error. At index 8 it would be the left child of 1, which it can't be. Letting n=7 and a={1,2,3,4,5,6,7} agrees with your example, whereas including 8 and setting n=8 rearranges things and forces the root to be 5 rather than 4.
How practical is it to do any of this in an apartment, and in a living space? I’m very interested but don’t have any space outside the apartment I live in.
>For example, if an engineer is unsure how to use a library, they can find examples just by searching

Isn't that the case with all libraries? How does the monorepo help here?
Originally I got interested in radios when I learned to deploy wifi for industrial applications. The big thing with industrial applications is interference and reflection. You typically have a lot of large structures made of metal or other materials that block the waves. Also, there’s a bunch or rotating equipment that emits emf as well (interferers). This can make antenna placement critical.

I wish I had gotten into it earlier, but I was discourage by a university professor who basically told my senior design groups that radios were too finicky for us to tackle.

Now I participate in amateur radio and I suggest anyone who finds the topics interesting to do the same.
Especially when Twitter was slowly falling apart before Musk too. Small bugs everywhere, glacial update rate, had completely externalized and lost control of moderation etc.

The idea that the site would just implode because of a change of leadership and aggressive restructuring was just delusional.
From your source: in 2022, 4.1GW of nuclear power provided 34.7 TWh (theoretical maximum : 35.9 TWh, load over 90%), while 37.9GW of coal provided 183 TWh (less than 60% load : burning coal is expensive).

In 2002, still according to your own source, nuclear power plants provided about 180 TWh. So I stand by my affirmation: with continued 2002/2003 nuclear capacity, Germany would be virtually coal-free right now. Had they spent the money spent on buying coal on building some more wind turbines, it would definitely be a done thing.
If you shouldn't be using sudo, then you shouldn't be listed as a sudoer on that system. If you're listed as a sudoer, then you should become familiar with what sudo does.
Yeah, I adjusted my major--and arguably could have/should have changed it even more--in university. I'm not sure that forcing a high school senior to pick a major is a great practice.
> ...could remember absolute pitches for the whole 1.5 hour session; if we came back to a note, she could get it, but she was usually lost in the beginning of the session when we came in cold.

> had a pitch memory of about 5-10 minutes - while we were working on a specific interval, I could remember and reproduce the base note without being prompted by the piano, but once we moved on to another interval I'd lose it.

This is really interesting! Did either of you ever try a spaced-repetition-style approach? It seems like you've basically described the shapes of your respective forgetting curves — I wonder what would happen if you tried to train with the specific goal of extending that window, rather than just noting what your window is during other training. Maybe it's possible to work your way up to long-term perfect pitch in this way?

Especially in your case, since you already have data that your window of 5-10 minutes could extend to 1.5 hours, it seems quite doable. I wonder what would happen if you'd spent an extra 30 minutes/day for a few weeks just on this — e.g., focus on remembering 10 minutes out the first week, then 12-15 minutes the next week, etc...
„For Germany, this means that single people who make less than €1,148 in net income a month are considered below the poverty line.“

So 50 Euros would be 5%. Additionally there are discounts for the poor, often bringing the price down to 20 or 30 Euros in most states.
In my other comment I wrote "open source ecosystem" in order to avoid all the speculation about how much SPARK is used in commercial avionics and whatnot.
Humm, I am not getting it. Can you detail the setup you envision? Thanks!
Safe Harbor and Authorization Liability: Australia’s Options to Reduce Piracy
I totally understand. I know lifetime offering wouldn't be good on the long run, but it'd help us generate some short term cash in order to keep the project running. I'm planning to just keep it until we reach a certain number of sales.

Thank you for you feedback. It really means a lot
UK Government Says Nintendo Switch Can’t Handle Call of Duty
Would be interest; perhaps the red ones ARE faster.
Would be a nice product to offer to media companies that have a lot of video content.
5 hours per week of 3 METs (a 2.5mph walk is 3 METs) reduces your risk of Cardiac disease by 70%. This is from one of the bigger meta analyses I’ve ever read. The US’s exercise guidelines are based on it.

In general more is better, but it’s diminishing returns, and you could argue that more time than this could be better spent doing other healthy tasks.
I appreciate your response, if I wanted to educate myself quickly here, is there a layman's textbook you would recommend?
Just curious, as I’m not in the NY area but are most rural homes over there on natural gas or propane? In rural parts of CA, people have propane tanks in the yard which wouldn’t be effected by this. Natural gas infrastructure seems to diminish further from cities, so I’m wondering how much this actually effects rural residents
And su has to be setuid root and is pretty much mandatory and if you can exploit a bug in it you've got local privilege escalation. I don't know selinux/apparmor well but I imagine su is granted the permission to create root shells, because of course it does, so any exploit will punch through all that as well.
The most difficult part about code deletion is practicing the Chesterton's Fence principle:

> In the matter of reforming things, as distinct from deforming them, there is one plain and simple principle; a principle which will probably be called a paradox. There exists in such a case a certain institution or law; let us say, for the sake of simplicity, a fence or gate erected across a road. The more modern type of reformer goes gaily up to it and says, “I don’t see the use of this; let us clear it away.” To which the more intelligent type of reformer will do well to answer: “If you don’t see the use of it, I certainly won’t let you clear it away. Go away and think. Then, when you can come back and tell me that you do see the use of it, I may allow you to destroy it.

https://wiki.lesswrong.com/wiki/Chesterton%27s_Fence

While this tool certainly does the job of proposing code deletions, that's the easier part. The harder part is knowing why the code exists in the first place, which is necessary to know whether it's truly a good idea to remove it. Google, smartly, is leaving that part up to a human (for now).
Yeah, searing meat in the pan will raise the PM2.5 levels in my flat by a factor of 30+.
You might say that HN needs to distribute user posts ... perpetually ... and that .. revoking ... the license to a post would be problematic?
Average EU household spending in transportation is around 13% of income.

Even at only 1000€/month this ticket is only 5%.
People don't owe you children in exchange for your desire to treat them like exploited illegal immigrants. With that attitide, go and have all these children yourself.
So do you not believe actual hypochondriacs exist or something? They do.

Especially the people that will read about diseases and get anxious they have them, and while you can validly say they have anxiety issues they don't have whatever they just read about 99% of the time.

Even if there's a real disease of some sort, you don't want to diagnose with the latest guess in someone that keeps guessing different things. Their treatment needs improvement, but confirmation bias is not how you do it.
Also the animated film Balto
Good.

But relatively hard to find and work with.
Sort by new and you will get the idea of crap that people post on a public forum. Default sorting only shows you the popular/better content.

To give you a general idea of what percentage can be good images: I recently made a lots of wallpapers to cycle through daily using SD. I found a good prompt, a good model, and let it generate bunch of images continuously for few hours.

None of the images were shitty (they were all random seeds), only images I discarded had artifacts I didn't like or couldn't keep my eyes away from. With SD you can't just expect to give a prompt "beautiful landscape" and expect it to give you a beautiful landscape. It won't. You shall get shitty images and might get a few pleasing ones. You must tune your prompt to get good results.
I used to do this for crafting supplies in WoW. Eventually I stopped actually playing the game and instead sat in the auction house all day buying up all the silk bolts or whatever and reselling for slightly higher
Discoverability. It's a lot easier to search one repo then it is to search a set of repos. For the latter you need to have all the repos listed somewhere, and have them be accessible.
I understand the sentiment, but I disagree. From the last time I checked, the big compromise with GNU/Linux phones is still the lack of social media and messaging apps and appstore ecosystem. Android, with root, is every bit as much a computer as a Pinephone and Librem 5, but the opposite isn't true. Termux has PRoot, a user-space implementation of chroot allowing a full distro install. I personally don't have any problem depending on Google, I have a problem with things being locked away with no alternative. Given the option, I will happily accept the risks and void my warray to root.

https://wiki.termux.com/wiki/PRoot
I used to not really be for these bans but - the big issue that I find is that due to the gas lobby, we're not going to make progress on this front until hard hitting regulations come in. As long as you have a pipe that is being serviced going to your home - how many people can justify the hookup fee every month along with all the infrastructure to give you gas just for cooking? It's nonsensical because the amount of gas used is trivial. Therefore, the push will always be to use gas heating and other gas appliances as much as possible because the infrastructure for the building is still there. That's what the gas lobby relies on - using your emotional attachment to gas cooking (which has been a long effort by theirs for the last 50+ years) to make sure that they keep getting you to pay them money for gas for heating, drying clothes, etc. even if alternatives exist that are plenty suitable/better-for-us-all.

Also - this is going to be a miniscule amount of difference in the lives of us all. If you're so concerned - buy an old home. Good thing we basically don't ever build anything new. This is a non-issue.
it's probably low effort for a 'mere every day' haskell programmer; it's just a question of what you're familiar with, not actually deep math

(minor correction, as tromp points out, :: is evidently list construction, as in ocaml or haskell, not a type annotation)

you asked what `matchAll primes as list integer with` meant ('what is the second line, a comment?') but apparently the person who answered you didn't understand that you didn't understand. it means 'evaluate the expression `primes`, which should have the type `list integer`, and then attempt to match the value resulting from that evaluation against each of the following expressions in order'

deep math isn't simple to do even when you know what it means; it isn't just a matter of learning what all the symbols mean. this is just a matter of learning what all the symbols mean, like reading english instead of chinese. so to me your complaint reads like someone saying (in chinese) 'just a mere every day reader of novels, it looks like nothing I'm familiar with' because some text is written in english

however, the situation is not quite so symmetric as with chinese and english. with a good notation, cramming lots of symbols onto a line is a really good lever to empower your reasoning ability. consider trying to explain how to play the seventeenth measure of pachelbel's canon in words. or writing assembly instead of c, even though they're both at pretty much the same level of abstraction

pattern-matching really significantly improves the clarity of certain kinds of code, and you're missing out if you don't know what that's like

i'm guessing that #() (the only weird part) is analogous to ${} in `-strings in javascript or #{} in ""-strings in ruby: it embeds an expression to be evaluated in a context where you wouldn't normally expect expression evaluation, in this case a pattern for pattern-matching

(disclaimer, i don't actually know haskell, though i've implemented my own programming language featuring pattern-matching)
I’m not sure. I also thought that these big repos have to use sparse checkouts to not use too much space on the developers machines. So you would have to use an external code search index anyway.
I feel like this is an intellectual inside joke, so highbrow I can't really decide if it's a joke or stupidly serious.
> I tried this and a neighbor called CalFire

> I have about 20 gallons of gas in my garage

I'm with your neighbor on this one
Most people don't work on weekends. You can do shopping and cook for entire week then. This is not a theoretical proposition, I've done that a lot.
It really depends which standards you compare it, too. (and for local transportation also where in Germany you are)

As German we love to complain about the trains and while it is way worse then e.g. Japan and in turn can improve by a lot it could be far far worse.
Hmm, well I wouldn't recommend taking a whole handful of ibuprofen, but it probably shouldn't kill you (unlike a handful of acetaminophen/paracetamol, or opioids), it would be hell on your stomach, but I suppose fast-paced drama doesn't have time for realism.
If you use a flawed metric that measures nothing of note noting relative position is not illuminating.
SourceGraph is great to search in many repos.
Only because of the thermostat, right? You could short the contact that turns the boiler on.
With the toxin they put in Tylenol (to prevent abuse), you'd blow out your liver if you did that.

In books, you get "chewing asprin without the water." So yes, it's dramatic, but not realistic. It's just a way of conveying through action "Ouch, that really freaking hurts."
> And yet Californians pay enormous taxes.

Part of this is because California is the most populous state with a high average personal income.

When talking about actual tax burden averages the best way to calculate is by dividing the total state and local taxes by the total income in the state.

https://www.taxpolicycenter.org/statistics/state-and-local-t...

In 2020 the total tax rate in California was 10.01% of total personal income. This put it at 37th place among the US states, and 0.52% above the US average.

For the other most populous states, Texas was at 8.56%, Florida at 7.21%, and New York at 13.92%.

The cheapest state was Alaska at 7.13% (with Florida the second cheapest), and the most expensive state was New York (with Hawaii the second most expensive at 13.16%).

Some of this data is confounded by state revenues not being solely from taxes (or especially from personal taxes). Regardless though, California isn't that much above average, and is one of 30 states with a graduated state income tax that hits higher earners harder than lower earners, whereas 11 states have a flat tax structure.
Palaeocast, with Dave Marshall.

Thinking about the incredible sweep of geologic time did something strange to my brain
I agree they are too old. Unfortunately the boomer generation has and will likely hold onto their political power until their dying gasp as old age takes them. Normally you would have a generational transition of power about every 20 years. The boomers took over in 1990, in 2010 they held that, and in 2020 they still hold over 50% of the political power.

Historically, they as a cohort have done things that enrich themselves at everyone elses expense, and written laws where dead men rule. Their legacy is historic in that its happened before, and will happen again. Now I"m not saying they did this with malice, its a cohort (it has a specific meaning), there are good people, disinterested people, and selfish people. The people who were voted into these positions largely fall into the latter two, though there are exceptions.

Look at social security, and how the Fed works these days. Outlays for paying social security and medicare starting in ~2030 exceed all income for the interest alone and they all know this, because they have constructive knowledge of what's happening and choose to ignore it.

Here is a great CSPAN video btw that demonstrates this (I strongly encourage you to watch it in its entirety if you think what I'm saying isn't accurate):

https://www.youtube.com/watch?v=6ut1yQg2qA4&ab_channel=Forbe...

We are coming up to an inflection point very similar to what Thomas Paine discusses in his writings. Its not going to be good times given the huge asymmetry between our rights and what's actually being protected, I heard just the other day that this US citizen in Georgia has been held in jail for 10 years without being provided a defender or given a trial. Something, that strictly violates the US Constitution.

There are major problems, and you don't get anywhere by ignoring them. In fact you make it worse by ignoring them.
I have also built similar thing.
https://github.com/ashellunts/youtube-summarizer

From time to time, it is useful for me.

https://youtube-summarizer.ashellunts.repl.co
"A) use the latest hardware" count as "recently" for me
No, but I will be by the end of next week.
It's just as easy to index multiple repos as it is to index one, which means that the same goes for searching. Why would it be any different for one as opposed to many?
There's no way you'd use public transport if it cost you 49 euros a month? Hmm I think that means you simply don't really want/need public transport because 49 euros a month for unlimited use is dirt cheap however you look at it.

Frankly, I find it very odd the inhabitants of one of the richest countries on Earth argue over 9 vs 49 euros a month... that feels like next level spoiled.
> you need one little change in one untouchable private method

Tell me you don’t know how anything works while not saying you don’t know how anything works.
I think it will be interesting to see how the memory safety gains from using Rust trade off against the potential logic bugs created by a full rewrite. (Or maybe there won't be any - I guess they can probably reuse the tests from the original?)