Christchurch Links for Information #eqnz

There are a lot of resources available, just trying to tie them all together so we can use the resources we have rather than spreading them between multiple webpages etc. Let me know any more I may have missed. I am constantly updating this.

People

Person Finder : http://christchurch-2011.person-finder.appspot.com/

MESSAGES FOR THE #EQNZ MISSING: If you’re missing someone, email newsroom@stuff.co.nz with details we will publish

NZ Earthquake: The hotline number for people overseas calling about loved ones is +64 7 850 2199
Register a lost or found pet with SPCA Canterbury here: http://bit.ly/h3Hj28
If you have lost or found a pet in the  Please don’t forget to post an ad (free) here http://www.petsonthenet.co.nz/ads/

Beds

http://findaroom.danielwylie.me/

http://quakebeds.co.nz – Links to several resources for offering and receiving

http://www.quakeescape.org.nz/ – find and offer beds

Are you in Wellington and have spare beds for stranded passengers? Wellington Airport wants to hear from youhttp://ow.ly/40RaU

Resources:

Lyttelton, Redcliffs, South New Brighton,Shirley,Wainoni and Phillipstown schools will be used as water distribution centres

Water Tankers are going to be arriving 11am-ish (23rd) around ChCh. IMPORTANT you must bring your own clean containers! Be patient

Drs & Nurses 0274316986 Volunteer for medical assistance via @NZTopModelColin

Port-a-loos being installed at schools.

Pak’n’Save and Countdown in Hornby will open at 10:30am.
Pak N Save Northlands open
Bakers Delight in Bush Inn (Christchurch) is giving away free bread for anyone in need apparently (not sure how long that will last)

helpline set up for the blind, deafblind and partially sighted, call the RNZFB Helpline on 0800 24 33 33

Anyone who knows someone with autism or aspergers, there is accom avail. Contact Alison Molloy or Jon Boyer at Autism NZ 04 470 7616

Foodstuffs list of open supermarkets http://www.foodstuffs-si.co.nz/

Damage reports can go via SMS to 5627 – any network, free TXT.
Naked Bus are offering 50% off for all fares travelling to or from Christchurch. Use the promo code “220111”

Fisher & Paykel have set up laundering facilities to help.
Located in the following places:
National Marae, 250 Pagers Road, Aranui. Corner Berswick… & Charles Street (situated in a Portacom), Kaiapoi. Fisher & Paykel site, 79 Shands Rd, Hornby

 

Christchurch families, call Plunketline 24/7 if you’re worried about your child’s health or wellbeing 0800 933 922
@Giapo is gathering goods to be sent to ChCh. Tinned goods, clothing & other necessities will be appreciated. Please donate #eqnz

ZMTHunderWLG We want to help CHCH however we can. If you need a ride to/from the airport, food collection for foodbank etc TXT or call 0274583656
http://www.google.com/crisisresponse/christchurch_earthquake.html
If can’t get through on Lifeline number try 0800 111 757 – number for depression.org but counsellors happy to talk and listen

Servers/VPS for IT or hosting companies http://blog.rimuhosting.com/2011/02/23/christchurch-earthquake/

Know of stuff in Christchurch that needs fixing? tell The Student Volunteer Army. free txt 5627 with address & brief details

Donations:

RedCross Donation: http://www.redcross.org.nz/donate
RedCross say they do not need people or items at this time.

Emergency Helpline 0800 77 9997 – For missing people call Red Cross 0800 733 276

SALVATIONARMY.ORG.NZ 0800 53 00 00 or donate directly to this Westpac Account 03 0207 0617331 00

ASB has opened an account to receive donations: 12-3205-0146808-00

http://www.grabone.co.nz/christchurch or txt FOOD to 4662 for $3 to help the pets
http://www.1-dayout.co.nz/dealLocation/13/title/Christchurch – Donation

On Vodafone? Txt Quake to 333 to make a $3 donation. 100% of yr $3 goes to the Red Cross EQ appeal
Sugar Free is donating kids clothing to Christchurch earthquake victims. If you would like to donate any kids clothing drop it off at the shop before Thursday afternoon. 216 Jervois Rd, Herne Bay, Auckland.

Flights:

$400 from anywhere in the world for kiwis to come home to family. Air New Zealand

$50 anywhere in NZ to or from ChCh via Air New Zealand

If you have a working laptop you can donate, send it to New Zealand Trade & Enterprise, well packed with the hardware and software specifications listed on outside of box to: John Ferguson, Sector Manager – Digital Content & Technology, New Zealand Trade & Enterprise, Level 11, 23-27 Albert St, Auckland. We will find a business that can use it. Please be generous.

The University has created a “Volunteer Army”, which is rallying students together to help out http://www.facebook.com/StudentVolunteerArmy?ref=ts&sk=wall

People in wellington, there’s a truck going down with supplies to christchurch if you want to donate: http://eq.org.nz/reports/view/105

