meme - Dave's Blog

Search
My timeline on Mastodon

Parsing WinMD with .NET reflection APIs

2016 Nov 2, 6:13

Parsing WinMD files, the containers of WinRT API metadata, is relatively simple using the appropriate .NET reflection APIs. However, figuring out which reflection APIs to use is not obvious. I've got a completed C sharp class parsing WinMD files that you can check out for reference.

Use System.Reflection.Assembly.ReflectionOnlyLoad to load the WinMD file. Don't use the normal load methods because the WinMD files contain only metadata. This will load up info about APIs defined in that WinMD, but any references to types outside of that WinMD including types found in the normal OS system WinMD files must be resolved by the app code via the System.Reflection.InteropServices.WindowsRuntimeMetadata.ReflectionOnlyNamespaceResolve event.

In this event handler you must resolve the unknown namespace reference by adding an assembly to the NamespaceResolveEventArgs's ResolvedAssemblies property. If you're only interested in OS system WinMD files you can use System.Reflection.InteropServices.WindowsRuntimeMetadata.ResolveNamespace to turn a namespace into the expected OS system WinMD path and turn that path into an assembly with ReflectionOnlyLoad.

PermalinkComments.net code programming winmd winrt

laughingsquid: Nope. Nik Tesla.

2012 Jul 16, 7:38


laughingsquid:

Nope. Nik Tesla.

PermalinkCommentshumor science history meme

Scumbag Steve's Advice for Annoying Facebook Girl

2012 May 4, 2:46

Blake Boston of the Scumbag Steve meme writes an open letter to the woman in the Annoying Facebook Girl meme.

PermalinkCommentshumor meme scumbag-steve

On The Verge, Joshua Topolsky interviews Neil deGrasse Tyson on...

2012 Apr 4, 7:10


On The Verge, Joshua Topolsky interviews Neil deGrasse Tyson on the Badass meme which results in animated GIFs ready for meme-ification.  Including this one from BrettBrown of Joshua calling it.

PermalinkCommentshumor meme internet photo gif

“On The Verge is ready for a lot of things, but we clearly...

2012 Apr 2, 8:31


“On The Verge is ready for a lot of things, but we clearly weren’t ready for renowned astrophysicist Dr. Neil deGrasse Tyson, who stopped by to talk space exploration, life as a meme, and why he carries a slightly-illegal laser with him at all times.”

PermalinkCommentsinternet meme humor video neil-degrasse-tyson

Why Did This Work?

2012 Mar 23, 7:05

Do we have a word or phrase to describe the following situation: You code up something complicated and it compiles and works on the first try. You then spend the next ten minutes trying to figure out what's actually broken because it shouldn't be this easy.

Or in meme form:

PermalinkCommentstechnical humor programming futurama

More Walking Dead macro photos.

2012 Mar 21, 2:56


More Walking Dead macro photos.

PermalinkCommentshumor meme walking-dead tv zombie

Photo

2012 Mar 18, 5:45


PermalinkCommentshumor meme rainbow-cat wil-wheaton tng

HTML5 Table Flipper Experiment

2012 Mar 2, 1:02

The goal of this experiment was to combine the flipping tables emoticons with the Threw It On The Ground video using shiny new HTML5-ish features and the end result is the table flipper flipping the Threw It On the Ground video.

The table flipper emoticon is CSS before content that changes on hover. Additionally on hover a CSS transform is applied to flip the video upside down several times and move it to the right and there's a CSS transition to animate the flipping. The only issue I ran into is that (at least on Windows) Flash doesn't like to have CSS transform rotations applied to it. So to get the most out of the flip experiment you must opt-in to HTML5 video on YouTube. And of course you must use a browser that supports the various things I just mentioned, like the latest Chrome (or not yet released IE10).

PermalinkCommentscss-transform flipping-tables css-transition html5-video technical threw-it-on-the-ground

First Ur Problems meme | quickmeme

2012 Jan 16, 12:04PermalinkCommentsgame glitch humor meme

Video

2011 Dec 9, 1:14


PermalinkCommentshumor ad commercial youtube meme

MemeCats: #OccupyPopTarts

2011 Oct 20, 12:00PermalinkCommentslolcats memecats memes nyan cat occupy wall street politics protests signs technical

HTTP framework for time-based access to resource states -- Memento

2011 Apr 30, 4:33"The HTTP-based Memento framework bridges the present and past Web by interlinking current resources with resources that encapsulate their past. It facilitates obtaining representations of prior states of a resource, available from archival resources in Web archives or version resources in content management systems, by leveraging the resource's URI and a preferred datetime. To this end, the framework introduces datetime negotiation (a variation on content negotiation), and new Relation Types for the HTTP Link header aimed at interlinking resources with their archival/version resources. It also introduces various discovery mechanisms that further support briding the present and past Web."PermalinkCommentstechnical rfc reference http header time memento archive

The death of a meme: Donald Glover calls a truce with the new Peter Parker [Spider-man]

2010 Nov 21, 9:00PermalinkCommentsSpider-man Andrew Garfield Comic Books Dancing donald glover Movies Peter Parker Reality TV Superheroes Television technical

Meme-ify Your Home With These 10 Internet Wall Hangings Currently for Sale on Etsy

2010 Oct 22, 1:30PermalinkCommentscrafting DIY Etsy haters gonna hate home decor keyboard cat lolcats memes needlepoint pedobear Xzibit technical

Infovore » Something on my mind grapes

2010 Sep 27, 1:39Twitter account that retweets Kanye West's tweets with 'Liz Lemmon, ' prefixed to produce occasionally hilarious 30 Rock quote sound-a-likes.PermalinkCommentshumor 30-rock meme kanye-west mind-grapes twitter

Hitler tries a DMCA takedown | Brad Ideas

2010 Apr 21, 1:47So... There's Downfall a 2004 film about the final days of Hitler's life. Then folks take the most dramatic scene and parody it with new subtitles having Hitler yell about various things like his cell phone or Burning Man. It becomes a meme and meta Downfall parodies show up with Hitler yelling about the Downfall parodies. Now the studio producing the film has sent DMCA takedown notices to Youtube and many of the videos are disappearing. In response is a new Downfall parody in which Hitler issues DMCA notices to Youtube...PermalinkCommentscensorship hitler humor copyright dmca eff legal youtube video fairuse meme web internet technical

We Love xkcd, Real Live Version of Animated Version of xkcd Loves the Discovery Channel

2010 Feb 21, 2:54Internet folk sing about their love of various nerdy things ala xkcd comic of similar namePermalinkCommentscory-doctorow wil-wheaton video xkcd humor music song internet meme

Alexis Ohanian: How to make a splash in social media | Video on TED.com

2010 Feb 18, 8:29"Alexis Ohanian of Reddit tells the real-life fable of one humpback whale's rise to Web stardom. The lesson of Mister Splashy Pants..."PermalinkCommentsmeme internet social reddit alexis-ohanian whale mrsplashypants ted video humor

YouTube - The Web That Wasn't

2009 Oct 28, 8:31"The presentation will focus on the pioneering work of Paul Otlet, Vannevar Bush, and Doug Engelbart, forebears of the 1960s and 1970s like Ted Nelson, Andries van Dam, and the Xerox PARC team, and more recent forays like Brown's Intermedia system." Covers things like As We May Think and others who could have made the Web. Would love to have this as a summary with links to everything rather than a video =)PermalinkCommentsvia:connolly technical google video internet web information technology memex
Older Entries Creative Commons License Some rights reserved.