Skip to main content

Posts

Showing posts with the label tutorial

Vibe Coding with QWEN Code

I am learning how to do vibe coding right. Vibe coding was a term coined by Andrej Karpathy for doing coding using LLM. And the world splitted with acknowledging it and flatly denying it. There is a compelling reason why vibe coding is dangerous: LLM trained on a snapshot knowledge. Meaning, the updated knowledge might get passed out. This makes LLM produces old syntax that are no longer true. This is dangerous for building web where we are using the volatile Javascript libraries.  LLM have the tendency to halucinate. This means it would generate codes that doesn't work. This is actually the problem with the way LLM work previously. It only has a set of knowledge built on. The RAG also might not correct. They have fixed this with the new LLM specialized code. This was started by Antropic's Claude Code . And then, folks at Google releases the same with Gemini CLI . After that, Alibaba forks the Gemini CLI and built QWEN Code . These are built either run in the project directory...

Quest for Ultimate Fonts

After some readings where I forgot to write down the source, I settled with these fonts for my desktop. All of them are open fonts and free for commercials so I won't get sued someday when I use them on my official document. All fonts are installed to my Fedora 40 KDE Spin. I put anti-aliasing on with sub-pixel rendering sets to RGB and little hinting enabled. Common Fonts For non-monospace fonts, I choose to install Inter font from Rasmus Andersson . This font is mostly included in the top list of many font reviewers for UI. And I agree, the font is gorgeous and it has the right space for my KDE Fedora laptop. I used Monospace For monospace a.k.a coding font, I go with IBM Flex Mono font . It's a good font developed by folks at IBM. To get it, I use sparse-checkout to checkout from Github. git clone --filter=blob:none --no-checkout https://github.com/IBM/plex.git cd plex/ git sparse-checkout set --cone git checkout master git sparse-checkout set packages/plex-mono/fonts...

Enabling OKD 4.15 on Fedora 40

I'm using the tutorial from this OKD on Fedora Workstation with CRC article. I skipped the first command because my KDE Spin already got a Network Manager. Later I found out that the CRC will install them when missing. The command I followed: wget https://developers.redhat.com/content-gateway/rest/mirror2/pub/openshift-v4/clients/crc/latest/crc-linux-amd64.tar.xz tar xvfJ crc-linux-amd64.tar.xz -C /tmp/ install /tmp/crc-linux-*-amd64/crc ~/.local/bin/crc At the time of writing, CRC is on version 2.37.1. And I have added my ${HOME}/.local/bin to my PATH in .bashrc Next setup: crc config set consent-telemetry no crc config set preset okd crc setup crc start This part I get this error: ... INFO Loading bundle: crc_okd_libvirt_4.15.0-0.okd-2024-02-23-163410_amd64... INFO Creating CRC VM for OKD 4.15.0-0.okd-2024-02-23-163410... INFO Generating new SSH key pair... INFO Generating new password for the kubeadmin user INFO Starting CRC VM for okd 4.15.0-0.okd-202...

Goodix Fingerprint Firmware on Dual Boot

I don't know why I still keep my Windoze 11 Pro. I mean, yeah, sure I legitimately own the license as it is pre-installed with the notebook. Someday I'll wipe clean. Anyway, dual boot in Windoze seems making the firmware in the fingerprint hardware getting resetted. So, I need to do these steps when I'm back at Fedora. Assuming you forget the library used install these: sudo dnf install gcc git python-pip python-devel openssl Assuming you don't know the original source code, clone this: git clone --recurse-submodules https://github.com/goodix-fp-linux-dev/goodix-fp-dump.git cd goodix-fp-dump The Real Thing That's Need to be Done Create an isolated Python environment: python -m venv .v source .v/bin/activate Do the magic: sudo su pip install -r requirements.txt python run_55b4.py exit Install The Correct Driver For Goodix fingerprint, need to install different libfprint version. sudo dnf copr enable d-k-bo/libfprint-goodixtls sudo dnf upgrade libfpri...

Installing Goodix Fingerprint Reader Driver on Fedora

I currently have a Lenovo Thinkpad L14 laptop equipped with fingerprint. I was `belok` from KDE Neon to use Fedora 40 because of someone. Now I am tempted to enable my fingerprint: lsusb | grep -i fingerprint Bus 001 Device 004: ID 27c6:55b4 Shenzhen Goodix Technology Co.,Ltd. Fingerprint Reader Dump the firmware Assuming this is a fresh install, lets do some magic by getting some dependencies: sudo dnf install gcc git python-pip python-devel openssl Let's get the source code: git clone --recurse-submodules https://github.com/goodix-fp-linux-dev/goodix-fp-dump.git cd goodix-fp-dump Create an isolated Python environment: python -m venv .v source .v/bin/activate Do the magic: sudo su pip install -r requirements.txt python run_55b4.py exit There are some python scripts available. I run run_55b4.py because my device ID is 27c6: 55b4 . It will spell some nonsense, which is a good thing. That nonsense actually the firmware captured by our device. Also, I typed exit becaus...