skysight-inc/HackerNews huggingface dataset:
That example doesn't work for me. It produces no output for that number. The problem seems to be that the entry in database.csv for that number is this:

907|200||GCI COMMUNICATION CORP. DBA GE|PCS||6872

Given 907-200-1234 lookup.sh looks it up by grepping for '907\|200\|1'.

Compare to a number that works, 858-598-7654. That ends up grepping for '858\|598\|7' and that matches this line from database.csv:

858|598|7|T-MOBILE USA, INC.|PCS|tmomail.net|6529

In general lookup.sh looks for the first 3 digits of the phone number in the first field of database.csv, the second 3 digits in the second field, and the next digit in the third field.

Looking up 907200 or 907-200 (but not 907-200-) will match.

I'd guess that the database allows a blank third field to mean that the entry covers all numbers that match the first 6 digits that aren't covered by a more explicit entry.

If that's the case the database is not using that mechanism optimally. For example there is this:

360|654||ZIPLY FIBER NORTHWEST, LLC DBA|ICO||4324
360|654|0|ZIPLY FIBER NORTHWEST, LLC DBA|ICO||4324
360|654|1|ZIPLY FIBER NORTHWEST, LLC DBA|ICO||4324
360|654|2|ZIPLY FIBER NORTHWEST, LLC DBA|ICO||4324
360|654|3|ZIPLY FIBER NORTHWEST, LLC DBA|ICO||4324
360|654|4|LEVEL 3 COMMUNICATIONS, LLC - |CLEC||6121
360|654|5|AT&T - LOCAL|CLEC||7421
360|654|6|LEVEL 3 COMMUNICATIONS, LLC - |CLEC||6121
360|654|7|ONVOY, LLC - WA|CLEC||483E
360|654|8|ZIPLY FIBER NORTHWEST, LLC DBA|ICO||4324
360|654|9|ZIPLY FIBER NORTHWEST, LLC DBA|ICO||4324

which could be reduced to:

360|654||ZIPLY FIBER NORTHWEST, LLC DBA|ICO||4324
360|654|4|LEVEL 3 COMMUNICATIONS, LLC - |CLEC||6121
360|654|5|AT&T - LOCAL|CLEC||7421
360|654|6|LEVEL 3 COMMUNICATIONS, LLC - |CLEC||6121
360|654|7|ONVOY, LLC - WA|CLEC||483E

There are 92492 different 6 first digit combinations where the database has explicit entries for all 10 possible 7th digits has a wildcard/default entry also. Cleaning up all these will cut the database.csv size to 52% of its current size. Appended is a script to do that.

Anyway, it seems like what lookup.sh should be doing is doing the 7 digit lookup like it does now, but if that doesn't match try a 6 digit lookup.

Here's a script to clean up database.csv. The output is sorted by name not number, but a "sort -n" can fix that.

#!/usr/bin/perl
use strict;

main();

sub main
{
my %db;
my %wild;

while (<>) {
chomp;
my($f3, $s3, $t1, @rest) = split /\|/;
my $rest = join '|', @rest;
my $key = "$f3|$s3|$rest";
if ($t1 eq '') { $wild{$key} = 1; }
else { push @{$db{$key}}, $t1; }
}

foreach my $key (sort keys %db) {
my($f3, $s3, @rest) = split /\|/, $key;
my $rest = join '|', @rest;

if ($wild{$key}) {
print "$f3|$s3||$rest\n";
} else {
if (10 == scalar(@{$db{$key}})) {
print "$f3|$s3||$rest\n";
} else {
foreach my $t1 (sort @{$db{$key}}) {
print "$f3|$s3|$t1|$rest\n";
}
}
}
}
}
"College textbooks get pricier" -- I think this can be reworded as "college even more for the rich or those who enjoy lifelong debt". I say this as someone who has a bachelor's degree and is in lifelong debt.
Yeah, as developers you usually get to estimate your work so estimate for however much free time you want. This is especially true the older/bigger the company is. Developers with lots of experience working in a specific application can barely tell how long stuff will take. Your EM/PM/Whoever isn't going to know that you're padding time. As long as most of the time you deliver what you say you will when you say you will nobody will catch on or care.
Intel has a decades long history of very poor top level engineering management. They got petrified about the issue of how much DRAM they'd be able to put in a system in the 1990 (remember Rambus RDRAM?), and among the consequences was a 1 million part recall of motherboards shipped to Dell just before they were going to be shipped to customers, plus another related one I can't remember the details of yet.

This speaks to the sorts of dysfunction you're speaking of; certainly someone at Intel realized these parts weren't going to work in the real world.
My Israeli friend went thru his Grandmother's books after her death. Found hundreds in 'old Shekels' among the pages. Saving against some disaster I imagine.

Except they were worthless - there was an amnesty for turning them in, that had expired decades ago.
That element of the Half-Blood Prince was taken from real life. Used textbooks have been preferred by students for precisely for this reason (well, cost too, but this is a well-known benefit) in colleges since... well, probably since textbooks have existed.
Trouble is, luck is conserved. That's why you got COVID and a tax audit and three cavities at your next dental exam.

At least that's what I tell myself when someone randomly finds $100 in a book...
Good point. You can't get hold of a Pi 4, Pi 3, or Pi Zero these days for anything under "nosebleed" prices.
I am not a dev. But I've built dependency on following workflow:
Navigating to right file -> taking full path to clipboard (Ctrl + Shift + C) -> switching to work app, e.g. CAD (Alt + Tab) -> Open dialog (Ctrl + O) -> Paste full path (Ctrl+V) and hit Enter.
That's the main reason for I can't use GNOME and that awful GTK file dialog.
I can navigate really quickly in commanders, because I've used them since I've started using computer - so that makes this workflow legit for me.
Has anyone here 'adapted' to Emacs after starting out with Visual Studio / Code / etc? I have tried multiple times over the years to give it a shot but it hasn't stuck.
I think that's a fair objection. I don't know. But my lived experience
in a family who have sacrificed a lot on the alter of democratic
values leaves me with a strong bias for which I make no apologies.
> It'll take a month but then after that every legal spam call will stop.

Not the ones from politicians.
Do you want to offer some? It's not clear this even bypassed payment that should have been due. That would be worse, and still not really a vulnerability.

> Think of all the spam that would have happened, had this been discovered on underground black-hat forums.

What spam would have happened as a result of early access to a new Cloudflare feature, that's independent of any (other) bugs/security flaws in that feature?

