Installing CakePHP with MAMP

5 comments

Posted on 29th April 2009 by Krow in Tips & Tricks

, ,

At work we have a few developers that use Mac’s. I have come to like them much more then I used to. So much I bought one for my wife. Still not for me cause I can buy a PC for much cheaper and have grown very happy with Ubuntu.

Any way to the topic at hand I found that helping set up CakePHP on a Mac with MAMP was a bit different and thought I would post here for others to use and for myself to reference if I need to do it again.

These steps are based on the environment we work on and are in some cases preferences too. You can choose to do the steps differently to your setup but for my purposes this has worked great.

  1. Download the latest version of CakePHP (http://www.cakephp.org)
    At the time of this writing the current version of CakePHP is 1.2.2.8120
  2. Unzip and rename the folder to cake
  3. Go to the “Sites” directory and drop the new cake directory there
  4. Find the path for the CakePHP console (i.e. /Users/username/Sites/cake/cake/console )
  5. Find the path for the php directory (i.e. /Applications/MAMP/bin/php5/bin )
  6. Launch a terminal window
    • Type nano .profile
      • Some alias I prefer to have:
        • alias www=”cd /Users/username/Sites/public_html”
        • alias mysql=”cd /Applications/MAMP/Library/bin/mysql -uroot -p”
      • Enter the following:
        • export PATH=”/Applications/MAMP/bin/php5/bin:/Users/username/Sites/cake/cake/console:$PATH”
        • CTRL X
        • Save
    • Restart your profile
      • . .profile
  7. In your terminal you can now bake
    • Type www
    • This will take you to your web directory
    • Type cake bake project name…

That is it. As I mentioned this post is mostly for a refrence for myself but I hope that it can be a help to others as well. But I would be interested to hear what others have to say and prefer.

10 Reasons You Should Not Switch To Linux

1 comment

Posted on 10th March 2009 by Krow in Miscellaneous

,

I came across this post from Linuxhaxor I thought it was funny and wanted to post it here for others to see and read.

linux_sucks

  1. You shouldn’t switch to Linux because… you actually enjoy paying for an operating system that is so mired with bugs and issues that it shouldn’t even released as an alpha build. What recession?
  2. You shouldn’t switch to Linux because… change is always scary. Look at Obama, he scares the shit out of me. I voted for him but he always talks about change and change is always scary even if that change will make things better.
  3. You shouldn’t switch to Linux because… the only thing you use your computer for is to play games. I mean people still use computers for things other than games?
  4. You shouldn’t switch to Linux because… You love to dedicate one whole day of your week just for scanning purposes. Anti-virus scan – Spyware Scan – Defragmentation scan – Registry Scan & defrag. What Fun!
  5. You shouldn’t switch to Linux because… You love to pay for Anti-virus/spyware (with yearly subscription renewal) for protection that the OS should provide you with in the first place. Even though Windows Defender does a fabulous job, its just not there yet.
  6. You shouldn’t switch to Linux because… most people use Windows. If most people use windows it must be good!
  7. You shouldn’t switch to Linux because… you realize that nothing lasts forever. Eventually your windows will succumb to a BSOD, while Linux has its version of kernel panic, you might have to wait a couple of years to experience it, if at all.
  8. You shouldn’t switch to Linux because… you LOVE Internet Explorer and you can only use the latest version of Internet explorer on windows. Imagine going online without IE.
  9. You shouldn’t switch to Linux because… you have to be a geek to use Linux and we all know that geeks don’t have girlfriends.
  10. Last but not least. You shouldn’t switch to Linux because… you don’t want to be a conformist and do what everyone tells you to do. You want to be unique, which is why you want to use windows. Oh wait…

I thought this was funny so if you have any funny lists please let me know by posting a comment or sending an email through the contact us form.

New Cobra Radar Detectors

2 comments

Posted on 10th January 2009 by Krow in Miscellaneous

Many of you who have driven with me know that I am always in a hurry. Call it bad timing or just to kind to say good-bye when I should, but I always seem to be trying to make it up on the freeway or roads (typically it is the freeway). Well with the CES show going on I came across some news about a new Cobra radar detector.

cobraNow a days a simple radar detector is not enough since pesky highway patrol and police officers keep putting their traps in the ground, or in places where you simply can’t see them coming.

Cobra Electronics‘ solution:
The AURA (Advanced Universal Road Alert) update-able database of GPS coordinates for speed and red-light cameras and other known driving hazards. Cobra’s new high-end models, including the top-of-the-line $469.95 XRS R10G shown here, comes with a lifetime subscriptions to AURA updates, to be offered starting this spring.

The XRS R10G provides protection and peace of mind with Cobra’s new Super-Xtreme Range Superheterodyne Technology, detecting all 15 radar/laser bands with its super-fast lock-on detection circuitry. The detector provides maximum detection range and the best possible advance warning of even the fastest POP mode radar guns. It comes with a GPS Locator and Lifetime Subscription to AURA Database to alert you to verified Speed and Red Light Camera locations, dangerous intersections, and reported Speed Trap locations for the entire United States and Canada.

I currently have a radar detector but nothing as nice as this. I would like to get my hands on one just to see how well this really works. But I don’t see myself paying $500 for one so if any of you decide to buy one or somehow get your hands on one, let me know what you think.