Probably the least well (clear) documented aspects of C# , so i decided to list a few basics
var f;
if (a == b)
f = DoThis()
else
f = DoThat();
Ternery ->
f = a == b ? doThis() : DoThat()
var f;
if (a != null)
f = DoThis()
else
f = null;
Ternery ->
f = a && DoThis() ;
var f;
if (f == null)
f = DoThis()
Ternery ->
f ?? DoThis() ;
Philosophy, History, Religion and general ramblings (thoughts) of a Mad man
Search This Blog
Monday, 25 July 2011
wcf/webservice installation notes
1.Create application under the default website
2.Create new apppool and select .net framework version 4
3. Assign app pool in website->advance settings -> select pool
4. In case IIS installated after the Visual Studio installed, then register asp.net to IIS by following command.
aspnet_regiis.ex -i
5. Error : Could Not Load Type ‘System.ServiceModel.Activation.HttpModule’
Solution: aspnet_regiis.exe -iru
6. Errors: handlers missing or module are missing
Solution: Following command will enable the ports for diffirent bindings.
CD c:\windows\Microsoft.Net\Framework\v3.0\Windows Communication Foundation\
ServiceModelReg -i
/*************************************************************************************/
Web Service hosting on IIS7
/*************************************************************************************/
1. Create webservice and test locally
2. Publish webservice to wwwroot (or) any publishing folder
3. Go to IIS manager
4. Create new WebSite and assign the physical path of webservice
5. Create new Application pool and assign framework as "Classic .NET AppPool".
6. Assign this app pool to website
7. Click on IIS server root level and click on the feature called "ISAPI and CGI Restrictions".
8. Set Allow for "ASP.NET V4.30319 (32bit)".
9. Browse the content and view "asmx" file.
Reference: http://geekswithblogs.net/chenl/archive/2010/11/19/http-error-404.2---not-found-the-page-you-are.aspx
2.Create new apppool and select .net framework version 4
3. Assign app pool in website->advance settings -> select pool
4. In case IIS installated after the Visual Studio installed, then register asp.net to IIS by following command.
aspnet_regiis.ex -i
5. Error : Could Not Load Type ‘System.ServiceModel.Activation.HttpModule’
Solution: aspnet_regiis.exe -iru
6. Errors: handlers missing or module are missing
Solution: Following command will enable the ports for diffirent bindings.
CD c:\windows\Microsoft.Net\Framework\v3.0\Windows Communication Foundation\
ServiceModelReg -i
/*************************************************************************************/
Web Service hosting on IIS7
/*************************************************************************************/
1. Create webservice and test locally
2. Publish webservice to wwwroot (or) any publishing folder
3. Go to IIS manager
4. Create new WebSite and assign the physical path of webservice
5. Create new Application pool and assign framework as "Classic .NET AppPool".
6. Assign this app pool to website
7. Click on IIS server root level and click on the feature called "ISAPI and CGI Restrictions".
8. Set Allow for "ASP.NET V4.30319 (32bit)".
9. Browse the content and view "asmx" file.
Reference: http://geekswithblogs.net/chenl/archive/2010/11/19/http-error-404.2---not-found-the-page-you-are.aspx
Sunday, 17 July 2011
Our indebtedness to the Islamic civilization (HP Chief)
A great summary from an excerpt of a speech .... i thought it was well summarized and to the point ....
We are Often Unaware of our Indebtedness to the Islamic Civilization, says Hewlett Packard Chief
POSTED: 27 RAJAB 1422, 15 OCTOBER 2001
Carly Fiorina, the CEO of Hewlett Packard, recently gave a speech defining the relevance of leadership in today's world. Here is the quote from the final part of her speech.
"I'll end by telling a story.
There was once a civilization that was the greatest in the world.
It was able to create a continental super-state that stretched from ocean to ocean, and from northern climes to tropics and deserts. Within its dominion lived hundreds of millions of people, of different creeds and ethnic origins.
One of its languages became the universal language of much of the world, the bridge between the peoples of a hundred lands. Its armies were made up of people of many nationalities, and its military protection allowed a degree of peace and prosperity that had never been known. The reach of this civilization's commerce extended from Latin America to China, and everywhere in between.
And this civilization was driven more than anything, by invention. Its architects designed buildings that defied gravity. Its mathematicians created the algebra and algorithms that would enable the building of computers, and the creation of encryption. Its doctors examined the human body, and found new cures for disease. Its astronomers looked into the heavens, named the stars, and paved the way for space travel and exploration.
Its writers created thousands of stories. Stories of courage, romance and magic. Its poets wrote of love, when others before them were too steeped in fear to think of such things.
When other nations were afraid of ideas, this civilization thrived on them, and kept them alive. When censors threatened to wipe out knowledge from past civilizations, this civilization kept the knowledge alive, and passed it on to others.
While modern Western civilization shares many of these traits, the civilization I'm talking about was the Islamic world from the year 800 to 1600, which included the Ottoman Empire and the courts of Baghdad, Damascus and Cairo, and enlightened rulers like Suleiman the Magnificent.
Although we are often unaware of our indebtedness to this other civilization, its gifts are very much a part of our heritage. The technology industry would not exist without the contributions of Arab mathematicians. Sufi poet-philosophers like Rumi challenged our notions of self and truth. Leaders like Suleiman contributed to our notions of tolerance and civic leadership.
And perhaps we can learn a lesson from his example: It was leadership based on meritocracy, not inheritance. It was leadership that harnessed the full capabilities of a very diverse population–that included Christianity, Islamic, and Jewish traditions.
This kind of enlightened leadership — leadership that nurtured culture, sustainability, diversity and courage — led to 800 years of invention and prosperity.
In dark and serious times like this, we must affirm our commitment to building societies and institutions that aspire to this kind of greatness. More than ever, we must focus on the importance of leadership– bold acts of leadership and decidedly personal acts of leadership."
For the full speech, please go to:
http://www.hp.com/hpinfo/execteam/speeches/fiorina/minnesota01.htm
We are Often Unaware of our Indebtedness to the Islamic Civilization, says Hewlett Packard Chief
POSTED: 27 RAJAB 1422, 15 OCTOBER 2001
Carly Fiorina, the CEO of Hewlett Packard, recently gave a speech defining the relevance of leadership in today's world. Here is the quote from the final part of her speech.
"I'll end by telling a story.
There was once a civilization that was the greatest in the world.
It was able to create a continental super-state that stretched from ocean to ocean, and from northern climes to tropics and deserts. Within its dominion lived hundreds of millions of people, of different creeds and ethnic origins.
One of its languages became the universal language of much of the world, the bridge between the peoples of a hundred lands. Its armies were made up of people of many nationalities, and its military protection allowed a degree of peace and prosperity that had never been known. The reach of this civilization's commerce extended from Latin America to China, and everywhere in between.
And this civilization was driven more than anything, by invention. Its architects designed buildings that defied gravity. Its mathematicians created the algebra and algorithms that would enable the building of computers, and the creation of encryption. Its doctors examined the human body, and found new cures for disease. Its astronomers looked into the heavens, named the stars, and paved the way for space travel and exploration.
Its writers created thousands of stories. Stories of courage, romance and magic. Its poets wrote of love, when others before them were too steeped in fear to think of such things.
When other nations were afraid of ideas, this civilization thrived on them, and kept them alive. When censors threatened to wipe out knowledge from past civilizations, this civilization kept the knowledge alive, and passed it on to others.
While modern Western civilization shares many of these traits, the civilization I'm talking about was the Islamic world from the year 800 to 1600, which included the Ottoman Empire and the courts of Baghdad, Damascus and Cairo, and enlightened rulers like Suleiman the Magnificent.
Although we are often unaware of our indebtedness to this other civilization, its gifts are very much a part of our heritage. The technology industry would not exist without the contributions of Arab mathematicians. Sufi poet-philosophers like Rumi challenged our notions of self and truth. Leaders like Suleiman contributed to our notions of tolerance and civic leadership.
And perhaps we can learn a lesson from his example: It was leadership based on meritocracy, not inheritance. It was leadership that harnessed the full capabilities of a very diverse population–that included Christianity, Islamic, and Jewish traditions.
This kind of enlightened leadership — leadership that nurtured culture, sustainability, diversity and courage — led to 800 years of invention and prosperity.
In dark and serious times like this, we must affirm our commitment to building societies and institutions that aspire to this kind of greatness. More than ever, we must focus on the importance of leadership– bold acts of leadership and decidedly personal acts of leadership."
For the full speech, please go to:
http://www.hp.com/hpinfo/execteam/speeches/fiorina/minnesota01.htm
Subscribe to:
Posts (Atom)
Popular Posts
-
The Iranians, i know what you are thinking, Iran, Persia etc. but the Iranian ethnicity at least as far as etno-linguistics is concerned...
-
http://livingunderdrones.org/
-
Civilization has probably for the first time in history entered a Globalized period. In ancient times and until not long before thought an...
-
On the passers by Here the call of the Muazzin People deafened to its Magnificence Cannot understands its purity Cannot comprehend its meani...
-
Many Atheists make a mistake in how they perceive a Muslim in their belief ... And this has been encountered by me many a time ... 1) They t...
-
in the secular world empirical science has the taken precedence over logic in all forms in conducting life. It is placed at such a high pede...
-
Ever since the greek democraces created the idea of democracy it has been heralded by european civilization as the end of all systems and wa...
-
One of Dawkins main argument in his "God Delusion" is that being an Atheist makes one appreciate living, the here and now, in one...
-
Farabi is generally known to be the "Second Teacher", after the first teacher, Aristotle. Farabi's extensive knowledge, dis...
-
An ideological attack is occurring against Islam, one that masks the truth of the transatlantic slave trade. It aims to mark the Europea...