skysight-inc/HackerNews huggingface dataset:
You're doing it wrong: you pass LoggerSocket as a function argument. You're trying to use it in a very procedural way: you create a logger of a concrete class, you pass it to a function which expects a concrete class, you call a function on it. Of course it will be the same, and we have none of the benefits of OOP in this example. In a real project, the logger will already be preconstructed somewhere else (DI framework, for example, but manual initialization somewhere at startup works as well) and stored as an object field of the current class (in a functional language that would be a captured value). So at most of the call sites it's going to be just this.logger.log("some error happened") without any mention of sockets or any other kind of boilerplate/implementation details. Our client class has a single responsibility by delegating additional work to a dependency defined as a simple protocol ("interface") in its constructor, which is useful for readability and modularity (you can inject anything you want, provided it implements the protocol), and in case implementation details of the dependency change, we don't have to modify every call site. Another thing is that your code is not testable because you can't swap the socket with a mock (at least, in languages with strong/static typing). You can implement all this with structs and function pointers in something like C, the difference here is that object-oriented languages have nice syntax sugar for it.
You should probably sit still and not move around too much in order to minimize the number of calories you need to stay alive. If that's the metric we're optimizing for, anyway.
dlib is pretty good: http://dlib.net/
I think I am just confused about the rural vs. big city divide you are trying to make.
One clear benefit of ensuring disparity of rail systems across adjacent countries is protection from an impromptu invasion. IIRC for some countries during the WWs, that was a main reason for the differences and was in fact effective. I wonder if the rail systems difference helped avoid Russia using the rail system for the invasion of Ukraine.
I have been down this path before. The author might benefit from a healthy dose of Stoicism. Yes, everything is imploding. It always has and it always will be. Yes, nobody truly understands you, and we're all putting on a show to make it through the day. That doesn't mean there isn't something real that has value in this facade of a fleeting existence.

You can shut the world out if you like, but it is your choice. You can engage with it in all its horrid imperfection, and it will engage you back. Not on your terms but on its own.
This might clarify the situation, for C or C++ folks:

// heap-allocated, fixed-size
struct BoxStr {
unsigned length;
// INVARIANT: this points to a heap allocation of length bytes, and is valid utf8
unsigned char *data;
}

// heap-allocated, resizable
struct String {
unsigned length;
unsigned capacity;
// INVARIANT: heap allocation of capacity bytes, the first length of which are valid utf8
unsigned char *data;
}

Of course you could resize BoxStr, but only by reallocating `data` to the exact desired length every time, which will kill your asymptotic complexity.
That is an excellent book.
> CoPilot using code to train a model doesn’t violate any software licenses.

The argument GitHub advanced for this was absolutely ridiculous: that code stops being code when CoPilot analyzes it, qualifies only as text while CoPilot analyzes or suggests it, but magically turns back into code if/when the user incorporates the suggested text into their code base.

The real argument GitHub made was much more credible: the CEO came on here and said something like "the legality of code reuse is an interesting new area of law and we welcome the debate," which in lawyer terms means "we have smart, well-informed lawyers, and we can easily get these cases in front of dipshit judges who don't understand technology."

It's an interesting product, and I hear good things about its utility in practice. But the legal argument is utter nonsense. CoPilot definitely violates many software licenses, and knowingly so.
Random trivia I learned from a visit to a fruit farm a few weeks back: Fruit farmers much prefer bumble bees to honey bees because they're much better fruit tree pollinators - bumble bees start much earlier in the day than honey bees (e.g. 07.30 vs 12.30), will work at much lower temperatures, and will pollinate 6 flowers in the time a honey bee takes to do 1 (because the honey bees tend to stick around longer on a flower to get more nectar out).
Poland actually has some wide-gauge railways connecting Ukraine to Silesia region in Poland (originally for moving coal, steel and sulphur between Ukraine and industrial part of Poland, now used for various things including moving refuges out of Ukraine). See https://en.wikipedia.org/wiki/Linia_Hutnicza_Szerokotorowa

So it's not true that all the reloading has to happen on EU border.

We also have trains that can move from standard to wide gauge and back with minimal delays. For example https://en.wikipedia.org/wiki/SUW_2000 but there are also more modern versions.

The main problem is simply too small capacity of railway transport compared to sea transport. We'd have to increase the number of cargo trains Poland and Ukraine owns by orders of magnitude to move all that grain in a reasonable time.
I don’t know anything about Muslims being denied in TN but suspect there is more to it than their religion because TN has been a SHALL ISSUE state, and is now a CONSTITUTIONAL CARRY state.

So whatever it is you are talking about does not apply like it does to CA, NY, NJ, HI, MD, and others being MAY ISSUE states.

