skysight-inc/HackerNews huggingface dataset:
> What dictionary? How do you generate it (handwaving notwithstanding, as mentioned)? It all comes back down to encoding, rather than aggregation of letter count.^

OK, first, I'm not sure your original post presents the right reading of the blog post. Sorting and using a dictionary are given in the blog post as two separate solutions, not two components of one solution. (Sorry if I'm mistaken – but it seems to read this way to me?)

Regarding your concerns about dictionary generation: I might be missing something, but this doesn't seem so hard? The first thought that comes to mind is to associate to each word a 26-tuple of integers that counts the number of appearances of each letter of the alphabet. This can be done in O(N) time, since it's an O(1) operation for each word (length of words is assumed to be bounded above by some constant). Then

1) Create a (multi)-dictionary with these tuples as keys. Insert is O(1) in the average case, you're doing it N times, so this step is O(N).

2) Go through the dictionary by key and delete all singletons. Again O(N).

3) Print the dictionary by key to get the groups of anagrams.

This is O(N) on average. It's not immediately clear to me whether one can do O(N) in the worst case – are you claiming that your way does that?

[Of course, this is not so far off from what you're doing. But it illustrates the claim that bit arrays are not necessary.]
But heap gives you O(1) max/min and Binary tree gives you O(log(n)) of max/min. Am I wrong?
> I always took this to mean the values should pack downward and should not be e.g. allocated randomly, though it never seemed clear to me why,

The reason for this requirement is that early versions of Unix did not have dup2(), only dup(). It has nothing to do with multi threading as this predates pthreads by more than two decades. The shell (sh) makes use of the lowest numbered property to redirect standard in/out/error when setting up pipelines:

int pipes[2];
/* ignore errors */
(void) pipe(&pipes);
if (fork()) {
close(0);
/* guaranteed to return 0 */
(void) dup(pipes[0]);
close(pipes[0]);
close(pipes[1]);
exec_child();
} else {
close(1);
/* guaranteed to return 1, we know 0 is taken */
(void) dup(pipes[1]);
close(pipes[0]);
close(pipes[1]);
exec_parent();
}

Code like this exists in literally every POSIX shell. Anyone saying code like this isn’t common has no idea what they’re talking about.
If you like this style of writing, I have a treat for you: https://library.sciencemadness.org/library/books/ignition.pd... (if you haven't already read it. Fascinating stuff.)
What exactly am I derailing? An unsubstantiated claim made by OP that contradicts details provided in the parent article?

“Most of the claims for deaths being filed are not classified as COVID-19 deaths … there were far fewer deaths from COVID-19 in Indiana compared to a year ago – 195 verses 336 – but more deaths from other causes – 1,350 versus 1,319 … the moving average of daily deaths from COVID-19 is less than half of what it was a year ago”

“Lazy” is not reading the article. And if “derailing” an unfounded assumption to better understand these deaths is wrong, I don’t want to be right.
Global climate change is a global problem. It can’t be fixed by small individual actions or donating to charities, however well-meaning. Slowing climate change will require international action and huge social changes.

You can not own a car, not fly, not use an air conditioner, don’t eat meat, etc., but as one person out of billions your individual efforts are negligible. You can support politicians who promise to implement large-scale change but that process is slow and corrupt.
So was she diagnosed with depression or what? Main part is missing from the anecdote.
I commend you on getting through that with her. What you describe sounds exactly like a subset of the behavior my ex-wife demonstrated, but she refused to acknowledge that she needed help and it ended in a very bad divorce. Takes a lot of mutual strength to work through all of that together.
Lastpass simply downloads your password database as an encrypted blob which you unlock locally with your master password. The fact that this unlocking is somewhat automated does not change the fact that it acts identically to your proposed solution.
I went through the exact same thing, except with a girlfriend not a wife. 100% agree that it’s important to keep your own mental health strong before you can help them. But that is exceptionally hard when they are trying to bring you down to their state at every opportunity.
It also looks like from the single angle shown here that the shed roof is pitched towards the house, so any water is going to be channeled towards the foundation. This is a terrible idea.
How shocking. An advertising company who uses search as a venue for advertising does not produce the highest quality of search results for those who search.

Stop thinking of google/alphabet/insertnewbrandnamehere as a search company. They attempted to make money from the search engine in the 1990s when they couldn't find customers willing to pay for that technology and the company chose to make money from ads. Your company is defined by how you make money, not by user perception or press releases. Google is an ad company because they make money off of advertising. Goodies they give you that leads to better targeting of advertising for them is merely good ad business, stop thinking it's for any other purpose.
That's such a big number. I still fail at grasping really large numbers like that.
That's gross margin, not profit.

Then the dealer has to pay for the land, capital equipment, salaries, utilities, taxes, interest(*), etc. Profit is what is left after all these expenses are paid.

In most situations, the dealer borrows to buy the car and then pays interest on that debt while trying to sell the car.
Hey, you are not alone with BP and there is a really great BP discord server. We have real support groups running two times a day. I encourage everyone with BP to join it. https://discord.gg/rbipolar2
This sounds very nearly almost as toxic as dihydrogen monoxide- a truly deadly substance[0] that must be used very carefully.

[0]https://www.lockhaven.edu/~dsimanek/dhmo.htm

[Edit] tough crowd tonight.
> Linux already operates by this principle. We are examining a situation where best effort was not good enough to hide poor application design.

Linux has this principle as a goal, but it's probably not checked often.

I would say this code fails the principle, independent of particular application problems.
Not sure. I'm only concerned with the behavior of white males. As one, it's the world I know, and I know it very well. You can smell Gettr's agenda a mile away. Ain't foolin no one. Well, some people, I guess.
Just searched for it a bit and still couldn't find it. One thing I could find is something by Swiss government which appears to consider plenty of factors, though I can't find any numbers that would show their results of kw/co2 equivalents.

I wonder if there is anything recent and good provided by the iaea.

https://www.psi.ch/sites/default/files/2019-05/PSI_LCA-Nucle...
> As someone who had to go rattling over the USB gadget subsystem, I can tell you that running "grep" with "find" was the standard way to find some data structure buried in a file included 8 layers deep.

As someone who tried poking around: Oh good; I assumed I was just missing something. Alternatively, oh no; I had assumed I was missing something and there was a more elegant tool out there.
>2298 emails

When will Linux move to a site like github / gitlab / something similar self hosted that supports people proposing changes without having to send every single person interested in the development of Linux thousands of emails.
Here is JPost article on the hack:
https://m.jpost.com/israel-news/article-691342
Except that the rich people have insurance that can negotiate a lower rate than the poor people
No, I meant instead of blockchain.
Start to work 4/5ths instead of full-time and use the day off for training.

Try to enjoy your free time instead of stressing up and make a goal to work to for the next 2 months ( eg. Interview preparation or interviews). Or talk about it with your bosses of they are open to it.

There's always a possibility that the next job is similar, so keep that in mind. If you're current job respects your "off" hours, than that's already more than a lot of other jobs.

Good luck!

Note : I'm no expert.
To me, it sounds like the folks that always joked about people "needing safe spaces" were just projecting all along.
Sometimes the same job but somewhere else can be the answer. The first step I took in the past was to line up a similar job elsewhere. If that fails it’s bought you at least 6-12 months of trying it out before the realisation happens and in the meantime you can make a backup plan of actually leaving the industry if you want or need to.

I’ve also left jobs without one lined up and have to say it has not gone well for me, perhaps if I wasn’t burnt out I would have interviewed better, but I’m a firm believer now of lining up a job first.

Good luck!!
After reading your comment, I visited your page and glanced around. Am I right in interpreting your specialty is coming up with how to turn a better phrase (writing)?

If so, then that's a very underappreciated domain at this time (much to our detriment, but that's for a different discussion). Not just in tech, but everywhere. The entire field has been aggressively monetized to near extinction; whatever writing doesn't directly impact revenue/profits, gets dumped onto line workers. And the results show.

