Sangria input defaults for value classes
We’re going to explore how we can use a default value for a value class in Sangria.
This builds on the previous blog post about Sangria.
We’re going to explore how we can use a default value for a value class in Sangria.
This builds on the previous blog post about Sangria.
What is Akka Serverless?
In short: There are no actors. It’s a 4GL framework in the cloud.
We’ll go through the steps necessary to parse value classes.
We’ll update a config file with sed
We’ll continue the plan to rate movies with Markov chains.
This time we predict ratings.
We’ll continue the plan to rate movies with Markov chains.
This time we’ll learn a Markov chain from movie plots.
We’ll continue the plan to rate movies with Markov chains.
This time we’ll tokenize the input.
Testing is an important part of writing an application. There are many decisions to make about what, how and when to test. It often helps me to think of the costs and values of (potential) tests to reason or talk about them.
This text will explain what these costs and values are and some of the guidelines I derived from this.
When playing around in Polymer, we encounter iron signals. Besides normal javascript events, this gives us a lot of options for dealing with events. Lets try it all out! We can catch events using the on-event attribute:
1
This is the first of a series of posts. Where we will use machine learning to rate movies. For this task we're not going to watch all the movies. I assume it's good enough to just read the plot. We'll use Markov chains to rate the movies and as an added bonus we can also generate new movie plots for awesome (or terrible) movies. In this first part we'll get the data and change it into a more usable format. We can use the data from IMDB, which is published on ftp://ftp.fu-berlin.de/pub/misc/movies/database/. Of interest are the plots and the ratings.
Plots look like this:
Today I'll show how you can create a simple stubserver with Drakov. If you do some frontend programming, you've probably already installed npm (Node Package Manager), otherwise here is how you install that. Then with npm you can install Drakov.
$ sudo npm install -g drakov
In object-oriented languages, like Java, this refers to the instance of the class where you run the method. In javascript this is often also the case, but not always. In this post we'll explore some situations. And I give some tips on how to deal with them. The normal case. The function eat is defined on carrot. And we simply run it. this will refer to the enclosing object, which is carrot, with name "carrot".
var carrot = {
name: "carrot",
eat: function () {
console.log(this);
console.log("eating " + this.name);
}
};
carrot.eat(); //result: eating carrot