News for hackers. Stuff that matters.

aliencat

Show HN: React Docs as Offline EBooks

https://dohsimpson.gumroad.com/l/react-pdf-doc

Hi HN,I created this to help people who want to read the React documentation offline, instead of through the React website.The main benefits are:* Completely offline, so you can read anywhere—even on your eReader.* Reads like a book, rather than scraped web pages.* Easy to annotate thanks to the PDF format.* Can be fed to LLMs like NotebookLLM to turn the doc into an interactive guide.

( Read More... | no comments | on HN )
Sharing a tool that I wrote to convert docker-compose file to kubernetes deployment YAML: https://docker2kube.app.enting.org/

Hope it helps someone!

video demo looks awesome, what tool do you use to make it?
Thanks! Best of luck! Looks like a solid product
It seems that the 140x lower storage cost comes from: 1. S3 (OO) vs EBS (ES): about 5x 2. No indexing: About 10x ? 3. No data duplication (due to using S3 I assume) in HA deployment: 3x

Is my math right? Or do you use something different for compression?

2 Orders of magnitude of storage saving is pretty impressive.

unit test definitely a great use of copilot.
Re:Vimium – The Hacker's Browser on Monday February 27, 2023 @09:23PM (#34964887)
I also recommended vimium-c (https://github.com/gdh1995/vimium-c). It's like vimium on steroid: with a bunch of additional useful features.
Re:Electron Fiddle: The easiest way to get started with Electron on Saturday February 25, 2023 @09:04PM (#34942347)
One problem with Tauri is that it doesn't bundle Node runtime, meaning that you can't take advantage of the npm packages that works outside of a browser environment. It does allow you to use Rust packages, but that's another story than Javascript.
Re:Ask HN: What does your WFH day/routine looks like? on Tuesday January 24, 2023 @07:13PM (#34512524)
Haven't written on paper for a long time, almost forgotten how good it feels to write on one.
Re:Ask HN: What does your WFH day/routine looks like? on Monday January 23, 2023 @08:00PM (#34497583)
> After work I prep for dinner, keep working on my projects, and then drive 5 min west to the beach right before sunset and sit in the back of my car writing in my notebook. This is my favorite time of the whole day, a solid 30 min break where I don't look at my phone or any screen

Sounds like a wonderful time for unwinding. What would you be writing in those time?

Re:Ask HN: What's on your home server? on Friday January 06, 2023 @11:59AM (#34277306)
How easy is it to create a kubernetes cluster between local and cloud? Was thinking about doing this but was puzzled by how to bridge the network.
Very interesting idea! I think I've heard something like this before on giving reward randomly yielding to addictive behaviours, like gambling. Do you have any recommended reference on this idea?
Re:Software I’m thankful for (2021) on Friday September 23, 2022 @10:57PM (#32959366)
Karabiner is incredible for making keyboard shortcut to do some pretty complicated task. Obsidian, what a note-taking app! Makes Evernote looks like a dinasour. Vim (and NeoVim), you learn it once and use it for everything.
You can also acomplish this with shell:

export BUCKET=____; aws s3 ls "$BUCKET" | tail -n+2 | awk '{print $4}' | while read k; do aws s3 cp "s3://$BUCKET/$k" -; done

Re:Show HN: Bud – Command Runner inspired by Make on Saturday May 11, 2019 @10:47AM (#19886441)
No need for the sarcasm, it's open source, you don't have to use it. But to answer your question, you can't do `./my-script foo`, because you can't call a function directly as argument.

If you also want auto-completion, you bascially re-implemented Bud.

Re:Show HN: Bud – Command Runner inspired by Make on Saturday May 11, 2019 @10:31AM (#19886363)
Your statements are correct, but they are workarounds, and doesn't cover all the use cases. And they usually requires a StackOverflow search. For the above 2 reasons, I consider them to be limitations.

1. Problem is You have to explicit define a number of arguments and they have to be named. Consider the situation where you want to call an arbitary number of arguments, can't do that. (ref: https://stackoverflow.com/questions/2214575/passing-argument...)

2. You cannot reference the target in the body of another target. (ref: https://stackoverflow.com/questions/3267145/makefile-execute...) Consider below:

  .PHONY: a b
  a:
    echo A
  b:
    echo B
    a # can't do this
    echo B
3. .PHONY should be the default when you don't use file target, which is often the case for most non-C project.

With Bud, bash script become your Makefile and bash functions become your Make target. You can have arbitary numbers of arguments, you can reference other targets since they are just functions, and you don't need to explicitly add your target to .PHONY.

There are other reasons you want to move away from Make. For example:

* Defining variable in your target body requires workaround (ref: https://stackoverflow.com/questions/1909188/define-make-vari...)

Re:Ask HN: Best things in your bash_profile/aliases? on Sunday January 13, 2019 @04:23PM (#18898780)
This one is pretty useful!

Open current OSX Finder directory in Terminal:

  cdf () {
        target=`osascript -e 'tell application "Finder" to if (count of Finder windows) > 0 then get POSIX path of (target of front Finder window as text)'`
        if [ "$target" != "" ]
        then
                cd "$target"
                pwd
        else
                echo 'No Finder window found' >&2
        fi
}
Re:Ask HN: How did you break a bad habit? on Wednesday September 26, 2018 @09:14AM (#18075551)
stickK app is very useful for breaking bad... habit. You put money on the stake to follow through.
I would say that in terms of efficiency, Vim is >= Sublime. I have yet to see anyone using a GUI text editor beat the text editing speed of Vim. Plus, you are at full productivity when working with terminal. Think about how easy it is to ssh to a server and edit files with Vim.
Autoscaler(https://github.com/kubernetes/autoscaler/tree/master/cluster...) is a good option too. Works incredibly well at automatically adding/removing nodes based on workload.
Re:Ask HN: How to start working as a contractor? on Wednesday June 20, 2018 @05:06PM (#17359777)
Sweeeee! :)

Do you have flexible time? Like being your own boss kind of deal?

Re:Ask HN: How to start working as a contractor? on Wednesday June 20, 2018 @05:02PM (#17359743)
Hi sampl, thanks for taking the time to comment! I have less than 5 years of experience, but apparently the company is in need of contractors so they offered me the job without hesitation. I am wondering if there is anything I should consider before taking the job.
Re:Ask HN: How to start working as a contractor? on Wednesday June 20, 2018 @04:57PM (#17359678)
Hi wolco, the contract is 6 month. I am definitely thinking about incorporating immediately. But I am wondering what kind of expenses can I declare as a IT person? Can you elaborate on that?

Older »