Jul 26 2017 8:00 AM JUL 26 2017 8:00 AM

2D Space Shooter "Asteroids"HTML5 Canvas

Javascript | CSS | HTML | HTML5

Long time no post! I have been rather busy with the outside world. Along with doing a lot of other things. Soon ill be posting more on some small projects I have been working on, so here is the first.

Basically a recreation of Asteriods (but different!) Currently no levels, or scoring just a death match you verses a bunch of enemies space ships and Asteroids!

I created this in response to games and there lack of ability to understand players. Sometimes simple game play is better than overly complicated. Even a 2D game can be fun! What kills games goes beyond this into politics of business that if game owners and developers actually made solid business plans they would find and endless supply of players.

Enough about that... This game I found myself returning to so many core math skills and even renewing my memory on Trig, Calculus, Physics, Geometry, and of course Alegbra. In a high end this game can do well over 200,000 calculations per second which back ten plus years ago this would not even be feesible. 

Read More
Oct 7 2014 5:00 PM OCT 7 2014 5:00 PM

5mm HandsKreo, Transformers, bendable hands.

Transformers | 3D Modeling | Transformer Customizing | 3D Printing

This was a fun little one day project. Basically I have a Transformer (Superion Revenge of the Fallen w/ Snowman add-on kit.)  the add-on kit adds hands that can open and close nicely, however I wanted them to be able to do a bit more. Additionally I made a new sword that is much large than the first one I made. (He has a hard time holding it!)

Anyways check it out...


Read More
Mar 23 2014 9:00 AM MAR 23 2014 9:00 AM

Comparing two directories for missing directories

Ubuntu | Terminal

I am working on a backup process for my wife's business. The problem we kee facing is, "Did we back this up?" and "We don't need to back everything up..." Part of this process I am working on is to insure that nothing goes missing... This command helps to make sure of this..


diff -q --exclude="Fantom" /Users/myusername/directory/ /Volumes/backup/ | grep "Only in" | grep "myusername" > out.txt

Read More
Mar 18 2014 7:00 AM MAR 18 2014 7:00 AM

How to click through overlaying element.Transparent Image click through


So designers now days and in general like to get really fancy! Thats great it looks great I get it... However it doesn't make life  easy and one situation I tried to cut a corner and found myself in a situation. Needless to say most browsers support this so I am good with it... Basically the design called for an overlaying border that was 1px all the way around an image. Yes I could have done 4 images and connected them.. But that is messy so I just positioned absolute bla bla bla... BUT! Then when I needed to click on something below it lo and behold the stinking overlay stole it! So here is the CSS fix...


pointer-events: none;

Read More
Mar 14 2014 4:00 PM MAR 14 2014 4:00 PM

Recursively find files and move them to another directoryFind files and move them to another directory

Unix | Ubuntu | Linux | Terminal

I had some software that made individual directories for each day of the month a picture was in... Needless to say that was annoying. So I needed to pull them out and place them into one directory...

find /path/to/files/ -iname "*.jpg" -type f -exec mv {} /path/to/where/you/want/them ;

Read More
Mar 1 2014 5:00 PM MAR 1 2014 5:00 PM

Find specific file types in Terminal

Unix | Ubuntu | Linux | Terminal
find . -name '*.cr2' -o -name '*.CR2' > cr2s.txt

Read More
Jan 8 2014 8:00 PM JAN 8 2014 8:00 PM

Dumping a mysql database that is on a different hostmysqldump

MySQL | Unix | Ubuntu | Linux | Terminal

Basically had an issue with phpmyadin and needed to get a decent dump of someones database. Problem is they setup restrictions on ip addresses so I had to be a bit creative. Most my normal tools such as SQL pro could not connect around all this (At lease to my best effort.)


mysqldump -h mysql.yourserver.com -u mysql_user -p database_name table_name

Read More
Sep 11 2013 2:49 PM SEP 11 2013 2:49 PM

Transfer a MySQL Dump to another server and install it.All in one line!

MySQL | Unix | Ubuntu

Thanks to a collegue of mine we were tasked with making a process to transfer files from one site to another in the event of a fail over. This happened to do the trick...


mysqldump -u root -pPASSWORD FS TABLE1 TABLE2 | ssh  'cat | mysql -u root -pPASSWORD FS'

Source: Timothy Boronczyk

Read More
Apr 2 2013 8:00 AM APR 2 2013 8:00 AM

Ubuntu blank screen with mouseStartup or from Lock screen blank screen with mouse



Ubuntu seamingly is a pretty good server. But as a Desktop OS has so  many driver/hardware issues it makes it nearly a Geek only operating system. If it wasn't for all the issues and constant need to "fix" it. It might actually make for a decent OS for "everyone." However yet again an issue that I find incredibly annoying I did some googling and found this in Ubuntu's q & a section.

This issue relates to starting up or returning from a lock screen. Ubuntu 11.04 and 12.04 often will start up with a blank screen with only the mouse cursor visible.


Read More
Dec 5 2012 5:00 PM DEC 5 2012 5:00 PM

HTML NotificationWeb browser Notifications / Webkit Notifications

Javascript | HTML | HTML5

Chrome and Safari both have HTML Notifications now via webkit. Firefox does have something similar to this but I haven't researched to much into it. A quick test to demonstrate what it can do below...

Read More
Jul 30 2012 12:00 PM JUL 30 2012 12:00 PM

JavaScript ThreadingProcessing large amounts of data in HTML using Javascript

HTML | Javascript | Websites | Tutorials

Ever ran into the lovely "Unresponsive script" error in your browser? This comes from several issues. 

  1. The persons running out of memory on their machine and the browser is taking longer than expect.
  2. The script that was created is doing to much and needs to be broken up.

In this article I will explain how to get around this and provide a method I developed for a recent project I am working on for ShoreGroup.

Read More
Jul 19 2012 8:00 PM JUL 19 2012 8:00 PM

Summer 2012 UpdateComing up...

Javascript | PHP | Linux | Ubuntu | Unix

Summers seem to always be the busiest far as running around. I have stepped away from doing any writing for the Summer. Now that summer is starting to heat up and come to a close I have a few articles that I am going to write about this month.

  1. JavaScript Threading
  2. Optimizing your WebApp for large applications.
  3. PHP CPU/Memory usages and how to optimize your app based on these.

Read More
May 6 2012 8:00 AM MAY 6 2012 8:00 AM

Super MoonHow to photograph the moon.

Cannon | Mark II 5D | Photography | Photoshop | Nerdy

There are probably hundreds of articles on how to shoot the moon... So I decided to write my own article and add to the mix also. Long as I can remember I have always wanted to be able to take a decent photograph of the moon. And finally I have done it! 

I decided not to photoshop the heck out of it, and let it be straight out of the camera other than some slight cropping.

Read More
Apr 25 2012 8:00 AM APR 25 2012 8:00 AM

Max URL LengthUsing GET has a maximum character length.

Apache | JQuery | HTML | Javascript

Web Browsers have maximum character lengths that once reached will break a GET request.

Internet Explorer has a maximum character limit of 2,083.

FireFox, Safari and Opera can go well over 80,000 characters. 

In some cases I have discovered FireFox has a limit similar to IE. 

Read More
Apr 23 2012 8:00 AM APR 23 2012 8:00 AM

Mobile JumpLearning proper Mobile Web

Mobile | CSS | HTML

We all know how much mobile is growing in the last year. Already the USA is at 6% with mobile web viewing. While my sites are way less than this and in most cases less than 2%. At this rate we could more than likely expect it to be more than 50% in 5 years. Because of this I am beginning to make the jump from thinking "Web First" to "Mobile First." This site now looks a lot better in mobile than it did previously. It still is somewhat quirky and is not fully optimized for mobile. 

Read More
Apr 18 2012 12:00 PM APR 18 2012 12:00 PM



Recently I needed to create a patch for a project and we have references in our database for wizards. These wizards exist in each folder, but cannot have more than one at a time in each folder. Currently the table does not have a unique key so I could not use:



Because of this I resorted to the following:

INSERT INTO tblName (reportName, folderId) 
(SELECT 1 FROM tblName2 WHERE reportName='Wizard' AND folderId = 1) LIMIT 1;

Hope it helps someone...

Read More
Apr 12 2012 8:00 AM APR 12 2012 8:00 AM

DHCP ReservationsLocal Static IP Addresses


DHCP Reservations is saving an IP address that goes along with a Mac Address. Making the device have a static IP on your network. This can be done by using your Router and going under a section by the heading "DHCP Reservation." Mine happened to look like:

It was also on the first page loaded up on my routers configuration page. I have a Cisco E3000 router.

My issue lately has been I use my local network for all sorts of things.

  1. Work 
  2. Web Server
  3. Running a VM of a product I work on for Shore Group.
  4. Streaming Video
  5. Internet 
  6. And so on!

I have a total of 3 machines running to work and do at lease 3-4 of the above. My Mac Mini does basically all of that above. It has a VirtualBox running Ubuntu for the product I am working on for ShoreGroup that has its own IP address. This needing to be available to the outside world for testing. (Its not running on port 80!!!) I also use an additional two labtops to develop on and rsync between the two often. 

