When things go wrong as they sometimes will;
When the road you're trudging seems all uphill;
When the funds are low, and the debts are high;
And you want to smile, but you have to sigh;
When care is pressing you down a bit
Rest if you must, but don't you quit.
Success is failure turned inside out;
The silver tint of the clouds of doubt;
And you can never tell how close you are;
It may be near when it seems afar.
So, stick to the fight when you're hardest hit -
It's when things go wrong that you mustn't quit.
-- Anonymous
[Taken from Chadda]
June 28, 2010
April 13, 2010
Thought of the day...
"Youth is not a time of life; it is a state of mind. People grow old only by deserting their ideals and by outgrowing the consciousness of youth. Years wrinkle the skin, but to give up enthusiasm wrinkles the soul... You are as old as your doubt, your fear, your despair. The way to keep young is to keep your faith young. Keep your self-confidence young. Keep your hope young." - Dr. L.F. Phelan
April 05, 2010
Thought of the day...
"Life’s not about expecting, hoping and wishing, it's about doing, being and becoming. It's about the choices you've just made, and the ones you're about to make, it's about the things you choose to say - today. It's about what you're going to do after you finish reading this." ---Mike Dooley
March 20, 2010
Thought of the day...
"लहरों से डरकर नौका पार नहीं होती,
कोशिश करने वालों की कभी हार नहीं होती.
असफलता एक चुनौती है स्वीकार करो,
क्या कमी रह गयी देखो और सुधार करो.
जब तक न सफल हो नींद चैन को त्यागो तुम,
संघर्षों का मैदान छोड़ मत भागो तुम,
कुछ किये बिना ही जय-जयकार नहीं होती...
कोशिश करने वालों की कभी भी हार नहीं होती!"
-हरिवंश राय बच्चन
February 27, 2010
Thought of the day...
Being fearless isn't being 100% not fearful, it's being terrified but you jump anyway.
In similar words "Throw yourself to the wolves and learn from the bites.. ;-)"
In similar words "Throw yourself to the wolves and learn from the bites.. ;-)"
February 21, 2010
Patch for extjs ItemSelector
At work, extjs was the first javascript library we used. It provides very nice UI and probably has the best documentation and forum support available among other similar libraries. We modified its code to provide legend support which is nothing but title in the custom ItemSelector ui element. Below is the patch(not a big deal but i didn't want to loose this change so thought to post here).
And the result looks something like below
### Eclipse Workspace Patch 1.0 Index: webcontent/ext-3.0.0/examples/ux/ItemSelector.js =================================================================== --- webcontent/ext-3.0.0/examples/ux/ItemSelector.js (revision 230) +++ webcontent/ext-3.0.0/examples/ux/ItemSelector.js (working copy) @@ -41,6 +41,8 @@ delimiter:',', bodyStyle:null, border:false, + legendFrom: 'Available', + legentTo: 'Selected', defaultAutoCreate:{tag: "div"}, /** * @cfg {Array} multiselects An array of {@link Ext.ux.form.MultiSelect} config objects, with at least all required parameters (e.g., store) @@ -60,17 +62,17 @@ // Internal default configuration for both multiselects var msConfig = [{ - legend: 'Available', + legend: (this.legendFrom || 'Available'), draggable: true, droppable: true, - width: 100, - height: 100 + autoWidth: true, + autoHeight: true },{ - legend: 'Selected', + legend: (this.legendTo || 'Selected'), droppable: true, draggable: true, - width: 100, - height: 100 + autoWidth: true, + autoHeight: true }]; this.fromMultiselect = new Ext.ux.form.MultiSelect(Ext.applyIf(this.multiselects[0], msConfig[0]));
And the result looks something like below
February 17, 2010
Subscribe to:
Posts (Atom)