Home » Web Dev (page 25)

Web Dev

Running a Rails Development Environment in Docker

As we prepare our new Docker-based infrastructure for running your tests, we’d like to show you how you can use the same environment for development as well. Feel free to follow along as I demonstrate how to move a simple Rails applications into Docker during development. Suppose we have a (very) simple new Rails application: gem install rails bundler rails ...

Read More »

Minimalist programming for the web

I’m not the most minimalist person in real life: I always have a ton of things going on, be it gardening, cooking, crafting or coding projects. This is a pretty common plight for a programmer since we like to tinker. But when I code something for production and not as a toy project, I believe that minimalist is something important ...

Read More »

Making Cultural Shift Happen

Let me paint a picture and see if it sounds familiar to you: You’re two weeks past the delivery date of the project you’ve been assigned to. So far, you’ve heard around the watercooler talk of staging yet another “coup” because your fellow developers feel that management has once again “dropped the ball” by letting the offshore team take the ...

Read More »

Dealing with the outside world for programmers

To work with the outside world where business and entrepreneurs lives, you must understand that we are in an alternate universe. For a programmer, playing with technology is fun. We live in a world where building your own server and rolling out your own custom solutions to every problem is something desirable. If something is hard to master and uses ...

Read More »

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 »

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 »

HTTP web server for Chrome to test local web applications

If you are writing HTML and JavaScript on your PC and testing the output in your browser without setting up a server, you will probably get some error messages about Cross Origin Requests. Your browser will render HTML, run JavaScript, jQuery or AngularJS web app, and … block requests. This is a common behavior of many web browsers due to possible ...

Read More »

Render Markdown in Rails with Redcarpet and SmartyPants

Rendering Markdown in your Rails app is pretty simple, thanks to the Redcarpet gem. We’ll set up a helper to render markdown in our views.                     First, add the following to your Gemfile and then run bundle install: Now, let’s create a helper to render markdown in our views: The ||= ...

Read More »