Monday, April 19, 2010

P B Systems : My Team

Word I Use to Describe my Team

"Priceless…"


The final word I would use to describe the Team at P B Systems India Pvt Ltd is Priceless.

1. They make me more successful than I ever could be on my own. Everyday, I am all too aware that my success as a leader, speaker, pastor, & writer is directly related to the strength of our staff. They truly set the stage for me to play to my strengths and be used by God to impact so many lives. For that I’m forever grateful.

2. They make my dreams a Reality. I am humbled to see so many people who willingly serve, sacrifice, give and commit in order that the dreams and visions God has placed in my heart can become a reality. I am so grateful, and I never want to take that for granted.

3. They prefer me, honor me and submit to my leadership in an unbelievable way! Those things are truly beyond measure for me. I watch my friends, choose everyday to serve with me as their boss and leader. Words truly can’t describe the gratitude I feel in my heart for them.





Thanks team for giving me the ability to live the dream, everyday. There’s no one else on the planet I would rather go to work with each day! You guys are the best!

I love you guys!!!

Friday, April 16, 2010

Learn Arabic Online - Free Arabic Course and materials

Asalamalikum Brothers,

I found this site to be very much useful to me. Inshallah i wish this site will be useful to those who want to learn Arabic.

I wish all the best, to the people who are doing this great job and may allah reward them the best for their work.

Learn Arabic Online(madinaharabic.com)

This website is a dedicated free resource to students seeking to learn Arabic – beginner to advanced level.

The website includes:

* Arabic Reading Course (Beginners)
* Arabic Language Course (100 Lessons)
* Vocabulary Flashcards to help memorise Arabic words and meanings
* Discussion Forum – ask any questions where you are confused and the community or moderator will answer your questions.
* Bookstore – You can order any materials that you require – we stock a fairly comprehensive set of Arabic Language Books.
* Interactive Questions including multiple choice, virtual Arabic keyboard and many other question types to test your understanding throughout lessons.
* Many more features and tools to help learn the language (already listed in the news section).

Sorting in datagrid in Silverlight for custom columns - SortMemberPath

SortMemberPath :

Sometimes the property that your column is bound to is not always the one that you want it to sort by.
SortMemberPath is on DataGridColumn, you can use this beyond just template columns and can actually have a column bound to one property, but sort based on another property.

<data:datagridtemplatecolumn header="Start Date" width="110" sortmemberpath="RoomEffectiveOn"></data:datagridtemplatecolumn>

Wednesday, April 14, 2010

Modal dialogs causes loss of Session in I.E.

If we open a modal dialog using the javascript command
window.showModalDialog() we loose the current Session if a new window is
opend from within the modal one (using the window.open() method). The
"funny" thing is that this only occurs if another instance of IE has been
opend prior to the one serving the dialog.

Let me give an example:
1.Open an instance of IE and navigate to www.google.com.
2.Open a new instance of IE and navigate to the ASP.NET page (served through an IIS).
3.Click the link "1. Open new modal dialog", and a modal dialog containing the
page is displayed.
4.Click the link "2. Open new window" from the new modal dialog and a new
window
containing the page is displayed.
5.Notice that a new session is used when displaying the last page/window.

Solution :

As for the Session Lost problem, it does be a known issue of the IE browser. When we open a window(via window.open) from a ModalDialog page, the sessionId won't be the same as its opener page but is the same with the page in the first instance of IE.
This is caused by the ModelDialog has broken the SessionId's integrity.
This issue haven't been fixed yet, so currently we have to avoid open new
window from ModalDialog page.

SQL Server DB : Column concatination using XML ( without UPDATE)

Source Code :

DECLARE @Sample TABLE (FirstName SYSNAME, LastName SYSNAME, MemberNumber INT, AccountDesc SYSNAME, AccountBalance MONEY)
INSERT @Sample
SELECT 'Samiuddin', 'Mohammed', 1000, 'Acct2', 25.25 UNION ALL
SELECT 'Samiuddin', 'Mohammed', 1000, 'Acct3', 36.98 UNION ALL
SELECT 'Faruq', 'Shaik', 1001, 'Acct4', 84.27 UNION ALL
SELECT 'Faruq', 'Shaik', 1001, 'Acct2', 25.25 UNION ALL
SELECT 'Faruq', 'Shaik', 1001, 'Acct3', 36.98 UNION ALL
SELECT 'Faruq', 'Shaik', 1001, 'Acct4', 84.27

