Nube

Creating Your Own Istio (Part 1)

Let say we have a web service that handle some business logic and we need to get some information about how many times a particular endpoint is being hit or imagine that we want to have the option to shut down a particular endpoint on demand. ...

Finding Performance Bottlenecks in JavaScript.

One of my hobbies is to write (and sometimes re-write) graphics engines. I do this because I love the challenge of writing not only fast code but scalable code and also because I like visual stuff. This time I decide to write one in JavaScript using WebGL and as soon as I have a workable set of API’s I decide to write an simple vortex animation to see how well my new shinny new engine will perform. ...

4 Ways to Build Applications in OpenShift

We are going to discuss the different strategies for building our software in OpenShift. These strategies are useful if you need to solve any of the following problems: ...

Chaining Builds In Openshift

New application Creating a Node.js application in Openshift is simple: oc login -u user oc new-project hello # Assuming you are logged and you have a project you can start here. oc new-app --name node-app nodejs~https://github.com/cesarvr/hello-world-nodejs #new app using nodejs:latest (Node.js 8) This command will create the backbone (BuildConfig, DeploymentConfig and Service) to orchestrate the different stages from source code to a running application. The size problem But this nice abstraction come with a cost, to explain what I mean, let’s review size of our final image using du:...

About

My name is César Valdez, I’m a software engineer currently working at Red Hat, I love computer since I got in my hands my first computer a Compaq 425, my first programming language was Visual Basic 5.0 which I teach myself by reading the MVB help files, that said a lot about the quality of that documentation. After that I learn QBasic and C. Seems like yesterday when I was showing my friends my first hello world in C and feeling like a hacker....

Creating Your Own Containers

What is this post about This post is basically about how to create your own container program using C. In this article we are going to review the technology and principles that make the isolation of processes a reality in Linux, the steps are based on this excellent talk by Liz Rice. Why C Because I love the simplicity of the language (maybe I’m just a romantic) and also it is the lingua franca of Linux, which means that it helps to get a better understanding about how things work at a system level....

Containers For Beginners

What is a container ? A container is just a way to achieve process isolation. Unlike virtual machines, they don’t achieve isolation by simulating hardware, but by using existing Linux kernel features. In a typical Unix/Linux OS all processes share the same user space, but with the introduction of new features in Linux 2.6+, you can create a process that has its own particular set of isolated contexts like file tree, threads, etc....

How to generate a PDF Documents using Cordova, for Android and IOS

Why Some of my work at Red Hat is to design and develop end-to-end mobile/desktop application using Apache Cordova and using Node.JS, One of the typical challenges I face, when working with some costumer, is how to generate reports in PDF format, the usual way to solve this was to use a server side API render the document there and send it to the phone, this is not nice, the first reason, you need network connectivity for this to work, the second is the lack of good and free PDF API’s in the server side, so I decide to write a plugin to move this job to the mobile device, the advantages of doing this are:...

Exporting external images to Openshift

Getting Started First you need to have an Openshift installation on the cloud or in your machine, the second option is the easiest one thanks to the oc cluster up command, this will create a small local installation of openshift in your machine, if your are not familiar take a quick look at the documentation. Creating a project Once oc cluster up finish you should have an Openshift installation up and ready in your local machine, now next step is to login in and create a project....

Embedding Javascript v8

Building V8 Javascript Engine. Introduction I was thinking sometime ago about starting hacking with V8, aside from the fact that I work every day with Javascript, is that the Chromium engineers are doing a very good job making V8 fast and efficient and for some task good Javascript code is faster than C++, here is a great talk about the sophisticated JIT generation in Javascript. After many days of procrastination, I put my hands-on and start the task of downloading the project and prayed that everything would just work, like many things in life it didn’t work the first time, here I documented all the steps, if somebody wants to start playing with this, hopefully this will make their life easy....