skysight-inc/HackerNews huggingface dataset:
They are not the same. "Expected" refers to the running time of a single operation when it uses randomness. "Amortized" talks about what happens when you call the same operation multiple times (it has nothing to do with randomness).

Hash maps provide O(1) expected lookups. This running time relies on randomness, and it is the average running time of one operation. If you are very unlucky (or if an attacker can predict your random number generator), then it is possible for every single lookup to run in O(n) time.

Dynamic arrays (vector in C++, ArrayList in Java) provide O(1) amortized push calls. Dynamic arrays sometimes have to copy every element in the array into a new allocation when you call push. However, by doubling the size every time this happens, the copies happen so rarely that if you push k times (starting with an empty array), then the total running time of all k calls is O(k), even though a small number of the calls are much more expensive than O(1).

So, unlike expected running times, an amortized running time of O(f(n)) is an absolute guarantee that calling it k times in a row never runs slower than O(k*f(n)).
Native apps that autoselfupdate have RCE vulnerabilities by definition and should be considered remote access malware already, before the developer release keys are compromised.

I am the reason Signal desktop now has a preference to opt out of autoupdate.
I feel like probabilities are best stored as inverse logistic function, because the closer the probability is to 0 or 1, the less you care about significant digits, because the events are going (not) to happen anyway. (That's why I am proponent of LNS.)
Passing an ISO audit is a long process that takes several months. As part of the audit, the experts of the Accreditation Commission examined the existing information environment and the administrative, documentary, organizational and technological aspects of the TechMagic security system.

In the end, it indicated that implementing best practices and quality control procedures yielded results. There is always room for improvement, but successful ISO certification is a major milestone on our journey to the high quality and security of the developed solutions.
Eugenics doesn't necessarily mean kill the baby. It meant that in the past only because science wasn't advanced enough. Techniques to modify the human genome exist; we could potentially "fix" the bad genes without killing the child.
I know this is HN, but an entire thread about imposters and not one mention of Among Us... maybe that's just my viewpoint :)

But that said, I do wonder if Innersloth actually has to deal with similar issues like this, especially after the boom of interest in the game. Maybe not?
This method is just bad and annoying aff, even if that header makes sense to appear. Program in a hysteresis at least and only pop it up after 20-30% of upscroll.

Most implementations do the inverse: you overscroll a little, want to fix it, but the header appears. You want to scroll it away, but it persists for a while, so you lose track of where to start to make the line you needed to the top. Because user humiliation is a MUST for a modern site, I guess.

iOS Safari does it much better than a simple hysteresis for its URL bar, but I’m not sure web has enough event detail to implement its way: pull down does nothing, only “kick” down shows the bar.
No, we know how to optimise all these issues. They're solved, through a combination of online profiling, inline caching, splitting, deoptimisation, scalar replacement, etc. (I wrote a PhD on it.) I don't think you could name a single Python language feature that we don't know how to optimise efficiently. (I'd be interested if you could.) But implementing them all is a difficult engineering challenge, even for Google, mainly because it involves storing a lot of state in a system that isn't designed to have state attached everywhere.
> And all of that risk for the very marginal benefit of disabling some pipelines that weren't going to be used anytime soon any way?

To ensure they weren't going to be used anytime soon.

> Even if they think there is a 99% chance they'd not get caught, that is a 1% chance of completely destroying relations their with Germany, Scandinavia, the EU, and probably the entire world.

1. The US has a history of taking insane risks with clandestine submarine ops. Much worse risks than this; they did much that could have provoked the Soviet Union during the Cold War, when both sides were threatening each other with nukes.

2. If Germany/Scandinavia/EU/etc did find irrefutable proof that the US did it, they would probably bury that proof and pretend they never saw it. It isn't in their interest to break from NATO even if America did this and they know it.
I received a message from a stranger on LinkedIn in fall of 2020: “Good talking to you the other day.” I assumed they’d intended to message some other person with the same name, but no, it turned out that someone had applied for a developer position at their company as me. They gave me a link to the person’s profile on another site, which was basically a copy of my LinkedIn profile, with some details tailored (presumably) to the role in question. We both contacted the site and soon after the fake profile disappeared. I hadn’t thought about it since. A strange detail from my perspective, reading this thread: my first name is also Connor.
You would want liquidity as a measure too. Or like, dollars spent per year, or something.
If the US Navy were up to "something sus" they probably wouldn't have their ADS-B transceivers on...
A not-so-tiny nitpick: All of the code examples on m3o.com for DB access are a recipe for command injection. They all use a string with "columname == literal" format. That's near the top of all top-10 security don'ts lists..
She did publish her criticisms:

https://www.nature.com/articles/nphys4079

https://twitter.com/skdh/status/1574341154757279746

There is not much market or political pressure for self-correction in academia, it's all reliant on noble behavior of the leaders of the field.
When a resource is cached, how do you know ahead of time how long to cache it for? If you set X-Accel-Expires to 5 minutes, but the resource is edited 3 minutes later, how do you evict the item from the nginx cache?

You can figure out where the item is in the nginx cache directory and delete it. But that is complicated by the fact that your app and nginx run as different users. Or you can send a specially crafted HTTP request to nginx assuming you have some kind of backdoor proxy_cache_bypass setup. But that's ugly too. You either have a race condition, or you have to hang your app's response until the invalidation request completes.

If there's another way to evict an item from the cache, I'm all ears.
Yes, I completely missed the `100` parameter to `read`. And as a sibling comment said, I also understand them to be suggestions, but in this case, I think `read()` and `read(param)` should be treated as two separate cases, or at least this caveat made clear.
Probably not but users tell me when something isn't working. I spent my entire career in this sort of development model where 80% was good enough, put it into production and then moved on. When something breaks, fix it, when something is really complex test it, when the logic is critical mock it.
I'm not sure about cheaper, but you could use an email address from another provider without a custom domain. That could be an @fastmail.com (or other domains Fastmail supports) address or an email address from Posteo.de (paid) or Tutanota.com (free/paid) or Mailfence.com (free/paid) or ProtonMail.com (free/paid). The risk of getting locked out is negligible with these providers. Fastmail and Posteo have been around for a very long time and it's not likely they'd shutdown in the next decade or two (giving you plenty of time to re-plan as time passes).

You may change the email address with your domain registrar at any point in time to manage future risks.

My suggestions:

* stick with a (preferably paid) email account on a domain that's not yours but is likely to be around for a long time

* choose one of the common TLDs like .com or .net or .org for the email address (these TLDs have the least likelihood of disappearing or being blocked by anyone)

* make sure you keep the email address active (by logging in and/or paying on time)
It'd be interesting if some Y2K type bug caused the brakes on all self-driving cars to fail at the same time, rush hour on a Friday.

It works 99% of the time could be true, but the catastrophic failure modes might be unknown to us, i.e. not just be a wreck, it might be something much larger and less fathomable.

Maybe it'll all be better than what we have now, but of course there's no guarantee.
At least GitHub is working so we can complain about it.

But in a more serious now, it seems like it is more than just that, their website is also not working properly.
If you have a guaranteed compounding money machine that out perform the market by 20% just let it run, sooner or later you will be able to buy out those who did not invest in you.
If its just a useful recommendation engine than there are indeed a lot of questions relating to personal finance or investment strategies that have nothing to do with machine learning that needs to be addressed for PMF. You don't need better models you need to understand the needs of your customers.
My favorite bit of heraldry is how the coat of the UK crown changes depending on where it is: IIRC there is a facing lion in Scotland instead of the rampant lion + unicorn in England, and the quarters on the shield are different too.
I am not saying we should let diabetic babies die at birth. I am simply reflecting upon the fact that their genes would have been removed from circulation in the past; this is no longer the case.

