Posts Tagged ‘Free’

HowTo: HTTPS on IIS website with free auto-renewing certificate

Below is an image-based walk-through on how to configure HTTPS on an IIS website, making use of a free certificate for encryption from the non-profit Let’s Encrypt certificate authority, also configuring autorenewal of the certificate.

1) Download the win-acme client application (for the command-line).

Screenshot 2021-12-30 025002

There’s also a GUI app called IIS Crypto if you prefer. However, this article uses win-acme tool.

Screenshot 2021-12-30 025102

2) Run wacs.exe from the folder where win-acme tool is unpacked.

Screenshot 2021-12-30 025131

3) Follow same steps as below selecting your own site and binding.

Screenshot 2021-12-30 025153

Screenshot 2021-12-30 025230

Screenshot 2021-12-30 025317

Screenshot 2021-12-30 025341

Screenshot 2021-12-30 025415

Screenshot 2021-12-30 025547

Screenshot 2021-12-30 025643

Just press Q when finished and you’re done. No need to worry about next renewal (mentioned on the screen), will be done automatically.

HowTo: Free up some disk space by disabling hibernation on Windows 10

I have a small older Tablet PC (Lenovo S10-3t) that I’m running Windows 10 on, having replaced its internal classic SATA hard disk with an SSD one, and since SSD space is scarce (being more expensive I got a smaller in size disk than the original one), I needed to make free space.

Since that machine is always connected to power, connected to a monitor mounted on the wall (and turned into tent mode in front and under the main monitor, to use it as a second touch-enabled screen for app testing), I don’t really need to use hibernation (after all its battery has gone dead, so hibernation won’t get a chance to occur in the case of an electrical network power down anyway).

That could save some extra disk space, since when hibernation is enabled, you end up with a hiberfil.sys file in the root folder of the boot disk that has around the size of the memory on your computer (or at least that was the case before Windows 10, since I was seeing an 850MB file although the computer has 2GB memory).

To cut it short, I looked it up and found this relevant Microsoft article:

However, the automated way it suggests (the FixIt app) doesn’t seem to work on Windows 10 (probably neither on Windows 8, it doesn’t list it at the bottom of the page anyway) and one has to use the manual way. On Windows 10 the quickest way (based a bit on the suggestions in that article), is to right click the start menu button at the bottom-left of your screen and select “Command Prompt (Admin)” at the popup menu. Then reply affirmatively at the User Access Control (UAC) prompt shown and at the command prompt (a dark console window) that appears, type powercfg.exe /hibernate off and press the ENTER key. Then just close the console window and check the “This PC” node at the File Explorer to confirm that you saved some extra hard disk space.

Categories: Posts Tags: , , , ,

Font Collection sites (many free)

There are various font collection sites where you can find nice typefaces you can preview and download:

Make sure you check the license for each font you download before using it in some project (some are only free for personal use, others are free for commercial use too).


Also take a trip for lots of artistic stuff that sometimes includes fonts too.


And finally checkout some nice hand-picked thematic font collections that point to FontSpace and other font download sites:

Categories: Posts Tags: , , ,

Fix: embed Office & Acrobat Active Documents in IE WebBrowser control

Since the LvS desktop application (from Learning Via Subtitling project) uses Internet Explorer to embed Microsoft Office Word, Excel, PowerPoint and Adobe Acrobat PDF documents (among others), I added some useful info to the LvS download page on how to work around issues one may face in such a scenario:

If you don’t have Microsoft Office (or have very old Office versions like Office 95 or Office 97) and want to embed Word documents you should better also install:

To show .docx (Word 2007+) files if you use Office XP or Office 2003 or the free Word viewer you need to also install "Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint File Formats" from:

Office 2007 doesn’t show documents embedded in Internet Explorer by default (which LvS uses internally to host Active Documents), use FixIt button at following page to fix this: 

In LvS if you have Office 2007 without this fix you will see message "Type the correct address" when your unpacked activity folder contains Office files

To embed Adobe Acrobat files you need Adobe Acrobat or the free Adobe Acrobat Reader from:

If Adobe PDF files don’t show embedded and open up in separate window: Use Start/All Programs menu from the Windows Taskbar and run Adobe Reader application. Then go to its menu "Edit/Preferences…" and at the dialog that opens up, go to "Internet" and check "Display PDF in browser", then press OK (can then close Adobe Reader).

When such files open embedded you may be asked to open or save the file for each one – select open and DO check to not be asked again (since it gets very annoying).

Since this "not ask again" will be remembered for IE too, if you want to clear it later on see the following article:

Combinatorics library (Silverlight for Windows Phone)

I recently found a very nice article at CodeProject on Combinatorics algorithms implementation (specifically Permutations, Combinations and Variations with Repetition option) using C# Generics:

It uses a lexicographic algorithm, so it allows one to ask for “next” permutation/combination/variation from the collection of all possible ones, in the spirit of C++ Standard Library’s (STL) “next_permutation” algorithm.

My Anagram app for Windows Phone 7 is using this code (packed it in a Silverlight library)

I packed the files in a Silverlight for Windows Phone class library (named Combinatorics) and modification I had to do was to:

  1. make the IMetaCollection interface public so that I could abstract the use of any combinatorics operation based on user selection
  2. add CombinatoricsOp class to help with using any combinatorics operation via one entry point
  3. As a bonus there is also a there (class diagram)

You can download the library to use with your WP7 Silverlight apps (Portable [PCL] version also available now) from
Please give due credit to original author of Combinatorics code (and myself if you use my additions too).

The code for CombinatoricsOp class I added is below. Just call GetCombinatoricsOp to get a Permutations, Combinations or Variations class instance (all implement IMetaCollection interface) and then use the enumerator (with extra method to get count of items without counting them one-by-one) as described in the CodeProject article mentioned above.

//Version: 20111119
//Author: George Birbilis (

using System;
using System.Collections.Generic;   namespace Facet.Combinatorics
{   public static class CombinatoricsOp {   public enum CombinatoricsOpType
      Permutations = 0,
      PermutationsWithRepetition = 1,
      Combinations = 2,
      CombinationsWithRepetition = 3,
      Variations = 4,
      VariationsWithRepetition = 5
    }   public static IMetaCollection<string> GetCombinatoricsOp(
                  IList<string> values, CombinatoricsOpType opType, int take){
     switch (opType)
       case CombinatoricsOpType.Permutations:
         return new Permutations<string>(values);

case CombinatoricsOpType.PermutationsWithRepetition: return new Permutations<string>(values,GenerateOption.WithRepetition); case CombinatoricsOpType.Combinations: return new Combinations<string>(values, take); case CombinatoricsOpType.CombinationsWithRepetition: return new Combinations<string>(
values, take, GenerateOption.WithRepetition); case CombinatoricsOpType.Variations: return new Variations<string>(values, take); case CombinatoricsOpType.VariationsWithRepetition: return new Variations<string>(
values, take, GenerateOption.WithRepetition); default: throw new NotImplementedException(); } }   }   }

%d bloggers like this: