Lurker News
For those who are still under lockdown, what are you working on / building / learning?

I've been making excessive amounts of bread.

Comments (2,248) 1105 threads

Earlier comments
vanderZwan#
So for about two years I've been bouncing around an idea in my head to make the LZ78 compression algorithm (or more specifically, the LZString variant of it) compress better by forgetting the least commonly used substrings. I think I'm just reinventing a mixture of LZC and LZAP (or LZMW), but the on-line literature discussing either algorithms in detail is abysmal[0][1][2]. The main innovation would be that I have a fairly simple way to implement the forgetfulness.

Another separate innovation that I have in mind is combining that with a special run-length encoding sequence that, due to the interaction between LZAP and run-length encoding, actually wouldn't encode runs linearly but exponentially[3]. That is, instead of "repeat substring X for N times" it would say "repeat substring X for fibonnacci(N) times". I suspect that might actually be a novel innovation!
Aside from a lack of time and energy, the main thing holding me back has been, and I'm dead serious, off-by-one errors. It's really, really easy to screw up the order of adding new entries to the dictionary on both the compression/decompression side in such a way that you just get garbage out, and it's a pain to debug.
If my algo turns out to be original, I'm tempted to call it LZWAN, or Lempel Ziv With Amnesiac Nodes (referring to the nodes in the trie used to grow the dictionary).
[0] https://en.wikipedia.org/wiki/LZ77_and_LZ78
[1] https://pieroxy.net/blog/pages/lz-string/index.html
[2] https://ethw.org/History_of_Lossless_Data_Compression_Algori...
[3] https://github.com/pieroxy/lz-string/issues/114#issuecomment...

dehrmann#
Digitizing some old family movies. On the lockdown front, it's been nice seen pictures of family. Technically, I've had a number of side quests along the way that were more challenging than actually digitizing the old tapes.

If you're thinking about doing the same, for formats and media, I settled on:
DVDs: yes, they're old, but they support more resolution than VHS, and practically every new Bluray player still plays them. Also, DVDs support 352x480 resolution. It's still more than VHS, and you can squeeze more content on the disc or encode it at a higher quality.
VP9+Opus+webm on a DVD. This codec/container combo is supported by Firefox, Chrome, Windows Media Player, and Android, so while new, I expected it to be supported for a long time. AV1 looks promising, but probably not ready.
I'm not bothering, but for iOS, use x264 and AAC in an mp4 container. Those were the only modern codecs and containers I got to work. Also, Apple, x264 and x265 are good, and all, but there's no excuse to not support VP9.
I'm saving the unencoded files as ffv1/flac in an mkv container.
For the actual DVDs, I'm using MDisc archival media.

slantyyz#
I've been making a personal information/task management system that I can only describe as a weird cross between Things for Mac and Dropbox Paper. It's really an opinionated tool designed specifically for myself to be run on a desktop.

It's a buggy work-in-process app built in Svelte and PouchDB and definitely not in a "Show HN" state yet. I put my progress up on Github pages for close friends to try [1], but what the heck, I'll put it here too (no instructions or videos yet).
I honestly haven't figured out what I'm going to do with it long term, whether to make it free or to try to monetize it somehow. Right now, my main goal is to fold it into an Electron app and have it sync with a Couch/Pouch db server once the main UI code is done.
[1] https://bt-apps.github.io/braintapper_edge
Note it's not a Saas, so no sign up required to try it. PouchDB is storing the data in your browser in IndexedDB so you can delete your data by clearing your browser data for that URL.

anaolykarpov2 replies#
I couldn't find a satisfying NodeJS full-stack for web app development that would be have: TypeScript, PostgreSQL, GraphQL, ReactJS, Material-UI, docker containers where the same backend image used for development would get deployed on production, while the UI production machine would be an nginx image with the assets generated at build time.

So I created such a stack - the Knests stack (https://github.com/tudorconstantin/knests).
I actually started to work on this in December, but I published it a few days ago.
Please beware that in order to use it for your projects right now you'd have to be quite comfortable with the nodejs ecosystem because the whole stack is not quite tidied up.

freedomben1 reply#
I am also working on this! I used Node a lot 5 years ago and not much since, so I'm coming up to speed on TypeScript and various other things. I'll check your stuff out. I may throw mine away.

I love a lot of things about the Node ecosystem, but the fact that being out of it for 6 to 12 months means you fall behind is not great.

anaolykarpov2 replies#
The main components I used, are: NestJS with Express as an app server, KnexJS as a query builder (because people seem to not like TypeORM that much, it lacks migrations and you have to go pretty fast to custom SQL queries), NextJS for the UI.

Yeah, I totally feel you with falling behind regarding the full-stack web dev with node/react, the pace is incredible.

freedomben#
> people seem to not like TypeORM that much

I started down the road with TypeORM for my starter, and I ran into several pain points. I was reading the Knex docs last night actually, heavily considering switching. I also wrote a quick `pg.ts` file to just use node-postgres directly, but the lack of migrations is just too painful. I looked at db-migrate briefly but didn't come to any conclusion.
So that's a long way of saying, I think Knex was a good choice. Provides migrations, handles connection pooling and transactions, but doesn't deviate too far from SQL.

hariharasudhan#
if you're using react then definitely checkout https://www.bytehub.dev/ for some cool react components
ifemide061 reply#
This is awesome man! Bookmarked and will be using for my next project.

My stack currently is mostly ReactJS, ReactNative, Flow, GraphQL, Sequelize, Postgres, Apollo and NodeJS

ifemide061 reply#
I'd love to swap out Material-UI for SemanticUI though... hope it'll be a seamless swap
anaolykarpov1 reply#
With the last commit in master in late 2018, SemanticUI seems a bit deserted.

Anyway, in order to change it, you should discard everything non-nextjs and non-docker related from the client/ folder, like client/common/, client/components/, client/helpers (except client/helpers/configureGraphQL.ts), client/icons, client/layouts, client/theme, client/pages/{login.tsx|signup.tsx|dashboard/}, remove the material-ui related stuff from package.json and then proceed installing the SemanticUI.
-

Continue this thread — 1 reply

Load more comments