Better HN
topnewbestaskshowjobs
Log inSign up

kasbah

3,337 karma · joined May 8, 2011 (15y ago) · 583 submissions

Electronic engineer and software developer.

https://kaspar.systems

github.com/kasbah

hn@kaspar.systems ---

Submissions

comment 1mo ago · link · parent

There is an issue with clipping off the context menu:

https://postimg.cc/0r4jrF59

2.

Open Footwear(openfootwear.com ↗)

3 points · by kasbah · 1y ago · discuss

comment 1y ago · link · parent

Is it not possible to use `window.devicePixelRatio` instead of calibration?

https://developer.mozilla.org/en-US/docs/Web/API/Window/devi...

comment 1y ago · link · parent

It's pretty straight forward to include the output of `wasm-pack` into a vite project. The output is a node module in a folder with the wasm files and a single "main" JS file.

Because I wanted to load WASM in a web worker for my project [1] I needed to use vite-plugin-wasm and `wasm-pack build --target web` but without that constraint you should be able to import the main JS file from the wasm-pack output directory using wasm-pack's default `bundler` target and no vite plugins.

[1]: https://github.com/kasbah/calm-go-pattern-search

comment 2y ago · link · parent

Interesting, thanks. I am especially interested in the idea of introducing player-defined concepts.

Would you be able to recommend a Datalog implementation that allows independant n-ary relations. Ideally one I can use from Python or Javascript in a sort of sandboxed way, as I am doing with Datascript, but if you have any recommendation at all it would be helpful to me.

comment 2y ago · link · parent

To me the interesting thing is the logic programming "rules" and their overlap with game rules. Inspired by work at Stanford on the logic programming based Game Description Language [1] I implemented Tic Tac Toe in Datascript yesterday: https://github.com/kasbah/datascript-games/blob/e06a37025bf9...

I am still not clear whether there isn't a more succinct rule definition than what I have there. In the Stanford paper you have rules like:

   (<= (column ?n ?x)
     (true (cell 1 ?n ?x))
     (true (cell 2 ?n ?x))
     (true (cell 3 ?n ?x)))
But in Datascript I have to do much more rigmarole around shuffling the data around:

  [(column ?n ?x) 
    [?current "ident" "current"] 
    [?coord0 "type" "coord"] 
    [?coord1 "type" "coord"] 
    [?coord2 "type" "coord"]
    [?coord0 "m" 0] 
    [?coord1 "m" 1] 
    [?coord2 "m" 2] 
    [?coord0 "n" ?n] 
    [?coord1 "n" ?n] 
    [?coord2 "n" ?n] 
    [?coord0 "name" ?key0] [?current ?key0 ?x]
    [?coord1 "name" ?key1] [?current ?key1 ?x]
    [?coord2 "name" ?key2] [?current ?key2 ?x]]
I don't know if this is down to Datascript/Datomic Datalog limitations or more the limitations of my understanding.

How do you approach your experiments? If you have any of your work to share or some tips on what I am doing I'd be very interested.

[1]: https://www.cs.uic.edu/~hinrichs/papers/love2006general.pdf

comment 2y ago · link · parent

"Reticulating splines"

comment 2y ago · link · parent

I use this with https://wiredjs.com for creating interactive mockups. E.g.

https://edea-dev.gitlab.io/mockups/ (source: https://gitlab.com/edea-dev/mockups)

https://otfn.development.fabcity.hamburg/git-pdm-mockups/

comment 3y ago · link · parent

Use Lobste.rs with a filter: https://lobste.rs/filters

comment 3y ago · link · parent

Shameless plug: the Kitspace page helps you build one yourself.

https://kitspace.org/boards/github.com/ottercast/ottercastau...

11.

A Reply to Josef Prusa(blog.thea.codes ↗)

3 points · by kasbah · 3y ago · discuss

12.

Red Team Blues [audio](craphound.com ↗)

1 points · by kasbah · 3y ago · discuss

comment 3y ago · link · parent

I was going to post this! I really enjoyed this episode (and also, all the other episodes of your podcast).

14.

Ghost Ships - What happens when ships become data?(logicmag.io ↗)

58 points · by kasbah · 3y ago · 20 comments

comment 3y ago · link · parent

I find this DIY yellow drum machine robot from 14 years ago much more impressive.

https://www.youtube.com/watch?v=_RyodnisVvU

comment 4y ago · link · parent

In all seriousness Python's json.tool is a great option here.

    cat big.json | python3 -m json.tool
or

    python3 -m json.tool big.json

comment 4y ago · link · parent

It has since at least 1991 when Graphviz was first released.

https://en.wikipedia.org/wiki/Graphviz

comment 4y ago · link · parent

When I invoke `docker compose up` on my project with Docker version 20.10.18 it says:

    The new 'docker compose' command is currently experimental.

19.

Zython: WebAssembly Python for Servers and Browsers(github.com ↗)

2 points · by kasbah · 4y ago · discuss

comment 4y ago · link · parent

What do you mean by Watchguard? I did a search but didn't find anything. Did you mean Watchtower maybe?

https://github.com/containrrr/watchtower

comment 4y ago · link · parent

Not yet but I'm going to try and crib from https://github.com/ocharles/dot-files/blob/master/nvim/init.... when I have some time to waste.

comment 4y ago · link · parent

Why does that matter? It seems you can run Lyra on the client and you can run other JS search engines on the "edge" (all that's needed is a JS runtime if I understand it correctly). It would be interesting to see how Lyra compares in these benchmarks.

23.

GPSJam: Daily Maps of GPS Interference(gpsjam.org ↗)

301 points · by kasbah · 4y ago · 82 comments

comment 4y ago · link · parent

You might enjoy an existing app called Infinity Loop. It's a similar puzzle game using the traditional square puzzle-piece shape.

25.

May Contain Hackers 2022 – Live Streams(streaming.media.ccc.de ↗)

50 points · by kasbah · 4y ago · 2 comments

comment 4y ago · link · parent

https://web.archive.org/web/20220615221622/https://www.rhizo...

comment 4y ago · link · parent

Seems to have been added: https://github.com/madprops/githop

comment 4y ago · link · parent

PCB manufacturers accept a format called "Gerber" files. They are basically drawings of all the layers of the PCB. You can download the Gerber files from the Kitspace page and send/upload them to a manufacturer of choice or even use one of the links to auto-upload them for you to Aisler, OSHPark, PCBWay or JLCPB.

Since the PCB is the board only, component information is actually not required to manufacture it. If you want a functioning device however you do have to source the components (e.g. from Digikey) and solder them to the PCB. I would recommend starting with an easier circuit (the electron-detector above might be a good candidate!) and ideally find someone to teach and help you (maybe at a local hackerspace? youtube tutorials might get you there if not?)

There's also this popular comic for teaching soldering to beginners that might help: https://mightyohm.com/blog/2011/04/soldering-is-easy-comic-b.... More links like this can be found on our list: https://github.com/kitspace/awesome-electronics/

The other option is to have a manufacturer solder it for you (e.g. Aisler and JLCPCB will do this for you), but if you have no experience building and debugging electronics I wouldn't recommend it (since it can get expensive and you can easily end up with a non-functioning device).

12345
20