Today I saw utteranc.es in a blog and i liked it. So I’ve decided to add same comment to my blog. Replaced with disqus (which already its not working). You can see comment for below of the every post. You need to login with your github account if you want to write comments.
Today I Learned
I started to share "what i learned today". Mostly there will be snippets and short contents
- TIL #09
- TIL #08
Julian Day or Julian Day Number (JDN) is a date format. Its the number of days that have passed since 1 January 4713 BC in Julian Calendar
And my birthday in that format is 2447579
- TIL #07
I am not fan o em unit to give sizes to html content. But unfortunately I have to work with other developers sometimes. So, some of those likes to use
em
unit but they have no idea how the em works. Yes I don’t have idea until today. So I have to learn the calculation of em.Let me share with you too.
EM is relative unit to the nearest parent font-size. So, if you use EM, it means, parent font size X em value.
<div style="font-size: 16px"> I am the normal text <span style="font-size: 0.9em">Hey I am smaller text</span> </div> ` So, the smaller text's font size is `14.4px` Still I do not like em units.
- TIL #06
Today I learned how can i create a rust cli application with help of ai.
I’ve created this tool for managing TIL records. Now I can add more til’s without worring to creating new file and committing etc.
https://github.com/delirehberi/tiller
I am very happy about it :)
- TIL #05
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
Zero Knowledge Proof
There is a way to get proof for “thing” without getting any “sensitive” or “private” information from.
BUT for now its to expensive to implement for tiny projects. Calculations requires a lot costs.
- TIL #02
There is tool named
bgrem
for using image models to remove backgroundspipenv shell pipenv install bgrem[cli] bgrem i file.jpg output-file.jpg
i
argument for specifing input files
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
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
To create custom content types just create a new folder inside content folder.
Started
Today I Learned
contents.