SELECT * FROM @Sample
-- Show the expected output
SELECT DISTINCT s1.FirstName,
s1.LastName,
s1.MemberNumber,
(SELECT TOP 100 PERCENT ';' + s2.AccountDesc + ' ' + CONVERT(VARCHAR, s2.AccountBalance, 0) FROM @Sample AS s2 WHERE s2.MemberNumber = s1.MemberNumber ORDER BY s2.AccountDesc FOR XML PATH('')) AS Accounts
FROM @Sample AS s1
ORDER BY s1.MemberNumber

Real time joke -- may be this also happened with you!

You can't stop laughing... Really nice one.. Enjoy!

Principal to student..." I saw u yesterday rotating near girls hostel pulling cigarette... ? "
************ ********* ***
Class teacher once said :
" pick up the paper and fall in the dustbin!!!"
************ ********* ***
once Hindi teacher said...."I'm going out of the world to America.."
************ ********* ***
"..DON'T TRY TO TALK IN FRONT OF MY BACK.."
************ ********* ***
don't. laugh at the back benches...otherwise teeth and all will be fallen down.....
************ ********* ***
it was very hot in the afternoon when the teacher entered.. She tried to switch the fan on, but there was some problem. and then she said
" why is fan not oning" (ing form of on)
************ ********* ***
teacher in a furious mood...
write down ur name and father of ur name!!
************ ********* ***
"shhh... quiet... the principal is revolving around college"
************ ********* ***
My manager started like this
"Hi, I am Madhu, Married with two kids"
************ ********* ***
"I'll illustrate what i have in my mind" said the professor and erased the board
************ ********* ***
"will u hang that calendar or else I'll HANG MYSELF"
************ ********* ***
LIBRARIAN SCOLDE ," IF U WILL TALK AGAIN , I WILL KNEEL DOWN OUTSIDE"
************ ********* ***
Chemistry HOD comes and tells us...
"My aim is to study my son and marry my daughter"
************ ********* ***
Tomorrow call ur parents especially mother and father
************ ********* ***
"why are you looking at the monkeys outside when i am in the class?!"
************ ********* ***
Lab assistant said this when my friend wrote wrong code..
"I understand. You understand. Computer how understand??
************ ********* ***
Seeing the principal passing by, the teacher told the noisy class..
"Keep quiet, the principal has passed away"

Please do share some more!

The Socrates Triple Filter Test

In ancient Greece, Socrates was reputed to hold knowledge in high esteem.

One day an acquaintance met the great philosopher and said, "Do you know what I just heard about your friend?"

"Hold on a minute," Socrates replied. "Before telling me anything, I'd like you to pass a little Triple Filter Test."

"Triple filter?"

"That's right," Socrates continued. "Before you talk to me about my friend, it might be a good idea to take a moment and filter what you're going to say. That's why I call it the triple filter test."

"The first filter is TRUTH. Have you made absolutely sure that what you are about to tell me is true?"
"No," the man said, "actually I just heard about it and..."
"All right," said Socrates. "So you don't really know if it's true or not.

Now let's try the second filter, the filter of GOODNESS. Is what you are about to tell me about my friend something good?"
"No, on the contrary..."
"So," Socrates continued, "you want to tell me something bad about him, but you're not certain it's true. You may still pass the test though, because there's one filter left: the filter of USEFULNESS. Is what you want to tell me about my friend going to be useful to me?"

"No, not really."

"Well," concluded Socrates, "If what you want to tell me is neither true nor good nor even useful, then why tell it to me at all?"

????!!!!???!!!!

MORAL

Listen to loose talks/comments only if they pass any one of the above 3 tests

SIDE EFFECTS of working in IT sector!!! Hilarious… …

Bhavik
I once went out to the market wearing my ID card and did not realize till my friend told me why I was wearing it !!!!

Ashok
few days back I slept at 11:30 in the ni8 and woke up in the morning at 7:00 and suddenly thought that I haven't completed 9.15 hours and laughed at myself when I realized about that.

Jyotsna
One from me too...
Just after our training completion in Mysore Dc and postings to Pune, me and my friends went out for dinner in one of the best restaurants..
And as I finished.. I started walking towards the Basin with plates in my hand.. :)

Abhijeet
Just to add...
Once I was on call with my father and mom was not around. I went on to ask, "why is she not attending the status call?"

Anup
I don't login to orkut, yahoo, gmail, youtube, etc.. at my personal internet connection at home... thinking it will be blocked any way.
Till I realize - I am at home.

