Yoramk Digital Life

Yoram Kornatzky

Software Architect & Engineer Open Source, Mobile, Web, Cloud, Server

Start Laravel with the Admin

The Common Landscape of Laravel Projects You construct a new web app with Laravel framework. It requires a user facing and an administrator facing web app. It is really just one web app, with separate views, probably, but a shared database. How Do You Start? Well, you have the Artisan command lin...

How Software Engineers Acquire New Knowledge?

How does it really work as part of our professional life that we get into a new topic, a new tool, or a new skill? The New Things Appear You hear of a new buzz award or a new topic in your profession, be it a new JavaScript framework, a new build tool, or something bigger like a whole new domain ...

Transfer Data to Views and Vue.js in Laravel

Laravel 5.4 Laravel 5.4 uses Vue.js as its default front-end JavaScript library. This raises a new aspect in data transfer between controllers and views. Here we detail how to do it with Vue.js components being used within Blade templates. The Controller The controller, TheatreController, transf...

Upload a Huge File to AWS S3 with Node

The Standard Way Using AWS Node.js SDK we want to upload a huge file to AWS S3. Using putObject will probably timeout for a huge file. So we need streams. Stream the Upload Create the read stream: var readStream = fs.createReadStream(fileName); var params = {Bucket: bucket, Key: key, Body: rea...

Writing a Singleton in Node

Singleton Module Singleton are often needed, here is a quick way to write a singleton in Node.js: singleton.js module.exports = { x: 1, g: (v) => v*v } Use the Singleton one.js var singleton = require('./singleton'); module.exports = { f: () => { singleton.x = singleto...

A Blueprint for Location Tracking Using Laravel and Ionic

Location-Based Service Say you want to construct a mobile app for a location-based service such as on demand cleaning or any field service organization, in general. For a such a location-based service, consumers post a request and suppliers are allocated per demand. Suppliers move around through ...

Location Tracking Apps - Supply Side vs Demand Side

Many location-based mobile apps track user location for providing services. As a developer embarking on such a project, I found it useful to use the supply side vs demand side classification. The user population usually consists of suppliers and consumers. For example, taxi drivers and passengers...

Prototype Java Stream Processing in Node.js

We want to prototype in Node.js a stream processing program that will eventually be coded in Java 8+. A good way to do it is to code in Node.js using arrow functions. Node.js Collections Processing with Lodash Lodash is a Node.js (and JavaScript) module for convenient processing of collections, ...

Working with Linux Through an Enterprise Windows Desktop

The Enterprise Environment This is the common setup. You get a Windows laptop, and you are coding, but your target is a collection of Linux servers. Now, these are Linux servers, be it Ubuntu or CentOS, and they do not have a GUI. Coding directly on these Linux servers forces you to use the old V...

Sharing Data Between Laravel PHP and a Socket.io Server

In a recent project with my colleague Grzegorz Bukat, the server side was dual: A Laravel PHP web application running on Nginx A Socket.io server These two servers were directed at a single jQuery front end. The Laravel server generated the views and handled Ajax calls. The Socket.io server...