The quality of writing and lucid ideas found in advertisements and landing pages is markedly higher than from say, in a somewhat-technical presentation to managers-of-managers. I've sat through more than a few quite underwhelming presentations that violated some of the most basic principles of presenting ("don't mumble hoping the slide will carry the presentation", "don't read the slide word-for-word", etc.).

There is a dearth of assistance for coaches to help improve those kinds of "writing". And a huge number of aspiring, gung-ho FAANG employees who are wondering why management won't listen to them. There's a gap to be filled here, and people with the disposable income to pay for outcomes.

Leverage your non-technical sphere as a strength (I liked your pull request journey, it is true that coders don't normally perceive and accommodate skill stratifications in our docs, a byproduct of the monetization of writing that killed too many technical writing/librarian positions in our industry). Perhaps look into positioning the writing assistance you offer to technical staff as a way to communicate to non-technical managers, where you help translate the technical concepts that have to be broken down to you due to your non-technical background, into ideas the managers readily grasp. It would help if you retained a lot of the corporate-speak that Rands in Repose sometimes writes about that you doubtless saw in your Aflac stint, and knew when to judiciously use it.

Maybe investigate some offer like helping coders write emails to managers. If that gains traction, offer small-medium-large presentation improvement coaching, based upon the length of the presentation (15, 30, 60 minutes). Where shorter lengths increase in cost. Then if that gains traction, offer coaching linked to an annual performance goal of "improve communicating with managers".
Please also publish a version that does not auto update. The aur package for google-chrome-stable does not allow in app updates, for I g the system to choose. This choice should not be taken away.
I'm not going to doxx myself.

Demand used to be low, it is increasing steadily due to mismanagement.

If you don't trust me, type "private clinic toronto" into Google Maps.
> prove hundreds of thousands have died from the vaccine. Here are some more:

That link doesn’t “prove” anything. By its own admission, it’s a “hypothesis”, and it’s based on a number of questionable assumptions, including assuming there’s a 41x multiplier of reported anaphylactic events immediately after vaccination, (plausible), assuming it’s comparable to a multiplier of reported deaths over a much longer time period (not plausible), and then assuming what percentages of those multiplied unreported deaths are “legitimate” based on a host of small sample sizes that, even if they are accurate (another assumption), we have no idea if they are representative enough to accurately scale to much larger numbers (completely implausible)

Besides, the theory doesn’t even pass the smell test. The months last year with the lowest excess deaths in the US - March and April - just happen to be the months with the highest numbers of administered covid vaccine doses

https://www.cdc.gov/nchs/nvss/vsrr/covid19/index.htm

https://ourworldindata.org/covid-vaccinations?country=~USA

Note that it’s possible the vaccines are less safe than advertised and that adverse events and even deaths are more common than acknowledged (and that vaccine mandates are wrong), and for those true numbers to be much smaller than 150,000
The very first search result Google provides is a comment I wrote myself on this site in 2012. Like I said already, it's been discussed to death.

There is not any new thought here.

I don't owe you an argument stating why Twitter is not and will not ever be considered a public utility.
Why not live a consistent lifestyle and quit your job for less pay and more meaning?
Only if they are both equally likely, which they really aren't. It's more like 99.5% natural, 0.5% lab leak. Or even less. The lab leak is mostly a very popular hypothesis in circles that don't really do science. You can spend all the effort to write a book about it but in reality the biology of zooonosis is well understood and has been established many times in very recent history, including for coronaviruses very much like this one. To hypothesize a lab leak would require some evidence other than the circumstantial, and this book presents none.

Scott is primarily interested because it allows him to crow 'I told you so', but in fact the substance that he sees simply isn't there. The superlatives with which he describes the book do not come across as unbiased reviewing but as searching for confirmation.
can you give me a link to one of these forums?
I'd suggest there are no right or wrong sacrifices when it comes to these kinds of matters. You have to decide what you want most and go for that, and find a way to not dwell on the path you didn't take.

In terms of a biological clock, nothing prevents you from meeting someone, falling in love, and starting a family if you live overseas. Lots of expats meet partners and in many places, you'll find that a lot of expats with residency are married to locals.
Isn't this the latest "Twitter but freeze peach" with Gab and Telegram and Trump's social network and etc.?
In my view its an antiquated business model and there is no virtue in clinging to it as a writer or buying into it as a reader. Ideas are not better merely because they've been printed and bound. Most ideas in this genre can be (and are) expressed in a blog post, but the legion of middlemen in the publishing industry can't make money on blog posts. One of the ways publishers stick their fingers into this process is by demanding more material.
You must be bp2 and take it more for sedation because the anti psychotic effect only manifests on higher doses.
You, that’s the word I was looking for. There are solutions out there which achieve similar objective. It’s like they the benefits of blockchain are being used for bitcoin, but if you designed one with bitcoin in mind, there is efficient solution there.
I worked at a mattress retailer after college. Each retailer would have a slightly different version of the same model. So as an example one would have 2 inches of memory foam and another would have 1.75 inches of memory foam and 0.25 inches of latex foam. But otherwise it’s the same. They did it to make comparison shopping and price matching difficult. In reality I’m not sure how well it worked. Salespeople would match prices anyway to get the sale.
How bad is the code I want to write even though I know it is wrong :

initialize : double credit = N

At every request :

penalty = (elapsedTime / window_size) - (1/N)

gain = N* (elapsedTime / window_size)

credit = min( credit + gain - (penalty<0) , N)

if( credit < 0 ) throw exception
I don't know, it seems like the sort of thing the build-your-own-PC crowd likes to experiment with. Overclocking also comes with all sorts of "potential quirks with stability, thermals, and clock speed", and is also not tested or validated, but tons of people do it anyway.
A question that I've been mulling over: How do we create more people like this? Better documentation? A... "brief guide to the entire kernel" blog series? Aggressively pushing GSoC project mentoring?
While I never took the time to quantify this, as I said, I always had a sense that this was not a viable idea. In other words, my educated guess told me it would be a waste of time to even evaluate the concept.

> If you only run your equipment a few hours a day in the summer months when your excess solar power is most abundant

As a point of interest, in my region (Southern California) the point of peak efficiency is shifted into the March-April-May period. Most people assume summer is when you do best. I too made that assumption before installing my array.

There's an interplay between available solar radiation and panel temperature. As panels get hotter they become less efficient. This negative temperature coefficient is about 0.4% per degree C. Baseline specification are given for a panel operating at 25 degrees C. In the summer panels easily reach more than double that temperature. Which means that, in round numbers, you lose at least 10% of your generation capacity. A system that peaks at 10 kW in April might only yield somewhere in the 8 kW to 9 kW region in the summer.

There's also how the energy is used. In the summer we have to run the air conditioning system nearly all day. That's about 5 kW for, say, ten hours a day. The AC system is off outside of the hottest months of the year. Which means we have a lot more excess energy during that time, in fact, if the AC isn't running we could run mining equipment consuming 5 kW for about 8 to 10 hours per day and still come out net positive in terms of energy costs to the utilities.

Also as @Nbox9 mentioned, miner heat could be used for heating the home. This means that using excess energy outside of the period of the year during which air conditioning is necessary could be used for both mining and some nominal amount of heating. I can imagine a fully optimized system where you can use this to heat water and perhaps some of the home. Crazy, I know.
In the design engineer's defense, his boss told him to "make the new motherboard blazing fast"...
You could do a test. Get someone to take your (locked) smartphone into a well-known dealership for something you aren't ordinarily interested in. Blind test, you don't know where they took the phone. Google tracks the physical location of your phone (don't know if it's possible to completely opt out of that)... trivial to match that to "dealership X" given that Google Maps already knows about those. If in the blind test you can tell your friend where they took the phone based on increased ad activity, then there's proof.

A day after I started using an Android device: I cycled to work, and my phone gives an alert and asks me to rate X. WTF? Oh right, I cycled by X on the way. I immediately turned off what I could; no more popups like that but do I really think Google doesn't track my location any more?
Google is not exactly fair use friendly
In a perfect world, yes. What I’ve found in practice is that network policies add a mysterious failure point that makes debugging traffic issues hard, especially when providing a service platform to teams that don’t understand the inner workings. TLS failures tend to be easier to grok for most service devs.
Yea please! Decriminalizing would be a great first step but won't cut out the cartels and gangs and adulteration (kind word for poisoning..)

Would also love to see over the counter narcan. suboxone for any who wants it without the compliance burden.
Funny joke if you're 12. Which I guess is why everyone heard it from their middle-school chemistry teacher.
Yeah sorry. I’m not going to just listen. A lot of the time you need to push them to take the next step because they are STUCK.

Go exercise, eat some healthy food, take your damn meds, try new meds, try ketamine if suicidal, try psilocybin if treatment resistant.

But coddling depression just drags it out longer and digs the spiral deeper. Yes, it is a disease which means it needs to be treated.
Mmm. You've given a code snippet while Zak had a single macro call. Let's make your code into a function with signature:

def atdt_exception_suppression(*list_of_fns):
...

What you've done is leverage the fact that functions are first class objects in Python (ie, can be passed as arguments) to achieve the same result as a macro. Which is cool, it works. Probably slightly better than a macro for this use case because we get a neat function boundary.

But macros are a powerful option because it doesn't matter if functions are first class or not. If you are using a language where functions aren't first class objects, a macro system would let Zak implement anyway.

So you are correctly identifying that Python can implement this in an alternate way as a function, but a macro system is sufficient to do this and a whole batch of other tricks even if first class functions aren't available as a feature.
Don’t have HV then, at least as part of the structure. Say, 14.8V DC and a removable 120VAC inverter.
Permits are for both safety _and_ tax reasons. Adding outbuildings to your property increases the value, so you should have your taxes increased, by the same logic that people with more expensive houses should pay more in taxes than people with cheaper houses. And property taxes, if properly codified and enforced, are a good way to ensure rich people can’t avoid taxes by hiding it in real estate. They also incentivize people to actually use land for productive purposes rather than hoard.

So unless you have some disagreement with tax in general or property tax specifically, I’ll argue that the permitting and inspection process in most cities is a good thing for society despite the personal hassle. It ensures that buildings are safe and helps the city assess the changing value of homes.

Quick edit: I will acknowledge that your point is correct that inspections and taxes cause a lot of work to be done without notifying the city and hoping they don’t notice.
I'm glad to hear you are in therapy; that's a good start. Have you had a medical workup? Can you go to your therapist twice a week? It sounds like you have a lot to work through. Can you bring your SO to therapy at least once just to see how desperate your situation is?

I've been in a similar situation and I realized one morning, while shoveling snow, that I would prefer to shovel the whole street instead of doing what I was supposed to be doing. I found that physical activity made a big difference for me; if nothing else go for some brisk walks.

Hang in there - you can make it.
>You can claim all you want it doesnt work, but facebook and google have very hard leetcode interviews and are known for the best software

Really? Google APIs I've used have been 70% crud, 30% great. Facebook has been consistently good, eg PyTorch and React.
Yes, they do.

I frequently research historical topics on India, and I get no results or single digit number of results.