Archive for the 'work' Category

new site.

August 20, 2009

so here is how it goes. I have been writing some stuff at work for the sites we build. and thought it would be best if I used the software myself so it gets tested more. thats the other half of the reason i havnt posted for years, to movtiate myself to finished the first release of the damn thing.

info can be found->

on my site: rekarnar.com

and prolly some here too: http://malarky.co.nz/cms

a quick update here

November 17, 2008

ok i stoped posting here in the hope that it would motivate me to work on my own blog and portfolio site. it kinda did. not greatly so and not to the extent that it is usable. but almost. anyways, i should have more time comming up soon, with the official beta launch of the web app i have been making for months and lifetimes. so on wednesday there is sorta a closed beta thing happening, which i may or may not be able to link to. so life should either become far far more relaxed, or super insane busy. depending on the testers results. oh pray for the former. let this be smooth!

no more libgmailer.php and the Gmail Contacts Data API?

September 30, 2008

dun dun duuuuuuuunnrrrrr —> http://code.google.com/apis/contacts/

and why did i not find this months ago??

http://code.google.com/apis/contacts/developers_guide_protocol.html

argh! this is going to make life soo much eaiser.

ERROR: Date_Calc is not installed – Dreamhost

September 2, 2008

ERROR: Date_Calc is not installed. You must install the date library. (with Dreamhost shared hosting)

ssh into ~

pear config-create $HOME .pearrc

install pear:

pear install -o PEAR

then install the date module

pear install pear/date

update the paths (can never get this part to work, so using the other method below)

export PHP_PEAR_PHP_BIN=/usr/local/php5/bin/php
export PATH=/home/*****/pear:/usr/local/php5/bin:$PATH

or include it this way: (index.php)

ini_set(
  'include_path',
  ini_get( 'include_path' ) . PATH_SEPARATOR . "/home/*****/pear/php"
);

Symfony: sfAssetsLibraryPlugin – troubleshooting

July 28, 2008

Right, so I have this scenario:

I exclude propel.ini from my sync’s with our web server. So after installing a few things i forgot to make the corresponding change online:

* Enable Propel behavior support in propel.ini:

propel.builder.AddBehaviors = true

So when running this (while installing sfAssetsLibraryPlugin):

symfony sfassetlibrary-create-root backend

I would get the following bastard of an error:

Creating root node at media…
PHP Fatal error:  Call to undefined method sfAssetFolder::makeRoot() in /var/www/xxxx/plugins/sfAssetsLibraryPlugin/lib/model/sfAssetFolderPeer.php on line 36

Fatal error: Call to undefined method sfAssetFolder::makeRoot() in /var/www/xxxx/plugins/sfAssetsLibraryPlugin/lib/model/sfAssetFolderPeer.php on line 36

EXTRA NOTE: I also had to add this line at the end of the create function in sfAsset.php:

chmod($this->getFolderPath().”/”. $this->getFilename(), 0604);

This has something to do with the way dreamhost has permission setup and the above create root line.

(The error here was that you could not see the images once uploaded)

I did some work!! – sfContactGrabberPlugin

July 23, 2008

Today I released a plugin for Symfony, well, more of an update for an old broken one.

It feels quite good to finally give something back. You can find it here

It basically add’s those forms that you see all over the place on social networking esk type sites that allow you to grab contacts from your accounts in other places.

At the moment it’s only working for gmail and yahoo, but I might end up adding some more functionally in the future, all depending on how the current project im working on pans out.

symfony: No package found for database “” in generated-schema.xml

July 22, 2008

Ok so i was setting up a Symfony 1.0 project recently and was getting this error. It took me a while of poking around to figure out what was wrong. The error indicated a lack of database’y things and I had my empty one defined in databases.yml so i was stumped.

The error was this:

