The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,862 other subscribers

Archive for 2015

The unknown beauty of shared projects in .NETGeert van Horrik

Posted by jpluimers on 2015/06/02

Interesting:

Shared Projects

Shared Projects are a new feature of Visual Studio 2013 Update 2. It was initially created to support universal apps apps for both Windows Phone RT and Windows RT, and that’s what most people know about it.

However there is also this genius Visual Studio extension that allows Shared Projects on any .NET project. It means that you can create a project shproj that contains a list of C# files. This file can be referenced by any project and will be included at compile time.

With Shared Projects you are always able to debug through any references code. This makes it very easy to find and fix issues or test new features.

Note that in Visual Studio 2015, this is an official feature: Shared Project : An Impressive Feature of Visual Studio 2015 Preview.

Thanks Matthijs ter Woord for noticing that.

–jeroen

via: The unknown beauty of shared projects in .NETGeert van Horrik.

Posted in .NET, .NET 4.0, .NET 4.5, C#, C# 4.0, C# 5.0, Development, Software Development, Visual Studio 2013, Visual Studio and tools | Leave a Comment »

Time to upgrade: SHAAAAAAAAAAAAA | Check your site for weak SHA-1 certificates.

Posted by jpluimers on 2015/06/01

They days of SHA-1 are quickly coming to an end. Chrome has already marked SHA-1 signed TLS/SSL certificates for having an expiration > 2015-12-31 as insecure for a few weeks now. They promised to sunset SHA-1 about 9 months ago.

So if you haven’t done so, upgrade your HTTPS (and HTTP/2 which defaults to TLS) certificates to SHA-2. A great site of help here is SHAAAAAAAAAAAAA | Check your site for weak SHA-1 certificates. It is open source at GitHub.

You’ve less than 6 months now.

More in dept-reading (especially the comments by Ryan Sleevi): Chrome 42 (next stable) will mark SHA-1 signed certs with a validation date >2015 as insecure!.

–jeroen

PS: if you really need to do the balancing act, you technically can serve old certificates to SHA-2 incompatible clients while serving more secure certificates to modern clients. But it’s a risk, so you might as well tell these old clients they’re out.

Posted in https, Power User, Public Key Cryptography, Security, TLS | Leave a Comment »

T-Shirt quotes: Programmer (via: duane attaway – Google+)

Posted by jpluimers on 2015/06/01

T-Shirt quote:

Programmer

n. [proh-gram-er]
an organism that turns caffeine and pizza into software

–jeroen

via: duane attaway – Google+.

Programmer T-Shirt quote - via duane attaway - Google+

Posted in Fun, Quotes, T-Shirt quotes | Leave a Comment »

Reminder: check for PCIe SSD upgrades – via: How-To Upgrade the SSD in your MacBook Air or Retina MacBook Pro, boosting size & speed | 9to5Mac

Posted by jpluimers on 2015/05/29

Need to check this out in the summer: see if there is PCIe SSDs available for my Late 2013 Retina MacBook Pro.

Newer-generation 13″ and 15″ Retina MacBook Pros use newer SSDs with faster PCIe connectors. As of early 2015, no third-party SSDs are compatible with this standard, but we’re expecting to see options hit the market closer to the middle of the year. Some Retina MacBook Pro SSDs will apparently be capable of achieving speeds in the 1.2GB/second range, compared with the 700-800MB/second speeds of stock drives.

–jeroen

via: How-To: Upgrade the SSD in your MacBook Air or Retina MacBook Pro, boosting size & speed | 9to5Mac.

Posted in Apple, Mac, MacBook, MacBook Retina, Power User | Leave a Comment »

So I won’t forget: some wordpress.com links for my site

Posted by jpluimers on 2015/05/29

So I won’t forget:

Sitemaps

(via: Sitemaps — Support — WordPress.com and how to create a page Sitemap « WordPress.com Forums.)

XML-RPC

(via: XML-RPC Support « WordPress Codex and Settings Writing Screen « WordPress Codex.)

https://wiert.wordpress.com/xmlrpc.php or http:wiert.me/xmlrpc.php or /xmlrpc.php

robots.txt

(via: robots.txt « Tags « WordPress.com Forums.)

https://wiert.wordpress.com/robots.txt or http:wiert.me/robots.txt or /robots.txt

 Google webmaster tools

https://www.google.com/webmasters/tools/dashboard?siteUrl=http://wiert.me

Google Analytics

(via: How to Add Google Analytics to WordPress in Under 60 Seconds – WPMU DEV  and Google Analytics Official Website – Web Analytics & Reporting.)

–jeroen

Posted in Power User, SocialMedia, WordPress | Leave a Comment »

Enabling GIT_CURL_VERBOSE to research “unable to get local issuer certificate”

Posted by jpluimers on 2015/05/28

A while ago, I was fighting a corporate web proxy playing Man-in-the-Middle on all https sessions.

Though playing MitM on your employees is a debatable thing to do (especially without informing the employees, and illegal in certain countries, I had to get a GIT connection to the outside world working.

This helped tracking it down: GIT_CURL_VERBOSE “unable to get local issuer certificate”.

What I finally did was this:

  1. obtain the CA certificate that issues the MitM certificate in base-64 CRT form (which is the same as the PEM form):
  2. added it at the top of either of these files:
    • "%ProgramFiles%\Git\bin\curl-ca-bundle.crt"
    • "%ProgramFiles(x86)%\Git\bin\curl-ca-bundle.crt"
  3. added it to the top of either of these files:
    • "%ProgramFiles%\Mercurial\cacert.pem"
    • "%ProgramFiles(x86)%\Mercurial\cacert.pem"

–jeroen

PS: These were the failures I was getting:

Read the rest of this entry »

Posted in *nix, cURL, Development, DVCS - Distributed Version Control, git, PKI, Power User, Security, Source Code Management | Leave a Comment »

The Zen Of Programming

Posted by jpluimers on 2015/05/27

From The Zen Of Programming:

The novice thought for a moment. “I will design a new editing program,” he said, “a program that will replace all these others.”

There are different forms of the above.

Think about them for a while.

Then name at least three.

Now go back to work.

–jeroen

via: The Zen Of Programming.

Posted in .NET, Delphi, Development, Software Development | 2 Comments »

Pastebin, but for HTML? – Stack Overflow

Posted by jpluimers on 2015/05/26

Nice question (thanks aplm!), as for instance Gist does not render html:

Pastebin is a useful online tool to paste snippets of text. Pastie is a similar tool. Also, Ideone is similar except that it also runs the source code, as well as being a general pastebin.

Is there a similar tool, for HTML?

And ditto links in the answer (thanks meder!):

Unbelievable that such questions get closed as “not constructive”.

Note I could not get http://www.pastekit.com to work.

–jeroen

via: javascript – Pastebin, but for HTML? – Stack Overflow.

Posted in Development, HTML, HTML5, JavaScript/ECMAScript, JSFiddle, Scripting, Software Development, Web Development | Leave a Comment »

OH: “Final is Latin for Time To Refactor”

Posted by jpluimers on 2015/05/25

OH: “Final is Latin for Time To Refactor”.

Thanks Kristian!

–jeroen

Posted in Fun, Quotes, T-Shirt quotes | Leave a Comment »

HCL:Raspberry Pi – openSUSE

Posted by jpluimers on 2015/05/25

Interesting: HCL:Raspberry Pi – openSUSE.

Posted in *nix, *nix-tools, Hardware Development, Linux, openSuSE, Power User, Raspberry Pi, SuSE Linux | Leave a Comment »