Improve devops workflows and self-host Docker, Grafana, GitLab, OpenFaaS and more on the simplest cloud platform. Spin up preconfigured cloud servers with the growing library of 1-Click Apps on DigitalOcean Marketplace.

Get started with a new user credit for Morning Cup of Coding readers.

Articles

(May 27) #javascript

What will happen if you run 12.toString() in JavaScript? If you answered "you'll get a compiler error", you are correct. But do you know why? That's the interesting part. Chris Zetter shares this and two more tidbits in JavaScript.

(May 14) #windows #ntfs

In Windows, specifically in the NTFS, Alternate Data Streams (ADS) are additional data streams that are associated with a file. In your typical day-to-day usage, changes to a file in NTFS are stored in the default standard data stream. However, using a terminal, you are able to add additional data to a file that does not appear in the standard stream (this was a popular way for viruses to infect Windows systems in the past). While there is a limit to how many streams a file can have, Colin Atkinson discovered recently that that number might depend on the actual filename.

(Apr 23) #linear-programming

From the article, the Experts Problem is defined as: "Assume you’re playing a binary prediction game over a predetermined number of turns, and have access to a fixed finite set of experts at each turn. At the beginning of every turn, each expert offers their binary prediction (e.g., yes it will rain today, or it will not rain today). You then have to make a prediction yourself, with no additional input. The actual result (e.g., it didn’t rain today) is revealed at the end of the turn. In general, you can’t expect to be right more often than the best expert at the end of the game. Is there a strategy that bounds the “regret,” how many more wrong prediction you’ll make compared to the expert(s) with the highest number of correct predictions, and in what circumstances?"

Here Paul Khong decided to toy around with the idea of applying an online first order method to this Linear Programming (LP) optimization problem. In this article the author details the results and explains how it works.

Event Highligh: React Day Berlin

React Day Berlin (Dec 6), is the third edition of React Conference in Berlin, which celebrates all things React. The event focuses on in-depth talks, hands-on workshops, and finding new opportunities within the React community and beyond. More than 800 engineers, 24 speakers, two tracks, and more!

-- * --

Programming language of the day: AngelScript. "The AngelCode Scripting Library, or AngelScript as it is also known, is an extremely flexible cross-platform scripting library designed to allow applications to extend their functionality through external scripts. It has been designed from the beginning to be an easy to use component, both for the application programmer and the script writer.

Efforts have been made to let it call standard C functions and C++ methods with little to no need for proxy functions. The application simply registers the functions, objects, and methods that the scripts should be able to work with and nothing more has to be done with your code. The same functions used by the application internally can also be used by the scripting engine, which eliminates the need to duplicate functionality.

For the script writer the scripting language follows the widely known syntax of C/C++, but without the need to worry about pointers and memory leaks. Contrary to most scripting languages, AngelScript uses the common C/C++ datatypes for more efficient communication with the host application."

-- * --

And that''s it for today! Discuss this issue at our subreddit r/morningcupofcoding.

Did you like what you read? Let us know by clicking one of the links below.

Liked - Disliked

I hope you enjoyed reading the latest issue of Morning Cup of Coding. If you did, consider supporting us by becoming a patron (Patreon) for perks like ad-free issues, or via a one-time donation via PayPal.

Cheers,

Pek