Someone did, and they asked the subreddit /r/theydidthemath. I had never considered it before, but I have some experience scraping and playing with data so I decided to make a script that could tell me just that.
Steam Pricing Breakdown June 18th, 2014 4:17pm PDT
Items Accounted For: 6,460
Total Price: $74,018.58
Current Price: $72,318.2
Current Number of Items on Sale: 133
Current Savings: %0.02297 ($1,700.30)
Average Price: $11.46
Average Current Price: $11.19
Average Sale Discount: %56.526 ($12.78)
Regular Price Breakdown by Category
Downloadable Content: $29,666.96
Games : $39,964.35
Software : $4,387.27
Regular Price Breakdown by Platform
Linux : $8,434.45
Mac : $17,946.96
Win : $73,938.61
Regular Price Breakdown by Genre
Action : $25,915.81
Adventure : $12,605.45
Audio Production : $909.74
Casual : $7,095.32
Early Access : $3,830.03
Free To Play : $6,654.06
Indie : $17,190.95
Massively Multiplayer: $4,164.14
No Genre Given : $2,465.27
RPG : $11,480.58
Racing : $2,218.66
Simulation : $14,648.90
Sports : $1,989.35
Strategy : $14,150.05
Utilities : $629.78
I was honestly expecting more both in number of items and in the overall sale amount, after the Steam Store is known for their sales. Anyways I have put the script up on github in case anybody wants to play around with it. The scraper is scraping more data that the stats are using, so if your looking for some specific information you might be able to get it out. It also supports loading old data sets to run comparisons against the big sales. Speaking of which there should be a Summer Sale any time now…
Pre-sizing your image assets can be a pain, not only do you have to do it for every single one, you have to re-do it when the design spec changes and whenever the source image is revised. It sucks. Wouldn’t it be great if the images just resized themselves? Well thats what the Directory Image Resizer Does.
Directory Image Resizer is a script that lives in your images directory and, with a neat and clear pseudo directory, resizes all your local and remote images for you. Simple to use and understand DIR works transparently and without ugly get variables.
Check out the Directory Image Resizer example page and take a look at what it can do and how it does it. If you want to use it yourself, or just want to poke around and see the code, head on over to the github page and fork it.
I know it’s been a long time since posting, and there are various reasons, one of which was that length of time it took to create a long post, so I’m changing up the format a bit with these kinda shorter posts as I come across them, hopefully be getting directly to the point I’ll be able to make the time to get them done. Anyways, to the posting.
If your programming on a newer version of PHP, say 5.5.0 or newer you may have become rather dependent on the ability for various things like get_file_contents and is_file to use various wrappers to do there thing. I know that it’s been a huge time saver for me, but what do you do if your then forced back to an over, pre 5.5.0 version of PHP and want to check for that remote file? Simple.
$ch = curl_init($file);
$retcode = curl_getinfo($ch,CURLINFO_HTTP_CODE);
It’s as simple as that. All this function does it use curl to check the HTTP code at the supplied url and returns true or false accordingly.