Chadrick's Blog

  • Posts

web

python

web scraping many pdf files from websites for dataset preparation using python

There are good websites which store a lot of pdf files that can be used for data. However, it can be quite difficult to automate the downloading process with a simple web scraping tool because the data download url that the user wants resides behind another webpage. I will use IMF website for example.

(more…)
By chadrick_author, 10 months10 months ago
web

updating php version from 7.2 to 7.4 for wordpress and solving mysql extension error

I am running my wordpress in aws and recently my wordpress dashboard was giving my warnings to update php version from 7.2 to 7.4 for security. Updating php version I am currently using Ubuntu 18.04 version. This Ubuntu version doesn’t natively support php 7.4. So the following commands were required Read more…

By admin, 2 years2 years ago
web

wget google drive large files bypassing virus check

I was stuck with directly downloading a large google drive file(dataset file) to my server which was headless and thus I was forced to use the terminal. However, I could not download google drive link with wget since even in a browser it cannot by pass the virus check ignore Read more…

By chadrick_author, 2 years ago
web

fixing return data array from apollo client is duplicate of first item in array

Situation I am querying with apollo client to fetch some userinfo. From the server side which uses apollo server, I can check that it is returning an array of two items which have different contents. However, when I console the fetched data from apollo client, the array is somehow incorrect. Read more…

By chadrick_author, 3 years3 years ago
web

serving static files in subpath of domain in django

Problem My django project structure looks like this.(only showing files relevant to this problem) As you can see, there are two static dirs that has to be served: ‘prj/app/static/and ‘prj/static. When serving this project from the root of a domain such as ‘localhost:8000’, the following configuration for static files in 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
web

basic react project setup configurations

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

By admin, 3 years2 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
web

adding proxy to webpack dev server to separate backend api server

webpack-dev-server is a wonderful tool when developing due to live reloading features when working on react projects. However, a complication arises when the user begins to add data serving apis. By default, webpack-dev-server only serves the front-end related files when started, which leaves no room for the user to squash Read more…

By admin, 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
  • Eric on fix ‘certificate apiserver-kubelet-client not signed by CA certificate ca: crypto/rsa: verification error’ error during minikube start
  • Anonymous on qtwindeploy output missing ‘libgcc_s_seh-1.dll’ error fix
  • 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
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