Simple Vue directive for hotkeys

I’m a fan of hotkeys and I use them for a lot of things. In fact, I believe that 80% of the commands I use in my IDEs (Visual Studio and Visual Studio Code mostly) I use via hotkeys. Nothing is better than CTRL + p in VS Code or CTRL + k + d in VS. Anyway, while a lot of users really don’t care about that, those that have data entry intensive use cases will probably appreciate some forethought in hotkeys in the apps they use. ...

July 26, 2019 · 2 min · LPains

Tips and tricks for vue with typescript

I’ve been working on a vue project with typescript for almost a year now. Along the way, we found a few little things that I would like to share. Everything shown here is buried in vue’s documentation somewhere, you may need to dig a little, but it is all there. Note that all examples below use single file components and typescript 3. The project was created using vuecli 3. #1 typing $store and $refs in vue component When using the $store or $refs in a component, there is no typing available due to how vue wire the component together. You can, however, use regular typescript typing in the component class. The only catch is that since vue is assigning values to the properties you create, you need to use the ! operator in the property. This signals the transpiler that this property is going to be set and no warnings need to be issued. Additionally, this approach allows you to easily call methods from imported components which is sweet. ...

June 23, 2019 · 3 min · LPains

TFVC to git import alternative

On [Migrating from TFS + TFVC to VSTS + git]({{ site.baseurl }}{% link _posts/2018-7-15-migrating-from-tfs-to-vsts-git.md %}) post I showed how to export your TFVC repository, or a part of it, to a git repository using git-tfs tool. Today, I found an alternative totally by chance and it might be just what you needed to finally move to git. TFS 2018 and Azure DevOps offers an option called Import Repository located at Code in TFS or Repos Azure DevOps. This option will import or create a git repository from another host such as github or a local TFVC repository. While Microsoft does caution against importing history from TFVC into your new git repository, they actually provide an option to import up to 180 days of history. ...

February 13, 2019 · 1 min · LPains
This blog is so slow...

Blog Changes

Recently, I run a GT Metrix test on my blog and got an abysmal D score. After some investigation I noticed a few things that need improvement: Disqus was loading too many things that I really didn’t care for. This included ads. Many scripts, styles and images were not optimized nor entirely needed. No browser caching was implemented To fix Disqus problem I removed it entirely, I really don’t like ads, specially how Disqus introduced them in their free offering. I’m evaluating an alternative option and will reintroduce commenting soon, I hope. ...

February 11, 2019 · 1 min · LPains

Build and Deploy Xamarin.iOS to Test Flight with Azure DevOps

The goal here is to build a Xamarin.iOS app from a git repository, create a releasable .ipa file and push it to the App Store Connect for Test Flight. What you will need A paid apple developer account Working Xamarin.iOS project in a Source Control system that Azure DevOps can access If you need a sample application, you can grab one here Azure DevOps account and project (it is free, go get one) Register app ID and get certificate and provisioning profile At the end of this section you should have .p12 signing certificate and a .mobileprovision provisioning profile. There are some good content about these next steps so I will just refer to them: ...

January 31, 2019 · 3 min · LPains