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

I like Hugo, but I’ve not found a nice workflow to automatically put the images on a CDN.

I was thinking of making a GitHub action that uploaded the image from a given branch, deleted it, set the URL, and finally merged only the md files to main.


If you're okay with the images being on a CDN, why wouldn't you also be okay with the HTML and CSS also being on the CDN? Just fronting the entire static site with a pull-through CDN is an easy solution that doesn't require any complicated workflow.


I’m talking about integrating with GitHub. Publishing to Cloudflare for instance is fine, but where do you put the images between drafting and publishing?

Or do you just check in images to GitHub and call it a day?


I wasn't suggesting publishing to Cloudflare, just that if you're concerned about the complexity of the workflow of getting images into the CDN, simply fronting whatever host you're using with a CDN of some kind (which could be Cloudflare) will solve that.

Usually you just store the images in the same git repo as the markdown. How you initially host the static site once generated is up to you.

The problem with storing binaries in Git is when they change frequently, since that will quickly bloat the repo. But, images that are part of the website will ~never change over time, so they don't really cause problems.


[flagged]


> You’re talking to me like a total idiot, having assumed I know nothing about this.

Sorry I tried to help? If that's the response I get for helping, good luck...

> All I meant was a way to avoid storing images in git, the rest is quite simple.

There is no good way to do that, and no way that I would recommend. Git is the correct solution, if that is where you are storing the markdown. No fancy git tools are required.


I commit the images alongside the markdown files in GitHub. My site is has numerous images and there are logical groups of posts. I make those logical groups of posts a git submodule, so I don't have all posts on my machine (or iPad) at one time.

Working Copy (git for iPad) handles submodules reasonably well, I have a few that I'm working on cloned on it and others are not so I don't use so much space.


Why not put the whole site behind CDN?


> An FPGA, by contrast, defines data pathways specifying how signals change on each clock tick based on internal states and external inputs. In essence, we describe global per-clock-cycle behavior rather than an individual act of data manipulation per step.

I think that’s the clearest explanation of FPGAs I’ve ever seen.


What are your best local models, and what hardware do you run them on?


It says 12-15 hours of recording in the article.


I really don’t want to wear a battery in that form factor.

Sure a phone or watch can burst into flames, but at least you’ve got a chance of dropping it or taking it off.

I also don’t see the bother of talking to your wrist rather than your hand.


Does Starlink have a temporary or “pay as you go” option?


Not anymore. You need a $5/mo charge to keep your account hot.


They still give you 500kbps of speed, which is enough for checking emails, voice calls, navigation, music streaming, etc.


That's pretty reasonable.


Historically Starlink roam let you pause/suspend the service and restart it when you need-

In August they changed their plans so you’d need to cancel and re-subscribe.


I didn’t know they’d added an alternative kernel. The CGAL one used arbitrary precision which massively slowed it down.

Also, fillets are made using the Minkowski operation, which is super slow.


They added it in the dev branch. There hasn't been a stable release since 2021 and there has been a lot of ongoing development in the meantime, many people use the development release since it's significantly faster.


Where, out of interest?


If that’s Octopus Intelligent Go, then it will also give you the 7p rate outside the normal nighttime slot if the car is charging and their algo calculates they can do it.


The one you linked looks ugly. Horrible seams, odd and too-long red buttons, unaligned slots.


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

Search: