Joined July 2013
·

Alex Sears

Web Developer at InfoTrust, LLC
·
Cincinnati, OH
·
·
·

Posted to Adding Items to Laravel 4 Collections over 1 year ago

I forgot to call get() on the builders to get the collections. Thanks for pointing that out.

Also, looking at the source code, it looks like it's now implemented to only have unique keys. This makes some sense if you make the assumption that you would be merging two collections of the same model type. Also assuming your keys are your primary keys in the DB, then they wouldn't overwrite each other. It would preserve the keys of the rows in the DB and merge them correctly. Things break down once you start merging collections of different models. This is a Laravel feature and may be something to introduce on the Github repo as an issue.

Posted to Installing gcc on Mavericks over 1 year ago

The gcc on my machine works fine. Did you try downloading the command line tools before doing this. They took it out of Xcode. Run xcode-select --install on the command line to install them.

Instead of downloading openssl and doing crazy stuff to get Homebrew to work again, all you have to do is re-download Command Line Tools. The thing that throws alot of people off is that they changed how it's done in Mavericks. Instead of downloading them through Xcode, you have to open a terminal and run the command xcode-select --install. This will install the Command Line Tools ...which creates the directory /usr/include/...which has a ton of headers in it that Homebrew uses. This should fix alot of your problems.

Posted to git add -A over 1 year ago

git add . also works.

Posted to Responsive Images over 1 year ago

There are alot of cool concepts you can learn from Bootstrap by looking through the CSS source code. It's a great way to learn some professional tips...if you have the time, of course! Haha

This sounds like it could be a security risk. The whole point of having a public directory, along with keeping things organized, is that it puts all your important and "confidential" files behind the site root so that people can't go to <website_url>/app/config/database.php and get a peek at your database information.

Posted to My Workspace over 1 year ago

Bull. Where's your IKEA furniture?

Achievements
1,034 Karma
77,802 Total ProTip Views
Interests & Skills