Saturday, May 10, 2014

Swiffy Transparent Background

If anyone is using swiffy and wondering how to get a transparent background, here's what you do. Just make the rectangle that swiffy inserts into the background not display.

#containerdivid svg > g > g > rect {
    display: none;
}

Friday, June 28, 2013

Installing Laravel With MAMP on OSX

You're going to need to install mcrypt. Here's a link with instructions:
http://www.coolestguyplanettech.com/how-to-install-mcrypt-for-php-on-mac-osx-lion-10-7-development-server/

From there, follow the instructions for install from the Laravel website:
http://laravel.com/docs/quick

You're going to end up with over 100 megabytes of framework files and dependencies, with 80 mb of that being the doctrine and symfony folders. Don't say anything about it or you'll get brow beaten.

You're going to have troubles connecting to mysql. Choose a solution that works for you.
http://forums.laravel.io/viewtopic.php?id=980

Create your local db connection file:

$ mkdir app/config/local
$ cp app/config/database.php app/config/local/database.php

Edit your local database config with the proper credentials for MAMP (localhost, laravel, root, root).

Edit bootstrap/start.php with your development domain name or localhost so that it uses the local config.


The default MAMP mysql username is "root" with a password of "root". You might want to change that:
http://www.mamp.info/en/documentation/faq.html#q9

Set up migrations:
$ php artisan migrate --env=local

The local flag is important because php doesn't know where you're running it from from the command line.

Set up a user table:
http://fideloper.com/laravel-4-uber-quick-start-with-auth-guide

If you want to just read the docs they're here:
http://laravel.com/docs

You can start into the tutorials. These are for Laravel 3.x but figuring out the differences between 3.x and 4.x might be a fun passtime! Exercise your brain a little (migrations has moved to database migrations, underscores have been replaced with camelCase, all very sensible changes):
http://www.youtube.com/watch?v=lEZ8cnVGVZE&list=PL09BB956FCFB5C5FD

You'll need to run "composer.phar update" in order to rollback migrations. ???
https://github.com/laravel/framework/issues/56

Setup your user table for the sparkling new admin you're going to create:
http://fideloper.com/laravel-4-uber-quick-start-with-auth-guide

Make php 5.3 the default from the command line:
http://wiki.dreamhost.com/PHP#Make_PHP5_the_Default_in_the_Shell

If you're using dreamhost, you'll need to install laravel from the command line using composer.

You will get error message relating to phar:
http://serverfault.com/questions/317416/enabling-phar-on-dreamhost-shared-hosting

You will get a memory issue running composer:
/usr/local/php53/bin/php -d memory_limit=256M composer.phar create-project laravel/laravel doodleheadstudios.com --prefer-dist
http://www.idlehamster.com/blog/installing-laravel-4-on-dreamhost

You'll have a missing files issue related to the vendor directory:
http://stackoverflow.com/questions/16268631/how-should-git-submodules-be-set-up-for-laravel-4-composer-packages


And then sync up things with git for Dreamhost if you're using dreamhost:
http://blog.brandonevans.ca/post/19685508893/deploying-websites-with-git-on-dreamhost

You will have errors returned in terminal when running composer.phar related to executing artisan. These issues don't seem to be critical, and are related to composer.phar executing php using the default php route instead of /usr/local/php53/bin/php.

Monday, September 17, 2007

Hrm.

So, Russia is supplying Iran with materials and technology to start their own nuclear program and re-starting their bomber patrols, and threatening to aim nukes at European targets if America doesn't get its imperialistic tendencies under control. And France of all people is threatening to strike at Iran. Greenspan is apparently trying to rescue his legacy after a disastrous marriage with the Bush Administration. This is all news to me, as I've been off in Donnland for half a year.

Sunday, September 16, 2007

Loafalicious

The bread turned out quite well. Needed some salt but other than that, it looked just like a loaf of bread. Next of course is the fusion of yeast and hot oil.

Saturday, September 15, 2007

The Yeast

A new era begins in cooking. A yeasty loaf is rising in the kitchen - room temperature isn't ideal but I'm going to let it rise overnight, then brush it down with butter and pop it in the oven in the morning. I have definitely overdone it with the espresso. My mind and hands are jittery and my head hurts, probably from dehydration. Anyways.