Code Yard and PHP CSV Parser
November 23rd, 2006
Today i’ve setup a new project, called Code Yard. All it really is, is a Subversion repository for me to collect all my small random pieces of code (classes, functions, etc.) which i reuse every now and then. It’s purpose is to let me more easily manage all the small pieces of code currently spread out a bit all over the place in old and current projects, and to allow others who might find my code useful, or just save them 5 minutes of work
And with that explained, the first piece of code i’ve added is a PHP class called parseCSV. I’ve recently written this class for a small project i’m working on, i was quite surprised to find that there was a quite lack of CSV support in PHP, and an even larger vacuum of 3rd party classes available that fully supports the most common types of CSV files.
Hence i wrote parseCSV to be fully compatible with the Wikipedia article available on the topic. Which also seems to be the exact CSV formatting MS Excel uses for example. I based my class on the processing concept of Ming Hong Ng’s CsvFileParser class.
SCPlugin r390, PowerPC Binary
November 17th, 2006
Download: [link removed, binary out of date and very buggy]
A lot of you probably use Subversion, and a quite useful little thing for OSX users is SCPlugin. Its a finder plugin which offers quite a lot of svn features directly in the finder. But its only available from source, or some quite outdated binaries, so I went about to build my own binary from the latest svn revision.
Personally I use SCPlugin solely for its small icon badges on files in the finder indicating their current status, which I find quite useful. As for actual svn actions, I mainly use svnX, which is a very nice, simple but yet advanced Subversion client. It gets rid of some of headache you can have using the shell command
Download the above file, extract “SCFinderPlugin.plugin”, place it in “~/Library/Contextual Menu Items” and relaunch finder. Its a PowerPC only build, since I’m not exactly an OSX developer, and building OSX apps ain’t something I really do, nor know much about…
So if you’re looking for an Intel binary, best i can do is refer you here: http://funkatron.com/wp/archives/os-x/binary-build-of-scplugin/
I would like to point out that I’m not fully sure how good this build works.
Myself I tested updating a working dir, which didn’t really work as expected, but that might be cause I’ve got the new Subversion 1.4 installed which heavily changed the work dir database. The icon badges doesn’t always appear from the beginning, but they eventually will.
Update: This binary does not work with working directories handled by Subversion 1.4.x. My previous installation of svn 1.4 turned out to not work correctly, and old copies of 1.3.2 were still being used. Now i’ve made sure 1.4 is installed properly, and SCPlugin just flips out with errors locking up the finder for about 20-30 seconds.
I’ll look into a 1.4.x compatible copy as soon as i have some free time![]()
echo ‘Hello World’;
November 6th, 2006
So, the domain and svn repositories have been up and running for a few weeks now, so here’s a blog, which probably nobody will be reading for some time to come i believe…
Incase someone does happen to stumble across this little post, you might be wondering what this oddly empty site is for. Well, come here and sit in my lap little boy cause Santa’s about to tell yee!…
zhuoqe.org has one intended purpose, and that is to serve as development domain for all types of weird, funky, illegal, doped up, purple, and otherwise mind boggingly insane projects. Jokes aside, all this site is for is to work as a testing environment and svn repository for all my different projects.
Also, lets not forget that there’s another party involved in a few of projects that will soon be featured. Namely sxtxixtxcxh (at zhuoqe dot org).
Oh, and don’t forget to check his projects (which are actually online and working, unlike my own projects :P).
Currently, the only public svn repository is Adiumlogs, which is PHP log parser for the popular Adium chat client for Mac OS X. Adium stores logs in a neat html format, so its easy to read from external sources. A demo of Adiumlogs is available at http://adiumlogs.zhuoqe.org/ (note that the directory listing is not part of Adiumlogs, its part of dList, another project which is almost ready for its first public release).
A log viewer/manager for Proteus, my own favorite OS X chat client is on my todo list, specially since the built-in log viewer doesn’t work properly :P.
That will be zee all for now, if you have any questions, well just don’t!… cause i will answer them, and you could get brain damage ;).