Solving Sudoku with Prolog (2016)

Solving Sudoku with Prolog (2016)

Video:

For example, using CLP(ℤ) constraints, a
valid Sudoku board can be concisely expressed like this:

sudoku(Rows) :-
length(Rows, 9),
maplist(same_length(Rows), Rows),
append(Rows, Vs), Vs ins 1. blocks([N1,N2,N3|Ns1], [N4,N5,N6|Ns2], [N7,N8,N9|Ns3]) :-
blocks(Ns1, Ns2, Ns3). Source file

Prolog source file: sudoku.pl

The source file contains:

the Prolog formulation of Sudoku puzzles which is shown above

PostScript instructions for
showing animations of
the search process

sample Sudoku instances, available is problem/2.

Source: www.metalevel.at

Towards Reproducible Research with PyTorch Hub

Towards Reproducible Research with PyTorch Hub

PyTorch Hub consists of a pre-trained model repository designed specifically to facilitate research reproducibility and enable new research. PyTorch Hub supports the publication of pre-trained models (model definitions and pre-trained weights) to a GitHub repository by adding a simple file. As a user, PyTorch Hub allows you to follow a few simple steps and do things like: 1) explore available models; 2) load a model; and 3) understand what methods are available for any given model.

Source: pytorch.org

SIGSALY – Secure Speech System Used in WWII by the Allies

SIGSALY – Secure Speech System Used in WWII by the Allies

In order to guarantee uninterrupted operation, two turntables were used, allowing the next disc to be ‘cued up’ whilst the current one was running. Towards the end of each KEY record, a control tone or pilot tone is recorded (with the existing key tones) to mark the start of the other turntable. The simplified block diagram above shows how the rising and falling edges of the control tones are used to start and stop the motors of the two turntables, and to select which record is used as the source of the key stream.

Source: www.cryptomuseum.com

Procedural content generation: creating a universe

Procedural content generation: creating a universe

Released in 1984, Elite featured cutting edge 3D graphics (with hidden line removal no less) and a rich universe of 2048 planetary systems, spread across 8 galaxies, each with a unique name, offbeat description, technology level, government type and even an economy. These are used as the “seed” of the universe and they are incremented and manipulated in a consistent manner as each galaxy and planetary system is generated. It uses the current seed to populate a structure looking like this for each planetary system:

Here is the makeystem function in all it’s glory:

As you can see the system’s location, government type and economy are generated by plucking bits out the seed.

Source: blog.rabidgremlin.com

As Tech Goliaths Face a Reckoning, Small Businesses Say They Finally Feel Heard

As Tech Goliaths Face a Reckoning, Small Businesses Say They Finally Feel Heard

SAN FRANCISCO — Oracle and the Handpulled Noodle would seem to have little in common. But they both say Google is unfairly hurting their businesses, and they have a new audience in Washington eager to hear about it. “Obviously there is something going on in terms of monopoly,” President Trump said about large tech companies in an interview on CNBC on Monday.

Source: www.nytimes.com

Raytheon, United Technologies Merger Will Create A New Aerospace Giant

Raytheon, United Technologies Merger Will Create A New Aerospace Giant

The Raytheon Co. and United Technologies Corp. are merging in an all-stock deal that the two companies say is a merger of equals. “The combination of United Technologies and Raytheon will define the future of aerospace and defense,” United Technologies Chairman and CEO Greg Hayes said in a statement about the deal. Under the deal, United Technologies’ shareholders will own about 57% and Raytheon shareholders will own about 43% of the merged company.

Source: www.npr.org

The ice bucket challenge dramatically accelerated the fight against ALS

The ice bucket challenge dramatically accelerated the fight against ALS

Washington, D.C. (June 4, 2019) — An independent research organization reported that donations from the 2014 ALS Ice Bucket Challenge enabled The ALS Association to increase its annual funding for research around the world by 187 percent. “Five years after the Ice Bucket Challenge soaked the world, the pace of discovery has increased tremendously, bringing ALS researchers closer than they have ever been to real breakthroughs in diagnosing, treating, and eventually curing this disease,” said Calaneet Balas, president and CEO of The ALS Association. RTI evaluated the Association’s grant records and NIH funding records, data from research projects funded through Ice Bucket funding and surveys of ALS researchers worldwide to understand the impact of Ice Bucket Challenge investments.

Source: web.alsa.org

Private companies are making money off the prison system in every way imaginable

Private companies are making money off the prison system in every way imaginable

The largest private provider of medical services to prisons is believed to be Corizon Health, operating in 220 facilities in 17 states and owned by a New York City hedge fund. Two companies — Aramark and Trinity Services — provide meals in around 800 state and local facilities. Tennessee-based Prisoner Transportation Services is the largest provider of transportation for jails and prisons.

Source: www.axios.com

Aim Small, Miss Small: Writing Correct Programs

Aim Small, Miss Small: Writing Correct Programs

There are much more important ways to reduce code size, and the most important one is to make things that are simple.The word simple has a lot of definitions in modern usage, but the original definition– and the one that’s the most useful to a software developer– comes from simplex, which means one folder braid. But the good question is, what’s the right number?Well, I’m excited to say that today, in this room for the first time, I am going to release an open-source program that can take Agile story cards or GitHub issues and tell you how many new data structures you need to make. A typical Closure program will not introduce a single new data structure.

Source: www.deconstructconf.com