Execution of target “om-template” failed for the following reason: /usr/share/php/symfony/vendor/propel-generator/build-propel.xml:470:1: No package found for database “” in generated-schema.xml. The propel.packageObjectModel property requires the package attribute to be set for each database.
[phingcall] /usr/share/php/symfony/vendor/propel-generator/build-propel.xml:470:1: No package found for database “” in generated-schema.xml. The propel.packageObjectModel property requires the package attribute to be set for each database.

Basically what is happening, is that since I had one defined i also had to have one listed in the schema, even an empty one.. so

To fix:

add the following at the top of config/schema.yml:

propel:

^^^thats it.

I also heard you can also delete your schema.yml file, but i wouldnt recommend that, and im not sure if it would even work.

had something more awesome

April 2, 2008

but have been busy today. again. work is awesome. yay.

side note: man russians own the internet.

listening to:  Pillar of Davidson – Throwing Coper – Live

Mangosteen

March 18, 2008

its weird. one you get a post written… all be it finally, they just start to flow.

New life goal: Eat a Mangosteen.

I do suppose I have been very busy writing codes and have not had a chance, or at least given myself a chance, to read the internets. but as soon as you do, gosh, there is some amazing things to learn out there. for example, how long have we talked about this, only to find a clear example in seconds upon looking.

secondly, we have just signed the contract for this web app, providing me work for months and months literally. (and by we, i mean i watched grg and caroll sign (but i was there!!)) very cool. so work is officially commenced. so exciting!!
definitely time for a cup of tea.

thoughts from my last day at datacom

February 1, 2008

everyone is being extra nice.

i got taken out to coffee and a bottle of wine and a giant (although relatively empty)  card.

im sad at losing my work music playlist. it only has 2959 songs on it, but it has been about a year in the building. just flicking through now and i love every song that it randomly falls on. it is balanced so well. lots of smiths and morrissey, a heavy proportion of metal mixed with lots of pumpkins and pixies, while being intersected with works from chopin to wagner to orignal eairly 90’s metal. let alone the skinny puppy to distillers additions.

it all has been slowly bought in from home, which is quite a cool way to do it. for at home i normally just listen to albums etc selected from a playlist containing everything in my library. hopefully i can devise a system that would allow for many smaller random collections.

other things i will miss:

emporio being 20 meters away. its so nice to be able to walk into the coffee shop in the morning, sit down and have then just bring you a coffee. its more amusing when gavin, my workmate, walks in and the guy has to ask him ‘one or two?’.

ahh having a morning routine. coming in, checking your dailys (del.icio.us\rekarnar\daily), implementing the soultion to the problem you were stuck on at cob that you solved in your sleep or in the shower or some such and then moving into the rest of the days dev. balancing the urge to check the ten other webcomics or news site/blogs that you know you have to read sometime soon between finishing the current algorithm your coding before you lose the flow.

free friday lunches! today is subway, last week was pizza. beer and wine at 4. donuts on mondays. ahh you are looked after in the corporate world. feed them inhouse that way they will not take a lunch break and will get right back to work. the cost of lunch eaisly balances out the extra 30-60mins work you get from employees.

adrift in the sea of this life. letting go, very exciting. oh where will it take me. fittingly current music: Wagner – The Ride of the Valkyries. very epic.

ahhh and in speaking of that. i just got a call from avatar. right this second. they have work for me on monday, my was to be first day of un-empolyment. maby im ment to be an actor 😉 loal.

hrm.. ok desk cleaned. all the stuff i needed backed up to my ipod. random bits of paper i want in my bag. i think im ready to leave. ill stay around for drinks at 4 and maby a good by or two. there is some people i will miss my casual acquaintance with (most likely at least ;).

what a life changing few days eh. also last night my flatmates found an awesome house to move into. so chances are we’ll all be moving in a few weeks. wow. lyall bay so im told. what an enthralling trip life is.

“I’ll show you what he did, But I won’t take the credit, It’s not mine anyway, I just held the pen that day” – Flyleaf.

such a spectrum of emotions you can feel at once eh.

also. how amazing is water? not sure? well then ill tell you. its pretty damn amazing!!!