Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements


phreaks phreaks
  • Should APIs be copyrighted?


    Typically there are citations filed along with the patent application, the purpose of which is to help add validity to the request for a grant or publication status. For USPTO filings; I thought that all patents were assumed invalid, and there had to be evidence provided to the contrary.

    @Spinoniousv- It's 20 years from the Application Date, not the Grant date, the date the clock starts ticking is known as the Priority Date. Depending on the time it takes to get a Grant or 'Publication' status, many years may have already expired. 

    These terms are pretty much the same across many WIPO countries (World), including the EPO (European Patent Office).

    Depending on industry, 20 years may not be all that much of protection considering the time and money invested in the research of the patent. Pharmaceuticals and Bio/health patents are good examples where a company may have invested 20+ years and billions of dollars into a patent.


  • No Xpath 2.0 in Sql Server 2012?

    Is xpath 2.0 not supported even in Sql Server 2012?

    I'm using openXml to shred raw xml into edge tables and sql complains about string-join: XML parsing error: Unknown method.

    I'm hoping that I'm missing something here liker perhaps a config setting?

  • Erik Meijer: Microsoft completely messed it up (with .NET)

    Interesting and coincidentally I was just ranting about Xamarin  doing the mucking, of a perfectly fine MonoDevlop product the other day. Anyway, I would like to watch this if anyone has a public link please repost.




  • NSA Spying Program

    , ScanIAm wrote


    "We're doing it for your own good".  "You have nothing to worry about".  "Your petit antics aren't what we are monitoring.".  But, but but terrorism and safety.

    No amount of 200+ year old document thumping is going to make it any better, and I guaran-frikking-tee that the same arguments were used to lock up Asians during WWII.

    If your surveillance policy cannot survive public scrutiny, even after the fact, then it was wrong.  If you are going to spy on me, then I want some oversight and I want PUBLIC oversight.  If that means that the spooks have to work harder, then f*ck em.  That's their god-damn job.


    I am appalled at the level of complacency by intelligent people. I have the vague feeling that must be similar to the frog in a warming pot. I take time each morning as I walk past men dressed in black and heavily armed with automatic weapons and big dogs; to reflect on the world my children will know and how radically different it is.

    I'm not doing "anything wrong" so I have nothing to fear according to the pundits. That is until the perception of exactly what "wrong" implies morphs.

    We've always been at war with Eurasia, haven't we?


  • Monodevelop is now Xamarin?


    hmm, I use Monodevelop without any issue on my linux desktop, but I just tried installing it on my macbook and it prompted me to 'update'. It then proceeded to update to Xamarin.

    Xamarin interface looks a bit foreign (and much bigger?), and the simple asp.net project template code won't compile.

  • Monodevelop is now Xamarin?

    So is there now no great and free non windows C# IDE?

  • American Idol. Yes, that's my son

    John, your boy is one cool cat. It's really wonderful that you have fostered and suppoprted his talent. Great job to you both!

    We are cheering for him weekly in Boston.

  • No http handler was found for request type 'GET'

    Executing a python script in via ASPX in IIS7 via


    Gives me the following error:

    No http handler was found for request type 'GET'

    [HttpException (0x80004005): No http handler was found for request type 'GET']
       System.Web.HttpApplication.MapIntegratedHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig, Boolean convertNativeStaticFileModule) +849
       System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm) +463
    [HttpException (0x80004005): Error executing child request for ~/CGI-BIN/Stock-chart.py.]
       System.Web.HttpServerUtility.Execute(String path, TextWriter writer, Boolean preserveForm) +816
       System.Web.HttpServerUtility.Execute(String path) +8
       ms_sandbox.About.Page_Load(Object sender, EventArgs e) in D:\Dropbox\Dropbox\WebSites\ms-sandbox\ms-sandbox\About.aspx.cs:14
       System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
       System.Web.UI.Control.OnLoad(EventArgs e) +91
       System.Web.UI.Control.LoadRecursive() +74
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207

    I have added the script handler to IIS and I can call the script directly fine.
    It's only when I try to call it via server.execute that I have this issue.

    Any Ideas?


  • Linq Max()

    Turns out the query I was using above was completly wrong to begin with.

    long? maxId = db.ResultDatas.Where(model => model.Query == Keyword).Max(res => (long?)res.ResultId) ?? 0;

    The above code works, is intuitive and seems to be reasonably performant.

    If anyone knows any better please let me know!


  • Linq Max()

    string keyword = "michio kaku";
    using (MyModelEntities db = new MyModelEntities()) 
            long? maxId = db.ResultDatas.Select(m => m.Query == Keyword).Max(m => db.ResultDatas.Max(r => r.ResultId)); 

    In the code above, I have an Entity Set named "ResultDatas" with some fields "Query" and "ResultId".

    The underlying data store could have 0 to n matches for a given query. I want to return the max(ResultId) of the matched keyword (or null for non-matched sets).

    The code above works, but seems ineffecient, can someone explain a better way to do this?