Ramblings

April 30, 2011

Backbone.js

Filed under: Uncategorized — Tags: , , — michaelangela @ 3:10 am

Backbone.js is catching on and for good reason. It’s not heavy weight like SproutCore or Cappucino, gets  you going quickly, and gets out of your way. Some folks complain that is’t not full-featured enough. But that’s because it’s designed to be light weight and über extensible. It doesn’t do what you want? Extend it! Using it’s own built in .extend or with the now 100% completely indispensible underscore.js, it’s only required dependecy.

Backbone supplies structure to JavaScript-heavy applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing application over a RESTful JSON interface.

 

Advertisements

MAMP RewriteLogging and getting a site back up online

Filed under: Uncategorized — Tags: , , — michaelangela @ 3:04 am

Short version:

Laptop logic board died.

Hard drive is fine.

Got a new laptop (not the way to upgrade!)

Client WordPress site runs fine from external hard drive and new install of MAMP. Databases copied over and such (after minor heart attack when not copying over the required INNODB files)

rsync over to local drive and it doesn’t work. “Pages” aren’t working. URLs like /?p=5 work fine. Rewriting is an issue.

Make a new host at old.clientsite.dev (with the very helpful and neat virtualhostx) and point it at the external drive. Still fine. but clientsite.dev still no go.

Tried to set up RewriteLogging but it doesn’t work. Thrash around for hours.

httpd.conf has the goods

RewriteLog “/Applications/MAMP/logs/rewrite.log”
RewriteLogLevel 3

but no go. Not sure why. Notice in /private/etc/apache2/extra/httpd-vhosts.conf that there is one difference. The old vhost has AllowOverride All whereas the new one does not. Added that, and all is good.

Back to work again.

April 29, 2011

RedBeanPHP

Filed under: Uncategorized — Tags: , , — michaelangela @ 1:30 am

Just wanted to help get the word out about this ORM for PHP. It’s one of the smoothest I have used so far. Very straightforward.

RedBeanPHP.

Very brief Slideshare:

http://slidesha.re/gQwChj

Create a free website or blog at WordPress.com.