HNHacker News
TopNewBestAskShowJobs

schmooser

35 karma · joined May 20, 2013

submissionscomments
schmooser··on I have officially retired from Emacs
I tried Elfeed2 immediately after the announcement, well, it's nowhere near the experience of elfeed in Emacs. Elfeed2 doesn't load content for most of my feeds, elfeed does. I also integrated elfeed-tube, which shows previews of videos and their transcripts, making it no-brainer to get a summary without watching the whole video.
schmooser··on Show HN: I made paperboat.website, a platform for friends and creativity
Lots of mentions of bearblog.dev, I want to mention https://mataroa.blog which is even more similar.
schmooser··on Show HN: Zsweep – Play Minesweeper using only Vim motions
Reaching RET to open a block is too far from the home row, very unpleasant. C-m (Control-M) is much better and supported by both vim and Emacs.
schmooser··on Keeping a Changelog at Work (2020)
I keep weekly notes in my work Org Roam project, Week-N-of-2024.org, where I store all the current work. At the end of the week I carry on TODO/DOING/WAITING headings. Every heading usually references topical Org Roam notes, so checking backlinks I can trace the work progress.

To keep it public - I tag certain headings with :Priority: tag and then use Org-QL to find them, pretty-print (enrich with Story links , completion date), sort by priority, TODO state etc; then export to HTML and copy-paste into Confluence.

The trick is to balance between granularity of items. I definitely don’t want to make everything public, but I do want to have everything in my notes, and this method solved it - the best of all tried over 15 years.

schmooser··on Show HN: We made a platform that allows you to build UI kits in days not months
My iPad crashed when I clicked to the video on the page.
schmooser··on Emacs Bedrock: A minimal Emacs starter kit
Did you ask why does JetBrains have so many IDEs, each for different language? PyCharm, WebStorm, RubyMine, CLion, Idea.

Emacs has LSP client that works will all LSP servers. It's your responsibility to bring an LSP server or implement your own, not Emacs'.

schmooser··on Emacs Bedrock: A minimal Emacs starter kit
Emacs 29 is bundled with version of modus-themes that doesn't include tinted variants, you need to install them from Elpa.
schmooser··on Emacs Bedrock: A minimal Emacs starter kit
On macOS try emacs-mac-port, it has many goodies comparing to emacsformacos.com: - The only Emacs that works with window managers, I use Magnet.app to resize windows using shortcuts - Integration with other macOS apps, like Tip.app[1], so selection (region) in Emacs is recognised by macOS and sent to Tip.app as stdin

From downsides, it won't compile with xwidgets support (webkit).

[1]: https://github.com/tanin47/tip

schmooser··on Labstack/echo: High performance, minimalist Go web framework
I used Echo for one of my projects few years ago. I don’t remember which version it was, but authors (Labstack) were releasing major versions like every year or so, after two migrations I found myself in need to migrate again. That project is in maintenance mode, so still uses old Echo, but if I ever need to migrate, that would be to Fiber.
schmooser··on Hoppscotch: Open-source alternative to Postman
For Emacs there's beautiful restclient.el [1].

[1]: https://github.com/pashky/restclient.el

schmooser··on Why Clojure? (2018)
I’m using lispy[1] instead of paredit and absolutely happy about it.

[1]: https://github.com/abo-abo/lispy

schmooser··on Why Clojure? (2018)
Several big mainstream products are implemented in Scala, including Apache Spark and Akka. Clojure has nothing of comparable size.
schmooser··on AWS Lambda Terraform Cookbook with working examples
I tried it, doesn’t work - Lambda resource needs hash sum to compare against previous deployment to trigger updates of the source bundle, and Terraform needs a file to be present during plan stage. With null_resource the file is created after plan, during apply. To workaround this I tried to provide something else to bundle hash sum (like hash sum of source files, not bundle), but the value that TF keeps in the state is the one returned from AWS Lambda API, not the one you supply it; so it causes resource update on every apply, this is not what I wanted.

Your comment made me think of trying to skip bothering with Lambda’ hash sums and use custom refresh triggers instead, initiated by null_resource. Will do after holidays.

schmooser··on AWS Lambda Terraform Cookbook with working examples
I’m building data pipelines in AWS (s3/sqs/dynamo/api gw/lambda/batch) + Snowflake.

Earlier this year I tried to use Terraform for everything, using principle “everything is a resource” (everything in my case is AWS, Datadog and Snowflake), so adopted “terraform apply” as universal deployment interface. Like if we need a ECR task and a Docker image, build the image from within Terraform (using null_resource which runs “docker build”). This approach works for everything but Lambda as Terraform requires a pointer to source code bundle at the plan stage. After unsuccessful fights I gave up for Lambda, so I build bundles prior to “terraform apply” (using “make build”, where build target does its magic of zipping either Go binary or Babashka Clojure sources).

That approach scales well for already two dozens of Lambdas and counting. Ping me if you want more details.

——

I disagree with this tutorial about tendency to use Terraform modules per AWS service, hiding well-documented AWS resources behind the facade of module with custom parameters with long names.

schmooser··on Parsing JSON at the CLI: A Practical Introduction to jq and more
I've been using jq for several years but still can't write anything more complex than simple XPath without going to manual and googling.

Babashka[1] with Cheshire[2] aliased as json solves this to me, the code is longer but no need for googling anymore:

  USERX='{"name":"duchess","city":"Toronto","orders":[{"id":"x","qty":10},{"id":"y","qty":15}]}'

  echo $USERX | jq '.orders[]|select(.qty>10)'
  {
    "id": "y",
    "qty": 15
  }

  echo $USERX | bb -i -o '(-> *input* first (json/decode true) (->> :orders (filter #(> (:qty %) 10))))'
  {:id y, :qty 15}

[1]: https://github.com/borkdude/babashka [2]: https://github.com/dakrone/cheshire
schmooser··on PostgreSQL Indexes: First principles
There is a specific website explaining indexing basics and different usage techniques - http://use-the-index-luke.com
schmooser··on Ask HN: New attempt at mobile markup – keep or bail?
I'm using app.hackerwebapp.com for browsing HN from mobile - easy to use on mobile.

But anyways keep.

schmooser··on Spacemacs - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
Previous discussion: https://news.ycombinator.com/item?id=9394144
schmooser··on Show HN: Happyfinder – A fuzzy file finder like Helm, for the command line
Looks similar to fzf[1], which is also written in Go.

[1]: https://github.com/junegunn/fzf

schmooser··on Master Password
Ok, I finally get your point, thanks for detailed explanation.
schmooser··on Git from the inside out
This article was originally posted on Recurse Center - https://codewords.recurse.com/issues/two/git-from-the-inside...

And here is HN discussion - https://news.ycombinator.com/item?id=9272249

schmooser··on Master Password
Still don't get it. Knowing that I use SGP gives attacker nothing. On each guess of master password attacker has to generate pass (quick, using hash) and then GO to website and try to login. And this is very slow compared to hash generation using bcrypt, SHA1 or even md5.
schmooser··on Master Password
I'm using only mobile version which is a standalone page. I memorized the icon generated for my master password so I can spot if I made a mistake whilst typing.

I also use salted master password for each site, so I'm feeling safe at this.

Regarding "quick hash" or "slow bcrypt" - it doesn't matter here. Bcrypt complexity is to prevent obtaining real password from it's hash. Here we're dealing with real passwords but not hashes.

schmooser··on Master Password
I'm using [SuperGenPass] for exactly same thing. I forked the project on Github so I'm sure that algorithm won't be changed.

[SuperGenPass]: https://chriszarate.github.io/supergenpass/

schmooser··on Show HN: Artful for Mac
I'd like to try the App. If you have codes left, please consider sending one to schmooser _at_ gmail.com
schmooser··on Vellum
Nice experiment, I will try to use it.

But I usually save interesting links to favourites. Please consider to add favourites to selection of lists.

Also, Vellum does not support cyrillic at all, even if it's in utf-8.

schmooser··on Yet another note app for iPhone, iPad and Mac
I'm using Simplenote as platform to save notes. It has iOS app for iPhone and iPad, OSX app, web app. nvAlt also can sync with Simplenote via provided API. And it's free. Tagging, review history are also supported.

One thing I can't be satisfied with Simplenote it's iPhone app. It's very simple and UI is great but overall experience when editing and copy/pasting text is poor compared to native iOS notes.

As of this app - do you provide some API to get notes back from your app? iCloud doesn't and it's sometimes not very useful.