Advice

Change your voicemail to say you’re are okay if your phone battery is running out !
Do not need to boil water for 3 minutes, once its at boiling its fine to drink , any more is just wasting gas.

More Information

http://www.theedge.co.nz/Large-earthquake-hits-CHCH-/tabid/199/articleID/12089/Default.aspx

http://wiki.crisiscommons.org/wiki/CrisisCampNZ
http://www.3news.co.nz/Christchurch-earthquake-How-you-can-help/tabid/423/articleID/199425/Default.aspx
http://twitter.com/christchurchcc
http://eq.org.nz/ – Damage reports
http://canterburyearthquake.org.nz/
http://www.stuff.co.nz/national/christchurch-earthquake/4692248/What-you-need-to-know
http://www.trademe.co.nz/christchurch-earthquake-support


Please add any other links in comments so i can add to them. Also any offers of help are welcome in any form.

Whilst im sure we appreciate those behind a lot of the websites, I would like to ask others to please NOT try and re-invent their own versions. it dilutes the data over to many websites and makes it hard to keep track. The http://eq.org.nz/ is maintained by a large group verifying the data and would love your help.

PHP Code

General:
– code as if whoever maintains your code is a violent psychopath who knows where you live
– code in paragraphs, i.e. group related chunks and separate them by a new line
– indent style uses the K & R style
– columns 100 max, unless workaround (i.e. HTML) is needed
– The use of <?php ?> to delimit PHP code is encouraged, especially for core packages
– Using <? ?> is OK for main PHP files

File Format:
– use the UNIX file format, that is a LF character for end of lines
– make sure there is no whitespace after the last non whitespace character for every line

Comments:
– avoid // for comments in PHP
– comments should start with #
– /* */ style in PHP is OK for multiple lines
– when commenting out code lines add the comment character at the start of the line,
makes it easier to separate form normal comments,

Tabs:
– tab indent size should be set to 4
– tabs should be used for identing only NOT for alignment
– a tab character can only be used at the start of the before any non-whitespace character
– checkout the Smart Tabs vim plugin

function do_something() {
<TAB>$long_variable = foo($baz);
<TAB>$short = foo($bar);
^^^^^^^^^
space
}

Identifiers:
– abbreviations should be avoided, ie $session->initialise() not $session->init()
– common abbreviations are acceptable as long as they are used the same way throughout the project.

Vars:
– hungarian notation is to be avoided for scripting languages
– use all lower case letters separated with underscores, i.e. $first_name
– space on each sides of equal for assignment, i.e. $first_name = ‘John’;

Hashes & Associative Arrays:
– in Perl both $hash{key} and $hash{‘key’} are OK
– in PHP both $array[key] and $array[‘key’] are OK

Constants:
– all uppercase separated by underscores, eg SESSION_TIMEOUT
– in Perl use Readonly instead of constant
– for PHP constants related to a class, prefix with the name of the class they are used in.
for example, the constants used by the Benon_DB package should all begin with “Benon_DB_”.

Strings:
– avoid using double quotes unless necessary
– only simple variables are allowed in an interpolated string
– do not use hashes, arrays, ${var} expressions in interpolated strings

$var = ‘My String’;
$associative_array[‘key’];
$var = “…string… $some_var …more…’.$another_var.’_more stuff…’;
$var = “…string…’.$another_var.’_more stuff…’;
$sql = ‘INSERT INTO mytable (field) VALUES (‘.$db->quote($var).’)’;
$var = “My String\n”;

Control:
– one space on each side of the brackets

for ($i; $i < 10; $i++) {
# …
}

foreach ($arr as $k => $v) {
# …
}

while ($i < 10) {
# …
}

Tests:
– one space on each side of the brackets
– uncuddled elses: return line after a closing curly bracket
– only “if (…) do_something” in ONE line are allowed

if ($a == $b) {
# …
}
elsif ($a == 1) {
# …
}
else {
# …
}

Functions:
– use all lower case words separated by and underscore
– follow the verb/subject rule, ie get_this, do_something, is_ready
– use a space between the function/sub keyword and the identifier
– use arrays as arguments for public functions in core packages
– use PHPdoc http://manual.phpdoc.org

function print_name($first, $last) {
echo $var;
}

foo(‘John’, ‘Doe’);
foo(array(first => ‘John’, two => ‘Doe’));
foo(array(
first => ‘John’,
two => ‘Doe’
));

Classes:
– use CamelCase, i.e. SomeNamespace::SomePackage
– In PHP use an underscore to fake namespace separation, i.e. SomeNamespace_SomePackage
Hopefully one day PHP devs will get a clue and support namespaces 🙂
– For PHP constructors, use __construct not the name of the package
– abreviations are left uppercase, ie “DB” not “Db”, i.e. Benon_DB_Result

SQL:
– keywords all uppercase, ie SELECT FROM blah WHERE name = ‘Joe’;