• Entries (RSS)
  • Comments (RSS)

CakePHP – link / include JavaScript files in layouts

Posted by | Posted in JavaScript Libraries, OpenSource, PHP, Resources, Tips and Tricks, Tutorials | Posted on 29-12-2008

Tagged Under : , , , , , , , , , , ,

Create (or modify the) file

app/app_controller.php

add this code

class AppController extends Controller {
	var $helpers = array('Html', 'Form', 'Javascript');
}

CakePHP 1.2 allows you to define a reference to a Javascript file which is then added to the head section of the generated code. For this purpose the variable $scripts_for_layout has to be added to the layout:

<head>
	< ?php echo $scripts_for_layout; ?>
</head>

In the view you can now link to the Javascript file with:

$javascript->link('script.js', false);
// OR you can simply use $javascript->link('script.js');

CakePHP – Get Controller, Action, URL information

Posted by | Posted in Flickr | Posted on 28-12-2008

Tagged Under : , , , , , ,

If you want to know the controller, action or URL in CakePHP just use the default associative array

$params

that looks similar to this

Array (
[controller] => my_controller_name
[action] => my_action_name
[url] => Array (
[url] => my_cake-php_url
)
)

Git cheat sheet

Posted by | Posted in Flickr | Posted on 26-12-2008

Tagged Under : ,

Git Cheat Sheet
Just saw that Zack Rusin has posted a Git cheat sheet on his blog. This came in really handy since I am moving from SVN to Git.

I am sure, some of you will like/love it too :)

Download Instructions and More information at Author’s Blog here.

Fashion Your Firefox

Posted by | Posted in News, Resources, Reviews, Tips and Tricks, Tutorials | Posted on 26-12-2008

Tagged Under : , , ,

Fashion Your Firefox
As the website says:

You spend more time online than on the road, but you probably think more about avoiding traffic than enjoying the best of the Web.

So, why not customize your Firefox for the things you really love to do? Take your browser from simple to spectacular.

Firefox add-ons are little extras that allow you to add a personal touch to your browser. Select your favorites from the categories below to accessorize your Web!

So why not Fashion Your Firefox?

Note: Image copyright, Mozilla and their respective owners

Nice Article: Mobile Phone Buyers Guide

Posted by | Posted in Resources, Reviews, Tutorials | Posted on 25-12-2008

Tagged Under : , , , ,

Found a really great article Mobile Phone Buyers Guide – Things to Consider for Buying a Phone, it says

Buying a mobile phone is not an easy task. Sometimes you make mistakes that you regret later on, as you try to get a mobile phone but fail to judge if it’s worth buying. By the way, just buying what is popular is not always a good idea. I have made this guide for you guys, so you can consider these things and buy the best phone in market. This will surely help you to buy a mobile that you will never regret later on.

Read the full story here

MySpace copies Facebook’s “People You May Know” feature

Posted by | Posted in News, Oddly Enough, Reviews, Thoughts | Posted on 25-12-2008

Tagged Under : , ,

I am not a MySpace user but I found this blog post here that says the feature has been copied from FaceBook.

MySpace People You May Know Feature

MySpace People You May Know Feature (Image Taken from LA Snark)

Google Analytics Authorized Consultant (GAAC) Program

Posted by | Posted in News, Resources, Reviews, Thoughts | Posted on 25-12-2008

Tagged Under : , , , , ,

I just browsed through to this page at Google Analytics. It seems to be a great program that Google has invited anyone with prior experience to apply and join.

Check out Google Analytics Authorized Consultant (GAAC) Program for more information.

GoDaddy Uses Standard Tactics To Warehouse Domains

Posted by | Posted in News, Oddly Enough, Thoughts | Posted on 25-12-2008

Tagged Under : , , , , , , , ,

I found this really great article that I am about to share here.

Robin Wauters
TechCrunch.com
Wednesday, December 3, 2008; 8:52 PM

Having working in the domain name industry myself for a couple of years, I’ve always been intrigued by the fact that there’s such a big business formed around something as trivial as a bunch of letters and numbers used to ‘translate’ IP addresses. And when there’s a big business in something, you just know there will be a grey area as well where ethics are left at the door sometimes.

Andrew Allemann over at Domain Name Wire has been doing an excellent job researching the hoops The Go Daddy Group jumps through to keep its shady tactics outside of the public view, resulting in this great blog post. Turns out The Go Daddy Group, which runs the world?s largest domain name registrar GoDaddy.com as well as some other domain name related companies, is apparently warehousing its customers? expired domain names and directly profiting from them.

Warehousing and auctioning off expired domain names is not necessarily against ICANN (the governing body over domain name registration) regulations and actually quite a common practice among larger registrars, but the story only gets interesting when you take a look at what goes on behind the transparent part of it. When a valuable expired domain doesn?t sell through an auction on The Domain Name Aftermarket (aka TDNAM, GoDaddy’s auction platform), The Go Daddy Group changes the ownership of the domain to one of its lesser known subsidiaries, Standard Tactics LLC, using Domains By Proxy?s whois privacy service to hide its identity. Next thing you know, that company will start monetizing the domain names using parked domain pages filled with ads and list the domains for resale on TDNAM.

On August 16, 2005, GoDaddy formed a subsidiary called Standard Tactics, LLC in New Mexico. Before founding Standard Tactics, all of GoDaddy?s subsidiaries were incorporated in Arizona where the company is headquartered. There are a couple reasons GoDaddy may have chosen to form the company as a New Mexico limited liability company rather than an Arizona corporation. First, by creating the company in New Mexico it could distance itself from it. Second, by filing as a limited liability company instead of a corporation, it didn?t have to list directors of the corporation.

In fact, Standard Tactics LLC is a subsidiary of Special Domain Services Inc, which is a subsidiary of GoDaddy Inc, which is a subsidiary of The Go Daddy Group. See a pattern here? The only reason why we even know this is because the information got out when GoDaddy attempted to file for an IPO in 2006 (it eventually withdrew the filing).

So why is Go Daddy going through such lengths to keep the public from knowing about its aftermarket operations, when it’s not even against ICANN regulations? Paragraph 3.7.9 of the agreement between ICANN and Registrars says:

“Registrars shall abide by any ICANN adopted specifications or policies prohibiting or restricting warehousing of or speculation in domain names by registrars.”

Only problem is ICANN hasn’t yet adopted specifications or policies prohibiting or restricting warehousing, leaving registrars in a unique position to impact domain name pricing top-down by introducing competitive bidding or auctions for expired domain names.

It’s really no wonder GoDaddy is trying to cover its tracks and hide these practices, but thanks to Andrew the word is now out.

idGettr – Find your Flickr ID

Posted by | Posted in Flickr, Resources, Reviews, Tips and Tricks, Tutorials | Posted on 24-12-2008

Tagged Under : , ,

Cool tool, as the idGettr website says …

Use this tool to find your Flickr user or group id. Just enter the address of your photostream or group pool and it’ll find the number for you.

Joomla Security Strike Team (JSST) to focus on Joomla Security

Posted by | Posted in News, OpenSource | Posted on 24-12-2008

Tagged Under : , ,

Joomla announces the new Joomla Security Strike Team (JSST) to focus solely on Joomla Security, Patches and particularly respond to bug/vulnerability reports.

Read more

Get Adobe Flash playerPlugin by wpburn.com wordpress themes