MAMP Pro /etc/hosts file problems – Simplified

Posted by & filed under MAMP Pro, Programming Tools, Shell Scripts.

Read more on "MAMP Pro /etc/hosts file problems – Simplified" »

Lately I have been using a lot of host aliases for testing sites locally using my MAMP pro install. Adding local sites that answer to their actual site names is amazing for a development environment, especially if you find yourself testing javascript based apis that require oauth. Like the facebook or twitter apis.

MAMP Pro does have a problem however with not always turning off the entries in the /etc/hosts files when you stop the servers, so you have problems accessing the real site. Fixing this requires opening the hosts file manually and commenting or uncommenting the desired entries. A tedious pain.

So I decided to write a quick shell script that would allow me to reset the hosts file with a quick terminal command. See the one line install command and usage below.

Shell script for cleaning/resetting /etc/hosts files messed up by MAMP Pro — Gist.

CodeIgniter Plupload problems – a solution!

Posted by & filed under codeigniter.

Read more on "CodeIgniter Plupload problems – a solution!" »

TL;DR

Fix the codeigniter plupload upload problem of  ”You did not select a file to upload.”  by making sure that you pass the correct file array key to do upload:

$this->upload->do_upload('file');

==============================

How I found it:

I’ve been working on my first codeigniter project that required me to upload some images. For that task I chose Plupload. A super slick upload manager written by the same people that brought us tinymce.
(more…)

Bam!

Posted by & filed under Uncategorized.

Read more on "Bam!" »

Decided to switch domain names, to something shorter and cooler that I think is more in line with my current endeavors. So, I just migrated everything to a new wordpress install that is sitting on a nearly stock bones css framework. Should be doing some cool stuff with it in the future. but for now. Here it is, enjoy my few posts!

Diaspora Install Rake Error – Snow Leopard – Rails

Posted by & filed under Diaspora, Ruby, Snow Leopard.

Read more on "Diaspora Install Rake Error – Snow Leopard – Rails" »

Diaspora code opened up on github today.

“Git” it here:  http://github.com/diaspora/diaspora

In the process of doing the install, I had some rake errors.

rake aborted!
dlopen(/Library/Ruby/Gems/1.8/gems/ruby-debug-base-0.10.3/lib/ruby_debug.bundle, 9): no suitable image found.  Did find:
	/Library/Ruby/Gems/1.8/gems/ruby-debug-base-0.10.3/lib/ruby_debug.bundle: no matching architecture in universal wrapper - /Library/Ruby/Gems/1.8/gems/ruby-debug-base-0.10.3/lib/ruby_debug.bundle

Which were fixed by running:

sudo gem uninstall ruby-debug-base; sudo gem install ruby-debug-base linecache

Distributed, controlled facebook is something I’d definitely like, especially for my family and friends. This looks promising. Maybe I’ll get some ruby in me, and dig around in it.

Just passing it along. We’ll definitely see where this road leads.

Override Robots.txt With wget

Posted by & filed under Programming Tools.

Read more on "Override Robots.txt With wget" »

I find myself downloading lots of files from the web when converting sites into my company’s CMS. Whether from static sites or other CMS platforms, trying to do this manually sucks. But, thanks to wget’s recursive download feature, I can rip through a site, and get all of the images I need, while keeping even the folder structure.

One thing I found out was that wget respects robots.txt files, so the the site you are trying to copy has one with the right settings, wget will get only what is allowed. This is something that can be overridden with a few tweaks. I gladly used it and decided to pass it along. See the instructions at the site below.
(more…)

Its time to be a doer!

Posted by & filed under Uncategorized.

Read more on "Its time to be a doer!" »

I just got invited to forrst and realized that I spend too much time consuming web content.

Not the typical myspace, facebook updates, and YouTube crap. But lots of web “stuff” languages, tutorials, browsing stock resource sites, reading twitter posts. I spend way more time consuming content than I do creating content or participating.
(more…)

Time Machine Only Restores Folders?

Posted by & filed under Uncategorized.

Read more on "Time Machine Only Restores Folders?" »

So. While venturing into Coldfusion Builder I managed to delete the entire contents of my htdoc directory.  11 gigs…gone…poof. My first thought was, “I can’t believe that just happened?” Then, “Damn, with that new 7200 rpm hard drive, they disappeared 50% faster.”  Not to worry, I’ve got a Time Machine backup at home. I’ll just restore it from last night and we’ll be all good.

It wasn’t that simple.

(more…)

Use tr.im with iPhone Bookmarklet

Posted by & filed under iPhone.

Read more on "Use tr.im with iPhone Bookmarklet" »

Anyone that uses twitter finds that posting links can take precious character space. Tr.im is a service that not only lets you smallerize and post your links to twitter, but track your link traffic. And they provide handy bookmarklets to make it easy to trim and post your links from your browser.

The only problem is that if you are like me, you really started twittering hard when you got your iPhone, and saving that bookmarklet to the iPhone safari browser only lets you bookmark the tr.im site.

Until now.
(more…)

Recovering Forgotten RDS Passwords From Dreamweaver

Posted by & filed under Programming Tools.

Read more on "Recovering Forgotten RDS Passwords From Dreamweaver" »

Dreamweaver gives you the ability to set up sites and save passwords so you don’t have to think about them anymore. That’s great, unless you need to find out what the password actually is. There are a few sites out there that cover finding and decoding an ftp password. But RDS is another story.

Your typical Dreamweaver RDS Setup Window

So what do you do when you need to know what the password is to send to somebody? Of course you didn’t write it down, Dreamweaver remembers passwords…

So, where does it remember them to?  An XML file in your dreamweaver configuration file.
(more…)

Joey Blake – Web Developer, Web Designer, Simplifier

Posted by & filed under Uncategorized.

Read more on "Joey Blake – Web Developer, Web Designer, Simplifier" »

What do I really have to say? I have been a web developer and designer for the last 6 years.  Before that I spent quite a bit of time at a printing company.  Nearly the whole time, I have had this web domain and have done nothing with it. So I decided to change that.
(more…)