====================
== William's site ==
====================

2025 08 03 Markdown

Finally I have set up my markdown properly.

It starts with Helix: Setup for Markdown. It involves installing dprint. Although it mentions only helix, I have created similar configurations for zed as well.

Below are the configurations files for the respective editors.

languages.toml for helix:

[[language]]
name = "go"
auto-format = true
formatter = { command = "goimports" }

[[language]]
name = "rust"
auto-format = true

[[language]]
name = "c"
auto-format = true

[[language]]
name = "markdown"
auto-format = true
formatter = {command = "dprint", args = ["fmt", "--stdin", "md"]}

settings.json for zed:

Read more...

2025 02 26 Emac or Not Emac

In the last two posts, I wrote extensively about emacs. However, today I have come across this post. I have learnt the term .emacs Bankruptcy.

In his case, over the days, the configuration of his emacs is getting bigger and bigger that needs a reboot, or fall under its own weight. He also doubts that whether he needs the power of org-mode. He repeatedly emphasizes that he likes emacs. At some point during last week, I even seriously thought about getting a 10-inch chuwi just for emacs. My goals was to have a dedicated emacs “appliance” so that I can carry it anywhere. But nothing beats the wake-up speed, or snappiness, of a macbook. So I gave it up quickly.

Read more...

emacs

I am writing in emacs org mode again which I quite enjoy doing.

In the last couple of days since CNY, my focus is emacs. I RTFM about it, try to use it and even compile from the git repo.

I recalled my memories about the emacs built-in tutorial to gain basic keyboard nevigation and editing. Then read about the manual. It is a quite an undertaking. I just glanced through it and get most of my basic editing tasks done. I am sure that I will come back to it on and off.

Read more...

Emacs

I am writing something again. The last two years have been rough for me. Ups and downs, changes in the family etc. Now I have got enough time to write about something.

I would like to write about emacs. I am writing this post in vanilla emacs configuration. Even spell-check is not working properly. I am doing this in a terminal, on a mac. There are a lots of alternatives such as byword. Why I am torturing myself with a 40-year old text based software?

Read more...

2024 10 28 My Adoc Test

First level heading

This is a paragraph with a bold word and an italicized word.

Second level heading

Unordered list title
  • list item 1

    • nested list item

      • nested nested list item 1

      • nested nested list item 2

  • list item 2

This is a paragraph.

Example 1. Example block title

Content in an example block is subject to normal substitutions.

Sidebar title

Sidebars contain aside text and are subject to normal substitutions.

Third level heading

Listing block title
Read more...

Write Something

Finally I could write something again. I am writing this in markdown, my editor is vscode and my keyboard is nuphy 75 old edition.

I have been using the nuphy 75 old edition for a while. Then I have facinated by 60 keyboard. I have tired the nuphy 60 old edition. My only complain is that both the ` and the ~ characters are supported by the escape key. It is a bit annoying when typing ~ for home directories. So I go for the 75 keyboard.

Read more...

Things seems finally getting together

I am a bit excited.

I have been wandering and straying during my way of learning C++. On and off I feel at a lost somehow. I have tried to explore different use cases and code bases of C++ projects. 10 C++ open source projects welcoming contributions says ClickHouse is one of them. It is a database project that unlike any other relational databases that I have learnt back to school. Learning C++ and another database paradigm, sounds cool.

Read more...

It's been a while

I have tried my best to complete the My First Language Frontend with LLVM tutorial as a learning path to llvm. It is quite an undertaking. I have nevertheless completed it, but without completely knowing what I am doing. So it has taken longer time that I think. I have also picked up other hobbies, so the updates has not be frequent.

It involves more things that I do not know. Other than C++, the author of the tutorial assumes the reader has some basic compiler design knowledge which I am lacking. The code snippets presented in the text are different from the complete code listing at the end. It seems that the content of each chapter is built upon the previous one, obviously except chapter one. Most of the time it is, but not at chapter 9. For chapter 8, I could not even compile the code listing. I changed the file name to t.cpp. It says

Read more...

So that is what a column database means

In the video Internals de una base de datos analĂ­tica de alto rendimiento: ClickHouse | T3chFest 2019, Javi presented a picture illustrating what really “column-based” database means:

image

In the above picture, I have got a solid grasp of the concept of a column database. As a bonus, I have also know Apache Arrow. It is one of the contributing submodules in the clickhouse repository.

Clickhouse and vector databases

In the video ClickHouse for AI - Vectors, Embedding, Semantic Search, and more by Alexey Milovidov, i learn a lot about databases and AI.

The video started with a brief introduction of some key concepts such as semantic search, vectors and embeddings. Then proceeded with some optimization technique, such as executable pooling and chunking. the bulk of the video is on how to do query faster and faster.

At the end of it, Alexey Milovidov presented some other vector databases such as Milvus/Zilliz and Weaviate. Both of them are implemented in Go. However, Qdrant is implemented in Rust. Best 15 vector databases for 2024 [Top Picks] gives some more vector database products. Those I picked up for a closer look is because:

Read more...
1 of 5 Next Page