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.
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.
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.
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.
--------------------
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.
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.
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.
Aug 10, 2016Web and InternetComments (2)
During the Olympics, Yahoo displays a box in the lower left of your mail inbox with the medal count for each country. If you want to remove this, you can do so using any standard ad blocker.
Jul 13, 2016Computer Hardware
This is a step-by-step guide showing how to purchase and build a custom gaming PC for around $500 US. I will list the exact components that were used, with links to Amazon, and show you in detail how to put it together. Each year I will keep this guide updated along with my own PC upgrades.
Jun 27, 2016Web and Internet
Amazon often shows a video ad on their frontpage for their women's dresses section. It can be distracting, as any auto-playing video is. Here is an easy way to remove it using a standard ad blocker.
Apr 8, 2016Web and InternetComments (46)
Yahoo has video ads that auto-play when you empty your spam folder or have an empty inbox or other folder. When they first introduced them you could disable them, but shortly afterwards Yahoo made them permanent. Here is an easy way to remove them completely using any standard ad blocker.
Feb 16, 2016WindowsComments (3)
With version 3.15 of FileZilla FTP, the developers have added a notification bubble that pops up when transfers are complete and FileZilla is not in the foreground. With version 3.16 they made the bubbles pop up whether FileZilla is in the foreground or background. Disabling these notifications isn't immediately obvious. Here is how.
Feb 2, 2016MobileComments (8)
ES File Explorer for Android has become increasingly bloated, starting with version 4.0 that came out in August 2015. It now has forced home screens, background running, notifications, a cleaner app built-in, and other bloat that is generally not necessary for a file manager.
Jan 28, 2016MobileComments (4)
The amount of power your mobile device consumes while charging depends on the amperage rate of your charger. This should be listed on the plug-in part of the charger in very small print. For phones it is usually around 1.2A at 5.0V. For tablets it is usually around 2.0A at 5.0V. USB charging usually delivers 500mA (0.5A) at 5.0V.
Nov 30, 2015ProgrammingComments (2)
If you've updated to SourceTree 1.6.24 on your Windows computer and it keeps asking for a password, here is one potential workaround/solution that may work for you.