Codeigniter LiveDocx

April 14th, 2009

Using Nusoap, I’ve put together a simple example of how to convert a word docx to txt in codeigniter php. I’ve left error checking out etc just to keep it simple. Its once again one of those “You build on it for you own usage” snippets.

This function converts to txt then just adds a simple <p> wrapper around paragraphs. I put this into a custom file manager for TinyMCE, and it allows clean embedding of a word document to the editor.

And you can grab the Codeigniter Nusoap library from here: nusoap-codeigniter
And a zipped clean version of the PHP snippet above from here: mswordfunction

Hopefully this helps people.
Check out http://www.livedocx.com/ for information on grabbing a free user account, and to read the API.

Excel Reader

April 12th, 2009

This looks like it could come in handy for something!

http://mattkruse.com/2008/12/24/php-excel-reader/

Probably reading excel sheets, thats just a hunch tho. I could be wrong. Will try to hook it into a TinyMCE addon to make table embedding easier for clients.

Found a better library for integration, also reads into the zipped goodies of xlsx.
Take a look at http://www.codeplex.com/PHPExcel

jQuery/PHP Form Builder Sourcecode

April 11th, 2009

Got a few queries from people wanting to grab the code for the form builder, so thought I’d share it around. Its crudely stripped out of the admin system I’m working on, but its a good stepping stone to make it better.

Screenshot

This needs an update, will work on it over the weekend. Fixed some issues with dragging and the wysiwyg editor, also cleaned up the styles.

UPDATED 9 June 2009.

  • Fixed Stylesheet
  • Fixed TinyMCE issues.
  • Cleaned up DOM Objects.

DEMO

DOWNLOAD

As all the things I share, this comes with limited support, as is, and might require you to fix things yourself with your own mental abilities. This is a stripped Controller from a custom admin system I’m working on. To put it back into a controller, just edit formbuilder.php and wrap in a CodeIgniter controller extend.

Work in progress

February 3rd, 2009

Just a work in progress.

Currently working for:

  • User ACL
  • Group Rights
  • Form Builder
  • User profiles
  • Multisite use
  • jQuery 1.3.1
  • Taxonomy
  • Etc etc etc…

PHP

This is kind of a side project at the moment, getting to work on it in spare time.

Tweener

September 26th, 2008

http://code.google.com/p/tweener/

Very handy actionscript 2/3 library, basically allows for simple transitions in flash. Using it in a project now, looks pretty win.

http://www.fluid.com/experiments/tweenplayground/

is a pretty good example set.

Been playing TF2

June 7th, 2008

Its pretty addictive!

Thats my current stats!
Ok, back to game!

redesign incoming

June 5th, 2008

Toying around with something like the following:

blarghf

Webservers die, news @ 9

June 2nd, 2008

CAT

Webservers I hosted sonuku.com on died in the explosion at the server room in texas. Pretty annoying! So I packed up my bags and moved to hosting within Australia. It’s on Jumba hosting atm, which amounts to overstacked shared hosting with slowass databases… But hey. Its cheap, and so am I!

Trying to get everything up and running again, and am in the process of re-developing Dump (When I get spare time at work)…

Uhh, what else… All the comments got nuked, and I cant’t be screwed to import them… I had a girlfriend and now don’t, and I’ve been going to the gym.

Might need to re-skin this blog too. >_>

Hazaa.

Ugly mode

August 6th, 2007

Cameras are awesome fun~
Took some shitty photos of people on the weekend, with the intention of making them look shit.

More images on Flickr

Also got into another arts and crafts mood, and made some pirate hats! I need to make myself another cardboard robot suit soon… Maybe next weekend…

What else… Watched some good movies other last few days… I recommend:

Shinobi - Heart Under Blade
Its basically about two warring shinobi clans in the 16th century Japan, and its got some kickass fight scenes, not ultra violence, but a pretty powerful story.

Old Boy
A South Korean -ultra violence- psy thriller, fucking mindfuck ending, WELL worth watching… If i say anymore I’ll giuve the ending away, but there is some AWESOME fight scenes, and a heap of blood.

and the other one I watched last night was…

A Bittersweet Life
Not nearly as violent or as fast as Old Boy, but still graphic, alot of blood at the end, and a pretty intense fight scene in the middle.

If you like subtitled movies (like me) watch these trailers, and get a hold of these movies any way you can!

Nokia n95

July 30th, 2007

So, picked up my Nokia n95 the other day form the post office… I needed a phone, and iPhones don’t come out in Australia for like a year… So n95 seemed like a good choice.

So fars its been working pretty rad, got it hooked up to outlook and crap at work, so it cries at me when I have shit to do, and the 3D snake is awesome win. I noticed if i left it plugged into USB, the battery promptly goes flat… So thats a mental note…

But like, its got a fucking 5 mega pixel camera! So infact I didn’t buy a phone, I bought a camera with extra shit on it… Oh, and it plays music & porn, but all phones do that. I guess I just like it because it’s mine.

Alot of people bitched and moaned about the battery life, but if its not plugged into USB, it lasts fine. I used it all night Saturday, taking a heap of photos, and the battery was still full bars the next day… Speaking of which, happy birthday Bron, hope you find your camera.

Luke successfully wins the shittest photo of the night award.

Theres some more photos up at Flickr

According to all my mates, I’ll lose this phone within the month. Bringing my grand total of lost mobile phones to 13 or 14, I lose count.

Oh, and i also reskinned http://spam.sonuku.com to look like this shitty entry page, but if you dont already have a spam account, you wont really care, because you cant have one.