Promise Anti-patterns
Promises are very simple once you get your head around them, but there are a few gotchas that can leave you with your head scratching. Here are a few that got me.
PG Phriday: Why Postgres
Generic HTTP Error Handling in AngularJS
Lately during development at one of our clients, Ravello Systems, we decided we wanted better HTTP error handling.
Basically, our perfect solution would have generic handlers for errors, and most calls in the code will not have to do any special work for handling errors. This means that things like authentication problems, server unavailability issues, etc. will be handled in one place — like adding a generic “something went wrong” modal.
The Fastest Method to Evaluate Tune the Performance of Any PHP Web Application Server using MySQL or PostgreSQL
In the Web development world, we often have the problem of choosing the right server to use in the production environment of a Web application.
Maybe we need to buy a new server to handle the expected load, or maybe the customer wants to deploy in an existing server.
In any case, if after deploying and running the application it will show poor performance, then we need to ask the team what we can do to make the application faster or use a better server.
Therefore we need to determine if the application is performing well. Read this article to learn how to quickly determine the performance of an application on the current server.
Postgres 9.6 Features
PostgreSQL is now on version 16. Check the release notes
The Definitive Guide to DateTime Manipulation
As a software developer, you can’t run away from date manipulation. Almost every app a developer builds will have some component where date/time needs to be obtained from the user, stored in a database, and displayed back to the user.
collect-exec.sh – My personal OS report
The script collects a lot of information about the running system and save the output of each commands in a text file, and saves copies of important files in a directory named files. At the end of the script everything is compressed with tar in the global directory.
Faster PostgreSQL Counting
Everybody counts, but not always quickly. This article is a close look into how PostgreSQL optimizes counting. If you know the tricks there are ways to count rows orders of magnitude faster than you do already.