News for hackers. Stuff that matters.

nostoc

Re:Advanced Python Features on Wednesday April 23, 2025 @09:11AM (#43771759)
Instead of catching the `StopIteration` exception, you can simply provide a default case to `next` :

    next((c for c in candidates if predicate(c)), default)
Re:Mathematicians uncover a new way to count prime numbers on Friday December 13, 2024 @09:52AM (#42408938)
AES is kinda useless for securing communications without assymetric crypto, unless you want to be sending keys by courrier.
It's very much the "how", what were you looking for that's not explained in the blog post?
It's "Bob" all the way down
Yeah, because statically typed language never had any kind of deserialization vulnerabilities.
Re:Can I take ducks home from the park? on Thursday September 14, 2023 @03:08PM (#37513371)
That ambiguity only lives in the article's title, the queries themselves are all quite clear.
> . It would be enormous, tedious to build (couldn't use modern lithography), and also consume tons of power.

Sounds to me like you're saying that Transistors are more efficient than vacuum tubes, both in terms of space and power consumption.

Re:PyPI Was Subpoenaed on Thursday May 25, 2023 @08:33AM (#36069952)
Just to clarify : What's not true is that Canada jails people for criticizing islam, not that it was claimed :

https://news.ycombinator.com/item?id=36061407#36064645

Re:GPT-4 gets a B on my quantum computing final exam on Tuesday April 11, 2023 @04:02PM (#35530691)
I suspect AI went that way in radiology not because of the chances of False Negatives, but because radiologist are entrenched in the system and will not yield an insanely lucrative stream of revenue.
Kali was running everything as root up to a few years ago, I'd be very surprised if this had application sandboxing.
Re:ReactOS on Wednesday January 18, 2023 @09:58AM (#34427373)
This project is a boon to all reverse engineers, especially when reversing malware that uses undocumented features of windows.
I also don't know anyone who refers to it as wolfram, but wolfram is all over the tungsten wikipedia page.
Re:Nushell: Introduction to a New Kind of Shell on Tuesday November 01, 2022 @08:56AM (#33420518)
Powershell is powerful because of the deep integration with the .NET ecosystem, and by extension, the OS.

This new shell lacks that, I agree. But I think it's a way harder problem to solve on linux.

Re:Knots 3D – Learn how to tie over 150 useful knots on Friday May 27, 2022 @11:32PM (#31537373)
The trucker's hitch is usefull because you get a mechanical advantage to tension your line.

Typically, I'd do a bowline on one end first, and tension it with a trucker's hitch. If you go with two bowlines, you end up with a floppy line, not great way to tie a load down.

Re:Jd on Monday April 04, 2022 @01:39PM (#30909587)
Still is a fully integrated and mature programming language though.

And I do believe you wouldn't have any issue finding people who think the same of J.

Re:The Cube Rule (2017) on Thursday March 24, 2022 @11:19PM (#30798287)
> Sushi: Mostly no (the carbs don't protect you from the insides, the seaweed does)

If you wrap seaweed around a sandwich, is it no longer a sandwich?

Re:The Cube Rule (2017) on Thursday March 24, 2022 @11:17PM (#30798280)
It is unnacceptable that what is preached as a universal food categorization system doesn't even attempt to categorize rice.
True, and while the title is somewhate clickbaity, I think your point was pretty clear in the article.
Going down the "Some quacks were right, therefore all quacks are right" path will not lead you to a healthy place.

Yes, there is inertia in the scientific community, and sometimes the dissenting voices have a hard time being heard. That much is true.

But that is true because most of the time, the dissenting voices are wrong, if not outright lunatics.

Re:TP240PhoneHome Reflection/Amplification DDoS Attack Vector on Wednesday March 09, 2022 @09:38AM (#30614822)
I assume by limit OP means the remote system's bandwidth.

at 4 billion to 1, there's in practice very little difference between CVE-2022-26143 and what you describe. Both will be capped at the same number by the bandwidth available to the offending system.

Re:Apple removes Python 2.7 in macOS 12.3 beta on Friday January 28, 2022 @03:18PM (#30119772)
Transitioning was hard, especially with all the libraries in various state of support between 2 and 3, I had a similar experience.

But I disagree with you about the separation of bytes and string and the current state of the language. I write a lot of python that deals with bytes and text encoding, and now that all the libraries have caught up with 3, the situation is way better than it ever was. encoding, decoding, bytes manipulations are way less prone to errors.

Re:Vim prank: alias vim='vim -y' on Wednesday January 12, 2022 @10:17AM (#29907484)
The "OPSEC fairy" as referenced in previous post is typically a random coworker, so no, they generally not have a broad license do tinker with your workstation.

An actual OPSEC person would not go and change your desktop's background, or send an email for free donuts to all your coworkers. An actual OPSEC person would just write you up for a security violation.

Both of your solutions are great but don't fully cover the use case. They are useful for multiline strings, but implicit concatenation is also often used to break long strings that may not have newlines.
Re:Vim prank: alias vim='vim -y' on Friday January 07, 2022 @10:02AM (#29839867)
you want to delete a file called '-rf' ?

rm ./-rf

If you have some weird characters in the filename, you can also let your shell escape whatever character is problematic by using autocomplete, starting with './'

Re:Vim prank: alias vim='vim -y' on Friday January 07, 2022 @09:55AM (#29839774)
For anyone who reads this and think it's funny, it is, but do this in the wrong workplace and you'll be the unemployed OPSEC fairy.
Re:Vim prank: alias vim='vim -y' on Friday January 07, 2022 @09:54AM (#29839745)
Random key bashing in vim can have a lot of unforeseen consequences for whatever poor file you had opened.
Re:Understanding UUIDs, ULIDs and string representations on Wednesday January 05, 2022 @12:19AM (#29805433)
First time hearing about ULIDs. The locality is interesting, but they leak information about when they were generated down to the millisecond, which could lead to problems if combined with other issues. I'd be wary of using them client-side.
Re:IETF: The HTTP Query Method ( Draft) on Tuesday January 04, 2022 @09:31AM (#29795112)
Injection means you can modify an existing query. The example are not SQL injections, they are full queries.
Re:Why Is C Faster Than Java (2009) on Monday December 27, 2021 @12:22AM (#29699577)
Okay big guy, show us your implementation of the JVM and we'll talk.
Re:Inverting PhotoDNA on Tuesday December 21, 2021 @10:01AM (#29637993)
A cryptographic hash definitely should, but there are many more use cases for hashes.

You want SHA to be maximally non-continuous, but you certainly want the opposite for ssdeep for instance.

Older »