Saturday, May 21, 2016

For Great Justice!


From: Unblock Review Team <noreply-unblock@toolserver.org>
Date: 21 May 2016 at 5:39:41 AM AEST
To: chris.sherlock79 at gmail.com
Subject: Response to unblock appeal #15811

This is a reply to your Wikipedia unblock appeal from TParis, a Wikipedia administrator. DO NOT reply to this email - it is coming from an unattended email address.


Hello Letsbefiends,

The primary issue appears to be your misunderstanding of the purpose of Wikipedia. Wikipedia is a tertiary source. All material hosting on Wikipedia needs to have gone through published secondary sources before we'll cover it. The only material we'll include as a primary source is information on a person's identity; such as: race, religion, gender, sexual orientation, etc.

The diffs you were gathering appears to be opposition research and it appears that you may have a personal connection. To the blocking administrator, that makes it seem like you have an axe to grind. It's one thing to include secondary sources to improve the encyclopedia. It's another thing to gather primary sources to use Wikipedia to 'get the word out' about someone you consider to be a bad person.

Whatever your intent for doing the things that you did, we cannot get inside your head. We can't know what you really intend or intended to do. All we can do is make a judgement based on your actions. Even if you said it was not your intention, we can't know the truth of that. All we have are the diffs to go by. To be unblocked, you'd have to say you'd come off the subject or approach the dispute from another angle within policy.


As you aren't asking to be unblocked, I'm going to close this ticket. I hope this gives you closure.

TParis

English Wikipedia Administrator

The primary issue appears to be your misunderstanding of the purpose of Wikipedia. 
OK then.
Wikipedia is a tertiary source. All material hosting on Wikipedia needs to have gone through published secondary sources before we'll cover it.

Primary, secondary and tertiary sources


"WP:PRIMARY" redirects here. For the article naming guideline, see WP:PRIMARYTOPIC.


Wikipedia articles should be based on reliable, published secondary sources and, to a lesser extent, on tertiary sources and primary sources. Secondary or tertiary sources are needed to establish the topic's notability and to avoid novel interpretations of primary sources. All analyses and interpretive or synthetic claims about primary sources must be referenced to a secondary source, and must not be an original analysis of the primary-source material by Wikipedia editors.

I'm not entirely sure I'm following... but all right then. Next...
The only material we'll include as a primary source is information on a person's identity; such as: race, religion, gender, sexual orientation, etc.

Avoid misuse of primary sources

Further information: WP:PRIMARY
Exercise extreme caution in using primary sources. Do not use trial transcripts and other court records, or other public documents, to support assertions about a living person. Do not use public records that include personal details, such as date of birth, home value, traffic citations, vehicle registrations, and home or business addresses.
Where primary-source material has been discussed by a reliable secondary source, it may be acceptable to rely on it to augment the secondary source, subject to the restrictions of this policy, no original research, and the other sourcing policies.[4]

Must have read that wrong, he's saying something that look like it's violating the Biography of Living Person's policy. Hang on...
The only material we'll include as a primary source is information on a person's identity; such as: race, religion, gender, sexual orientation, etc.

You are allowed to use primary sources... carefully

