How to Add to and Edit Windows Path Variable
May 12, 2017WindowsComments (1)
The Windows Path variable is a semicolon-delimited string of directory locations. These locations contain executable programs that can be called directly, without needing to type in the full file path.
Continue Reading ›
PHP Amazon S3 File Upload Code AWS Signature Version 4
Apr 12, 2017ProgrammingComments (9)
Amazon offers a PHP SDK for handling AWS and S3 requests, but it weighs in at over 500 files and nearly 5MB. If you just want to upload a file to an S3 bucket using PHP, you can create the HTTP POST request yourself using only about 50 lines of code. This is also useful if you want to understand how the request and authorization process work.
Continue Reading ›
Create 2D Mesh Outline in Unity (Silhouette)
Mar 6, 2017ProgrammingComments (2)
This code creates an outline of a 2D mesh utilizing the LineRenderer component in Unity. It does not require any shaders and seems to run very quickly from my testing. It also supports meshes that have mutliple non-connected components.
Continue Reading ›
Kerbal Space Program - Full Eve Return Mission with 3 Kerbals & Rover - Career Stock 1.2.2
Feb 11, 2017PC GamingComments (1)
Landing and returning from Eve is one of the hardest missions in Kerbal Space Program. Eve has higher surface gravity and a thicker atmosphere than Kerbin, but no oxygen for jet engines.
Continue Reading ›
Home LED Light Bulb Savings Calculator
Nov 8, 2016Energy
Use this calculator to figure out how much wattage and money you can save by converting to LED light bulbs in your home.
Continue Reading ›
Why You Should Avoid "A Small Orange" Web and Domain Hosting
Oct 18, 2016Web DevelopmentComments (4)
A Small Orange hosting was once the pinnacle of exceptional-quality web hosting. They had impeccable customer service and response times, great pricing and plans, and a wonderfully-designed website. Unfortunately, this is no longer the case. Here's why I now recommend avoiding A Small Orange, and what host you may want to consider instead.
Continue Reading ›
JavaScript Static Properties and Methods
Sep 28, 2016Programming
Here is a very simple example on using static properties and methods (variables and functions) with JavaScript.
Continue Reading ›
Scam Text Message from 855-254-9217 us-bankofamerica.com
Sep 11, 2016Web and Internet
Lately there has been a scam text message going around trying to trick people into thinking their Bank of America account has been compromised in some way. It contains a fake authorization code, and a link to "block" the transaction.
Continue Reading ›
How to Measure Actual Computer Power Usage, Wattage, and Cost
Sep 8, 2016Computer HardwareComments (2)
If you're curious how much power your computer uses at the outlet, you'll have to get a measuring tool. You can get a rough estimate by adding up published specs for each component, but that won't be too accurate and you won't be able to determine load-vs-idle power usage.
Continue Reading ›
Automatically Create Polygon Collider 2D From 2D Mesh in Unity
Sep 6, 2016ProgrammingComments (14)
I was working on a 2D game in Unity and needed some way to automatically create a collider for a complex 2D level mesh. Editing a Polygon Collider 2D in the editor was out of the question, since there were thousands of vertices. I ended up writing a script that analyzes the MeshFilter of the mesh, and programmatically creates a Polygon Collider 2D for it. It also supports meshes that have mutliple non-connected components.
Continue Reading ›
Using HTTPS with Amazon S3 and Your Domain
Sep 4, 2016Web DevelopmentComments (8)
One of the cool things about Amazon S3 (and most other cloud storage services) is that you can map your own domain or subdomain to your bucket using a CNAME, so it looks like resources are being served by your website. The downside is it doesn't work with HTTPS.
Continue Reading ›
Simple PHP Code for Uploading a File to an Amazon S3 Bucket - Signature Version 2
Sep 2, 2016ProgrammingComments (4)
Note: This code uses Amazon AWS Signature Version 2, which is not available on any S3 Regions created after January 30, 2014. It is recommended to use Version 4. Please view the AWS Version 4 post here.

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

Amazon offers a PHP SDK for handling AWS and S3 requests, but it weighs in at over 500 files and nearly 5MB. If you just want to upload a file to an S3 bucket using PHP, you can create the HTTP POST request yourself using only about 30 lines of code. This is also useful if you want to understand how the request and authorization process work.
Continue Reading ›
How to Use Amazon S3 Redirect Rules and Example Code
Sep 1, 2016Web DevelopmentComments (1)
This is a guide with examples for setting up a simple redirect rule for your Amazon S3 bucket. This rule sends the user to a website and page of your choice when they access a resource that is not found or they do not have permission to access.
Continue Reading ›
How to Make All Objects in Amazon S3 Bucket Public by Default
Aug 31, 2016Web DevelopmentComments (6)
If you want to make all items in your Amazon S3 bucket viewable by anyone that has the URL, you need to add a Bucket Policy that gives "Allow" permission to all users for all resources in your bucket.
Continue Reading ›
NewerPage 4Older