all repos — gemini-aaoth.xyz @ 76b3bc5cd86f8ce8b355f0c089387b090d7ad0da

aaoth.xyz gemini capsule (archive)

add new post and add git portion of gemlog-new script
la-ninpre leobrekalini@gmail.com
Thu, 03 Jun 2021 00:36:03 +0300
commit

76b3bc5cd86f8ce8b355f0c089387b090d7ad0da

parent

22f5a44deb4772ddfc70117293e7a1c333a6cd14

3 files changed, 33 insertions(+), 0 deletions(-)

jump to
M gemlog-newgemlog-new

@@ -118,6 +118,12 @@

update_index edit_post + + { + cd "$GEMINI_HOME" + git add "$GEMLOG_INDEX" "$_new_post_filename" + git commit && git push + } } main "$@"
A gemlog/2021-06-03-c-is-tough-but-i-like-it.gmi

@@ -0,0 +1,26 @@

+# c is tough but i like it + +* date: 2021-06-03 +* author: la-ninpre +* tags: programming tokipona + +once i created little python script that spits out random toki pona phrase. but then i thought 'well, this is nice. but i wanna go further'. i had an idea that it would be awesome to attach this script to a webpage, so that it's different every time it is loaded (in other words, i wanted it as cgi script). but to do so with python is, eh, i dunno. + +so i thought 'hmmm, i always had hard time thinking what i can program to learn c' and this was like a flash. yes! let's code this little thing. though, i never thought that it would be so, well, i n t e r e s t i n g. + +i knew that c involves memory management, and, you know, this was very good opportunity to kinda learn how it all works. + +i need to say that even though it was pretty tough, the result is pleasing for me. by the way, it works here on my machine (archlinux with zen-kernel) and it works on my debian vm and, hell, of course it runs perfectly on my openbsd server. needless to say that the former was the special target for this program (who else would be serving it anyway?). + +yes, i know that all that is weird and maybe even stupid, but c'mon. i do tech related stuff just for year now. i mean, i tried before, but if we only count serious attempts, than it's a year. + +it is running! + +=> /cgi-bin/nimisewi on gemini +=> https://aaoth.xyz/nimisewi on web +=> https://fsl.aaoth.xyz/nimisewi.c and here's the source code + +## links + +=> /gemlog/ back to post list +=> /cgi-bin/gemlikes/view?2021-06-03-c-is-tough-but-i-like-it.gmi like and comment!
M gemlog/index.gmigemlog/index.gmi

@@ -8,6 +8,7 @@ => gemini://gemini.circumlunar.space/docs/companion/subscription.gmi subsribing to gemini pages

## posts +=> /gemlog/2021-06-03-c-is-tough-but-i-like-it.gmi 2021-06-03 - c is tough but i like it => /gemlog/2021-06-01-first-days-in-geminispace.gmi 2021-06-01 - first days in geminispace ## other gemlogs