Blog

Recent Posts

Welcome to the plastisphere

Sep 11, 2013 0 Comments

From The Economist:

The malign effect of floating plastic debris on seabirds, turtles and other sea creatures is well known. But, as Dr Mincer and Dr Amaral-Zettler have discovered, plastic debris also provides a new habitat for organisms small enough to take advantage of it.

Plastics are energy-rich substances, which is why many of them burn so readily. Any organism that could unlock and use that energy would do well in the Anthropocene. Terrestrial bacteria and fungi which can manage this trick are already familiar to experts in the field. Dr Mincer and Dr Amaral-Zettler found evidence of them on their marine plastic, too.

They noticed many of their pieces of debris sported surface pits around two microns across. Such pits are about the size of a bacterial cell. Closer examination showed that some of these pits did, indeed, contain bacteria, and that in several cases these bacteria were dividing and thus, by the perverse arithmetic of biological terminology, multiplying. Though the two researchers have not yet proved the bugs in the pits are actually eating the plastic, that hypothesis seems a good bet. And if they are, it suggests plastic pollution in the ocean may not hang around as long as has often been feared.

Interesting.  Hopefully those bacteria can make a dent in the Great Pacific garbage patch. 

Development Environment

Sep 11, 2013 0 Comments

Setup as of September 2013

Hardware:

  • 13" MacBook Air 2011 - Like the fact that I can keep everything on one machine.  If I want to go portable it is all there.  If I want to plug in to the monitor, keyboard and mouse in the office I got that too.  Wish I could have had more than 4 GB of RAM, but otherwise it has been solid.
  • Dell 30" Monitor 3008WFP - Like the size and the ability to connect from the MBA through DisplayPort.  Not a fan of the 5 second wakeup time.
  • Microsoft Bluetooth Mobile Keyboard 6000 - Got it because I wanted a separate 10 key, and then I promptly stopped ever using it.  Nice that there is no usb dongle, but not nice for the 5-10 second wake up.
  • Logitech MX 1100 - Feels good in the hand, the scroll wheel works great, and love the additional buttons for forward and back in a browser.

Software:

  • Windows 7 and Mac on Bootcamp: Mac for iOS development, Windows 7 for everything else.  Grew up with Windows, tried going to Mac, but couldn't adjust to the new keyboard shortcuts
  • PHPStorm - PHP development, Git management.  Really like the ability to walk through code with the debugger.  Also the syntax checking and auto-completes are helpful.  Uses a ton of RAM but worth it.
  • HeidiSQL - MySQL GUI.
  • Gitbash: Command line Git.  Don't like the fact it is built on Windows' cmd.exe, but other than that works well.
  • SourceTree: GUI for Git.  For the most part I use PHPStorm, but occasionally I use this.  
  • EditPlus - old standby text editor
  • Chrome v29 - main browser for development, Firefox v23 and IE 10 for testing.
  • Pidgin - IM for AIM and Gchat.  IRC as well
  • Skype - For talking.  Surprisingly the MBA microphone works better than the iPhone speaker phone.
  • Spotify - Gotta have my tunes.  How Rhapsody never turned into this, I will never understand.

Services:

  • Mozy - Backups
  • Evernote - Note taking
  • Pocket - Keep track of articles that I want to read later.  Although I am now at 538 articles, so I think I over-estimate the amount of time that I will spend reading them.

 

 

Laravel on Host Monster Shared Hosting

Aug 14, 2013 0 Comments

Steps that I needed to follow to get this Laravel site working on Host Monster.  I had the site working on my local machine and checked into Git on BitBucket.

  1. Setup an SSH Key on the Host Monster server to connect to my BitBucket account.
  2. Clone the git repository from BitBucket into the  ~/wisemanta directory.
  3. Move ~/public_html to  ~/public_html_backup.  This keeps a backup of the old web content.
  4. Create a soft link from ~/public-html to the Laravel public directory: ln -s wisemanta/public public_html. This makes the public directory in ~/wisemanta the directory that the web server serves up.  
  5. Update PHP to 5.3 on Host Monster.  Mine was on 5.2.
  6. Download Composer
  7. Figure out that I need to run php-cli from the command line rather than php to run composer. Add alias php="php-cli"' to .bashrc to allow php to work in the future.
  8. Run install from composer:  php composer.phar install.  If you try using php without the alias to php-cli then the install would bomb out on the post scripts (which call php directly).
  9. Create the new database and database user.
  10. Run the Artisan install scripts: php artisan app:install
  11. Update public/.htaccess with this line:
    • AddType application/x-httpd-php53 .php
  12. Waste two hours figuring out why I was getting a "ReflectionException Class FrontEndController does not exist".  Turns out that my class filename was FrontendController (lower case e) which worked fine in Windows but not so much in Unix.

With that I was able to get this Laravel site running successfully.  

There is still one error I am getting when running Composer.  Things seem to be working, so I have been ignoring it at the moment, but if anyone knows what is causing it let me know. Error message:

[Symfony\Component\Process\Exception\RuntimeException]  The process has been signaled with signal "11".