Downhill skateboarding

September 20, 2008

A long time ago back in my teens when I was a budding young skater, we used to love skating down hill. Not so much when you would get speed wobbles, or hit a stone thats so small its invisible and go flying ass over face.

These guys take it to the extreme (they even overtake a car at one stage). It looks so ‘freeing’, haven’t felt like that in a long time!

Advertisements

Re: my new ringtone that I want that I found on youtube. Lead me to this online youtube to mp3 converter. Used it already, it was 2 easy! I love the interwebs!

My Symfony submenu

September 16, 2008

Ok, I needed a submenu that needed to be different between some different modules. Being a symfony newb Ads pointed me towards the component_slot. Perfect!

Ok so first I created a submenu module and the component class. In the component class I define the elements of the submenu links (they’ll do as hardcoded atm).  Instead of having to create a partial for each menu type, I created a single partial and placed that in the global templates folder, _submenu.php:

<ul>
<?php foreach ($opts AS $label => $url):?>
<li><?php echo link_to($label,$url)?></li>
<?php endforeach?>
</ul>

The comonent class where I define the submenu options/links:

class submenuComponents extends sfComponents
{
// default backend submenu
public function executeDefault()
{
$opts = array(‘Login’ => ‘@sf_guard_signin’
);
echo get_partial(‘../submenu’,array(‘opts’ => $opts));
return true;
}

// blog admin section submenu
public function executeBlog()
{
$opts = array(
‘Posts’ => ‘@postList’,
‘Comments’ => ‘@commentList’,
‘Categories’ => ‘@categoryList’,
);
echo get_partial(‘../submenu’,array(‘opts’ => $opts));
return true;
}

// user admin section submenu
public function executeUser()
{
$opts = array(
‘Users’ => ‘sfGuardUser/index’,
‘User Permissions’ => ‘sfGuardPermission/index’,
‘User Groups’ => ‘sfGuardGroup/index’
);
echo get_partial(‘../submenu’,array(‘opts’ => $opts));
return true;
}
}

Now all I have to do is configure each module to use a module type. The menu will default to the one set in the app/global view.yml

global view.yml:

default:
components:
submenu: [submenu, default]

Example module view.yml (ie: blogPost) selecting a different submenu:

default:
components:
submenu: [submenu, blog]

For the sfGuard modules I created a module folder to my app for all the modules I wanted to select a submenu for. Then added a view.yml and selected a menu like the call above.

It all seems to be working well :D~. THanks adam ❤

New ringtone… well soon

September 16, 2008

Just gotta extract the audio somehow! 😀

Me new office chair

September 16, 2008

After destroying my previous chair (donated by my good colleague), to the point where it was held together by 1 screw. The last straw was when I sat down on it rather abruptly and ended up ass over face on the otherside of the room.

Thinking ‘safety’ as I always do, I decided to invest in a new chair. $130 from warehouse stationary.. very comfortable.

Current Fave Song

September 14, 2008

Don’t know much about these guys. Infact, I know bugger all, apart from that I love this song!

The intro reminds me of street fighter 2, dahlsim’s level’s music.

The song is: Electric Feel – MGMT

YouTube link

Stretching and Joint mobility

September 13, 2008

Found this wicked thread about joint mobility and stretching. The last video, Boris’ Squat RX video is pretty good. Found this on blog feed at davedraper.com

Can’t wait to start doing these once i can bend at the knee!

Symfony admin icon set

September 10, 2008

Stumbled upon this dude and his freaking wicked icon sets he provides. The Silk icon set seems to pretty much be the ones used for symfony.

These will definately get some use ❤ mr Mark James

I’ve been wanting these for aaages. I think my old flatmate Shaan had these like 4 years ago lol. Bought them from Kellys, great store! (finda)

My new Pumas

My new Pumas

Symfony admin theme

September 9, 2008

I created my first symfony admin theme last night. It was rediculously easy, and the best thing is, it freaking works like a dream! I shamelessly stole the design of some dudes blog. It fits into an admin backend design surprisingly well lol.

I’ve fallen heavily in love with the admin generation in Symfony. It seems i’ve been doing way too much manually. I have to thank Adam for nudging to look at it, hes been a massive help and a great motivator! ❤ ❤ (much luv and ballsacs for u)

I’ve almost finished my blog app. Just need to do the post tagging, and archive generation and my learning app will be complete! 😀 I’m thinking of buying my own personal domain and putting my blog up on there, hopefully there is a way to export my stuff from my wordpress acc.

Today is a good day 🙂