Hacker Newsnew | past | comments | ask | show | jobs | submit | DannyB2's commentslogin

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.


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.


In that case, I have important news to tell you about! OpenAI has come out with am AI web browser! What is an AI web browser good for? I don't really know, but what you _can_ do, is log into hacker news with it, point it at your hacker news comment history, tell it to look at /newcomments page for stuff you'd want to comment on, and it'll shitpost for you!

What a wonderful time saver! Now you can get back to the important work of doing the dishes and folding laundry, and don't feel the need to personally participate in the denial of service attack on human intellect going on here.


Writing a sudoku solver/generator immediately and completely cured me of my crippling Sudoku addiction. I've been playing sudoku since I was probably 13, but after writing a solver I just can't muster up any interest to finish solving a puzzle. Not in a "my program could do this for me" sense, but more along the lines of "I've solved this and every other problem, now it's boring"


Ignorance is bliss?


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.


In Python this is going to be slow, as you’ll have a ton of Python code in your hot loop.

It’s also going to be even more broken than TFA if any non-ascii character is present in the string.


Should the tests include some 10 GB files?


Should include a script for generating 10GB files maybe


Use tmpfs (/dev/shm) and it doesn't even have to hit the disk, all in memory but with filepaths as the library API might expect :)


Naah. I meant unit tests. Not load tests.


For: call, caul, col

Wot about: cawl ?


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


Another one from my list that is missing is:

Cents Scents Sense Since


Data: Captain, the censors have detected incoming copyright infringement notices.

Riker: Shields up!


For this one: cense, cents, scents, sense

Please add: Since


Are we not going to count: Gnu Knew New


Peaking Peeking Peking


boar, Boer, boor, bore

How about adding: Bohr


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.


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.


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.


Oh great, one more ink cartridge for printer manufactures to sell. And, of course, the printer will refuse to work if your hydrophobic coating cartridges is empty even tough all other cartridges are fine.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: