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, 11 months11 months ago
web

importing fuse.js in javascript

here is a sample code

By admin, 11 months 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, 11 months11 months ago
web

basic react project setup configurations

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

By admin, 11 months11 months 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, 11 months11 months 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, 11 months11 months 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, 12 months12 months 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, 12 months11 months 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, 12 months 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, 12 months12 months ago

Posts navigation

1 2 Next
Recent Posts
  • is it okay to calculate loss in cpu and backpropagate in torch?
  • paper review: “High-Performance Large-Scale Image Recognition Without Normalization”
  • gitignore ignore config files except sample config file
  • convert subquery columns into array of json objects
  • postgres database backup and restoring
Categories
  • algorithm
  • c/c++
  • cuda
  • data science
  • deep learning
  • error fix
  • kicad
  • kotlin
  • linux
  • postgres
  • python
  • pytorch
  • tensorflow
  • Uncategorized
  • web
Recent Comments
  • Anonymous on solving “‘grub-efi-amd64-signed’ package failed to install into /target/.” error while installing ubuntu 20.04
  • Anonymous on how to install cudnn(from tar file)
  • Vaishal on solving “‘grub-efi-amd64-signed’ package failed to install into /target/.” error while installing ubuntu 20.04
  • Anonymous on paper review: Intriguing properties of neural networks (getting adversarial samples using L-BGFS method)
  • Shraddha on cv2 resize interpolation methods
Archives
  • 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