Wednesday, April 25, 2012

The confinements of Dreamweaver Templates


The out of the box Dreamweaver Templating is being headache for the developer. (still has been used  widely )..argggg....

I Started working with this templating and was frustrated later on after being faced up with drawbacks and limitations of  DWT’s. Here we go with few...

Rigidity :
I wanted to format the Date, end up writing TBB to handle it.

Conditional Statements :
Yep, there is IF but unfortunately there is  no ELSE statement. (and I am not Lying....)
You have to write TemplateIf multiple times using negation.

TemplateRepeatIndex :
We can not get the outer TemplateRepeatIndex value while looping through Components array or Fields

Nested Repeat Regions :
Most of the time you want to use fields from Outer loop inside inner loop (a big NO...!!! U can not do that)
Accessing fields from an outer repeat region is impossible.

ComponentLink Fields :
We just can’t access the fields of a Component from a ComponentLink field. Again end up either having a TBB that pushes these values to the package, or by use  Dreamweaver Get Extensions.

and i started liking Compound Templating...oh yeah !!!!!



Friday, March 30, 2012

Brilliant students of class...


Once upon a time, there were five brilliant students in a class of a boys' school.
1. An absolute genius, who topped every course by the sheer force of his talent, hard work and commitment. He also took part in dramas, debates etc. and earned a lot of fame. He was an all round student.
2. The class bully, or 'dada'. In the inter-school fights, he would rally his troups and exhort them to fight till they won. He transformed his school, which till then was full of docile students, into one of outspoken fighters who could do a bit more than just study and get marks for themselves.
3. The most studious, most good boy in the class who ate on time, slept on time and woke up on time every morning. He was the darling of every teacher as they could get anything done from him as long as it was in the interest of the school. 
4. The loner, who would sit in a corner, bored with all that was happening around him, occasionally writing a poem or two, and humming a beautiful tune to himself. Only when the toughest of courses came would he wake up, and lo and behold, would top them by his sheer artistry.
5. The mastmaula bully who was a very strong fighter. He would beat up any boy, however well trained in foreign martial arts, by the dint of his desi methods. He would also apply the same methods to courses and would at times crack the most difficult of courses by the most desi of methods.Not very studious, but brilliant nevertheless. 
A group of students so brilliant never had been in a school before them, and never came after them


.

Saturday, June 11, 2011

Let it go...


Someone said... 

"Wallets are a lot like girls. You really have to take good care of, because if you won't, something might happen"... 

I know what he means. I just lost a wallet, and I just lost a girl. You know, it's the exact same thing. One day, you just realize it's gone. You try to look for it everywhere, even going back to the places where you could have lost it. You think, and you think hard, only to come upon a grim realization: it's really gone.

Of course, you can hold on to some hope. After all, there have been some very, very lucky (blessed?) people who get it back. Perhaps you could become one of those people. You sit home and you hope that someone would call, and that you would get it back. But then, some time passes, and you realize that it's still gone, and you realize that it's time to let go.

The first few days, you turn to your friends for support. Some tell you you'll be ok, some tell you that it was your fault and that you should have been more careful, and some tell you about their own experiences.
They give you all sorts of advice, none you haven't heard before. You then go out to find a new wallet, only to realize that you don't really want a new one. You want the old one that you lost. No, you don't want all these better-looking wallets, you want yours, because of how comfortable it is, because of all the cards and pictures and other stuff in it.


You go out and carry on without a wallet, keeping your money in your pocket instead. You throw away stuff that you would have held on to if you had your old wallet. And then, finally, you find a new wallet you like and settle in.
You then start filling your new wallet, little by little. It still doesn't feel as comfortable as the old one, but it's getting there. Then you start putting in cards and pictures and other important stuff in the wallet. Soon enough, there's as much stuff in your new wallet as the old one. And then, after some time, you feel as comfortable with your new wallet.

And then you realize that you've almost forgotten you ever had your old wallet. Sure, you still remember most of the stuff you lost on that wallet. But then again, you don't remember the feeling of hurt that you felt when you lost it.
That's because that wallet you lost is no longer your wallet. You're no longer holding on. This new wallet you're holding, it has all the important cards and pictures and stuff that you need. This is your wallet. And this time, you tell yourself, you're never losing this one.

Monday, August 23, 2010

My Friend!


I would love to start this “buzz” with the one liner…
“Friends are the siblings god forgot to give us.”
The line inspired me a lot that I decided to devote this long piece of article to one ma close friend some where out there in this world...!!
We all remember our friends at every stage, no matter whether they have left us because of destiny, their ego, some misunderstanding, loss of contact, or no matter what the reason is,we still remember, care, and miss them in our lives… Don’t we?
So tell me? Why do friends become so important in our life that sometimes we just can’t stop thinking about them, no matter how deeply we try to avoid them?
And the fact is that the avoidance is just TEMPORARY, but our ego stretches it like those two corners of a lake that are never destined to meet!
Okay, I accept it was my mistake to lose that particular special friend in my life
and Yes! I regret showing too much ego towards that friend,
but does this not become his responsibility to come back to me, hug me and say “Its okay, forget everything, LETS BE FRIENDS AGAIN!
I am dying to hear these words and I know I would never hear them in my life now, because this modern society has advanced in such a way that people have started giving importance to personal egos more than friendship.
Why should I message him first, why should I call him, why it’s me who always initiates the conversation? Come on guys, why can’t we just forget these stupid talks and keep the meaning of ‘friendship’ as simple as its existence?
When i just think for a second, those wonderful moments spent with him...
the moments when we spent chatting at my favorite five gardens...
those haunting roaming at night,
Police ka Danda at Girgaon Chaupaty @ 3am
"ABBEY BUS STOP....!!! @ 2am, nariman point....
N few very interesting secretes of each others life....
Full nite phone calls
talking abt r gals...
teasing that nerd in the class who always used to raise his arm at the mention of any question, bunking lectures,
challenges abt who will make out fast in class tests
then calls b4 exam nite asking KITNA hua??? Mer toh Lag Padi hai yar...kuch imp questions bata de plz...nahi toh fail ho jaunga (tho he has already done with studies)...
going for an out-of-the-town trip specially the days spent in GOA....DCH moments..!!
lying to parents just for my dear friend,
disturbing the friends during their private dates,
waiting for the clock to buzz 12am…
just to wish him Happy Birthday, trust me, the moments are endless…

And I know that these moments won’t come back.
But was it really a mistake that we are no longer friends?
Trust me, at some point or the other,
we need a friend who could tell what’s going in our mind, just by looking at our very face..
A friend who could understand that when I say SORRY, I mean that it’s not my sin idiot, it’s yours! Just accept it, I would feel better…
A friend who could understand me that when I say Goodnight, I intend to mean that don’t switch your mobile silly, I want to talk more, all night…
These are exceptions… and the one who understand these little things in life is called FRIEND!
I hope every one of you is blessed with a minimum of one such friend in your life. And if you have already found one, make sure that you don’t let the demons of ego and misunderstanding come into sweet relationship! Yes, You Are My Friend!