Experiments
https://s3-us-west-2.amazonaws.com/s.cdpn.io/148866/img-original.jpg
+From f5faa2ef095f035110f83e17da0b35d3a34d6b97 Mon Sep 17 00:00:00 2001
From: Navan Chauhan I know that the title is a bit weird. I was trying to interact with a video under an iPhone Bezel Screen frame. Turns out, you can disable pointer events! In Tailwind, it is as simple as adding In CSS, this can be done by: Let us try this in a simple example. Here, we create a button and overlay a transparent box
+Interacting with underlying element in HTML
+
+
+<div class="row-span-2 md:col-span-1 rounded-xl border-2 border-slate-400/10 bg-neutral-100 p-4 dark:bg-neutral-900">
+ <div class="content flex flex-wrap content-center justify-center">
+ <img src="iphone-12-white.png" class="h-[60vh] z-10 absolute">
+ <!--<img src="screenshot2.jpeg" class="h-[57vh] mt-4 mr-1 rounded-[2rem]">-->
+ <video src="screenrec.mp4" class="h-[57vh] mt-4 mr-1 rounded-[2rem]" controls muted autoplay></video>
+ </div>
+</div>
+
pointer-events-none
to the bezel screen.
+.className {
+ pointer-events: none
+}
+
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
+
+
+
+
+
+
Example
+
+
+<div style="height: 200px; width: 300px; background-color: rgba(255, 0, 0, 0.4); z-index: 2; position: absolute;">
+A box with 200px height and 200px width
+</div>
+<button style="z-index: 1; margin-top: 20px; margin-bottom: 200px;" onclick="alert('You were able to click this button')">Try clicking me</button>
+
+
+
As you can see, you cannot click the button because the red box comes in the way. We can fix this by adding pointer-events: none
to the box.
<div style="height: 200px; width: 300px; background-color: rgba(0, 255, 0, 0.4); z-index: 2; position: absolute; pointer-events: none;">
+A box with 200px height and 300px width
+</div>
+<button style="z-index: 1; margin-top: 20px; margin-bottom: 200px" onclick="alert('You were able to click this button')">Try clicking me</button>
+</div>
+
++
+If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.-- cgit v1.2.3 From ea7a6ce794dbda1a7eded1d5e663897d46d21fa2 Mon Sep 17 00:00:00 2001 From: Navan Chauhan
Technically this should work for any platform that OpenWatcom 2 supports compiling binaries for. Some instructions are based on a post at retrocoding.net, + and John Tsiombikas's post
+ +You should already have XCode / Command Line Tools, and Homebrew installed. To compile Open Watcom for DOS you will need DOSBox (I use DOSBox-X).
+ +brew install --cask dosbox-x
+
+If this process is super annoying, I might make a custom homebrew tap to build and install Open Watcom
+ +git clone https://github.com/open-watcom/open-watcom-v2
+cp open-watcom-v2/setvars.sh custom_setvars.sh
+
+Now, edit this setvars.sh
file. My file looks like this:
#!/bin/zsh
+export OWROOT="/Users/navanchauhan/Developer/8088Stuff/open-watcom-v2"
+export OWTOOLS=CLANG
+export OWDOCBUILD=0
+export OWGUINOBUILD=0
+export OWDISTRBUILD=0
+export OWDOSBOX="/Applications/dosbox-x.app/Contents/MacOS/dosbox-x"
+export OWOBJDIR=binbuildV01
+. "$OWROOT/cmnvars.sh"
+echo "OWROOT=$OWROOT"
+cd "$OWROOT"
+
+Note, your OWRTOOT
is definitely going to be in a different location.
source ./custom_setvars.sh
+./build.sh
+./build.sh rel
+
+This will build, and then copy everything to the rel
directory inside open-watcom-v2
directory. Since I ran this on an Apple Silicon Mac,
+ all the binaries for me are in the armo64
directory. You can now move everything inside the rel folder to another location, or create a simple
+ script to init all variables whenever you want.
I like having a script called exportVarsForDOS.sh
#!/bin/zsh
+
+export WATCOM=/Users/navanchauhan/Developer/8088Stuff/open-watcom-v2/rel
+export PATH=$PATH:$WATCOM/armo64
+export EDDAT=$WATCOM/eddat
+
+# For DOS 8088/8086 development
+export INCLUDE=$WATCOM/h
+export LIB=$WATCOM/lib286 # You don't really need this
+
+Then, when you need to load up these variables, you can simply run source exportVarsForDOS.sh
or . exportVarsForDOS.sh
Create a new file called example1.c
#include<stdio.h>
+
+int main() {
+ printf("Hello World!");
+ return 0;
+}
+
+First we compile the code:
+ +$ wcc example1.c
+Open Watcom C x86 16-bit Optimizing Compiler
+Version 2.0 beta Mar 15 2024 13:11:55
+Copyright (c) 2002-2024 The Open Watcom Contributors. All Rights Reserved.
+Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
+Source code is available under the Sybase Open Watcom Public License.
+See https://github.com/open-watcom/open-watcom-v2#readme for details.
+example1.c: 7 lines, included 818, 0 warnings, 0 errors
+Code size: 19
+
+Then, link to make an executable:
+ +$ wlink name example1.exe system dos file example1.o
+Open Watcom Linker Version 2.0 beta Mar 15 2024 13:10:09
+Copyright (c) 2002-2024 The Open Watcom Contributors. All Rights Reserved.
+Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.
+Source code is available under the Sybase Open Watcom Public License.
+See https://github.com/open-watcom/open-watcom-v2#readme for details.
+loading object files
+searching libraries
+creating a DOS executable
+
+If you want to test this executable, jump to the section titled Testing with DOSBox-X
below.
obj = main.o hello.o
+bin = tizts.com
+
+CC = wcc
+CFLAGS = -0
+LD = wlink
+
+$(bin): $(obj)
+ $(LD) name $@ system dos file main.o file hello.o
+
+.c.o:
+ $(CC) $(CFLAGS) $<
+
+clean:
+ rm $(obj) $(bin)
+
+Where, main.c
void hello(void);
+
+int main(void)
+{
+ hello();
+ return 0;
+}
+
+and hello.c
/* hello.c */
+#include <stdio.h>
+
+void hello(void)
+{
+ printf("Hello!");
+}
+
+To compile into tizts.com
simply run wmake
$ wmake
+➜ simple-cpp wmake
+Open Watcom Make Version 2.0 beta Mar 15 2024 13:10:16
+Copyright (c) 2002-2024 The Open Watcom Contributors. All Rights Reserved.
+Portions Copyright (c) 1988-2002 Sybase, Inc. All Rights Reserved.
+Source code is available under the Sybase Open Watcom Public License.
+See https://github.com/open-watcom/open-watcom-v2#readme for details.
+ wcc -0 main.c
+Open Watcom C x86 16-bit Optimizing Compiler
+Version 2.0 beta Mar 15 2024 13:11:55
+Copyright (c) 2002-2024 The Open Watcom Contributors. All Rights Reserved.
+Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
+Source code is available under the Sybase Open Watcom Public License.
+See https://github.com/open-watcom/open-watcom-v2#readme for details.
+main.c(8): Warning! W138: No newline at end of file
+main.c: 8 lines, included 53, 1 warnings, 0 errors
+Code size: 12
+ wcc -0 hello.c
+Open Watcom C x86 16-bit Optimizing Compiler
+Version 2.0 beta Mar 15 2024 13:11:55
+Copyright (c) 2002-2024 The Open Watcom Contributors. All Rights Reserved.
+Portions Copyright (c) 1984-2002 Sybase, Inc. All Rights Reserved.
+Source code is available under the Sybase Open Watcom Public License.
+See https://github.com/open-watcom/open-watcom-v2#readme for details.
+hello.c: 8 lines, included 818, 0 warnings, 0 errors
+Code size: 17
+ wlink name tizts.com system dos file main.o file hello.o
+Open Watcom Linker Version 2.0 beta Mar 15 2024 13:10:09
+Copyright (c) 2002-2024 The Open Watcom Contributors. All Rights Reserved.
+Portions Copyright (c) 1985-2002 Sybase, Inc. All Rights Reserved.
+Source code is available under the Sybase Open Watcom Public License.
+See https://github.com/open-watcom/open-watcom-v2#readme for details.
+loading object files
+searching libraries
+creating a DOS executable
+
+Create a file called CMakeLists.txt
project(hello)
+
+set(SOURCES abc.c)
+
+add_executable(hello ${SOURCES})
+
+Where, abc.c
is:
#include <stdio.h>
+
+int main() {
+ printf("Does this work?");
+ return 0;
+}
+
+mkdir build
+cd build
+
+And build using CMake
+ +cmake -DCMAKE_SYSTEM_NAME=DOS -DCMAKE_SYSTEM_PROCESSOR=I86 -DCMAKE_C_FLAGS="-0 -bt=dos -d0 -oaxt" -G "Watcom WMake" ../..
+
+
+There you have it. Three different ways to compile a C program on a macOS device in 2024 that can run on an IBM PC 5150 (which was released in 1981!)
+ +cp example1.exe ~/Downloads
+/Applications/dosbox-x.app/Contents/MacOS/dosbox-x
+
+In DOSBox-X we now mount the ~/Downloads
folder as our C:
drive
mount C ~/Downloads
+
+
+Switch to the C drive
+ +C:
+
+
+Run the program:
+ +example1
+
+
+
+
+My DOSBox setup might look slightly different than yours...
+ +If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.+ +
I have a similar post titled Polynomial Regression Using Tensorflow that used tensorflow.compat.v1
(Which still works as of TF 2.16). But, I thought it would be nicer to redo it with newer TF versions.
I will be skipping all the introductions about polynomial regression and jumping straight to the code. Personally, I prefer using scikit-learn
for this task.
Again, we will be using https://drive.google.com/file/d/1tNL4jxZEfpaP4oflfSn6pIHJX7Pachm9/view (Salary vs Position Dataset)
+ +If you are in a Python Notebook environment like Kaggle or Google Colaboratory, you can simply run:
+ +!wget --no-check-certificate 'https://docs.google.com/uc?export=download&id=1tNL4jxZEfpaP4oflfSn6pIHJX7Pachm9' -O data.csv
+
+If you just want to copy-paste the code, scroll to the bottom for the entire snippet. Here I will try and walk through setting up code for a 3rd-degree (cubic) polynomial
+ +import pandas as pd
+import tensorflow as tf
+import matplotlib.pyplot as plt
+import numpy as np
+
+df = pd.read_csv("data.csv")
+
+Here, we initialize the X and Y values as constants, since they are not going to change. The coefficients are defined as variables.
+ +X = tf.constant(df["Level"], dtype=tf.float32)
+Y = tf.constant(df["Salary"], dtype=tf.float32)
+
+coefficients = [tf.Variable(np.random.randn() * 0.01, dtype=tf.float32) for _ in range(4)]
+
+Here, X
and Y
are the values from our dataset. We initialize the coefficients for the equations as small random values.
These coefficients are evaluated by Tensorflow's tf.math.poyval
function which returns the n-th order polynomial based on how many coefficients are passed. Since our list of coefficients contains 4 different variables, it will be evaluated as:
y = (x**3)*coefficients[3] + (x**2)*coefficients[2] + (x**1)*coefficients[1] (x**0)*coefficients[0]
+
+
+Which is equivalent to the general cubic equation:
+ + + + + +$$ +y = ax^3 + bx^2 + cx + d +$$ + +### Optimizer Selection & Training +optimizer = tf.keras.optimizers.Adam(learning_rate=0.3)
+num_epochs = 10_000
+
+for epoch in range(num_epochs):
+ with tf.GradientTape() as tape:
+ y_pred = tf.math.polyval(coefficients, X)
+ loss = tf.reduce_mean(tf.square(y - y_pred))
+ grads = tape.gradient(loss, coefficients)
+ optimizer.apply_gradients(zip(grads, coefficients))
+ if (epoch+1) % 1000 == 0:
+ print(f"Epoch: {epoch+1}, Loss: {loss.numpy()}"
+
+
+final_coefficients = [c.numpy() for c in coefficients]
+print("Final Coefficients:", final_coefficients)
+
+plt.plot(df["Level"], df["Salary"], label="Original Data")
+plt.plot(df["Level"],[tf.math.polyval(final_coefficients, tf.constant(x, dtype=tf.float32)).numpy() for x in df["Level"]])
+plt.ylabel('Salary')
+plt.xlabel('Position')
+plt.title("Salary vs Position")
+plt.show()
+
+
+import tensorflow as tf
+import numpy as np
+import pandas as pd
+import matplotlib.pyplot as plt
+
+df = pd.read_csv("data.csv")
+
+############################
+## Change Parameters Here ##
+############################
+x_column = "Level" #
+y_column = "Salary" #
+degree = 2 #
+learning_rate = 0.3 #
+num_epochs = 25_000 #
+############################
+
+X = tf.constant(df[x_column], dtype=tf.float32)
+Y = tf.constant(df[y_column], dtype=tf.float32)
+
+coefficients = [tf.Variable(np.random.randn() * 0.01, dtype=tf.float32) for _ in range(degree + 1)]
+
+optimizer = tf.keras.optimizers.Adam(learning_rate=learning_rate)
+
+for epoch in range(num_epochs):
+ with tf.GradientTape() as tape:
+ y_pred = tf.math.polyval(coefficients, X)
+ loss = tf.reduce_mean(tf.square(Y - y_pred))
+ grads = tape.gradient(loss, coefficients)
+ optimizer.apply_gradients(zip(grads, coefficients))
+ if (epoch+1) % 1000 == 0:
+ print(f"Epoch: {epoch+1}, Loss: {loss.numpy()}")
+
+final_coefficients = [c.numpy() for c in coefficients]
+print("Final Coefficients:", final_coefficients)
+
+print("Final Equation:", end=" ")
+for i in range(degree+1):
+ print(f"{final_coefficients[i]} * x^{degree-i}", end=" + " if i < degree else "\n")
+
+plt.plot(X, Y, label="Original Data")
+plt.plot(X,[tf.math.polyval(final_coefficients, tf.constant(x, dtype=tf.float32)).numpy() for x in df[x_column]]), label="Our Poynomial"
+plt.ylabel(y_column)
+plt.xlabel(x_column)
+plt.title(f"{x_column} vs {y_column}")
+plt.legend()
+plt.show()
+
+
+import tensorflow as tf
+import numpy as np
+import pandas as pd
+import matplotlib.pyplot as plt
+
+df = pd.read_csv("data.csv")
+
+############################
+## Change Parameters Here ##
+############################
+x_column = "Level" #
+y_column = "Salary" #
+degree = 2 #
+learning_rate = 0.3 #
+num_epochs = 25_000 #
+############################
+
+X = tf.constant(df[x_column], dtype=tf.float32)
+Y = tf.constant(df[y_column], dtype=tf.float32)
+
+coefficients = [tf.Variable(np.random.randn() * 0.01, dtype=tf.float32) for _ in range(degree + 1)]
+
+optimizer = tf.keras.optimizers.Adam(learning_rate=learning_rate)
+
+def loss_function():
+ pred_y = tf.math.polyval(coefficients, X)
+ return tf.reduce_mean(tf.square(pred_y - Y))
+
+for epoch in range(num_epochs):
+ optimizer.minimize(loss_function, var_list=coefficients)
+ if (epoch+1) % 1000 == 0:
+ current_loss = loss_function().numpy()
+ print(f"Epoch {epoch+1}: Training Loss: {current_loss}")
+
+final_coefficients = coefficients.numpy()
+print("Final Coefficients:", final_coefficients)
+
+print("Final Equation:", end=" ")
+for i in range(degree+1):
+ print(f"{final_coefficients[i]} * x^{degree-i}", end=" + " if i < degree else "\n")
+
+plt.plot(X, Y, label="Original Data")
+plt.plot(X,[tf.math.polyval(final_coefficients, tf.constant(x, dtype=tf.float32)).numpy() for x in df[x_column]], label="Our Polynomial")
+plt.ylabel(y_column)
+plt.xlabel(x_column)
+plt.legend()
+plt.title(f"{x_column} vs {y_column}")
+plt.show()
+
+
+bx = tf.pow(coefficients[1], X)
+pred_y = tf.math.multiply(coefficients[0], bx)
+loss = tf.reduce_mean(tf.square(pred_y - Y))
+
+
+If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.+ +
Which is equivalent to the general cubic equation:
- + - + -$$ +$$ y = ax^3 + bx^2 + cx + d -$$ +$$
-### Optimizer Selection & Training -optimizer = tf.keras.optimizers.Adam(learning_rate=0.3)
num_epochs = 10_000
@@ -127,25 +126,23 @@ $$
if (epoch+1) % 1000 == 0:
print(f"Epoch: {epoch+1}, Loss: {loss.numpy()}"
-
In TensorFlow 1, we would have been using tf.Session
instead.
Here we are using GradientTape()
instead, to keep track of the loss evaluation and coefficients. This is crucial, as our optimizer needs these gradients to be able to optimize our coefficients.
Our loss function is Mean Squared Error (MSE):
-Our loss function is Mean Squared Error (MSE) +$$ += \frac{1}{n} \sum_{i=1}^{n}{(Y_i - \hat{Y_i})^2} +$$
-$$ -= \frac{1}{n}\sum_{i=1}^{n} (Y_i - \^{Y_i}) -$$ +Where is the predicted value and is the actual value
-Where $\^{Y_i}$ is the predicted value and $Y_i$ is the actual value +final_coefficients = [c.numpy() for c in coefficients]
print("Final Coefficients:", final_coefficients)
@@ -156,18 +153,15 @@ Where $\^{Y_i}$ is the predicted value and $Y_i$ is the actual value
plt.title("Salary vs Position")
plt.show()
-
This should work regardless of the Keras backend version (2 or 3)
-This should work regardless of the Keras backend version (2 or 3)import tensorflow as tf
import numpy as np
import pandas as pd
@@ -216,17 +210,15 @@ This should work regardless of the Keras backend version (2 or 3)
plt.legend()
plt.show()
-
This relies on the Optimizer's minimize
function and uses the var_list
parameter to update the variables.
This will not work with Keras 3 backend in TF 2.16.0 and above unless you switch to the legacy backend.
-This will not work with Keras 3 backend in TF 2.16.0 and above unless you switch to the legacy backend.import tensorflow as tf
import numpy as np
import pandas as pd
@@ -276,26 +268,24 @@ This will not work with Keras 3 backend in TF 2.16.0 and above unless you switch
plt.title(f"{x_column} vs {y_column}")
plt.show()
-
As always, remember to tweak the parameters and choose the correct model for the job. A polynomial regression model might not even be the best model for this particular dataset.
+How would you modify this code to use another type of nonlinear regression? Say,
-## Further Programming +$$ y = ab^x $$
-How would you modify this code to use another type of nonlinear regression? Say, $ y = ab^x $ +Hint: Your loss calculation would be similar to:
-Hint: Your loss calculation would be similar to:bx = tf.pow(coefficients[1], X)
pred_y = tf.math.multiply(coefficients[0], bx)
loss = tf.reduce_mean(tf.square(pred_y - Y))
-
-If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.-
$$ -y = ax^3 + bx^2 + cx + d -$$
+Our loss function is Mean Squared Error (MSE):
-$$ -= \frac{1}{n} \sum_{i=1}^{n}{(Y_i - \hat{Y_i})^2} -$$
+Where is the predicted value and is the actual value
@@ -276,7 +272,7 @@ $$How would you modify this code to use another type of nonlinear regression? Say,
-$$ y = ab^x $$
+Hint: Your loss calculation would be similar to:
diff --git a/docs/posts/2024-03-26-Derivation-of-the-Quadratic-Equation.html b/docs/posts/2024-03-26-Derivation-of-the-Quadratic-Equation.html new file mode 100644 index 0000000..6f02f7c --- /dev/null +++ b/docs/posts/2024-03-26-Derivation-of-the-Quadratic-Equation.html @@ -0,0 +1,90 @@ + + + + + + + + +The standard form of a quadratic equation is:
+ + + +Here, , and
+ +We begin by first dividing both sides by the coefficient
+ + + +We can rearrange the equation:
+ + + +We can then use the method of completing the square. (Maths is Fun has a really good explanation for this technique)
+ + + +On our LHS, we can clearly recognize that it is the expanded form of i.e
+ + + +Taking the square root of both sides
+ + + +This gives you the world famous quadratic formula:
+ + + +If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.+ +
https://s3-us-west-2.amazonaws.com/s.cdpn.io/148866/img-original.jpg
diff --git a/docs/posts/2019-05-05-Custom-Snowboard-Anemone-Theme.html b/docs/posts/2019-05-05-Custom-Snowboard-Anemone-Theme.html index 13b0493..7b0748e 100644 --- a/docs/posts/2019-05-05-Custom-Snowboard-Anemone-Theme.html +++ b/docs/posts/2019-05-05-Custom-Snowboard-Anemone-Theme.html @@ -6,13 +6,13 @@ -Note: Without the proper folder structure, your theme may not show up!
@@ -67,7 +67,7 @@themeName.theme
folder, create another folder called IconBundles
(You cannot change this name)themeName.theme
folder, create a file called Info.plist
and paste the followingWell, if for example you want to publish two variants of your icons, one dark and one white but you do not want the user to separately install them.
Then, you would name the package MyTheme
and include two themes Blackie
and White
thus creating two entries. More about this in the end
MyTheme
and include two themes Note: All icons must be saved as *.png
(Tip: This means you can even create partially transparent icons!)
themeName.theme>IconBundles
as bundleID-large.png
Stock Application BundleIDs
@@ -279,7 +279,7 @@ Create them squared only, we will learn how to apply masks!3rd Party Applications BundleID Click here
-Masking does not support IconBundles, therefore you need to save the masks for each of the following
@@ -388,7 +388,7 @@ Click -themeName.theme
with the name you want to be shown on Cydia, e.g themeNameForCydia
themeName.theme
to the Themes
folder (Copy the entire folder, not just the contents)For building the deb you need a *nix
system, otherwise you can build it using your iPhones
1) Install Homenbrew /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
(Run this in the terminal)
2) Install dpkg, by running brew install dpkg
find . -name "*.DS_Store" -type f -delete
themeNameForCyia
folder on the terminalthemeNameForCydia
Made for Google Code-In
@@ -52,7 +52,7 @@Using Glitch and the Teachable Machines, build a Book Detector with Tensorflow.js. When a book is recognized, the code would randomly suggest a book/tell a famous quote from a book. Here is an example Project to get you started: https://glitch.com/~voltaic-acorn
-1) Collecting Data
diff --git a/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html b/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html index 4d27f40..a5f7ef9 100644 --- a/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html +++ b/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html @@ -6,13 +6,13 @@ -Done during Google Code-In. Org: Tensorflow.
-%tensorflow_version 2.x #This is for telling Colab that you want to use TF 2.0, ignore if running on local machine
@@ -66,9 +66,9 @@
!wget ftp://lhcftp.nlm.nih.gov/Open-Access-Datasets/Malaria/cell_images.zip
@@ -76,7 +76,7 @@
We resize all the images as 50x50 and add the numpy array of that image as well as their label names (Infected or Not) to common arrays.
@@ -108,7 +108,7 @@ -df = np.array(data)
@@ -125,9 +125,9 @@ y_train=y_train[s]
X_train = X_train/255.0
-By creating a sequential model, we create a linear stack of layers.
@@ -150,7 +150,7 @@ X_train = X_train/255.0We use the Adam optimiser as it is an adaptive learning rate optimisation algorithm that's been designed specifically for training deep neural networks, which means it changes its learning rate automatically to get the best results
@@ -161,7 +161,7 @@ X_train = X_train/255.0 -We train the model for 10 epochs on the training data and then validate it using the testing data
@@ -195,7 +195,7 @@ X_train = X_train/255.0 -accuracy = history.history['accuracy'][-1]*100
diff --git a/docs/posts/2019-12-08-Splitting-Zips.html b/docs/posts/2019-12-08-Splitting-Zips.html
index 67df2fd..d909be2 100644
--- a/docs/posts/2019-12-08-Splitting-Zips.html
+++ b/docs/posts/2019-12-08-Splitting-Zips.html
@@ -6,13 +6,13 @@
- Splitting ZIPs into Multiple Parts
+ id="splitting-zips-into-multiple-parts">Splitting ZIPs into Multiple Parts
-
-
+ Splitting ZIPs into Multiple Parts" />
+ Splitting ZIPs into Multiple Parts" />
@@ -44,7 +44,7 @@
- Splitting ZIPs into Multiple Parts
+ Splitting ZIPs into Multiple Parts
Tested on macOS
diff --git a/docs/posts/2019-12-10-TensorFlow-Model-Prediction.html b/docs/posts/2019-12-10-TensorFlow-Model-Prediction.html
index 317af85..e0e9e10 100644
--- a/docs/posts/2019-12-10-TensorFlow-Model-Prediction.html
+++ b/docs/posts/2019-12-10-TensorFlow-Model-Prediction.html
@@ -6,13 +6,13 @@
- Making Predictions using Image Classifier (TensorFlow)
+ id="making-predictions-using-image-classifier-tensorflow">Making Predictions using Image Classifier (TensorFlow)
-
-
+ Making Predictions using Image Classifier (TensorFlow)" />
+ Making Predictions using Image Classifier (TensorFlow)" />
@@ -44,7 +44,7 @@
- Making Predictions using Image Classifier (TensorFlow)
+ Making Predictions using Image Classifier (TensorFlow)
This was tested on TF 2.x and works as of 2019-12-10
diff --git a/docs/posts/2019-12-16-TensorFlow-Polynomial-Regression.html b/docs/posts/2019-12-16-TensorFlow-Polynomial-Regression.html
index 7057815..e432792 100644
--- a/docs/posts/2019-12-16-TensorFlow-Polynomial-Regression.html
+++ b/docs/posts/2019-12-16-TensorFlow-Polynomial-Regression.html
@@ -6,13 +6,13 @@
- Polynomial Regression Using TensorFlow
+ id="polynomial-regression-using-tensorflow">Polynomial Regression Using TensorFlow
-
-
+ Polynomial Regression Using TensorFlow" />
+ Polynomial Regression Using TensorFlow" />
@@ -44,7 +44,7 @@
- Polynomial Regression Using TensorFlow
+ Polynomial Regression Using TensorFlow
In this tutorial you will learn about polynomial regression and how you can implement it in Tensorflow.
@@ -58,19 +58,19 @@
- Quintic
-Regression
+Regression
-What is Regression?
+What is Regression?
Regression is a statistical measurement that is used to try to determine the relationship between a
dependent variable (often denoted by Y), and series of varying variables (called independent variables, often denoted by X ).
-What is Polynomial Regression
+What is Polynomial Regression
This is a form of Regression Analysis where the relationship between Y and X is denoted as the nth degree/power of X.
Polynomial regression even fits a non-linear relationship (e.g when the points don't form a straight line).
-Imports
+Imports
import tensorflow.compat.v1 as tf
@@ -81,9 +81,9 @@ Polynomial regression even fits a non-linear relationship (e.g when the points d
-Dataset
+Dataset
-Creating Random Data
+Creating Random Data
Even though in this tutorial we will use a Position Vs Salary dataset, it is important to know how to create synthetic data
@@ -105,7 +105,7 @@ Polynomial regression even fits a non-linear relationship (e.g when the points d
We will be using https://drive.google.com/file/d/1tNL4jxZEfpaP4oflfSn6pIHJX7Pachm9/view (Salary vs Position Dataset)
@@ -160,7 +160,7 @@ Polynomial regression even fits a non-linear relationship (e.g when the points d -X = tf.placeholder("float")
@@ -168,7 +168,7 @@ Polynomial regression even fits a non-linear relationship (e.g when the points d
We first define all the coefficients and constant as tensorflow variables having a random initial value
@@ -182,7 +182,7 @@ Polynomial regression even fits a non-linear relationship (e.g when the points d -learning_rate = 0.2
@@ -190,7 +190,7 @@ Polynomial regression even fits a non-linear relationship (e.g when the points d
deg1 = a*X + b
@@ -201,7 +201,7 @@ Polynomial regression even fits a non-linear relationship (e.g when the points d
We use the Mean Squared Error Function
@@ -214,7 +214,7 @@ Polynomial regression even fits a non-linear relationship (e.g when the points d -We use the AdamOptimizer for the polynomial functions and GradientDescentOptimizer for the linear function
@@ -232,12 +232,12 @@ Polynomial regression even fits a non-linear relationship (e.g when the points d -For each type of equation first we make the model predict the values of the coefficient(s) and constant, once we get these values we use it to predict the Y values using the X values. We then plot it to compare the actual data and predicted line.
-with tf.Session() as sess:
@@ -301,7 +301,7 @@ values using the X values. We then plot it to compare the actual data and predic
-Quadratic Equation
+Quadratic Equation
with tf.Session() as sess:
@@ -366,7 +366,7 @@ values using the X values. We then plot it to compare the actual data and predic
-Cubic
+Cubic
with tf.Session() as sess:
@@ -432,7 +432,7 @@ values using the X values. We then plot it to compare the actual data and predic
-Quartic
+Quartic
with tf.Session() as sess:
@@ -499,7 +499,7 @@ values using the X values. We then plot it to compare the actual data and predic
-Quintic
+Quintic
with tf.Session() as sess:
@@ -565,13 +565,13 @@ values using the X values. We then plot it to compare the actual data and predic
-Results and Conclusion
+Results and Conclusion
You just learnt Polynomial Regression using TensorFlow!
-Notes
+Notes
-Overfitting
+Overfitting
diff --git a/docs/posts/2019-12-22-Fake-News-Detector.html b/docs/posts/2019-12-22-Fake-News-Detector.html
index 17ecaa1..a7216aa 100644
--- a/docs/posts/2019-12-22-Fake-News-Detector.html
+++ b/docs/posts/2019-12-22-Fake-News-Detector.html
@@ -6,13 +6,13 @@
- Building a Fake News Detector with Turicreate
+ id="building-a-fake-news-detector-with-turicreate">Building a Fake News Detector with Turicreate
-
-
+ Building a Fake News Detector with Turicreate" />
+ Building a Fake News Detector with Turicreate" />
@@ -44,20 +44,20 @@
- Building a Fake News Detector with Turicreate
+ Building a Fake News Detector with Turicreate
In this tutorial we will build a fake news detecting app from scratch, using Turicreate for the machine learning model and SwiftUI for building the app
Note: These commands are written as if you are running a jupyter notebook.
-Building the Machine Learning Model
+Building the Machine Learning Model
-Data Gathering
+Data Gathering
To build a classifier, you need a lot of data. George McIntire (GH: @joolsa) has created a wonderful dataset containing the headline, body and whether it is fake or real.
Whenever you are looking for a dataset, always try searching on Kaggle and GitHub before you start building your own
-Dependencies
+Dependencies
I used a Google Colab instance for training my model. If you also plan on using Google Colab then I recommend choosing a GPU Instance (It is Free)
This allows you to train the model on the GPU. Turicreate is built on top of Apache's MXNet Framework, for us to use GPU we need to install
@@ -72,7 +72,7 @@ a CUDA compatible MXNet package.
If you do not wish to train on GPU or are running it on your computer, you can ignore the last two lines
-Downloading the Dataset
+Downloading the Dataset
!wget -q "https://github.com/joolsa/fake_real_news_dataset/raw/master/fake_or_real_news.csv.zip"
@@ -80,7 +80,7 @@ a CUDA compatible MXNet package.
-Model Creation
+Model Creation
import turicreate as tc
@@ -100,14 +100,14 @@ a CUDA compatible MXNet package.
-Splitting Dataset
+Splitting Dataset
train, test = dataSFrame.random_split(.9)
-Training
+Training
model = tc.text_classifier.create(
@@ -132,7 +132,7 @@ a CUDA compatible MXNet package.
-Testing the Model
+Testing the Model
est_predictions = model.predict(test)
@@ -165,7 +165,7 @@ a CUDA compatible MXNet package.
-Exporting the Model
+Exporting the Model
model_name = 'FakeNews'
@@ -178,9 +178,9 @@ a CUDA compatible MXNet package.
-Building the App using SwiftUI
+Building the App using SwiftUI
-Initial Setup
+Initial Setup
First we create a single view app (make sure you check the use SwiftUI button)
diff --git a/docs/posts/2020-01-14-Converting-between-PIL-NumPy.html b/docs/posts/2020-01-14-Converting-between-PIL-NumPy.html
index 8d0fb1b..793585e 100644
--- a/docs/posts/2020-01-14-Converting-between-PIL-NumPy.html
+++ b/docs/posts/2020-01-14-Converting-between-PIL-NumPy.html
@@ -6,13 +6,13 @@
- Converting between image and NumPy array
+ id="converting-between-image-and-numpy-array">Converting between image and NumPy array
-
-
+ Converting between image and NumPy array" />
+ Converting between image and NumPy array" />
@@ -44,7 +44,7 @@
- Converting between image and NumPy array
+ Converting between image and NumPy array
import numpy
@@ -59,7 +59,7 @@
-Saving an Image
+Saving an Image
try:
diff --git a/docs/posts/2020-01-15-Setting-up-Kaggle-to-use-with-Colab.html b/docs/posts/2020-01-15-Setting-up-Kaggle-to-use-with-Colab.html
index 73c8b35..00a4ed0 100644
--- a/docs/posts/2020-01-15-Setting-up-Kaggle-to-use-with-Colab.html
+++ b/docs/posts/2020-01-15-Setting-up-Kaggle-to-use-with-Colab.html
@@ -6,13 +6,13 @@
- Setting up Kaggle to use with Google Colab
+ id="setting-up-kaggle-to-use-with-google-colab">Setting up Kaggle to use with Google Colab
-
-
+ Setting up Kaggle to use with Google Colab" />
+ Setting up Kaggle to use with Google Colab" />
@@ -44,33 +44,33 @@
- Setting up Kaggle to use with Google Colab
+ Setting up Kaggle to use with Google Colab
In order to be able to access Kaggle Datasets, you will need to have an account on Kaggle (which is Free)
-Grabbing Our Tokens
+Grabbing Our Tokens
-Go to Kaggle
+Go to Kaggle
-Click on your User Profile and Click on My Account
+Click on your User Profile and Click on My Account
-Scroll Down until you see Create New API Token
+Scroll Down until you see Create New API Token
-This will download your token as a JSON file
+This will download your token as a JSON file
Copy the File to the root folder of your Google Drive
-Setting up Colab
+Setting up Colab
-Mounting Google Drive
+Mounting Google Drive
import os
@@ -81,7 +81,7 @@
After this click on the URL in the output section, login and then paste the Auth Code
-Configuring Kaggle
+Configuring Kaggle
os.environ['KAGGLE_CONFIG_DIR'] = "/content/drive/My Drive/"
diff --git a/docs/posts/2020-01-16-Image-Classifier-Using-Turicreate.html b/docs/posts/2020-01-16-Image-Classifier-Using-Turicreate.html
index 4702325..c81a687 100644
--- a/docs/posts/2020-01-16-Image-Classifier-Using-Turicreate.html
+++ b/docs/posts/2020-01-16-Image-Classifier-Using-Turicreate.html
@@ -6,13 +6,13 @@
- Creating a Custom Image Classifier using Turicreate to detect Smoke and Fire
+ id="creating-a-custom-image-classifier-using-turicreate-to-detect-smoke-and-fire">Creating a Custom Image Classifier using Turicreate to detect Smoke and Fire
-
-
+ Creating a Custom Image Classifier using Turicreate to detect Smoke and Fire" />
+ Creating a Custom Image Classifier using Turicreate to detect Smoke and Fire" />
@@ -44,13 +44,13 @@
- Creating a Custom Image Classifier using Turicreate to detect Smoke and Fire
+ Creating a Custom Image Classifier using Turicreate to detect Smoke and Fire
For setting up Kaggle with Google Colab, please refer to my previous post
-Dataset
+Dataset
-Mounting Google Drive
+Mounting Google Drive
import os
@@ -59,7 +59,7 @@
-Downloading Dataset from Kaggle
+Downloading Dataset from Kaggle
os.environ['KAGGLE_CONFIG_DIR'] = "/content/drive/My Drive/"
@@ -68,7 +68,7 @@
-Pre-Processing
+Pre-Processing
!mkdir default smoke fire
@@ -154,9 +154,9 @@
-Making the Image Classifier
+Making the Image Classifier
-Making an SFrame
+Making an SFrame
!pip install turicreate
@@ -219,7 +219,7 @@
-Making the Model
+Making the Model
import turicreate as tc
diff --git a/docs/posts/2020-01-19-Connect-To-Bluetooth-Devices-Linux-Terminal.html b/docs/posts/2020-01-19-Connect-To-Bluetooth-Devices-Linux-Terminal.html
index 97cfc39..ef3f052 100644
--- a/docs/posts/2020-01-19-Connect-To-Bluetooth-Devices-Linux-Terminal.html
+++ b/docs/posts/2020-01-19-Connect-To-Bluetooth-Devices-Linux-Terminal.html
@@ -6,13 +6,13 @@
- How to setup Bluetooth on a Raspberry Pi
+ id="how-to-setup-bluetooth-on-a-raspberry-pi">How to setup Bluetooth on a Raspberry Pi
-
-
+ How to setup Bluetooth on a Raspberry Pi" />
+ How to setup Bluetooth on a Raspberry Pi" />
@@ -44,11 +44,11 @@
- How to setup Bluetooth on a Raspberry Pi
+ How to setup Bluetooth on a Raspberry Pi
This was tested on a Raspberry Pi Zero W
-Enter in the Bluetooth Mode
+Enter in the Bluetooth Mode
pi@raspberrypi:~ $ bluetoothctl
@@ -58,7 +58,7 @@
[bluetooth]# scan on
-To Pair
+To Pair
While being in bluetooth mode
diff --git a/docs/posts/2020-03-03-Playing-With-Android-TV.html b/docs/posts/2020-03-03-Playing-With-Android-TV.html
index 72e246f..f31b869 100644
--- a/docs/posts/2020-03-03-Playing-With-Android-TV.html
+++ b/docs/posts/2020-03-03-Playing-With-Android-TV.html
@@ -6,13 +6,13 @@
- Tinkering with an Android TV
+ id="tinkering-with-an-android-tv">Tinkering with an Android TV
-
-
+ Tinkering with an Android TV" />
+ Tinkering with an Android TV" />
@@ -44,11 +44,11 @@
- Tinkering with an Android TV
+ Tinkering with an Android TV
So I have an Android TV, this posts covers everything I have tried on it
-Contents
+Contents
- Getting TV's IP Address
@@ -58,7 +58,7 @@
- Manipulating Packages
-IP-Address
+IP-Address
These steps should be similar for all Android-TVs
@@ -72,7 +72,7 @@
The other option is to go to your router's server page and get connected devices
-Developer-Settings
+Developer-Settings
- Go To Settings
@@ -80,7 +80,7 @@
- Continuously click on the "Build" option until it says "You are a Developer"
-Enable-ADB
+Enable-ADB
- Go to Settings
@@ -88,7 +88,7 @@
- Scroll until you find ADB Debugging and enable that option
-Connect-ADB
+Connect-ADB
- Open Terminal (Make sure you have ADB installed)
@@ -96,22 +96,22 @@
- To test the connection run
adb logcat
-Manipulating Apps / Packages
+Manipulating Apps / Packages
-Listing Packages
+Listing Packages
adb shell
pm list packages
-Installing Packages
+Installing Packages
adb install -r package.apk
-Uninstalling Packages
+Uninstalling Packages
adb uninstall com.company.yourpackagename
diff --git a/docs/posts/2020-03-08-Making-Vaporwave-Track.html b/docs/posts/2020-03-08-Making-Vaporwave-Track.html
index 206fc8d..41fae3c 100644
--- a/docs/posts/2020-03-08-Making-Vaporwave-Track.html
+++ b/docs/posts/2020-03-08-Making-Vaporwave-Track.html
@@ -6,13 +6,13 @@
- Making My First Vaporwave Track (Remix)
+ id="making-my-first-vaporwave-track-remix">Making My First Vaporwave Track (Remix)
-
-
+ Making My First Vaporwave Track (Remix)" />
+ Making My First Vaporwave Track (Remix)" />
@@ -44,15 +44,15 @@
- Making My First Vaporwave Track (Remix)
+ Making My First Vaporwave Track (Remix)
I finally completed my first quick and dirty vaporwave remix of "I Want It That Way" by the Backstreet Boys
-V A P O R W A V E
+V A P O R W A V E
Vaporwave is all about A E S T H E T I C S. Vaporwave is a type of music genre that emerged as a parody of Chillwave, shared more as a meme rather than a proper musical genre. Of course this changed as the genre become mature
-How to Vaporwave
+How to Vaporwave
The first track which is considered to be actual Vaporwave is Ramona Xavier's Macintosh Plus, this set the guidelines for making Vaporwave
@@ -68,11 +68,11 @@
( Now, there are some tracks being produced which are not remixes and are original )
-My Remix
+My Remix
-Where is the Programming?
+Where is the Programming?
The fact that there are steps on producing Vaporwave, this gave me the idea that Vaporwave can actually be made using programming, stay tuned for when I publish the program which I am working on ( Generating A E S T H E T I C artwork and remixes)
diff --git a/docs/posts/2020-04-13-Fixing-X11-Error-AmberTools-macOS.html b/docs/posts/2020-04-13-Fixing-X11-Error-AmberTools-macOS.html
index b4691ff..97c3bc3 100644
--- a/docs/posts/2020-04-13-Fixing-X11-Error-AmberTools-macOS.html
+++ b/docs/posts/2020-04-13-Fixing-X11-Error-AmberTools-macOS.html
@@ -6,13 +6,13 @@
- Fixing X11 Error on macOS Catalina for AmberTools 18/19
+ id="fixing-x11-error-on-macos-catalina-for-ambertools-1819">Fixing X11 Error on macOS Catalina for AmberTools 18/19
-
-
+ Fixing X11 Error on macOS Catalina for AmberTools 18/19" />
+ Fixing X11 Error on macOS Catalina for AmberTools 18/19" />
@@ -44,7 +44,7 @@
- Fixing X11 Error on macOS Catalina for AmberTools 18/19
+ Fixing X11 Error on macOS Catalina for AmberTools 18/19
I was trying to install AmberTools on my macOS Catalina Installation. Running ./configure -macAccelerate clang
gave me an error that it could not find X11 libraries, even though locate libXt
showed that my installation was correct.
@@ -69,7 +69,7 @@ Configure failed due to the errors above!
I searched on Google for a solution. Sadly, there was not even a single thread which had a solution about this error.
-The Fix
+The Fix
Simply reinstalling XQuartz using homebrew fixed the error brew cask reinstall xquartz
diff --git a/docs/posts/2020-05-31-compiling-open-babel-on-ios.html b/docs/posts/2020-05-31-compiling-open-babel-on-ios.html
index 812c599..708d1bd 100644
--- a/docs/posts/2020-05-31-compiling-open-babel-on-ios.html
+++ b/docs/posts/2020-05-31-compiling-open-babel-on-ios.html
@@ -6,13 +6,13 @@
- Compiling Open Babel on iOS
+ id="compiling-open-babel-on-ios">Compiling Open Babel on iOS
-
-
+ Compiling Open Babel on iOS" />
+ Compiling Open Babel on iOS" />
@@ -44,7 +44,7 @@
- Compiling Open Babel on iOS
+ Compiling Open Babel on iOS
Due to the fact that my summer vacations started today,
I had the brilliant idea of trying to run open babel on my iPad.
@@ -52,17 +52,17 @@ To give a little background, I had tried to compile AutoDock Vina using a cross-
I am running the Checkr1n jailbreak on my iPad and the Unc0ver jailbreak on my phone.
-But Why?
+But Why?
Well, just because I can. This is literally the only reason I tried compiling it and also partially because in the long run I want to compile AutoDock Vina so I can do Molecular Docking on the go.
-Let's Go!
+Let's Go!
How hard can it be to compile open babel right? It is just a simple software with clear and concise build instructions. I just need to use cmake
to build and the make
to install.
It is 11 AM in the morning. I install clang, cmake and make
from the Sam Bingner's repository, fired up ssh, downloaded the source code and ran the build command.`clang
-Fail No. 1
+Fail No. 1
I couldn't even get cmake to run, I did a little digging around StackOverflow and founf that I needed the iOS SDK, sure no problem. I waited for Xcode to update and transferred the SDKs to my iPad
@@ -71,7 +71,7 @@ To give a little background, I had tried to compile AutoDock Vina using a cross-
Them I told cmake that this is the location for my SDK 😠. Successful! Now I just needed to use make.
-Fail No. 2
+Fail No. 2
It was giving the error that thread-local-storage was not supported on this device.
@@ -125,11 +125,11 @@ make: *** [Makefile:129: all] Error 2
-Packaging as a deb
+Packaging as a deb
This was pretty straight forward, I tried installing it on my iPad and it was working pretty smoothly.
-Moment of Truth
+Moment of Truth
So I airdropped the .deb to my phone and tried installing it, the installation was successful but when I tried obabel
it just aborted.
@@ -147,7 +147,7 @@ make: *** [Makefile:129: all] Error 2
I spent 2 hours around this problem, only to see the documentation and realise I hadn't setup the environment variable 🤦♂️
-The Final Fix ( For Now )
+The Final Fix ( For Now )
export BABEL_DATADIR="/usr/share/openbabel/3.1.0"
export BABEL_LIBDIR="/usr/lib/openbabel/3.1.0"
diff --git a/docs/posts/2020-06-01-Speeding-Up-Molecular-Docking-Workflow-AutoDock-Vina-and-PyMOL.html b/docs/posts/2020-06-01-Speeding-Up-Molecular-Docking-Workflow-AutoDock-Vina-and-PyMOL.html
index 9e7740e..cc8baf5 100644
--- a/docs/posts/2020-06-01-Speeding-Up-Molecular-Docking-Workflow-AutoDock-Vina-and-PyMOL.html
+++ b/docs/posts/2020-06-01-Speeding-Up-Molecular-Docking-Workflow-AutoDock-Vina-and-PyMOL.html
@@ -6,13 +6,13 @@
- Workflow for Lightning Fast Molecular Docking Part One
+ id="workflow-for-lightning-fast-molecular-docking-part-one">Workflow for Lightning Fast Molecular Docking Part One
-
-
+ Workflow for Lightning Fast Molecular Docking Part One" />
+ Workflow for Lightning Fast Molecular Docking Part One" />
@@ -44,9 +44,9 @@
- Workflow for Lightning Fast Molecular Docking Part One
+ Workflow for Lightning Fast Molecular Docking Part One
-My Setup
+My Setup
- macOS Catalina ( RIP 32bit app)
@@ -55,7 +55,7 @@
- Open Babel
-One Command Docking
+One Command Docking
obabel -:"$(pbpaste)" --gen3d -opdbqt -Otest.pdbqt && vina --receptor lu.pdbqt --center_x -9.7 --center_y 11.4 --center_z 68.9 --size_x 19.3 --size_y 29.9 --size_z 21.3 --ligand test.pdbqt
diff --git a/docs/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOS.html b/docs/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOS.html
index a1f4df6..1aed192 100644
--- a/docs/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOS.html
+++ b/docs/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOS.html
@@ -6,13 +6,13 @@
- Compiling AutoDock Vina on iOS
+ id="compiling-autodock-vina-on-ios">Compiling AutoDock Vina on iOS
-
-
+ Compiling AutoDock Vina on iOS" />
+ Compiling AutoDock Vina on iOS" />
@@ -44,15 +44,15 @@
- Compiling AutoDock Vina on iOS
+ Compiling AutoDock Vina on iOS
Why? Because I can.
-Installing makedepend
+Installing makedepend
makedepend
is a Unix tool used to generate dependencies of C source files. Most modern programs do not use this anymore, but then again AutoDock Vina's source code hasn't been changed since 2011. The first hurdle came when I saw that there was no makedepend command, neither was there any package on any development repository for iOS. So, I tracked down the original source code for makedepend
(https://github.com/DerellLicht/makedepend). According to the repository this is actually the source code for the makedepend utility that came with some XWindows distribution back around Y2K. I am pretty sure there is a problem with my current compiler configuration because I had to manually edit the Makefile
to provide the path to the iOS SDKs using the -isysroot
flag.
-Editing the Makefile
+Editing the Makefile
Original Makefile ( I used the provided mac Makefile base )
@@ -83,11 +83,11 @@ include ../../makefile_common
-Updating the Source Code
+Updating the Source Code
Of course since Boost 1.41 many things have been added and deprecated, that is why I had to edit the source code to make it work with version 1.68
-Error 1 - No Matching Constructor
+Error 1 - No Matching Constructor
../../../src/main/main.cpp:50:9: error: no matching constructor for initialization of 'path' (aka 'boost::filesystem::path')
return path(str, boost::filesystem::native);
@@ -98,7 +98,7 @@ return path(str, boost::filesystem::native);
return path(str)
-Error 2 - No Member Named 'nativefilestring'
+Error 2 - No Member Named 'nativefilestring'
../../../src/main/main.cpp:665:57: error: no member named 'native_file_string' in 'boost::filesystem::path'
std::cerr << "\n\nError: could not open \"" << e.name.native_file_string() << "\" for " << (e.in ? "reading" : "writing") << ".\n";
@@ -111,15 +111,15 @@ return path(str, boost::filesystem::native);
Turns out native_file_string
was deprecated in Boost 1.57 and replaced with just string
-Error 3 - Library Not Found
+Error 3 - Library Not Found
This one still boggles me because there was no reason for it to not work, as a workaround I downloaded the DEB, extracted it and used that path for compiling.
-Error 4 - No Member Named 'nativefilestring' Again.
+Error 4 - No Member Named 'nativefilestring' Again.
But, this time in another file and I quickly fixed it
-Moment of Truth
+Moment of Truth
Obviously it was working on my iPad, but would it work on another device? I transferred the compiled binary and
diff --git a/docs/posts/2020-07-01-Install-rdkit-colab.html b/docs/posts/2020-07-01-Install-rdkit-colab.html
index 3d040bc..f5acc52 100644
--- a/docs/posts/2020-07-01-Install-rdkit-colab.html
+++ b/docs/posts/2020-07-01-Install-rdkit-colab.html
@@ -6,13 +6,13 @@
- Installing RDKit on Google Colab
+ id="installing-rdkit-on-google-colab">Installing RDKit on Google Colab
-
-
+ Installing RDKit on Google Colab" />
+ Installing RDKit on Google Colab" />
@@ -44,7 +44,7 @@
- Installing RDKit on Google Colab
+ Installing RDKit on Google Colab
EDIT: Try installing RDKit using pip
@@ -52,7 +52,7 @@
-Old Method (Still Works)
+Old Method (Still Works)
RDKit is one of the most integral part of any Cheminfomatic specialist's toolkit but it is notoriously difficult to install unless you already have conda
installed. I originally found this in a GitHub Gist but I have not been able to find that gist again :/
diff --git a/docs/posts/2020-08-01-Natural-Feature-Tracking-ARJS.html b/docs/posts/2020-08-01-Natural-Feature-Tracking-ARJS.html
index 61b2115..3daafd5 100644
--- a/docs/posts/2020-08-01-Natural-Feature-Tracking-ARJS.html
+++ b/docs/posts/2020-08-01-Natural-Feature-Tracking-ARJS.html
@@ -6,13 +6,13 @@
- Introduction to AR.js and Natural Feature Tracking
+ id="introduction-to-arjs-and-natural-feature-tracking">Introduction to AR.js and Natural Feature Tracking
-
-
+ Introduction to AR.js and Natural Feature Tracking" />
+ Introduction to AR.js and Natural Feature Tracking" />
@@ -44,9 +44,9 @@
- Introduction to AR.js and Natural Feature Tracking
+ Introduction to AR.js and Natural Feature Tracking
-AR.js
+AR.js
AR.js is a lightweight library for Augmented Reality on the Web, coming with features like Image Tracking, Location based AR and Marker tracking. It is the easiest option for cross-browser augmented reality.
@@ -54,7 +54,7 @@
It was initially created by Jerome Etienne and is now maintained by Nicolo Carpignoli and the AR-js Organisation
-NFT
+NFT
Usually for augmented reality you need specialised markers, like this Hiro marker (notice the thick non-aesthetic borders 🤢)
@@ -66,7 +66,7 @@
-Creating the Marker!
+Creating the Marker!
First we need to create the marker files required by AR.js for NFT. For this we use Carnaux's repository 'NFT-Marker-Creator'.
@@ -83,7 +83,7 @@ Resolving deltas: 100% (262/262), done.
$ cd NFT-Makrer-Creator
-Install the dependencies
+Install the dependencies
$ npm install
@@ -109,12 +109,12 @@ found 0 vulnerabilities
-Copy the target marker to the folder
+Copy the target marker to the folder
$ cp ~/CodingAndStuff/ARjs/me.png .
-Generate Marker
+Generate Marker
$ node app.js -i me.png
@@ -183,7 +183,7 @@ To run demo use: 'npm run demo'
me.fset me.fset3 me.iset
-Creating the HTML Page
+Creating the HTML Page
Create a new file called index.html
in your project folder. This is the basic template we are going to use. Replace me
with the root filename of your image, for example NeverGonnaGiveYouUp.png
will become NeverGonnaGiveYouUp
. Make sure you have copied all three files from the output folder in the previous step to the root of your project folder.
@@ -240,7 +240,7 @@ me.fset me.fset3 me.iset
In this we are creating a AFrame scene and we are telling it that we want to use NFT Tracking. The amazing part about using AFrame is that we are able to use all AFrame objects!
-Adding a simple box
+Adding a simple box
Let us add a simple box!
@@ -280,7 +280,7 @@ Serving HTTP on 0.0.0.0 port 8000 ...
👏 Congratulations! You just built an Augmented Reality experience using AR.js and AFrame
-Adding a Torus-Knot in the box
+Adding a Torus-Knot in the box
Edit your index.html
@@ -295,13 +295,13 @@ Serving HTTP on 0.0.0.0 port 8000 ...
-Where are the GIFs?
+Where are the GIFs?
Now that we know how to place a box in the scene and add a torus knot in it, what do we do next? We bring the classic internet back!
AFrame GIF Shader
is a gif shader for A-Frame created by mayognaise.
-First things first
+First things first
Add <script src="https://rawgit.com/mayognaise/aframe-gif-shader/master/dist/aframe-gif-shader.min.js"></script>
to <head>
@@ -315,15 +315,15 @@ Serving HTTP on 0.0.0.0 port 8000 ...
-Bonus Idea: Integrate it with GitHub's new profile Readme Feature!
+Bonus Idea: Integrate it with GitHub's new profile Readme Feature!
-1) Host the code using GitHub Pages
+1) Host the code using GitHub Pages
-2) Create a new repository ( the name should be your GitHub username )
+2) Create a new repository ( the name should be your GitHub username )
-3) Add QR Code to the page and tell the users to scan your profile picture
+3) Add QR Code to the page and tell the users to scan your profile picture
-??) Profit 💸
+??) Profit 💸
Here is a screenshot of me scanning a rounded version of my profile picture ( It still works! Even though the image is cropped and I haven't changed any line of code )
diff --git a/docs/posts/2020-10-11-macOS-Virtual-Cam-OBS.html b/docs/posts/2020-10-11-macOS-Virtual-Cam-OBS.html
index d7efda8..649c682 100644
--- a/docs/posts/2020-10-11-macOS-Virtual-Cam-OBS.html
+++ b/docs/posts/2020-10-11-macOS-Virtual-Cam-OBS.html
@@ -6,13 +6,13 @@
- Trying Different Camera Setups
+ id="trying-different-camera-setups">Trying Different Camera Setups
-
-
+ Trying Different Camera Setups" />
+ Trying Different Camera Setups" />
@@ -44,7 +44,7 @@
- Trying Different Camera Setups
+ Trying Different Camera Setups
- Animated Overlays
@@ -53,7 +53,7 @@
- Using a USB Camera
-Comparison
+Comparison
Here are the results before you begin reading.
@@ -65,13 +65,13 @@
-Prerequisites
+Prerequisites
I am running macOS and iOS but I will try to link the same steps for Windows as well. If you are running Arch, I assume you already know what you are doing and are using this post as an inspiration and not a how-to guide.
I assume that you have Homebrew installed.
-OBS and OBS-Virtual-Cam
+OBS and OBS-Virtual-Cam
Description
@@ -81,7 +81,7 @@ brew cask install obs-virtualcam
Windows users can install the latest version of the plugin from OBS-Forums
-0. Animated Overlays
+0. Animated Overlays
I have always liked PewDiePie's animated border he uses in his videos
@@ -105,7 +105,7 @@ brew cask install obs-virtualcam
and, locate and choose the downloaded overlay.
-1. Using a Modern Camera (Without using a Capture Card)
+1. Using a Modern Camera (Without using a Capture Card)
I have a Sony mirrorless camera. Using Sony's Imaging Edge Desktop, you can use your laptop as a remote viewfinder and capture or record media.
@@ -115,7 +115,7 @@ brew cask install obs-virtualcam
Once you are able to see the output of the camera on the application, switch to OBS. Create a new scene, and this time choose Window Capture
in the Sources menu. After you have chosen the appropriate window, you may transform/crop the output using the properties/filters options.
-2.1 Using your iPhone using Quicktime
+2.1 Using your iPhone using Quicktime
Connect your iPhone via a USB cable, then Open Quicktime -> File -> New Movie Recording
@@ -127,13 +127,13 @@ brew cask install obs-virtualcam
-2.2 Using your iPhone using an application like Camo
+2.2 Using your iPhone using an application like Camo
Install the Camo app on your phone through the app store -> connect to Mac using USB cable, install the companion app and you are done.
I tried both my current iPhone and an old iPhone 5S
-3. A USB Webcam
+3. A USB Webcam
The simplest solution, is to use a USB webcam. I used an old Logitech C310 that was collecting dust. I was surprised to find that Logitech is still selling it after years and proudly advertising it! (5MP)
diff --git a/docs/posts/2020-11-17-Lets-Encrypt-DuckDns.html b/docs/posts/2020-11-17-Lets-Encrypt-DuckDns.html
index f35bca4..769bfa6 100644
--- a/docs/posts/2020-11-17-Lets-Encrypt-DuckDns.html
+++ b/docs/posts/2020-11-17-Lets-Encrypt-DuckDns.html
@@ -6,13 +6,13 @@
- Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt
+ id="generating-https-certificate-using-dns-a-challenge-through-lets-encrypt">Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt
-
-
+ Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt" />
+ Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt" />
@@ -44,18 +44,18 @@
- Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt
+ Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt
I have a Raspberry-Pi running a Flask app through Gunicorn (Ubuntu 20.04 LTS). I am exposing it to the internet using DuckDNS.
-Dependencies
+Dependencies
sudo apt update && sudo apt install certbot -y
-Get the Certificate
+Get the Certificate
sudo certbot certonly --manual --preferred-challenges dns-01 --email senpai@email.com -d mydomain.duckdns.org
@@ -100,11 +100,11 @@ navanspi.duckdns.org. 60Once you can ensure that the TXT record changes has been successfully applied and is visible through the dig
command, press enter on the Certbot prompt and your certificate should be generated.
-Renewing
+Renewing
As we manually generated the certificate certbot renew
will fail, to renew the certificate you need to simply re-generate the certificate using the above steps.
-Using the Certificate with Gunicorn
+Using the Certificate with Gunicorn
Example Gunicorn command for running a web-app:
diff --git a/docs/posts/2020-12-1-HTML-JS-RSS-Feed.html b/docs/posts/2020-12-1-HTML-JS-RSS-Feed.html
index a755c7b..1978590 100644
--- a/docs/posts/2020-12-1-HTML-JS-RSS-Feed.html
+++ b/docs/posts/2020-12-1-HTML-JS-RSS-Feed.html
@@ -6,13 +6,13 @@
- RSS Feed written in HTML + JavaScript
+ id="rss-feed-written-in-html-javascript">RSS Feed written in HTML + JavaScript
-
-
+ RSS Feed written in HTML + JavaScript" />
+ RSS Feed written in HTML + JavaScript" />
@@ -44,7 +44,7 @@
- RSS Feed written in HTML + JavaScript
+ RSS Feed written in HTML + JavaScript
If you want to directly open the HTML file in your browser after saving, don't forget to set CORS_PROXY=""
diff --git a/docs/posts/2021-06-25-Blog2Twitter-P1.html b/docs/posts/2021-06-25-Blog2Twitter-P1.html
index 94836b7..ba12406 100644
--- a/docs/posts/2021-06-25-Blog2Twitter-P1.html
+++ b/docs/posts/2021-06-25-Blog2Twitter-P1.html
@@ -6,13 +6,13 @@
- Posting Blog Posts as Twitter Threads Part 1/n
+ id="posting-blog-posts-as-twitter-threads-part-1n">Posting Blog Posts as Twitter Threads Part 1/n
-
-
+ Posting Blog Posts as Twitter Threads Part 1/n" />
+ Posting Blog Posts as Twitter Threads Part 1/n" />
@@ -44,17 +44,17 @@
- Posting Blog Posts as Twitter Threads Part 1/n
+ Posting Blog Posts as Twitter Threads Part 1/n
Why? Eh, no good reason, but should be fun.
-Plan of Action
+Plan of Action
I recently shifted my website to a static site generator I wrote specifically for myself.
Thus, it should be easy to just add a feature to check for new posts, split the text into chunks for Twitter threads and tweet them.
I am not handling lists or images right now.
-Time to Code
+Time to Code
First, the dependency: tweepy for tweeting.
@@ -136,13 +136,13 @@ I am not handling lists or images right now.
-Result
+Result
Posting Blog Posts as Twitter Threads Part 1/n
Why? Eh, no good reason, but should be fun.
Plan of Action
I recently shifted my website to a static site generator I wrote specifically for myself. 1/5
— Navan Chauhan (@navanchauhan) June 24, 2021
Web Version: https://t.co/zROU1F5DYv
— Navan Chauhan (@navanchauhan) June 24, 2021
-What's Next?
+What's Next?
For the next part, I will try to append the code as well.
I actually added the code to this post after running the program.
diff --git a/docs/posts/2021-06-25-NFC-Music-Cards-Basic-iOS.html b/docs/posts/2021-06-25-NFC-Music-Cards-Basic-iOS.html
index 06f897f..bd1da46 100644
--- a/docs/posts/2021-06-25-NFC-Music-Cards-Basic-iOS.html
+++ b/docs/posts/2021-06-25-NFC-Music-Cards-Basic-iOS.html
@@ -6,13 +6,13 @@
- Basic NFC Music Cards for iOS
+ id="basic-nfc-music-cards-for-ios">Basic NFC Music Cards for iOS
-
-
+ Basic NFC Music Cards for iOS" />
+ Basic NFC Music Cards for iOS" />
@@ -44,12 +44,12 @@
- Basic NFC Music Cards for iOS
+ Basic NFC Music Cards for iOS
I had a pack of NFC cards and decided it was the perfect time to create Music Cards. I do not have a "music setup."
So, I did not have to ensure this could work with any device. I settled with using Shortcuts personal Automation.
-Designing the Template
+Designing the Template
I tried measuring the card's dimensions with the in-built Measure app, but it was off by a few mm.
@@ -61,7 +61,7 @@ So, I did not have to ensure this could work with any device. I settled with usi
-Creating the Automation
+Creating the Automation
I created a personal automation in the Shortcuts app which got triggered when a particular NFC card was scanned, ask playback destination and play the album/playlist.
@@ -69,7 +69,7 @@ So, I did not have to ensure this could work with any device. I settled with usi
-Demo
+Demo
diff --git a/docs/posts/2021-06-26-Cheminformatics-On-The-Web-2021.html b/docs/posts/2021-06-26-Cheminformatics-On-The-Web-2021.html
index c9e8704..1120ca0 100644
--- a/docs/posts/2021-06-26-Cheminformatics-On-The-Web-2021.html
+++ b/docs/posts/2021-06-26-Cheminformatics-On-The-Web-2021.html
@@ -6,13 +6,13 @@
- Cheminformatics on the Web (2021)
+ id="cheminformatics-on-the-web-2021">Cheminformatics on the Web (2021)
-
-
+ Cheminformatics on the Web (2021)" />
+ Cheminformatics on the Web (2021)" />
@@ -44,7 +44,7 @@
- Cheminformatics on the Web (2021)
+ Cheminformatics on the Web (2021)
Here, I have compiled a list of some libraries and possible ideas.
I, personally, like static websites which don't require a server side application and can be hosted on platforms like GitHub Pages.
@@ -52,12 +52,12 @@ Or, just by opening the HTML file and running it in your browser.
WebAssembly (Wasm) has made running code written for other platforms on the web relatively easier.
Combine Wasm with some pure JavaScript libraries, and you get a platform to quickly amp up your speed in some common tasks.
-RDKit
+RDKit
RDKit bundles a minimal JavaScript Wrapper in their core RDKit suite.
This is perfect for generating 2D Figures (HTML5 Canva/SVGs), Canonical SMILES, Descriptors e.t.c
-Substructure Matching
+Substructure Matching
This can be used to flag undesirable functional groups in a given compound.
Create a simple key:value pairs of name:SMARTS and use it to highlight substructure matches.
@@ -65,13 +65,13 @@ Thus, something like PostEra's Medicinal Chemistry Alert can be done with RDKit-
-Computing Properties
+Computing Properties
This is useful to calculate basic properties of a given compound.
-Webina - Molecular Docking
+Webina - Molecular Docking
Webina is a JavaScript/Wasm library that runs AutoDock Vina, which can enable you to run Molecular Docking straight in the browser itself.
@@ -83,7 +83,7 @@ Due to Spectre, this feature was disabled on all browsers.
Currently, only Chromium-based and Firefox browsers have reimplemented and enabled it.
Hopefully, soon, this will be again supported by all major browsers.
-Machine Learning
+Machine Learning
Frameworks have now evolved enough to allow exporting models to be able to run them through JavaScript/Wasm backend.
An example task can be NER or Named-entity Recognition.
@@ -93,12 +93,12 @@ Another example is target-prediction right in the browser: CHEMBL Group is first training the model using PyTorch (A Python ML Library), then converting it to the ONNX runtime.
A model like this can be directly implemented in TensorFlow, and then exported to be able to run with TensorFlow.js
-Cheminfo-to-web
+Cheminfo-to-web
The project aims to port cheminformatics libraries into JavaScript via Emscripten.
They have ported InChI, Indigo, OpenBabel, and OpenMD
-Kekule.js
+Kekule.js
It is written by @partridgejiang, who is behind the Cheminfo-to-web project
@@ -106,19 +106,19 @@ They have ported InChI, Indigo, OpenBabel, and OpenMD
It is molecule-centric, focusing on providing the ability to represent, draw, edit, compare and search molecule structures on web browsers.
-Browser Extensions
+Browser Extensions
The previous machine learning examples can be packaged as browser-extensions to perform tasks on the article you are reading.
With iOS 15 bringing WebExtensions to iOS/iPadOS, the same browser extension source code can be now used on Desktop and Mobile Phones.
You can quickly create an extension to convert PDB codes into links to RCSB, highlight SMILES, highlight output of NER models, e.t.c
-Conclusion
+Conclusion
I have not even touched all the bases of cheminformatics for the web here.
There is still a lot more to unpack.
Hopefully, this encourages you to explore the world of cheminformatics on the web.
-Further Reading
+Further Reading
diff --git a/docs/posts/2021-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html b/docs/posts/2021-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html
index 9b90d53..5836c49 100644
--- a/docs/posts/2021-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html
+++ b/docs/posts/2021-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html
@@ -6,13 +6,13 @@
- Making a Crude ML Powered Chatbot in Swift using CoreML
+ id="making-a-crude-ml-powered-chatbot-in-swift-using-coreml">Making a Crude ML Powered Chatbot in Swift using CoreML
-
-
+ Making a Crude ML Powered Chatbot in Swift using CoreML" />
+ Making a Crude ML Powered Chatbot in Swift using CoreML" />
@@ -44,7 +44,7 @@
- Making a Crude ML Powered Chatbot in Swift using CoreML
+ Making a Crude ML Powered Chatbot in Swift using CoreML
A chatbot/virtual assistant, on paper, looks easy to build.
The user says something, the programs finds the best action, checks if additional input is required and sends back the output.
@@ -52,7 +52,7 @@ To do this in Swift, I used two separate ML Models created using Apple's Create
First is a Text Classifier to classify intent, and the other a word tagger for extracting input from the input message.
Disclaimer: This is a very crude proof-of-concept, but it does work.
-Text Classifier
+Text Classifier
I opened a CSV file and added some sample entries, with a corresponding label.
@@ -84,7 +84,7 @@ i love you,banter
-Word Tagging
+Word Tagging
This is useful to extract the required variables directly from the user's input.
This model will be only called if the intent from the classifier is a custom action.
@@ -112,7 +112,7 @@ I created a sample JSON with only 3 examples (I know, very less, but works for a
-Time to Get Swift-y
+Time to Get Swift-y
The initial part is easy, importing CoreML and NaturalLanguage and then initializing the models and the tagger.
diff --git a/docs/posts/2022-05-21-Similar-Movies-Recommender.html b/docs/posts/2022-05-21-Similar-Movies-Recommender.html
index c7f3b3a..717513f 100644
--- a/docs/posts/2022-05-21-Similar-Movies-Recommender.html
+++ b/docs/posts/2022-05-21-Similar-Movies-Recommender.html
@@ -6,13 +6,13 @@
- Building a Similar Movies Recommendation System
+ id="building-a-similar-movies-recommendation-system">Building a Similar Movies Recommendation System
-
-
+ Building a Similar Movies Recommendation System" />
+ Building a Similar Movies Recommendation System" />
@@ -44,21 +44,21 @@
- Building a Similar Movies Recommendation System
+ Building a Similar Movies Recommendation System
-Why?
+Why?
I recently came across a movie/tv-show recommender, couchmoney.tv. I loved it. I decided that I wanted to build something similar, so I could tinker with it as much as I wanted.
I also wanted a recommendation system I could use via a REST API. Although I have not included that part in this post, I did eventually create it.
-How?
+How?
By measuring the cosine of the angle between two vectors, you can get a value in the range [0,1] with 0 meaning no similarity. Now, if we find a way to represent information about movies as a vector, we can use cosine similarity as a metric to find similar movies.
As we are recommending just based on the content of the movies, this is called a content based recommendation system.
-Data Collection
+Data Collection
Trakt exposes a nice API to search for movies/tv-shows. To access the API, you first need to get an API key (the Trakt ID you get when you create a new application).
@@ -140,7 +140,7 @@
In the end, I could have dropped the embeddings field from the table schema as I never got around to using it.
-Scripting Time
+Scripting Time
from database import *
@@ -243,7 +243,7 @@
Running this script took me approximately 3 hours, and resulted in an SQLite database of 141.5 MB
-Embeddings!
+Embeddings!
I did not want to put my poor Mac through the estimated 23 hours it would have taken to embed the sentences. I decided to use Google Colab instead.
@@ -308,7 +308,7 @@ As of writing this post, I did not include any other database except Trakt.
That's it!
-Interacting with Vectors
+Interacting with Vectors
We use the trakt_id
for the movie as the ID for the vectors and upsert it into the index.
@@ -359,7 +359,7 @@ It is possible that this additional step of mapping could be avoided by storing
-Testing it Out
+Testing it Out
movie_name = "Now You See Me"
@@ -405,21 +405,21 @@ Spies (2015): A secret agent must perform a heist without time on his side
For now, I am happy with the recommendations.
-Simple UI
+Simple UI
The code for the flask app can be found on GitHub: navanchauhan/FlixRec or on my Gitea instance
I quickly whipped up a simple Flask App to deal with problems of multiple movies sharing the title, and typos in the search query.
-Home Page
+Home Page
-Handling Multiple Movies with Same Title
+Handling Multiple Movies with Same Title
-Results Page
+Results Page
@@ -429,14 +429,14 @@ Spies (2015): A secret agent must perform a heist without time on his side
Test it out at https://flixrec.navan.dev
-Current Limittations
+Current Limittations
- Does not work well with popular franchises
- No Genre Filter
-Future Addons
+Future Addons
- Include Cast Data
diff --git a/docs/posts/2022-08-05-Why-You-No-Host.html b/docs/posts/2022-08-05-Why-You-No-Host.html
index 12ecf83..f684833 100644
--- a/docs/posts/2022-08-05-Why-You-No-Host.html
+++ b/docs/posts/2022-08-05-Why-You-No-Host.html
@@ -6,13 +6,13 @@
-
Why You No Host?
+ id="why-you-no-host">Why You No Host?
-
-
+ Why You No Host?" />
+ Why You No Host?" />
@@ -44,7 +44,7 @@
- Why You No Host?
+ Why You No Host?
@@ -52,7 +52,7 @@
The title refers to the “Y U No Host” internet meme, which led to the name of “YunoHost”, an operating system aiming to democratise self-hosting. This post tries to discuss the idea that anyone can self-host and why you should consider YunoHost.
-Should you Self-Host?
+Should you Self-Host?
- Do you get annoyed when half of the internet goes down because everything a few major companies host the majority of the internet?
@@ -77,11 +77,11 @@
These are just some of the reasons to self-host.
-What if you don’t know anything?
+What if you don’t know anything?
No one is born with the knowledge of knowing how to orchestrate a cluster. You can always learn how to, but sometimes you just don’t have the time or energy. YunoHost tries to ease this issue by providing a clean web-interface. You do not even need to touch the command line for all the basic tasks.
-What should you self-host?
+What should you self-host?
Anything and everything! The best part about self-hosting is that you own the data. This data is not going to be sold to the highest bidder.
@@ -93,7 +93,7 @@
Although you can do all of this (and much more!) without needing to use YunoHost, it just makes it easy to manage.
-What do I need to self-host?
+What do I need to self-host?
- A decent internet connection if you plan on using the services outside your home network and hosting at home
@@ -107,7 +107,7 @@
- Some patience
-What is YunoHost?
+What is YunoHost?
YunoHost is a server operating system which takes guesswork out of Self-Hosting. Out of the box it provides:
@@ -123,7 +123,7 @@
and much more!
-Why did I choose YunoHost?
+Why did I choose YunoHost?
I began my self-hosting journey with a Raspberry Pi 4 (4GB). I looked at tons of options for the base management layer:
@@ -152,65 +152,65 @@
Also, YunoHost has been here for a long time! Here is an old Hacker News post about YunoHost. All the projects mentioned in the comments? Dead.
-What do I self-host?
+What do I self-host?
-audiobookshelf - an audiobook server
+audiobookshelf - an audiobook server
-ergo chat - an IRC server
+ergo chat - an IRC server
-FreshRSS - RSS aggregator
+FreshRSS - RSS aggregator
-Gitea - self-hosted git
+Gitea - self-hosted git
-
+
-Grafana - Metrics dashboard
+Grafana - Metrics dashboard
-Home Assistant - Home automation platform
+Home Assistant - Home automation platform
-Jellyfin - Media server
+Jellyfin - Media server
-Listmonk - Newsletter and Mailing List manager
+Listmonk - Newsletter and Mailing List manager
-MinIO Server - S3 compatible storage server
+MinIO Server - S3 compatible storage server
-Nextcloud - Storage, file-sharing, e.t.c
+Nextcloud - Storage, file-sharing, e.t.c
-Syncthing - continuous file synchronization
+Syncthing - continuous file synchronization
-Vaultwarden - Bitwarden server
+Vaultwarden - Bitwarden server
-Wallabag - Read it later app
+Wallabag - Read it later app
-h5ai - HTTP server index
+h5ai - HTTP server index
-How do I install YunoHost?
+How do I install YunoHost?
- Install minimal Debian 10/11 on your preferred machine
@@ -219,7 +219,7 @@
Done!
-Should you actually self-host everything?
+Should you actually self-host everything?
Highly context dependent. I run two YunoHost servers in two different locations. One of the ISP has actually blacklisted the residential IP address range and does not let me change my reverseDNS, which means all my outgoing emails are marked as spam. On the other hand, the other ISP gave a clean static IP and the server managed for a small business is not at all problematic for emailing. YMMV but at least you know you have an option.
diff --git a/docs/posts/2022-11-07-a-new-method-to-blog.html b/docs/posts/2022-11-07-a-new-method-to-blog.html
index 427acd9..cbf80ec 100644
--- a/docs/posts/2022-11-07-a-new-method-to-blog.html
+++ b/docs/posts/2022-11-07-a-new-method-to-blog.html
@@ -6,13 +6,13 @@
- A new method to blog
+ id="a-new-method-to-blog">A new method to blog
-
-
+ A new method to blog" />
+ A new method to blog" />
@@ -44,33 +44,33 @@
- A new method to blog
+ A new method to blog
Here is the original PDF. I made some edits to the content after generating the markdown file
Paper Website is a service that lets you build a website with just pen and paper. I am going to try and replicate the process.
-The Plan
+The Plan
The continuity feature on macOS + iOS lets you scan PDFs directly from your iPhone. I want to be able to scan these pages and automatically run an Automator script that takes the PDF and OCRs the text. Then I can further clean the text and convert from markdown.
-Challenges
+Challenges
I quickly realised that the OCR software I planned on using could not detect my shitty handwriting accurately. I tried using ABBY Finereader, Prizmo and OCRMyPDF. (Abby Finereader and Prizmo support being automated by Automator).
Now, I could either write neater, or use an external API like Microsoft Azure
-Solution
+Solution
-OCR
+OCR
In the PDFs, all the scans are saved as images on a page. I extract the image and then send it to Azure's API.
-Paragraph Breaks
+Paragraph Breaks
The recognised text had multiple lines breaking in the middle of the sentence, Therefore, I use what is called a pilcrow to specify paragraph breaks. But, rather than trying to draw the normal pilcrow, I just use the HTML entity ¶
which is the pilcrow character.
-Where is the code?
+Where is the code?
I created a GitHub Gist for a sample Python script to take the PDF and print the text
diff --git a/docs/posts/2022-12-25-blog-to-toot.html b/docs/posts/2022-12-25-blog-to-toot.html
index f978e30..4d9eb10 100644
--- a/docs/posts/2022-12-25-blog-to-toot.html
+++ b/docs/posts/2022-12-25-blog-to-toot.html
@@ -6,13 +6,13 @@
- Posting blogs as Mastodon Toots
+ id="posting-blogs-as-mastodon-toots">Posting blogs as Mastodon Toots
-
-
+ Posting blogs as Mastodon Toots" />
+ Posting blogs as Mastodon Toots" />
@@ -44,16 +44,16 @@
- Posting blogs as Mastodon Toots
+ Posting blogs as Mastodon Toots
What is better than posting a blog post? Posting about your posting pipeline. I did this previously with Twitter.
-the elephant in the room
+the elephant in the room
mastodon.social does not support any formatting in the status posts.
Yes, there are other instances which have patches to enable features such as markdown formatting, but there is no upstream support.
-time to code
+time to code
My website is built using a really simple static site generator I wrote in Python.
Therefore, each post is self-contained in a Markdown file with the necessary metadata.
@@ -62,13 +62,13 @@ Therefore, each post is self-contained in a Markdown file with the necessary met
I initially planned on having a command line parser and some more flags.
-interacting with mastodon
+interacting with mastodon
I ended up using mastodon.py rather than crafting requests by hand. Each statuspost/toot call returns a statusid that can be then used as an inreplyto parameter.
For the code snippets, seeing that mastodon does not support native formatting, I am resorting to using ray-so.
-reading markdown
+reading markdown
I am using a bunch of regex hacks, and reading the blog post line by line.
Because there is no markdown support, I append all the links to the end of the toot.
@@ -97,7 +97,7 @@ In this case, I can extract the tags from the front matter.
-code snippet support
+code snippet support
I am running akashrchandran/Rayso-API.
@@ -117,19 +117,19 @@ In this case, I can extract the tags from the front matter.
-threads! threads! threads!
+threads! threads! threads!
Even though mastodon does officially have a higher character limit than Twitter.
I prefer the way threads look.
-result
+result
Everything does seem to work!
Seeing that you are reading this on Mastodon, and that I have updated this section.
-what's next?
+what's next?
Here is the current code:
diff --git a/docs/posts/2023-02-08-Interact-with-siri-from-the-terminal.html b/docs/posts/2023-02-08-Interact-with-siri-from-the-terminal.html
index 8df15ef..0c23964 100644
--- a/docs/posts/2023-02-08-Interact-with-siri-from-the-terminal.html
+++ b/docs/posts/2023-02-08-Interact-with-siri-from-the-terminal.html
@@ -6,13 +6,13 @@
- Interacting with Siri using the command line
+ id="interacting-with-siri-using-the-command-line">Interacting with Siri using the command line
-
-
+ Interacting with Siri using the command line" />
+ Interacting with Siri using the command line" />
@@ -44,11 +44,11 @@
- Interacting with Siri using the command line
+ Interacting with Siri using the command line
My main objective was to see if I could issue multi-intent commands in one go. Obviously, Siri cannot do that (neither can Alexa, Cortana, or Google Assistant). The script here can issue either a single command, or use the help of OpenAI's DaVinci model to extract multiple commands and pass them onto siri.
-Prerequisites
+Prerequisites
- Run macOS
@@ -56,7 +56,7 @@
- Enable the Terminal to control System Events (The first time you run the script, it will prompt you to enable it)
-Show me ze code
+Show me ze code
If you are here just for the code:
@@ -136,11 +136,11 @@ python3 main.py &
-ELI5
+ELI5
I am not actually going to explain it as if I am explaining to a five-year old kid.
-AppleScript
+AppleScript
In the age of Siri Shortcuts, AppleScript can still do more. It is a scripting language created by Apple that can help you automate pretty much anything you see on your screen.
@@ -191,11 +191,11 @@ python3 main.py &
-Multi-Intent Commands
+Multi-Intent Commands
We can call OpenAI's API to autocomplete our prompt and extract multiple commands. We don't need to use OpenAI's API, and can also simply use Google's Flan-T5 model using HuggingFace's transformers library.
-Ze Prompt
+Ze Prompt
You are provided with multiple commands as a single command. Break down all the commands and return them in a list of strings. If you are provided with a single command, return a list with a single string, trying your best to understand the command.
@@ -217,7 +217,7 @@ python3 main.py &
This prompt gives the model a few examples to increase the generation accuracy, along with instructing it to return a Python list.
-Ze Code
+Ze Code
import openai
@@ -251,7 +251,7 @@ python3 main.py &
-Gluing together code
+Gluing together code
To finish it all off, we can use argparse to only send the input command to OpenAI when asked to do so.
@@ -271,7 +271,7 @@ python3 main.py &
-Conclusion
+Conclusion
Siri is still dumb. When I ask it to Switch off the lights
, it default to the home thousands of miles away. But, this code snippet definitely does work!
diff --git a/docs/posts/2023-04-30-n-body-simulation.html b/docs/posts/2023-04-30-n-body-simulation.html
index 1174d27..9a7c7a2 100644
--- a/docs/posts/2023-04-30-n-body-simulation.html
+++ b/docs/posts/2023-04-30-n-body-simulation.html
@@ -6,13 +6,13 @@
- n-body solution generator
+ id="n-body-solution-generator">n-body solution generator
-
-
+ n-body solution generator" />
+ n-body solution generator" />
@@ -44,7 +44,7 @@
- n-body solution generator
+ n-body solution generator
This post requires JavaScript to be viewed properly :(
@@ -61,7 +61,7 @@
To workaround memory issues, the simulations are only run on-demand when the user clicks the respective button. Scroll down to the bottom of the page to see the results.
-The n-body problem
+The n-body problem
The n-body problem is a classic puzzle in physics (and thus astrophysics) and mathematics that deals with predicting the motion of multiple celestial objects that interact with each other through gravitational forces.
@@ -71,7 +71,7 @@
As the number of objects increases, finding an exact solution becomes impossible, and we rely on analytical approximations.
-Visualising a basic orbit
+Visualising a basic orbit
If we want to create a n-body simulation in our browser, we need to figure out how we are going to visualise the motion of the objects. There are a few ways to do this, but the easiest is to use Plotly.js, a JavaScript library for creating interactive graphs. (An alternative is to use the HTML5 canvas element).
@@ -138,7 +138,7 @@ Next, the function dR takes the position r and velocity v of Earth as input and
Finally, we normalize the position data by dividing it by the astronomical unit (AU) to make it more visually meaningful. We also create a circle for reference, which represents a perfect circular orbit. The code ends with the data for the Sun's position, Earth's orbit, and the reference circle ready to be plotted.
-Plotting the orbit
+Plotting the orbit
Now that we have the data for the Sun's position, Earth's orbit, and the reference circle, we can plot them using Plotly.js.
@@ -212,7 +212,7 @@ Next, the function dR takes the position r and velocity v of Earth as input and
-Figure of 8 orbit
+Figure of 8 orbit
The figure of 8 solution[2] in the three-body problem refers to a unique and special trajectory where three celestial bodies (e.g., planets, stars) move in a figure of 8 shaped pattern around their mutual center of mass. This is special because it represents a stable and periodic solution to the three-body problem, which is known for its complexity and lack of general solutions.
@@ -226,7 +226,7 @@ Next, the function dR takes the position r and velocity v of Earth as input and
It looks cool!
-Show me the code
+Show me the code
The code for this simulation is very similar to the Earth-Sun orbit simulation, except that we now have three bodies instead of two. We also use a different set of initial conditions to generate the figure of 8 orbit.
@@ -318,7 +318,7 @@ Next, the function dR takes the position r and velocity v of Earth as input and
Finally, a loop iterates over each time step, updating the positions and velocities of the celestial bodies using the step
function. The updated coordinates are stored in the X
, Y
, VX
, and VY
arrays.
-Animation?
+Animation?
Now that we have time-series data, we need to animate it. We can use Plotly's animate function, as this does not force a full re-render, saving us some precious GPU and CPU cycles when we are trying to run this in the browser itself
@@ -438,9 +438,9 @@ Next, the function dR takes the position r and velocity v of Earth as input and
-"General" N-Body Solver
+"General" N-Body Solver
-Show me the code!
+Show me the code!
function step(coords, masses, deltaT, nBodies = 3, G = 6.67408313131313e-11) {
@@ -675,7 +675,7 @@ Next, the function dR takes the position r and velocity v of Earth as input and
-Playground
+Playground
@@ -759,7 +759,7 @@ function plotRandomNBodySimulation() {
-References
+References
- Barrow-Green, June (2008), "The Three-Body Problem", in Gowers, Timothy; Barrow-Green, June; Leader, Imre (eds.), The Princeton Companion to Mathematics, Princeton University Press, pp. 726–728
diff --git a/docs/posts/2023-10-04-bomb-lab.html b/docs/posts/2023-10-04-bomb-lab.html
index 919ee15..6f736a8 100644
--- a/docs/posts/2023-10-04-bomb-lab.html
+++ b/docs/posts/2023-10-04-bomb-lab.html
@@ -6,13 +6,13 @@
- Bomb Lab
+ id="bomb-lab">Bomb Lab
-
-
+ Bomb Lab" />
+ Bomb Lab" />
@@ -44,9 +44,9 @@
- Bomb Lab
+ Bomb Lab
-Introduction
+Introduction
Lab 2 for CSCI 2400 @ CU Boulder - Computer Systems
@@ -63,7 +63,7 @@
Note: I am not sure about the history of the bomb lab. I think it started at CMU.
-Phase 1
+Phase 1
joxxxn@jupyter-nxxh6xx8:~/lab2-bomblab-navanchauhan/bombbomb$ gdb -ex 'break phase_1' -ex 'break explode_bomb' -ex 'run' ./bomb
@@ -116,7 +116,7 @@ End of assembler <
-Phase 2
+Phase 2
Phase 1 defused. How about the next one?
@@ -239,7 +239,7 @@ That's number
-Phase 3
+Phase 3
Let us look at the disassembled code first
@@ -521,7 +521,7 @@ Halfway there!
-Phase 4
+Phase 4
joxxxn@jupyter-nxxh6xx8:~/lab2-bomblab-navanchauhan/bombbomb$ gdb -ex 'break phase_4' -ex 'break explode_bomb' -ex 'run' -args ./bomb sol.txt
@@ -732,7 +732,7 @@ So you got
-Phase 5
+Phase 5
So you got that one. Try this one.
@@ -863,7 +863,7 @@ Good work! On Awesome!
-Phase 6
+Phase 6
Good work! On to the next...
diff --git a/docs/posts/2023-10-05-attack-lab.html b/docs/posts/2023-10-05-attack-lab.html
index d2a1475..81fc27a 100644
--- a/docs/posts/2023-10-05-attack-lab.html
+++ b/docs/posts/2023-10-05-attack-lab.html
@@ -6,13 +6,13 @@
- Attack Lab
+ id="attack-lab">Attack Lab
-
-
+ Attack Lab" />
+ Attack Lab" />
@@ -44,9 +44,9 @@
- Attack Lab
+ Attack Lab
-Introduction
+Introduction
Lab 3 for CSCI 2400 @ CU Boulder - Computer Systems
@@ -59,7 +59,7 @@
objdump -d ctarget > dis.txt
-Phase 1
+Phase 1
From the instructions, we know that our task is to get CTARGET
to execute the code for touch1
when getbuf
executes its return statement, rather than returning to test
@@ -115,7 +115,7 @@ NICE JOB!
-Phase 2
+Phase 2
Phase 2 involves injecting a small amount of code as part of your exploit string.
@@ -275,7 +275,7 @@ NICE JOB!
-Phase 3
+Phase 3
Phase 3 also involves a code injection attack, but passing a string as argument.
@@ -379,7 +379,7 @@ NICE JOB!
Phases 1-3 Complete.
-Phase 4
+Phase 4
For Phase 4, you will repeat the attack of Phase 2, but do so on program RTARGET using gadgets from your
diff --git a/docs/posts/2023-10-22-search-by-flair-reddit.html b/docs/posts/2023-10-22-search-by-flair-reddit.html
index 432b24e..57604ee 100644
--- a/docs/posts/2023-10-22-search-by-flair-reddit.html
+++ b/docs/posts/2023-10-22-search-by-flair-reddit.html
@@ -6,13 +6,13 @@
-
Search / Filter posts by flair on Reddit
+ id="search-filter-posts-by-flair-on-reddit">Search / Filter posts by flair on Reddit
-
-
+ Search / Filter posts by flair on Reddit" />
+ Search / Filter posts by flair on Reddit" />
@@ -44,7 +44,7 @@
- Search / Filter posts by flair on Reddit
+ Search / Filter posts by flair on Reddit
Remember to replace any spaces in the flair with _
diff --git a/docs/posts/2024-01-05-hello-20224.html b/docs/posts/2024-01-05-hello-20224.html
index f33a86c..1a2282c 100644
--- a/docs/posts/2024-01-05-hello-20224.html
+++ b/docs/posts/2024-01-05-hello-20224.html
@@ -6,13 +6,13 @@
- Hello 2024
+ id="hello-2024">Hello 2024
-
-
+ Hello 2024" />
+ Hello 2024" />
@@ -44,17 +44,17 @@
- Hello 2024
+ Hello 2024
2024 % 4 == 0
-2023
+2023
Another revolution around the sun! This was a pretty fun and interesting year. I got to work on some interesting projects, and learned a lot.
I am going to try and use my GitHub activity to recap.
-Spring
+Spring
- I helped a friend modernize their Larvael codebase. Dockerized it for easier development, and added a CD pipeline. (Probably going to be released by end of this year)
@@ -65,7 +65,7 @@
- Got into Mountain Biking!
-Summer
+Summer
Summer was more relaxing. I mainly worked on some maintenance patches for my projects, and did some more freelancing stuff.
@@ -74,7 +74,7 @@
- Continued working on a research project using Computer Vision in analysing a lateral flow assay. Tried porting it to use OpenCV.js, but it wasn't reliable enough. I might look into directly working with OpenCV/Vision Framework for an iOS app.
-Fall
+Fall
- Won a couple more hackathons. I might summarize my hackathon experience in a different blog post.
@@ -90,7 +90,7 @@
I also did a ton of other stuff, but I am not sure how much I want to be sharing on my blog here. Maybe as I write more I will get more comfortable with sharing more information.
-2024
+2024
So, what are my plans for 2024? Learn. Build. Ship.
diff --git a/docs/posts/2024-02-26-control-element-under-another-element-html-css.html b/docs/posts/2024-02-26-control-element-under-another-element-html-css.html
index b9c9ebc..3085822 100644
--- a/docs/posts/2024-02-26-control-element-under-another-element-html-css.html
+++ b/docs/posts/2024-02-26-control-element-under-another-element-html-css.html
@@ -6,13 +6,13 @@
- Interacting with underlying element in HTML
+ id="interacting-with-underlying-element-in-html">Interacting with underlying element in HTML
-
-
+ Interacting with underlying element in HTML" />
+ Interacting with underlying element in HTML" />
@@ -44,7 +44,7 @@
- Interacting with underlying element in HTML
+ Interacting with underlying element in HTML
I know that the title is a bit weird. I was trying to interact with a video under an iPhone Bezel Screen frame.
@@ -76,7 +76,7 @@
Let us try this in a simple example.
-Example
+Example
Here, we create a button and overlay a transparent box
diff --git a/docs/posts/2024-03-15-setting-up-macos-for-8088-dos-dev.html b/docs/posts/2024-03-15-setting-up-macos-for-8088-dos-dev.html
index bb37d00..5fd5c48 100644
--- a/docs/posts/2024-03-15-setting-up-macos-for-8088-dos-dev.html
+++ b/docs/posts/2024-03-15-setting-up-macos-for-8088-dos-dev.html
@@ -6,13 +6,13 @@
- Cross-Compiling Hello World for DOS on macOS
+ id="cross-compiling-hello-world-for-dos-on-macos">Cross-Compiling Hello World for DOS on macOS
-
-
+ Cross-Compiling Hello World for DOS on macOS" />
+ Cross-Compiling Hello World for DOS on macOS" />
@@ -44,12 +44,12 @@
- Cross-Compiling Hello World for DOS on macOS
+ Cross-Compiling Hello World for DOS on macOS
Technically this should work for any platform that OpenWatcom 2 supports compiling binaries for. Some instructions are based on a post at retrocoding.net,
and John Tsiombikas's post
-Prerequisites
+Prerequisites
You should already have XCode / Command Line Tools, and Homebrew installed. To compile Open Watcom for DOS you will need DOSBox (I use DOSBox-X).
@@ -58,7 +58,7 @@
-Compiling Open Watcom v2
+Compiling Open Watcom v2
If this process is super annoying, I might make a custom homebrew tap to build and install Open Watcom
@@ -115,9 +115,9 @@ cp open-watcom-v2/setvars.sh custo
Then, when you need to load up these variables, you can simply run source exportVarsForDOS.sh
or . exportVarsForDOS.sh
-Hello World
+Hello World
-Buliding without any Makefiles
+Buliding without any Makefiles
Create a new file called example1.c
@@ -163,7 +163,7 @@ creating a DOS If you want to test this executable, jump to the section titled Testing with DOSBox-X
below.
-Simple Makefile
+Simple Makefile
obj = main.o hello.o
@@ -251,7 +251,7 @@ creating a DOS
-Using CMake
+Using CMake
Create a file called CMakeLists.txt
@@ -289,7 +289,7 @@ creating a DOS There you have it. Three different ways to compile a C program on a macOS device in 2024 that can run on an IBM PC 5150 (which was released in 1981!)
-Testing with DOSBox-X
+Testing with DOSBox-X
cp example1.exe ~/Downloads
diff --git a/docs/posts/2024-03-21-Polynomial-Regression-in-TensorFlow-2.html b/docs/posts/2024-03-21-Polynomial-Regression-in-TensorFlow-2.html
index ab46ec7..0d958b2 100644
--- a/docs/posts/2024-03-21-Polynomial-Regression-in-TensorFlow-2.html
+++ b/docs/posts/2024-03-21-Polynomial-Regression-in-TensorFlow-2.html
@@ -6,13 +6,13 @@
- Polynomial Regression Using TensorFlow 2.x
+ id="polynomial-regression-using-tensorflow-2x">Polynomial Regression Using TensorFlow 2.x
-
-
+ Polynomial Regression Using TensorFlow 2.x" />
+ Polynomial Regression Using TensorFlow 2.x" />
@@ -44,13 +44,13 @@
- Polynomial Regression Using TensorFlow 2.x
+ Polynomial Regression Using TensorFlow 2.x
I have a similar post titled Polynomial Regression Using Tensorflow that used tensorflow.compat.v1
(Which still works as of TF 2.16). But, I thought it would be nicer to redo it with newer TF versions.
I will be skipping all the introductions about polynomial regression and jumping straight to the code. Personally, I prefer using scikit-learn
for this task.
-Position vs Salary Dataset
+Position vs Salary Dataset
Again, we will be using https://drive.google.com/file/d/1tNL4jxZEfpaP4oflfSn6pIHJX7Pachm9/view (Salary vs Position Dataset)
@@ -61,11 +61,11 @@
-Code
+Code
If you just want to copy-paste the code, scroll to the bottom for the entire snippet. Here I will try and walk through setting up code for a 3rd-degree (cubic) polynomial
-Imports
+Imports
import pandas as pd
@@ -75,14 +75,14 @@
-Reading the Dataset
+Reading the Dataset
df = pd.read_csv("data.csv")
-Variables and Constants
+Variables and Constants
Here, we initialize the X and Y values as constants, since they are not going to change. The coefficients are defined as variables.
@@ -109,7 +109,7 @@
-Optimizer Selection & Training
+Optimizer Selection & Training
optimizer = tf.keras.optimizers.Adam(learning_rate=0.3)
@@ -136,7 +136,7 @@
Where is the predicted value and is the actual value
-Plotting Final Coefficients
+Plotting Final Coefficients
final_coefficients = [c.numpy() for c in coefficients]
@@ -151,9 +151,9 @@
-Code Snippet for a Polynomial of Degree N
+Code Snippet for a Polynomial of Degree N
-Using Gradient Tape
+Using Gradient Tape
This should work regardless of the Keras backend version (2 or 3)
@@ -208,7 +208,7 @@
-Without Gradient Tape
+Without Gradient Tape
This relies on the Optimizer's minimize
function and uses the var_list
parameter to update the variables.
@@ -268,7 +268,7 @@
As always, remember to tweak the parameters and choose the correct model for the job. A polynomial regression model might not even be the best model for this particular dataset.
-Further Programming
+Further Programming
How would you modify this code to use another type of nonlinear regression? Say,
diff --git a/docs/posts/2024-03-26-Derivation-of-the-Quadratic-Equation.html b/docs/posts/2024-03-26-Derivation-of-the-Quadratic-Equation.html
index 6f02f7c..c99950a 100644
--- a/docs/posts/2024-03-26-Derivation-of-the-Quadratic-Equation.html
+++ b/docs/posts/2024-03-26-Derivation-of-the-Quadratic-Equation.html
@@ -6,13 +6,13 @@
- Quadratic Formula Derivation
+ id="quadratic-formula-derivation">Quadratic Formula Derivation
-
-
+ Quadratic Formula Derivation" />
+ Quadratic Formula Derivation" />
@@ -44,7 +44,7 @@
- Quadratic Formula Derivation
+ Quadratic Formula Derivation
The standard form of a quadratic equation is:
diff --git a/docs/posts/hello-world.html b/docs/posts/hello-world.html
index ff88f3c..e9e6891 100644
--- a/docs/posts/hello-world.html
+++ b/docs/posts/hello-world.html
@@ -6,13 +6,13 @@
- Hello World
+ id="hello-world">Hello World
-
-
+ Hello World" />
+ Hello World" />
@@ -44,7 +44,7 @@
- Hello World
+ Hello World
Why a Hello World post?
diff --git a/docs/posts/index.html b/docs/posts/index.html
index 40b6a92..95592fd 100644
--- a/docs/posts/index.html
+++ b/docs/posts/index.html
@@ -44,7 +44,7 @@
- Posts
+ Posts
Tips, tricks and tutorials which I think might be useful.
@@ -52,7 +52,7 @@
- - Quadratic Formula Derivation
+ - id="quadratic-formula-derivation">Quadratic Formula Derivation
- Quick derivation of the quadratic equation by completing the square
- Published On: 2024-03-26 15:36
@@ -63,7 +63,7 @@
- - Polynomial Regression Using TensorFlow 2.x
+ - id="polynomial-regression-using-tensorflow-2x">Polynomial Regression Using TensorFlow 2.x
- Predicting n-th degree polynomials using TensorFlow 2.x
- Published On: 2024-03-21 12:46
@@ -78,7 +78,7 @@
- - Cross-Compiling Hello World for DOS on macOS
+ - id="cross-compiling-hello-world-for-dos-on-macos">Cross-Compiling Hello World for DOS on macOS
- This goes through compiling Open Watcom 2 and creating simple hello-world exampls
- Published On: 2024-03-15 13:16
@@ -93,7 +93,7 @@
- - Interacting with underlying element in HTML
+ - id="interacting-with-underlying-element-in-html">Interacting with underlying element in HTML
- With CSS you can disable any interactions with an element and directly control the underlying element
- Published On: 2024-02-26 11:57
@@ -106,7 +106,7 @@
- - Hello 2024
+ - id="hello-2024">Hello 2024
- Recap of 2023, and my goals for 2024
- Published On: 2024-01-05 23:16
@@ -119,7 +119,7 @@
- - Search / Filter posts by flair on Reddit
+ - id="search-filter-posts-by-flair-on-reddit">Search / Filter posts by flair on Reddit
- Search posts by flair on Reddit Web by using _
- Published On: 2023-10-22 00:37
@@ -132,7 +132,7 @@
- - Attack Lab
+ - id="attack-lab">Attack Lab
- Walkthrough of Attack Lab Phases 1-4 for CSCI 2400 Computer Systems
- Published On: 2023-10-05 20:01
@@ -151,7 +151,7 @@
- - Bomb Lab
+ - id="bomb-lab">Bomb Lab
- Walkthrough of Phases 1-6 of Bomb Lab for CSCI 2400 Computer Systems Lab 2
- Published On: 2023-10-04 13:12
@@ -170,7 +170,7 @@
- - n-body solution generator
+ - id="n-body-solution-generator">n-body solution generator
- n-body solution generator and solver
- Published On: 2023-04-30 22:50
@@ -183,7 +183,7 @@
- - Interacting with Siri using the command line
+ - id="interacting-with-siri-using-the-command-line">Interacting with Siri using the command line
- Code snippet to interact with Siri by issuing commands from the command-line.
- Published On: 2023-02-08 17:21
@@ -204,7 +204,7 @@
- - Posting blogs as Mastodon Toots
+ - id="posting-blogs-as-mastodon-toots">Posting blogs as Mastodon Toots
- Cross posting blog posts to Mastodon
- Published On: 2022-12-25 17:32
@@ -217,7 +217,7 @@
- - A new method to blog
+ - id="a-new-method-to-blog">A new method to blog
- Writing posts in markdown using pen and paper
- Published On: 2022-11-07 23:29
@@ -232,7 +232,7 @@
- - Why You No Host?
+ - id="why-you-no-host">Why You No Host?
- Why you should self-host with YunoHost
- Published On: 2022-08-05 14:46
@@ -245,7 +245,7 @@
- - Building a Similar Movies Recommendation System
+ - id="building-a-similar-movies-recommendation-system">Building a Similar Movies Recommendation System
- Building a Content Based Similar Movies Recommendatiom System
- Published On: 2022-05-21 17:56
@@ -260,7 +260,7 @@
- - Making a Crude ML Powered Chatbot in Swift using CoreML
+ - id="making-a-crude-ml-powered-chatbot-in-swift-using-coreml">Making a Crude ML Powered Chatbot in Swift using CoreML
- Writing a simple Machine-Learning powered Chatbot (or, daresay virtual personal assistant ) in Swift using CoreML.
- Published On: 2021-06-27 23:26
@@ -275,7 +275,7 @@
- - Cheminformatics on the Web (2021)
+ - id="cheminformatics-on-the-web-2021">Cheminformatics on the Web (2021)
- Summarising Cheminformatics on the web in 2021.
- Published On: 2021-06-26 13:04
@@ -288,7 +288,7 @@
- - Basic NFC Music Cards for iOS
+ - id="basic-nfc-music-cards-for-ios">Basic NFC Music Cards for iOS
- Basic NFC Music Cards on iOS with Shortcuts
- Published On: 2021-06-25 16:20
@@ -303,7 +303,7 @@
- - Posting Blog Posts as Twitter Threads Part 1/n
+ - id="posting-blog-posts-as-twitter-threads-part-1n">Posting Blog Posts as Twitter Threads Part 1/n
- Converting Posts to Twitter Threads
- Published On: 2021-06-25 00:08
@@ -318,7 +318,7 @@
- - RSS Feed written in HTML + JavaScript
+ - id="rss-feed-written-in-html-javascript">RSS Feed written in HTML + JavaScript
- Short code-snippet for an RSS feed, written in HTML and JavaScript
- Published On: 2020-12-01 20:52
@@ -335,7 +335,7 @@
- - Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt
+ - id="generating-https-certificate-using-dns-a-challenge-through-lets-encrypt">Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt
- Short code-snippet to generate HTTPS certificates using the DNS Challenge through Lets Encrypt for a web-server using DuckDNS.
- Published On: 2020-11-17 15:04
@@ -350,7 +350,7 @@
- - Trying Different Camera Setups
+ - id="trying-different-camera-setups">Trying Different Camera Setups
- Comparison of different cameras setups for using as a webcam and tutorials for the same.
- Published On: 2020-10-11 16:12
@@ -365,7 +365,7 @@
- - Introduction to AR.js and Natural Feature Tracking
+ - id="introduction-to-arjs-and-natural-feature-tracking">Introduction to AR.js and Natural Feature Tracking
- An introduction to AR.js and NFT
- Published On: 2020-08-01 15:43
@@ -382,7 +382,7 @@
- - Installing RDKit on Google Colab
+ - id="installing-rdkit-on-google-colab">Installing RDKit on Google Colab
- Install RDKit on Google Colab with one code snippet.
- Published On: 2020-07-01 14:23
@@ -397,7 +397,7 @@
- - Compiling AutoDock Vina on iOS
+ - id="compiling-autodock-vina-on-ios">Compiling AutoDock Vina on iOS
- Compiling AutoDock Vina on iOS
- Published On: 2020-06-02 23:23
@@ -416,7 +416,7 @@
- - Workflow for Lightning Fast Molecular Docking Part One
+ - id="workflow-for-lightning-fast-molecular-docking-part-one">Workflow for Lightning Fast Molecular Docking Part One
- This is my workflow for lightning fast molecular docking.
- Published On: 2020-06-01 13:10
@@ -435,7 +435,7 @@
- - Compiling Open Babel on iOS
+ - id="compiling-open-babel-on-ios">Compiling Open Babel on iOS
- Compiling Open Babel on iOS
- Published On: 2020-05-31 23:30
@@ -452,7 +452,7 @@
- - Fixing X11 Error on macOS Catalina for AmberTools 18/19
+ - id="fixing-x11-error-on-macos-catalina-for-ambertools-1819">Fixing X11 Error on macOS Catalina for AmberTools 18/19
- Fixing Could not find the X11 libraries; you may need to edit config.h, AmberTools macOS Catalina
- Published On: 2020-04-13 11:41
@@ -465,7 +465,7 @@
- - Making My First Vaporwave Track (Remix)
+ - id="making-my-first-vaporwave-track-remix">Making My First Vaporwave Track (Remix)
- I made my first vaporwave remix
- Published On: 2020-03-08 23:17
@@ -478,7 +478,7 @@
- - Tinkering with an Android TV
+ - id="tinkering-with-an-android-tv">Tinkering with an Android TV
- Tinkering with an Android TV
- Published On: 2020-03-03 18:37
@@ -491,7 +491,7 @@
- - How to setup Bluetooth on a Raspberry Pi
+ - id="how-to-setup-bluetooth-on-a-raspberry-pi">How to setup Bluetooth on a Raspberry Pi
- Connecting to Bluetooth Devices using terminal, tested on Raspberry Pi Zero W
- Published On: 2020-01-19 15:27
@@ -508,7 +508,7 @@
- - Creating a Custom Image Classifier using Turicreate to detect Smoke and Fire
+ - id="creating-a-custom-image-classifier-using-turicreate-to-detect-smoke-and-fire">Creating a Custom Image Classifier using Turicreate to detect Smoke and Fire
- Tutorial on creating a custom Image Classifier using Turicreate and a dataset from Kaggle
- Published On: 2020-01-16 10:36
@@ -523,7 +523,7 @@
- - Setting up Kaggle to use with Google Colab
+ - id="setting-up-kaggle-to-use-with-google-colab">Setting up Kaggle to use with Google Colab
- Tutorial on setting up kaggle, to use with Google Colab
- Published On: 2020-01-15 23:36
@@ -540,7 +540,7 @@
- - Converting between image and NumPy array
+ - id="converting-between-image-and-numpy-array">Converting between image and NumPy array
- Short code snippet for converting between PIL image and NumPy arrays.
- Published On: 2020-01-14 00:10
@@ -553,7 +553,7 @@
- - Building a Fake News Detector with Turicreate
+ - id="building-a-fake-news-detector-with-turicreate">Building a Fake News Detector with Turicreate
- In this tutorial we will build a fake news detecting app from scratch, using Turicreate for the machine learning model and SwiftUI for building the app
- Published On: 2019-12-22 11:10
@@ -570,7 +570,7 @@
- - Polynomial Regression Using TensorFlow
+ - id="polynomial-regression-using-tensorflow">Polynomial Regression Using TensorFlow
- Polynomial regression using TensorFlow
- Published On: 2019-12-16 14:16
@@ -585,7 +585,7 @@
- - Making Predictions using Image Classifier (TensorFlow)
+ - id="making-predictions-using-image-classifier-tensorflow">Making Predictions using Image Classifier (TensorFlow)
- Making predictions for image classification models built using TensorFlow
- Published On: 2019-12-10 11:10
@@ -600,7 +600,7 @@
- - Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria
+ - id="creating-a-custom-image-classifier-using-tensorflow-2x-and-keras-for-detecting-malaria">Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria
- Tutorial on creating an image classifier model using TensorFlow which detects malaria
- Published On: 2019-12-08 14:16
@@ -615,7 +615,7 @@
- - Splitting ZIPs into Multiple Parts
+ - id="splitting-zips-into-multiple-parts">Splitting ZIPs into Multiple Parts
- Short code snippet for splitting zips.
- Published On: 2019-12-08 13:27
@@ -628,7 +628,7 @@
- - Image Classifier With Teachable Machines
+ - id="image-classifier-with-teachable-machines">Image Classifier With Teachable Machines
- Tutorial on creating a custom image classifier quickly with Google Teachable Machines
- Published On: 2019-12-04 18:23
@@ -639,7 +639,7 @@
- - Creating your own custom theme for Snowboard or Anemone
+ - id="creating-your-own-custom-theme-for-snowboard-or-anemone">Creating your own custom theme for Snowboard or Anemone
- Tutorial on creating your own custom theme for Snowboard or Anemone
- Published On: 2019-05-05 12:34
@@ -658,7 +658,7 @@
- - Hello World
+ - id="hello-world">Hello World
- My first post.
- Published On: 2019-04-16 17:39
@@ -669,7 +669,7 @@
- - Experiments
+ - id="experiments">Experiments
- Just a markdown file for all experiments related to the website
- Published On: 2010-01-24 23:43
--
cgit v1.2.3
From 9e620084e57378952c1a7f8e0a772ebebd18932b Mon Sep 17 00:00:00 2001
From: Navan Chauhan
Date: Wed, 27 Mar 2024 20:35:09 -0600
Subject: quick fix
---
docs/posts/2010-01-24-experiments.html | 6 +-
.../2019-05-05-Custom-Snowboard-Anemone-Theme.html | 6 +-
.../2019-12-04-Google-Teachable-Machines.html | 6 +-
.../2019-12-08-Image-Classifier-Tensorflow.html | 6 +-
docs/posts/2019-12-08-Splitting-Zips.html | 6 +-
.../2019-12-10-TensorFlow-Model-Prediction.html | 6 +-
...019-12-16-TensorFlow-Polynomial-Regression.html | 6 +-
docs/posts/2019-12-22-Fake-News-Detector.html | 6 +-
.../2020-01-14-Converting-between-PIL-NumPy.html | 6 +-
...-01-15-Setting-up-Kaggle-to-use-with-Colab.html | 6 +-
...20-01-16-Image-Classifier-Using-Turicreate.html | 6 +-
...onnect-To-Bluetooth-Devices-Linux-Terminal.html | 6 +-
docs/posts/2020-03-03-Playing-With-Android-TV.html | 6 +-
docs/posts/2020-03-08-Making-Vaporwave-Track.html | 6 +-
...20-04-13-Fixing-X11-Error-AmberTools-macOS.html | 6 +-
.../2020-05-31-compiling-open-babel-on-ios.html | 6 +-
...r-Docking-Workflow-AutoDock-Vina-and-PyMOL.html | 6 +-
.../2020-06-02-Compiling-AutoDock-Vina-on-iOS.html | 6 +-
docs/posts/2020-07-01-Install-rdkit-colab.html | 6 +-
.../2020-08-01-Natural-Feature-Tracking-ARJS.html | 6 +-
docs/posts/2020-10-11-macOS-Virtual-Cam-OBS.html | 6 +-
docs/posts/2020-11-17-Lets-Encrypt-DuckDns.html | 6 +-
docs/posts/2020-12-1-HTML-JS-RSS-Feed.html | 6 +-
docs/posts/2021-06-25-Blog2Twitter-P1.html | 6 +-
.../2021-06-25-NFC-Music-Cards-Basic-iOS.html | 6 +-
...2021-06-26-Cheminformatics-On-The-Web-2021.html | 6 +-
...21-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html | 6 +-
.../2022-05-21-Similar-Movies-Recommender.html | 6 +-
docs/posts/2022-08-05-Why-You-No-Host.html | 6 +-
docs/posts/2022-11-07-a-new-method-to-blog.html | 6 +-
docs/posts/2022-12-25-blog-to-toot.html | 6 +-
...02-08-Interact-with-siri-from-the-terminal.html | 6 +-
docs/posts/2023-04-30-n-body-simulation.html | 6 +-
docs/posts/2023-10-04-bomb-lab.html | 6 +-
docs/posts/2023-10-05-attack-lab.html | 6 +-
docs/posts/2023-10-22-search-by-flair-reddit.html | 6 +-
docs/posts/2024-01-05-hello-20224.html | 6 +-
...rol-element-under-another-element-html-css.html | 6 +-
...24-03-15-setting-up-macos-for-8088-dos-dev.html | 6 +-
...3-21-Polynomial-Regression-in-TensorFlow-2.html | 6 +-
...03-26-Derivation-of-the-Quadratic-Equation.html | 6 +-
docs/posts/hello-world.html | 6 +-
docs/posts/index.html | 84 +++++++++++-----------
43 files changed, 168 insertions(+), 168 deletions(-)
(limited to 'docs/posts')
diff --git a/docs/posts/2010-01-24-experiments.html b/docs/posts/2010-01-24-experiments.html
index 5ca70f9..ba06715 100644
--- a/docs/posts/2010-01-24-experiments.html
+++ b/docs/posts/2010-01-24-experiments.html
@@ -6,13 +6,13 @@
- id="experiments">Experiments
+ Experiments
- Experiments" />
- Experiments" />
+
+
diff --git a/docs/posts/2019-05-05-Custom-Snowboard-Anemone-Theme.html b/docs/posts/2019-05-05-Custom-Snowboard-Anemone-Theme.html
index 7b0748e..4463b37 100644
--- a/docs/posts/2019-05-05-Custom-Snowboard-Anemone-Theme.html
+++ b/docs/posts/2019-05-05-Custom-Snowboard-Anemone-Theme.html
@@ -6,13 +6,13 @@
- id="creating-your-own-custom-theme-for-snowboard-or-anemone">Creating your own custom theme for Snowboard or Anemone
+ Creating your own custom theme for Snowboard or Anemone
- Creating your own custom theme for Snowboard or Anemone" />
- Creating your own custom theme for Snowboard or Anemone" />
+
+
diff --git a/docs/posts/2019-12-04-Google-Teachable-Machines.html b/docs/posts/2019-12-04-Google-Teachable-Machines.html
index e8e0227..878ed30 100644
--- a/docs/posts/2019-12-04-Google-Teachable-Machines.html
+++ b/docs/posts/2019-12-04-Google-Teachable-Machines.html
@@ -6,13 +6,13 @@
- id="image-classifier-with-teachable-machines">Image Classifier With Teachable Machines
+ Image Classifier With Teachable Machines
- Image Classifier With Teachable Machines" />
- Image Classifier With Teachable Machines" />
+
+
diff --git a/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html b/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html
index a5f7ef9..b75bdca 100644
--- a/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html
+++ b/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html
@@ -6,13 +6,13 @@
- id="creating-a-custom-image-classifier-using-tensorflow-2x-and-keras-for-detecting-malaria">Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria
+ Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria
- Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria" />
- Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria" />
+
+
diff --git a/docs/posts/2019-12-08-Splitting-Zips.html b/docs/posts/2019-12-08-Splitting-Zips.html
index d909be2..1ecb4e6 100644
--- a/docs/posts/2019-12-08-Splitting-Zips.html
+++ b/docs/posts/2019-12-08-Splitting-Zips.html
@@ -6,13 +6,13 @@
- id="splitting-zips-into-multiple-parts">Splitting ZIPs into Multiple Parts
+ Splitting ZIPs into Multiple Parts
- Splitting ZIPs into Multiple Parts" />
- Splitting ZIPs into Multiple Parts" />
+
+
diff --git a/docs/posts/2019-12-10-TensorFlow-Model-Prediction.html b/docs/posts/2019-12-10-TensorFlow-Model-Prediction.html
index e0e9e10..ecb7680 100644
--- a/docs/posts/2019-12-10-TensorFlow-Model-Prediction.html
+++ b/docs/posts/2019-12-10-TensorFlow-Model-Prediction.html
@@ -6,13 +6,13 @@
- id="making-predictions-using-image-classifier-tensorflow">Making Predictions using Image Classifier (TensorFlow)
+ Making Predictions using Image Classifier (TensorFlow)
- Making Predictions using Image Classifier (TensorFlow)" />
- Making Predictions using Image Classifier (TensorFlow)" />
+
+
diff --git a/docs/posts/2019-12-16-TensorFlow-Polynomial-Regression.html b/docs/posts/2019-12-16-TensorFlow-Polynomial-Regression.html
index e432792..3f3a399 100644
--- a/docs/posts/2019-12-16-TensorFlow-Polynomial-Regression.html
+++ b/docs/posts/2019-12-16-TensorFlow-Polynomial-Regression.html
@@ -6,13 +6,13 @@
- id="polynomial-regression-using-tensorflow">Polynomial Regression Using TensorFlow
+ Polynomial Regression Using TensorFlow
- Polynomial Regression Using TensorFlow" />
- Polynomial Regression Using TensorFlow" />
+
+
diff --git a/docs/posts/2019-12-22-Fake-News-Detector.html b/docs/posts/2019-12-22-Fake-News-Detector.html
index a7216aa..553831d 100644
--- a/docs/posts/2019-12-22-Fake-News-Detector.html
+++ b/docs/posts/2019-12-22-Fake-News-Detector.html
@@ -6,13 +6,13 @@
- id="building-a-fake-news-detector-with-turicreate">Building a Fake News Detector with Turicreate
+ Building a Fake News Detector with Turicreate
- Building a Fake News Detector with Turicreate" />
- Building a Fake News Detector with Turicreate" />
+
+
diff --git a/docs/posts/2020-01-14-Converting-between-PIL-NumPy.html b/docs/posts/2020-01-14-Converting-between-PIL-NumPy.html
index 793585e..825f17d 100644
--- a/docs/posts/2020-01-14-Converting-between-PIL-NumPy.html
+++ b/docs/posts/2020-01-14-Converting-between-PIL-NumPy.html
@@ -6,13 +6,13 @@
- id="converting-between-image-and-numpy-array">Converting between image and NumPy array
+ Converting between image and NumPy array
- Converting between image and NumPy array" />
- Converting between image and NumPy array" />
+
+
diff --git a/docs/posts/2020-01-15-Setting-up-Kaggle-to-use-with-Colab.html b/docs/posts/2020-01-15-Setting-up-Kaggle-to-use-with-Colab.html
index 00a4ed0..760d44b 100644
--- a/docs/posts/2020-01-15-Setting-up-Kaggle-to-use-with-Colab.html
+++ b/docs/posts/2020-01-15-Setting-up-Kaggle-to-use-with-Colab.html
@@ -6,13 +6,13 @@
- id="setting-up-kaggle-to-use-with-google-colab">Setting up Kaggle to use with Google Colab
+ Setting up Kaggle to use with Google Colab
- Setting up Kaggle to use with Google Colab" />
- Setting up Kaggle to use with Google Colab" />
+
+
diff --git a/docs/posts/2020-01-16-Image-Classifier-Using-Turicreate.html b/docs/posts/2020-01-16-Image-Classifier-Using-Turicreate.html
index c81a687..f9ed54d 100644
--- a/docs/posts/2020-01-16-Image-Classifier-Using-Turicreate.html
+++ b/docs/posts/2020-01-16-Image-Classifier-Using-Turicreate.html
@@ -6,13 +6,13 @@
- id="creating-a-custom-image-classifier-using-turicreate-to-detect-smoke-and-fire">Creating a Custom Image Classifier using Turicreate to detect Smoke and Fire
+ Creating a Custom Image Classifier using Turicreate to detect Smoke and Fire
- Creating a Custom Image Classifier using Turicreate to detect Smoke and Fire" />
- Creating a Custom Image Classifier using Turicreate to detect Smoke and Fire" />
+
+
diff --git a/docs/posts/2020-01-19-Connect-To-Bluetooth-Devices-Linux-Terminal.html b/docs/posts/2020-01-19-Connect-To-Bluetooth-Devices-Linux-Terminal.html
index ef3f052..4524da8 100644
--- a/docs/posts/2020-01-19-Connect-To-Bluetooth-Devices-Linux-Terminal.html
+++ b/docs/posts/2020-01-19-Connect-To-Bluetooth-Devices-Linux-Terminal.html
@@ -6,13 +6,13 @@
- id="how-to-setup-bluetooth-on-a-raspberry-pi">How to setup Bluetooth on a Raspberry Pi
+ How to setup Bluetooth on a Raspberry Pi
- How to setup Bluetooth on a Raspberry Pi" />
- How to setup Bluetooth on a Raspberry Pi" />
+
+
diff --git a/docs/posts/2020-03-03-Playing-With-Android-TV.html b/docs/posts/2020-03-03-Playing-With-Android-TV.html
index f31b869..923730c 100644
--- a/docs/posts/2020-03-03-Playing-With-Android-TV.html
+++ b/docs/posts/2020-03-03-Playing-With-Android-TV.html
@@ -6,13 +6,13 @@
- id="tinkering-with-an-android-tv">Tinkering with an Android TV
+ Tinkering with an Android TV
- Tinkering with an Android TV" />
- Tinkering with an Android TV" />
+
+
diff --git a/docs/posts/2020-03-08-Making-Vaporwave-Track.html b/docs/posts/2020-03-08-Making-Vaporwave-Track.html
index 41fae3c..5b01064 100644
--- a/docs/posts/2020-03-08-Making-Vaporwave-Track.html
+++ b/docs/posts/2020-03-08-Making-Vaporwave-Track.html
@@ -6,13 +6,13 @@
- id="making-my-first-vaporwave-track-remix">Making My First Vaporwave Track (Remix)
+ Making My First Vaporwave Track (Remix)
- Making My First Vaporwave Track (Remix)" />
- Making My First Vaporwave Track (Remix)" />
+
+
diff --git a/docs/posts/2020-04-13-Fixing-X11-Error-AmberTools-macOS.html b/docs/posts/2020-04-13-Fixing-X11-Error-AmberTools-macOS.html
index 97c3bc3..bb6a5f1 100644
--- a/docs/posts/2020-04-13-Fixing-X11-Error-AmberTools-macOS.html
+++ b/docs/posts/2020-04-13-Fixing-X11-Error-AmberTools-macOS.html
@@ -6,13 +6,13 @@
- id="fixing-x11-error-on-macos-catalina-for-ambertools-1819">Fixing X11 Error on macOS Catalina for AmberTools 18/19
+ Fixing X11 Error on macOS Catalina for AmberTools 18/19
- Fixing X11 Error on macOS Catalina for AmberTools 18/19" />
- Fixing X11 Error on macOS Catalina for AmberTools 18/19" />
+
+
diff --git a/docs/posts/2020-05-31-compiling-open-babel-on-ios.html b/docs/posts/2020-05-31-compiling-open-babel-on-ios.html
index 708d1bd..f9a5cb4 100644
--- a/docs/posts/2020-05-31-compiling-open-babel-on-ios.html
+++ b/docs/posts/2020-05-31-compiling-open-babel-on-ios.html
@@ -6,13 +6,13 @@
- id="compiling-open-babel-on-ios">Compiling Open Babel on iOS
+ Compiling Open Babel on iOS
- Compiling Open Babel on iOS" />
- Compiling Open Babel on iOS" />
+
+
diff --git a/docs/posts/2020-06-01-Speeding-Up-Molecular-Docking-Workflow-AutoDock-Vina-and-PyMOL.html b/docs/posts/2020-06-01-Speeding-Up-Molecular-Docking-Workflow-AutoDock-Vina-and-PyMOL.html
index cc8baf5..8126a04 100644
--- a/docs/posts/2020-06-01-Speeding-Up-Molecular-Docking-Workflow-AutoDock-Vina-and-PyMOL.html
+++ b/docs/posts/2020-06-01-Speeding-Up-Molecular-Docking-Workflow-AutoDock-Vina-and-PyMOL.html
@@ -6,13 +6,13 @@
- id="workflow-for-lightning-fast-molecular-docking-part-one">Workflow for Lightning Fast Molecular Docking Part One
+ Workflow for Lightning Fast Molecular Docking Part One
- Workflow for Lightning Fast Molecular Docking Part One" />
- Workflow for Lightning Fast Molecular Docking Part One" />
+
+
diff --git a/docs/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOS.html b/docs/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOS.html
index 1aed192..7efd518 100644
--- a/docs/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOS.html
+++ b/docs/posts/2020-06-02-Compiling-AutoDock-Vina-on-iOS.html
@@ -6,13 +6,13 @@
- id="compiling-autodock-vina-on-ios">Compiling AutoDock Vina on iOS
+ Compiling AutoDock Vina on iOS
- Compiling AutoDock Vina on iOS" />
- Compiling AutoDock Vina on iOS" />
+
+
diff --git a/docs/posts/2020-07-01-Install-rdkit-colab.html b/docs/posts/2020-07-01-Install-rdkit-colab.html
index f5acc52..6e96c60 100644
--- a/docs/posts/2020-07-01-Install-rdkit-colab.html
+++ b/docs/posts/2020-07-01-Install-rdkit-colab.html
@@ -6,13 +6,13 @@
- id="installing-rdkit-on-google-colab">Installing RDKit on Google Colab
+ Installing RDKit on Google Colab
- Installing RDKit on Google Colab" />
- Installing RDKit on Google Colab" />
+
+
diff --git a/docs/posts/2020-08-01-Natural-Feature-Tracking-ARJS.html b/docs/posts/2020-08-01-Natural-Feature-Tracking-ARJS.html
index 3daafd5..acebee4 100644
--- a/docs/posts/2020-08-01-Natural-Feature-Tracking-ARJS.html
+++ b/docs/posts/2020-08-01-Natural-Feature-Tracking-ARJS.html
@@ -6,13 +6,13 @@
- id="introduction-to-arjs-and-natural-feature-tracking">Introduction to AR.js and Natural Feature Tracking
+ Introduction to AR.js and Natural Feature Tracking
- Introduction to AR.js and Natural Feature Tracking" />
- Introduction to AR.js and Natural Feature Tracking" />
+
+
diff --git a/docs/posts/2020-10-11-macOS-Virtual-Cam-OBS.html b/docs/posts/2020-10-11-macOS-Virtual-Cam-OBS.html
index 649c682..d90cdfc 100644
--- a/docs/posts/2020-10-11-macOS-Virtual-Cam-OBS.html
+++ b/docs/posts/2020-10-11-macOS-Virtual-Cam-OBS.html
@@ -6,13 +6,13 @@
- id="trying-different-camera-setups">Trying Different Camera Setups
+ Trying Different Camera Setups
- Trying Different Camera Setups" />
- Trying Different Camera Setups" />
+
+
diff --git a/docs/posts/2020-11-17-Lets-Encrypt-DuckDns.html b/docs/posts/2020-11-17-Lets-Encrypt-DuckDns.html
index 769bfa6..270adfa 100644
--- a/docs/posts/2020-11-17-Lets-Encrypt-DuckDns.html
+++ b/docs/posts/2020-11-17-Lets-Encrypt-DuckDns.html
@@ -6,13 +6,13 @@
- id="generating-https-certificate-using-dns-a-challenge-through-lets-encrypt">Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt
+ Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt
- Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt" />
- Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt" />
+
+
diff --git a/docs/posts/2020-12-1-HTML-JS-RSS-Feed.html b/docs/posts/2020-12-1-HTML-JS-RSS-Feed.html
index 1978590..dabde3d 100644
--- a/docs/posts/2020-12-1-HTML-JS-RSS-Feed.html
+++ b/docs/posts/2020-12-1-HTML-JS-RSS-Feed.html
@@ -6,13 +6,13 @@
- id="rss-feed-written-in-html-javascript">RSS Feed written in HTML + JavaScript
+ RSS Feed written in HTML + JavaScript
- RSS Feed written in HTML + JavaScript" />
- RSS Feed written in HTML + JavaScript" />
+
+
diff --git a/docs/posts/2021-06-25-Blog2Twitter-P1.html b/docs/posts/2021-06-25-Blog2Twitter-P1.html
index ba12406..15d7cd7 100644
--- a/docs/posts/2021-06-25-Blog2Twitter-P1.html
+++ b/docs/posts/2021-06-25-Blog2Twitter-P1.html
@@ -6,13 +6,13 @@
- id="posting-blog-posts-as-twitter-threads-part-1n">Posting Blog Posts as Twitter Threads Part 1/n
+ Posting Blog Posts as Twitter Threads Part 1/n
- Posting Blog Posts as Twitter Threads Part 1/n" />
- Posting Blog Posts as Twitter Threads Part 1/n" />
+
+
diff --git a/docs/posts/2021-06-25-NFC-Music-Cards-Basic-iOS.html b/docs/posts/2021-06-25-NFC-Music-Cards-Basic-iOS.html
index bd1da46..426e975 100644
--- a/docs/posts/2021-06-25-NFC-Music-Cards-Basic-iOS.html
+++ b/docs/posts/2021-06-25-NFC-Music-Cards-Basic-iOS.html
@@ -6,13 +6,13 @@
- id="basic-nfc-music-cards-for-ios">Basic NFC Music Cards for iOS
+ Basic NFC Music Cards for iOS
- Basic NFC Music Cards for iOS" />
- Basic NFC Music Cards for iOS" />
+
+
diff --git a/docs/posts/2021-06-26-Cheminformatics-On-The-Web-2021.html b/docs/posts/2021-06-26-Cheminformatics-On-The-Web-2021.html
index 1120ca0..2947c21 100644
--- a/docs/posts/2021-06-26-Cheminformatics-On-The-Web-2021.html
+++ b/docs/posts/2021-06-26-Cheminformatics-On-The-Web-2021.html
@@ -6,13 +6,13 @@
- id="cheminformatics-on-the-web-2021">Cheminformatics on the Web (2021)
+ Cheminformatics on the Web (2021)
- Cheminformatics on the Web (2021)" />
- Cheminformatics on the Web (2021)" />
+
+
diff --git a/docs/posts/2021-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html b/docs/posts/2021-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html
index 5836c49..f4c779f 100644
--- a/docs/posts/2021-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html
+++ b/docs/posts/2021-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html
@@ -6,13 +6,13 @@
- id="making-a-crude-ml-powered-chatbot-in-swift-using-coreml">Making a Crude ML Powered Chatbot in Swift using CoreML
+ Making a Crude ML Powered Chatbot in Swift using CoreML
- Making a Crude ML Powered Chatbot in Swift using CoreML" />
- Making a Crude ML Powered Chatbot in Swift using CoreML" />
+
+
diff --git a/docs/posts/2022-05-21-Similar-Movies-Recommender.html b/docs/posts/2022-05-21-Similar-Movies-Recommender.html
index 717513f..c1c103b 100644
--- a/docs/posts/2022-05-21-Similar-Movies-Recommender.html
+++ b/docs/posts/2022-05-21-Similar-Movies-Recommender.html
@@ -6,13 +6,13 @@
- id="building-a-similar-movies-recommendation-system">Building a Similar Movies Recommendation System
+ Building a Similar Movies Recommendation System
- Building a Similar Movies Recommendation System" />
- Building a Similar Movies Recommendation System" />
+
+
diff --git a/docs/posts/2022-08-05-Why-You-No-Host.html b/docs/posts/2022-08-05-Why-You-No-Host.html
index f684833..bef89f6 100644
--- a/docs/posts/2022-08-05-Why-You-No-Host.html
+++ b/docs/posts/2022-08-05-Why-You-No-Host.html
@@ -6,13 +6,13 @@
- id="why-you-no-host">Why You No Host?
+ Why You No Host?
- Why You No Host?" />
- Why You No Host?" />
+
+
diff --git a/docs/posts/2022-11-07-a-new-method-to-blog.html b/docs/posts/2022-11-07-a-new-method-to-blog.html
index cbf80ec..7f30c72 100644
--- a/docs/posts/2022-11-07-a-new-method-to-blog.html
+++ b/docs/posts/2022-11-07-a-new-method-to-blog.html
@@ -6,13 +6,13 @@
- id="a-new-method-to-blog">A new method to blog
+ A new method to blog
- A new method to blog" />
- A new method to blog" />
+
+
diff --git a/docs/posts/2022-12-25-blog-to-toot.html b/docs/posts/2022-12-25-blog-to-toot.html
index 4d9eb10..fd44801 100644
--- a/docs/posts/2022-12-25-blog-to-toot.html
+++ b/docs/posts/2022-12-25-blog-to-toot.html
@@ -6,13 +6,13 @@
- id="posting-blogs-as-mastodon-toots">Posting blogs as Mastodon Toots
+ Posting blogs as Mastodon Toots
- Posting blogs as Mastodon Toots" />
- Posting blogs as Mastodon Toots" />
+
+
diff --git a/docs/posts/2023-02-08-Interact-with-siri-from-the-terminal.html b/docs/posts/2023-02-08-Interact-with-siri-from-the-terminal.html
index 0c23964..29322a1 100644
--- a/docs/posts/2023-02-08-Interact-with-siri-from-the-terminal.html
+++ b/docs/posts/2023-02-08-Interact-with-siri-from-the-terminal.html
@@ -6,13 +6,13 @@
- id="interacting-with-siri-using-the-command-line">Interacting with Siri using the command line
+ Interacting with Siri using the command line
- Interacting with Siri using the command line" />
- Interacting with Siri using the command line" />
+
+
diff --git a/docs/posts/2023-04-30-n-body-simulation.html b/docs/posts/2023-04-30-n-body-simulation.html
index 9a7c7a2..732854e 100644
--- a/docs/posts/2023-04-30-n-body-simulation.html
+++ b/docs/posts/2023-04-30-n-body-simulation.html
@@ -6,13 +6,13 @@
- id="n-body-solution-generator">n-body solution generator
+ n-body solution generator
- n-body solution generator" />
- n-body solution generator" />
+
+
diff --git a/docs/posts/2023-10-04-bomb-lab.html b/docs/posts/2023-10-04-bomb-lab.html
index 6f736a8..f09fc24 100644
--- a/docs/posts/2023-10-04-bomb-lab.html
+++ b/docs/posts/2023-10-04-bomb-lab.html
@@ -6,13 +6,13 @@
- id="bomb-lab">Bomb Lab
+ Bomb Lab
- Bomb Lab" />
- Bomb Lab" />
+
+
diff --git a/docs/posts/2023-10-05-attack-lab.html b/docs/posts/2023-10-05-attack-lab.html
index 81fc27a..f75b8a3 100644
--- a/docs/posts/2023-10-05-attack-lab.html
+++ b/docs/posts/2023-10-05-attack-lab.html
@@ -6,13 +6,13 @@
- id="attack-lab">Attack Lab
+ Attack Lab
- Attack Lab" />
- Attack Lab" />
+
+
diff --git a/docs/posts/2023-10-22-search-by-flair-reddit.html b/docs/posts/2023-10-22-search-by-flair-reddit.html
index 57604ee..c81a48b 100644
--- a/docs/posts/2023-10-22-search-by-flair-reddit.html
+++ b/docs/posts/2023-10-22-search-by-flair-reddit.html
@@ -6,13 +6,13 @@
- id="search-filter-posts-by-flair-on-reddit">Search / Filter posts by flair on Reddit
+ Search / Filter posts by flair on Reddit
- Search / Filter posts by flair on Reddit" />
- Search / Filter posts by flair on Reddit" />
+
+
diff --git a/docs/posts/2024-01-05-hello-20224.html b/docs/posts/2024-01-05-hello-20224.html
index 1a2282c..4c58b4c 100644
--- a/docs/posts/2024-01-05-hello-20224.html
+++ b/docs/posts/2024-01-05-hello-20224.html
@@ -6,13 +6,13 @@
- id="hello-2024">Hello 2024
+ Hello 2024
- Hello 2024" />
- Hello 2024" />
+
+
diff --git a/docs/posts/2024-02-26-control-element-under-another-element-html-css.html b/docs/posts/2024-02-26-control-element-under-another-element-html-css.html
index 3085822..6c44808 100644
--- a/docs/posts/2024-02-26-control-element-under-another-element-html-css.html
+++ b/docs/posts/2024-02-26-control-element-under-another-element-html-css.html
@@ -6,13 +6,13 @@
- id="interacting-with-underlying-element-in-html">Interacting with underlying element in HTML
+ Interacting with underlying element in HTML
- Interacting with underlying element in HTML" />
- Interacting with underlying element in HTML" />
+
+
diff --git a/docs/posts/2024-03-15-setting-up-macos-for-8088-dos-dev.html b/docs/posts/2024-03-15-setting-up-macos-for-8088-dos-dev.html
index 5fd5c48..7fcece6 100644
--- a/docs/posts/2024-03-15-setting-up-macos-for-8088-dos-dev.html
+++ b/docs/posts/2024-03-15-setting-up-macos-for-8088-dos-dev.html
@@ -6,13 +6,13 @@
- id="cross-compiling-hello-world-for-dos-on-macos">Cross-Compiling Hello World for DOS on macOS
+ Cross-Compiling Hello World for DOS on macOS
- Cross-Compiling Hello World for DOS on macOS" />
- Cross-Compiling Hello World for DOS on macOS" />
+
+
diff --git a/docs/posts/2024-03-21-Polynomial-Regression-in-TensorFlow-2.html b/docs/posts/2024-03-21-Polynomial-Regression-in-TensorFlow-2.html
index 0d958b2..e2edc19 100644
--- a/docs/posts/2024-03-21-Polynomial-Regression-in-TensorFlow-2.html
+++ b/docs/posts/2024-03-21-Polynomial-Regression-in-TensorFlow-2.html
@@ -6,13 +6,13 @@
- id="polynomial-regression-using-tensorflow-2x">Polynomial Regression Using TensorFlow 2.x
+ Polynomial Regression Using TensorFlow 2.x
- Polynomial Regression Using TensorFlow 2.x" />
- Polynomial Regression Using TensorFlow 2.x" />
+
+
diff --git a/docs/posts/2024-03-26-Derivation-of-the-Quadratic-Equation.html b/docs/posts/2024-03-26-Derivation-of-the-Quadratic-Equation.html
index c99950a..39bfe88 100644
--- a/docs/posts/2024-03-26-Derivation-of-the-Quadratic-Equation.html
+++ b/docs/posts/2024-03-26-Derivation-of-the-Quadratic-Equation.html
@@ -6,13 +6,13 @@
- id="quadratic-formula-derivation">Quadratic Formula Derivation
+ Quadratic Formula Derivation
- Quadratic Formula Derivation" />
- Quadratic Formula Derivation" />
+
+
diff --git a/docs/posts/hello-world.html b/docs/posts/hello-world.html
index e9e6891..bd429ce 100644
--- a/docs/posts/hello-world.html
+++ b/docs/posts/hello-world.html
@@ -6,13 +6,13 @@
- id="hello-world">Hello World
+ Hello World
- Hello World" />
- Hello World" />
+
+
diff --git a/docs/posts/index.html b/docs/posts/index.html
index 95592fd..2ffd8b9 100644
--- a/docs/posts/index.html
+++ b/docs/posts/index.html
@@ -52,7 +52,7 @@
- - id="quadratic-formula-derivation">Quadratic Formula Derivation
+ - Quadratic Formula Derivation
- Quick derivation of the quadratic equation by completing the square
- Published On: 2024-03-26 15:36
@@ -63,7 +63,7 @@
- - id="polynomial-regression-using-tensorflow-2x">Polynomial Regression Using TensorFlow 2.x
+ - Polynomial Regression Using TensorFlow 2.x
- Predicting n-th degree polynomials using TensorFlow 2.x
- Published On: 2024-03-21 12:46
@@ -78,7 +78,7 @@
- - id="cross-compiling-hello-world-for-dos-on-macos">Cross-Compiling Hello World for DOS on macOS
+ - Cross-Compiling Hello World for DOS on macOS
- This goes through compiling Open Watcom 2 and creating simple hello-world exampls
- Published On: 2024-03-15 13:16
@@ -93,7 +93,7 @@
- - id="interacting-with-underlying-element-in-html">Interacting with underlying element in HTML
+ - Interacting with underlying element in HTML
- With CSS you can disable any interactions with an element and directly control the underlying element
- Published On: 2024-02-26 11:57
@@ -106,7 +106,7 @@
- - id="hello-2024">Hello 2024
+ - Hello 2024
- Recap of 2023, and my goals for 2024
- Published On: 2024-01-05 23:16
@@ -119,7 +119,7 @@
- - id="search-filter-posts-by-flair-on-reddit">Search / Filter posts by flair on Reddit
+ - Search / Filter posts by flair on Reddit
- Search posts by flair on Reddit Web by using _
- Published On: 2023-10-22 00:37
@@ -132,7 +132,7 @@
- - id="attack-lab">Attack Lab
+ - Attack Lab
- Walkthrough of Attack Lab Phases 1-4 for CSCI 2400 Computer Systems
- Published On: 2023-10-05 20:01
@@ -151,7 +151,7 @@
- - id="bomb-lab">Bomb Lab
+ - Bomb Lab
- Walkthrough of Phases 1-6 of Bomb Lab for CSCI 2400 Computer Systems Lab 2
- Published On: 2023-10-04 13:12
@@ -170,7 +170,7 @@
- - id="n-body-solution-generator">n-body solution generator
+ - n-body solution generator
- n-body solution generator and solver
- Published On: 2023-04-30 22:50
@@ -183,7 +183,7 @@
- - id="interacting-with-siri-using-the-command-line">Interacting with Siri using the command line
+ - Interacting with Siri using the command line
- Code snippet to interact with Siri by issuing commands from the command-line.
- Published On: 2023-02-08 17:21
@@ -204,7 +204,7 @@
- - id="posting-blogs-as-mastodon-toots">Posting blogs as Mastodon Toots
+ - Posting blogs as Mastodon Toots
- Cross posting blog posts to Mastodon
- Published On: 2022-12-25 17:32
@@ -217,7 +217,7 @@
- - id="a-new-method-to-blog">A new method to blog
+ - A new method to blog
- Writing posts in markdown using pen and paper
- Published On: 2022-11-07 23:29
@@ -232,7 +232,7 @@
- - id="why-you-no-host">Why You No Host?
+ - Why You No Host?
- Why you should self-host with YunoHost
- Published On: 2022-08-05 14:46
@@ -245,7 +245,7 @@
- - id="building-a-similar-movies-recommendation-system">Building a Similar Movies Recommendation System
+ - Building a Similar Movies Recommendation System
- Building a Content Based Similar Movies Recommendatiom System
- Published On: 2022-05-21 17:56
@@ -260,7 +260,7 @@
- - id="making-a-crude-ml-powered-chatbot-in-swift-using-coreml">Making a Crude ML Powered Chatbot in Swift using CoreML
+ - Making a Crude ML Powered Chatbot in Swift using CoreML
- Writing a simple Machine-Learning powered Chatbot (or, daresay virtual personal assistant ) in Swift using CoreML.
- Published On: 2021-06-27 23:26
@@ -275,7 +275,7 @@
- - id="cheminformatics-on-the-web-2021">Cheminformatics on the Web (2021)
+ - Cheminformatics on the Web (2021)
- Summarising Cheminformatics on the web in 2021.
- Published On: 2021-06-26 13:04
@@ -288,7 +288,7 @@
- - id="basic-nfc-music-cards-for-ios">Basic NFC Music Cards for iOS
+ - Basic NFC Music Cards for iOS
- Basic NFC Music Cards on iOS with Shortcuts
- Published On: 2021-06-25 16:20
@@ -303,7 +303,7 @@
- - id="posting-blog-posts-as-twitter-threads-part-1n">Posting Blog Posts as Twitter Threads Part 1/n
+ - Posting Blog Posts as Twitter Threads Part 1/n
- Converting Posts to Twitter Threads
- Published On: 2021-06-25 00:08
@@ -318,7 +318,7 @@
- - id="rss-feed-written-in-html-javascript">RSS Feed written in HTML + JavaScript
+ - RSS Feed written in HTML + JavaScript
- Short code-snippet for an RSS feed, written in HTML and JavaScript
- Published On: 2020-12-01 20:52
@@ -335,7 +335,7 @@
- - id="generating-https-certificate-using-dns-a-challenge-through-lets-encrypt">Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt
+ - Generating HTTPS Certificate using DNS a Challenge through Let's Encrypt
- Short code-snippet to generate HTTPS certificates using the DNS Challenge through Lets Encrypt for a web-server using DuckDNS.
- Published On: 2020-11-17 15:04
@@ -350,7 +350,7 @@
- - id="trying-different-camera-setups">Trying Different Camera Setups
+ - Trying Different Camera Setups
- Comparison of different cameras setups for using as a webcam and tutorials for the same.
- Published On: 2020-10-11 16:12
@@ -365,7 +365,7 @@
- - id="introduction-to-arjs-and-natural-feature-tracking">Introduction to AR.js and Natural Feature Tracking
+ - Introduction to AR.js and Natural Feature Tracking
- An introduction to AR.js and NFT
- Published On: 2020-08-01 15:43
@@ -382,7 +382,7 @@
- - id="installing-rdkit-on-google-colab">Installing RDKit on Google Colab
+ - Installing RDKit on Google Colab
- Install RDKit on Google Colab with one code snippet.
- Published On: 2020-07-01 14:23
@@ -397,7 +397,7 @@
- - id="compiling-autodock-vina-on-ios">Compiling AutoDock Vina on iOS
+ - Compiling AutoDock Vina on iOS
- Compiling AutoDock Vina on iOS
- Published On: 2020-06-02 23:23
@@ -416,7 +416,7 @@
- - id="workflow-for-lightning-fast-molecular-docking-part-one">Workflow for Lightning Fast Molecular Docking Part One
+ - Workflow for Lightning Fast Molecular Docking Part One
- This is my workflow for lightning fast molecular docking.
- Published On: 2020-06-01 13:10
@@ -435,7 +435,7 @@
- - id="compiling-open-babel-on-ios">Compiling Open Babel on iOS
+ - Compiling Open Babel on iOS
- Compiling Open Babel on iOS
- Published On: 2020-05-31 23:30
@@ -452,7 +452,7 @@
- - id="fixing-x11-error-on-macos-catalina-for-ambertools-1819">Fixing X11 Error on macOS Catalina for AmberTools 18/19
+ - Fixing X11 Error on macOS Catalina for AmberTools 18/19
- Fixing Could not find the X11 libraries; you may need to edit config.h, AmberTools macOS Catalina
- Published On: 2020-04-13 11:41
@@ -465,7 +465,7 @@
- - id="making-my-first-vaporwave-track-remix">Making My First Vaporwave Track (Remix)
+ - Making My First Vaporwave Track (Remix)
- I made my first vaporwave remix
- Published On: 2020-03-08 23:17
@@ -478,7 +478,7 @@
- - id="tinkering-with-an-android-tv">Tinkering with an Android TV
+ - Tinkering with an Android TV
- Tinkering with an Android TV
- Published On: 2020-03-03 18:37
@@ -491,7 +491,7 @@
- - id="how-to-setup-bluetooth-on-a-raspberry-pi">How to setup Bluetooth on a Raspberry Pi
+ - How to setup Bluetooth on a Raspberry Pi
- Connecting to Bluetooth Devices using terminal, tested on Raspberry Pi Zero W
- Published On: 2020-01-19 15:27
@@ -508,7 +508,7 @@
- - id="creating-a-custom-image-classifier-using-turicreate-to-detect-smoke-and-fire">Creating a Custom Image Classifier using Turicreate to detect Smoke and Fire
+ - Creating a Custom Image Classifier using Turicreate to detect Smoke and Fire
- Tutorial on creating a custom Image Classifier using Turicreate and a dataset from Kaggle
- Published On: 2020-01-16 10:36
@@ -523,7 +523,7 @@
- - id="setting-up-kaggle-to-use-with-google-colab">Setting up Kaggle to use with Google Colab
+ - Setting up Kaggle to use with Google Colab
- Tutorial on setting up kaggle, to use with Google Colab
- Published On: 2020-01-15 23:36
@@ -540,7 +540,7 @@
- - id="converting-between-image-and-numpy-array">Converting between image and NumPy array
+ - Converting between image and NumPy array
- Short code snippet for converting between PIL image and NumPy arrays.
- Published On: 2020-01-14 00:10
@@ -553,7 +553,7 @@
- - id="building-a-fake-news-detector-with-turicreate">Building a Fake News Detector with Turicreate
+ - Building a Fake News Detector with Turicreate
- In this tutorial we will build a fake news detecting app from scratch, using Turicreate for the machine learning model and SwiftUI for building the app
- Published On: 2019-12-22 11:10
@@ -570,7 +570,7 @@
- - id="polynomial-regression-using-tensorflow">Polynomial Regression Using TensorFlow
+ - Polynomial Regression Using TensorFlow
- Polynomial regression using TensorFlow
- Published On: 2019-12-16 14:16
@@ -585,7 +585,7 @@
- - id="making-predictions-using-image-classifier-tensorflow">Making Predictions using Image Classifier (TensorFlow)
+ - Making Predictions using Image Classifier (TensorFlow)
- Making predictions for image classification models built using TensorFlow
- Published On: 2019-12-10 11:10
@@ -600,7 +600,7 @@
- - id="creating-a-custom-image-classifier-using-tensorflow-2x-and-keras-for-detecting-malaria">Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria
+ - Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria
- Tutorial on creating an image classifier model using TensorFlow which detects malaria
- Published On: 2019-12-08 14:16
@@ -615,7 +615,7 @@
- - id="splitting-zips-into-multiple-parts">Splitting ZIPs into Multiple Parts
+ - Splitting ZIPs into Multiple Parts
- Short code snippet for splitting zips.
- Published On: 2019-12-08 13:27
@@ -628,7 +628,7 @@
- - id="image-classifier-with-teachable-machines">Image Classifier With Teachable Machines
+ - Image Classifier With Teachable Machines
- Tutorial on creating a custom image classifier quickly with Google Teachable Machines
- Published On: 2019-12-04 18:23
@@ -639,7 +639,7 @@
- - id="creating-your-own-custom-theme-for-snowboard-or-anemone">Creating your own custom theme for Snowboard or Anemone
+ - Creating your own custom theme for Snowboard or Anemone
- Tutorial on creating your own custom theme for Snowboard or Anemone
- Published On: 2019-05-05 12:34
@@ -658,7 +658,7 @@
- - id="hello-world">Hello World
+ - Hello World
- My first post.
- Published On: 2019-04-16 17:39
@@ -669,7 +669,7 @@
- - id="experiments">Experiments
+ - Experiments
- Just a markdown file for all experiments related to the website
- Published On: 2010-01-24 23:43
--
cgit v1.2.3
From 01ff93c9c16867216f2d249664803860e1d6d5eb Mon Sep 17 00:00:00 2001
From: Navan Chauhan
Date: Wed, 27 Mar 2024 22:49:40 -0600
Subject: generate new theme
---
docs/posts/2010-01-24-experiments.html | 55 ++++++++++-----
.../2019-05-05-Custom-Snowboard-Anemone-Theme.html | 55 ++++++++++-----
.../2019-12-04-Google-Teachable-Machines.html | 55 ++++++++++-----
.../2019-12-08-Image-Classifier-Tensorflow.html | 55 ++++++++++-----
docs/posts/2019-12-08-Splitting-Zips.html | 55 ++++++++++-----
.../2019-12-10-TensorFlow-Model-Prediction.html | 55 ++++++++++-----
...019-12-16-TensorFlow-Polynomial-Regression.html | 55 ++++++++++-----
docs/posts/2019-12-22-Fake-News-Detector.html | 55 ++++++++++-----
.../2020-01-14-Converting-between-PIL-NumPy.html | 55 ++++++++++-----
...-01-15-Setting-up-Kaggle-to-use-with-Colab.html | 55 ++++++++++-----
...20-01-16-Image-Classifier-Using-Turicreate.html | 55 ++++++++++-----
...onnect-To-Bluetooth-Devices-Linux-Terminal.html | 55 ++++++++++-----
docs/posts/2020-03-03-Playing-With-Android-TV.html | 55 ++++++++++-----
docs/posts/2020-03-08-Making-Vaporwave-Track.html | 55 ++++++++++-----
...20-04-13-Fixing-X11-Error-AmberTools-macOS.html | 55 ++++++++++-----
.../2020-05-31-compiling-open-babel-on-ios.html | 55 ++++++++++-----
...r-Docking-Workflow-AutoDock-Vina-and-PyMOL.html | 55 ++++++++++-----
.../2020-06-02-Compiling-AutoDock-Vina-on-iOS.html | 55 ++++++++++-----
docs/posts/2020-07-01-Install-rdkit-colab.html | 55 ++++++++++-----
.../2020-08-01-Natural-Feature-Tracking-ARJS.html | 55 ++++++++++-----
docs/posts/2020-10-11-macOS-Virtual-Cam-OBS.html | 55 ++++++++++-----
docs/posts/2020-11-17-Lets-Encrypt-DuckDns.html | 55 ++++++++++-----
docs/posts/2020-12-1-HTML-JS-RSS-Feed.html | 55 ++++++++++-----
docs/posts/2021-06-25-Blog2Twitter-P1.html | 55 ++++++++++-----
.../2021-06-25-NFC-Music-Cards-Basic-iOS.html | 55 ++++++++++-----
...2021-06-26-Cheminformatics-On-The-Web-2021.html | 55 ++++++++++-----
...21-06-27-Crude-ML-AI-Powered-Chatbot-Swift.html | 55 ++++++++++-----
.../2022-05-21-Similar-Movies-Recommender.html | 55 ++++++++++-----
docs/posts/2022-08-05-Why-You-No-Host.html | 55 ++++++++++-----
docs/posts/2022-11-07-a-new-method-to-blog.html | 55 ++++++++++-----
docs/posts/2022-12-25-blog-to-toot.html | 55 ++++++++++-----
...02-08-Interact-with-siri-from-the-terminal.html | 55 ++++++++++-----
docs/posts/2023-03-17-future-of-writing.html | 81 ----------------------
docs/posts/2023-04-30-n-body-simulation.html | 55 ++++++++++-----
docs/posts/2023-10-04-bomb-lab.html | 55 ++++++++++-----
docs/posts/2023-10-05-attack-lab.html | 55 ++++++++++-----
docs/posts/2023-10-22-search-by-flair-reddit.html | 55 ++++++++++-----
docs/posts/2024-01-05-hello-20224.html | 55 ++++++++++-----
...rol-element-under-another-element-html-css.html | 55 ++++++++++-----
...24-03-15-setting-up-macos-for-8088-dos-dev.html | 55 ++++++++++-----
...3-21-Polynomial-Regression-in-TensorFlow-2.html | 55 ++++++++++-----
...03-26-Derivation-of-the-Quadratic-Equation.html | 55 ++++++++++-----
docs/posts/hello-world.html | 55 ++++++++++-----
docs/posts/index.html | 50 +++++++++----
44 files changed, 1589 insertions(+), 852 deletions(-)
delete mode 100644 docs/posts/2023-03-17-future-of-writing.html
(limited to 'docs/posts')
diff --git a/docs/posts/2010-01-24-experiments.html b/docs/posts/2010-01-24-experiments.html
index ba06715..1070a21 100644
--- a/docs/posts/2010-01-24-experiments.html
+++ b/docs/posts/2010-01-24-experiments.html
@@ -2,14 +2,26 @@
-
+
+
+
+
+ Experiments
+
+
+
+
+
+
+
- Experiments
-
@@ -29,35 +41,42 @@
-
-
-
-
-
+
+
+
+
Experiments
https://s3-us-west-2.amazonaws.com/s.cdpn.io/148866/img-original.jpg
+
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
-
+
diff --git a/docs/posts/2019-05-05-Custom-Snowboard-Anemone-Theme.html b/docs/posts/2019-05-05-Custom-Snowboard-Anemone-Theme.html
index 4463b37..1c89f5c 100644
--- a/docs/posts/2019-05-05-Custom-Snowboard-Anemone-Theme.html
+++ b/docs/posts/2019-05-05-Custom-Snowboard-Anemone-Theme.html
@@ -2,14 +2,26 @@
-
+
+
+
+
+ Creating your own custom theme for Snowboard or Anemone
+
+
+
+
+
+
+
- Creating your own custom theme for Snowboard or Anemone
-
@@ -29,21 +41,27 @@
-
-
-
+
+
+
-
-
+
Creating your own custom theme for Snowboard or Anemone
Contents
@@ -462,14 +480,15 @@ Section: Themes
You can share this with your friends :+1:
+
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
-
+
diff --git a/docs/posts/2019-12-04-Google-Teachable-Machines.html b/docs/posts/2019-12-04-Google-Teachable-Machines.html
index 878ed30..76d6099 100644
--- a/docs/posts/2019-12-04-Google-Teachable-Machines.html
+++ b/docs/posts/2019-12-04-Google-Teachable-Machines.html
@@ -2,14 +2,26 @@
-
+
+
+
+
+ Image Classifier With Teachable Machines
+
+
+
+
+
+
+
- Image Classifier With Teachable Machines
-
@@ -29,21 +41,27 @@
-
-
-
+
+
+
-
-
+
Image Classifier With Teachable Machines
Made for Google Code-In
@@ -94,14 +112,15 @@
https://luminous-opinion.glitch.me
+
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
-
+
diff --git a/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html b/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html
index b75bdca..7d88d48 100644
--- a/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html
+++ b/docs/posts/2019-12-08-Image-Classifier-Tensorflow.html
@@ -2,14 +2,26 @@
-
+
+
+
+
+ Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria
+
+
+
+
+
+
+
- Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria
-
@@ -29,21 +41,27 @@
-
-
-
+
+
+
-
-
+
Creating a Custom Image Classifier using Tensorflow 2.x and Keras for Detecting Malaria
Done during Google Code-In. Org: Tensorflow.
@@ -224,14 +242,15 @@ X_train = X_train/255.0
+
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
-
+
diff --git a/docs/posts/2019-12-08-Splitting-Zips.html b/docs/posts/2019-12-08-Splitting-Zips.html
index 1ecb4e6..894e0be 100644
--- a/docs/posts/2019-12-08-Splitting-Zips.html
+++ b/docs/posts/2019-12-08-Splitting-Zips.html
@@ -2,14 +2,26 @@
-
+
+
+
+
+ Splitting ZIPs into Multiple Parts
+
+
+
+
+
+
+
- Splitting ZIPs into Multiple Parts
-
@@ -29,21 +41,27 @@
-
-
-
-
-
+
+
+
+
Splitting ZIPs into Multiple Parts
Tested on macOS
@@ -73,14 +91,15 @@
+
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
-
+
+
+
diff --git a/docs/posts/2019-12-10-TensorFlow-Model-Prediction.html b/docs/posts/2019-12-10-TensorFlow-Model-Prediction.html
index ecb7680..7624fa7 100644
--- a/docs/posts/2019-12-10-TensorFlow-Model-Prediction.html
+++ b/docs/posts/2019-12-10-TensorFlow-Model-Prediction.html
@@ -2,14 +2,26 @@
-
+
+
+
+
+ Making Predictions using Image Classifier (TensorFlow)
+
+
+
+
+
+
+
- Making Predictions using Image Classifier (TensorFlow)
-
@@ -29,21 +41,27 @@
-
-
-
+
+
+
-
-
+
Making Predictions using Image Classifier (TensorFlow)
This was tested on TF 2.x and works as of 2019-12-10
@@ -104,14 +122,15 @@
Infected
+
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
-
+
diff --git a/docs/posts/2019-12-16-TensorFlow-Polynomial-Regression.html b/docs/posts/2019-12-16-TensorFlow-Polynomial-Regression.html
index 3f3a399..ecb1920 100644
--- a/docs/posts/2019-12-16-TensorFlow-Polynomial-Regression.html
+++ b/docs/posts/2019-12-16-TensorFlow-Polynomial-Regression.html
@@ -2,14 +2,26 @@
-
+
+
+
+
+ Polynomial Regression Using TensorFlow
+
+
+
+
+
+
+
- Polynomial Regression Using TensorFlow
-
@@ -29,21 +41,27 @@
-
-
-
+
+
+
-
-
+
Polynomial Regression Using TensorFlow
In this tutorial you will learn about polynomial regression and how you can implement it in Tensorflow.
@@ -586,14 +604,15 @@ values using the X values. We then plot it to compare the actual data and predic
Basically if you train your machine learning model on a small dataset for a really large number of epochs, the model will learn all the deformities/noise in the data and will actually think that it is a normal part. Therefore when it will see some new data, it will discard that new data as noise and will impact the accuracy of the model in a negative manner
+
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
-
+
diff --git a/docs/posts/2019-12-22-Fake-News-Detector.html b/docs/posts/2019-12-22-Fake-News-Detector.html
index 553831d..8b784e5 100644
--- a/docs/posts/2019-12-22-Fake-News-Detector.html
+++ b/docs/posts/2019-12-22-Fake-News-Detector.html
@@ -2,14 +2,26 @@
-
+
+
+
+
+ Building a Fake News Detector with Turicreate
+
+
+
+
+
+
+
- Building a Fake News Detector with Turicreate
-
@@ -29,21 +41,27 @@
-
-
-
+
+
+
-
-
+
Building a Fake News Detector with Turicreate
In this tutorial we will build a fake news detecting app from scratch, using Turicreate for the machine learning model and SwiftUI for building the app
@@ -308,14 +326,15 @@ DescriptionThe bag-of-words model is a simplifying representation used in NLP, i
+
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
-
+
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
In order to be able to access Kaggle Datasets, you will need to have an account on Kaggle (which is Free)
@@ -90,14 +108,15 @@Voila! You can now download Kaggle datasets
+If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
For setting up Kaggle with Google Colab, please refer to my previous post
@@ -314,14 +332,15 @@We just got an accuracy of 94% on Training Data and 97% on Validation Data!
+If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
This was tested on a Raspberry Pi Zero W
@@ -66,14 +84,15 @@To Exit out of bluetoothctl anytime, just type exit
+If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
So I have an Android TV, this posts covers everything I have tried on it
@@ -117,14 +135,15 @@adb uninstall com.company.yourpackagename
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
I finally completed my first quick and dirty vaporwave remix of "I Want It That Way" by the Backstreet Boys
@@ -76,14 +94,15 @@The fact that there are steps on producing Vaporwave, this gave me the idea that Vaporwave can actually be made using programming, stay tuned for when I publish the program which I am working on ( Generating A E S T H E T I C artwork and remixes)
+If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
I was trying to install AmberTools on my macOS Catalina Installation. Running ./configure -macAccelerate clang
gave me an error that it could not find X11 libraries, even though locate libXt
showed that my installation was correct.
If you do not have XQuartz installed, you need to run brew cask install xquartz
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
Due to the fact that my summer vacations started today, @@ -161,14 +179,15 @@ export BABEL_LIBDIR="/usr/lib/openbabel/3.1.0"
Edit 1: Added Screenshots, had to replicate the errors.
+If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
This is just the docking command for AutoDock Vina. In the next part I will tell how to use PyMOL and a plugin to directly generate the coordinates in Vina format --center_x -9.7 --center_y 11.4 --center_z 68.9 --size_x 19.3 --size_y 29.9 --size_z 21.3
without needing to type them manually.
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
Why? Because I can.
@@ -127,14 +145,15 @@ return path(str, boost::filesystem::native);The package is available on my repository and only depends on boost. ( Both, Vina and Vina-Split are part of the package)
+If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
EDIT: Try installing RDKit using pip
@@ -150,14 +168,15 @@ logger.info("rdkit-{} installation finished!".format(rdkit.__version__)) install() ``` +If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
I have a Raspberry-Pi running a Flask app through Gunicorn (Ubuntu 20.04 LTS). I am exposing it to the internet using DuckDNS.
@@ -122,14 +140,15 @@ navanspi.duckdns.org. 60Caveats with copying the certificate: If you renew the certificate you will have to re-copy the files +If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
If you want to directly open the HTML file in your browser after saving, don't forget to set CORS_PROXY=""
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
Why? Eh, no good reason, but should be fun.
@@ -147,14 +165,15 @@ I am not handling lists or images right now.For the next part, I will try to append the code as well. I actually added the code to this post after running the program.
+If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
I had a pack of NFC cards and decided it was the perfect time to create Music Cards. I do not have a "music setup." @@ -73,14 +91,15 @@ So, I did not have to ensure this could work with any device. I settled with usi +
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
Here, I have compiled a list of some libraries and possible ideas. @@ -126,14 +144,15 @@ Hopefully, this encourages you to explore the world of cheminformatics on the we
+If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
A chatbot/virtual assistant, on paper, looks easy to build. @@ -221,14 +239,15 @@ Otherwise, it calls the custom action.
If I ever release a part-2, it will either be about implementing this in Tensorflow.JS or an iOS app using SwiftUI ;)
+If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
Highly context dependent. I run two YunoHost servers in two different locations. One of the ISP has actually blacklisted the residential IP address range and does not let me change my reverseDNS, which means all my outgoing emails are marked as spam. On the other hand, the other ISP gave a clean static IP and the server managed for a small business is not at all problematic for emailing. YMMV but at least you know you have an option.
+If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
Here is the original PDF. I made some edits to the content after generating the markdown file
@@ -78,14 +96,15 @@* In Part 2, I will discuss some more features *
+If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
What is better than posting a blog post? Posting about your posting pipeline. I did this previously with Twitter.
@@ -326,14 +344,15 @@ Seeing that you are reading this on Mastodon, and that I have updated this sectiNot the best thing I have ever written, but it works!
+If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
My main objective was to see if I could issue multi-intent commands in one go. Obviously, Siri cannot do that (neither can Alexa, Cortana, or Google Assistant). The script here can issue either a single command, or use the help of OpenAI's DaVinci model to extract multiple commands and pass them onto siri.
@@ -275,14 +293,15 @@ python3 main.py &Siri is still dumb. When I ask it to Switch off the lights
, it default to the home thousands of miles away. But, this code snippet definitely does work!
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
I love taking jotting down my thoughts as bullet points. -I find it easier to be able to recall my thoughts by just reading the keywords. -But, at the same time, am I actually able to recall everything?
- -The primary reason I started writing in my journal is because I knew, I was never -able to recall anything with 100% guarantee.
- -So, the question arises, does it still make sense to put time and effort into writing blog posts? -You can simply ask an autoregressive model to generate it for you, based on bullet points. -I feel like writitng still has a place in this world. Limitting ourselves to a model trained on a finite dataset, feels like an insult to creativity. -If neural networks stopped being prediction machines, and were actually able to "think", I would still believe that creativity wins. -Even if that creativity was now coming from the machine.
- --- -I am the master of my fate,. I am the captain of my soul.
-
As long as I am alive, and I have the spirit of being rebellious, I am never going to stop trying to write. -Even if we have a tool that can generate the perfect essay, we humans will still write.
- -Why? Just because we can.
- -If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.- -
This post requires JavaScript to be viewed properly :(
@@ -766,14 +784,15 @@ function plotRandomNBodySimulation() {If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
But, what about the secret phase?
+If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
Remember to replace any spaces in the flair with _
I wish this was documented somewhere.
+If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
2024 % 4 == 0
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
I know that the title is a bit weird. I was trying to interact with a video under an iPhone Bezel Screen frame.
@@ -117,14 +135,15 @@ A box with 200px height and 300px width
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
Technically this should work for any platform that OpenWatcom 2 supports compiling binaries for. Some instructions are based on a post at retrocoding.net, @@ -316,14 +334,15 @@ creating a DOS My DOSBox setup might look slightly different than yours...
+If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
I have a similar post titled Polynomial Regression Using Tensorflow that used tensorflow.compat.v1
(Which still works as of TF 2.16). But, I thought it would be nicer to redo it with newer TF versions.
If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
The standard form of a quadratic equation is:
@@ -76,14 +94,15 @@ +If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
Why a Hello World post?
Just re-did the entire website using Publish (Publish by John Sundell). So, a new hello world post :)
+If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.
We are going to be running everything through Rosetta 2. I am confident that if I had access to the original source code, I could find a way to run everything natively.
+ +These are the following issues that we will be fixing in this part:
+ +For the sake of simplicity, I am assuming that I am running all these commands in the folder ~/Developer/scrippstuff/
We are going to run all of these steps in the terminal
+ +/usr/sbin/softwareupdate --install-rosetta --agree-to-license
+
+Both versions of homebrew (x86 and arm64) can peacefully coexist on your system.
+ +From now on, every command should be run in a terminal session that starts with this as the first command:
+ +arch -x86_64 zsh
+
+Now, we can install homebrew:
+ +/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
+
+Here is my output:
+ +➜ scrippstuff uname -a
+Darwin Navans-MacBook-Pro.local 23.3.0 Darwin Kernel Version 23.3.0: Wed Dec 20 21:31:00 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6020 x86_64
+➜ scrippstuff /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
+==> Checking for `sudo` access (which may request your password)...
+Password:
+==> This script will install:
+/usr/local/bin/brew
+/usr/local/share/doc/homebrew
+/usr/local/share/man/man1/brew.1
+/usr/local/share/zsh/site-functions/_brew
+/usr/local/etc/bash_completion.d/brew
+/usr/local/Homebrew
+==> The following new directories will be created:
+/usr/local/Cellar
+/usr/local/Caskroom
+
+Press RETURN/ENTER to continue or any other key to abort:
+==> /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar /usr/local/Caskroom
+==> /usr/bin/sudo /bin/chmod ug=rwx /usr/local/Cellar /usr/local/Caskroom
+==> /usr/bin/sudo /usr/sbin/chown navanchauhan /usr/local/Cellar /usr/local/Caskroom
+==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Cellar /usr/local/Caskroom
+==> /usr/bin/sudo /usr/sbin/chown -R navanchauhan:admin /usr/local/Homebrew
+==> /usr/bin/sudo /bin/mkdir -p /Users/navanchauhan/Library/Caches/Homebrew
+==> /usr/bin/sudo /bin/chmod g+rwx /Users/navanchauhan/Library/Caches/Homebrew
+==> /usr/bin/sudo /usr/sbin/chown -R navanchauhan /Users/navanchauhan/Library/Caches/Homebrew
+==> Downloading and installing Homebrew...
+remote: Enumerating objects: 47, done.
+remote: Counting objects: 100% (47/47), done.
+remote: Compressing objects: 100% (19/19), done.
+remote: Total 47 (delta 28), reused 47 (delta 28), pack-reused 0
+Unpacking objects: 100% (47/47), 6.11 KiB | 223.00 KiB/s, done.
+From https://github.com/Homebrew/brew
+ + 18ebdd8c8f...67a096fcbb tapioca-compiler-for-tty-rbi -> origin/tapioca-compiler-for-tty-rbi (forced update)
+Switched to and reset branch 'stable'
+==> Updating Homebrew...
+==> Installation successful!
+
+==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
+Read the analytics documentation (and how to opt-out) here:
+ https://docs.brew.sh/Analytics
+No analytics data has been sent yet (nor will any be during this install run).
+
+==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
+ https://github.com/Homebrew/brew#donations
+
+==> Next steps:
+- Run these two commands in your terminal to add Homebrew to your PATH:
+ (echo; echo 'eval "$(/usr/local/bin/brew shellenv)"') >> /Users/navanchauhan/.zprofile
+ eval "$(/usr/local/bin/brew shellenv)"
+- Run brew help to get started
+- Further documentation:
+ https://docs.brew.sh
+
+At this point, you don't need to edit your zshrc
or zsh_profile
.
The reason we are installing pyenv is because it is easier to build Python 2.7.18 from scratch than messing around with codesigning and quarantine bs on macOS.
+ +➜ scrippstuff brew install pyenv
+==> Downloading https://ghcr.io/v2/homebrew/core/pyenv/manifests/2.3.36
+############################################################################################################################################################### 100.0%
+==> Fetching dependencies for pyenv: m4, autoconf, ca-certificates, openssl@3, pkg-config and readline
+==> Downloading https://ghcr.io/v2/homebrew/core/m4/manifests/1.4.19
+############################################################################################################################################################### 100.0%
+==> Fetching m4
+==> Downloading https://ghcr.io/v2/homebrew/core/m4/blobs/sha256:8434a67a4383836b2531a6180e068640c5b482ee6781b673d65712e4fc86ca76
+############################################################################################################################################################### 100.0%
+==> Downloading https://ghcr.io/v2/homebrew/core/autoconf/manifests/2.72
+############################################################################################################################################################### 100.0%
+==> Fetching autoconf
+==> Downloading https://ghcr.io/v2/homebrew/core/autoconf/blobs/sha256:12368e33b89d221550ba9e261b0c6ece0b0e89250fb4c95169d09081e0ebb2dd
+############################################################################################################################################################### 100.0%
+==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2024-03-11
+############################################################################################################################################################### 100.0%
+==> Fetching ca-certificates
+==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/blobs/sha256:cab828953672906e00a8f25db751977b8dc4115f021f8dfe82b644ade03dacdb
+############################################################################################################################################################### 100.0%
+==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/manifests/3.2.1-1
+############################################################################################################################################################### 100.0%
+==> Fetching openssl@3
+==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/blobs/sha256:ef8211c5115fc85f01261037f8fea76cc432b92b4fb23bc87bbf41e9198fcc0f
+############################################################################################################################################################### 100.0%
+==> Downloading https://ghcr.io/v2/homebrew/core/pkg-config/manifests/0.29.2_3
+############################################################################################################################################################### 100.0%
+==> Fetching pkg-config
+==> Downloading https://ghcr.io/v2/homebrew/core/pkg-config/blobs/sha256:421571f340277c62c5cc6fd68737bd7c4e085de113452ea49b33bcd46509bb12
+############################################################################################################################################################### 100.0%
+==> Downloading https://ghcr.io/v2/homebrew/core/readline/manifests/8.2.10
+############################################################################################################################################################### 100.0%
+==> Fetching readline
+==> Downloading https://ghcr.io/v2/homebrew/core/readline/blobs/sha256:9796e0ff1cc29ae7e75d8fc1a3e2c5e8ae2aeade8d9d59a16363306bf6c5b8f4
+############################################################################################################################################################### 100.0%
+==> Fetching pyenv
+==> Downloading https://ghcr.io/v2/homebrew/core/pyenv/blobs/sha256:d117a99ed53502aff29109bfa366693ca623f2326e1e6b4db68fef7b7f63eeba
+############################################################################################################################################################### 100.0%
+==> Installing dependencies for pyenv: m4, autoconf, ca-certificates, openssl@3, pkg-config and readline
+==> Installing pyenv dependency: m4
+==> Downloading https://ghcr.io/v2/homebrew/core/m4/manifests/1.4.19
+Already downloaded: /Users/navanchauhan/Library/Caches/Homebrew/downloads/5b2a7f715487b7377e409e8ca58569040cd89f33859f691210c58d94410fd33b--m4-1.4.19.bottle_manifest.json
+==> Pouring m4--1.4.19.sonoma.bottle.tar.gz
+🍺 /usr/local/Cellar/m4/1.4.19: 13 files, 739.9KB
+==> Installing pyenv dependency: autoconf
+==> Downloading https://ghcr.io/v2/homebrew/core/autoconf/manifests/2.72
+Already downloaded: /Users/navanchauhan/Library/Caches/Homebrew/downloads/b73cdb320c4261bbf8d02d03e50dc755c869c5859c1d4e93616898fc7cd939ff--autoconf-2.72.bottle_manifest.json
+==> Pouring autoconf--2.72.sonoma.bottle.tar.gz
+🍺 /usr/local/Cellar/autoconf/2.72: 71 files, 3.6MB
+==> Installing pyenv dependency: ca-certificates
+==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2024-03-11
+Already downloaded: /Users/navanchauhan/Library/Caches/Homebrew/downloads/c431e0186df2ccc2ea942b34a3c26c2cebebec8e07ad6abdae48447a52c5f506--ca-certificates-2024-03-11.bottle_manifest.json
+==> Pouring ca-certificates--2024-03-11.all.bottle.tar.gz
+==> Regenerating CA certificate bundle from keychain, this may take a while...
+🍺 /usr/local/Cellar/ca-certificates/2024-03-11: 3 files, 229.6KB
+==> Installing pyenv dependency: openssl@3
+==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/manifests/3.2.1-1
+Already downloaded: /Users/navanchauhan/Library/Caches/Homebrew/downloads/f7b6e249843882452d784a8cbc4e19231186230b9e485a2a284d5c1952a95ec2--openssl@3-3.2.1-1.bottle_manifest.json
+==> Pouring openssl@3--3.2.1.sonoma.bottle.1.tar.gz
+🍺 /usr/local/Cellar/openssl@3/3.2.1: 6,874 files, 32.5MB
+==> Installing pyenv dependency: pkg-config
+==> Downloading https://ghcr.io/v2/homebrew/core/pkg-config/manifests/0.29.2_3
+Already downloaded: /Users/navanchauhan/Library/Caches/Homebrew/downloads/ac691fc7ab8ecffba32a837e7197101d271474a3a84cfddcc30c9fd6763ab3c6--pkg-config-0.29.2_3.bottle_manifest.json
+==> Pouring pkg-config--0.29.2_3.sonoma.bottle.tar.gz
+🍺 /usr/local/Cellar/pkg-config/0.29.2_3: 11 files, 656.4KB
+==> Installing pyenv dependency: readline
+==> Downloading https://ghcr.io/v2/homebrew/core/readline/manifests/8.2.10
+Already downloaded: /Users/navanchauhan/Library/Caches/Homebrew/downloads/4ddd52803319828799f1932d4c7fa8d11c667049b20a56341c0c19246a1be93b--readline-8.2.10.bottle_manifest.json
+==> Pouring readline--8.2.10.sonoma.bottle.tar.gz
+🍺 /usr/local/Cellar/readline/8.2.10: 50 files, 1.7MB
+==> Installing pyenv
+==> Pouring pyenv--2.3.36.sonoma.bottle.tar.gz
+🍺 /usr/local/Cellar/pyenv/2.3.36: 1,158 files, 3.4MB
+==> Running `brew cleanup pyenv`...
+Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
+Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
+
+And, build the last version of Python 2.7
+ +➜ scrippstuff PYENV_ROOT="~/Developer/scrippstuff" pyenv install 2.7.18
+python-build: use openssl from homebrew
+python-build: use readline from homebrew
+Downloading Python-2.7.18.tar.xz...
+-> https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tar.xz
+Installing Python-2.7.18...
+patching file configure
+patching file configure.ac
+patching file setup.py
+patching file 'Mac/Tools/pythonw.c'
+patching file setup.py
+patching file 'Doc/library/ctypes.rst'
+patching file 'Lib/test/test_str.py'
+patching file 'Lib/test/test_unicode.py'
+patching file 'Modules/_ctypes/_ctypes.c'
+patching file 'Modules/_ctypes/callproc.c'
+patching file 'Modules/_ctypes/ctypes.h'
+patching file 'Modules/_ctypes/callproc.c'
+patching file setup.py
+patching file 'Mac/Modules/qt/setup.py'
+patching file setup.py
+python-build: use readline from homebrew
+python-build: use zlib from xcode sdk
+Installed Python-2.7.18 to /Users/navanchauhan/Developer/scrippstuff/~/Developer/scrippstuff/versions/2.7.18
+
+Test the new installation:
+ +➜ scrippstuff ~/Developer/scrippstuff/\~/Developer/scrippstuff/versions/2.7.18/bin/python2.7
+Python 2.7.18 (default, Mar 28 2024, 20:47:13)
+[GCC Apple LLVM 15.0.0 (clang-1500.1.0.2.5)] on darwin
+Type "help", "copyright", "credits" or "license" for more information.
+>>> from random import randint
+>>> randint(0,10)
+6
+>>> exit()
+
+Now, we can compress this newly created Python version into a tar.gz
file to replace the one provided in ADFRsuitex8664Darwin_1.0.tar.gz. Don't forget the .
at the end
➜ scrippstuff tar -C ./\~/Developer/scrippstuff/versions/2.7.18 -czf new.tar.gz .
+
+If you don't already have the tarball, you can download it by:
+ +$ curl -o adfr.tar.gz https://ccsb.scripps.edu/adfr/download/1033/
+
+Uncompress it
+ +$ tar -xvzf adfr.tar.gz
+
+Replace the provided Python archive with the one we created:
+ +$ cd ADFRsuite_x86_64Darwin_1.0
+$ mv new.tar.gz Python2.7.tar.gz
+
+Note: For some reason simply copying it doesn't work and you need to use mv
Just to not mess with anything else, I will be installing everything in a folder called clean_install
$ mkdir clean_install
+$ ./install.sh -d clean_install
+...
+ ADFRsuite installation complete.
+To run agfr, agfrgui, adfr, autosite, about, pythonsh scripts located at:
+/Users/navanchauhan/Developer/scrippstuff/ADFRsuite_x86_64Darwin_1.0/clean_install/bin
+add /Users/navanchauhan/Developer/scrippstuff/ADFRsuite_x86_64Darwin_1.0/clean_install/bin to the path environment variable in .cshrc or .bashrc:
+.cshrc:
+set path = (/Users/navanchauhan/Developer/scrippstuff/ADFRsuite_x86_64Darwin_1.0/clean_install/bin $path)
+
+.bashrc:
+export PATH=/Users/navanchauhan/Developer/scrippstuff/ADFRsuite_x86_64Darwin_1.0/clean_install/bin:$PATH
+
+Now, to test agfr
, first run the command (replacing navanchauhan
with yout username)
$ export PATH=/Users/navanchauhan/Developer/scrippstuff/ADFRsuite_x86_64Darwin_1.0/clean_install/bin:$PATH
+$ agfr
+➜ ADFRsuite_x86_64Darwin_1.0 agfr
+==============================
+*** Open Babel Error in openLib
+ /Users/navanchauhan/Developer/scrippstuff/ADFRsuite_x86_64Darwin_1.0/clean_install/lib/openbabel/2.4.1/acesformat.so did not load properly.
+ Error: dlopen(/Users/navanchauhan/Developer/scrippstuff/ADFRsuite_x86_64Darwin_1.0/clean_install/lib/openbabel/2.4.1/acesformat.so, 0x0009): Library not loaded: /opt/X11/lib/libcairo.2.dylib
+ Referenced from: <24174F3E-2670-79AC-4F26-F8B49774194A> /Users/navanchauhan/Developer/scrippstuff/ADFRsuite_x86_64Darwin_1.0/clean_install/lib/openbabel/2.4.1/acesformat.so
+ Reason: tried: '/Users/navanchauhan/Developer/scrippstuff/ADFRsuite_x86_64Darwin_1.0/clean_install/lib/libcairo.2.dylib' (no such file), '/opt/X11/lib/libcairo.2.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/X11/lib/libcairo.2.dylib' (no such file), '/opt/X11/lib/libcairo.2.dylib' (no such file), '/usr/local/lib/libcairo.2.dylib' (no such file), '/usr/lib/libcairo.2.dylib' (no such file, not in dyld cache)
+==============================
+
+Open Babel Error
$ brew install cairo
+
+$ curl -o tutorial-data.zip https://ccsb.scripps.edu/adcp/download/1063/
+$ unzip tutorial-data.zip
+$ cd ADCP_tutorial_data/3Q47
+
+$ reduce 3Q47_rec.pdb > 3Q47_recH.pdb
+$ reduce 3Q47_pep.pdb > 3Q47_pepH.pdb
+
+$ prepare_receptor -r 3Q47_recH.pdb
+$ prepare_ligand -l 3Q47_pepH.pdb
+
+
+$ agfr -r 3Q47_recH.pdbqt -l 3Q47_pepH.pdbqt -asv 1.1 -o 3Q47
+➜ 3Q47 agfr -r 3Q47_recH.pdbqt -l 3Q47_pepH.pdbqt -asv 1.1 -o 3Q47
+Traceback (most recent call last):
+ File "/Users/navanchauhan/Developer/scrippstuff/ADFRsuite_x86_64Darwin_1.0/clean_install/CCSBpckgs/ADFR/bin/runAGFR.py", line 36, in <module>
+ from ADFR.utils.runAGFR import runAGFR
+ File "/Users/navanchauhan/Developer/scrippstuff/ADFRsuite_x86_64Darwin_1.0/clean_install/CCSBpckgs/ADFR/utils/runAGFR.py", line 41, in <module>
+ from ADFR.utils.maps import flexResStr2flexRes
+ File "/Users/navanchauhan/Developer/scrippstuff/ADFRsuite_x86_64Darwin_1.0/clean_install/CCSBpckgs/ADFR/utils/maps.py", line 35, in <module>
+ from ADFRcc.adfr import GridMap
+ File "/Users/navanchauhan/Developer/scrippstuff/ADFRsuite_x86_64Darwin_1.0/clean_install/CCSBpckgs/ADFRcc/__init__.py", line 34, in <module>
+ from ADFRcc.adfr import Parameters
+ File "/Users/navanchauhan/Developer/scrippstuff/ADFRsuite_x86_64Darwin_1.0/clean_install/CCSBpckgs/ADFRcc/adfr.py", line 43, in <module>
+ import ADFRcc.adfrcc as CPP
+ File "/Users/navanchauhan/Developer/scrippstuff/ADFRsuite_x86_64Darwin_1.0/clean_install/CCSBpckgs/ADFRcc/adfrcc.py", line 28, in <module>
+ _adfrcc = swig_import_helper()
+ File "/Users/navanchauhan/Developer/scrippstuff/ADFRsuite_x86_64Darwin_1.0/clean_install/CCSBpckgs/ADFRcc/adfrcc.py", line 24, in swig_import_helper
+ _mod = imp.load_module('_adfrcc', fp, pathname, description)
+ImportError: dlopen(/Users/navanchauhan/Developer/scrippstuff/ADFRsuite_x86_64Darwin_1.0/clean_install/CCSBpckgs/ADFRcc/_adfrcc.so, 0x0002): Library not loaded: /Users/Shared/mgltoolsDev/src/homebrew/opt/gcc/lib/gcc/8/libgomp.1.dylib
+ Referenced from: <424BF61E-BF0F-351E-B546-E82EBBD8FBF5> /Users/navanchauhan/Developer/scrippstuff/ADFRsuite_x86_64Darwin_1.0/clean_install/CCSBpckgs/ADFRcc/_adfrcc.so
+ Reason: tried: '/Users/navanchauhan/Developer/scrippstuff/ADFRsuite_x86_64Darwin_1.0/clean_install/lib/libgomp.1.dylib' (no such file), '/Users/Shared/mgltoolsDev/src/homebrew/opt/gcc/lib/gcc/8/libgomp.1.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/Shared/mgltoolsDev/src/homebrew/opt/gcc/lib/gcc/8/libgomp.1.dylib' (no such file), '/Users/Shared/mgltoolsDev/src/homebrew/opt/gcc/lib/gcc/8/libgomp.1.dylib' (no such file), '/usr/local/lib/libgomp.1.dylib' (no such file), '/usr/lib/libgomp.1.dylib' (no such file, not in dyld cache)
+➜ 3Q47
+
+Sometimes this error is simply outputted as a segmentation fault. But, it is because it cannot find the libgomp.1.dylib
. I haven't tested using a newer version of GCC to make it work. Building GCC 8 yourself is absolutely painful. We are going to use a copy generated by the homebrew team.
$ cd ../../
+$ pwd
+/Users/navanchauhan/Developer/scrippstuff/ADFRsuite_x86_64Darwin_1.0
+$ curl -L -H "Authorization: Bearer QQ==" -o gcc8amd64.tar.gz https://ghcr.io/v2/homebrew/core/gcc/8/blobs/sha256:438d5902e5f21a5e8acb5920f1f5684ecfe0c645247d46c8d44c2bbe435966b2
+$ tar -xzf gcc8amd64.tar.gz
+$ cp -r gcc@8/8.5.0/lib/gcc/8/* clean_install/lib/
+
+Now, we should be able to go back and run the target generation command:
+ +$ cd ADCP_tutorial_data/3Q47
+$ agfr -r 3Q47_recH.pdbqt -l 3Q47_pepH.pdbqt -asv 1.1 -o 3Q47
+#################################################################
+# If you used AGFR in your work, please cite: #
+# #
+# P.A. Ravindranath S. Forli, D.S. Goodsell, A.J. Olson and #
+# M.F. Sanner #
+# AutoDockFR: Advances in Protein-Ligand Docking with #
+...
+
+$ adcp -t 3Q47.trg -s npisdvd -N 20 -n 1000000 -o 3Q47_redocking -ref 3Q47_pepH.pdb
+
+There you have it. Running ADCP on the newest macOS version against all odds.
+ +I haven't yet looked into fixing/patching agfrgui
as I don't use the software. But, if someone reallllly needs to run it on Apple Silicon, I am happy to take a look at monkeypatching it.
In case years down the line the prebuilt version of GCC 8 is not available, let me know so I can replace the link with my mirror.
+ +If you have scrolled this far, consider subscribing to my mailing list here. You can subscribe to either a specific type of post you are interested in, or subscribe to everything with the "Everything" list.+ +
Update: March 2024
+ +rdkit-pypi
has been deprecated in favour of rdkit
You can simply run:
+ +!pip install rdkit
+
+
EDIT: Try installing RDKit using pip
!pip install rdkit-pypi
--
cgit v1.2.3