Announcing gRPC Support in Nginx
- The following examples use variants of the gRPC Hello World quickstart tutorials to create simple client and server applications.
- We share details of the NGINX configuration; the implementation of the client and server applications is left as an exercise for the reader, but we do share some hints.
- The Hello World quickstart examples use unencrypted HTTP/2 (cleartext) to communicate.
- What can you do if you have multiple gRPC services, each implemented by a different server application?
- We extended the example Hello World package (in helloworld.proto) to add a new service named Dispatcher, then created a new server application that implements the Dispatcher methods.
- The client uses a single HTTP/2 connection to issue RPC calls for both the Greeter and Dispatcher services.
- You can use location blocks like this to deliver web content and other, non‑gRPC services from the same, TLS‑encrypted endpoint.
KotCity – an open-source city simulation game written in Kotlin
- This game aims to achieve a mark somewhere between SimCity (1989) and SC2000.
- The game will be fully supported on Windows, macOS, and Linux.
- A build for Windows, macOS and Linux is available at https://github.com/kotcity/kotcity/releases/tag/0.43.
- It's easy to setting up the development environment.
- A: This project is a lot of work already without having to worry about 3D modeling and so forth.
- Even though there are still patches and new content coming out for SimCity 4, it's definitely on life support.
- I looked around at a few of the city simulators available but it doesn't seem like anyone is really working on a modern version of SimCity.
- You can contribute buildings (see assets directory), ideas for the game, help with art and so on by creating issues or fork the repo and start to make pull requests.
More State Machine Love: From Reflection to Statecharts
- Being able to extract the semantic structure of an object–like the state transitions for a state machine–is a useful kind of reflection, and one that exists at a higher semantic level than simply reporting on things like the methods an object responds to or the properties it has.
- If we can change the transitions of a state machine without changing any other code in an app, it’s fair to say that the transitions are “just implementation details,” Just as changing a HashMap class to use a Cuckoo Hash instead of a Hash Table doesn’t require us to change any of the code that interacts with our HashMap. Does the second .availableToWithdraw() return forty-two?
- People build processes around the account’s state, and it’s certainly part of the account’s design that the .placeHold method transitions an account into held state.
- Our problem with the state object for open state is that it has two different behaviours, depending on whether the account is held or not-held.
Inheritance Often Doesn't Make Sense
- Notice that this is incompatibility between the inheritance directions of the geometric properties and the abstract data type properties of squares and rectangles; two dimensions which are completely unrelated to each other and indeed to any form of software implementation.
- Eiffel, and particular disciplined approaches to using languages like Java, tighten up the “inheritance is subtyping” relationship by relaxing the “inheritance is re-use” relationship (if the same method appears twice in unrelated parts of the tree, you have to live with it, in order to retain the property that every subclass is a subtype of its parent).
- This is fine, as long as you don’t try to also treat subclasses as covariant subtypes of their superclasses, but much of the OO literature recommends that you do by talking about Liskov Substitution Principle and how a type in a method signature means that type or any subclass.
Microsoft releases two new Windows 10 previews with High Efficiency Image File format
- Microsoft today released two new Windows 10 previews for PCs. Both builds include support for the High Efficiency Image File (HEIF) format, but they diverge from there.
- This RS4 build adds support for HEIF, an image container that leverages modern codecs like HEVC to improve quality, compression, and capabilities over earlier formats like JPEG, GIF, and PNG.
- Then in the Photos app, you’ll need to install dependencies like the HEIF and HEVC media extensions from the Microsoft Store.
- HEIF will then be supported in the Photos app, for thumbnails and metadata in File Explorer, and in any application that uses WIC, WinRT Imaging APIs, or the XAML Image control.
- This RS5 build is for Windows Insiders who have chosen the Skip Ahead option, meaning they continue to receive builds from the RS_PRERELEASE branch.
- In addition to HEIF support, Microsoft has a few more features in this build.
What I Learned This Week (March 16, 2018)
- One of the things I value highly where I work is that, each week, our Director emails out a "What I Learned This Week".
- Imagine my excitement at learning that a tool, minikube, exists that allows you to play with Kubernetes locally on your development machine!
- Seriously, go install it and start playing with Kubernetes.
- The major win with these tools is they are modular and modularly adopt-able.
- This week I also rediscovered Ansible.
- By rediscovered, I mean I delved more into how it works and fell in love with it all over again.
- We are already using this tool at my job, but up until now, it has mostly had major wins on our Systems Support team.
- This week, it finally "clicked" how Ansible configuration works, and it is now no longer such a (great) mystery.
Brainstorm Health: Freezing Your Brain, Lundbeck Parkinson's Deal, Louise Slaughter Passes
- Hello and happy Friday, readers—this is Sy!
- Silicon Valley has no shortage of out-there ideas ostensibly meant to change the world.
- The latest?
- A straight up Black Mirror-esque proposal to chemically freeze human brains in an effort to “preserve neurons and synapses” and, theoretically, digitally upload memories.
- Y Combinator venture Nectome is offering to “embalm” your brain for $10,000 to keep it crisp and, well, freshly brain-y.
- Nectome is gearing its pitch to terminally ill patients who would then be connected to life support systems, put under anesthesia, and then injected with a chemical embalming cocktail, as my colleague Grace Donnelly writes—all while still technically alive.
- And Y Combinator president Sam Altman (alongside another two dozen reported paying customers) are already on board with the experiment.
- “I assume my brain will be uploaded to the cloud,” Altman tells MIT Technology Review.
The deadliest bridge collapses in the US in the last 50 years
- It happened right after a barge hit a railroad bridge.
- Minutes later, the Amtrak Sunset Limited hit the bent tracks and plunged into the bayou.
- According to eyewitnesses, the entire 1,460-foot suspended portion of the Silver Bridge folded "like a deck of cards" in less than 20 seconds and collapsed into the river.
- Investigators later blamed a fracture in the bridge for the accident.
- A freighter struck the bridge during a thunderstorm, sending a bus, six cars and a pickup truck into the bay.
- A third of the I-40 bridge fell after a towboat pushed a barge into a support.
- Support plates that were about half as thick as they should have been were the likely cause of the I-35 W bridge collapse over the Mississippi River, investigators said.
- Faulty construction was to blame for the collapse of the bridge.
These Are the World's Happiest Countries
- What makes a country happy?
- The United Nations considers the answer with its annual World Happiness Report, ranking a total of 156 countries.
- Key ingredients for well-being include longer healthy years of life, more social support, trust in government, higher GDP per capita, and generosity.
- While the experiences of tourists were not considered specifically, the report sets a standard for blissful places to visit.
- After all, aren't smiles contagious?
- Here are the happiest countries in the world and some of what makes them unique.
- Get exclusive updates, insider tips, and special discounts on travel and more.
They've had enough. Students across country walk out to demand new gun laws
- Students planned to stay outside for at least 17 minutes -- one minute for each of the 17 people killed at Florida's Marjory Stoneman Douglas High School exactly one month ago.
- Eduard Štrébl, a senior at Walworth Barbour American International School in Israel, organized the walkout on his campus.
- In Minnesota, 16-year-old Noah Borba said he didn't walk out because he doesn't fully support the movement.
- For D'Angelo McDade, a senior at North Lawndale College Prep High School in Chicago, gun violence is personal -- but not because of a shooting at school.
- Some school districts have said they will discipline students who participate in the walkouts.
- In the Atlanta suburb of Cobb County, Georgia, the school district said it will take disciplinary action against students who walk out, citing safety concerns.
- The prospect deterred some students, but not all of them, Pope High School senior Kara Litwin said.