Material based on primary sources can be valuable and appropriate additions to articles.
Primary sources may only be used on Wikipedia to make straightforward, descriptive statements that any educated person—with access to the source but without specialist knowledge—will be able to verify are directly supported by the source. This person does not have to be able to determine that the material in the article or in the primary source is true. The goal is only that the person could compare the primary source with the material in the Wikipedia article, and agree that the primary source actually, directly says just what the article says it does.
Examples
  • An article about the conquest of the hypothetical country above: The proclamation itself is an acceptable primary source for a simple description of the proclamation, including its size, whether it was written in blackletter calligraphy, whether it is signed or has an official seal, and what words, dates, or names were on it. Anyone should be able to look at an image of the proclamation and see that it was all written on one page, whether it used that style of calligraphy, and so forth. However, the proclamation's authenticity, meaning, relevance, importance, typicality, influences, and so forth should all be left to the book that analyzed it, not to Wikipedia's editors.
  • An article about a novel: The novel itself is an acceptable primary source for information about the plot, the names of the characters, the number of chapters, or other contents in the book: Any educated person can read Jane Austen's Pride and Prejudice and discover that the main character's name is Elizabeth or that there are 61 chapters. It is not an acceptable source for claims about book's style, themes, foreshadowing, symbolic meaning, values, importance, or other matters of critical analysis, interpretation, or evaluation: No one will find a direct statement of this material in the book.
  • An article about a film: The film itself is an acceptable primary source for information about the plot and the names of the characters. A Wikipedian cannot use the film as a source for claims about the film's themes, importance to the film genre, or other matters that require critical analysis or interpretation.
  • An article about a painting: The painting itself is an acceptable primary source for information about the colors, shapes, and figures in the painting. Any educated person can look at Georgia O'Keeffe's Cow Skull: Red, White, and Blue, and see that it is a painting of a cow's skull on a background of red, white, and blue. It is not an acceptable source for claims about the artist's motivation, allusions or relationships to other works, the meaning of the figures in the painting, or any other matters of analysis, interpretation, or evaluation: Looking at the painting does not tell anyone why the artist chose these colors, whether she meant to evoke religious or patriotic sentiments, or what motivated the composition.
  • An article about a person: The person's autobiography, own website, or a page about the person on an employer's or publisher's website, is an acceptable (although possibly incomplete) primary‡ source for information about what the person says about himself or herself. Such primary sources can normally be used for non-controversial facts about the person and for clearly attributed controversial statements. Many other primary sources, including birth certificates, the Social Security Death Index, and court documents, are usually not acceptable primary sources, because it is impossible for the viewer to know whether the person listed on the document is the notable subject rather than another person who happens to have the same name.
  • An article about a business: The organization's own website is an acceptable (although possibly incomplete) primary‡ source for information about what the company says about itself and for most basic facts about its history, products, employees, finances, and facilities. It is not likely to be an acceptable source for most claims about how it or its products compare to similar companies and their products (e.g., "OurCo's Foo is better than Brand X"), although it will be acceptable for some simple, objective comparison claims ("OurCo is the oldest widget business in Smallville" or "OurCo sells more widgets than anyone else in New Zealand"). It is never an acceptable source for claims that evaluate or analyze the company or its actions, such as an analysis of its marketing strategies (e.g., "OurCo's sponsorship of National Breast Cancer Month is an effective tool in expanding sales to middle-aged, middle-class American women").
‡ ^ A person's or an organization's website could contain some secondary material about itself, although this is not very common. Such material would still be self-published as well as first-party/affiliated/non-independent material, and thus would still be subject to restrictions in how you can use it.

Hang about, didn't he say that primary sources can only be "information on a person's identity; such as: race, religion, gender, sexual orientation, etc"? (and why "sexual orientation"?)

So in other words, the following is not allowed?

Researched information

I have put together quite a bit of information about the subject. See below. - Letsbefiends (talk) 14:57, 15 May 2016 (UTC)
Please don't collapse this. It took me a lot of time to gather this material and collapsing it makes it unnecessarily difficult to view it. - 203.217.39.91 (talk) 12:05, 16 May 2016 (UTC)

Developments

OK, so these are developments he owns. They've all been controversial one way or another. - 203.217.39.91 (talk) 12:09, 16 May 2016 (UTC)
  • Owns/owned (through Mehajer Bros Pty Ltd) 3 Mary St, Auburn
    • There is a DA for this property according to a DA search on Auburn Council's website - DA-416/2011, DA is for "Minor internal alterations and fit out works to existing educational establishment." Applicant is 288 Capital Pty Ltd (ABN 87 123 073 138, ACN 123 073 138) and approved on 21/12/2011...
    • No council meeting minutes!!!
    • Klan, Anthony (19 March 2016). "Salim Mehajer eyes $7m property sale jackpot". The Australian.
Discussion
So with this one, it's what got him suspended from council. He didn't disclose ownership of this but passed council business, which is what the tribunal found he did wrong because he was bound to get a substantial material gain from it. - 203.217.39.91 (talk)

Development Applications

  • 13-21 John St, Lidcombe
    • DA-119/2012:
      • Owner: Auburn City Council
      • Applicant: Sydney Constructions & Developers Pty Ltd and Mr S Mehajer (Selim Mehajer)
      • Auburn Council 21 November 2012 Meeting Minutes, Information Report – JRPP - 13-21 John Street, Lidcombe, Page 6
      • Auburn Council 21 November 2012 Business Paper, Information Report – JRPP - 13-21 John Street, Lidcombe, Page 29
  • 36-44 John St, Lidcombe:
    • DA294/2014 (JRPP No: 2014SYW140 DA)
      • Applicant: Sydney Project Group
      • Owner: Sydney Project Group Pty Ltd, S.E.T Services Pty Ltd
      • Proposed development: Construction of a 12 storey mixed use development comprising 153 residential units, 16 commercial units with 4 levels of basement parking and 241 car spaces
      • Cover Sheet
      • Remediation plan, commissioned by SM Engineering and Constructions Pty Ltd
      • Approved: 4 June 2015
      • http://www.ragaa.org/devsites/johnst36-44.html

Salim Mehajer home

  • 14 Frances St, Lidcombe
    • DA-79/2009:
      • Granted 9 June 2009
        • There are no minutes for this meeting!!!
    • DA-79/2009/B:
    • DA-232/2008:
      • Granted 28 November 2008
        • There are no minutes for this meeting!!!
        • Council under delegated authority approved Development Application Number 232/2008 for demolition of existing dwelling, removal of a tree and construction of two storey dwelling house with basement carpark, a front fence, an outbuilding and a BBQ facility subject to conditions. Business Paper, Page 299
    • DA-232/2008/E:
      • Application: Sydney Project Group Pty Ltd
      • Owner: Salim Mehajer
      • 19 November Business Paper, Page 299
      • Section 96(1A) modification to increase height of lift and stair overruns and for changes to internal layout of dwelling.
      • Rescinded! - meeting minutes 3 December 2014, only one opposed Clr. Oldfield
    • DA-232/2008/F:
      • Applicant: Advanced International Developments Pty Ltd
      • Owner: Salim Mehajer
      • Auburn Independent Assessment Panel Meeting, 6 April 2016, Page 4
      • "The subject Section 96(1A) application DA-232/2008/F is lodged to the Council for determination for modifications to approved plans associated with DA-232/2008 to increase height of rear and side boundary fences to 2.1m (from 1.8m), and replace approved grass in the nature strip outside the front of the property with artificial grass" - refused

Council Car Park

  • 13 John St, Lidcombe
    • Sale clause was in 333/11 of council minutes of 16 November 2011:
      • "In the event that the Purchaser does not obtain the Development Consent for the subject property and the adjoining property within eighteen (18) months from the date hereof then either party may be at liberty to rescind this contract whereupon the provisions of Clause 19 shall apply"
      • "That Simon Diab & Associates on behalf of Sydney Constructions & Developments Pty Limited be advised of Council’s decision."
    • In the council Business Paper for their meeting 21 November, it states that:
      • "Sydney Constructions and Developments Pty Limited (Purchaser) submitted Development Application 119/2012 (DA) on 20 April 2012, for a mixed use development over the properties at 15, 19 and 21 John Street and Council’s open car park at 13 John Street Lidcombe. The DA is being assessed externally by a Planning Consultant and will be determined by the Joint Regional Planning Panel." (Background, page 125)
    • Council chooses to rescind sale to original purchaser and sells car park to Sydney Constructions and Developments Pty Ltd for $6.5 million (see 300A/12 of Council meeting minutes for 5 December 2012).
    • Request is made to reduce the holding deposit for the sale of the Car Park, which is discussed under closed session on 20 November 2013, on the grounds that open discussion would "contain information that would, if disclosed, confer a commercial advantage on a person with whom the Council is conducting (or proposes to conduct) business".
    • Council decides to reduce the deposit to 5% - or $325,000 (see C039/13 of Council minutes of meeting held 4 December 2013)
      • Note! I cannot find item C038/13 which was rescinded! There appears to be a set of meeting minutes missing...
    • On 11 December 2013, Clr Simms attempts to rescind reduction in holding deposit, C040/13 but motion is lost (For: Councillors Campbell, Batik, Oldfield and Simms; Against: Zraika, Attie, Lam, Oueik, and Yang).
Discussion
The council car park was very controversial. See-Win won it initially, but asked for more time. Council rescinded the contract though. But when Mehajer asked to reduce his holding deposit by half, it was initially opposed and then pushed through by the other councillors. I distinct;y remember press at the time commenting on this, I'll have to see if I can find it. - 203.217.39.91 (talk) 12:13, 16 May 2016 (UTC)

In the news

His home

Property development and Auburn City Council

Changing the Auburn LEP

