Hacker News new | past | comments | ask | show | jobs | submit | sntran's comments login

We can now transition to height auto: https://css-tricks.com/transitioning-to-auto-height/


Cloudflare has a thing called HTMLRewriter that is both a streaming HTML parser and selector for changing it. It's very efficient and let you change only the places you need.

For your example, you can just match in `[id^="insert"]` and add the actual firstName value in the handler.

I use it alot on the server side, but it's for JavaScript side, or Rust if you use the lower level lol-html.


+1 to the lol_html HTML rewriter. Basically you can give it a bunch of selectors and code that will do whatever with what is matching. It's very fast and quite nice. It has bindings to Lua and a few more, but not to Python.

https://crates.io/crates/lol_html


The HTMLRewriter API is pleasant to work with. Bun has implemented it in addition to Cloudflare Workers. I would love for WinterCG to work on standardizing this API across JS runtimes so that I don't have to interact with lol-html across a WASM boundary in Node and Deno.


Chrome on Android does not work either.


I wonder how useful this is to be placed inside a van for that tiny "bathroom" area. We drive most of the day so the clothes can be dry in there, if the energy usage is efficient.

Of course, clothes can be hung outside for the warmth of the sun, but this seems way cooler.


If you want something really efficient for clothes drying in a van or mobile home just place a small junkyard car radiator in that tiny "bathroom", and hook the radiator up to your engine's coolant loop.

As you're driving around your engine is already trying to vent heat to the outside, so you're mostly getting the heat "for free". The losses due to extending the coolant loop etc. will be comparatively minimal.

The only tricky bit will be carefully managing thermostats to ensure that radiator won't be melting something is the bathroom, your coolant will get hot enough to boil water.

A "it ain't dumb if it works" variant on that is to literally bolt a box to the top of your hood (depending on visibility etc.), then remove your hood's insulation, and possibly drill a hole to exchange air between the two. Anything in the "hot box" should dry as you drive around.


> your coolant will get hot enough to boil water

It should not, unless you are at a high altitude or your engine is faulty. Thermostats on engines target around 90c, but it does vary.


I forgot that my car's engine is unusual in this regard, BMW's like to run hot, so normal operating temperature for the coolant is above 100°C.


Wait until you add support for encryption.


I was excited to use this in my Demo project, but `import from "node:@tailwindcss/postcss@latest"` throws error about the `exports` field in package.json.

With that aside, the blog post mentions not having to use `postcss-import` but it seems to include that as dependency. So we're still using `postcss-import`.


Coincidentally, I was just reading about how VSCode support WASM on their web edition[1] and this was mentioned in their effort to implement the Terminal.

[1] https://code.visualstudio.com/blogs/2023/06/05/vscode-wasm-w...


I have always been fascinated by those sci-fi movies in which a person would swipe up on their tablet, and the current window would fly to another monitor.

This maybe be something that can achieve that.


Can't find out if this supports encryption, or streaming from stdin and/or to stdout. I haven't found one zip tool that does the above.


At the moment it doesn't- if it's something you're looking for, please open an issue.

I didn't want to go down the route of implementing a bunch of features without there being a actual need for them, especially for an initial version.


Info-ZIP (aka zip(1)) does, assuming that a heavily flawed standard encryption and a single file input from stdin suffices.


A lot of these tools convert .osm.pbf provided by OSM to.mbtiles.

If only OSM provides the .mbtiles directly, then we don't waste many other servers many hours converting them. Especially the planet one.


The mbtiles have a different tag schema than the pbf (and they add layers and zooms). If/Once there is a widely used data conversion, there will probably be some centralized service providing it. But that doesn't solve your problem if you want a different schema.


Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: