Thursday, July 25, 2013

Where to buy a Google Chromecast

Here are a list of places to buy a Google Chromecast right now.

  1. BestBuy - Check your local BestBuy. This is where I found mine. They were not on the floor and the first person I asked thought that they weren't going to be available for a few more days. Another employee overheard and told me to go to the "solution center" to purchase one. Calling in to your local BestBuy may not work as the person who answers phone may not know if they are in or not. I just happened to stop on my way home and they happened to have them despite the BestBuy website not listing them as being available at the store via their stock check. If you luck out you might be able to score one for the retail price of $35.00
  2. eBay - This is probably the next best option. While I have seen some go for over $100 earlier today they are starting to come down a bit but this may not be the case for long. Google's estimating 3-4 weeks to ship them out right now if you order through Play and Amazon isn't even accepting back orders if you want to buy through them and not pay a third party seller an inflated price.
  3. Amazon - As mentioned above Amazon sold through their stock quickly and even stopped taking back orders earlier today. If you want to buy through Amazon you will wind up paying an inflated rate through a third party seller. ~$80 last I looked.
  4. Google Play - 3-4 week lead time but $35.00

I have listed a second Chromecast I picked up at BestBuy here on eBay for a starting bid of $40:


If you know of any other places to pick one up let me know and I will add it to the list.

Sunday, May 05, 2013

UFW Cheat Sheet

I have been making cheat sheets lately in Google Docs and have found them to be quite handy when learning a new tool or documenting one I don't use very often. My next cheat sheet is for my favorite ubuntu firewall package: Uncomplicated FireWall aka UFW.

Thursday, April 25, 2013

Installing Mongo driver on MAMP/MAMP PRO

I recently acquired a Mac development station and have been loving it so far. The only hiccup I have hit so far is installing the Mongo driver in MAMP. My progress yesterday can be found here:

http://www.reddit.com/r/mac/comments/1d1iuf/newtomac_web_developer_has_a_few_questions/c9m53j7

As MAMP is running PHP 5.4.10 I tried unzipping the official 5.4.10 release so the paths matched the not found paths in my reddit post from yesterday. While that got me a bit further I hit another stumbling block.


Jareds-MacBook-Air:bin root# ./pecl install mongo
downloading mongo-1.3.7.tgz ...
Starting to download mongo-1.3.7.tgz (126,064 bytes)
............................done: 126,064 bytes
49 source files, building
WARNING: php_bin /Applications/MAMP/bin/php/php5.4.10/bin/php appears to have a suffix /php5.4.10/bin/php, but config variable php_suffix does not match
running: phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.

ERROR: `phpize' failed


Looks like I need autoconf.


So to get autoconf it looks like people are using the brew package manager. To get brew to work properly you need to get the xcode command line tools. How do you get that? You get xcode. Yeesh.


Jareds-MacBook-Air:bin jared$ brew doctor
Your system is ready to brew.
Jareds-MacBook-Air:bin jared$ brew install autoconf
==> Downloading http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/autoconf/2.69
==> make install
🍺  /usr/local/Cellar/autoconf/2.69: 69 files, 2.0M, built in 8 seconds

Hopefully the mongo driver will build now. Hold onto your butts.....


Well, it got a whole lot futher this time.... then died here:



In file included from /Applications/MAMP/bin/php/php5.4.10/include/php/main/php.h:34:
/Applications/MAMP/bin/php/php5.4.10/include/php/Zend/zend.h:51:11: fatal error: 'zend_config.h' file not found
# include <zend_config.h>
          ^
1 error generated.
make: *** [php_mongo.lo] Error 1
ERROR: `make' failed

Hopefully I'm getting close. After more digging it looks like I first need to configure the source code I downloaded earlier


Jareds-MacBook-Air:php jared$ pwd
/Applications/MAMP/bin/php/php5.4.10/include/php


Jareds-MacBook-Air:php jared$ ./configure

Alright.. Seriously this time...



Jareds-MacBook-Air:bin jared$ sudo ./pecl install mongo
~~~ BLAH BLAH BLAH COMPILING ~~~
You should add "extension=mongo.so" to php.ini



Success! Now to find where it put this thing... Looks like


/Applications/MAMP/bin/php/php5.4.10/lib/php/extensions/no-debug-non-zts-20100525/mongo.so

Now to add it to MAMP's php.ini...

extension=/Applications/MAMP/bin/php/php5.4.10/lib/php/extensions/no-debug-non-zts-20100525/mongo.so

Alright.. Saved. Restarting MAMP... Time to check phpinfo()... looks good! If someone would like me to clean this up into something more readable drop me a comment and I will create a new post with just the instructions.