all blog posts

Managing Environment Variables with PowerShell

Working with environment variables in Windows is as easy as:

Win + Pause > "Advanced system settings" > "Environment Variables..."

After which you get a tiny, unresizable, form where you can view and manage them. Something better eventually arrived with Windows 10 but still, PowerShell :)

Use Autohotkey to open the window with Left Alt + Pause:

LAlt & Pause::Run % "rundll32 sysdm.cpl,EditEnvironmentVariables"
12 Apr 2017
powershell windows

PowerShell profiles

Reload PowerShell profile

. $profile
11 Apr 2017
powershell windows

Package Manager Console Entity Framework 6 Migrations profile

This tutorial is about adding the following functionality to the Entity Framework Migrations CLI:

  • Execute commands against the project containing the migrations by providing the most likely -Project parameter value
  • Allow updating the database using a numeric TargetMigration (-2 = migrate to the third last migration)
10 Apr 2017
powershell

Synchronize Additional Folders With Dropbox Using Junction on Windows

Dropbox is great! I’m pretty sure you’ve already heard of it but for those who have not: It allows you to synchronize about 2 gig (and up to 16 gig with some effort) worth of documents, pictures or other files between your different computers, laptops or other mobile devices. The files are kept on your machine(s) and in the cloud, but they are also accessible from anywhere with a browser and shareable with everyone you’d like.

4 Mar 2013

Notepad++ double click PHP variable including the $ sign

Built-in in Notepad++ since 2016:

Settings > Preferences > Delimiter > Add you character as part of word > $

7 Dec 2012

Notepad++ Bookmarks

In many text-editors there are means to easily jump with the cursor between different points in the code and this is no different in Notepad++. Bookmarks have their own margin where they can be toggled with a mouse click.

4 Dec 2012

Pragmatic Tip 2: Think! About Your Work

Turn off the autopilot and take control. Constantly critique and appraise your work.
— The Pragmatic Programmers

2 Dec 2012
pragmatic-tips

Pragmatic Tip 1: Care About Your Craft

“Why spend your life developing software unless you care about doing it well?”
— The Pragmatic Programmers

Yet Another Blog

Scott Hanselman said “Now, go write, create, commit.”. It took a while but here we are, blogging about “Programming and stuff”. I will be writing about languages and platforms I’m working on or learning about, solutions to problems I’ve struggled with and really any CS related topic I’m otherwise curious about.

1 Dec 2012
pragmatic-tips