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,860 other subscribers

Archive for June, 2015

`git init –bare`: to create a new git repository from an existing one (via: Stack Overflow)

Posted by jpluimers on 2015/06/23

I needed to get an existing Git repository to a client that had a tightened network. No SSH allowed, web proxy filtering out all sorts of sites and also performing a HTTPS man-in-the-middle to detect and reject all kinds of binaries, etc.

But we needed a public repository locally.

Which worked, thanks to pestrella, who answered about `bare` repositories to get my last steps correct:

In order to create a new Git repository from an existing repository one would typically create a new bare repository and push one or more branches from the existing to the new repository.

The trick is to know that server-side repositories are `bare` and client side repositories are `regular`. `bare` means the absence of a working copy on the server side.

I performed these steps:
Read the rest of this entry »

Posted in Development, DVCS - Distributed Version Control, git, Source Code Management | Leave a Comment »

The difference between https://google.com and https://encrypted.google.com? – Information Security Stack Exchange

Posted by jpluimers on 2015/06/22

There are differences between the encrypted Google search at https://encrypted.google.com and the ordinary HTTPS Google search at https://google.com:

Originally, the regular Google.com and http://www.Google.com usage was without HTTPS, and encrypted.Google.com was using HTTPS.

Even after HTTPS support was added to all Google subdomains there is still a difference in the referer handling: encrypted.Google.com is much safer.

–jeroen

via: encryption – What is the difference between https://google.com and https://encrypted.google.com? – Information Security Stack Exchange.

Posted in Google, GoogleSearch, Power User | Leave a Comment »

Learn to Kern T-Shirt | CMYBacon

Posted by jpluimers on 2015/06/19

Since it is T-Shirt friday, typography geeks will love:

Learn to kern

and

Will kern for food

–jeroen

Learn to Kern T-Shirt | CMYBaconWill kern for food

via

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

2 More Old Micro Cornucopia issues on BitSavers from 1986 « The Wiert Corner – irregular stream of stuff

Posted by jpluimers on 2015/06/18

Almost two years ago, I wrote “the only issues missing are #28, #30 and #31.”. As of mid May any more:

All of them are from the 5th anniversary year.

–jeroen

via 2 More Old Micro Cornucopia issues on BitSavers from 1986 « The Wiert Corner – irregular stream of stuff.

Posted in 6502 Assembly, Assembly Language, BitSavers.org, C, C++, Development, History, Pascal, Software Development, Turbo Pascal | Leave a Comment »

Inversion of Control via constructor argument passing

Posted by jpluimers on 2015/06/18

Inversion of Control example video on YouTube: business class is not in control of the DAL.

It uses C#, but the code is so simple that every programmer should be able to get it.

Uses:

  • interfaces
  • parameter passing through constructor
  • moving control decisions out of the business class

Inversion of Control (IoC) can later be amended by Dependency Injection (DI), but IoC can easily without that be used very effectively without DI.

I wish the What is…? series had more than 1 episode, but Christian Richards does have some interesting series about game development.

–jeroen

via: duidelijk voorbeeld.

Posted in .NET, .NET 1.x, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, C# 6 (Roslyn), Development, RemObjects C#, Software Development, VB.NET, VB.NET 10.0, VB.NET 11.0, VB.NET 7.0, VB.NET 7.1, VB.NET 8.0, VB.NET 9.0 | Leave a Comment »

H.H. Polzer, bekend als Drs. P., rijmt eigen rouwadvertentie – via AT5

Posted by jpluimers on 2015/06/17

De advertentie is ondertekend door Drs. P. en geplaatst onder zijn echte naam H.H. Polzer. Het gedicht van de advertentie luidt:

Even uw aandacht graag!
Korte berichtgeving:
Ondergenoemde
Is niet meer in beeld –

Wat hier (behalve voor
Onbelangstellenden)
Hartelijk groetend
Wordt medegedeeld

–jeroen

via: Drs. P. rijmt eigen rouwadvertentie – AT5.

Posted in About, Fun, Quotes | Leave a Comment »

Research notes on Diffie Hellman over WebSockets over a MittM http proxy to setup an encapsulated secure channel

Posted by jpluimers on 2015/06/17

Inspired by CloudFlare Keyless SSL, I have this idea of using Diffie Hellman over WebSockets over a MittM based http proxy (which intercepts and decrypts HTTPS traffic) like mitmproxy (but them from a commercial vendor to inspect web traffic) to setup an encapsulated secure channel.

I know SSH uses Diffie Hellman to setup a secure channel over a binary TCP connection.

Binary communication over HTTP usually means WebSocket.

I don’t want WebSSH (which does use WebSockets, but is probably filtered by the MitM proxy anyway).

Maybe either of these open source tools will work:

If these don’t work, I need to do more research.

Since I use C# and .NET for much of my work, I started the WebSocket over HTTP C# query.

c# – How to use proxies with the WebSocket4Net library – Stack Overflow.

–jeroen

Posted in *nix, *nix-tools, Communications Development, Development, HTTP, Internet protocol suite, Linux, Power User, SSH, SuSE Linux, TCP, WebSockets, Windows, Windows-Http-Proxy | Leave a Comment »

Git SVN: an easy way to try out Git when your main repository is still SVN (via: XE6 still stuck on an old SVN version…)

Posted by jpluimers on 2015/06/16

Graeme Geldenhuys posted a great comment below.

Summary:

Git can do SVN, so locally you will see it as a Git repository, but the SVN repository will stay “as is” and not be affected neither will other SVN users be affected.

Two of the great benefits of this:

  1. You have fill local history so no need for long server-round trips to access it.
  2. You have the full query featureset of Git at your disposal. Locally.

Combined, you can do these without the need to be online or wait for the SVN connection and transfer:

For instance to view your branches:

git branches -vv

Or to show the branch-history:

git show-branch

It is how I access the FastMM repository from Git and described the git commands on how to get started and keep up to date.

Here is Graeme’s comment:           Read the rest of this entry »

Posted in Development, DVCS - Distributed Version Control, git, Mercurial/Hg, Software Development, Source Code Management, Subversion/SVN | Leave a Comment »

Watch changes on html pages that do not have RSS

Posted by jpluimers on 2015/06/15

A few tools that help you watch changes in html pages, even these pages do not have RSS: they make a feed out of a page.

–jeroen

Posted in Development, HTML, Power User, Software Development, Web Development | Leave a Comment »

Posted by jpluimers on 2015/06/12

Hoe vies is de lucht bij jou in de buurt? http://s.parool.nl/4073648

Posted in Uncategorized | Leave a Comment »