If we disallow nature from taking its course, it will have consequences on "genetic quality". Following that train of thought and assuming we don't want to kill genetically malformed babies, an alternate route must be chosen. Better in-utero screening, CRISPR to fix the deformed genes, etc.
Bulbs nowadays are LED and don't get warm.
Connor: I found it kind of a funny twist that when I wanted to leave a comment on the bottom of your blog, it assumes that my name is Connor Tumbleson. It's like you want people to pretend to be you ;)
I don’t want to type secrets on a keyboard I don’t own, and I don’t want to display secrets on a display I don’t own. YMMV.

I would assume any public keyboard is basically the password equivalent of an ATM skimmer.
They mean the amount of storage, and they're only counting additional memory allocated by the algorithm, and not the memory containing the input.
Yes, on the iPhone is even more subtle because you can’t have access to the folders inside the filesystem.

Anyway I’m using less than 50GB on my iPhone, is hard to keep the space low because you have to check lots of things. For example I had almost 1GB of Health data that were steps and other things from years ago but I wasn’t able to free this space also after that I deleted all the records inside the Health app.

Finally I discovered that these data were from Apple Watch cached data, I had to disable the health app on the Apple Watch and then I went able to retrieve back my GB (3/4) of cache.

In this situation the records were useful (if you need it) but it was very difficult to find how to clear this space if you don’t want all these data. I’ve never thought that were data from Apple Watch stored inside the “other space” on the iPhone. At least not some GB.
I've not tried it, but this approach apparently takes 10-20s per image?

https://reddit.com/r/StableDiffusion/comments/xbo3y7/oneclic...
>Which repo or build are you using BTW, is it the one related to this readme?
https://github.com/magnusviri/stable-diffusion/blob/main/REA...

Yes, this one. However it was like a month ago I think, so speeds might have improved. I'm getting ~2.2s/step with another implementation: https://news.ycombinator.com/item?id=33006447
USofA nuclear physcists certainly made such an argument against pursuing the development of nuclear fission weapons, they said such things were beyond the reach of US industry in argument against the intial pleas to do so from the UK MAUD committee and a following letter from Albert Einstein.

They were eventualy persuaded by an Autralian nuclear scientist acting on behalf of the Commonwealth MAUD scientists.

The issue with the endless(?) chase after ever more exotic particles is that every iteration levels up by some magnitude of effort, where nuclear fission weapons were once ( just out of | just within ) reach and subject to furious debate is more the case that ever fresh exotic particles expontentially escalate beyond actual resources.

Once we ring the circumference of the planet and use all the PetaWatts we can currently generate .. what next?

It'll take a while to level up to smashing suns together .. with no guarentee the rabbit hole is halfway plumbed.
https://news.ycombinator.com/item?id=33006231
YMMV but in college I learned lots about

- having to work together with assholes towards a common goal

- how sometimes you can cram for a deadline, but sometimes you can't

- how, often, how well you do is just politics and networking

Obviously fuck everything I learned about however pushdown automata worked. That's not relevant to my career now. All the above still is.
Show HN: Restapp.io – SQL Data Modeling Tool in No/Low Code
Hey all!

We've been working on RestApp V1 and this is our first time posting it on HN.

It's an No/Low Code data modeling tool that enables you to build & maintain data pipelines with a visual programming interface. We don't store your data but we compute them through Apache Spark for query speed & efficiency.

Here's some features:

`Connectors: Connect to any source and destinations (DB, DWH and SaaS Applications). We currently support MongoDB, Snowflake, BigQuery, MySQL, MSSQL, SFTP (JSON, txt, csv, excel files supported), Hubspot, Stripe, GDrive (JSON, txt, csv, excel files supported).

`Pipeline: Visual Programming Interface where you drag-and-drop SQL, NoSQL & Python functions instead of writing them to create a query and debug it easily.

`Automation: You can automate your data pipeline (Job) through a scheduler.

`Domain: Think of it like a workspace in which you can share securely your connectors and pipelines to specific users (colleagues, partners, clients...)

