3 ms·
there has to be a simpler way to draw a grid. there has to.
by freeone3000 5y ago
there has to be a simpler way to draw a grid. there has to.
- adrianmonk 5y agoPostScript, maybe. Instead of generating HTML from calendar data, generate PS and have Ghostscript convert it to PNG. I don't know PostScript, and based on the example code in the wikipedia article (https://en.wikipedia.org/wiki/PostScript#The_language https://en.wikipedia.org/wiki/PostScript#The_language), I was able to get it to draw some text in a few minutes.
- 41209 5y agoAll the complexity is handled by well known tools/libraries. I can code a selenium script to capture a screenshot in my sleep. Often using tools your know is the best solution. Your free to fork this and come up with a cleaner implementation. This is probably why you need a PI Zero. Smaller micro controllers can't run a full browser. Most of these projects are just whatever can be hacked together in a weekend.
- floren 5y agoWhen all you have is a hammer...
- vanviegen 5y agoSure. But this approach sounds like a sensible base to quickly whip up all sorts of little projects.
- pshc 5y agoI would volunteer LaTeX but that's also 100s of MBs/GBs of dependencies to be fair. Perhaps an SVG rasterizer would suffice here.
- dragonwriter 5y agoSimpler in runtime overhead. Simpler for a developer familiar with the tools used here, but less so with others? Maybe not. This seems to be a hobbyist project, not a major corporate effort where $100Ks were spent on tech selection.
- saagarjha 5y agoI would not be surprised if a corporation would spend $100Ks on tech selection and end up with a headless Chrome too.