arti villa

maker. the world needs more polymaths. being a generalist is a good thing. TM.¯_(ツ)_/¯

Read this first

webpack 4 vscode debugger

After going through several configurations, I still couldn’t figure out how to set up a multi-entry webpack configuration to debug my configuration files and my application. As it turns out it was quite simple with one caveat – so I just wanted to share this setup if you run into this issue.

 Installation

Make sure you have the chrome debugger extentsion installed.

 Setup

Here’s my launch.json config file:

        {
            "type": "node",
            "request": "launch",
            "name": "webpack",
            "runtimeExecutable": "node",
            "program": "${workspaceFolder}/node_modules/.bin/webpack-cli",
            "args": [
                "--config",
                "webpack.config.js",
                "--mode",
                "development"
            ],
            "restart": false,
            "autoAttachChildProcesses": true,
            "console":
...

Continue reading →


getting 1password to sync to iCloud

I’m sure if you go through enough forums you’ll come across this ridiculously annoying issue that i’ve finally subsided.

If you constantly keep getting 1password’s *iClouds sessions expiration * notice, jump into your 1password settings sync window, switch to none and enable iCloud sync settings again. Agree to sync the iCloud mini player as well. That should fix it!

Note: I’m using the older non subscription application.

1password-issue.png

Screen Shot 2017-11-03 at 1.27.18 PM.png

View →


stop copying files between git branches, switch to git worktrees

So this goes without saying but if you’re new to learning git been tirelessly in the weeds of some project where you need to copy files from one branch over to another, look no further.

In quite a few instances, especially in the early days, I’ve gone with the good ol’ copy-paste route between git branches. Let’s face it. Attempting the git rebase -i HEAD~@#$@#$ or git merge can be quite daunting for newcomers including the host of file conflicts you’ll need to be able to resolve. Or the merge might happen successfully and you’d have realized copying partial files was the way to go but wanted to test if partial copies would still lead to a successful build.

 where in the version queue do you stand?

Before you attempt a diff to preview files differences between the two branches, a quick way to know where all the branches stand next to each other can be quite useful. Using the CLI tool t...

Continue reading →


creating subdomains on ZEIT parked at iwantmyname

I’m sure this isn’t the most complicated setup but until zeit allows me to transfer the dozen or so domains parked ? on a third party site, follow the steps to create your own subdomain.

Note, I’ve already purchased the domain in the past. If you haven’t already done so, look to buy through zeit domains itself. Their aliasing is a simpler process than this roundabout way.

DNS settings might take a few hours to propagate changes initially but since their essence is to make deployments a no brainer with zero downtime it’s a relatively one time wait. ?


 route nameservers to zeit

Login to iwantmyname and update the domain nameservers at this link https://iwantmyname.com/dashboard/domains/ns-update/artivilla.com replacing the last bit with your domain name.

iwantmyname_Dashboard___artivillachandok_gmail_com.png

 add your domains via ZEIT

Login to zeit using their cli tool ‘now’ that should prompt you to create an account if you haven’t...

Continue reading →


how to maximize your hotspot connection

I’ve been having quite a delay tethering my hotspot wifi to my iPhone 6 since upgrading to the newest iOS 11. T-mobile troubleshooted few steps that might be worth trying prior to calling customer support.

 connect you iPhone via wifi, a USB cord or bluetooth

Make sure the connection is viewable under ‘System Preferences > Network’ shown as follows. Note, I’m using the USB setting.

Network.png

 how to check your wifi download/upload speeds?

Use any of the online sites or your nifty terminal to test your network and make sure the network detected is your mobile data plan. Install the homebrew pkg speedtest-cli. Keep a score of the speed before moving on to troubleshooting tips.

1_____zsh_.png

 troubleshoot

  1. Clear your history and data under Settings > Safari > Clear History and Website Data

clear_data.PNG

  1. Upgrade to the newest firmware under ‘Settings > General > Software Update’

upgrade_software.PNG

  1. If you are not traveling...

Continue reading →