Archive for the ‘Uncategorized’ Category

Big refactoring is pending

By farcaller June 15th, 2009

FOW is officially suspended until I do some refactoring to code and make the repo more structured than it is now.

Primary repo switched to git

By farcaller December 22nd, 2008

Primary FOW repo has switched to git. You can see it via web here and clone from this url:
git://git.hackndev.com/farcaller/fow.git
Mercurial repo is kept in sync.

SQLitePersistentObjects are now working!

By farcaller December 18th, 2008

I’ve did a port of SQLitePersistentObjects to Cocotron, and now it’s part of libFOW (enabled via BUILD_SQLITEPO option).
Cocotron’s Obj-C runtime doesn’t support properties introspection, so for each descendant of SQLitePersistentObject you must define following selector:

+ (NSArray *)getPropertiesList;

It must return an array of all properties in form of NSArrays with two items: property name and encoded [...]

FOW, running on real server

By farcaller November 3rd, 2008

Today I’ve thought that FOW is mature enough to be tested on my linux hardware, so I’ve got updated Cocotron and built FOW on linux.
I have to say lots of thanks to Johannes Fortmann, who has been answering all my stupid questions about GCC, Obj-C runtime and Cocotron.
Now, it is time to really publish some [...]

GET and POST. Session stuff

By farcaller November 1st, 2008

I’ve just implemented nearly all the GET/POST support code in FOWRequest. New implementaion is working better, faster and more secure. All the thread handlers are now wrapped with @try/@catch so server is not going to die on runtime exceptions anymore.
Now working on sessions implementation. Still considering between memcached and sqlite3, but seems that latter is [...]

Notes on ORM and templates

By farcaller October 20th, 2008

As usual, not much news here, but I’m still working on FOW ;) Here goes the summary of last updates:

Got HTTP server from Google Toolbox. It might be useful for testing the code;
ActiveRecord looked too complex for me. You can use anything you want for your ORM, but seems that there will be only some DB [...]

Servers are not the same

By farcaller September 8th, 2008

Today was the day when I finally stopped tweaking ugly builtin Apache config and installed lighttpd on my OSX. Bad news, I’ve coded rather big part of FOWRequest based on mod_rewrite-specific variables!
It took some time to re-implement old functionality, unit tests are still broken, but now I consider some of the advertised functionality as useless. [...]

It’s working!

By farcaller August 29th, 2008

I’ve got the first completely working code!
Screenshot shows FOW running a simple fastcgi server on OSX with Apache2.
What’s implemented:

lots of FOWRequest stuff
URL resolver
CTemplate wrapper in objective-c
FastCGI server controller

I’ll see if this thing can work in linux/cocotron in the morning.
If somebody is interested, here’s the controller code for the page above:

@implementation Handler
 
- (FOWResponse *)handle:(FOWRequest *)rq
{
FOWResponse *rs [...]

Status update

By farcaller August 22nd, 2008

There wasn’t much activity here for a pretty long time. I’ve been working on several iPhone projects, mastering Objective-C magic. That was a nice time and I have somewhat changed the way I look at Objective-C. Anyways that are good news for FOW.
I’ve got Cocotron building natively on linux without major problems. The only thing [...]

Examining RoR

By farcaller July 6th, 2008

I’ve started coding Ruby on Rails today. This would be my first programming experience in RoR (and in Ruby at all). I have several webapps that I’ve been planning to code in Django, but I’ll give RoR a try to see other way of developing web applications (that might be implemented later in FOW).
Currently what [...]