Category All posts

Enable version control in Bvckup 2

What is Bvckup 2? Bvckup 2 is a lightweight and versatile Windows premium backup software. I have used it for some years now and it really is superb. The only feature I am missing is “version control”. Especially when you are editing the same file over and over. You really need to be able to go back in time sometimes. What is version control? File control, file versioning, file history, version control – are all different names for what is commonly known as “Versioning file system”. Let’s say you do not have version control. Without “version control” (a.k.a file history) you would backup a file, and every time the original file is changed, the backup gets overwritten by the latest change. So, for example, if you are working on a document and you realize you have accidentally deleted 10 pages in the document. You check your backup… and HEY! You have a backup file, great! 😃👍 But hold on… That backup is also missing 10 pages, because the backup was made recently. Noooooooooooo! 😲😖 That is exactly why you need version control (not backup)! With backup you will only have the most recent backup. With version control you will have multiple backup versions. Mac users are probably laughing right now because they have Time Machine for years. Let’s hope Microsoft is catching up soon. And I don’t mean the horrible implementation of file history, because it cant be trusted at all. How to enable version control Bvckup 2 actually has a “hidden” feature in Bvckup 2 called archive\_modified which enables file versioning. 😲🙀 This feature allows you to keep all versions of a backed-up file. Every time the file is backed up, the older version of the file is moved to a folder called $Archive (Bvckup 2). Make a new […]

underscores.me markup explained

Underscores is a great framework for building WordPress themes. Since the HTML markup can be a little confusing at start, I have made a simple go-to explanation for future projects. The markup might change in the future, but the basic markup has stayed the same for the last years. This markup is from April 2018. Here is a visual illustration of the markup: Here is the same markup in code: So what is going on here? Let’s break it down a little… The body contains the #page DIV which acts as a container for the whole shebang. Inside the #page the site is divided into three parts: .site-header, .site-content and .site-footer. .site-content is basically everything that goes between the header and the footer. In other words; the content. Inside the .site-content DIV we have #primary and #secondary, which are basically just a way of separating the widgets section from the main content. Inside #primary we have another div called #main. I am not completely sure why we have this div yet, but it might function as a way to add padding, margin or max-width to a centered content. Inside #main we get the single post/artigle/page, the post-navigation (previous/next post) and the comments area each in their respectiv divs.

Windows 10 language settings with PowerShell

Language settings in Windows 10 is a little more complicated than just setting the display language and keyboard input. Let me explain further. Region settings The region settings control a number of things. If you change the language here, you will also change “cultural” properties such as date format, currency, number formatting and so on. These settings are linked together with the region language. That means you can’t have English display language and Danish currency and time format. Because if you change the region to English you will also get English cultural settings. 😲 Stupid right? Note: this behavior may have changed in Windows 10 1903, but I have not tested this thoroughly. This is super frustrating for those who would like to have Windows in English, but different region settings. The solution is a simple PowerShell command: As the documentation says, this disables the action of dynamically setting the “culture” for the current user based on changes to the Windows display language. So now you can set the region in one of two ways. You can either set the region with the cmdlet: or you can edit the region language in Control Panel – > Region. Display language and keyboard language In Windows 10 there is also something called “language lists“. Languages in Windows 10 can be a little more complicated than just setting the right display language and keyboard language. I mean, if you think about it… Switzerland, for example, has four national languages; German, French, Italian and Romansh. People living in the cities Canton of Valais, Fribourg, and Bern are bilingual (speaking French and German), while Canton Graubünden is trilingual (German, Romansh and Italian). So what language settings would you use in Switzerland? My point here is that although you may have one main language, you might […]

Remove automapping for a shared mailbox in Office 365

In short, there is no simple way to remove automapping from a shared mailbox in Office 365 unfortunately. But there is a more tedious way 😉 First remove the user from the mailbox, then re-add the user without automapping enabled. Fire up PowerShell and connect to your Office 365 tenant with: Remove the user from the shared mailbox delegation: Remove-MailboxPermission -Identity shared.mail@example.com -User user.mail@example.com -AccessRights FullAccess Then add the user to the shared mailbox delegation again, without automapping: Add-MailboxPermission -Identity shared.mail@example.com -User user.mail@example.com -AccessRight FullAccess -InheritanceType All -Automapping $false If you need to give the user send as permission too you can do: Sources: https://support.microsoft.com/en-us/help/2646504/how-to-remove-automapping-for-a-shared-mailbox-in-office-365

Edit user accounts with the command line in Windows 10

Add an admin account with password “123abc”: Make the account administrator: Add a domain user to the domain administrator group Activate the hidden administrator account: Change password for the hidden administrator account Activate the guest user account: Create a new user without a password: Change the password of a user: Delete a user account You will have to manually delete the user folder after deleting the account.

pip install directly from Github with Python 3

A lot of python libraries are more often updated on GitHub than in the “Python Package Index”. So if you want to get the latest of the greatest Python repository you should install Python packages directly from Github instead of PyPi. First, you need to install Git and then add it to PATH, if you are running Windows. Then simply install any Python package from GitHub like so: Of course, you will have to replace https://github.com/rg3/youtube-dl.git with the location of your package.

List of Windows Run commands

You can use these commands to run certain Windows settings directly from either Run or Start just by typing them in and hitting Enter. Super handy if you are working with a Windows installation in a foreign language 😉 Function…