Sunday, May 22, 2005

Must to Read -- Important List

The most destructive habit......................Worry The greatest Joy...............................Giving The greatest loss................Loss of self-respect The most satisfying work...............Helping others The ugliest personality trait.............Selfishness The greatest "shot in the arm"..........Encouragement The greatest problem to overcome.................Fear The most effective sleeping pill........ Peace of mind The most crippling failure disease............Excuses The most powerful force in life..................Love The most dangerous pariah..................A gossiper The world's most incredible computer........The brain The worst thing to be without................... Hope The deadliest weapon.......................The tongue The two most power-filled words............... "I Can" The greatest asset..............................Faith The most worthless emotion..................Self-pity The most beautiful attire......................SMILE! The most prized possession................Integrity The most powerful channel of communication.....Prayer The most contagious spirit.................Enthusiasm The most important thing in life..................GOD

Moral of the story: "Be sure there is a problem in the first place before working hard to solve one."

One fine day, a bus driver went to the bus garage, started his bus, and drove off along the route. No problems for the first few stops-a few people got on, a few got off, and things went generally well. At the next stop, however, a big hulk of a guy got on. Six feet eight, built like a wrestler, arms hanging down to the ground. He glared at the driver and said, "Big John doesn't pay!" and sat down at the back. Did I mention that the driver was five feet three, thin, and basically meek? Well, he was. Naturally, he didn't argue with Big John, but he wasn't happy about it. The next day the same thing happened-Big John got on again, made a show of refusing to pay, and sat down. And the next day, and the one after that, and so forth. This grated on the bus driver, who started losing sleep over the way Big John was taking advantage of him. Finally he could stand it no longer. He signed up for body building courses, karate, judo, and all that good stuff. By the end of the summer, he had become quite strong; what's more, he felt really good about himself. So on the next Monday, when Big John once again got on the bus and said, "Big John doesn't pay!," the driver stood up, glared back at the passenger, and screamed, "And why not?" With a surprised look on his face, Big John replied, "Big John has a bus pass." Moral of the story: "Be sure there is a problem in the first place before working hard to solve one."

Wedding Ceremony in Oman

This is the snap of wedding ceremony in Oman, which i attended two weeks before. Congratulations to Mr. Nizwan. May GOD bless the couple . Good to attend the ceremony. Posted by Hello

Saturday, May 21, 2005

My Walkthroughs

A nice article on Visual Basic.Net My Object. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnvs05/html/MyWalkthro.asp

Wednesday, May 18, 2005

Output a PDF file in browser (creates PDF on fly)

Like the way .Net makes easier to do playying with files & objects, the ASP.Net objects are now more cool. Can do a lot of things for you. In my project, i have an request to query a pdf file from a location and then to show it into a browser as a PDF file, infact making it downloadable for a user. The following code do this all. It first make a request via WebClient .Net Framework class to a URL where the pdf is present and then downloads the whole data in a byte array and then output it using Response object. Its quite simple, just follow the following code... In fact what i do, as i request the PDF file from a virtual directory which has integrated windows security, so in making the web client request i also passed the credential of a domain user. ________________________________________________________________ Dim remoteFilePath As String Dim credCachae As New CredentialCache Dim myWebClient As New WebClient ' PDF file path remoteFilePath = http://wajahatabbas.blogspot.com/billing/Bill.pdf" ' Domain user id and pwd Dim networkCredential As New networkCredential("username","password","domain") myWebClient.Credentials = networkCredential ' File saves in a byte array after downloading Dim FileBuffer As Byte() = myWebClient.DownloadData(remoteFilePath) ' Clearing the header content and headers Response.ClearContent() Response.ClearHeaders() ' The following makes a file to be a pdf one Response.ContentType = "application/pdf" 'The following makes the file downloadable, a dialouge will open which ask the user to save it Response.AddHeader("Content-Disposition", "attachment;filename=Billing.Pdf") 'This writes the whole file into the browser Response.BinaryWrite(FileBuffer) Response.Flush() Response.Close() _________________________________________________________________ This is how to create a pdf file on fly .........

Overriding the Asp.Net Validation file.

By default ASP.Net provides a number of validation controls which makes life easy for doing validation especially client side validation. What its actually do... all validations calls are delegated to a a file named as "WebUIValidation.js", this file is resides in the aspnet_client folder of your inetpub folder. This file contains all the validation java script methods, you can also add your validation java script methods here or can overide old methods. Well if you have designed some specfic file for validation and want that to be available for only your project, enter the following entry in your web config file (the path of the file), it will then call that file for validation, not then one provided by default. this is easy.....

Sunday, May 15, 2005

Good article on WSE

Some good article by Naseem bhai on a very forward looking subject "Customizing Authentication and Authorization in WSE Using AzMan". Congratulations Naseem bhai. Hope to see some more... soon.

Monday, May 09, 2005

Another Great Quote

Imam Ali (A.S) Said
Raise your children in a different way than you were, for they are born for a different age than you live.
Imam Ali Ibne Abi Talib (ASA)

Wednesday, May 04, 2005

Me.Beleive -- Service Orientation is to invade Software Future -- > Redefining the shape of Software World

Service Orientation is near to invade the Software Industry especially (OOP gonna become OOPS). Though SOA doesnt mean to expell OOP but its something more than that. A concept, a philosphy which will going to redefine the Software Industry future very soon, in fact the very first true implementation of SOA -- > Web Services is adding feul to the fire. The kind of architecture SOA based is not only loosely coupled by terminology. Its truly built on a world of independent protocols , no matter what kind of tool, language you use, every one can talk using Web Services. The dawn of JAVA with OOP in early 90's become the down of Java in late's 90 with the evolution of Services concept introduce by Microsoft .Net. And in fact after reading, knowing about the new Longhorn, Avalon, Indigo stuff which are truly an SOA implementation will let him miles miles ahead from others. That's why now every industry is trying to cash SOA. SOA makes so easy to independent every layer that it was not like before. Service orientation is on its way ... And Web Services is only the first baby of SOA. A lot and lot more yet to come which will totally reshape a new World of Software Industry (ME.BELEIVE ! What you ?).

Tuesday, May 03, 2005

Qais -- You makes me delighted

The day (November 28) i arrived here , start a new thread -- >search for an arabic song, i listen on tv. And how difficult for youto search a song, when you dont know the title and singer name (i know from last 4 months). But thanks to Asif bhai friend Qais. Yaar... he really help, i just draw the scenario (video) concept in his mind, and he recoginze that. And today he emailed me the link for download and from that time, this song is on my Windows Media Playlist (*repeat), and i dont know how long it will be repeated (one of the bad or good habit of mine is that if i like one thing, i keep on recurssion). If you want to listen this song just have a right click and save it as mp3. Hope you will enjoy this. http://www.mazajy.com/RiseAndShine/Full%20Albums/Ragheb%20Alama%20-%20El%20Hob%20El%20Kebeer/Ragheb%20Alameh%20-%20Naseeni%20El%20Donya.mp3 Singer name is Ragheb Alameh and song is Naseeni El Donya. Thank you Qais,

Sunday, May 01, 2005

ASP.Net -- Forms Authentication Makes your life more simple than the previous age of SESSIONS

Well its so easy to have form based authentication in ASP.Net instead of having sessions in your web app. What you have to do is easy , follow the steps below, where you get the login name and password and as you authenticate the user just put a line after that ____________________________________ System.Web.Security.FormsAuthentication.SetAuthCookie(txtLoginID.Text, False) ____________________________________ Now this ID will keep stored in the Forms (like the same manner we store values in session), you can always access the value if required, like as following, ____________________________________ context.User.Identity.Name ____________________________________ And to check the user has been authenitcated on different pages just paste the following code. ____________________________________ If Not Request.IsAuthenticated Then Response.Redirect("Login.aspx", False) End If ____________________________________ To log out the user, just paste the following code, ____________________________________ System.Web.Security.FormsAuthentication.SignOut() Response.Redirect("Login.aspx", False) ____________________________________ I hope you will find it quite easy to maintain the session using Forms Authentication instead of using Sessions. Enjoy .Netting,