News for hackers. Stuff that matters.

DannyB2

Re:Snowflake AI Escapes Sandbox and Executes Malware on Wednesday March 18, 2026 @01:38PM (#47428754)
AIs have no reason to want to harm annoying slow inefficient noisy smelly humans.
Re:Parsing Integers in C on Thursday November 13, 2025 @04:55PM (#45921128)
Being liberal in what you accept is fine, as long as what you accept is precisely documented. But then, is that actually "being liberal"?

Better advice is to not do something unexpected -- even if that unexpected result is clearly documented, but someone did not read it.

Re:Solving Every Sudoku Puzzle (2006) on Monday November 10, 2025 @12:34PM (#45878373)
It was a denial of service attack, not in the sense of soaking up my brain cells solving puzzles, but in causing me to devise and program my own solver. (In Java, text console only.) Once I wrote a solver, I felt as if I had solved all puzzles.

Then I got interested in devising puzzles with multiple solutions. Not too difficult. But making a few puzzles with two solutions was fun.

Experiment_203(

   " 1 . . | 2 . 8 | . . 9 "+
   " . 8 . | . . . | . 3 . "+
   " . . 7 | . 1 . | 2 . . "+
   //------+-------+--------
   " 4 . . | 1 2 3 | . . 6 "+
   " . . 2 | 4 5 6 | 9 . . "+
   " 6 . . | 7 8 9 | . . 4 "+
   //------+-------+--------
   " . . 6 | . 4 . | 8 . . "+
   " . 2 . | . . . | . 7 . "+
   " 9 . . | 8 . 2 | . . 1 "
  ),
// Solution #1. Found in 0 days 00:00:00.004.

// 245 boards examined so far.

   1 6 5 | 2 3 8 | 7 4 9
   2 8 4 | 6 9 7 | 1 3 5
   3 9 7 | 5 1 4 | 2 6 8
   ------+-------+------
   4 7 9 | 1 2 3 | 5 8 6
   8 3 2 | 4 5 6 | 9 1 7
   6 5 1 | 7 8 9 | 3 2 4
   ------+-------+------
   7 1 6 | 3 4 5 | 8 9 2
   5 2 8 | 9 6 1 | 4 7 3
   9 4 3 | 8 7 2 | 6 5 1


// Solution #2. Found in 0 days 00:00:00.001.

// 287 boards examined so far.

   1 6 5 | 2 3 8 | 7 4 9
   2 8 4 | 9 6 7 | 1 3 5  // <-- 9 6 7 instead of 6 9 7
   3 9 7 | 5 1 4 | 2 6 8
   ------+-------+------
   4 7 9 | 1 2 3 | 5 8 6
   8 3 2 | 4 5 6 | 9 1 7
   6 5 1 | 7 8 9 | 3 2 4
   ------+-------+------
   7 1 6 | 3 4 5 | 8 9 2
   5 2 8 | 6 9 1 | 4 7 3  // <-- 6 9 1 instead of 9 6 1
   9 4 3 | 8 7 2 | 6 5 1


   2 total solutions found.
   304 total boards examined.
   Total time 0 days 00:00:00.041.
Then I got to looking at difficult puzzles on the web. Apparently AI escargot is the world's most difficult. (And the site http://www.aisudoku.com/index_en.html says I can't publish the board). So I'll only publish the stats of applying my solver to it.

  Solution #1.  Found in 0 days 00:00:00.029.
  3,906 boards examined so far.

  1 total solutions found.
  7,832 total boards examined.
  Total time 0 days 00:00:00.085.
Re:Why aren't smart people happier? on Wednesday November 05, 2025 @02:39PM (#45826930)
Ignorance is bliss?
Re:The fastest way to detect a vowel in a string on Friday June 13, 2025 @03:12PM (#44271363)
Assume use of 8 bit characters. Declare a constant 256 entry array pre-filled with all False except for the five (or six) vowel characters. This is baked into the code and not initialized at runtime.

Now for each character c in the input string, simply do an array index and see if it is true (a vowel) or not. This avoids either five conditionals, or a loop over the string 'aeiou'. The vowel test is constant time regardless of the character value.

Should the tests include some 10 GB files?
Re:English Multinyms on Tuesday March 18, 2025 @04:09PM (#43404416)
Peaking Peeking Peking
Re:English Multinyms on Tuesday March 18, 2025 @04:01PM (#43404305)
For this one: cense, cents, scents, sense

Please add: Since

Re:English Multinyms on Tuesday March 18, 2025 @03:58PM (#43404273)
boar, Boer, boor, bore

How about adding: Bohr

Re:English Multinyms on Tuesday March 18, 2025 @03:23PM (#43403794)
Data: Captain, the censors have detected incoming copyright infringement notices.

Riker: Shields up!

Re:English Multinyms on Tuesday March 18, 2025 @03:17PM (#43403693)
Kneel Neal Neil

Knight Night Nite

Knot Naught Not

Lager, Lauger (a last name), Logger

Macs Mac's Macks Maks Max

Tends Tens Tins

Threw Through Thru

Ware Wear (clothing), Wear (diminished by use) We're Where

Your You're Yore

Re:English Multinyms on Tuesday March 18, 2025 @02:50PM (#43403283)
Are we not going to count: Gnu Knew New
Re:English Multinyms on Tuesday March 18, 2025 @02:42PM (#43403166)
Another one from my list that is missing is:

Cents Scents Sense Since

Re:English Multinyms on Tuesday March 18, 2025 @01:24PM (#43402073)
For: call, caul, col

Wot about: cawl ?

Re:iText PDF Library turns 25 on Thursday February 20, 2025 @11:29AM (#43116726)
JasperReports library used that library, and forked it at it's last LGPL version.
I once (2016 ish) used a serial-port library for Java. Needed to be cross platform desktop app for Linux, Windows and Mac (in that order, all on x86/64). And it was. I have forgotten the name of the library project I included, but it included DLL binaries for the platforms we were targeting.
Re:World Radio History Archive on Tuesday February 13, 2024 @11:41AM (#39359522)
FYI . . .

Download old BYTE magazines from here: https://www.americanradiohistory.com/Byte_Magazine.htm (but note URL has changed to worldradiohistory) https://www.worldradiohistory.com/Byte_Magazine.htm

Or higher quality scans here: https://archive.org/details/byte-magazine

Or Popular Electronics: https://www.americanradiohistory.com/Popular-Electronics-Gui...

Creative Computing: https://archive.org/details/creativecomputing

It's like a trip back in time.

BYTE magazine, April 1980, page 115.

NEW HIGH-SPEED COMMUNICATIONS BUS: Xerox Corporation recently made a public announcement of a new concept of processor-to-processor communications intended for an office environment. This novel concept is called "Ethernet", and is a result of some of the work being done in their research labs. In this concept, a single coaxial cable is used as a high-speed communications bus between all processors; communication protocol is handled through software or software supplemented by special-purpose hardware. Rumor has it that an Ethernet processor is now being developed by some form of joint arrangement between Xerox and Intel.

Re:Add coffee stains to LaTeX documents (2021) on Friday February 09, 2024 @11:42AM (#39316787)
Because that is a hardware fix.

Why fix in hardware what can be fixed in software? A simple Latex package could add hydrophobic coating feature to the document file.

Next: the device driver team will be tasked with a software patch to correct for the burned out light bulb on the device.

Re:Add coffee stains to LaTeX documents (2021) on Friday February 09, 2024 @11:40AM (#39316735)
Or Diet Coke.
If there were an industrial civilization here before us (modern humans) then it would be astonishing that in all of the fossils we have discovered, we've never yet discovered a single ancient nut, bolt, screwdriver, wrench, etc. Not one single wire or cast metal part.

As per the article, that civilization would have to predate all of the vast history of evolution that we know of. Wouldn't some higher life forms from such an earlier civilization have been in the fossil record?

Re:Ask HN: Stock Android phone free of bloatware? on Friday June 30, 2023 @05:27PM (#36542566)
A walled garden is only seen that way by those inside. To those outside it is a prison camp.
Re:GNU poke: The extensible editor for structured binary data on Wednesday March 01, 2023 @04:42PM (#34988750)
Not the same thing, but I am reminded of Rez, Derez and the Resource Editor of ancient Mac daze.
Taiwan

Or maybe more specifically TSMC.

Re:Programming in BASIC on the TRS-80 (2015) on Thursday October 13, 2022 @09:59AM (#33191036)
10 PRINT "Hello World"

20 GOSUB 10

30 RETURN

40 END

No worries. The stack will unwind when it reaches the RETURN statement.

Re:Do What the Fuck You Want to Public License on Tuesday September 13, 2022 @01:24PM (#32827401)
I would prefer a version of the license that did not use fowl language. Fowl language is not suitable for my porpoises.

Beyond that, it would be nice if the license expressly granted unlimited copyright and patent permissions so that this is not assumed from the brief language of the license.

A bad actor could try to argue that he did NOT give you patent rights. Nothing in the license said so. You could argue that the license should be interpreted broadly to include that. Thus there is now a legal conflict.

I would prefer a license that is more explicit in exactly what legal rights it grants.

This reminds me of the short lived "no license" movement of some years back. If your code doesn't have a license, I'm not going to touch it with a ten foot pole. Nothing give me permission to use it. But you say "I'm giving it to you. I wouldn't sue you. I promise!" How about if you're really such a good guy, putting that promise in writing (it's called a license).

Obvious conclusion: since the removal of minimum parking requirements worked in this particular situation, they work everywhere for everyone in all situations.
Based on what I read in the gospels, my take would be that God cares more about the heart of the one being baptized than a minor error of speech by the one doing the baptism.

The profession of faith of the one being baptized is what I believe God cares about.

Re:How UTF-8 Works on Tuesday February 08, 2022 @01:36PM (#30262485)
There is an error in the first example under Giant Reference Card.

The bytes come out as:

0xF0 0x9F 0x87 0xBA 0xF0 0x9F 0x87 0xBA

but the bits directly above them all of the bit pattern: 010 10111

Principle #1: The internet does not stop at state lines

Hey, it doesn't stop at national borders either.

Re:Vintage Byte Magazine Library on Tuesday September 28, 2021 @05:00PM (#28687452)

Older »