Tony Lea

Howdy, Welcome to My Blog

September 27, 2012

How to get Memory and CPU usage in PHP

Written by Tony Lea - 1 minute read

So, a couple weeks ago I experienced heavy server overloads on an app due to so many concurrent users. There may have also been some code clean up that was necessary. Either way it was kind of a headache, but also a learning experience. So upon searc...

September 25, 2012

Detect if your browser supports WebSockets

Written by Tony Lea - 1 minute read

WebSockets are great for creating a bi-directional connection between the server and the client. It's also great for making some awesome real-time and interactive web apps. The only downfall with WebSockets is that they are not supported by all brows...

June 30, 2012

Keeping your Node Server running Forever

Written by Tony Lea - 1 minute read

Yeah, it's really cool that you can start your node server from a terminal window by typing 'node server.js', but then you close the terminal or disconnect and your node server is no longer running... Well, wouldn't it be great if you were able to ke...

June 28, 2012

What is NPM?

Written by Tony Lea - 1 minute read

When getting started with Node JS you may hear the term NPM being used often (usually lowercase 'npm'). What exactly is it and how can you use it? Well... npm stands for Node Package Manager and it is an online repository for open source Node.JS p...

June 16, 2012

A Simple Node Example

Written by Tony Lea - 3 minute read

Here is a simple Node JS example that I hope will help someone's journey with getting started with Node JS a little easier. First off, I thought I would explain in the simplest form what Node JS is and what it does. I am by no means a Node JS expert,...

May 20, 2012

Rails Authentication With Devise

Written by Tony Lea - 1 minute read

The Devise Gem makes it really easy to create a full authentication app with Ruby on Rails. In the video below, I will walk you through setting up and installing the Devise Gem on your rails app. Below the video are all the commands and code that I u...

May 19, 2012

Rails Todo App with Scaffolding

Written by Tony Lea - 1 minute read

In this quick video I wanted to demonstrate how quickly and easy it can be to create a small todo list app using Ruby on Rails. Below is the short video which will show you how you can create a todo list app in about 60 seconds. Run the following ...

April 4, 2012

5 Excellent Tools for Finding the Perfect Domain

Written by Tony Lea - 2 minute read

Doesn't it seem like all the good '.com' domains are taken? I love coming up with new ideas, but when it comes to finding a new domain name it becomes impossible to find an available domain that fits the shoes for my new website project. Shouldn't fi...

April 4, 2012

How to detect radio box change with jQuery

Written by Tony Lea - 2 minute read

I'm constantly finding myself searching Google when I need to find out how to detect when a radio box has been changed using jQuery, and sometimes I have to search down a couple results til I finally find one that works. So, since this may come up ag...

April 3, 2012

How to talk to the parent page from an iframe

Written by Tony Lea - 1 minute read

Somtimes you need a way to communicate with an iframe. Talking directly to the iframe can be done by sending parameters via the src URL, but what if you need a simple way to pass something from an iframe to the parent page? Well, the simplest way to ...

1 2 ... 11 12 13 14 15 16 17 18 19 20