A few Night photos in Brisbane
A few photos before/after the Brisbane WordPress Meetup last week.
The first few are obviously the lovely countryside of Northern NSW on the way up to brisbane.. You’d never get that view in brissie :)
A few photos before/after the Brisbane WordPress Meetup last week.
The first few are obviously the lovely countryside of Northern NSW on the way up to brisbane.. You’d never get that view in brissie :)
Just some raw unedited snaps from Melbourne, Yes, I call these Happy Snaps
Update: Just a quick update for those coming from search engines, the WordCamp Gold Coast website is up and running at: http://2011.goldcoast.wordcamp.org/ head over there for updated information :) – D
Hi All,
Just thought I’d let everyone know that we’ve (Me, Bronson, Lachlan and Brent) decided upon a date and venue for WordCamp Gold Coast 2011!
Yes, Fantastic news right? But the catch, Well, There is no catch! Other than the fact neither will be announced until we’ve got everything finalised and deposits paid.
So sit tight, It’s a-happening ( October – Novemberish ), We’re currently in the paperwork section of a few things, so once we’ve got our website up and running with details of the event I’ll be posting another update to give a callout to potential sponsors and all that jazz!
Also, Don’t forget about the Brisbane WordPress meetup’s, being held monthly, we’re getting a nice flow of regular users, Designers, Developers and everything in between now, The next meetup is the 7th of July at the Edge in Southbank and is more than just a Evening meetup, We’re planning a full day of workshops! It’ll consist of a drop-in session where people can come along and chat with WordPress people, Network, get some tips on their own sites, people are putting their hands up to help out with marketing your website, etc, so it’s looking to be a great day for those of you who might only be able to spare an hour or 2 at some point on your Saturday :) (But if you’re one of the few that only comes along for the evening chats in the Pub, I’m sure we can still accommodate you :))
>svn blame http://core.svn.wordpress.org/trunk/license.txt@HEAD 7131 ryan GNU GENERAL PUBLIC LICENSE 7131 ryan Version 2, June 1991 7131 ryan 10085 matt Copyright (C) 1989, 1991 Free Software Foundation, Inc. 15668 scribu 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 10085 matt 7131 ryan Everyone is permitted to copy and distribute verbatim copies 7131 ryan of this license document, but changing it is not allowed. 7131 ryan
So, Most of have seen that, and a few of us have had a need to parse it now and then.. Googling for an answer never seems to bring up a reasonable answer either.. So here you have it, an explanation of the output format of SVN Blame.
Honestly, It’s quite simple, it’s just fixed width columns, with a twist, by default the columns are 6 characters wide, but will expand to fit the largest revision ID, or the longest commitors username. The author’s field is followed by a single space, and then, the line data.
Why go to the trouble of this? Well, It comes back to the fact that although it looked like fixed width.. it couldn’t just be fixed width.. and what rules are behind it? I checked the source of svn blame and this comment was what I wanted to know how the fixed width was selected:
/* The standard column width for the revision number is 6 characters.
If the revision number can potentially be larger (i.e. if the end_revnum
is larger than 1000000), we increase the column width as needed. */
Updated Regular expression: (Original had a bug where it didn’t handle empty lines in the file)
preg_match_all('!^\s*(?P<revision>\d+)\s+(?P<author>.+?)( (?P<data>.*))?$!m',
$output_from_svn_blame, $matches, PREG_SET_ORDER);
Example output:
array 0 => array 'revision' => string '7131' (length=4) 'author' => string 'ryan' (length=4) 'data' => string ' Version 2, June 1991' (length=41) 1 => array 'revision' => string '7131' (length=4) 'author' => string 'ryan' (length=4) 'data' => string '' (length=0) 2 => array 'revision' => string '10085' (length=4) 'author' => string 'matt' (length=4) 'data' => string ' Copyright (C) 1989, 1991 Free Software Foundation, Inc.' (length=56)
It’s probably not the most efficient, but it does the job for what I needed for now. Also note, I’ve removed the numeric keys from the example output there (preg_match returns both named and numeric results in the array set)