Victor Ng's Radio Weblog : armed with cocoa, an ibook and too much spare time
Updated: 5/26/03; 11:01:31 AM.

 

Home

Subscribe to "Victor Ng's Radio Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.


dotMac


Categories

Cocoa


Friends



Site Meter
 
 

Monday, May 26, 2003

Like all weblogs, I've moved.

You can now find me at: http://www.crankycoder.com.

vic
11:01:22 AM    


Tuesday, April 29, 2003

I'm doing the Ride for Heart this year - we've got 14 people going this year. Yay!

So sponsor me! All you gotta do is click over here and submit your credit card info to the Heart and Stroke Foundation.

Ian and I tried riding the bikes today - it's too damn cold. What the hell is with this weather? It was HOT when we left the GO train station, but 30 minutes later it's down right chilly.

I want my summer and I want it now.
11:22:36 PM    


The reports of my demise have been greatly exaggerated.

I am still programming. I'm just not programming technically hard stuff anymore. Now I'm doing things that are complicated from a business standpoint. I like it better this way. My brain gets tired when I try to figure out yet-another-useless-protocol.

That and I'm shit at writing those damn things. Ask anyone who's seen my poor excuse for a UCP stack and they will cheer when you tell them that I will never write another network stack again.

Now I'm worried about migrating the data off of an existing production database where everything works but it's held to gether with glue and a little bit of spit - to something a little more rational.

If anyone thinks re-engineering a live production database which runs a company of 150 people is an any easier than doing network systems programming - they are clearly biologically hampered. That is to say - they are talking out of their ass.

You ass is for pooping - not for talking.

So quit reading my weblog Robin. I don't post enough anyway. :)

In related news - I got my 30 days notice that Radio will expire on me soon. Not really big news since I don't post that regularly anymore. So - I'll be moving my weblog soon - probably to my own server.

I'll need a domain name for myself. While talking to Ian about bike shorts - the topic of that weird padding in the crotch came up. Being the weird perv that I am - I said something like "yeah - it's for your crotch sweat. for those heavy flow days."

So maybe it'll be "www.heavyflowdays.net" or something.

Then again - I doubt that the URL will make it through some of the corporate-Nazi web filters.
11:17:38 PM    


Tuesday, April 15, 2003

Well, I haven't gotten into the bloggin rhythm yet, so this is my poor attempt at getting back on.

I took my bicycle out for a spin today - I'm supposed to be practicing since I just signed up a dozen people for the Ride for Heart.

Oh - here's my Google Vanity of the day Becel Ride For Heart on Google shows a mugshot of me and the rest of the folks who went riding last year.

Freaky.

The fact that I am Google's #1 result for a bike event is nothing short of ... well it's just sad.

In other news - I'm getting more adjusted to these folks at GAP Adventures. The change from the blisteringly fast paced and somewhat crazed world of software to the more hippy-esque world of adventure travel is giving me a bit of psychic whiplash.

Just 6 months ago - I was worried about short message routing on the telecom networks.

Now - well now I have beer-o-clock on Fridays at 3pm and I'm more concerned about how SARS and Iraq freak out toursists.

Weird.

Anyway - they're calling me "Son of SARS" now at GAP. Take that how you will.
8:46:44 PM    


Thursday, April 10, 2003

Hey kids - it's software release day.

I've written a small database adapter for Filemaker in Python. You can fetch, update, insert and delete records as well as trigger scripts from the one true scripting language.

I've just submitted a request for a sourceforge project, but until then you can find the file "pyfilemaker.tar.gz" here:

http://homepage.mac.com/vng1/FileSharing14.html

FYI- the software is licensed under a BSD license.
2:58:18 PM    


Monday, April 7, 2003

I've posted the first release of my Zope installation on SourceForge under the Zope-MacOSX installer subproject.

For those who don't know - Zope is an application server platform written in Python.

This release includes a couple really nice toys to play with:

Python 2.1.3, Python Imaging Library, Zope 2.6.1, PostgreSQL 7.3.2, MySQL 4.0.12 as well as python database adapters for both PostgreSQL an MySQL.

Some of you may ask why I bothered - doesn't Fink already include MySQL and PostgreSQL?

Yeah - it does, but I don't want the bloat of having to install fink on every deployment machine that I use Zope on.

This is the first release - so I expect that there will be problems - there's always problems the first time out.

Anyway - for you Mac OSX UNIX geeks out there - give it a whirl and tell me how it works out for you.

You can grab the files from SourceForge here: http://sourceforge.net/projects/mosxzope/
1:51:53 AM    


Friday, April 4, 2003

I'm back!

2 months of no blogging will do weird things to a snarky little pip like me.

I've been hacking out Python code again - Zope work. Yay!
12:15:23 AM    


Sunday, February 9, 2003

Has it really been 8 days since I posted last time?

I've been trying to decipher how to use the CFNetwork framework and wrap it in a nice library so that I can do nice and friendly conditional HTTP/1.1 fetches from web servers.

The short version of this story is that Java has made me into a moron as far as programming is concerned. Well, that and Apple needs to fix some of their documentation.

To get CFNetwork to handle event driven reads from a CFStream, you create a class that opens all of the necessary CFStreams, then you set a context which contains an 'info' pointer (of type void*) which points back at your object.

The documentation that Apple provides is a little misleading - it seems to indicate that your entire context datastructure is passed back in the callback:

clientCallBackInfo
A pointer to context information that was provided when the application previously called CFReadStreamSetClient.

That is wrong.

What you really wanted to look at is this:

clientCallBackInfo
The info member of the CFStreamClientContext structure that was used when setting the client for stream.

I got screwed for a day because I kept casting the void* pointer to CFStreamClientContext. Grabbing 'info' from that pointer happened to give me the first attribute of my Objective-C object.

Points for Java on this one - I'd get a ClassCastException, whereas here all I got was some weird data that I couldn't figure out.

Blech...

Kudos to Matt Jarjoura for setting up a CFNetwork wiki with some simple example code for using CFNetwork in Cocoa.
4:10:52 AM    


© Copyright 2003 Victor Ng.



Click here to visit the Radio UserLand website.

 


May 2003
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Apr   Jun


AIM: vng1@mac.com
MSN: v2ng@hotmail.com
ICQ: 30390174

NetNewsWire: More news, less junk. Faster