HNHacker News
TopNewBestAskShowJobs

cipherself

181 karma · joined June 3, 2023

https://mohamed.computer/ https://synmach.com/
submissionscomments
cipherself··on Virtual Power Plants and Software
How does one learn more about virtual power plants? Are there books you'd recommend? I am interested in learning both about the tech involved and the market dynamics.
cipherself··on Pydantic Logfire
From the screenshots, it seems very much to be about tracing.
cipherself··on Pydantic Logfire
I am kinda confused by your comment, OP is about tracing as far as I understood, but you're referencing Google Cloud Monitoring (whereas the comparable thing would be Google Cloud Trace) and then again

  (esp. for metrics and their attributes).
but OP isn't about metrics at all rather traces.
cipherself··on Show HN: Auto-generate an OpenAPI spec by listening to localhost
One slightly related thing you can do is to test the API with schemathesis[0]

[0] https://github.com/schemathesis/schemathesis

cipherself··on Ludic: New framework for Python with seamless Htmx support
The problem with this is that it doesn’t map nicely to HTML (or more generally XML) as do s-expressions.
cipherself··on Ludic: New framework for Python with seamless Htmx support
Generating `HTML` from lisps has poisoned any other approach for me, see for example https://www.neilvandyke.org/racket/html-writing/, https://reagent-project.github.io/, and https://edicl.github.io/cl-who/
cipherself··on Transpile Any SQL to PostgreSQL Dialect
I think this is probably the missing piece for you? https://github.com/jwills/buenavista
cipherself··on Transpile Any SQL to PostgreSQL Dialect
Interesting, a while back at $EMPLOYER while working in a PoC, I found myself in a situation where I need to take user-provided Postgres SQL queries and run them against one of our APIs. Roughly, I converted the API response to a `pandas dataframe`, I then parsed and transformed the query from the postgres dialect to the duckdb dialect using `sqlglot` and used `duckdb` to query the `pandas dataframe`, coverted it into `json` and returned it to the user.
cipherself··on Truffle-1 is an AI inference engine designed to run open source models at home
Yes, also the text

  or download on Mac
is not hyperlinked.
cipherself··on Launch HN: Glide (YC W24) – AI-assisted technical design docs
I am still playing around with the project but FYI, the parsing for the github repo URL at https://glide.agenticlabs.com/ will fail if there's a trailing slash in the repo link i.e. https://github.com/microsoft/autogen/ won't work but https://github.com/microsoft/autogen will.
cipherself··on Bard Extensions
Nope, it can't create the events.

does it still just say that it will then not actually do anything?

It will now say:

  I can't directly create calendar events for you, but I can help you create a 
  calendar event description. Please provide me with the following information so 
  I can create a detailed description for you:

  * Event title
  * Event date and time
  * Event location
  * Event attendees (if applicable)
  * Event description
  * Any additional notes or reminders
  
  Once I have this information, I can provide you with a calendar event 
  description that you can then add to your calendar.
And if you provide that information, it'll just format it, add a few tokens and just display it to you.
cipherself··on Learnable Programming (2012)
Working on dynamic land https://twitter.com/worrydream/status/1676352645731356673
cipherself··on Flexbox Froggy
This is great, I used this years ago when I was learning about flexbox.

There's also https://codepip.com/games/grid-garden/ by the same author that uses the same approach for CSS Grids.

cipherself··on Learn Physics with Functional Programming
SICM Is more like a 2nd physics course as it uses the Lagrangian interpretation of classical mechanics and starts with it whereas OP seems to start from the basics.
cipherself··on Shrink to Secure: Kubernetes and Secure Compact Containers
Re: scanning of images, if you're using Google Container Registry (or Google Artifact Registry) there's also Artifact Analysis and Vulnerability scanning which you can turn on (and pay for)[0]

Re: security, defining security contexts for containers and pods are quite important, the container should not run as root, you should drop all capabilities, ...etc. For example

  securityContext:
    runAsNonRoot: true
    runAsGroup: 1000
    runAsUser: 1000
    privileged: false
    allowPrivilegeEscalation: false
    readOnlyRootFilesystem: true
    capabilities:
      drop:
        - ALL
You should also use something like kubescape[1] to regularly scan your cluster (or helm files or yaml files). Furthermore, you should use an admission controller[2] like Gatekeeper[3] to enforce certain policies in your clusters e.g. containers should always have a securityContext.

[0] https://cloud.google.com/artifact-registry/docs/analysis

[1] https://github.com/kubescape/kubescape

[2] https://kubernetes.io/docs/reference/access-authn-authz/admi...

[3] https://github.com/open-policy-agent/gatekeeper

cipherself··on Why Lisp Syntax Works
Interesting, I had forgotten about Guix and now is just the right time for me to try it out, thanks for reminding me.

> Me. It was me. I didn't commit the function

Haha. Yeah, modifying "live" systems without a strict mindsets tends to cause that, the worse is linux images running on production VMs which are partially specified by e.g. Ansible but there are little modifications here and there that are done by one person or the other and when that machine needs to be created you get a nice surprise.

cipherself··on Why Lisp Syntax Works
I am curious what your deployment story is like? i.e. do you deploy on k8s? on linux VMs?
← PreviousPage 2 of 2