Chadrick's Blog

  • Posts

March 2020

Uncategorized

git ignoring files in dir except some file patterns

Problem In cases of config dirs, I want to add a sample config file to git but ignore non-sample files that is actually used in local. For example, I am using using_config.json but do not want this to be added to git. On the other hand I do want config.sample.json Read more…

By chadrick_author, 3 years3 years ago
web

importing fuse.js in javascript

here is a sample code

By admin, 3 years ago
python

get attribute/inner html of html element in python selenium

If we had the following html, we can extract ‘value’ attribute and innerhtml with the following sample python code.

By admin, 3 years3 years ago
web

basic react project setup configurations

npm install commands add babel.config.json add webpack.config.js

By admin, 3 years2 years ago
python

set pip config file in windows and basic configurations

Setup create pip.ini file in C:\Users\Username\pip directory. This directory may not exist, if so, then create one manually. here are some common configurations that I add to the config file. if multiple values should be set for one key, add a space between items like I did with trusted-host. check Read more…

By chadrick_author, 3 years3 years ago
Uncategorized

stop tracking files in visual code file explorer

From top menu, go to file – preferences – settings and type in files.exlude in search bar. There you can add patterns for files to ignore or untrack.

By chadrick_author, 3 years3 years ago
error fix

add custom domain resolution in linux(could not resolve hostname error fix)

Problem when the local machine is having problems resolving domain name. This can happen when using domain names that are not public but setup in corporate intranet setups. Below is an example error message that I got when trying to git clone from corporate github which is not open to Read more…

By chadrick_author, 3 years3 years ago
web

get timestamp in javascript

unfortunately there isn’t any native way to get formatted timestamp. Here is a script that does the job. this will output YYMMDD_HHMMSS format timestamp

By chadrick_author, 3 years3 years ago
web

webpack dev server run error “Error: spawn chrome ENOENT”

Problem I had a react project that was originally worked in windows environment. I migrated to ubuntu environment and attempted to start project with webpack-dev-server. After installing all npm packages, I encoured the following error Solution This was caused because of my webpack-dev-server open config. Here is the devserver config Read more…

By admin, 3 years ago
error fix

“X11 proxy: Unsupported authorisation protocol” error fix

when calling nautlius on a remote server, I got the following error message. I was using MobaXterm, with X11 forwarding option on. Cause & Solution For my case, this was due to .Xauthority file lock down. from my home directory(/home/user), here is the ls output from googling, the “-c” and Read more…

By chadrick_author, 3 years3 years ago

Posts navigation

1 2 Next
Recent Posts
  • fix blank plot when using plotly in jupyter lab
  • pylance stuck on “Searching for source files”
  • paper review: “Graph Attention Networks”
  • fix “Certificate verification failed” error in apt update of docker container
  • fixing “Could not handshake: An unexpected TLS packet was received” error while apt update in docker container behind corporate proxy
Categories
  • algorithm
  • c/c++
  • cuda
  • data science
  • deep learning
  • error fix
  • kicad
  • kotlin
  • linux
  • postgres
  • python
  • pytorch
  • tensorflow
  • Uncategorized
  • web
Recent Comments
  • Andrew Mellinger on python implementation of rotating caliper algorithm
  • minhln14 on get rotation angle between two vectors
  • Anonymous on fix ‘certificate apiserver-kubelet-client not signed by CA certificate ca: crypto/rsa: verification error’ error during minikube start
  • Kartik on fix ‘certificate apiserver-kubelet-client not signed by CA certificate ca: crypto/rsa: verification error’ error during minikube start
  • radu on ssh local port forwarding and error fix for “channel 3: open failed: connect failed: Connection refused”
Archives
  • September 2022
  • July 2022
  • June 2022
  • May 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021
  • May 2021
  • April 2021
  • March 2021
  • February 2021
  • January 2021
  • December 2020
  • November 2020
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • December 2018
  • November 2018
Meta
  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • Posts
Hestia | Developed by ThemeIsle