In TN now, you need no permission to concealed carry, so unless prohibited by other laws or statutes anyone is free to do so, regardless of religion or what the local police think your rights should be.
Yann LeCun’s big bet for building intelligent machines
Is there official documentation about what `str` (without an ampersand) is? For example, documentation [1] says that `str` is a "string slice" (without explaining what "string slice" mean), and then goes on with description of &str.

And a book on Rust [2] says:

> A string slice is a reference to part of a String

This seems wrong, because &str can reference static strings which are not String. And if str, or "string slice" is a "reference", then &str is a reference to a reference?

And later:

> The type that signifies “string slice” is written as &str

But the documentation said that "string slice" is str, not &str.

Also, I wonder, what do square brackets mean when they are used without an ampersand (as s[0..2] instead of &s[0..2])?

Also, is an ampersand in &str the same as an ampersand in &u8 (meaning an immutable reference to u8) or does it have other meaning?

[1] https://doc.rust-lang.org/std/primitive.str.html

[2] https://doc.rust-lang.org/book/ch04-03-slices.html#string-sl...
with perks of being a wallflower, belongs to a very strong subgenre of epistolary novels by narrators named charlie
If you watch the top Geoguessers it looks like magic. They immediately know where in the world they are within seconds.

https://www.youtube.com/watch?v=275VkeAlu90
A very visible example of why some delivery dates matter more than others within a larger project program, however I suspect they approached this as a handover milestone as in there was little to no scope for the JPL teams to participate in and respond to testing with code changes. If any contractors were involved I hope there are no delay penalty clauses because waiting for the next launch window is a lot of idle time to be on the hook for!
Almost $4B in Bitcoin Miner Loans Are Coming Under Stress
The difference has to do with ownership, and it has nothing to do with mutability. For both types, you can mutate them given a mutable refence, and you can't given an immutable reference.

For an example, an `&mut str` can be modified via various methods such as make_ascii_uppercase.
Firewalls have not much to do with running untrusted executables... You are confused about what a firewall is for (it's for managing network connections, not prevent virus, etc)...
Commando Network Coordinates Flow of Weapons in Ukraine, Officials Say
Charge them for it and see how it goes. If it’s successful and very useful then you can iron out the details.
He's hilarious. Great content creator.
I’d strongly recommend discussing your feelings with a therapist

Edit: to expand on this, yes, you identify some real problems with the modern world. But no, you don’t have to live like this. And a therapist may be able to help.
> Yes, you can dump all intermediate results into a file. But then it's no longer a pipeline.

It was an example, not a recipe.

And why wouldn't it be a pipe? It is a pipe, with an explicit commit step. That's what you asked. It isn't an "intermediate" file, it's a journal/log file before the commit, if you will.

While I've never used gsutil, I guess a similar construct would be "gsutil cp - gs://example/test.data.sorted.tmp" followed by "gsutil mv gs://example/test.data.sorted.tmp gs://example/test.data.sorted".

Updated example:

set -o pipefail
gsutil cat gs://example/test.data \
| sort -S300M \
| gsutil cp - gs://example/test.data.sorted.tmp

if [ $? = 0 ]; then
echo Commit
gsutil mv gs://example/test.data.sorted.tmp gs://example/test.data.sorted
else
echo Abort
gsutil rm gs://example/test.data.sorted.tmp
exit 1
fi

Yes, I know it doesn't abort it early. I'm sure it can be done, I'm not sure it can be done neatly (maybe with coproc?).

And what I still don't understand about your example is how solely depending on killing the gsutil cp command early enough isn't racy. There's gotta be an explicit step, no way around that.
GeoGuessr has really blown up with the "Duels" mode. You really should check some of Tom's latest videos on YouTube if you haven't already.

Surprisingly I have to give some credit to YouTube algorithm since I got recommended other entertaining videos from big creators, that I don't usually follow. For example this one where Ludwig plays with GeoRainBolt. https://www.youtube.com/watch?v=FqwSQzlJozw
Not GP, but for me the phrase is referring to the idea that everything needs to be professionally administered like an enterprise business (e.g. government, colleges, etc.) with organizational structures that reflect that. It typically values process and procedure over curiosity and innovation.
His "straight line missions" on YouTube are really entertaining. The concept (crossing some piece of land in a completely straight line) is simple, but leads to quite some interesting challenges in practice. His brillant story-telling makes the videos very compelling.
> “Wait—it looks like the Supreme Court is using two spaces between sentences.” It appears so.

Yeah, they're not animals.

> And who knows? The Supreme Court might still switch to one space. Greater precedents have been overturned. My amicus brief is ready.

Please no.

When parsing text, I find that ". " is an unambiguous sentence ending, while "<stuff here>. <more stuff>" can be ambiguous -- maybe the '.' is part of an acronym, say, or the author might be ending DNS TLDs with '.', say. Text is much clearer with two spaces, or one wider space, after sentence-ending periods.
They are, because the armchair critics are focusing on the edge case scenario of populating a mostly blank file in a blank project.

Yes, demoing it in that setup, which the FAQ explicitly said not to do, will result in unusable IP infringement.

But when using it in a mature codebase that flavors the output to match the existing code, what you get pretty much doesn't ever match the training data vs reflecting a fusion of the training with your existing code.

So you have 90% of the conversation occurring by people who appear not even to have used the thing in any considerable way but saw demos of the edge case fail condition, which probably occurs less than 1% of the time in actual usage.

It's a good idea to have serious discussion and debate about the intersection of IP and AI.

But it'd be refreshing if that conversation orbited the reality of the intersection and not a largely fictional bogeyman.
this is a really good point.
I just discovered this entire world from reading this New Yorker article. Having a great time trying some of the easier ones (world cities, etc.)
> Personally, I'd strongly recommend not sharing sqlite connections between threads anyway for those reasons.

I have to admit I am surprised this would work at all without blowing up in your face in surprising and horrifying ways.
This was a mistake. Having str and StrBuf would have been significantly less confusing than str and String.
Yes, recently submitted ( https://news.ycombinator.com/item?id=31456007 ) and IIRC, the verdict was it's a bit shady and sketchy on the security front. Unfortunate.
> You can engage with it ... and it will engage you back. Not on your terms but on its own.

So true, instead of trying to survive like most of humanity has done in the past, we've reached a point where, in our comfort, we now expect much more from the world. We expect relatable movie plots, novel twists, Disney endings, and the ability to push 'reset' on bad outcomes.

Why is the world so messed up when everything looks so good on Instagram?
We’re all going to be living on cricket powder in 20 years.
> If there had been a plague in elite homes, we would have heard about it.

Why?

> And there aren't all that many elite homes.

Ok, so why is there any general lesson here? And approximately how many homes are you counting as "elite"?

> if a teacher wants to retire at 55 - fund that fully, with Fed help, if necessary

I eagerly await this policy. Though it's too late for anyone in the 2020-2021 school year. And how do you plan to deal with the resulting teacher shortage? There's actually already a teacher shortage, because many decided to quit in the past couple years.
On one hand, I don't NOT want to be empathetic, but this feels like a ridiculous comparison, and I suppose it's my hope that the author understands that at some point, and writes a part two with bit of "Okay, I was being a bit dramatic, though it was how I felt."

He has/had freedom to change this in a way that your subjects in the story likely did not.
Google warns of 'hermit spyware' infecting Android and iOS devices
Nor do they have to. The goal of Copilot is not to simulate the maximum number of OSS contributors and idiosyncrasies.
Mmm...that's too little money, like...turn that into a job instead. Consulting-ise it more.
Orion Browser for iOS
Dinosaurs are animals.
Or uninstall the apps and use a browser instead.
Also tough shit if you were used to catching the bus there and now have to find and probably walk farther to another stop.

There used to be 'beat cops' whose job was to just walk around neighborhoods and be familiar with them; not the most efficient approach to policing, but also not the most intimidating or heavy-handed. Now you only see police outside a cruiser if they're doing crowd control, managing a crime scene, or doing community outreach, as a form of PR.
Nope, not ownership either, Box<str> and String both own their memory, the different is fixed size vs growable :)

But you're right, I edited my post to reflect this, the Java analogy is pretty strained as it is.
Yeah, absolutely. The quote may have been from before the modern era of DNN-based image recognition, when I suppose that part of the system was always assumed to be a human's responsibility.
Maybe read things over again before you quit your job and become a private eye, Chief.

First off, pretty damn presumptuous to jump to "her partner" there.

She can't get work done because the sort of work she does requires a functioning computer with a decent graphics card.

The computer she was using for work prior to buying this laptop crapped out on her to a degree where it made more sense to buy a new one with better specs and sell the old one for parts.

She absolutely did, in fact, "note the return period" and "fucking return it." Dell just isn't honoring it.

She also has been attempting to get payments reversed, but as other people have been pointing out, banks and credit card companies do not in fact just hand over thousands of dollars out of the goodness of their hearts when someone gets defrauded, particularly in situations like this, where Dell strung her along for a bit by insisting they first take a shot at repairing the garbage they sent her, and then sending out an equally defective replacement.

You are correct that I did, in fact, do an image search result to look for a photo of a monitor displaying the same sort of garbage as hers. I'm not sure where you get "this story is fake" from that, particularly when in the same post I said "if I recall" with regard to whether in her case that was due to a failed display or failed video card. I did not, in fact, claim to have gone back in time to personally take a photo of lemon laptop #1.

I'm also a bit unclear what, exactly, you speculate I would stand to gain by publicly calling out a company for defrauding someone else? And I suppose, also coordinating something like a couple hundred people to share similar stories in the replies?

The only money changing hands here is hopefully Dell sending her the damn refund they owe her, and I don't need to convince them of anything. They already have 8 months of support logs.
$100M in crypto Hacker stolen from Harmony blockchain bridge
Good in theory, problematic in practice.
Sorry, the last two paragraphs got to me. You need to lighten up, and start trying to understand your fellow man. Small talk is never just small talk. It's a way of starting to understand another human being in some small way. It's just the beginning.

You've adopted 'not seeing others' as a personality trait. It isn't, and there are no prizes for living a profound, lonely life, hoping to understand something deep about your own soul. Grow up.

Just try taking a genuine interest in someone other than yourself. You don't even need to agree with them, just respect them as beings with as much depth as you and enjoy the hunt for common ground. You may never find it with some, but occasionally you will. And god you will learn more every time.

You don't have unlimited time to fix this. You will realise at some point in your old age feeling like a special and deep thinker is not worth dying alone for.

This reads like a 21st century Holden Caulfield. Sorry that's a low blow, but it comes from a place of compassion. I think some tough love is in order and you need to hear it.
A great example of positive action was the story of the Oakland Buddha. Intended to discourage littering but in the end cleaned up the entire neighberhood.

https://en.wikipedia.org/wiki/Oakland_Buddha
https://thisiscriminal.com/episode-15-hes-neutral/
> I look at it from another angle that you might consider. With Roe, the Supreme Court granted "rights" that were not explicitly in the constitution

That's an important point, I wonder if there should be an amendment to the constitution stating that "just because we didn't mention a right, doesn't mean you don't have it". It seems important, maybe we should give it a low amendment number. I'd say top 10 at least, are there any numbers not being used?

Hmm, 9 seems to be free I guess?
As others have mentioned, before you do any commercial things talk to two kinds of lawyers. First talk to an immigration attorney. Second talk to a lawyer dealing with IP. Both these issues have serious consequences if you ignore them.
In defense of blocks for local scopes
> So _Zero_ huh?

Zero comparison.

Sure, there's probably a non-zero amount of germs in the pasteurised homogenised and sterilly-packaged milk I buy at the supermarket. So is drinking that equivalent to sucking the pus out of a punctured boil on the arse of a diseased cow?

No. There's zero comparison. None. Zero.

Learn to read, man. If nothing else, it'll make you a better propaganda troll for your Kremlin master.
I am a professor in a CS department.

* Easy: ask your dept for a job or RAship to continue to support and build the app and grow its utility. We pay students all the time to build website infra for us in the cs dept. It is usually a ~20$/hr rate, though, so you won't make too much, but it will fund your improvements.

* If you built the app on your own laptop, and you've published the app to the app stores on your own account, you likely own all the rights. Good for you. If the app is hosted in anyway on university resources, then you should be careful if you want to grow this into a business.

* From my own experience, it is very difficult to sell to individual university departments. Much easier to get hired as a consultant. But "enterprise software" that is sold by a license may require the "university procurement" people to get involved. They will went some evidence you'll be around for 3-5yrs, etc...

* Look into how Piazza, Gradescope, Overleaf are doing with university-wide account sales. From what I know, those sales processes are slow and expensive, even though the apps bring enormous value to faculty (e.g., i end up paying for my own single accounts and expensing them against my research budget).
Use your network to find someone at those companies to do more research.

Good luck!

btw, happy to try your app and give you feedback
there is a single man who was/is credited with starting this so-called industry -- it was on the cover of a New York Times sunday supplement, long ago.. not everyone was thrilled by this, as you can imagine. When big trucked-bee death event happened contemporaneously with documented colony collapse, I bet that he had his name scrubbed from more than one website.
I see it as more of a reminder and to pay attention. We all have ranges/spectrums at which we operate. You can say, "shouldn't you just be kind to everyone", and the answer is, "yes, of course". But then, how that kindness is shaped and applied – for example, kindness can be offering help, or waiting to be asked for help (but being prepared to help). I think it's ultimately about awareness of how you can be kind in different ways.

For those that are deemed less intelligent, that kindness can take the shape of increased patience with things that seem obvious or easy to others, whereas for folks operating at a level more similar to you, you might behave differently justifiably. This is just one example that crossed my mind in this case.

We understand that dealing with children and dealing with adults is frequently different, and we wouldn't call that patronizing, we'd call it operating at the level appropriate for them. We might tolerate something from a children, and deem acceptable for their level, while tolerating the same thing for an adult in the same context would be considered unacceptable. There are all kinds of different ways to behave differently in different context.

So, yes, "choose kindness", but I took the statement beyond its face value to mean "exert yourself to be kind" and find out what that means in the most appropriate way based on the situation.
I have heard good things about this LinkedIn competitor:

https://www.shlinkedin.com
Anything is problematic in practice.