HNHacker News
TopNewBestAskShowJobs

budafish

78 karma · joined April 30, 2018

submissionscomments
budafish··on The best browser bookmarking system is files
I use Linking. It's quite good and actually being developed.

https://linkding.link/

budafish··on Layman's Guide to Python Built-in Functions
See this for an explanation - https://github.com/satwikkansal/wtfpython?tab=readme-ov-file...

> all([]) returns True since the iterable is empty.

budafish··on Htmx, Rust and Shuttle: A New Rapid Prototyping Stack
Also if you didn't want to do a hx-confirm, you could pop up a separate modal on button press. And then when the delete is pressed in the modal use a hx-target to update the specific row.
budafish··on I'm fed up with it, so I'm writing a browser
There are a lot of words the author used to simply say, "I'm going to start my pet project, which I also believe is going to fail very soon for a number of reasons"

Not much actual good content here.

budafish··on Ask HN: Could you share your personal blog here?
http://www.amishbhadeshia.co.uk

Blog about tech banking and consulting

budafish··on Five Books: The best books on everything
Thank you for this. I had no idea this series existed! It's exactly the level of info I want when picking up a new topic!

And bonus is my local library stocks many of them!

budafish··on Alpine.js
HTMX has a complimentary framework like alpinejs called Hyperscript [0]. (On second thought not exactly like alpine..)

[0]: https://hyperscript.org/

budafish··on Saying “sup” with `net send`
also

    @net use Z: \\administrators
Would achieve the same effect :)
budafish··on Which face is real?
The real image loads faster for me than the fake one. So I just click the first picture and it's correct.
budafish··on Why I use Jellyfin for my home media library
Is that by using that radarr watchlist integration?
budafish··on Hacker News Official API
I use materialistic also, but as far as I'm aware that hasn't been an update to the app in years. In addition I believe the materialistic app listing on Google Play is also been removed.

Do you have some updated version that I'm unaware of?

budafish··on To uncover a deepfake video call, ask the caller to turn sideways
100% agree. Made me feel a bit nauseous.
budafish··on Popcorn Time Is Back
Wait. Is this true? As in they have laws they just don't enforce them?
budafish··on Building a personal blog using Django
I have a blog post on setting up a Hugo + Netlify blog on my own blog.

https://www.amishbhadeshia.co.uk/posts/setting-up-a-new-blog...

budafish··on Rich: A Python library for rich text and formatting in the terminal
Use the integrated logging handler. That's all you need.
budafish··on Show HN: BookStack – An open source wiki platform and alternative to Confluence
Some time ago I was trying to transition to platform to help me capture my own personal notes and organise my knowledge. BookStack was a good front runner, but I think the lack of mobile editing along with the hassle of upgrades made me end up using Notion.

Now by all means notion isn't perfect at all, but for me who just wanted to start writing notes it seems the right choice at the time.

I would like to switch to BookStack as it looks great and is a great product, but the one issue that worries me is when it comes to upgrades and migrations. Generally I found when upgrading database based platforms I end up messing up hugely causing myself a huge headache, and then eventually not upgrading at all. For example I used Monica CRM, and totally botched the upgrades eventually just closing it down and using Google contacts instead.

If there was an easy way to solve for that I'd definitely be on board with self-hosting it myself. But at the moment I just don't have the time to resolve upgrade issues :(

budafish··on Nim 1.6.2
(on mobile) You could use Nimssequence iterators

[x.name for x in someList if x.age > 5]

Is the same as:

x.filterIt(it.age > 5).mapIt(it.name)

In a way it reads better.

budafish··on Traintrackr – Live LED transit maps
Something like Tidbyt?

https://www.kickstarter.com/projects/tidbyt/retro-display

budafish··on GNU nano is my editor of choice
From the faq.

Does micro support Vi keybindings?

Currently micro does not have any sort of Vim emulation. However, this is the next major feature that is planned, so stay tuned.

budafish··on GNU nano is my editor of choice
I've been a really big fan of Micro[1]. A single binary with excellent out of the box features. Mouse mode, syntax highlighting, tabs etc

[1] https://github.com/zyedidia/micro

budafish··on Python 3.10.0a6 is available, now with 100% more pattern matching
I think the word "more" implied it was 100% on top of the existing.
budafish··on Changes to LastPass Free
Keeweb is what I use on all platforms. Yeah it's an electron app but it supports natively storing the keepass file in the cloud. Works online or offline and has global autotype.

Works great for me!

https://keeweb.info/

budafish··on You don't really need a virtualenv
That's my point. I've always found it hard to set up dev containers. Also each dev container requires its own container, so I may have 10 python docker containers. My implementation only requires 1 image and temporary containers.
budafish··on You don't really need a virtualenv
Ive never quite managed to get the hang of setting up a dev container. I'ts a bit too tricky for me.

I have resorted to using a throwaway dev container which mimics the local storage of packages. Hopefully someone find the below bash function useful.

The only issue I have using this method is that I cant use VSCode to Debug, which I am hoping to find a nice solution for, but nothing yet.

  function python() {
     docker run \
         -it --rm \
         --name python_$(pwd | sed 's#/home/##g' | sed 's#/#.#g')_$(date +"%H%M%S") \
         -u $(id -u):$(id -g) \
         -v "$(pwd)":"$(pwd)" \
         -w "$(pwd)" \
         -e PROJECT_ROOT="$(pwd)" \
         -e PATH="$(pwd)/vendor/bin/:${PATH}" \
         -e PYTHONUSERBASE="$(pwd)"/vendor \
         -e PYTHONDONTWRITEBYTECODE=1 \
         -e PIP_NO_CACHE_DIR=1 \
         --net=host \
         -h py-docker \
         python:3-slim \
         /bin/bash -c '/bin/bash --rcfile <(echo "PS1=\"[$(python --version)]:: \"") -i'
 }
budafish··on What I Use Instead of Google
As others have said Google Photos backup via RClone has some caveats, mainly not downloading at original quality. Google Takeout does solve this but but in weird hierarchies.

I stumbled on a new project which simulates a browser download using a headless Chrome Developer tools session[0]. Looks interesting, supports continuation and can be ran on a cron job. Worth a look.

[0] https://github.com/perkeep/gphotos-cdp

budafish··on Telegram publishes users' locations online
Correct, spoofing can be done with the "FakeGPS Free" app and developer options. Or via an emulator.
budafish··on Show HN: System for Private Data Management
Whilst in theory this is a great idea to manage such information, it feel like a pretty basic level of management. The functionality is broad but flat, so much so that for my use cases it's not feature filled enough to warrant using. However definitely agree for the right user, this type of application would be great.
budafish··on Ask HN: What services can I use to collect/query and dashboard my custom data?
Thanks for this information. It looks really good. Your version looks like it is shaping up well, and your list of widgets ideas is exactly the type of info I was also thinking about.

Where are you in terms of your development?

budafish··on Ask HN: What projects are you working on now?
Looks promising! Is this an open source tool? Or once the software leave beta, will potentially be charged for usage?
budafish··on Ask HN: How do you share/organize knowledge at work and life?
I would love to use notion more, I like the way it works, it's flexibility, and would happily pay, unfortunately your offline capabilities arnt as good as I'd like it to be, and importantly your app startup time is very slow (which you already called out)

Will keep checking in in the future. Keep going though!