Tuesday, June 16, 2015

Can Apps Help Prevent Violence?

The notion of using a mobile phone in an emergency situation is nothing new. With an increase in technology adoption, developers have begun creating mobile phone apps which aim to target particular types of crime. This includes street based harassment of women and domestic violence. In the first of a series about apps that help in the fight against crime, this installment takes a critical look at some of the apps targeting violence against women across the world.

Apps targeting personal safety

There are many apps which are targeted at women in situations where they are feeling threatened or unsafe, particularly at night.

Continue reading %Can Apps Help Prevent Violence?%


by Cate Lawrence via SitePoint

La Ciné Fabrique

La Ciné Fabrique

Arty launching soon page built on WordPress promoting 'La Ciné Fabrique' - a French film school in Rhône Alpes.

by Rob Hope via One Page Love

High Availability WordPress with HyperDB

One of the reasons why I have always been so enamored with WordPress is because of the limitless possibilities it has. It seems like if you know PHP and how to leverage data and control it, you can do almost anything. A WordPress database can hold just about any type of data, which has made it even more useful with the added capability of custom post types and custom fields. You can save all sorts of data to a WordPress database.

The problem arises when you collect too much data, which can bog down your servers. Imagine huge websites with thousands of members, storing all sorts of information. This could be anything from member profile data, such as names, locations, and bios, to product information for a business website. One of the challenges is the limitation of using a single database and a single server to handle all of this. What happens when your lone server fails? The whole site and it's functionality comes tumbling down, until the server is restored to working order.

Continue reading %High Availability WordPress with HyperDB%


by James George via SitePoint

Testing a Sass Function in 5 Minutes

The other day, I was playing with the include-media library from Eduardo Bouças and I wanted to quickly test a function I built so I started writing a little mixin to help me test a lot of different scenarios. After a couple of minutes, I came up with the most minimalistic Sass testing engine you could possibly get.

While this article might be slightly technical, I believe it can be helpful to many people as testing is should be the responsibility of every developer. Also, when going through things one after the other, you'll see that it actually is not that hard to understand. :)

Creating a dummy function to test

Everything starts with a function to test. For our purpose, I suggest we go with a very simple function. Let's say, a function to double a number.

Continue reading %Testing a Sass Function in 5 Minutes%


by Hugo Giraudel via SitePoint

Creating a Web App From Scratch Using Python Flask and MySQL

Ruby Error Handling, Beyond the Basics

Alert - Finely crafted line icons

Imagine you're riding a bike. Now, imagine the designers of that bike built it so it rides smoothly only on roads without bumps and encountering one would result in the entire bicycle breaking! You wouldn't want that, would you? Yet this is how thousands of software developers design their software every single day. They put error handling in as an afterthought, dealing with it only when it's inevitable.

The truth is, it's not their fault. Most of the material on this subject is very basic, covering simple things like raising an error, rescuing it, different error types and...that's about it. This article will attempt to go deeper than that. I assume you're familiar with the basics of error handling (using raise, begin/rescue, what StandardError is, error inheritance). That's the only prerequisite for reading this article. Let's begin.

What Did We Do Before Raising/Handling Exceptions?

Before exceptions were invented, the primary method of communication that something in the program has failed was through error return codes. As time passed, people looked at ways to clearly distinguish between what their program does and what would happen if it didn't do what it was supposed to (return codes were far from ideal for this purpose) do. Thus, the invention of language constructs like:

  • raise
  • rescue
  • begin/end (Many other languages use different wording, like try/catch or throw, but the idea behind it remains the same.)

There are opposing views to using exceptions and error handling in the first place. Some of these points make sense and we'll discuss them later in the article. For now, let's get you familiar with some of the ways of handling errors in Ruby that can help you manage them better.

Continue reading %Ruby Error Handling, Beyond the Basics%


by Darko Gjorgjievski via SitePoint

A Look at WooCommerce Products Settings