Scott Hanselman

Extended Stored Procedures Considered Harmful?

January 13, 2003 Comment on this post [0] Posted in Web Services
Sponsored By

With Yukon on the horizon, I'm thinking about the "unmanaged Yukon equivalent" we have now - Extended Stored Procedures.  I've used them in the past for such cleverness as calling out to Ws Services from within SQL Server and calling back to other boxes in an asychronous Observer-Observable pattern to let folks know about Data Changing for cache clearing events.

Now, no doubt Yukon will be much more robust even hosting in-proc componentry via Application Domains or out of proc via an ASP_WP style worker process, but until then, are Extended Stored Procedures (in VB6 and C++) evil? See http://tinyurl.com/4er4 (Google Groups Post)

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Hosting By
Hosted in an Azure App Service

Its a special feeling you get when you look at your Referrer Log and see that someone found your Blog by searching for shmu

January 13, 2003 Comment on this post [0] Posted in Tools
Sponsored By

It's a special feeling you get when you look at your Referrer Log and see that someone found your Blog by searching for "shmuck"
http://www.davidjanes.com/blogosphere/tools/search?frame=l&search=schmuck

 

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Hosting By
Hosted in an Azure App Service

OWASP: Top Ten Most Critical Security Vulnerabilities in Web Apps

January 13, 2003 Comment on this post [0] Posted in Web Services
Sponsored By

Great Whitepaper on SourceForge from the OWASP project on the "Top Ten Most Critical Security Vulnerabilities in Web Apps"

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Hosting By
Hosted in an Azure App Service

Set the ASP.NET Application Object to Read-Only

January 10, 2003 Comment on this post [0] Posted in Web Services | ASP.NET
Sponsored By

Requirement:

Pre-Load the ASP.NET Application object and don’t allow other pages in your project to add/modify/delete. Basically, make Application read-only.

Solution:

         private void SetApplicationReadOnlyStatus( bool state ) {
                  Type type = Application.GetType().BaseType;
                  PropertyInfo readPropInfo = type.GetProperty("IsReadOnly",  BindingFlags.NonPublic | BindingFlags.Instance) ;
                  if( readPropInfo != null ) {
                        readPropInfo.SetValue( Application,Convert.ChangeType(state,readPropInfo.PropertyType ) ,null);
                  }
            }
            private void Page_Load(object sender, System.EventArgs e) {
                  Application["MyKey"] = "myValue";
                  // Set application to readonly so that we will not allow any changes.
                  SetApplicationReadOnlyStatus( true );
                  try
                  {
                        // Try setting a value 
                        Application["MyKey"] = "New value";
                        Response.Write("You won't see this");
                  }
                  catch(Exception ex) {
                        // You'll end up here
                        Response.Write(ex.Message);
                }
            }

Thanks to Sairama for the code!

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Hosting By
Hosted in an Azure App Service

Paul Allens Vulcan MiniPC Here is another interestin

January 10, 2003 Comment on this post [0] Posted in
Sponsored By

Paul Allen's Vulcan Mini-PC. Here is another interesting device from CES this week. "A hitherto unknown group within multibillionaire Paul Allen's Vulcan Inc. techno-empire has designed a compact, lightweight, wireless computer that is expected to debut by Christmas for between $1,200 and $1,500." It runs Windows XP. Now this is a device I would want. I have never seen the interest in the OQO. Too big to be a PDA, to small to be a work machine. The Vulcan though is the ultimate mini-PC.

Specs include:

  • 5.8-inch screen at 800X400
  • 20GB drive
  • Support for external keyboard and mouse
  • Batteries last for up to four hours
  • USB 2 port with external CD-ROM
  • WiFi or one of two cellular technologies integrated at the choice of the OEM.

[Pocket PC Thoughts]

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Hosting By
Hosted in an Azure App Service

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.