Markov Chain Text Generation

Markov Chain Text Generation

This post includes a standalone (only standard headers, no external libs) ~400 line C++ source file that can analyze text and use an order N Markov chain to randomly generate new text in the same style. In the text generation case, it means that a 2nd order Markov chain would look at the previous 2 words to make the next word. Interestingly, an order 0 Markov chain looks at NO WORDS to generate the next word, so is purely random word generation, with similar word counts (by percentage) as the original text.

Source: blog.demofox.org

Scientific Errors in Nat Geo Milky Way Photos

Scientific Errors in Nat Geo Milky Way Photos

The night sky offers an unlimited source of markers (e.g. stars, constellations, Milky Way, etc.) that never lie about the time of year and location in the world you shot a night sky picture from. In this picture, the Milky Way appears over a baobab tree of Botswana. In this picture seemingly taken in Namibia again (with a Quiver tree in the foreground), we can see an upright Milky Way across the top right-hand side.

Source: petapixel.com

Show HN: Person Identification by Keyboard Typing

Show HN: Person Identification by Keyboard Typing

The recurrent neural network learned to recognize small timing difference between keypresses to successfully identify the “typer” given 30-40 previously seen sentences. Type few sentences below to play with it or log in with GitHub to store your identifiers for extensive testing (and further improvement of the network). This application collects the input and GitHub identifier for research and improvement purposes.

Source: gradtype.darksi.de

I tried to make Facebook’s news feed random and fun

I tried to make Facebook’s news feed random and fun

Facebook is often sarcastically described as a platform for sharing baby pictures. The story of how these hairless pups started populating my News Feed began when a friend told me about a Facebook group—a lively forum for discussing baby names—that had captivated her. So I sought out more: I joined groups or liked pages for wine lovers, slow runners, appreciators of dinosaurs, southeastern-Michigan snow obsessives.

Source: www.theatlantic.com

Rewards for loyal spenders are ‘a honey pot for hackers’

Rewards for loyal spenders are ‘a honey pot for hackers’

The punch cards stuffed in your wallet know next to nothing about you, except maybe how many frozen yogurts you still need to buy to get a free one. But loyalty programs, as they shift from paper and plastic to apps and websites, are increasingly tracking a currency that can be more valuable than how much you spend: personal data. One loyalty-fraud prevention group estimates, conservatively, that $1 billion a year is lost to crime related to the programs.

Source: www.nytimes.com

Scientific Errors in Those Nat Geo Milky Way Photos

Scientific Errors in Those Nat Geo Milky Way Photos

The night sky offers an unlimited source of markers (e.g. stars, constellations, Milky Way, etc.) that never lie about the time of year and location in the world you shot a night sky picture from. In this picture, the Milky Way appears over a baobab tree of Botswana. In this picture seemingly taken in Namibia again (with a Quiver tree in the foreground), we can see an upright Milky Way across the top right-hand side.

Source: petapixel.com

What I gained, lost and learned while working for Microsoft

What I gained, lost and learned while working for Microsoft

One of the first things I noticed is that almost everyone working for Microsoft had this perfect life — a spouse, kids, nice houses, good cars. (It was one of the illusions I had fallen for immediately, but I’ll get to the shattering reality later…) At that time, I was in a decent relationship myself and decided to take the most out of this chance focusing on my personal growth as well as the professional opportunities Microsoft provided. He wasn’t a Full Time Employee, so he got no compensation (for those who don’t know — you can be hired in MS either as an FTE, employed by Microsoft — with all the benefits, trips, trainings etc. or as a vendor — through a hiring agency and no privileges that FTEs have), but no one else seemed to care.

Source: medium.com

Show HN: Open-Registry – Distributed Package Registry Owned by the Community

Show HN: Open-Registry – Distributed Package Registry Owned by the Community

Contribute

There is many ways you can contribute to making Open-Registry better. Help fund some of the costs of running the registry

Contribute time to develop patches and features

Participate in discussions to ensure all decisions are for the users best

Help design websites and UX

Spread the word about Open-Registry, for example,

Improve the documentation

Help maintain the infrastructure and/or make it better! Let the world know you’re using Open-Registry by adding a link to this website

Get started by visiting the GitHub Repository:

Source: open-registry.dev

Clean and Consistent Express.js Controllers – Enterprise Node.js and TypeScript

Clean and Consistent Express.js Controllers – Enterprise Node.js and TypeScript

In this article, we explore how to structure a clean and consistent Express.js controller by using abstraction and encapsulation with TypeScript. Because there’s a lack of opinion around how Express.js controllers and routes should be setup, it’s easy to end up writing code that’s not very DRY and not very consistent. Now you know my preferred way to create Express.js controllers by encapsulating all of the common functionality in an abstract class.

Source: khalilstemmler.com

GitLab Strategy

GitLab Strategy

GitLab is a single application based on convention over configuration that everyone should be able to afford and adapt. There are a few significant, but often overlooked, nuances of the everyone can contribute to GitLab the application mantra: While collaboration is a core value of GitLab, over collaborating tends to involve team members unnecessarily, leading to consensus-based decision making, and ultimately slowing the pace of improvement in the GitLab application. While there are contributions that may not get merged as-is (such as copy/paste of EE code into the CE code base or features that disagree with product philosophy), the goal is to coach contributors to contribute in ways that are cohesive to the rest of the application.

Source: about.gitlab.com