Read More
Mar 21 2012 7:00 PM MAR 21 2012 7:00 PM

JavaScript Particle TestParticle Test & Browser Speed Test.

JQuery | Javascript

A while back I wanted to see what the speed of JavaScript in different browsers. To no surprise back when I wrote this Safari was champion of JavaScript. Now it appears its a mixed balance of Chrome and Safari.

Things you can do...

  1. Placing your mouse into the canvas area will result in the particles trying to "circle" your mouse.
  2. Placing your mouse into the canvas and holding down the left clicker will make the particles go into a near perfect circle around the mouse.
  3. Mousing out of the canvas will make the particles attempt to return to "bouncing."

Read More
Mar 10 2012 8:00 PM MAR 10 2012 8:00 PM

How to remove a hard drive from a MacBook without a pull tab.When your Macbook Internal Hard drive tab is not there...

Apple | Macbook

Tools you will need...

  1. Phelps head screw driver or Butter knife.
  2. Small phelps head screw driver or regular screw driver.
  3. Packing tape.

This tutorial will hopefully help you as when I was trying to google for help on this I came up dry with methods that were extremely destructive and no were near as efficient.

Read More
Jan 15 2012 2:00 PM JAN 15 2012 2:00 PM

Denial of Service AttacksPHP Vulnerbility, (DoS attacks), (DDoS attacks)

Hacking | PHP

Denial of Service Attacks or (DoS Attacks) or (DDoS Attacks) are a common battle in the web world. They involve a repeated ping or call on a server. The goal is to make the server/website unavailable.

I do my best to keep up to date on the latest hacks and not to mention old hacks resurfacing. One of these issues seems to be coming up again. And that has to do with PHP's $_GET, $_REQUEST, and $_POST variables.

These are excellent ways of creating heavy loads on a server if the maxium allowed variables is to high. Not to mention if each one of those variables is not limited it could potentially unleash a lethal Denial of Service attack on a victim hosing and destroying there CPU's.

Read More
Dec 13 2011 4:56 PM DEC 13 2011 4:56 PM

Ubuntu Terminal connecting to wireless internet DHCP Connecting to your Wireless Router with Terminal


Recently I was given a VDI, that is a Ubuntu Server. This runs a web app for a company that I work with. We use these VM's for development, integration testing, and testing. When I installed the VDI I found that it was not connecting to my local network by just using the regular settings. After roughly two tutorials I found a mix of the two to be my resolution.

Read More
Nov 17 2011 9:23 AM NOV 17 2011 9:23 AM

Website Hosting SolutionsWebsite Hosts


I have been thinking on this topic for a while and have come up with a couple easy steps to figuring out what will be the best hosting solution for you.

Firstly you will need to ask yourself these questions.

  1. What can I afford?
  2. How big of an application / website am I going to run?
  3. What level of traffic are you expecting / have?
  4. What is your technical knowledge of administrating servers?
  5. What kind of application / site are you running (Terms and Conditions may prevent you from doing some...)

These five questions should really help you decide in what to go with. So now ill go in depth and explain each portion. Aft ert this ill explain the differences in the different types of hosting.

  1. Shared Host / Grid Hosting
  2. VPS Hosting (Virtual Private Server)
  3. Dedicated Server

Yes there are other hosting types that exit, but to not complicate this decision more ill leave that for another post. I have been round robin with several different hosts now. Each I have found things I like, and things I do not like about them. So with my research and sit back and enjoy. As a side note this will be a two part post as I want to go into details about each host that I will review.

Read More
Oct 3 2011 5:30 PM OCT 3 2011 5:30 PM

Google Search API vs Bing Search APISearch Engine API

PHP | JSON | Web Services

One of the things I love to do is learning various API's and new technologies. One of my many side projects is a Dance Dictionary that will contain step names, how to's, definitions, videos and pictures. I started writing up the tech specs and a scope for the project and start to think about utilizing a search engine to power parts of it.

Out of my research the two engines that came to mind were Google and Bing. Now my scope of the project will rely heavily on two things. 1) Images 2) Videos. Later on ill probably utilize more items such as question and answers and such but that cant wait.

Read More
Sep 29 2011 11:27 PM SEP 29 2011 11:27 PM

LAMP Stack InstallSetting up a LAMP environment.

Apache | PHP | MySQL | Ubuntu

Recently I got curious and adventurous into setting up a Virtual Environment on my Mac's VMware Fusion with Ubuntu, Apache, MySQL and PHP. As a Web Developer I often find little need to be a Sysadmin and spend WAY more time developing. It may come as a shocker but its often not a required effort to need to have the knowledge now days of how to setup the environment I work in! An analogy behind this is a mechanic doesn't necessarily build cars, but rather fixes them. While they may understand the details behind it they may have never put a car together from start to finish, but if they had to they could...