We've designed this because as a data team member, we were writing a lot of long SQL queries with bad performances and we were getting headaches by debugging them.

Now you can build, monitor and debug any kind of data pipelines with just Drag-and-drop built-in SQL functions to save you tremendous amount of time & effort.

We're working on this continuously so we're keen to hear any feedback. Feature requests and critique are more than welcome.

Try it out for free (30min of computing time offered each month): https://os.restapp.co/signup

The Getting Started docs are here for anyone who wants to check this out: https://documentator.io/d/documentation-restapp and https://restapp.io/blog/how-to-build-data-pipelines-in-no-co...
I find the relationship (or equivalence?) between data compression and ML highly interesting and expect more advances in data compression fueled by progress in ML research.

See also: "Text Compression Is Equivalent to AI", https://news.ycombinator.com/item?id=30712059
It's not two lines of code... It's 2 lines that enable tens of thousands of lines of library code by invoking a new optimizer...
Nowadays everyone and their mother has a smartphone on them. Place down your smartphone and start recording. Move to the switches and flip them as needed. Check back the recording to provide your answer.
Yea we are aware, there's a lexer/parser but ideally we should have some Query op and use prepared statements. I am probably looking for some additional help on that front in the near future.
An underwater pipeline blowing up? In a Tom Clancy novel it would definitely be a submarine doing it. Tom Clancy wouldn't pass up an opportunity for a submarine subplot.
>That’s because there are no reasons for the US to do it.

As said before, it would be to prevent Germany from caving and turning the taps back on in winter when they are desperate for gas.
Places swanky enough to offer stocks and benefits.

The idea that all are equally lined up against the wall for quick execution. Typically happens at swanky/rich companies leading up to more “equity/inclusion” pushed down your throat.
Transparency, all of these people get the majority of their wealth from ownership of public companies. So it is easy to estimate their overall wealth.
Equitable pay is pay both the employer and the employee mutually agree upon.

Everything else is agenda-based.
I also wouldn't buy another car without CarPlay.
Why do you need gas to heat homes??? Heat pumps seem like the most ecological solution.

Let's face it, we're in this shit because of political shortsightedness, not because it was the best way to go.
Labour is 4x cheaper. Bill of material cost is going to be pretty much the same everywhere. Depending on the product, the labour cost of manufacturing might only be 20% - so that 4x turns into a 15% saving on cost of goods. That needs to be contrasted against shipping costs and the overhead of managing a Chinese factory.
OS-wide caching service when? Integrate automatic management of maximum cache size and we're done.

Having carte blanche access to $HOME -- or any other directory really -- should not be a given.

A lot of these problems can and should be fixed by OS services or, if these huge and wealthy companies can't be bothered, they can at least produce the interfaces/contracts and have other vendors implement them.

I honestly didn't expect that in 2022 we'll still be needing disk cleaners. It was somewhat expected back in 2002 but today... it's really shameful.
>Few people actually have desires like "I want more inequality

It's dressed up differently. They talk about cutting "bloated" public sector budgets or the necessity of austerity.

Nobody calls themselves anti choice or pro death or pro war either but lots of people are.
Thanks for the positivity and feedback!
I will never not upvote this link.
The fact that the twitter interviewer introduced themselves as a xoogler is absurd.
Agreed. The car manufacturers will lose control of the "car user interface" if they take on Apple's new CarPlay. My prediction tho is that some manufacturer will be desperate and take it and on then its a slow moving wave that crests over the industry as consumers ask for it.
Fixed sidebar doesn't work well for mobile devices. A button to show them works, though.
It doesn't change the time complexity. Both are O(n). Your point about convenience stands, though.

Actually, if you go into fully pedantic mode, the set version is worse. Hash-based set insertion is commonly taken to be O(1), but that depends on hash comparison being O(1), which depends on using single-word hash values, which means your n is bounded by eg 2^63 (50% occupancy) or whatever. Honestly fine in practice, but hash lookup isn't "as" O(1) as indexing into an array. (ie, it requires a less realistic cost model.)

