Sign Up Now!

Sign up and get personalized intelligence briefing delivered daily.


Sign Up

Articles related to "productivity"


How to access your localhost application on any device

  • I have always had problems while trying to test my applications on my localhost machine.
  • The process was so painful that I would have to do some crazy port forwarding on my router (yes, using my internet provider public IP) or even deploy to staging environment server and access it on the desired device (sadly I did it once 😢).
  • In a nutshell, ngrok exposes local servers behind NATs and firewalls to the public internet over secure tunnels.
  • This port is linked to a public URL that can be accessed anywhere in the world by any device!
  • We can deploy any application/API on our localhost, expose it using ngrok and then turn it off.
  • And for those who are really worried about security, ngrok has an option to create a password protected tunnel.

save | comments | report | share on


Screencast Mode in VS Code

  • This week I released an update to my VS Code extension that lets you open a flexbox cheatsheet directly in the editor.
  • For recording gifs I use ScreenToGif. It’s an excellent little program but something I miss in it is the option to show the keys being pressed during a recording.
  • I needed this because one way to open the cheatsheet is by searching for a specific command in the “Command Pallete” and I wanted the key combination to be visible in the gif.
  • It’d be nice if the overlay only showed the keyboard shortcuts (key combinations) and nothing more.
  • If you open the settings (Ctrl+, (Win, Linux), Cmd+, (Mac)) and search for Screencast Mode, you’ll find two settings.
  • One of them is Only show keyboard shortcuts in Screencast Mode.

save | comments | report | share on


The Principle Of Association

  • I have called these kinds of associations "Leverage Points" in the past.
  • Leverage points, depending on what they are, usually will help to support both core pieces of what I see as forming your reputation - competence and standing-out.
  • If, for example, you have been featured by Google for writing a solid technical article, then placing this at the top of your resume (in an achievements section) will immediately associate yourself with Google.
  • Through my work with this site/newsletter, Coravel and writing some technical articles, I've had some awesome opportunities that I never expected.
  • I was featured by Microsoft on their main .NET community web site, on Steve Smith's podcast and recently on the .NET Core show - among other places.
  • Now, on my resume, I can point to the fact that I've been featured on this platform and potentially name off well-known community figures who have also been featured on these.

save | comments | report | share on


The Principle Of Association

  • I have called these kinds of associations "Leverage Points" in the past.
  • Leverage points, depending on what they are, usually will help to support both core pieces of what I see as forming your reputation - competence and standing-out.
  • If, for example, you have been featured by Google for writing a solid technical article, then placing this at the top of your resume (in an achievements section) will immediately associate yourself with Google.
  • Through my work with this site/newsletter, Coravel and writing some technical articles, I've had some awesome opportunities that I never expected.
  • I was featured by Microsoft on their main .NET community web site, on Steve Smith's podcast and recently on the .NET Core show - among other places.
  • Now, on my resume, I can point to the fact that I've been featured on this platform and potentially name off well-known community figures who have also been featured on these.

save | comments | report | share on


#discussWhat are your favorite VS Code extensions and why?

  • Just kidding, I wrote that one when I just wanted an excuse to get to know the VS Code API.
  • The only non-obvious thing, is that with the Azure Pipelines extension, you can change the language of a YAML build definition from YAML to Azure Pipelines and get some better intellisense.
  • My less well known but super useful one is REST Client that lets you do Postman-like requests without leaving the editor.
  • The "Remote Development" Extension (pack).
  • I use it daily and I would cry like a little child when someone would take it away from me!
  • This makes daily development so much easier!
  • Just set up your remote env and from that point just open VS Code and everything is setup.
  • I also published a post about my VS Code setup.
  • There I talk about the other extensions I use.

save | comments | report | share on


9 Tools You Should Be Using In Your Plugin Development

  • In addition, there's a smart autocompletion tool to help you write code faster, and an advanced 'find and replace' feature so you can quickly update the same string across your entire project.
  • The tool offers inline editors (enabling you to jump between related code snippets), and preprocessor support, to help render SCSS and LESS files.
  • You can get a local WordPress environment up and running pretty quickly, and a primary benefit is that XAMPP offers a close experience to a live server, while giving you the flexibility to tweak your installation to your exact requirements.
  • Like package managers, WP-CLI is a command line tool enabling you to run scripts in the terminal.
  • Travis CI is a complementary tool for PHPUnit that automatically runs your tests as you commit changes to GitHub. It's free for all open-source projects and will help you ensure your code isn't going to break under various server environments.

save | comments | report | share on


#discussIs Serverless really as cheap as everyone claims?

  • To put that in perspective, your Function could run 32,258 time per day and it would cost you ZILCH.
  • Here's how it works: Whenever your Function executes, Azure calculates how much memory it is using rounded up to the nearest 128MB.
  • So if you have a dead simple "Hello World" Serverless Function, that's going to count for 128MB of memory every time it runs, or, .125 gigabtyes.
  • To get to the execution cost, you take the total number of executions, and multiply it by how long it took the function to execute.
  • We now have to take this number and multiply it by how much memory the Function used each time it ran, which we already said was .125.
  • Let's just use 1 second as a nice, round, arbitrary number for all 939K executions.
  • That gives us $4,867,769.60 in Execution Time cost.

save | comments | report | share on


Efficient Learning Strategy

  • Both of them require a bit different approaches and environment to enhance and speed up your learning.
  • If you do not know exactly what you should learn, or you don’t have a specific goal, you are in a discovery mode.
  • If you know exactly what you need to learn, you are in an acquisition mode.
  • The main goal of this mode is to acquire a skill or a mental model.
  • Feedback is crucial for progress and efficient learning.
  • If you are in discovery mode, your goal is to figure out an exact topic/model/skill you want to acquire.
  • This is when you can switch to acquisition mode and learn the stuff fast and efficient.
  • The general strategy is similar to BFS algo: first, cover the breadth of topics shallowly and then go deeper into the one you think you need to learn in details.

save | comments | report | share on


My terminal is procrastinating 🙄

  • So I picked the scripts from my bashrc who take the longest to run, and turned them into on-demand commands.
  • So initial setup time is reduced to 20ms and usage gets the hit of 700ms later, on demand.
  • Now, nvm I use more often - but it cost me over a whopping 1.5 seconds.
  • It also is a bit trickier - because it loads up an environment, not just a command.
  • I chose to add this idem potency to the four major commands I use: node, npm, npx, nvm - but you can easily add more.
  • On the other hand - you can add anything to the list if there's a command you use often and want to join the party (yarn etc).
  • There you go, NVM reduced to 80ms and will only take up your time when needed.

save | comments | report | share on


#discussWhat do you use for password management?

  • I use simple passwords like (123456) for stuff I don't care about, and different passwords for accounts that I care about.
  • cloud solution) means that I should roll my own compilation/server for the app, cuz it's easy to provide an open source app and ship some extra code (that collects your passwords) with the binary.
  • KeePass on my Windows computers, along with Keepass2Android on my phone, and sync via DropBox / Google Drive (password database file is encrypted by KeePass).
  • My phones use an Android client for pass called Android-Password-Store which I am a maintainer for.
  • The password vault is just a file, so either you can move it to other devices yourself or use something like Dropbox if you want your passwords to update automatically across devices.
  • It's simple to use, create good / long password, store, encrypt, ...

save | comments | report | share on