Categoría Coding

Learning how to do things so we can tell the computer how to do them so we don’t have to do anything. Wait a moment…

Coding Game: Unleash the Geek – day I

Yesterday I joined the latest contest on Coding Game called Unleash the Geek. I spent 3 hours creating and improving my bot and it was a great experience!

Tcpdump for REST APIs and Microservices

This is why I think tcpdump is one of the best tools when working with APIs and microservices.

Hypersonic game: when Objects hurt performance (Part Two)

This is the second part of Hypersonic game: programming a bot for fun (Part One), I recommend reading the previous post before. Rewriting the Bot in Java was really interesting because I faced a problem I don’t usually have when… Seguir leyendo →

Hypersonic game: programming a bot for fun (Part One)

Last month I discovered a web, CodinGame, where people can learn to program or try new languages in a fun way. There are small tutorials, to familiarize with loops, conditions, arrays and things like that. Quick competitions between users (5… Seguir leyendo →

Allow remote connections for PostgreSQL 9.3

Step 1 Edit file: nano /etc/postgresql/9.3/main/pg_hba.conf Add a line with your IP or mask, like for example: host all all 10.100.20.200/32 trust Step 2 Edit file: nano /etc/postgresql/9.3/main/postgresql.conf Uncomment line: listen_addresses = ‘localhost’ And replace localhost with * to listen… Seguir leyendo →

How to pass arguments to Node.js Async.series functions?

If you are trying to pass arguments to a Node.js async.series set of functions then this is going to help, I promise.

Imagine we have to methods in a Question-Answer website that we have to call before allowing a user to answer a Question.

We require the user to have enough reputation and also enough unicorns. Yeah, unicorns. This is an example, I can write anything here 😀

MongoError: cursor killed or timed out

Esta mañana, recorriendo documentos de la base de datos con Node y MongoDB he tropezado con este problema. Por poneros un poco en contexto: Tengo una colección de unos pocos millones de resultados de partidas de Dota 2 guardadas en… Seguir leyendo →

Node.js web scraping example

Today DigitalOcean.com will be reaching a million droplets created. The user who spins the millionth droplet and sends a tweet will receive 10.000$ in hosting credit! But I don’t want to waste time refreshing the page, nor come back and… Seguir leyendo →

Entradas siguientes »

© 2024 Salvatore — Funciona gracias a WordPress

Tema realizado por Anders NorenIr arriba ↑