(Also, even with the actual vulnerability here, what 'spam' would have happened? This hijacks recieving. Worse, yes, but I don't see how it helps spammers.)
From the comment it's hard for me to understand exactly what you experienced, but Architecture is a very specific roll within SAFe.

One of the biggest aspects is to avoid "Big Up Front Design" or essentially over-engineering things when you probably don't have all of the information yet. This carries across multiple aspects of SAFe and usually creates conflict in people who want to be handed a complete specification.

For some people, it's a mindset change. For me, it makes sense. I don't want to be handed a complete spec written by other people. I want to be handed a best guess with requirements that I, as the person who will be implementing it, can refine, provide feedback, ask questions and help get to a better implementation.

It assumes the people closest to the problem space (you) will have the best understanding of how to solve the problem.
> Especially in IT nothing will get you further than being smartly lazy.

One day I'll finish my "self-help" book which is all about doing as little as possible and leaving everything until the last minute in case it resolves itself. Unfortunately, I listen to my own advise and will probably never finish the book.
You could also just enjoy your time. Not every moment needs to be filled with labor
Comparing Haskell and Scala support for generic programming
A few weeks back I took a book to a nearby Little Library. I hadn't opened the book since 1987, when I was in college, but held onto it for reasons.

Right before I dropped it off in exchange for another I wanted, I thumbed through for some unknown reason. Inside was a note from a girl I knew in high school, who I'd drifted apart from somewhat. It was agreeing to my plan to:

Have her move 2000 miles to where I was going to school.
Marry in 1990.

I'd not seen the note in 1987, nor any time after, nor heard from her ever again - she presumably put that note there in late-1986, right about when we ended it. Long story, she was in town.
Graded Sensorimotor Retraining and Pain Intensity for Chronic Low Back Pain
I don't use F#, but I've def enjoyed watching some of Scott Wlaschin's tech talks.

Like the FP patterns one. https://fsharpforfunandprofit.com/fppatterns/
This is my all time favorite video to show people

> “Check robinhood. All red, just as I expected.”
I think K nearest neighbor is an underrated learning model.

Assuming you can define a good distance measurement how cool is it to use every piece of data. And with no training.

I wonder how they compare against tree based models on tabular data just in accuracy.
I understand it may not have been very clear. Though the point is that no one cares about delivery order, what they really care about is processing order. So it doesn't matter if you ensure delivery order if they process it out of order.

As for relying on the customers to get ordering correctly: it's actually more involved and easier to get wrong than people realize, and it's better to avoid it altogether in how you design your API if possible.
it means... a lot!
How on earth would you enforce such a law on a company headquartered in China?
While not really strange, I did find a book with the signature of John Archibald Wheeler, the famous physicist and advisor of people like Richard Feynman, Kip Thorne, Charles Misner, and others, on the inside cover at a Half Price Books.

I'm really happy I found that for some reason. He's one of my favorite scientists, and it just feels nice to have a book that he once had in his collection.
Thanks I hate this, but seems to be everywhere now. "This products is now 3 times cheaper!", WTF. They still haven't got to percentages yet, like 200% off!!.
Stuff Made Here: I made a robot to have fun for me
The videos on that channel are so good that they're painful to watch, when you realize how closely it matches the life you're living.

This one is my favorite (or "least favorite" depending on how hard it hits on any given day): https://www.youtube.com/watch?v=DYvhC_RdIwQ

I feel like the people doing that channel could write a very effective modern Office Space.
The login for a rival collegiate football team's bangbros account.
Fitting, overwork is a coping behavior for some people. Just like taking drugs is for others.
s/He/She/
Ask HN: Who offers 3D printed structures(not homes)?
A lot of 3D printing construction companies and they are all focused on building homes.

While I understand that the construction industry is a trillion dollar one, it is certainly not a low hanging fruit with permits and expenses and labour unions and govts involved etc.

I have asked this to some of the 3D construction startup folks and they don’t seem to be interested. Why don’t we have 3D printing services for fences, sheds, landscaping, barns, etc.

This is low hanging fruit and speaking for Ag, we need a lot of structures that are not for habitation and we could use some technology. It’s good testing ground and honestly I think it should be the first offering. Not 3D printed homes.

For even my small farm, I need a shade structure, packing shed, storage shed, office, greenhouse, barn maybe(wishlist)..if I had animals, there are more applications. I guess it is even more useful in landscaping for gazebos and backyard sheds or outdoor spaces.

3D printed Housing otoh is a pain. In California, an optimistic outlook is maybe..if ever..30 years at least. The construction unions will never permit it.
In physics even mistakes very often make the proper answer
Because investors own apple, so apple has to do what investors want. Or more specifically the CEO has to do what investors want otherwise they fire him and find someone else who will do what they want
I was in highschool when I first heard it too - class of 2000. I loved the song and Kurt Vonnegut. I have even played it for some friends within the last year.

I had absolutely no idea about the true origin until today.
We hear you. You are talking about positive reinforcement rather than negative feedback. And about gradual, quantitative information rather than hard calls on "good" and "bad". Your thoughts are very valuable here, we will take all of this into consideration.
One of my college biology professors assigned his own textbook for the class, but in order to avoid a conflict of interest he refunded his royalty to any student who purchased a new copy.

https://www.hmc.edu/about-hmc/2020/05/28/in-memoriam-biology...
On the other hand, you can't argue with a computer. That may explain why some of my coworkers seem to behave as if they wish they were computers...

It's too difficult to renegotiate with computers, too easy to renegotiate with people. When you don't actually know what you need to do, you need people. When you think you know what you need to do, but you're wrong, then you really need people. Most of us are in the latter category, most of the time.
this is not valid but its what people say 30 times smaller.
Life advice, self help, etc, all of it is too general to be helpful to anyone.

What works for a 46 year old married mother of 3 probably won't be what works for a 23 year old tech nerd.

You have this obsession with becoming some type of super human who can do things vastly beyond your peers.

Sure the average 30 year old living in LA will never buy a home.

That doesn't concern you super elite hustle bro. Hustle so hard you have 3 houses, 2 lifted trucks, and a dog who can speak basic French.

Most of us are by definition average. Actual life advice for our above character would be to move somewhere with affordable housing, only buy a lifted truck if you have cash, etc.

No body wants to read.

"Fix your life over 18 to 24 months by making difficult choices"

People want.

"Fix your life in 3 weeks, only takes 30 minutes a day"
Reading through the comments, I see so much focus on specific companies and the occasional focus on social media as a whole. You gotta keep zooming out if you want to understand the true issue which is the "attention economy".

Just stop participating in the attention economy. Well that's impossible of course, but seriously try to minimize your participation. It's a system designed to glean consumer preferences and then engineer marketing strategies for optimal sales. We don't need it. Stop over-consuming and stop feeding the system.
The JIT Productivity Method. You'll have it written just as soon as someone goes to read it.
Meta Weighs Buying Eye-Tracking Glasses Startup AdHawk
What did I say that was inaccurate or untrue?
"Intellectual property". What a joke of a term.

Why should a rightsholder should retain control of a work throughout its existence? That's what this discussion is really about - Pearson abusing the blockchain to insert themselves into private transactions between third parties. One of the biggest failings of the digital age was not baking "first sale" rights into the system from the beginning. Just like with everything else, adding "on/with/by a computer" to anything seems to be free rent-seeking territory.
The military is an at-will organization. If you don't want to do pushups then don't join the military.
If this was an option available to every consumer I suspect uptake would be closer to 50% or more. It would look a lot more like Apple's privacy features than some bespoke setting that I'm the only person in the world who cares about it. And this is probably what you're actually afraid of for some reason.
That's not localhost, that's an IP address reserved for private networks. Looks like the IP of a home router or something like that to me.

https://en.wikipedia.org/wiki/Private_network
Ultimate life hack:

1. Dude, move to Venus where a day is 5,832 hours.

2. Become a 10,000 hour expert in less than a weekend bro!

3. Profit!
Looking for internships.

Location: India, (Germany from October 22)
Remote: Yes
Willing to Relocate: No
Technologies: Machine Learning, Computer Vision, Reinforcement Learning, Quantitative Research, Python, C++, R
Resume: https://drive.google.com/file/d/1-V5ICkB7OAuCmB3jvdCIUB68c4N...
Email: namangup at iitk dot ac dot in
I am trying to like DALL-E, but trying to create any kind of interesting album art seems to violate the terms of service.

I guess it’s useful for family friendly Disney-Esq corporate media, but for what I would consider real impactful art, it is lacking a great deal.

Don’t worry artist, your jobs are safe.
its more about being more like people say as smaller by 200% isnt as understandable as 30 times smaller
It boils down to opportunity cost, established in the cost of capital.

Apple is valued at $1T and all the nice things that come along with that (huge salaries) only if they deliver growth.

It's 100% fine to not have growth, but then they have to get a different set of investors (or buy themselves out) etc. where those expectations are different.

With 0% growth their equity price is near 0. Which is again, fine, if those are the terms being made.

But it means less money for speculation, investment, R&D, expansion etc..

Every investor is allocating capital based on the opportunities in front of them.

If some other team can consistently do better, well, money will follow that.

To a great extent - we want this.

Usually corporate growth means 'surplus' for the rest of the economy and especially consumers.

For every $1 in APPL profits, probably they have created more than that in surpluses. In other words: our lives are materially improving, specifically by more than we are giving apple as consumers. Hopefully.

These economics don't always work well, esp. when there are monopolies or for where economics work differently, like healthcare. (FYI capitalism and certain fundamental realities exist in Healthcare, just that the context is different).

It remains to be seen if Apple will find other ways to grow, my bet is they are not out of tricks just yet.
Yes, it’s still my site. I mirror all old hostnames across both domains but new sites will only have the xargs hostname most likely.

It bothered me that anyone wondering about the domain would likely do a search on the word and end up at the list of SPLC hate groups. My choice was to add a disclaimer to everything I publish or just change domain names. I went with the latter.
How to support open-source software and stay sane (2019)
"I think that a lot of people don't realize how disconnected the feeling of hunger is from your actual (very minimal) caloric requirements."

True, this is my observation as well.

"The hunger response can be trained away in about a week."

Unfortunately, it is quite easy to fall off the bandwagon in irregular conditions (holidays, vacations, a visit to an elderly relative who insists on feeding you). The adaptation to IF is, in my case, lost just after a day or two of non-IFing. And once it is gone, I have to undergo the week-long self-training again.
I don't have a minor in math, and I instinctively thought "shrinking by 30x" means 1/30 of size.
I agree people having the option to find work is good, if all other things are equal.

However, it is bad if 2 people have to work for the same income that one person made before.

Employment has gone up 1% but inflation adjusted wages have gone down ~10%.
> I know my parents lost a TON of personal items, including countless photos, when the moving company that was hired by the USAF to move them out of CA to another assignment went under.

I'm close to someone who grew up in the military and lost ~all their family photos and childhood things the same [EDIT: "a similar", rather] way. A little bit lost with every move, nearly all of it gone by the end. Might be a common problem for folks in the military even if something weird like the moving company going under mid-move doesn't happen.
If you are interested in viscerally understanding gamification, I suggest you install a free-to-play game with the sole intention of understanding how you are being manipulated. Pay attention to the slow cook, the social pressures, the dopamine hits, the sunk cost. I tried this (The Walking Dead: Survivors) and I learnt a lot.

Question to gamification engineers: do you play addictive “gamified” games, or does the internal knowledge of how the sausage is made ruin the joy?
My fitness app/band let my phone do the GPS work, and google is happy to track me 24/7 and occasionally drip feed some of that juicy location data to my app.
Search is useful, but image search is vastly inferior to proper organization. Whenever I search for an image using Google or Apple, I never find what I'm looking for. I may find something related to the event, but never the actual photo. The photo might as well be lost.

The sole advantage to search, is that no one properly organizes their photos beyond something like date.
docker-slim is the wrong solution for container optimization. You can't just have a program rm -rf files that it didn't think were in use. What if you missed a code path?

https://twitter.com/ariadneconill/status/1506482425458798593
You're doing it wrong. You're supposed to correct them by telling them that Cunningham's Law doesn't apply.

/meta
WOW! Looks great! Definitely hit my nostalgia nerve!
Everything about this post seems to be like that lol There is something to it for sure. Thanks for the comment, you cracked me up :D
docker-slim is incredibly dangerous and should never be used for a production app.
Usually, I would say buy a used car then... but right now, used cars are ridiculously priced too! The used car dealerships are making money hand over fist too, and some people are out there paying ridiculous prices for old cars, probably because of the wait times on new cars. And you know the dealers are lowballing the fuck out of people who don't know any better, and asking stupid prices.

It also doesn't help that every manufacturer has basically stopped selling their low-end small cars. No more Honda Fit. No more Ford Fiesta or Focus.

The thing is, I don't think that most people buying cars right now even 'need' them. So people like you who do need one are also getting screwed by that.
I bought a Ti-92 graphing calculator in the early 2000's for very cheap, couple dollars, secondhand.

I found this odd because at the time they still went for a lot of money. Inside the very large battery door[1] I found a person's name and phone number. I thought about contacting them to see if it was stolen, but first I googled the name and found a several month old local news article about the person dying in a helicopter crash of all things. Very strange.

1. https://guide-images.cdn.ifixit.com/igi/LSItvlpfiCKAvBIb
What specific aspects do you find to be almost unusable?

There's room for improvement (new features are always nice), sure, but 'almost unusable' is quite the exaggeration when you consider that there is ~1B Windows installs and yet outside of small tech circles I've never once heard someone complain about Explorer or its usability.

It Just Works, pretty much all the time, and is easy enough and intuitive enough that I haven't even had to explain it to the tech-illiterates in my circle.

Does the Downloads folder really make you say 'this is unusable'?
Reading the code for functional integrity is already a big deal, but having to sleuth around for the sneacky hacks? No way.

I don't know what the answer is, but the model has to be changed.
In a much smaller coincidence, I read this during a traffic jam in Sarasota along the same route Charles probably drove.
I'm surprised Erlang fits into that strict static model. I have thought it better to make a language that is typed from the get-go, that compiles to BEAM. That has been done at least a few times: Purescript has a BEAM back end, and there was something called Alpaca that is more ML-like.