Shutdown. Time off for brains

Introduction You may have heard advice suggesting to take time off for your brains. Sounds reasonable, but what are the benefits? Backstory Recently I have been working all the time, either on TravelTimePlatform or my university courses. Some free time? Great - let’s debug that Naive Bayes issue I have. Shutdown Working a lot made me very focused on those things, I started to make mistakes and not feel productive/positive.
Read more

Real estate ads scraping with Scala and Akka - Proof of concept

Introduction Disclaimer: Not an expert in scala world - any feedback is appreciated. A question came to mind - can I crawl through a real estate website, gather some data and infer something from that data. This is also becoming relevant and interesting to me. What experience I want to get doing this side project: Data scraping (common problems, …) Concurrency while analyzing, gathering data (Akka Aktors) Data analysis, statistical inference (Knowing what to query and what results mean) Data visualization (how to display data in a meaningful way) DevOps experience (long running app: deploy, updates, backups, …) Planning phase How I imagine this little spider would work:
Read more

Let's code: CRUD in Angular with unit tests

Introduction CRUD application we are going to implement will have some additional complexity you might expect: import/export data save/load chunks data lazy data processing pagination tests This project’s source code is in github - https://github.com/benetis/angular-advanced-crud p.s some of code parts are not in sync going down - so I advise to also fork github repo and check code yourself Requirements & Task itself Aside of the stuff we mentioned above - we obviously will be implementing CRUD operations.
Read more

Let's code: Authentication in Angular #2 : Auth service

Introduction This is part two of Authentication in Angular series. This one is about building authentication part to handle OAuth calls for us. You can find first post here: https://benetis.me/posts/angular-authentication/ We will be using redux with our angular project to help us handle side effects. https://github.com/ngrx/store Our setup - angular-cli 1.0 + Angular4 (Angular 4.1) Aims After user clicks login - we need to call OAuth endpoint to get access and refresh tokens which we will store in local storage Show errors for user We want to store tokens in our redux store so they are easily accessible and can be added as headers to our api requests Login Ah, the login.
Read more

Let's code: Authentication in Angular #1 - creating login form

Introduction Login form - a gate though which user logs into application. If it is working well - you don’t notice it - if it is bad - it will always annoy you. Of course it is not only UX/UI problem - there are security implications on server side also. But we will keep these concerns beyond this post scope. We will have few blog posts on authenticating Angular application.
Read more