flatroze's comments

flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file

Oh, thank you kindly.

That's an interesting question. I think it depends on how the given modal is implemented, but closing them should technically work (unless the page is saved with JavaScript code removed [-j flag]). Those notifications can easily be removed from the saved file using any text editor, should be pretty easy if you know how to edit HTML code. I don't think removing it would violate anything since "this website" will no longer really be a website but rather a local document at that point.

flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file

I think there's an issue with opening a tar file, e.g. if sent to someone who needs to view the document but isn't techy.

It seems to me that having one file that any browser can easily open (and not require Internet connection to view) is a big advantage over having a directory with assets alongside the .html file. It may be one of those things that make things easier yet nobody really complains about how things are usually done when the page gets saved. I hope more browsers add support for saving pages as MHTML in the nearest future so that we wouldn't need tools like this one.

flatroze | 6 years ago | on: Show HN: CLI tool for saving web pages as a single file

Thank you! It's pretty straight-forward: this program just retrieves assets and converts them into data-URLs (data:...), then replaces the original href/src attribute value, so in case with the same image being linked multiple times, monolith will for sure bloat the output with the same base64 data, correct. I haven't looked into MHTMTL, ashamed to admit it's the first time I'm hearing about that format. I need to do some research, maybe I could improve monolith to overcome issues related to file size, thank you for the tip!

And about Rust: I think you're way ahead of me here as well, this is my first Rust program. If you're talking about it embedding some debug info into the binary which may include things like /home/dataflow then perhaps there's a compiler option for cargo or a way to strip the binary after it's compiled. ¯\_(ツ)_/¯ Sorry, that's the best I can tell at the moment.

flatroze | 9 years ago | on: Ask HN: What was your “why didn't I start doing this sooner” moment?

1. Ditching people who were emotionally abusing me pretending they were my friends to take advantage of me (financial and/or emotional)

2. Switching away from Windows to GNU/Linux

3. Investing in stock market

4. Eating organic and vegan only

5. Drinking only bottled water

6. Working out and learning martial arts

7. Working on my self-esteem

8. Believing in myself

9. Keeping small paper notes for everything I do and have to do

10. Avoiding crazy girls/women like every other good boy/man should

11. Being honest with myself

12. Taking care of the future me (then thanking the past me)

13. Fixing my teeth

14. Attempting to leave my country of birth

15. Realizing that being either depressed or happy are choices every human has to make for themselves

flatroze | 10 years ago | on: We Need a Better PC

Go for gaming PCs/laptops. It's the same with clothes today: you can get the "survival/military" type of outwear which is better in quality and tend to last longer than usual outwear. You will look like a show-off, but in reality it's where the jean companies used to be when they first appeared (they used to be made for gold miners and construction workers). I would get something like Aorus X3 or Razer Blade Stealth, both feature really good screens and great hardware. Also seem to be well-engineered, unlike those plastic toys from Dell, Lenovo and all the others.
page 2