So I figured I would post a little bit about what I did to get it going. Because this was my first run of doing this it took a little longer than it should have. But now that I have gone through it I could probably do it as fast as my machine can download.

Read More
Sep 15 2011 11:43 AM SEP 15 2011 11:43 AM

HTML ValidationImportance of Validating HTML


Recently I ran into an issue with IE 8, but all the other versions of IE and Firefox, Chrome, and Safari looked just fine! Some of the sites I work on happen to get extremely large and the CSS, HTML portions get split up over several files. Because of this often times its easy to miss something. Especially when there has been 5-6 developers in that section over time.

When dealing with Cross Browser support I find that HTML validation is a must. It may not resolve every issue that comes up to bat, but it will certainly help on some crazy pesky issues.

Read More
Sep 12 2011 5:35 PM SEP 12 2011 5:35 PM

CachingRecent Additions to the Site

JQuery | Javascript | PHP | MySQL

Lately I have had "caching" on the brain and have been working on a decent way of caching.

So far I have found that caching is obviously faster and in XML format makes it really easy to iterate through in Object format.

My methods so far are

  1. Checking a database table for current cached item information.
  2. If it has an expiration date or does not exist the feed needs to be cached.
  3. If needs to be cached - Caching will grab the feed via curl, fopen, or file_get_contents()
  4. Feed will then be stored in a file in a specific directory on the server. 
  5. Database will either be updated or inserted with feed information.

Read More
Sep 11 2011 2:00 AM SEP 11 2011 2:00 AM

Development TheoriesUI Testing all guessing?

Tutorials | Websites

Something I have been saying for a long time now is how the Web World is a guessing game. The same thing can be applied to many other occupations. Facebook, Twitter, and so many other "start ups" that have succeeded in becoming a house hold name in the beginning had no idea if they would be viral.

Facebook had a humble beginning that lead to a insanely addicting social network that allows you to connect with everyone you know and their trash cans. Twitter provides us with a 140 characters or less thoughts. Which is nice as Facebook friends to give us WAY to many details about their lives.

Suddenly with these two start ups they created a new fad. Status updates!

What does this all mean? Basically they chimed in on what they thought to be a "hole" in the market. This hole they filled or rather created.

Read More
Sep 9 2011 8:00 PM SEP 9 2011 8:00 PM

Unix TutorialsUnix for Beginners

Websites | Unix

Recently I ran into a great Unix tutorial. It goes in great detail explaining the basics and goes up into some more advanced commands.

To say the least Ill just give you the link...


Read More
Sep 8 2011 12:41 PM SEP 8 2011 12:41 PM

Special Characters to HTML EntitiesJavaScript character entities


Recently I posted about HTMLEntities and a PHP function that can convert crazy characters and such to their HTML form.

Along with this I posted about encoding types. Let me first say that these two go hand and hand. When dealing with funky characters such as "éœ∑´®†¥ˆ˙ƒ." And then throw in different page encoding's such as UTF-8 and ISO-8859-1. If you take those same characters and POST them or output them from a database to a different encoding type you might soon find them to be entirely different.

Frustratingly enough there is tons of methods to fix this issue, but found only one method to work for my situation. It basically involves changing the characters to their HTML variants before being saved to the database.

Read More
Sep 6 2011 11:56 AM SEP 6 2011 11:56 AM

Wysiwig Editor Example Code IssueConvert special characters between certain tags.

HTML | PHP | Websites

One of my issues lately with my CMS system has been the TinyMCE (Wysiwig Editor). Doing example code has been extremely painful. As everytime I would go back in to make an edit I would have to rewrite the examples as it would convert it to real HTML and or Javascript. Because of this I found myself wasting a lot of time fixing these articles every time I would make an edit.

Luckily I found an easy fix. I switched from using blockquotes to pre tags with code tags. Not only this but I found a PHP script that cleans the code behind these tags to make things as they should be.

Read More
Sep 4 2011 9:00 PM SEP 4 2011 9:00 PM

Auto PaginatePaginate with and without Javascript

JQuery | HTML | Javascript | PHP | MySQL

Recently I did a post about website loading. Which had me thinking... Paginiation! Its a lovely device that allows you to not have to display all the content on the same page. There are so many forms of pagination and pagination theories. One of which is a newer method called. "Auto Pagination." It is seen on many sites such as local pages on google and several others.

It basically detects the "windows" scroll and once a certain position on the page has been achieved it loads more content into the page. Some other neat useages of this window scroll is on mashable.com when reading an article if you scroll far enough down it will display the next article on the list. But this is about pagination...

Read More
Sep 4 2011 4:00 PM SEP 4 2011 4:00 PM

Website LoadingWebsite Speed, Website Images

Plugins | Websites

The speed of your website loading is still a common issue with websites. Looking back in the past 56k modems were the majority of people online. Now days its common for average speeds above 2-10MB per second! It would seem that with the increase of the speeds that size would truly matter. However, because faster download speeds are more common larger sites are even more possible.

Read More
Sep 2 2011 12:04 PM SEP 2 2011 12:04 PM

PHP htmlentitieshtmlentities with input text boxes

PHP | Tutorials

Ever had issues with putting HTML inside of HTML text boxes? This can be a pain as often times you will find different browsers will read it fine, but then some will break it.

In PHP there is a wonderful function called "htmlentities."

Read More
Sep 2 2011 8:18 AM SEP 2 2011 8:18 AM

Javascript split/join vs replace.split(" ").join("") vs .replace(/ /g, "")


Recently I heard a extremely random agrument about a simple Javascript method.

Basically take a random string.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Multiply this about 500 more times... And then run these two seperate items...

var str = "Lorem  ipsum dolor sit amet, consectetur adipisicing elit, sed do  eiusmod  tempor incididunt ut labore et dolore magna aliqua. Ut enim ad  minim  veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip  ex ea  commodo consequat. Duis aute irure dolor in reprehenderit in  voluptate  velit esse cillum dolore eu fugiat nulla pariatur. Excepteur  sint  occaecat cupidatat non proident, sunt in culpa qui officia  deserunt  mollit anim id est laborum.";
alert( str.split(" ").join("") );
alert( str.replace(/ /g, "") );

Which one is faster?

Read More
Aug 31 2011 12:04 PM AUG 31 2011 12:04 PM

XML ParsingSpeeding Up Your Site

HTML | Javascript | XML

So you have a website and that site gets millions of hits per day. Either you are running a silly static site that you manually update or you have some intense CMS that caches using all sorts of methods.

XML happens to be one of the biggest tools of the trade.

Read More
Aug 29 2011 1:05 PM AUG 29 2011 1:05 PM

Content Type EncodingUTF-8, ISO, importance of setting an encoding type.


Encoding is simply one of the most strangest topics with websites.

Usuaually I find issues when translating between encoding types such as UTF-8 to ISO or any variation of this. Setting the encoding type of the page is extremely important. "Obviously." Otherwise your browser trys to guess what it is and may fail at it. Along with this hackers can easily change the encoding type and get around your XSS filters. Which will then allow them to do XSS attacks.

Read More
Aug 29 2011 10:13 AM AUG 29 2011 10:13 AM

JQuery TipsPerformance | Speed | Tips

JQuery | Javascript

When using JQuery it is easily abused with how many shortcuts and routes you can do the same thing.

I could go through my list of things to help with optimization, but this guy does such a good job...


Read More
Aug 25 2011 9:43 AM AUG 25 2011 9:43 AM

MySQL Optimization10 Things to Optimize MySQL.


Recently I was given a great link that gives ten great ways to optimize MySQL. With its may open ended methods that leave you crossed which direction to go. I found this article extremely helpful.

20Bits By Jesse Farmer

Read More
Aug 19 2011 11:31 AM AUG 19 2011 11:31 AM

PHP Stripping Certain Characters.Remove everything but Alphanumeric, spaces, dashes, and underscores.

HTML | PHP | Tutorials

Filtering inputs is often a huge issue when figuring out which method is best. Typicallly its a matter of what exactly are your needs. Asking these few questions can resolve the problem.

  1. Is the input needing more than letters a-z and 0-9?
  2. Does the input need to be able to allow some tags but not others?
  3. Can you filter everything out and not worry about what it returns?
  4. Can you convert html characters to their entities so it still displays properly?

Read More
Aug 14 2011 2:00 PM AUG 14 2011 2:00 PM

Hacking the WebXSS Attacks | SQL Injections | DDOS Attacks

Javascript | PHP | MySQL | Hacking

Hacking seems to be a common occurance now days. While it seems to be a somewhat complicated process in reality it is mostly simple hacks that result in tremeduous damage, costs, and lose of data.

Two Types of Web Hacks

XSS and SQL Injections. There are obviously more such as DDOS attacks, but those are short term.

What are they?

XSS is simply inserting Javascript into a page. An example of this is a simple alert.


SQL Injections are a wider range of possibilities. They allow you to delete an entire database, to outputting important information. Or even logging in as an adminstrator.

Read More


Social Media