Posts

Top 7 Free Cyber Security Newsletters

Image
The following is the list of the 7 free, most popular cyber security newsletters: The Hacker News SecurityWeek CSO SANS Newsletters WeLiveSecurity by ESET Cybersecurity Ventures Naked Security Following a few good newsletters is one of the easiest ways to keep up with security, where new vulnerabilities, breaches, and tools appear constantly. The roundup above mixes breaking news, vendor research, and practitioner commentary. Skimming one or two each week is usually enough to stay aware of major incidents and trends without being overwhelmed. Every source listed is free to subscribe to.

[Solved] Error: No such keg: /usr/local/Cellar/gcc

Image
If you are facing issues with Homebrew while installing or updating the GCC package (or any other module), follow this guide. The error occurred for me recently during my periodic homebrew updates on my MacBook Pro. devharsh@Devharshs-MacBook-Pro ~ % brew update && brew upgrade && brew cleanup                                                           Already up-to-date. Warning:  Skipping gcc: most recent version 12.1.0 not installed For some reason, I had a warning flashing up for GCC. So I tried to install the missing version. devharsh@Devharshs-MacBook-Pro ~ % brew install -f gcc@12 Error:  gcc 12.1.0_1 is already installed To install 12.1.0, first run:    brew unlink gcc Which unsurprisingly did not work, so I tried unlinking it.  devharsh@Devharshs-MacBook-Pro ~ % brew unlink gcc Error:  No su...

[How To] Upgrade to Python 3.9 in Google Colab

Image
Google Colaboratory , or “Colab” for short, is a product from Google Research. Colab allows anybody to write and execute arbitrary python code through the browser and is especially well suited to machine learning, data analysis, and education. More technically, Colab is a hosted Jupyter notebook service that requires no setup to use while providing access free of charge to computing resources, including GPUs. By default, it starts the runtime with Python version 3.7. If you want to upgrade the version in your current notebook, then follow these steps in the given order: 1) !python --version Python 3.7.13 2) !sudo apt-get update -y Get:1 http://ppa.launchpad.net/c2d4u.team/c2d4u4.0+/ubuntu bionic InRelease [15.9 kB] Hit:2 http://ppa.launchpad.net/cran/libgit2/ubuntu bionic InRelease Get:3 https://cloud.r-project.org/bin/linux/ubuntu bionic-cran40/ InRelease [3,626 B] Get:4 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu bionic InRelease [15.9 kB] Hit:5 http://ppa.launchpad.net/graphics-d...

[How To] Install Pyfhel in macOS

Image
  Tested on Intel-based (x86_64) MacBook, not tested on M1/M2 (ARM) Apple Clang does not support  -fopenmp  and  -libseal , use GCC or CLANG % git clone --recursive https://github.com/ibarrond/Pyfhel 2.a) create  requirements.txt  file "setuptools<=60.9", "wheel", "cython>=3.0.0a9", "numpy>=1.20", "cmake>=3.15", "toml>=0.10" 2.b)  % pip3 install -r requirements.txt edit  pyproject.toml Line #111 [ Afhel ] extra_compile_args {Darwin = ["-std=c++17","-O3","-fopenmp"]}, extra_link_args {Darwin = ["-fopenmp","-dynamiclib"]}, Repeat the above for [ CYTHON EXTENSIONS ]

[Solved] Jupyter notebook raises Module Not Found Error

Image
I recently ran into issues on my MacBook with Jupyter notebooks, where it could not find any packages and was throwing "ModuleNotFoundError: No module named ****" for several libraries. I already had these packages installed but somehow Jupyter python kernel could not find it. I tried to install these packages in the notebook cells with the command !pip install **** but this did not help either. I also tried %brew reinstall jupyterlab and that did not work as well. Finally, I found a fix. Solution: Step-1: Install/upgrade jupyter packages: % pip3 install --upgrade jupyter notebook jupyterlab Step-2: Run jupyter with this command: % jupyter-lab

[Solved] ld: library not found for -lntl

Image
NTL: A Library for doing Number Theory NTL is a high-performance, portable C++ library providing data structures and algorithms for manipulating signed, arbitrary length integers and for vectors, matrices, and polynomials over the integers and over finite fields. You might face a linking error with NTL in macOS using the Apple Clang compiler: % make                                 Consolidate compiler generated dependencies of target degrees [ 25%] Linking CXX executable degrees ld: library not found for -lntl clang: error: linker command failed with exit code 1 (use -v to see invocation) Solution: % brew install NTL % export LIBRARY_PATH=/usr/local/lib % make This linker error means the build was told to link NTL, the C++ number theory library, but cannot find it. NTL provides arbitrary length integers and operations on polynomials and matrices over rings and finite fields. Installing NTL and poin...

[How To] Run MinimaxComp_degrees in macOS

Image
MinimaxComp_degrees This algorithm finds optimized degrees for comparison/max/ReLU algorithms using minimax composite polynomial on the RNS-CKKS scheme, which was proposed in https://ieeexplore.ieee.org/document/9517029 and https://eprint.iacr.org/2021/1215 . How to run on macOS using the Apple Clang compiler: 1. % brew install NTL 2. % export LIBRARY_PATH=/usr/local/lib 3. % git clone  https://github.com/eslee3209/MinimaxComp_degrees 4. % cd MinimaxComp_degrees 5. % cmake -S . -B build 6. % cd build 7. % make 8. % ./degrees Output: ------------------------------------ alpha: 20 epsilon: 0.2002716064453125e-4 mintime: 162 depth: 22 0.39825903512705770933e-4 7 13 15 15 59   This guide runs MinimaxComp_degrees on macOS, an algorithm that finds optimized polynomial degrees for comparison, max, and ReLU operations under the RNS-CKKS homomorphic encryption scheme, based on the referenced research. CKKS can only evaluate polynomials on encrypted data, so non-polyn...