You also need your keys' length to be bounded by a constant. Otherwise just hashing everything will exceed O(n).
Have you ever worked in Maintenance?

I worked on industrial maintenance for 7 years. While some of what you say is true, there's a lot wrong.

> They are usually lowly paid and have low moral because what they work is chore.

Not the case for me or anyone I worked with. The pay was very good. We had skills that were very hard to replace (PLC programming, high-tech press fitting, experience on very large machines that were basically one of a kind, so you can't just take people from other companies that have the same thing or even close). Morale was high because even though engineers and managers don't respect us, we didn't respect them either so we could almost do anything we wanted! Which was ok because we were more needed than they were... one day off for us cost millions to the company if a machine stopped working (an engineer could take a week off and no one noticed).

> They also do not get to enjoy creating new things.

In some shitty companies maybe... I was able to design from scratch large machines that we then proceeded to build and use in production. Really cool stuff that I really loved.

My last job in maintenance let me spend most of my time writing software for the maintenance inventory, which was hard to keep up-to-date and off-the-shelf software for that was very expensive... despite us having fairly simple needs (which is why was able to write it myself using a mix of VBA and MS Access... this was a long time ago). After that, I noticed I could do software and started going to uni for a Compute Science degree. Which I attended WHILE working in maintenance as the job was mostly waiting for shit to happen so I had lots of "free" time. Took me around 10 years in software to start earning substantially more than I used to in maintenance.

I did it mostly to avoid the shit parts of the job: cleaning shit, changing oil, greasing gears and what not... that part was not fun.
Yep. I spent the best part of a decade fretting and procrastinating over one day sorting out 3-4 Google domains. When they announced they’d start charging I finally decided to move to and was astonished at how easy the migration to Fastmail was. I was done in about an hour across my desktop, laptop and phone. Haven’t had a single blip of any kind since then.
Tried to get this running on my 2080ti (11GB VRAM) but hitting OOM issues. So while performance seems better (but can't actually test this myself), I'm unable to actually verify it as it doesn't run. Some of the Pytorch forks works on as little as 6GB of VRAM (or maybe even 4GB?), but always good to have implementations that optimize for various factors, this one seems to trade memory usage for raw generation speed.

Edit: there seems to be a more "full" version of the same work available here, made by one of the authors of the submission article: https://github.com/divamgupta/stable-diffusion-tensorflow
Was the Higgs boson discovery not progress in particle physics? Wasn't that only like 10 years ago?
Wait, so you're just going to ignore each point of mine every time I give you evidence and switch to something else? Because right now it looks to me like you're saying "Ignore what you know, pay attention only to the articles I cherry pick for you".

Kind of like calling Bandera's collaboration with the Abwehr "nazism", but pretending that it wasn't nazism or even nazi-collaboration, when Stalin signed a pact with Hitler to divide Europe and conducted joint military invasion of Poland in full knowledge of what will happen to the Jewish population there...

No visas until you guys work on your own self-awareness! :D

P.S. Just to make it a bit easier for you, because I suspect The Cult of the 9th Of May is interfering here, but Ukrainians understand that history is not a Marvel movie - heroes can be flawed to say the least. Just because OUN/UPAs actions were criminal against Poles and Jews doesn't negate the fact that their fight against the Nazis and russians were heroic. THAT'S HOW BAD YOU GUYS WERE.
>I have the time to build a new startup empire in real life, which I don't.

Real life doesn't work that way, you will first have to work 20 years under the previous emperor.
Ask HN: How to be less opinionated?
opinionated person = having and expressing very strong ideas and opinions about things.
Oh, this is hilarious. Well done for the 'Autobots roll out'! :D
> Just spitballing here, but why not a German opposition group?

More likely the opposite. With the pipeline intact, German opposition could tell voters they will turn that gas on, something the present German government isn't willing to do. Now they can't, so the German opposition has less to offer.