Today I Learned
I started to share what i learn today. Mostly there will be snippets and short contents
- TIL #05 Mar 23, 2024
Point-free Programming / Tacit Programming
Bu konuda yeterince ingilizce içerik var zaten. Türkçe olarak açıklarsam fonksiyonu tanımlarken alacağı parametreyi belirtmediğinizde point-free programlama yapıyorsunuz.
Buradaki point kelimesi “.” manasında değil. Aksine bolca “.” operatörü ile birleştirme yapılabilmesi için de çok güzel oluyor. Çok nokta görünüyor yani bu tarzda.
birekle :: Int -> Int
birekle sayi = sayi + 1
birekle = (+) 1 --pointfree
Okunabilirlik konusunda ise “okunabilirlik aşinalıktır” lafına bakarsak bu tarzı benimsediğinizde daha okunabilir bir tarz oluyor.
- TIL #04 Jan 10, 2024
Zero Knowledge Proof
There is a way to get proof for “thing” without getting any “sensitive” or “private” information from.
Zero Knowledge Proof
BUT for now its to expensive to implement for tiny projects. Calculations requires a lot costs.
- TIL #02 Jan 9, 2024
There is tool named bgrem
for using image models to remove backgrounds
pipenv shell
pipenv install bgrem[cli]
bgrem i file.jpg output-file.jpg
i
argument for specifing input file
s
argument runs a server and web-ui on port 5000 to use models.
First usage of model requires download. So it will take a little bit time to complete at first run of model.
- TIL #03 Jan 9, 2024
Yarn issue
Error: tunneling socket could not be established, statusCode=400
Cause: Proxy config in yarn
Solution:
yarn config delete https-proxy
yarn config delete proxy
- TIL #01 Jan 5, 2024
To create custom content types just create a new folder inside content folder.
Started Today I Learned
contents.