JavaScript Canvas - Getting Mouse Position When Page is Scrolled
Feb 16, 2014ProgrammingComments (5)
If the user has scrolled the page that your canvas game is on, or used the browser zoom feature, it can mess up the accurate calculation of the mouse position. An easy solution is to use the getBoundingClientRect method of the canvas object. This returns a rectangle object that gives you the current offset of the canvas relative to the page.
Continue Reading ›
Roguelike JavaScript Canvas Endless Shoot 'Em Up
Jan 31, 2014PC GamingComments (1)
This is my first JavaScript Canvas (HTML5) game. It's an endless shoot 'em up where the objective is to stay alive and rack up kills. The game starts off slow, but continually picks up speed. Eventually you will be overwhelmed.
Continue Reading ›
Complete Roguelike Flash Game In 1649 Bytes
Jan 13, 2014Programming
I was inspired by this blog post by Emanuele Feronato about making a sub-2KB Roguelike Flash game. Using his game as inspiration, I decided to try it out. I used BitmapData to display the game objects instead of TextField and ended up getting it down to 1649 bytes. The game rules are very similar, though it is programmed from scratch. The result is embedded below:
Continue Reading ›
Just Cause 2 PC: Fix "Not Enough Storage Is Available To Complete This Operation" Windows 7
Dec 18, 2013PC GamingComments (21)
Many are receiving this error message when trying to start Just Cause 2 on their PC:

Not enough storage is available to complete this operation

The first solution is to make sure you have enough free storage space and memory (RAM), and close any programs you don't need open. This is often not the real solution to the problem though. The error message may be very misleading.
Continue Reading ›
How to Remove Icon Badge Notifications on Android Samsung TouchWiz
Sep 20, 2013MobileComments (5)
Launcher icon badge notifications are available in Samsung TouchWiz devices with Android Jelly Bean. They resemble the badge notifications in iOS. Social, messaging, and email apps can utilize this functionality to display a number showing how many new notifications there are.
Continue Reading ›
PHP Class vs Object vs Array Attribute Performance
Apr 17, 2013ProgrammingComments (1)
Recently I was curious about the performance (in terms of access and assignment time) between class static attributes, object attributes, and array elements. Say if you're wanting to store some information that is accessed regularly, and want to know which method is the fastest.
Continue Reading ›
How to Disable Intro & Loading Movies in XCOM: Enemy Unknown
Apr 15, 2013PC Gaming
There are two ways to disable movies in XCOM. One is to edit the XcomEngine.ini file, which I have had mixed results with, and the other is to physically move the movie files, which I have had good luck with.
Continue Reading ›
How to Log PHP Errors/Warnings
Mar 4, 2013Programming
Logging PHP errors and warnings is important on both your production and development servers. Often times these messages go unnoticed, even if you have display_errors on.

To start logging errors, open up your php.ini file. Scroll down to or search for the line that has the error_log variable. It will probably look like one of these:
Continue Reading ›
How To Get YouTube Thumbnail URL/Web Address
Oct 30, 2012Web and InternetComments (1)
YouTube stores several image thumbnails for every video. These are used for video previews and can be extracted and used elsewhere with one of several different web addresses (URLs).

In each of these web addresses, replace VIDEOID with the eleven character long YouTube video ID.
Continue Reading ›
Why YouTube Video Views Get Stuck At 301
Oct 30, 2012Web and InternetComments (2)
Note: YouTube has officially done away with this "feature" of YouTube. See the Twitter post explaining their change. The rest of the post will be kept for historical reasons.

----------------------------

The reason YouTube video views get stuck around 301 views has been explained fairly well in this 9 minute YouTube video. In case you don't want to watch a video, here are the basic points:

When a video has less than or equal to 300 views, YouTube counts each view normally, with low validity checking. These videos are usually low-impact videos intended for small audiences like family and friends, so making sure views are legitimate isn't super important.
Continue Reading ›
Installing Adblock Plus on Google Chrome
Oct 30, 2012Web and Internet
Installing Adblock Plus on the desktop Google Chrome browser only takes a few clicks. First, go to the Adblock Plus install page while in your Chrome web browser. You must be in Chrome and not Internet Explorer, Firefox, or any other browser.
Continue Reading ›
Basic Minecraft Server Commands
Aug 3, 2012PC GamingComments (29)
Here is a list of basic Minecraft server commands that you should know to operate a Minecraft server. For a more complete list, see the Minecraft Wiki.

You can enter these commands directly into the server command prompt window or proceed them with a slash (/) in the chat window in-game (as long as you have operator permission).
Continue Reading ›
ActionScript 3: Array vs Vector Performance
Aug 2, 2012Programming
With Flash version 10, Adobe added the Vector class, which is similar to an Array but more strict. Each Vector can only contain data of the same type and its data type must be declared during instantiation. I'm not going to go over the syntax to use Vectors in this post, but they are very similar to Arrays and have a lot of the same methods and properties.
Continue Reading ›
ActionScript 3 Object Pool Tutorial
Jul 17, 2012Programming
If you're unfamiliar with object pooling, it is a way to speed up processing time by keeping objects in memory and reusing them, instead of always instantiating new ones and garbage collecting them.

This example uses package and custom class syntax. If you are unfamiliar with these, see my introduction to package and classes post.
Continue Reading ›
NewerPage 16Older