Twitter

Nice insights on crowd funding: https://t.co/obxkW0C9nj 😼

2 weeks ago

Follow

Rainbow CSV for #VSCode : simple and elegant 👍🌈 https://t.co/LDEpaO4TEB

4 weeks ago

Follow

Need finer control over your screen brightness? There a #PowerShell script for that: https://t.co/uUCyIaN6j6

1 month ago

Follow

Parsing objects to XML with attributes can be quite a challenge in #PowerShell : https://t.co/CqH9W1XgNM

1 month ago

Follow

Categories

Category: .NET

.NET

Fixing IE Quirks Mode in ASP.Net

Quirks mode refers to a technique used by some web browsers for the sake of maintaining backward compatibility with web pages designed for older browsers, instead of strictly complying with W3C and IETF standards in standards mode. Here’s how to force IE into submission by adding a DLL to ASP.Net.

.NET

How to scrape a photo from a Twitter Photo URL with C#

Twitter uses its url shortener to place photo’s in Tweets. I’ve tried processing these URLs in the browser, but cross site scripting measures prevented me from processing the result with jQuery.

I decided to resolve it in C# (as I’m using ASP.Net). The following script leverages a WebClient and a regular expression to extract the photo URL from the shortened URL. This code could be added to a handler or a webservice that can be called from script.