Code & Coffee

127.0.0.1
Joined April 2011
parallel universe
1
yesterday vs. tomorrow.
grok prompt: evening sunset scenery blue sky nature, glass bottle with a galaxy in it
1
1
AI/AGI is like the Windows 98 hype back in the days.
single point of failure is catastrophic! AWS
Can you teach AI common sense? Knowing that even some people struggle with this concept!
1
It's time to touch the grass
Python uses magic methods to work with objects in different ways, like handling arithmetic, comparisons, or string formatting. And in this in-depth guide, Vivek explains what magic methods are and how they work. You'll learn about object representation, operator overloading, container methods, attribute access, & lots more. freecodecamp.org/news/python…
28
195
Python is mysterious!
There is an issue compiling enblock.c with modern C compilers. a work around is using this version of the file: #include <stdio.h> #include <stdlib.h> #include <errno.h> void putint(int n) { char obuf[4]; obuf[0] = n % 256; n /= 256; obuf[1] = n % 256; n /= 256; obuf[2] = n % 256; n /= 256; obuf[3] = n % 256; write(1, obuf, 4); } int main(int argc, char *argv[]) { char *buf; int c; int bsize; switch (argc) { case 1: bsize = 512; break; case 2: bsize = atoi(argv[1]); break; default: bsize = 0; } if (bsize == 0) { fprintf(stderr, "usage: enblock [blocksize]\n"); return 1; } buf = malloc(bsize); if (buf == NULL) { fprintf(stderr, "error: malloc: %s\n", strerror(errno)); return 1; } while ((c = read(0, buf, bsize)) > 0) { putint(bsize); write(1, buf, bsize); putint(bsize); } putint(0); free(buf); return 0; }
I managed to run Unix 6 on SIMH (pdp11). It's great to experience that era, but the process of writing and compiling C code is tedious compared to what we have now.
Grok!
1
0
Grok Imagine prompt: A silhouetted warrior in flowing robes riding a rearing horse, holding a spear aloft, against a dramatic red sky with a large, glowing red sun. Sparse vegetation dots the dark foreground. The art style is a bold, painterly illustration with strong co...
1
0
Galactic supernova explosion #Veo3