A Brief and Brisk Overview of Compiler Architecture

A Brief and Brisk Overview of Compiler Architecture

The language itself is a bit unusual compared to the typical architecture of compilers, which is partly what inspired me to write this article, though this will be discussed further on in the article. Most languages define a word as a grouping of letters and digits, the identifier typically must with a letter (or an underscore), e.g.

Is not valid Go code as it is probably parsed into these tokens:

Most identifiers that we encounter are of the form:

Lexers will also have to deal with other problems, e.g.:

… and before you think about using regular expressions to do this, I would not recommend it! In compilers, a parser will usually take an input of tokens, and produce a tree of some sort.

Source: blog.felixangell.com

Unauthorized access to Docker Hub database

Unauthorized access to Docker Hub database

During a brief period of unauthorized access to a Docker Hub database, sensitive data from approximately 190,000 accounts may have been exposed (less than 5% of Hub users). Data includes usernames and hashed passwords for a small percentage of these users, as well as GitHub and Bitbucket tokens for Docker autobuilds. Data includes usernames and hashed passwords for a small percentage of users as well as GitHub and Bitbucket tokens for Docker autobuilds.

Source: success.docker.com

How the dream of cheap streaming television became a pricey, complicated mess

How the dream of cheap streaming television became a pricey, complicated mess

And many of those that got cut were replaced by new cords from other companies, with bills of their own, not to mention the ones from streaming services that delivered the actual shows, movies and sporting events. “Paying five different streaming services a total of 50 or 60 dollars to get some of what we want instead of a little more to get a lot of what we want — well, I think a lot of people would prefer the package deal,” said Atlas Media founder Bruce David Klein, a veteran television producer and cable expert. Disney’s service will cost just over half the monthly price of the most popular Netflix plan, and even less if consumers make an annual commitment.

Source: www.washingtonpost.com

Building China: Rise of the Superblock

Building China: Rise of the Superblock

Le Corbusier’s infamous 1929 “Plan Voisin”

By the 1990s Jacobs’ ideas about mixed use, walkable neighborhoods that encourage social integration and discourage the use of cars had become the mainstream in Western urban planning, advocated for by a group of planners called the New Urbanists (I have my problems with them but we’ll get to that another time). Throughout the 1990s and 2000s, Chinese and Western planners — horrified at the cityscapes popping up that resembled something out of Corbusier’s most sinister fantasies — begged the Chinese government to not repeat the mistakes that the West, especially America, had made by building cities around cars and segregating residential and commercial space. But an even more important reason behind the continued insistence on superblock planning is the reliance of Chinese city governments on land lease revenue.

Source: radiichina.com

Influencers Are Abandoning the Instagram Look

Influencers Are Abandoning the Instagram Look

As Instagram has grown to more than 1 billion monthly users, it has ushered in a very particular look: bright walls, artfully arranged lattes and avocado toast, and Millennial-pink everything, all with that carefully staged, color-corrected, glossy-looking aesthetic. Photos that play into these trends perform so well on Instagram that the look became synonymous with the platform itself, then seeped into the broader world. But every trend has a shelf life, and as quickly as Instagram ushered in pink walls and pastel macaroons, it’s now turning on them.

Source: www.theatlantic.com

You Can’t Trust Network Time

You Can’t Trust Network Time

When a domain changes owners the validity periods ensure that after a sensible amount of time the new owner can be sure that the old owner does not hold any active certificates anymore. Now when such a device is powered on again and comes online to receive commands from its owner it first needs to fetch the current time to be able to validate any PKI certificate. This is the same issue as if the device opts to trust an expired certificate directly to establish the current time.

Source: diode.io

The Anhei tokamak is first in the world to generate 100M degrees Celsius

The Anhei tokamak is first in the world to generate 100M degrees Celsius

by Kelly Wang

The Anhei tokamak is the first facility in the world to generate 100 million degrees Celsius (212 million Fahrenheit)

A ground-breaking fusion reactor built by Chinese scientists is underscoring Beijing’s determination to be at the core of clean energy technology, as it eyes a fully-functioning plant by 2050. EAST is part of the International Thermonuclear Experimental Reactor (ITER) project, which seeks to prove the feasibility of fusion power. Wu Songtao, a top Chinese engineer with ITER, conceded that China’s technical capabilities on fusion still lag behind more developed countries, and that US and Japanese tokamaks have achieved more valuable overall results.

Source: phys.org

His father installed printing presses – he dismantles them

His father installed printing presses – he dismantles them

Joel Birket, whose company is overseeing the dismantling and transfer of printing press parts from Tennessee to New York, stands near a Goss Colorliner press. When Joel Birket was a child, his family moved to new cities for a year at a time so his father, William, could install printing presses at the major daily newspapers in Seattle and Minneapolis. Dale “Duke” Welsh, director of operations for Ultimate Marketing, a company that specializes in “asset recovery of newspaper press and electronic part,” has in recent months visited six Gannett newspapers, including the Tennessean, to oversee the transfer or sale of printing press parts from one plant to another.

Source: www.cjr.org

Custard Antenna

Custard Antenna

Some time ago, someone said of their ex-military antenna tuner “it would tune a bowl of custard if you asked it to” – this got me thinking, could I make my MFJ-971 antenna tuner literally tune a bowl of custard? I did attempt to put about 30-40W of RF into the antenna system (bowl of custard + ATU) however nothing was picked up on PSKReporter, leading me to conclude that the bowl of custard was significantly inferior on transmit compared to receive. The second experiment I would like to try, and the subject of the rest of this post, is to make a custard antenna that can at least vaguely usefully be used as an antenna.

Source: michaelcullen.name

Building a Map Application in C++ & Qt

Building a Map Application in C++ & Qt

They say developing a desktop application is hard and tedious; let’s prove them wrong by developing C++/QML application using Qt 5.12 that shows several types of MapTiler streets map. If you are interested in exploring more, please refer to QML Map Component documentation and Qt Location Mapbox GL Plugin documentation

After finishing the vector style, let’s move on to raster tiles. As you can see, creating Qt application with MapTiler hosted maps is a trivial task.

Source: www.maptiler.com