Joined September 2012
·

Steffan Harries

Web Developer at Box UK
·
Cardiff
·
·
·

Posted to rawurlencode in Twig over 1 year ago

What's the "true" actually referring to here? (I would have thought that the default behaviour anyway)

+1 for keeping IDE specific ignores in your own ~/.gitignore file. https://help.github.com/articles/ignoring-files#global-gitignore

Not sure what you're doing but if I understand what you're saying but this is how I'm using this:

1 (parent) request for the page: this contains the overall page layout.
1 sub request for the page: this contains the page content.

This means that when I do a forward the I am forwarding the sub request (not the parent).

I think what you and davidpv are looking for as a method to forward the parent request, that's not what this is for I'm afraid.

I've definitely tested this, I'm working an application right now that makes heavy use of this. PS. I forgot to add that this was with Symfony2.1

Posted to Rebasing relative to a commit over 1 year ago

That's cool! I've always done HEAD~number before where the number is how many commits back from head I want to go so this will save some effort I think :)

Posted to One line browser notepad over 1 year ago

I've copied @sufehmi but added font-family: monaco and a H1

data:text/html;charset=utf-8, <title>TextEditor</title><body contenteditable style="font-size:2rem;font-family:monaco;line-height:1.4;max-width:60rem;margin:0 auto;padding:4rem;" spellcheck="false"><h1>Text Editor</h1><p>Start Here.
Posted to Vim: Change In Parenthesis over 1 year ago

Very useful!

Posted to Add sudo after opening a file in vim over 1 year ago

@ilzoff You're right, vim commands are often difficult to remember at the best of times. Practice makes perfect though and I'm well-practiced in forgetting to type 'sudo' :)

Posted to Slow Symfony2 Build? over 1 year ago

Reduced time to build this project from 17 minutes to 4 :)

Posted to The Holy Grail of PHP over 1 year ago

And also don't forget to use phpcs (with PSR standards), phpmd, phpcpd to make the most out of static analysis and improve your code. Use along side ant or phing to build your project and automate the process by integrating Jenkins or Travis CI to with your VCS :)

Posted to Time traveling in vim over 1 year ago

Nice! Didn't know that was possible.

There are all sorts of weird and wonderful functions like this in the WordPress Codex, thanks for pointing this one out :)

Achievements
788 Karma
110,958 Total ProTip Views
Interests & Skills