Rohit
Yeah sometimes it do happens with me also............while writing personal mails also.........I jus use the way as if I am writing to onsite or some senior person........
Just forget that we are just mailing our friends..............
And keeping hands in front of tap for waiting water to drop by itself is very frequent with me...............I just forget that we have to turn on and off the tap...........

Nidhi
Awesome!!
Once after talking to one of my friend. I ended the conversation saying ..." Ok bye...in case of any issues will call u back"
(Hilarious!)

Nisha
Sometimes when I mistakenly delete a message
from my mobile, I hope for a second, maybe its in the recycle bin

Farina
I was about to throw my hanky into the bin after drying my hand.

Bhabani
Once I was flashing my ID card instead of unlocking the door with the keys.

Nisha
Kinda a same experience for me too..
I gave my office mail id and pwd to access Gmail and wondered when did they become invalid???

Sandy
I have a experience to share tooo .. I was earlier working at the back office of an international Bank. We used to 'dispatch' lot of Credit / Debit cards and statements for the customers and track its delivery later.
Once my granma was admitted in a hospital, my team mate once casually asked me " howz ur granma doing now ? still in hospital ? " ... and i replied to her " She is better now , she will dispatched from the hospital tomorrow !"
This was followed by a loud laugh in the entire bay !

Sandeep
Once I went to a pharmacy n asked for a tab....pharmacist asked whr I want 250mg r 500mg.....suddenly I replied as 256mg...lol....thank god he didn't noticed tht....

Ashwin
Me getting a thought of doing an Alt+Tab while switching from a news channel to the DVD while watching TV.


Vidyarthi

And I - after a forty hour marathon in Bhubaneshwar with Powerbuilder, decided to take a break and went to a movie. In the middle of the movie, when I wanted to check the time, I kept repeatedly glancing at the bottom right corner of the silver screen!

Venu
Few of my friends and myself decided to go out for dinner. The place wasn't fixed yet. I said we shall decide it "run time"


Krishna

When I went to a movie theatre from office directly.. I showed the guy at the entrance my ID card and walked in... he had to call me back asking the ticket...

Rama
One late night when I went home after work, I was trying to flash my id card to open the lock and only after few secs, I realised what i'm trying to do

Sridhar
Once I went to have juice at the local juice vendor and innocuously asked him whether he had a plain 'version' of lemonade.

Arun
Few years back my shogun engine stopped on Bangalore MG Road as the petrol came to reserve. I told my friend I need to restart my bike!

Satya
The other day I was hearing one guy talking of a "Standalone" house.. when he was actually intending a independent house... Poor broker shuould have tough time trying to find a " Alone house standing in a huge empty area... " don't know what interpretations the guy must have made.

Jay
Few weeks back, Instead of my patient code I said my employee code to get an appointment with doctor

Disabled right click options for this window - compatible with almost all browsers(I.E., Firefox, Netscape, Safari.)

If you have quality content on your webpage and want to prevent people stealing your resources, you can add this script to disable the right-mouse click. This does not assure complete safety for your resources (there is always a way to copy them), but it is better than nothing. :)

Source Code:
/*javascript functions:**/
PopUpMsg = "The right click options are disabled for this window";
isIE = document.all;
isNN = !document.all && document.getElementById;
isN4 = document.layers;

if (isIE || isNN) {
document.oncontextmenu = checkM;
}
else {
document.captureEvents(Event.MOUSEDOWN || Event.MOUSEUP);
document.onmousedown = checkV;
}

function checkM(e) {
if (isN4) {
if (e.which == 2 || e.which == 3) {
alert(PopUpMsg);
return false;
}
}
else {
alert(PopUpMsg);
return false;
}
}

Tuesday, April 13, 2010

Logout Problem in Authentication service

Problem with AuthService.Logout() Method with ria services.

Error: Message: “Object reference not set to an instance of an object”
Stack trace:
at System.Web.Ria.DataServiceQueryRequest.GetOrderedQueryParts(HttpRequest request)
at System.Web.Ria.DataServiceQueryRequest.Invoke(DomainService domainService)
at System.Web.Ria.DataService.System.Web.IHttpHandler.ProcessRequest(HttpContext contex

Solution:

This issue is solved by using the latest WCF Ria services

Silverlight buttons are not working inside an IFrame in firefox 3.6


Silverlight control was hosted on a page, and the page was being called in an IFrame in another application. In this case, the hyperlinks and buttons in Silverlight area inside IFrame was not working in firefox 3.6 although it was working fine in Internet Explorer,

simply changed the windowless property of Object tag to false, and the hyperlinks and buttons in Silverlight inside IFrame will working properly.