Archive for June, 2008

Regular expressions

By farcaller June 29th, 2008

I wonder, why so nice thing as Cocoa has nothing built in for regular expressions matching. There are various 3rd-party frameworks, and I can still use plain PCRE.
If this was Mac-only project I’d just use RegexKit framework. It looks very nice, and has rich documentation. Bad thing that it is a framework. It might be [...]

How it will be going

By farcaller June 24th, 2008

I’ve updated the About page, now it contains info about “How the FOW idea was born” and core design principles.
FOW will be based on Cocotron. I will try to make less use of non-ported Cocoa API where possible and port some of the code I use where Cocoa has similar API (methods like NSString’s stringByReplacingPercentEscapesUsingEncoding).
FOW [...]

Troubles arise

By farcaller June 18th, 2008

The current code is not compilable even under Cocotron. It uses rare, but nice and optimized features of Cocoa.
What that means? In the most simple case: no FOW for Linux. That automatically means no FOW for 99.9% of possible users. Guys that host their stuff on OSX servers already have nice and elegant solutions for [...]

fcgiapp: is it enough?

By farcaller June 15th, 2008

I’m now thinking about making a test code capable of FastCGI (currently only CGI support is provided). fastcgi.com mentions some C library that is capable of emulating FastCGI environment for CGI applications. There’s also extended version based on fcgiapp. The only problem is very little documentation. I’m not sure if all that would scale well.
I’m [...]

ActiveRecord for Objective-C

By farcaller June 9th, 2008

I’ve noticed an interesting project in my RSS list today. ActiveRecord for Objective-C is a thing that does DB ORM in very nice and comfortable manner. That might be a solution for my FOW database querying problem…

Sample OCFW application

By farcaller June 6th, 2008

I’ve decided to code a small OCFW application to make it more clear to me how it would look from user point of view. Some parts of the code below are already in working state, others are nothing more than just a prototypes. You are warned!

Python, GIL and why it doesn’t scale well

By farcaller June 4th, 2008

You might already know about my other hobby project: L0st. It’s a file storage service (data is hosted locally) written in Django. Everything worked mostly well until I wanted to write some Jabber notification service. It was quite logical to use some XMPP library for python, logical until I remembered about GIL (aka Global Interpreter [...]

Think first, code last

By farcaller June 2nd, 2008

I’ve got to code some of the basic stuff for FOW (simple CGI client) and figured several bad things. I didn’t make enough research for RequestHandler so now I’m somewhat collapsing due to the fact I have parts of code that couldn’t be joined together. So, I’m back to pen, paper and UML.
Now, how is [...]

doYouReallyThinkThatSuchNameRocks?

By farcaller June 1st, 2008

While writing a parser for generic queries I’ve discovered a very useful method of NSString named stringByReplacingPercentEscapesUsingEncoding. Yeah, I can agree that such method name fully describes what it does, but geez, the source is so hard to read!
[d setValue:
[[s substringFromIndex:r.location+1] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]
forKey:
[[s substringToIndex:r.location] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding]
];