Twitter / kaizenx
Tuesday, December 25, 2007
Intermission.
It is a bittersweet moment in your life when you realise that you are a lot smarter and level headed than your parents.
Wednesday, December 5, 2007
The things a web developer must know
- At least one web programming language
- XML/XSL
- PL/SQL or T-SQL
- CSS
- Javascript
- XAML or Actionscript
- The life cycle of a page in the platform of your choice (IIS/.NET or LAMP)
Thursday, November 29, 2007
Schooling the shit out of me
Visual Studio 2008 and .NET 3.0/3.5 notwithstanding, I have been schooling the shit out of me.
It all started with XML/XSL, didn't know it at the beginning of the month, now I pretty much evangelize it since it solves one of my biggest problems (separation of content, presentation and function).
Then one of our partners in Bursapursuit needed a feed into our top 10 list everyday, I created a web service for them that returns a dataset, figured out how to consume it to test it and gave it to them.
Now, since one of our partners don't know how to consume a web service in a classic ASP environment, I am going to give them an RSS feed of the same thing. Hopefully they would know how to do this.
Because I really really do not want to write a custom program that churns out a top 10 everyday into say a flat XML file.
Then just the other day, one of our sites was behaving weirdly and it only happened under bad lag, I had to figure out how to overried the renderer on .NET to only render a page on a non postback and a non callback.
So in one month I managed the following:-
1) XML/XSL
2) Create/Consume web services
3) Override the renderer on .NET
4) LINQ on .NET 3.5
Cool huh?
It all started with XML/XSL, didn't know it at the beginning of the month, now I pretty much evangelize it since it solves one of my biggest problems (separation of content, presentation and function).
Then one of our partners in Bursapursuit needed a feed into our top 10 list everyday, I created a web service for them that returns a dataset, figured out how to consume it to test it and gave it to them.
Now, since one of our partners don't know how to consume a web service in a classic ASP environment, I am going to give them an RSS feed of the same thing. Hopefully they would know how to do this.
Because I really really do not want to write a custom program that churns out a top 10 everyday into say a flat XML file.
Then just the other day, one of our sites was behaving weirdly and it only happened under bad lag, I had to figure out how to overried the renderer on .NET to only render a page on a non postback and a non callback.
So in one month I managed the following:-
1) XML/XSL
2) Create/Consume web services
3) Override the renderer on .NET
4) LINQ on .NET 3.5
Cool huh?
Thursday, November 22, 2007
Good old fashioned programming
After almost 4 days of messing around with RSS and XSL, the solution to my problem was actually just some decent programming on C#.
I wanted to select only the first two posts of a blog from its RSS feed. So I loaded the RSS feed into a dataset in C#, then created a pagedatasource object and pumped in the defaultview of the dataset.
I then turned on paging and set pagesize to 2. The datalist that I was binding to the new pagedatasource didn't like it, throwing IXPathNavigable errors.
After a day of tinkering around with XPath and producing no results at all, I switched strategy and decided to just go play around with XSL and not using a pagedatasource at all since not playing around with pagedatasource seemed to work, I could at least bind the dataset to my datalist.
Yesterday and most of today, I messed around with XSL trying to do a for-loop from 1st row to 2nd row to show only the first two entries of the rss feed.
Either my understanding of XSL is flawed or the feed that was being sent was weird, but my endeavours at XSL failed to do anything useful.
Around 3 hours ago, I decided to approach it from a very fundamental level.
I could load it into a dataset and display the dataset.
What if I looped through the dataset and take the first two rows of the blog?
After 10 minutes of coding, I managed to extract anything I wanted out of the first 2 rows. I then made a datatable, a datarow and another dataset.
Binded the results of the first two rows of the original dataset to the datarows, and added the datatable to the new dataset and used that dataset instead as my datasource :P
Kinda of a roundabout way of doing it but I guess if it works it works lar.
I wanted to select only the first two posts of a blog from its RSS feed. So I loaded the RSS feed into a dataset in C#, then created a pagedatasource object and pumped in the defaultview of the dataset.
I then turned on paging and set pagesize to 2. The datalist that I was binding to the new pagedatasource didn't like it, throwing IXPathNavigable errors.
After a day of tinkering around with XPath and producing no results at all, I switched strategy and decided to just go play around with XSL and not using a pagedatasource at all since not playing around with pagedatasource seemed to work, I could at least bind the dataset to my datalist.
Yesterday and most of today, I messed around with XSL trying to do a for-loop from 1st row to 2nd row to show only the first two entries of the rss feed.
Either my understanding of XSL is flawed or the feed that was being sent was weird, but my endeavours at XSL failed to do anything useful.
Around 3 hours ago, I decided to approach it from a very fundamental level.
I could load it into a dataset and display the dataset.
What if I looped through the dataset and take the first two rows of the blog?
After 10 minutes of coding, I managed to extract anything I wanted out of the first 2 rows. I then made a datatable, a datarow and another dataset.
Binded the results of the first two rows of the original dataset to the datarows, and added the datatable to the new dataset and used that dataset instead as my datasource :P
Kinda of a roundabout way of doing it but I guess if it works it works lar.
Tuesday, November 20, 2007
The state of England in Malaysia..........is damn powderful
The state of English in Malaysia is horrendous compared to what it used to be.
Malaysians used to be proficient in English, but the standard of English has detiorated into a mockery of the language. Most Malaysians won't know grammar even if it walked up and smacked them right in the face. I believe that there is a market here for a Grammar Nazi, maybe a blog based Grammar Nazi. In return for making your blog read like an etonian writes it, I will be remunerated in suitable amounts of the green stuff.
Lolz, I really shouldn't be writing this at work when I have something tough to code up.
Malaysians used to be proficient in English, but the standard of English has detiorated into a mockery of the language. Most Malaysians won't know grammar even if it walked up and smacked them right in the face. I believe that there is a market here for a Grammar Nazi, maybe a blog based Grammar Nazi. In return for making your blog read like an etonian writes it, I will be remunerated in suitable amounts of the green stuff.
Lolz, I really shouldn't be writing this at work when I have something tough to code up.
Friday, November 9, 2007
Hellgate is disappointing.
I am very disappointed by Hellgate.
It at best is a 3.5 out of 5. I was expecting a full 5 out of 5 or at least 4.5 out of 5.
Sigh, the slowdown bug is pissing the shit out of me.
Maybe I should fire up Diablo 2, it might actually a better game?
And the intro videos were soooooooo good.
Look at it:-
It was so promising.
Sigh, now I guess I am waiting for Fallout 3 and Dawn of War: Soulstorm. Maybe its a sign of my age? Or the sheer amount of games I've played.
Most new games suck to me, cos anytime I look at any reputable top 10 or top 100 list, I would have played almost all of them!
It at best is a 3.5 out of 5. I was expecting a full 5 out of 5 or at least 4.5 out of 5.
Sigh, the slowdown bug is pissing the shit out of me.
Maybe I should fire up Diablo 2, it might actually a better game?
And the intro videos were soooooooo good.
Look at it:-
It was so promising.
Sigh, now I guess I am waiting for Fallout 3 and Dawn of War: Soulstorm. Maybe its a sign of my age? Or the sheer amount of games I've played.
Most new games suck to me, cos anytime I look at any reputable top 10 or top 100 list, I would have played almost all of them!
Monday, October 22, 2007
I am a sentimental fool
Dear Blog,
I am a sentimental fool.
Earlier this year, around June IIRC there was this old dude who temp-ed(tempted?) with us. He was this nice old guy who probably thought we were all insane.
After a while of working with him, what occured to me was, I did not want to be him. Here he was this old guy who still had to work who wasn't shit ass rich and wasn't having the time of his life!
And he was out of date! Maybe I will never be like that because I am such a competitive ass always wanting and needing to win (in my blood? since warrior genes from warrior family...).
If that wasn't enough warning, today was like really writing on the wall, I saw this guy who was still an analyst in MS. It was scary, it was like looking at myself 20 years from now.
I think I am an ass because everytime I see non-rich old men, I think of myself and go "FUCK I BETTER DO SOMETHING ABOUT IT".
I am a sentimental fool.
Earlier this year, around June IIRC there was this old dude who temp-ed(tempted?) with us. He was this nice old guy who probably thought we were all insane.
After a while of working with him, what occured to me was, I did not want to be him. Here he was this old guy who still had to work who wasn't shit ass rich and wasn't having the time of his life!
And he was out of date! Maybe I will never be like that because I am such a competitive ass always wanting and needing to win (in my blood? since warrior genes from warrior family...).
If that wasn't enough warning, today was like really writing on the wall, I saw this guy who was still an analyst in MS. It was scary, it was like looking at myself 20 years from now.
I think I am an ass because everytime I see non-rich old men, I think of myself and go "FUCK I BETTER DO SOMETHING ABOUT IT".
Wednesday, September 5, 2007
Working on Your Girlfriend's birthday sucks
I am working right now in the office at 10:41 PM Malaysian time (GMT +8) and it is my girlfriend's birthday, I have never missed it and I have always done something special for her.
Today, I am coding up yet another web app for the powers that be.
I am NOT a happy hamster!
That is why I am quitting.
This job has made me miss so many special moments, how many times is someone going to turn 25? ONCE!
So that is why I am going to resign! Not to mention that the pay sucks and the hours suck and I am not doing anything important, just churning out web apps!
That sucks big time! I want to make myself richer, not a bunch of old farts richer!
Today, I am coding up yet another web app for the powers that be.
I am NOT a happy hamster!
That is why I am quitting.
This job has made me miss so many special moments, how many times is someone going to turn 25? ONCE!
So that is why I am going to resign! Not to mention that the pay sucks and the hours suck and I am not doing anything important, just churning out web apps!
That sucks big time! I want to make myself richer, not a bunch of old farts richer!
Subscribe to:
Posts (Atom)