Ableton, software engineering behind the music

Often times, one forgets that the tools you and other people use actually have people just like you working hard to ship the nex improved version.

It is quite interesting to see how the developers work to produce such an amazing tool used by many renowned DJ’s and producers.

Abandonware as a WordPress plugin

I have a littles secret to confess. In the days when I was still building client websites I would instal and reinstall at least 5 similar plugins before finding the perfect one.  In majority cases I would never let the developer know if there was a bug as I simply didn’t have the luxury of time.

This got me thinking about the code I write today. How many people do that and never let me know what broke and if there was a reason for not selecting my plugin.

I still haven’t figured this out but I take this away from it. If it doesn’t work people walk away. If I don’t get there attention and give them what they need fast. It’s a done deal.

WordPress loves PHPStorm, so should you!

I’ve fallen in love with another text editor. Its been since a while since I’ve last opened SublimeText and Coda.  It has also been a little bit challenging to adjust at times but there’s no looking back when it comes to building WordPress based products. My workflow is even better than ever. Now let me tell you why you should love PHPStorm.

PHPStorm understands WordPress

As the the tools name implies, it understands PHP, so what? That’s not all. It actually understand WordPress. It can pick up when you’re running a WordPress specific project and it can make suggestions to enhance your project settings to give you the best setup for getting work done.

Its a purpose built tool

Theres no need for plugins. PHPStorm comes with all the tools  you need. If you need more tools it has an ad on system through which you can add more plugins.

Project specific terminal

Every project comes with a localised terminal window so you can start bashing out terminal commands from the get go. All this without leaving PHPStorm. If you love using git from the command line this will be one of your favourite features as it easily buys you a few hours extra per month.

Predefined styling Rules

PHPStorm has the WordPress style guide built in so you can get your project inline with core’s coding standards right from the start.

Never forget that TODO comment

If you like making inline comments to leave yourself notes and then forget where you’ve place the todo items you’ll be thrilled to know that PHPStorm remembers this for you. You can filter this by the entire project scope or just a specific file. With this you can track all your todo items across the project without the need for an external system.

Debugging made super easy

No more need for var_dump and echo to find bugs. All you need is to turn on xDebug on your server and link it to PHPStorm. From this point further I guarantee that you’ll speed up finding bugs in your code. This is the main reason for switching over. If you’re still figuring out where your bugs originate without reloading the page and checking the var_dump. Switch over today.

More resources:

Start your Journey now

At this point in my life I am happy. I have a relationship with my heavenly Father through Jesus. I have a loving wife with who’m I’m excited to share the rest of my life with and together we are working towards common goals.

This blog post will serve as the official starting point of my Journey. I publish this in faith as I believe there will be others asking me about my journey and how I made and and i’d like to share my ups downs and what I have done but more specifically the mind set behind my success as a Software Engineer. Continue reading Start your Journey now

Git vimdiff Mergetool Cheat sheet

Your project is going absolutely great. You’re committing regularly and you’re getting close to the release date and then you that the is a (CONFLICT).

You see something like : file.extension : needs merge ,?
Then you google ans see that opening a merg tool will help and then suddenly you’re dumbstruck and you can’t even move.

The first thing I wanted to do was to the heck out of there.

Press “ESC” then press ” : ” after that enter ” qall! ” , after this make sure to selecet no when you’re prompted with “Was the merge successful? [y/n]” . Unless you’ve fixed it select no.

Secondly, what’s up the 4 windows? Please not the descriptions below are not in order 1,3,2,4:

1. The target branch, which is the one you’re on now. This is where you would like to merg the other branch into, but this window is only used as a reference to see what the current branch looks like.

3. The remote/merge branch which is the branch that you would like to merge into the local/target branch above (1).

2. The most common ancestor of the target (1) and the merge(3) branch.

4. The final branch into which you would like to merge the target and the merg branch. This a computer generated file into which the most common items is merged but this is where you need to pull items from target (1) and merge(3) into, to give you the final file.

Now the first thing you should note about the four windows is that you can have the cursor in any one of the four and work from there. To move the cursor around you press:

‘CTRL + W’  ‘ CTRL + W’    (press it twice)

The second thing you would like to do is move from one conflict area to the next.

‘]c’  (right square bracket ‘c’) move you to the next conflicting text

‘[c’   (left square bracket ‘c’) moves you to the previos conflicting text.

:ls identify the windows (names and numbers) This is important so you can combine it with diffput and diffget commands below.

:diffget  *     diff get takes a change and brings it into the current working window. It is important for you to use this with the identity that you find when  running :ls . You can also use ‘do’ as a shortened version (without the colon)

:diffput modify another buffer from the current focus area.

I’ll add more and change this cheat sheet as I discover this tool.

Generate a link list of all Zendesk articles in a specific forum

I needed to print out a list of links for all articles in a specific forum, for use in our Project management system. I had to go through all the items to ensure that they are compatible with the latest version of our Canvas Theme.

I’ve used chrome for this and suggest you do the same as I don’t know how to replicate this other browsers.

1) Navigate to the specific forum on the Zendesk agent panel. In this case canvas.

link lists for a specific zendesk forum

2) Scroll down to the bottom of the page and click more until all the items are displayed on the page:

zendesk_forum_link_lists_click_more

3) Then Open the chrome developers console and click on console:

zendesk_forum_link_lists developer_console

4) Past the code below inside the console and press enter ( be sure to change line:4  from  support.woothemes.com support your own domain):

var count = 0;
jQuery("#content_entries .frame .item").each(function(index){
count++;
console.log("http://support.woothemes.com"+jQuery(".item-info h1 span a", this).attr("href") );
});
console.log(count);

5) You will now see a nice list of  items which you can copy as a todo list on your project management software. Trello allows you to paste this whole list and creates individual to do list items .

zendesk_forum_link_lists_nice_LIST

Mountain Lion, Git “Command Not Found” (2 min fix)

I found this while trying to figure out why I’m getting the error.

1. open your ~/.bash_profile,

if you use textmate it would be :
$ sudo mate ~/.bash_profile

2. add this line to the file:
export PATH=$PATH:/usr/local/git/bin/

3. Save & close the file and type on the terminal:
$ source ~/.bash_profile

*All* the credits go to these guys:

http://www.hongkiat.com/blog/mountain-lion-git-fix/
http://stackoverflow.com/questions/6810059/git-on-mac-os-x-lion