Is it not possible to use `window.devicePixelRatio` instead of calibration?
https://developer.mozilla.org/en-US/docs/Web/API/Window/devi...
HN user
Electronic engineer and software developer.
https://kaspar.systems
github.com/kasbah
hn@kaspar.systems ---
Is it not possible to use `window.devicePixelRatio` instead of calibration?
https://developer.mozilla.org/en-US/docs/Web/API/Window/devi...
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.
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.
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
"Reticulating splines"
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)
Use Lobste.rs with a filter: https://lobste.rs/filters
Shameless plug: the Kitspace page helps you build one yourself.
https://kitspace.org/boards/github.com/ottercast/ottercastau...
I was going to post this! I really enjoyed this episode (and also, all the other episodes of your podcast).
I find this DIY yellow drum machine robot from 14 years ago much more impressive.
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.jsonIt has since at least 1991 when Graphviz was first released.
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.What do you mean by Watchguard? I did a search but didn't find anything. Did you mean Watchtower maybe?
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.
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.
You might enjoy an existing app called Infinity Loop. It's a similar puzzle game using the traditional square puzzle-piece shape.
Seems to have been added: https://github.com/madprops/githop
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).
Nice to hear. I'm the creator of Kitspace.org and I've spent a lot of time making the 1-click ordering work. It's an open source platform by the way: https://github.com/kitspace
I'm far from an expert on this subject and am not sure if it fits the definition of "scintillation", but here's another particle detector that uses photodiodes:
- electron-detector: https://kitspace.org/boards/github.com/ozel/diy_particle_det...
- alpha-spectrometer: https://kitspace.org/boards/github.com/ozel/diy_particle_det...
SEEKING FREELANCER / (I'm in UTC+1) / remote / Help with adding projects to https://kitspace.org
Kitspace is a place to share ready to order open hardware electronics projects. You can order the the circuit board and all components for a project with just a few clicks. I’m seeking a someone to help improve the documentation of projects by asking creators whether they would like to mirror it to Kitspace.
The way to do this is to send Github pull-requests to projects (some examples: https://github.com/Ottercast/OtterCastAudioV2/pull/8, https://github.com/gregdavill/d20-hardware/pull/2 and https://github.com/nasa-jpl/open-source-rover/pull/180). As you can see in the examples it requires clear communication and some familiarity with electronics parts and making bills of materials. Most importantly it requires a mindset to try and help and improve the project in question through documentation rather than badgering people to add it to the site. Familiarity with Git, Github and at least one electronics CAD software (KiCad, Eagle etc.) is also helpful.
Naturally this gig is fully remote and the number of hours and length of contract you would like to commit to is up to you. Time zone is not dictated either, though some overlap with UTC+1, for the occasional meeting, would be ideal.
This is a fully open source project and does not turn a profit hence the budget is limited. I’m looking for people that can accept a rate of USD $20 an hour.
Please send applications, including a CV, via email to freelancer-2022@kitspace.mozmail.com . If you have any questions feel free to ask on this forum below or via email or private message.
My experience with Tabnine was that I loved it when it came out. I loved the fact that I could get full line suggestions without any extra language specific setup (I hop around different languages a lot) but the suggestions became less and less useful over time. In my view this was a degradation of Tabnine but of course I have nothing to back this up. Hearing this backstory does reaffirm my suspicion.
At some point I started using Language Server (mostly Typescript and Python) suggestions alongside Tabnine and it started to feel like it was just getting in the way. In the end I got rid of Tabnine. I haven't tried Co-Pilot yet but may give it a go when I find some time.
I'm pretty sure you can. Though I haven't tried it myself I did a search if we could integrate it into our Next.js app (Next uses Webpack internally) and found this: https://github.com/elpnt/nextjs-vitest-example
Unfortunately I just see this error on Firefox 96.0.3 on Linux though:
https://i.imgur.com/DgQLXqj.png
EDIT: looks like there is already an issue about it. https://github.com/hoschi/yode-nvim/issues/4
It's fun! I think I encountered a bug. Seems like I managed to accidentally bid twice, which shouldn't be possible if I understand it correctly.
https://i.postimg.cc/85TPBKgC/Screenshot-20211224-153956.png
EDIT: Also had a game with only 3 dice?
SEEKING FREELANCER | Remote (You'll be working with me and I'm in UTC+1)
We are building a search engine for open source hardware. Seeking two software engineers with experience in data engineering, linked data and building crawlers for a 3 month full-time contract (4500 Euro a month). Interest in hardware (electronic engineering, mechanical engineering) and enthusiasm for open source a plus. This work is funded by NLNet and the results will be made available as free and open source software.
https://search.openknowhow.org (proof of concept site built in a few days)
Please email your CV to kaspar [at] kitspace.org
Our electronics project sharing site https://kitspace.org is slowly but steadily improving since we did our Show HN [1]. We are working on a v2 [2]. Will do another Show HN once that's live :)
Metafilter and some hand-selected sub-reddits may fill that need for non-tech fields.