Saturday, January 31, 2009

Unstable URL Usage


Well, I looked at the urls for project 2 and just about fell out of my chair. I have chosen to use php and well, php and no suffix on the end of urls doesn't mix...or so I thought?!

I tried to fool around with mod_rewrite but I have been having a whale of a time trying to get mod_rewrite to work correctly on this computer. Anyway, tried writing some rules, they didn't seem to be working.

Then, all of a sudden, things just began showing up. I was puzzled. I don't think I did anything?!, I thought to myself. It took me a few minutes but I finally realized that apache is so smart that if I have a file called submit.php and I navigate to www.bla.com/submit that it will run the php file. How cool is that? Really, wickedly awesome cool.

App-Server from the comfort of the living room



Just looking at the number of EC2 images running under our account makes me wonder if people are missing something or are way ahead of me. What I think they might be missing is that we can develop all our html/ site on our own machines.

All we have to do is download apache, install the packages for the language above and then stick our files in the www dir (on default linux install anyway). Then we can visit them and they can do anything we want! They can hit the app server. Or they can steal off of the normal server or anyone else's server.

That is one of the best things about the internet. You can do anything you want to whoever is connected and has a public ip address. Granted, they may not respond or you might end up in jail but hey, you can still do it.

Basically, what this boils down to, is come back home! Work from your living room on your own computer without worrying about AWS stuff. Once your page is working, then you can get it onto an AWS instance and such. But if it works from your couch in your house, then it will work on AWS (provided you have the same packages installed.)

Elasticfox erratic error

Well, my first experience with elasticfox was not the best I have ever had. I think the whole plugin to firefox idea was, frankly, genius. It would have been way harder for me to want to use all the command line tools but with the quick plugin to a program I have open anyway, it's easy!

Back back to the task at hand! The bug I found was small, but very annoying. I created a new credential and messed up the secret key part. At first, I didn't notice so I was pretty miffed about why I couldn't connect to the account. Then, I finally realized that I had entered the password wrong, so I highlighted the user and changed the secret key and hit add. Then I went back and it still wasn't working.

After several days of being disgruntled and crabby about junky elasticfox, I tried something new. I removed the old user and added a new one; this time I made sure to have the right password. And whaaa bam! It worked everything was great.

So while everyone might not consider this a bug, I personally just assumed that clicking add after updating a credential would change it. Well, just so everyone knows...it doesn't!