Hacker Newsnew | past | comments | ask | show | jobs | submit | honzajde's commentslogin

Very nice. Just did not find the spec/format for the config file.


How would you handle "db-notifications" with sqlite - to my knowledge this is a reason why you would need postgresql with its' (pg) NOTIFY


SQLite calls this an "update hook": https://www.sqlite.org/c3ref/update_hook.html


Exactly! Or in some cases I create a view - for example a highscore list - that is queried by a simple server-side script and sends the data as JSON to the client.


SQLDelight had neat built in support for this

https://cashapp.github.io/sqldelight/


I got very excited about this tool. It's exactly what I need. I wrote a custom calendar app in it. But I got disappointed by performance. A list of 10 items takes 3 seconds to draw. I yet have to check if that is not caused by some other tool in the call stack. I wonder what is others people experience with performance of mlr?


I also use regularly miller/mlr with files having 1M+ lines and I never had problems with the hardcoded processing (i.e. "verbs") nor the DSL language which is know to be much less efficient compared to verbs.

Both visidata and miller are essential tools to process/view CSV/TSV files, way better than LibreOffice or Excel in terms of performance on large files.


If you can reproduce that reliably you should open a bug for it, eh? I'm sure John Kerl would want to know.


What if there is an iframe in the page, then I don't think you will see anything in network logs in devtools...


Saved PDF (in Chrome) does not have a TOC as a side pane in Acrobat Reader. MIssing pretty important feature.


The bookmarks feature of pdfs doesn't exist in chrome's pdf engine which means paged.js don't support it either last I checked.

We solved this by post processing the pdf generated with paged.js + puppeteer with itextsharp (LGPL) to add the bookmarks.

We captured the toc using the paged.js "after" hook and put that into a variable which our backend could then grab from puppeteer.


Yes, that would be an advanced feature and I think likely out of the scope for paged.js. That said the table of contents page is hyperlinked - you can jump to sections, and I put a return to table of contents in the footer to aide with navigation. Hopefully that helps?


Will this allow to measure continuous cpu usage?

Many pages that I use run high on cpu. I have no option then kill them in the background. Right now doing that manually sucks.

The same information is available in chrome under dev-tools/Performance monitor as "CPU usage"


Was fun to read. Thankd


Yesterday I setup my blog on Hugo. Very happy with that. Hugo is written in go but you only need to write markdown and deal with single config file. I managed to find theme that supprts overlay for images and various other options for images. Simplicity is the name of the theme. There are also themes with ready up forms, might be enough for your particular scenario.


I hope it's not off topic: anybody who wants find out more about ivory trade in an easy way, there is a movie documentary: The Ivory Game (2016) https://www.imdb.com/title/tt5952266


Thanks alot!


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: