avatar

KZK's blog

Lead engineer

None

Keycloack ๐Ÿ”—What is Keycloack? is a Open Source Identity and Access Management, Similar services of keycloack? Okta and Auth0

GraalVM

GraalVM ๐Ÿ”—GraalVM is an alternative to the JVM (but is not a runtime), but with special thought for performance and polyglot. When executing java in the JVM, you can tweak the the JAVA_PATH dynamically, this way the java compiler can not apply the optimization and tricks that compiled languages can do (GCC, LLVM) GraalVM actually is more like a java compiler, compiles the java code to binary, jumping the step of bytecode.

Notes on NLP Course on Coursera

Week 1: ๐Ÿ”— One easy way to convert a text to an array of numbers is by using a technique named Bag of Words which consist of converting every word in the vocabulary into an index, and then a sentence is 0 or 1 depending if the word exist this is a sparse representation, for each tweet you will need a vector of size == your vocabulary with a lot of features equals to 0 With an spare representation a logistic regression model will need to learn n+1 parameters where n is the size of the vocabulary this is problematic for big vocabulary, becoming longer than need to train We can build a frequency table for each category (inn sentimental analysis is would be one for positive and one for negative).

Socratic Questioning

Socratic method ๐Ÿ”— Clarifying your thinking. Why do I think this, What exactly do I think? Challenging assumptions Looking for evidences Considering alternative perspectives (What might others think? How do I know I am correct?) Examining consequences and implications ( What are the consequences if I am wrong?) Questioning the original questions (Why did I think that? was I correct?)

First Principle

First principles is the principles we use to build understanding on top of them. If we never learn to take something apart, test our assumptions about it and reconstruct it, we end up bound by what other people tell us, trapped in the ways things have always been done. When the environment changes. we just continue as if things were the same, making costly mistakes along the way There are two main techniques to establish first principles,

Keepass XC + Auto Type, closer to paid solutions but opensource

Today I just discovered that KeepassXC, can do something I used to be envying of my pals that have been using 1password. There is a functionality named Auto-Type, which will auto-fill the user and password for not just web pages but also for apps. You can check the manual to set it up ( https://keepassxc.org/docs/KeePassXC_UserGuide.html#_auto_type), I did change my global binding to be special hard to hit on other apps.

Laptop setup

Setup of my Laptop Install brave browsers Install hammersponn with my configuration https://github.com/kozko2001/hammerspoon Install prezto (trying it out) (https://github.com/sorin-ionescu/prezto) install keepassxc + dropbox to sync the passwords. Install python with pyenv (check this post https://varrette.gforge.uni.lu/blog/2017/11/22/using-pyenv-virtualenv-direnv/) direnv load some specific environment variables for specific projects (like secrets) load specific environment for python or node, without having to use nvm or pyenv-virtualenv that are slooooow Espanso, an open source text expansion, follow this guide to install it https://espanso.

Github Actions

Github actions allow you to create workflows likes the one you can have in a ci/cd system Right now I have a couple of scripts that allow me to write using roam and publish to my blog. and a circle ci pipeline that bring that executes the script, and I wanted to check if I could do the same but using github actions. You can go to one of your repositories, click in actions, and then in clic and then in setup workflow my self Now you will have the whole control to create your workflow in an editor!

Being right is half the battle

Anki from Roam

DRAFT ! Goal: Able to extract the anki flashcards from own notes Definition of Success: Given I do some changes in my roam files And I add a new flashcard node When some time happens (1h) Then in my phone (ankiDroid) I have my new flashcard Highlevel: Download the markdowns Parse all the markdowns and find the cards Send the cards to anki somehow Anki highly personalizable software LOT, lot, loooot of addons makes it hard to understand how it actually works Research, how I can update anki from my server The oficial way to sync between different devices in anki is to use ankiweb, but ankiweb has no public api AnkiDroid, the app for anki in android, has a Droid API => ๐Ÿ’ก create an app that gets the data from an s3 bucket or a server.