Tuesday, October 27, 2020

Microsoft SEAL installation on macOS

  1. brew install cmake autoconf automake libtool shtool gflags

  2. xcode-select --install

  3. download https://github.com/google/googletest

  4. cd googletest-master

  5. cmake .

  6. make

  7. make install

  8. download https://github.com/microsoft/SEAL

  9. cd SEAL

  10. cmake .

  11. make

  12. make install

Resolution and Megapixel (8K / 4K UHD / 1440p / FHD)


Aspect Ratio

Proportion

17:9

1.88

16:9

1.77

5:3

1.66

16:10

1.6

3:2

1.5

4:3

1.33

5:4

1.25

Thursday, April 02, 2020

Install git-lfs in MacOS

Git Large File Storage (LFS) replaces large files such as audio samples, videos, datasets, and graphics with text pointers inside Git, while storing the file contents on a remote server like GitHub.com or GitHub Enterprise.

1. Download git-lfs from https://git-lfs.github.com/
2. Extract tarball: $tar zxvf git-lfs-darwin-amd64-v2.10.0.tar.gz 
3. Run install script: $sudo ./install.sh
4. Allow git-lfs app from Menu > System Preferences > Security & Privacy > allow git-lfs
5. Intsall git-lfs from git: $git lfs install

Tuesday, March 31, 2020

Google Search API in Python 3

[image source: https://towardsdatascience.com/current-google-search-packages-using-python-3-7-a-simple-tutorial-3606e459e0d4]
Install the Google package in python:
pip install google

Code:

try :
        from googlesearch import search
except ImportError:
        print("No Module named 'google' Found")

count = 0

for i in search(query="devharsh", tld='co.in', lang='en'):
        count += 1
        print(i)
        if(count > 20):
                break


Output:

(base) devharsh@Devharshs-MBP Downloads % python google_search.py
http://devharshinfotech.com/
http://devharshinfotech.com/aboutus.html
http://devharshinfotech.com/services.html
http://devharshinfotech.com/banking.html
http://devharshinfotech.com/clients.html
https://www.linkedin.com/company/devharsh-infotech-pvt-ltd-
https://www.facebook.com/devharshinfotech/
https://www.glassdoor.com/Overview/Working-at-Devharsh-Infotech-EI_IE1489739.11,28.htm
https://www.zaubacorp.com/company/DEVHARSH-INFOTECH-PRIVATE-LIMITED/U30007MH2004PTC146993
https://www.devharshinfotech.co.in/
https://www.justdial.com/Mumbai/Devharsh-Infotech-Pvt-Ltd-Near-Jaswanti-Landmark-Vikhroli-West/022PXX22-XX22-180816132003-K8B9_BZDET
https://www.indeed.co.in/Devharsh-Infotech-Pvt-Ltd,-Vikroli,-West-jobs-in-Vikhroli,-Mumbai,-Maharashtra
https://www.indiamart.com/luckyforms/profile.html
https://www.dnb.com/business-directory/company-profiles.devharsh_infotech_private_limited.4573fff3e216bfdf56a77b57d67fd683.html
https://panjiva.com/Devharsh-Infotech-Pvt-Ltd/30939713
https://www.fundoodata.com/companies-detail/Devharsh-Infotech-Pvt-Ltd/101820.html
https://www.zoominfo.com/c/devharsh-infotech-limited/358353372
https://github.com/devharsh
https://www.indiamart.com/devharsh-infotech-ltd/
https://hamariweb.com/names/hindu/hindi/boy/devharsh-meaning_25329
http://www.babynology.com/name/devharsh-m.html

Thursday, December 12, 2019

Install git on NetBSD 8.1

I am running NetBSD 8.1 on Virtualbox. Use the following commands to install and configure git on NetBSD if it was not pre-installed.


$ export PKG_PATH="http://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/amd64/8.1/All/"
$ su
# echo $PKG_PATH
# pkg_add -v pkgin
# pkg_add -v git
# exit
$ git
$ git config --global user.email "devharsh@live.in"
$ git config --global user.name "Devharsh Trivedi"
$ git config --global http.sslVerify false