Reminder to self:
- Watch the relevant Channel 9 videos.
- Sync the Roslyn repository regularly.
–jeroen
via: C# and VB are open sourced | Fabulous Adventures In Coding.
Posted by jpluimers on 2014/04/27
Reminder to self:
–jeroen
via: C# and VB are open sourced | Fabulous Adventures In Coding.
Posted in .NET, C#, C# 6 (Roslyn), Development, Software Development | Leave a Comment »
Posted by jpluimers on 2014/04/23
I just bumped into Compile and Execute C# Sharp online.
As of writing, it uses Mono 2.10.2.0 which is quite old, and it is dead slow: it takes more than a minute to compile and execute a simple console application.
The reason is that this is a one man project.
IdeOne is much faster, for instance it took a few seconds to compile and run this simple C# program.
–jeroen
Posted in .NET, C#, Development, Mono, Software Development | Leave a Comment »
Posted by jpluimers on 2014/04/22
The first bulleted link below has been living in my drafts like forever (i.e. somewhere since mid June 2009), so time to write a bit about ISO 8601 and .NET.
First a few links about converting a DateTime into ISO 8601 string format:
Some solutions use the “K” as a time zone specifier. At first, I couldn’t find any documentation for it, not even Google Search for Google Search for “ssK” DateTime ToString returns anything useful.
Later on, I found The “K” Custom Format Specifier in Custom Date and Time Format Strings.
So my preferred solutions for me are these:
System.DateTime.Now.ToString("yyyy-MM-ddTHH:mm:ssK");System.DateTime.Now.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssK");I avoid these:
System.DateTime.Now.ToString("o");System.DateTime.Now.ToUniversalTime().ToString("s") + "Z";–jeroen
–jeroen
Posted in .NET, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Development, ISO 8601, Software Development | 1 Comment »
Posted by jpluimers on 2014/04/17
Thanks User Andrew Hare – Stack Overflow for answering this on Stack Overflow.
I’m pretty sure it works in all .NET and C# versions starting with 2.0.
Here is a hack-ish way to do it without having to load the entire output string into an XmlDocument: Read the rest of this entry »
Posted in .NET, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2014/04/16
Just asked this on SO: C# – Is there a library that gets the media type and subtype out of a HttpWebResponse/WebResponse ContentType?.
Anyone here or at G+ that has a hint?
The [WayBack] ContentType property of [WayBack] (Http)WebResponse [WayBack] maps to the HTTP/1.1 [WayBack] Content-Type which is a [WayBack] Media-Type that contains a
type/subtypeoptionally followed by parameters which are [WayBack] attribute=value pairs.I’m mainly interested in the
type/subtypeand the [WayBack] charset parameter.The
charsetis mapped from [WayBack] HttpWebRequest.CharacterSet.Is there a library that just retrieves the media
type/subtypeof the [WayBack] ContentType?
–jeroen
via: [WayBack] c# – Is there a library that gets the media type and subtype out of a HttpWebResponse/WebResponse ContentType? – Stack Overflow.
Posted in .NET, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, ASP.NET, C#, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Development, Software Development, Visual Studio 11, Visual Studio 2008, Visual Studio 2010, Visual Studio 2013, Visual Studio and tools | Leave a Comment »
Posted by jpluimers on 2014/04/15
Reminder to self: for HttpWebRequest make sure you have your proxy setup correctly.
Monitoring HTTP Output with Fiddler in .NET HTTP Clients and WCF Proxies – Rick Strahl’s Web Log.
–jeroen
Posted in .NET, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, ASP.NET, C#, C# 2.0, C# 3.0, C# 4.0, C# 5.0, Development, Fiddler, Software Development, Visual Studio 11, Visual Studio 2005, Visual Studio 2008, Visual Studio 2010, Visual Studio and tools, Web Development | Leave a Comment »
Posted by jpluimers on 2014/04/15
Simple steps on how to hang visual studio:
This will get you a nice box (and no way to close Visual Studio except killing it from the task manager):
Microsoft Visual Studio is Busy
Microsoft Visual Studio is waiting for an internal operation to complete. If you regularly encouter this delay during normal usage, please report this problem to Microsoft.
There seems to be no bounds checking for the “Expand All” functionality.
–jeroen
Posted in Development, Software Development, Visual Studio 11, Visual Studio 2005, Visual Studio 2008, Visual Studio 2010, Visual Studio and tools | Leave a Comment »
Posted by jpluimers on 2014/04/11
This Explorer extension is brilliant: Path Copy Copy – Home.
It works in Windows XP and up (including 7, 8 .x, 20xx Server, etc).
The Open Source is done in Visual Studio with C++.
–jeroen
Posted in C++, Development, Power User, Software Development, Visual Studio 2010, Visual Studio and tools, Windows, Windows 7, Windows 8, Windows 8.1, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP | Leave a Comment »
Posted by jpluimers on 2014/04/10
Some interesting UI Automation examples: The managed way to retrieve text under the cursor (mouse pointer).
–jeroen
Posted in .NET, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 3.0, C# 4.0, C# 5.0, Development, Software Development | Leave a Comment »