Getting started with the Loneman’s Coder Methodology

I’ve embarked on a side project to develop an event scheduler without much planning, but every good software project needs a methodology. Since no methodology I know really suits what I’m doing, and because the world of software really needs yet another methodology, I’ll share mine here. This methodology will be called the Loneman’s Coder Methodology in the spirit of ...

Read More »

PyMongo And Key Order In Subdocuments

Or, "Why does my query work in the shell but not PyMongo?" Variations on this question account for a large portion of the Stack Overflow questions I see about PyMongo, so let me explain once for all. MongoDB stores documents in a binary format called BSON. Key-value pairs in a BSON document can have any order (except that _id is ...

Read More »

Mapping Salesforce Object fields to Drupal Taxonomy terms

The Salesforce Suite module for Drupal synchronizes Salesforce Objects with Drupal Content Types on a one-to-one, field-to-field basis. However, it doesn’t map an Object’s fields to a Content Type’s Taxonomy terms. After laying out a use case, I’ll share my working solution. Example Let’s say you want to replicate Salesforce Contact Objects as instances of a Drupal Content Type. The ...

Read More »

CSS Button Style Example

In this article, we’re going through CSS Buttons. As we all know, buttons are important elements on pages and we use them to visually beautify common actions like download, upload, log in/out, submit and so on. A good button design enhances usability. Before we explain how to style buttons, keep in mind that buttons are not links. The main purpose ...

Read More »

HTML5 Input Types Example

If you are developing web applications, you may have created forms, at least for a contact page, or even a login page. So I suppose you should know how to create a form, and the major field you can add such as text element, password field, or other checkboxes and radio buttons. Of course you will add a submit button ...

Read More »

Pack It Up, Pack It In

Let me begin with a list of usual suspects up to no good in the browser: CoffeeScript (or TypeScript) Less (or Sass/Scss) Jade (or Handlebars, Mustache) I mean, because, you know, writing in HTML/JS/CSS is so 2000-late. All this 74 72 61 6e s p i l a t i o n. A typical layout. Something like this: You’re using ...

Read More »

The mystery of no flash session variables in Express + Passport auth

Someday I started an application using NodeJS with ExpressJS framework and decided to use passport for authenticate the users. As many other times I wanted to use flash messages so, when user authentication fails, the application shows a message informing about bad credentials. Nothing new on the horizon until…. OMG !!! I can’t see the flash messages !!! Disclaimer: This is ...

Read More »

CSS Multiple Classes Example

In this example we are going to have a look at multiple classes that you can apply on an element of html. It has become more and more useful declaring some standard classes in CSS (actually referring to them, even though they do not exist) and using these classes whenever we need in our elements. It basically is the inverse ...

Read More »