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

I’ve been toying with the idea of implementing a distributed analytics engine on top of Cloudflare workers and DuckDB.

I’m not sure if this goes against the CloudFlare TOS tough (last time I checked they had some provisons against processing images).


In the past few years there was this blog post[0] that clarified this. It moved the restriction on serving a "disproportionate percentage of pictures, audio files, or other large files" to another part of the TOS dedicated specifically to the CDN part[1] and clarified that, if you're using Cloudflare add-on services Stream, R2 (their S3), or Cloudflare Images, then you won't be at risk of termination.

0: https://blog.cloudflare.com/updated-tos/

1: The restriction still exists at https://www.cloudflare.com/service-specific-terms-applicatio... under "Content Delivery Network (Free, Pro, or Business)".


BoilingData does something very similar, except with Lambdas on AWS.



IMO that’s not really possible because of the size limits of Cloudflare Workers. Neither the WASM nor the Node version are small enough.

I‘m running it on AWS Lambda functions with some success.


"Computer Systems: A Programmer's Perspective" is a great introductory systems textbook on everything going on in a computer.

For more advanced C/C++ developers I can recommend "The Linux Programming Interface" - (https://man7.org/tlpi/). It is a GREAT compendium for writing code against the POSIX API. I have a (legal) copy of this book on all the computers I have access to.

"The Database Redbook" - (http://www.redbook.io) is a valuable source on database implementations.

"Compilers: Principles, Techniques, and Tools" (Dragon Book) is a great starting point. The book is out of print and but I think it should still hold up for most basic use-cases.


When writing a small application in Go I had great success asking Chat GPT specific questions. It helped me figure out which packages I needed to use and how to interact with them.

I understand that this might not fit your use-case, but it's worth a try. Just be aware that it tends to hallucinate APIs.


If it does hallucinate, you can just paste it the latest documentation and the hallucination rate goes to nearly zero.


Or it apologizes profusely, tells you you’re correct, and fails to fix its reasoning or the examples it gives you.


A couple of days ago I was trying to make Chatgpt give me the equivalent s3:// string for an https://... s3 bucket. The stupid thing would just replace http with s3, no matter how much I told it what I wanted (I needed to reformat several links, and search engines were just giving me s3 -> http scripts).

It finally landed on me that I was using gpt3.5 . Once I moved to gpt4 it got it right the first time.


I was trying to get it to write some Elixir code to handle Erlang B calculations and it just couldn't figure it out, but it was pretty confident with the wrong things it was printing out.


The rust borrow checker often requires too much critical thinking for ChatGPT, as well.

LLMs confer a tremendous productivity boost. You just have to understand their limits and know when it's faster to think through and write the solution yourself.


I told it to stop apologising all the time. It apologised for doing that :)


Did you also try telling it what it should do instead?


No, because there is nothing I wanted it to do instead. Perhaps what I should have done was to change the system prompt to something like "You are a helpful assistant that will admit its mistakes but never apologise for them."


> because there is nothing I wanted it to do instead.

"Simply do not say anything and move on" is something to do instead.


probably chatgpt is Canadian :)


Sounds like you need to add some custom instructions to get the tone, accuracy, and concision you want.


Does it actually consume the documentation? You could (haven’t tried in a while) also have ChatGPT tell you anything you wanted aslong as you stated “It’s been posted on Wikipedia after your last consumed date”.

I feel like telling it that it’s wrong and linking documentation is the same as referring to Wikipedia?


I mean you can just run the code and verify its functionality, right? I guess you could be in trouble if you get functioning hallucinations and try to build more around a false foundation.


The person asking the question seems to be looking for a course or textbook with which to challenge themselves.

What you've described is the opposite of that.


I understand. But as a long-time programmer I like to explore new programming languages or APIs by working on a small project. I start with a first prototype to get the feel of the language, before I look into extended documentation. Chat GPT helps with this use-case.

It's also more fun to have something which can be easily extended than to start from scratch.


>Just be aware that it tends to hallucinate APIs.

It gives you nice little hints and a different perspective on your api design itself. I'd have a chat with chatgpt and sometimes I'd miss to share specific code and it just assumes or hallucinate on that.


I like

- https://www.meteoblue.com - check out the multi model, the multi model ensemble , the meteograms and the weather maps! Sadly the app itself is not as good as the website.

- https://yr.no - One of the few "free" providers with ECMWF model data (Norway has open data, that's why the data is free)

- https://www.windy.com/ - ECMWF, GFS and ICON. I don't like their presentation, but the available data is quite nice.

If you want a DarkSky replacement API, then checkout out https://pirateweather.net/ (GFS only, sadly :/ )


They have also a great YouTube channel: https://www.youtube.com/c/MiWuLaTV


One of the 2 founders has been hacking away on a model F1 track, where his dream is to have 20 cars autonomously racing each other (so nothing pre-scripted, the AI will try to overtake each other). In one of the videos he said "Modern CPUs have 32 cores, well, we can use 1 core per race-car". They've even custom-designed circuit boards with magnets and sensors that will move these cars/detect their locations: https://www.youtube.com/watch?v=swpPfozKLNM (with subtitles).


Hugo in combination with the Congo Theme (see https://github.com/jpanther/congo) has scratched this itch for me. The theme is well thought out and has all the features I need.

There's the usual youtube and vimeo integration, but also

- integration with Flowcharts through mermaid https://jpanther.github.io/congo/samples/diagrams-flowcharts...

- charts through Chart.js https://jpanther.github.io/congo/samples/charts/

- and even LaTeX support: https://jpanther.github.io/congo/samples/mathematical-notati...


All of that's great... but wouldn't it be much better to render the latex, mermaid etc server side? I'm a bit baffled that apparently Hugo can't do that.


Sure, there's certainly interest in doing this. See this post for more details: https://misha.brukman.net/blog/2022/04/writing-math-with-hug... (I'm not the author of this post)

Client-side rendering works well enough for me, and has been for years (as a visitor). I don't see a benefit to integrate a custom Hugo patch to get server-side rendering for my simple personal blog.


I do this for my mermaid charts but it's a manual process for the moment. I need to dockerize it and add in a hook.


Does Hugo have a cloud backend integration that you can create new post/edit existing post without redeploying everything?

There's an open source, self-hosted clone of BearBlog, called PolarBearBlog [0], that builds a docker image and run it on Google Cloud Run. It uses Google Cloud Storage to manage a single JSON file for the whole blog contents (yes all your blog posts are in a single json file, which probably will start to show issues when you have hundreds of posts, but then again it's just markdown text so maybe that won't be a big issue anyways), and you only need to redeploy it if you made code change or system level config changes, which really is really more convenient than the whole static approach.

I made a fork of PolarBearBlog to add some of the features I care about, like cactus comment integration and rending full posts in the RSS feed. [1]

[0]: As far as I could tell PolarBearBlog has no affiliation with BearBlog, but it did get a mention in BearBlog's README: https://github.com/HermanMartinus/bearblog/blob/master/READM...

[1]: https://b.yuxuan.org/my-fork-of-polarbearblog


Creator of Bear Blog here. Both Jan and Joseph (mentioned in the README) contacted me prior to publishing to get my permission to use the Bear theme and chat through the project :)


Hugo is very fast in updating a website. Unless you have thousands of blog posts I would not bother.

You can self-host it on a "cheap" webhost and rsync the changes (that's the way I do it). Or you can integrate it with Github and host it with

- Netlify https://gohugo.io/hosting-and-deployment/hosting-on-netlify/

- AWS Amplify https://gohugo.io/hosting-and-deployment/hosting-on-aws-ampl...

- Cloudflare Pages https://developers.cloudflare.com/pages/framework-guides/dep...

to name a few. The hugo site has a couple of howtos.

Some hosting solutions require that the entire website is stored in a separate branch, others regenerate the HTML through a CI pipeline and store it in an object store.


After years of analysis paralysis of choosing the right stack for my blog, I picked up Hugo, the Cactus theme[0], stripped lot of useless (for me) stuff, made some changes, published a new theme[1].

It has been going amazing for me![2]

  0: https://github.com/monkeyWzr/hugo-theme-cactus
  1: https://github.com/abhijit-hota/kaktus
  2: https://abhijithota.me


Thanks a lot for posting it! I wanted to blog for quite a while but am too lazy to finish some basic blog setup with my "own theme". Bear looked great and I was upset none of the Hugo themes I looked at were exactly what I wanted. This one does!


I really like Stack, its a great modern theme for Hugo. I added RTL support to it :)

https://github.com/CaiJimmy/hugo-theme-stack


It looks very nice


You can use better dummy to achieve a similar resolution: See here https://github.com/waydabber/BetterDummy and this MacRumors thread https://forums.macrumors.com/threads/m1-mbp-lg-34-inch-ultra...

I tried it on my M1 Mini + LG5K2K and soon disabled it again. The performance impact was noticeable in Lightroom and the display adapter config got in the way once I switched display input to my work laptop.


Let me rephrase that, I'll switch once I can do it in a non-hacky way.

It should be possible - 6880x2880 is fewer pixels than the Pro Display XDR, which an M1 MacBook Air can drive perfectly well.


I faced similar issues with the Swiss keyboard layout. I suggest switching to the “US International“ layout and use the dead keys to obtain the umlauts. There’s also a keyboard option that enables a umlaut menu with a long press on the keyboard- if you really want to avoid the dead keys (this might help: https://apple.stackexchange.com/questions/254094/character-a...).

The Apple “English International“ keyboard has a big enter key - if you dislike the small enter key of the US keyboard layout.


Fantastical (iOS/macOS) solves this use-case for me. It supports configuring different views (personal, work, etc...). Moving an event from one calendar to another calendar is also well-supported.


Switzerland, I’m getting 1, 10 or 25gbit (ptp) from my local isp (https://www.init7.net) for ~70 usd per month. I currently only use 1gbit because the 25/10gbit hardware is too big or too loud to fit into my electrical cabinet. There’s also cheaper 1/10 gbit options, but they suffer from massive oversubscription and gpon.


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

Search: