The only reason I am using sublime text instead of VSCode is that I often open up tiny files for a few seconds, and sublime opens instantly no matter what, while VSCode needs a second or so to start. I can however open new files when I have started it […]
Monthly Archives: November 2019
I have a Gigabyte GA-Z97X-Gaming 5 motherboard and I am thinking to place an X16 PCI express video card like the GTX 1660 Ti or Super with 2 fans. When looking at the motherboard and case it seems the memory slots will be pretty close to the video card and […]
I’m trying to write a shortcut for a frequently visited directory so that I can eliminatecd (I know, I know, but I’m lazy). So I wrote a function in my .zshrc that does this: progs () { if [[ -z $1 ]]; then cd /Volumes/data/progs else cd /Volumes/data/progs/$1 fi } […]
Just a quick disclaimer: I initially posted this question to Crypto site but was told it was too specific for that site. I am looking for a safe method to encrypt a local file on my machine. Let’s say I have a file containing my logins and passwords — how […]
Many programming languages have a sleep function that will delay a program’s execution for a given number of seconds. This functionality is absent from JavaScript, however, owing to its asynchronous nature. In this article, we’ll look briefly at why this might be, then how we can implement a sleep function […]
How to use the prepareForValidation method in Form Request classes to cast request parameters to Enums.