Web.config

IIS is a great server — writen especially for Windows, it functions exactly the way it’s meant to, ignoring the security breaches and high response time from the folks at Microsoft.

One thing that gets me annoyed about using PHP and IIs is the lack of support for url-rewriting. Except you’ve installed some third-party tool like ISAPI-Rewrite, you can’t do any rewriting except you’re running Asp.NET.

I feel this gives Asp.NET an unfair advantage because you can easily use the Web.config file to enable rewrite support for your application.

.htaccess on Apache however, is generic which leads me to believe that the Web.config file can serve as a .htaccess file on Windows — it’s simple logic. Instead of heading into IIS to set directory permissions, one simply needs to place a Web.config file with the required permissions inside the folder.

Maybe Apache’s spoiled me :cry:.

AJAX Conquered

I knew I was going to find a way out of the IE mess. A little skeptical about what I’d be able to find, I Googled reusing xmlhttprequest objects in ie and hit the jackpot on the first try. Here’s the solution, which I got from Pavan Keely’s blog.

Currently, my custom AJAX class works perfectly. The annoying aspect of my search was that Microsoft didn’t have anything on it — in fact, their documentation has been upgraded for IE 7 (which sports the same window.XMLHttpRequest object as Firefox).

Hopefully, as more and more developers move towards Web 2.0, the browsers will cooperate more and more. I know Firefox lifted the window.ActiveXObject(‘XMLHTTP’) concept from IE and made it into one of the core objects of the browser, but it’s still good. I’m impressed by Microsoft’s humility of late.

Stereotypes

My novel-reading career started with Dickens’ The Great Expectations when I was five. Since then, I’ve read more than 10,000 books. When I penned my first story at the age of eight, I had come to realize that stereotypes exist in the world of fiction — nothing in most fiction is true to life.

It seems, right from when D.H. Lawrence started writing books on sex, James Joyce started using the most famous four-letter expletive (fuck) and a host of other writers emerged, true literature went down the drain. I understand that they wanted to eliminate the prudishness in the English language, and their efforts were resisted — Lady Chatterly’s Lover was banned, for example — but might not present day writers be taking things a little too far?

In almost every best-seller of today, the hidden rule seems to be, a minimum of one sex scene. I’ve read most of Lawrence’s work and they look pretty prudish compared to what I read nowadays — I imagine writers like Harold Robbins’d get imprisoned in the Victorian era.

Getting back to content, I find more to read in Tolstoy’s War and Peace, Dostoevsky’s The Brothers Karamazov and in Shakespeare than in the average book. It seems the trend spread into the movies — James Bond is known as ‘Mr Kiss-kiss-bang-bang’ in some countries in Asia.

The Romance Novel

Before I digress, I’d take the classic example of the romance novel. Back when I was six years old, I knew almost all there was to know about some things. I’d sneak romance novels somewhere and read them — forbidden fruit tastes sweeter. With time, I came to hate romance novels, and with good reason.

‘Romance’ objectifies women in many ways that I find disgusting. Personally, I don’t believe love must include sex — in fact I believe it must exclude it — and I find it highly disturbing that romance novels are usually woven around a classic scenario:

A man meets a woman [almost always a virgin] — she’s always highly flustered when he’s around and tries to win his attention. Of course, both of them are good-looking (is it romance if they aren’t?). The man is usually very ‘experienced’ and frollicks with other women under his girl’s nose, making her jealous. If she dares try something like that, he raises hell — the girl’s supposed to stay chaste while he ‘enjoys’ himself.

Inevitably, he forces himself on her — at least that’s what it looks like to me — and one of them ends what could have otherwise landed them in bed. The very next encounter surely involves a sex scene — then they quarrel and separate. On reconcliation, they ‘live happily ever after.’

Suspense, Thrillers and Crime

I loved reading Alistair Maclean until I discovered Sidney Sheldon, then RObert Ludlum and finally, Tom Clancy.

When I look at ‘cases’, is it necessary for example, that there’s a match-making at the end? Must one of the guys be so macho and near-perfect at everything, in addition to being handsome? I read them because they offer lots o insight but I don’t like the relationship part — most writers simply follow trends.

My Resolution

I’ve been reading for twelve years in all now and writing for nine. What have I decided to do with my writing?

I’ve decided to start writing as the opposite sex — something that’s always appealed to me. The one thing I have to brushup on is emotions — women deal more with their feelings than men, who tend to hide theirs — I have to make the cross-over convincing enough for a girl.

Introducing heroines instead of macho heroes is going to be my method. NO sex scenes, no super-amazing feets. Just people going around their daily business as before.

Let’s just hope I get a sizable readership.

AJAX Nuances

I got a book on Ajax (Ajax in Action) some centuries ago (January) and lifted the custom class Eric Pascarello et al used. I discovered I didn’t like their logic very much and decided to write mine to make use of just one XMLHttpRequest object.

That was when I ran into a very annoying snag — IE (the most annoying browser on earth — try viewing the bottom of this page in IE). Internet Explorer, simply put, allowed me to make only one call with the Microsoft.ActiveXObject(‘XMLHTTP’) object, just once — after that, all calls failed to fire.

I tried every which way, because my previous model of ExamDirect created a new object per request in both IE and Firefox — which led to increasing memory. If I hadn’t used reusable DOM nodes, I’d have been a goner in terms of memory management. Now, I really am stumped, with no single idea how to work around it.

I’m sure I’ll be able to come up with something very soon, however.

Summer Blues

The semester’s ended, and I’m very bored. I was at the YMCA yesterday and my ping pong has definitely moved up towards my former level — Vito, the tricky Italian had some trouble holding me off my aggression (even with his crazy backhand).

I think summer’s going to be very boring. I suddenly discovered I don’t want to code anymore — Brett (my former roommate) didn’t like sleeping with lights or any sound so I couldn’t do much during the semester. I guess it’s rubbed off on me and I just can’t bring myself to code.

A Nairaland guy, Mutiu Okediran, wants me to design a WordPress template for him and Gbenga wants a Content Management System. I’d have recommended Xaraya but the learning curve is too steep (even for me) — much as I hae to say this, he’s a little of a beginner and I don’t want to give him something he’ll get frustrated with. I’ll evaluate Typo3 tonight and make a decision (hopefully).

On the other hand, if I can get a JoomlaPHPBB integration, it’d be heavenly — I just don’t like the Joomla-based forums (although I’ll tinker with them tonight). Mambo is off-limits — I don’t like the user-management in any way.

Speaking of this summer, I’ll be doing more of writing code (I’m working on the urge right now). I’m scared of cooking because I jave to survive entirely on my own now. I know I’m a very good cook, but I have only a microwave, no refridgerator and no stove. I’ll see if I can find someone to take me to Walmart tomorrow or next — now that Brett’s gone, there’s no one to drive me.

Forum Posting

I exist as two entities — Azuka in real life, and Zahymaka on the net. I like to feel I say only reasonable things in real life but sadly, that doesn’t happen to be what I do in cyberspace.

I decided to look at the various forums I’m on and cut down on the useless posts I’ve been making — Nairaland in particular. The useless post-making is what keeps me online most of the time anyway.

For the past few weeks I’ve stopped making posts in ‘Games’ or such things because they’re a plain bore. That’s me — redefining Zahymaka.