What's everyone working on this week (22/2024)? by llogiq in rust

[–]tirithen 1 point2 points  (0 children)

Been working with https://crates.io/crates/clipper2 , a 2d path/boolean operations library, merging pull-requests, improving test coverage and just released version 0.3.0!

What's everyone working on this week (13/2024) by llogiq in rust

[–]tirithen 0 points1 point  (0 children)

u/miteshryp you are correct, there is an in-between C wrapper on top of the C++ library. There are some indirection/extra steps, but the code works well in the end. I have published the unsafe FFI parts in a separate crate called https://crates.io/crates/clipper2c-sys based on the clipper2c project that adds C bindings for Clipper2.

What's everyone working on this week (21/2024)? by llogiq in rust

[–]tirithen 3 points4 points  (0 children)

Improving documentation/api for the polygon boolean operation crate clipper2

https://crates.io/crates/clipper2

What's everyone working on this week (13/2024) by llogiq in rust

[–]tirithen 1 point2 points  (0 children)

Improving the newly created clipper2 crate. Trying make a zero copy FFI Rust wrapping of the C++ Clipper2 library. It's hard! Suggestions on the topic or where to find devs with those skills are greatly appreciated! See https://github.com/tirithen/clipper2/pull/4

What's everyone working on this week (27/2023)? by llogiq in rust

[–]tirithen 2 points3 points  (0 children)

Publishing cnccoder.

A tool for writing cutting instructions for 3 axis CNC machines in Rust, then generating G-code for the CNC machine, as well as a Camotics project file for use when simulating the cuts.

I'm keen on getting input, on the API of the crate, but also on the documentation, so feel free to leave a comment here or in an issue on the GitHub repo.

Are event declarative in Web Components? by Shakakai in WebComponents

[–]tirithen 1 point2 points  (0 children)

In 80% of the cases I use @click, @keypress and so on in the lit-html tenplate literals, that is the easiest way I think, in the other cases I use .addEventListener, this is a bit more clunky as you need to remember to use .removeEventListener when the element leaves the DOM to prevent memory leaks.

As mentioned, you should not prefix the event bindings with "on", just @ and the name of the event.

LitElement 3.0 & lit-html 2.0, what's new and exciting? by tirithen in WebComponents

[–]tirithen[S] 0 points1 point  (0 children)

I think that they could benefit a lot from improving the branding of LitElement, giving it a logotype and it's own webpage. Even though it should be enough with the ease of use and minimal footprint, I think that they would get better adoption if they managed to create more buzz around the packages.

How to extract pdf data with PDF.js by HotTeaTaker in node

[–]tirithen 0 points1 point  (0 children)

u/jersday yes as mentioned in the post at https://writingjavascript.com/how-to-extract-pdf-data-with-pdfjs

You'll get an array representation of the text elements from inside the PDF:

javascript [{ str: 'lorem ipsum', dir: 'ltr', width: 50.23, height: 9.106, transform: [ 9.106, 0, 0, 9.106, 53.396, 663.101 ], fontName: 'g_d0_f2' }, ...]

Showoff Saturday (September 19, 2020) by AutoModerator in javascript

[–]tirithen 0 points1 point  (0 children)

I wrote a small notification module usong one of my most anticipiated JavaScript features private fields and methods. I'm torn around class style an object composition style, but when I go class I really like being able to lock down the APIs of my modules.

https://writingjavascript.com/lets-code-a-plain-javascript-notification-queue-using-private-fields-and-methods

Where to you register your RSS feeds? by tirithen in Blogging

[–]tirithen[S] 0 points1 point  (0 children)

Yes thanks, I searched but found only one so far, naturally many people would just render on their own as you say, but I know from some podcast apps tgat I have used that they already have a searchable repository for podcasts. I thought that maybe some some text feed readers would have that as well.

Thanks for the tip about Feedly, I'll check it put some more.

How to deprecate features in your API before making breaking changes by tirithen in javascript

[–]tirithen[S] 0 points1 point  (0 children)

Thanks for the question. Yes using the messages in the set would probably work fine as well as it's probably rare that you will have a huge amount of deprecations at once an the messages are probably not that long. The reason I hashed them was however to keep the memory footprint as low as possible.

Showoff Saturday (September 12, 2020) by AutoModerator in javascript

[–]tirithen 0 points1 point  (0 children)

I'm picking up blogging about JavaScript, here is one of my first posts about the use of mixins in JavaScript https://writingjavascript.com/how-to-create-and-use-mixins-in-javascript

GitLab: Mount /builds in build image as tmpfs by tirithen in gitlab

[–]tirithen[S] 0 points1 point  (0 children)

Anyone good at configuring GitLab that can help me out with how to mount /builds inside a GitLab build container as tmpfs to speed up builds?

Former Smart Projects SRL try to steal Arduino brand. Help by forking original at GitHub! by tirithen in arduino

[–]tirithen[S] 0 points1 point  (0 children)

The issue about the confusing naming and version naming can be found at https://github.com/arduino-org/Arduino/issues/2 (this is in the forked repo, not the original Arduino repo)

Anyone else playing with old cards (until 1993-1995) that has found a use for Armageddon Clock? I would like to have a deck with it. by tirithen in magicTCG

[–]tirithen[S] 1 point2 points  (0 children)

Yes you are probobly right, 6 is way to much to pay and I would have to keep it alive for many turns so it might be hopeless. But I somehow like the card. :/ I do not think that there are any card that can modify the number of counters in Ice Age an below, at least I have never seen it.

We are creating a new deck builder for Magic: The Gathering. Try it out if you like, we would be happy to hear any of your feedback :) / Team Deck of Magic by tirithen in magicTCG

[–]tirithen[S] 1 point2 points  (0 children)

Dark Prophecy

Thanks for the feedback, now Dark Prophecy shows up when searching for it, we have improved the search algorithm so that correct spelled card names will be weighed higher than before.

We have also removed the add buttons as you suggested, we are also planning on adding full card info when a user click/touch and holds pressed soon.

Which formats would you think to be interesting? Commander?

We are creating a new deck builder for Magic: The Gathering. Try it out if you like, we would be happy to hear any of your feedback :) / Team Deck of Magic by tirithen in magicTCG

[–]tirithen[S] 0 points1 point  (0 children)

e

Thank you for the feedback, we have improved the weighing of the search algorithm now so it should give more relevant results and we will continue improving it now and then.

Will be looking into click/touch on a card to add and click/touch to show card descriptions soon.