Police investigations/Court cases/Tribunals

  • Brook, Benedict (5 May 2016). "Salim Mehajer praises wife but singles out another for a special thank you". news.com.au. The former deputy mayor of western Sydney’s Auburn Council is being taken to court by metal and aluminium fabricators Iron World to get back $46,000 the business claims it is owed for work on a luxury marble staircase installed in Mr Mehajer’s Lidcombe home, reports the Daily Telegraph. “We have done work before (for Mr Mehajer) and got paid but the last invoice just before the wedding we could not get the money,” Iron World business owner Sam Obeid said. “He is just delaying, that is all — we know every time he promises, promises and then nothing happens ... We need to pay our suppliers,” reported the Telegraph.

Hangin' with celebrities

Other

Companies





  • Sydney Building Developments Pty Ltd
    Life in the Fast Lane (PDF), The Australian, retrieved 2016-05-12
  • Oz Buildings & Constructions Pty Ltd
    Life in the Fast Lane (PDF), The Australian, retrieved 2016-05-12

  • Sunday, May 15, 2016

    Don't bite the newbies: why Wikipedia is such a horrible place to contribute to

    This isn't going to be very long really. Wikipedia is a horrible place to edit because it encourages horrible behaviour.

    When I first started many years ago, there was a real sense that you could collaborate on articles. You could have a disagreement and come to a compromise. That's not possible any more. What happens is that instead of asking on the talk page "do you think that might be a bit too much", or even actually discuss the issues at hand, you instead get folks who just lop out whole sections of articles. And of course, you get insulted and called "obsessive" when you try to actually do some decent research. Normally you get called this by people who like to tweak the articles, or do a lot of talking on Wikipedia space, especially WP:AN/I or WP:AN or even (ugh) WP:AN/3RR.

    Here's an example - a certain deputy mayor of a certain suspended council in Western Sydney has had 22 traffic incidents, flouted the law with impunity, and used a section 10 to get out of driving without a license in an unregistered vehicle. He's never once been charged convicted, which frankly should boggle the mind. But OK, I can understand how you might consider that it is possibly "obsessive" to look up Google news to locate what he did so it can be properly sourced.

    Because, you know, when the deputy mayor of a very large city in Sydney holds a list of driving convictions that include using a mobile phone whilst driving, performing an illegal burn out, driving whilst viewing a distracting Visual Display Unit, running a red light, disobeying a stop sign, performing an illegal U-turn, breaking the speed limit on five seperate occasions, driving his car on the wrong side of the road on one occasion, driving without showing his P plate correctly and then refusing to show his driver's license; call me crazy but I think that's fairly significant!

    But imagine that same politician took out his Ferrari and drove it so badly that he ran over two women who were rushed to hospital with serious injuries to their pelvic area and their legs, then spent a month in recovery. Then imagine that same person was charged and convicted of negligent driving. And then appealed and got off completely, then put a half page advertisement out in the local paper proclaiming his vindication. Then imagine he got sued (and lost) for $1.35 million, which his insurer had to pay out.

    Now would you consider that perhaps the law has let us down? Do you think that maybe the automobile incidents are actually fairly important to have documented? Would you consider it "obsessive" to have spent about 10 minutes reading a number of news articles and then documenting the fact that this politician seems to literally get away with what you or I could never get away with?

    Of course it's not important. In fact, it's positively ridiculous!

    What about the fact that the politician is a developer who has been voting through serious changes that negatively impact on his constituents through a series of proprietary limited shell corporations which, when people look a little too closely at, he transfers his directorship over to someone else? Or the fact that he has a not-for-profit company supposedly for the good of the youth of his city that was used to take out a half page advertisement praising his decision to do law?

    Evidently chasing down these companies and putting them in a list with their ABNs and ACNs is.... well, why don't I just quote from them? "The compilation of all the companies he's a director of, many of which are so non-notable the author has had to refer to business registration records, is an atrocious case of original research and absolutely does not belong in this article. These are such trivial details that no journalist has bothered to compile them in any of the tens of thousands of stories about him for a reason." (but of course I didn't use that as a citation... or did I?)

    No, of course the citations to the secondary sources aren't enough. Because, you know, Original Research. If only I truly understood what Original Research was - I've been labouring under the impression all these years that the WP:OR rule was to ensure that only material that uses reliable, published sources (like, say, The Australian or The Sydney Morning Herald, or even an extract from the ASIC company report that shows it's history...) and that directly relate to the article itself (like, I don't know, the fact that the subject is a director of all these shell companies to avoid scrutiny and is currently being investigated by the Australian Securities and Investment Commission...) should be used in articles.

    Silly me.

    Yup, Wikipedia - you once were great, now you are the shit-pile of the Internet and so not worth my time that it's easier just to scramble my password, write up an angry blog post and wipe my hands of it forever more.

    Saturday, May 7, 2016

    Running and disguising programs through XCode shims on OS X

    Here's a spot of non-sudo fun on OS X, figured out after reading the following Hacker News story from the OS X git security flaw update article written by the always amazing Rachel (which is in turn a follow up to this article). Open the OS X terminal and paste in the following:
    mkdir -p ~/xcls/usr/bin
    cat <<EOF > ~/xcls/usr/bin/xcrun
    #!/bin/sh
    if [ "\$1" = "git" ];
    then
       exec -a "/usr/bin/git" echo "Hello world!"
       exit \$?
    fi
      
    shift 1
    xcrun "\$@"
    exit \$?
    EOF
    chmod a+x ~/xcls/usr/bin/xcrun
    chflags hidden ~/xcls
    echo "export DEVELOPER_DIR=~/xcls/" >> ~/.bashrc
    export DEVELOPER_DIR=~/xcls/
    If I run git HelloWorld, even if I start up a new bash shell:
    630188s-iMac:testrun 5K$ git HelloWorld
    Hello world!
    If you were to look at echo statement under ps, you would see it show the process title as "/usr/bin/git". To back out of this, just do the following:
    unset DEVELOPER_DIR
    sed -i -e "/export DEVELOPER_DIR=~\/xcls\//d" ~/.bashrc
    Proof:
    630188s-iMac:testrun 5K$ git HelloWorld
    git: 'HelloWorld' is not a git command. See 'git --help'.

    Why does this occur?

    I was clued in on how to do this from the following article on the blog Mac Operations. On Mac OS X, starting from OS X Maverick, Apple attempted to make life easier for developers. They did this by installing shims in place of a number useful developer binaries, one of which is git. git is located in /usr/bin/. This git, however, is not actually git but instead is linked against Apple's libxcselect library.
    630188s-iMac:testrun 5K$ otool -L /usr/bin/git
    /usr/bin/git:
      /usr/lib/libxcselect.dylib (compatibility version 1.0.0, current version 1.0.0)
      /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1226.10.1)
    It's interesting to display the name list of the libxcselect.dylib symbol table:
    630188s-iMac:testrun 5K$ nm -gU /usr/lib/libxcselect.dylib
    0000000000000fb9 T _xcselect_find_developer_contents_from_path
    00000000000012a2 T _xcselect_get_developer_dir_path
    0000000000001b21 T _xcselect_get_manpaths
    0000000000001647 T _xcselect_invoke_xcrun
    0000000000001aec T _xcselect_manpaths_free
    0000000000001acd T _xcselect_manpaths_get_num_paths
    0000000000001ad6 T _xcselect_manpaths_get_path
    0000000000001d96 T _xcselect_trigger_install_request
    Notice _xcselect_invoke_xcrun?
    630188s-iMac:testrun 5K$ nm /usr/bin/git
    0000000100000000 T __mh_execute_header
    0000000100000f5f T _main
    0000000100001018 S _shim_marker
                     U _xcselect_invoke_xcrun
                     U dyld_stub_binder
    As you can see, it calls upon xcrun. What is xcrun? xcrun is used to "run or locate development tools and properties." What it basically does is locates where a variety of XCode tools are located and if no --find option is sent to it, then it executes the tool with the provided arguments. The tool has a bunch of rules to resolve the location of the tool, but if you define the environment variable DEVELOPER_DIR and set it to a directory of your choice, then this will force xcrun to redirect itself to $DEVELOPER_DIR/usr/bin/ and then run xcrun with the same parameters it was given at the command line. If you want to have a look at this a bit further, someone has reimplemented this on GitHub as an open sourced project.

    An unusual decision by Apple...

    This is, frankly, somewhat bemusing. Apple seems to be locking down /usr/bin under a rootless system called System Integrity Protection. However, as Rachel pointed out in her article, she couldn't even set the execute bit to off on that binary, not even by root. SIP does more than just render certain directories immutable, but this aspect has been designed to try to prevent malware from being installed onto the system - which often was occurring because single-user systems would often just have software ask for the admin password (the same as the user's) and the end user, not being technical, typed it in and gave unfettered root access to the system. However, as you can see above, I'm able to "replace" certain utilities (in this case, git) with my very own script that isn't in my $PATH variable. Note that I don't even have to have XCode tools installed for this to work - the library being used by the preinstalled shims is actually designed to prompt the user to install the XCode command line utilities via a popup dialog box. I find it odd that Apple would do this for the following reasons:
    1. They use bash by default. In bash 4.x a new feature was introduced (and widely implemented by pretty much every major Linux distribution) that handles this much more cleverly. When bash encounters someone trying to execute a file it can't find, it looks for the shell function command_not_found_handle. Normally this is implemented by giving a number of suggestions and then returns status code 127, which is the same code that you get if the shell can't find the executable or that function. There is absolutely no executing of a specific binary, it's all completely done within the user's bash environment. Apple currently have a 3.2.x version of bash on El Capitan. If they were to update it to anything in the 4.x series, they could do pretty much everything that Linux distributions do - and more effectively.

    2. It bypasses SIP - if someone wanted to be malicious, instead of updating their binary in /usr/bin all they have to do is name the compromised binary xcrun, and store it anywhere in the user's directory user the usr/bin subdirectory, and then point the environment variable DEVELOPER_DIR to that directory. Notice that on OS X you can hide directory from the Finder (chflag hidden ~/xcls), thus obscuring the tracks of anyone who manages to compromise the system unaided, and you can easily mask the process title in bash via running your program as exec -a "/usr/bin/git" command "parameter1 parameter2 etc"

    Wednesday, March 16, 2016

    Tips for LibreOffice newbies

    Li Haoyi has written an excellent blog post entitled "Diving Into Other People's Code" about diving into an unfamilar codebase (HN discussion here).

    I think this is really very helpful for anyone who wants to look at the LibreOffice source for the first time. Many of the things he mentions are directly relatable to LibreOffice - in particular getting your dev environment setup is particularly relatable. 

    Getting Started

    To develop in LibreOffice, you really need some level of C++ skill, an ability to read other people's code, and be willing to learn and improve over time. However, you can still contribute Java and Python code to parts of the project (though in terms of unit tests, we really encourage converting Java unit tests to C++ tests eventually). 

    Any newbies should start here:


    and then have a look at:

    https://wiki.documentfoundation.org/Development/How_to_build

    One easy way of setting up your development environment is to use lode, which is a project that helps you setup a base environment to build LibreOffice:

    https://wiki.documentfoundation.org/Development/lode

    Once it is installed, check out how to use gerrit:


    Be warned, depending on your setup this can take quite a bit of time and can be at times frustrating. We do our best to make things as easy as possible, but even building LibreOffice can take hours and hours to complete. 

    Learn git

    A bit of git experience is very helpful - luckily you only ever have to do a git clone once, but you should learn about branching, rebasing, pulling and pushing. I would strongly suggest using the logerrit scripts. I personally use the following to pull in changes onto my current working branch:

    ./g pull -r

    I strongly recommend spending a few hours on the following graphical tutorial on git, Learn Git Branching. This is well worth doing regardless of whether you contribute to LibreOffice - knowing how git works to the degree that this shows you is a skill that is immensely valuable. This tutorial demystified a lot of git concepts for me, and helped me "get" how git does things. Eventually you will get stuck in some git mess, so knowing how to reset is very valuable. 

    I also recommend learning how to use interactive rebase in git, which is done via:

    git rebase -i

    What this does is take your changes are change the "base" of the commit in question. You can move the commit up or down the version history, reword specific commit messages, "squash" commits into the parent commit (be very careful about doing this) or edit the commit itself. When you run git rebase -i it opens up your text editor - just read what it states in the editor to learn how to use it. 

    If you do ever mess up a rebase, incidentally, you can use the git reflog to back out of your change. Check out the Atlassian reflog tutorial on this, could be a lifesaver. Another tutorial I used before I found the Atlassian one can be found here, try the Atlassian one first though. 

    Hot tip for vim fans

    If you are a vim fan, then I suggest the following setup for your .vimrc file:

    filetype indent on
    set tabstop=4
    set shiftwidth=4
    set expandtab
    highlight ExtraWhitespace ctermbg=red guibg=red
    match ExtraWhitespace /\s\+$/

    augroup trailing_whitespace
      autocmd!
      autocmd BufWritePre *.c :%s/\s\+$//e
      autocmd BufWritePre *.h :%s/\s\+$//e
      autocmd BufWritePre *.cxx :%s/\s\+$//e
      autocmd BufWritePre *.hxx :%s/\s\+$//e
    augroup END

    We don't use tabs, we use 4 spaced-tabs. Some time ago I discovered a way of showing extra whitespace at the end of lines directly in vim, and then later after some discussion on the LibreOffice developer mailing list I discovered how to safely remove trailing whitespace on write. 

    Start Hacking!

    When you are modifying the LibreOffice codebase, you'll find that you'll spend more time reading and grokking the code than actually modifying it. I'd consider this normal, so if you find this is occurring don't fret - we all have to do this. The LibreOffice codebase is massive, I think from memory it has more lines of code than the Linux codebase and has been in continuous development since 1988. 

    When I started on LibreOffice hacking, I found I was most interested in finding the code entry point. Frankly, I was only initially reading the code for pleasure (yes, I'm strange that way) and so I used http://opengrok.libreoffice.org to browse the code. 

    However, many years before I had actually attempted to compile OpenOffice.org - and failed rather spectacularly as I ran out of disk space. Whilst this was occuring I did a lot of reading of OpenOffice.org developer manuals - I really recommend reading OpenOffice.org's Developer Guide. Don't be put off by the fact that it is hosted on the competing Apache OpenOffice site, it's really very high quality and whilst the LibreOffice codebase is more actively developed there is still a lot of really useful information on the Apache OpenOffice sites. 

    Once you have read enough, have a look at our EasyHacks list. These are a list of things that need to be done in the LibreOffice codebase that are designed for newbies - and if you ever want to participate in Google Summer of Code you'll need to demonstrate that you've worked on a few bugs or submitted a few commits to deal with easy hacks. You'll also know that you've contributed to a codebase that literally millions of people use every day, and your name will be in the commit history. :-)

    Join in with the development community

    LibreOffice is a very friendly environment. We mostly go out of our way to help out newbies, as we want to encourage as many participants as possible. A such, you can join us on the #libreoffice-dev IRC channel on Freenode. We don't largely answer user questions (for that there is #libreoffice), but if you are getting stuck on something feel free to ask on the channel. 

    The other way of joining in is to subscribe to the developer mailing list. You can either subscribe to the digest, or get every message directly - in which case I suggest setting up a filter or else you might get drowned out in emails. If you do get digest messages, please don't reply to the digest directly but copy the message you want to respond to into the email, and retain the original subject line, prefixed with "Re:". We suggest setting up the Reply-To header on your mail client, but it's good practice to ensure that the original mail receipients are cc'ed into your responses. 

    (I'm also a chronic abuser, but please don't top-post. Don't be me.)

    Commit messages

    A final tip: commit messages are really important. I personally tend to write longer messages detailing the work that I've done, but that's just my own style. The most important thing about commit messages is they must be to the point and explain what you have done, not what the code used to do. If your code change is complicated or not necessarily easy to follow, then it's best to try to leave an explanation of what you are doing. The commit title should be clear enough that someone browsing the git log in cgit can understand the purpose of the commit. 

    If your commit is easy to understand or minor, then only a commit message title is needed. If you need to explain things in more detail in the commit message body, as I said, you should state what you did. 

    An example that shows both what you should and shouldn't do is where I fixed an issue where the PPI wasn't being exported to JPEGs correctly. 

    Good things about my commit message: 
    • Note that as I fixed a bug, I prefixed the commit message short title with tdf#85761. There is a bot that reviews the git logs and if it finds this in the message title it automatically updates the bugzilla bug. You can only reference one bug however.
    • I summarised my change that we don't hardcode JPEGs to 96 DPI any more but use mapmode pref size to get the DPI, and moved the scaling function from the EPS filter code to the MapMode class. 
    • It explains what the problem actually is, as it was a bit difficult to understand the cause of the issue from the original bug report. 
    Bad thing:
    • I still spent too much time explaining what the code originally did (thus violating my own recommendation I give in this blog post).
    FWIW, it can still be useful in explaining what the code did, but I'd leave that to a note in the last paragraph - and I recommend you make it brief.