Posts

Add Local Repo to GitHub

  In the local directory containing the code run: git init -b main git add . git commit -m "Initial commit" Then sign into GitHub and create a repo with name <REPO NAME>. Do not include a README or LICENSE file. Get the URL: https://github.com/nicholishiell/<REPO NAME> Add GitHub as remote location: git remote add origin https://github.com/nicholishiell/rcsdb.git   Then push local code to remote:  git push -u origin main 

Kill process running on port

 lsof -i :5000 kill -9 $(lsof -t -i:5000)  

mounting network drive

 sudo mount.cifs //rssmbprd.carleton.ca/BaChu$ /home/nickshiell/storage -o vers=3,username=nickshiell,domain=cunet,uid=$(id -u),gid=$(id -g)

Document Layout Analysis Datasets

 Here is a list of Document Layout Analysis data sets and the labels which they contain.  Data Set Labels DocBank Abstract, Author, Caption, Equation, Figure, Footer, List, Paragraph, Reference, Section, Table, Title PubLayNet Text, Title, List, Table, Figure DocLayNet Caption, Footnote, Formula, List-Item, Page-foote, Page-header, Picture, Section-header, Table, Text, Title GROTOAP2 Abstract, Acknowledgements, Affiliation, Author, Bib_info, Body_content, ...

Passwordless SSH

On local computer run: cd ~/.ssh  ssh-keygen -f <rsa_filename> ssh-copy-id -i ~/.ssh/<rsa_filename>.pub user@host   where <rsa_filename> is the name of the file which will store the key. 

Setting Up GNU Scientific Library (GSL)

Image
Introduction I have a few scientific computing projects that I would like to do which will require a good numerical methods library. I am going to try to use GSL. Getting the Library Getting the library install was easy enough, just needed to use apt-get sudo apt-get install libgsl-dev To check that the installation succeeded: ldconfig -p | grep gsl  Which resulted in: First Example To test the library I grabbed a basic example from the documentation: #include <stdio.h> #include <gsl/gsl_sf_bessel.h> int main ( void ) { double x = 5.0 ; double y = gsl_sf_bessel_J0 (x); printf ( "J0(%g) = %.18e\n" , x, y); return 0 ; } and compiled it with the following: g++ main.cpp -lgsl -o test running the binary yields:   which I guess is the value of the first Bessel Function at 5?