News for hackers. Stuff that matters.

tjelen

Re:ReFrame – The EPaper Camera on Wednesday July 29, 2026 @09:16AM (#49097115)
I think that's just how prints from a transparent filament usually look like, at least in my experience. What looks like under-extrusion are just bubbles of air. You can print with transparent filament (mostly) without bubbles, but it's much more tricky, see e.g. https://blog.prusa3d.com/3d-printed-lens-and-other-transpare...
This one is basically my daily driver for similar tasks: https://app.heynote.com/ (full app at https://heynote.com/). And it seems to work almost out-of-box for your first two examples, once you switch the buffer from "Plain-text" into "Math" mode.

It also supports switching between different buffers and some kind of local storage.

Umm, yes? Not sure about the rest of Europe, but here in Czechia most of merchants have a direct payment method based on QR code.

Basically: 1) you select your bank at the checkout; 2) you're redirected to the bank's payment page with a QR code; 3) you scan the code from your banking app and confirm it; 4) the bank redirects back the merchants page with the payment status confirmed/declined. No payment processor involved and the money goes straight from your account to merchant's account.

Re:Compile and Run C in JavaScript on Thursday September 19, 2024 @10:09AM (#41592043)
I would say that the problem really is there. Dealing with native dependencies and addons was almost always a pain as the article describes (and not just from developer perspective), so anything that helps there is really appreciated.

Not sure what you mean by the right tools in this context.

Re:PGlite – Postgres in WASM on Friday February 23, 2024 @11:07AM (#39482357)
Code testing is a big one for me. I'm currently using in-memory sqlite for tests and I'm often running into differences between sqlite and postgres (default values, JSON handling, etc). This could allow me to use the real thing without running a full Docker instance.
Re:Comparing Rust and JavaScript on Friday July 15, 2022 @09:50AM (#32108187)
What I meant to say is that this definitely isn't a safe assumption and performance of this loop will be less predictable. That said, I wouldn't be surprised that such complex JITs as V8 or JSC can detect this scenario.
Re:Comparing Rust and JavaScript on Friday July 15, 2022 @09:32AM (#32107992)
That's a really good point and I think that in this sense the comparison is really made between Rust and JS rather than between WASM and JS (as others have complained).
Re:Comparing Rust and JavaScript on Friday July 15, 2022 @09:10AM (#32107769)
The innermost rendering loop in the JS seems to create and destruct an array instance for every single pixel iteration (see https://github.com/dmaynard/chaos-screen-saver/blob/master/s...). I guess that this could be potentially optimized away by the JIT, but it will make things slower or at least less predictable.
It has been reported by a major Czech newspaper (it is originally a Czech project): https://domaci.hn.cz/c1-67066670-fiktivni-eshop-se-zbranemi-...
And all that is just for being able to write `response = await fetch(...)` instead of `fetch(...).then(...)`.
Re:Securing Firefox with WebAssembly on Tuesday February 25, 2020 @12:42PM (#22415244)
Isn't it already supported backend in LLVM? https://github.com/llvm/llvm-project/tree/master/llvm/lib/Ta...

I mean it is still under development but I think it is usable. Here's a quick intro I found some time ago: https://dassur.ma/things/c-to-webassembly/

And at the same time they recommend using UAs to detect agents incompatible with SameSite=None cookies (see https://www.chromium.org/updates/same-site/incompatible-clie...), including certain Chrome versions.
Yeah, I'd say that it's actually pretty good result. Too bad that the benchmark doesn't include any non-browser WASM runtimes, like Wasmtime or Wasmer.
Re:Writing a small ray tracer in Rust and Zig on Tuesday July 02, 2019 @05:19AM (#20333448)
So why not just write the original formula into the comment above the code? Maybe it's not the purest approach, but it sure would help parsing the code in this case.
Re:Node.js Logging Made Right on Tuesday March 05, 2019 @08:33AM (#19310363)
In my experience, it's better to create a "request context" at the beginning of handling a request and pass it down explicitly to subsequent async calls that handle the request. I think that this approach is similar to Golang's "context" package, for example.

As other commenters note, using CLS (via async hooks or domains) is often too much magic and can possibly cause leaks or at least it results in program logic that's hard to reason about and hard to test.

Re:Architecture for a JavaScript to C compiler on Thursday February 14, 2019 @04:14AM (#19160635)
I think that the AssemblyScript project is halfway there. It compiles a stricter subset of Typescript to webassembly format, which can be then translated to CPU-specific machine code.
Re:Pirate Party Leader to Be Prague mayor on Friday October 26, 2018 @06:48AM (#18308119)
That's quite a misleading link - "Mladi zeleni" are not the Green party.
Re 1: Isn't Android One that version?
Re:Decode Like It's 1999: MPEG-1 Decoder in JavaScript on Thursday March 01, 2018 @07:54AM (#16491533)
If I remember it correctly MPEG-2 patents are supposed to expire this year. So maybe it's time for JSMPEG2? (Ok just kidding, the whole MPEG-2 spec looks huge).
Re:Xperia Touch makes any surface interactive on Tuesday May 23, 2017 @07:31AM (#14400362)
TheVerge has a nice hands-on video of the prototype, which I think explains the whole thing better than the official website: https://www.theverge.com/circuitbreaker/2017/2/27/14737824/s...

I like the projector mode a lot.

Re:PhantomJS: Stepping down as maintainer on Thursday April 13, 2017 @06:48AM (#14105727)
The Webkit/PhantomJS PDF export actually supports SVG embedding (as real vectors), Webfonts and many other things.

It's possible to create pretty advanced layouts with maps, graphs using that. Even embedding IFrames with e.g. Google Maps works.

Here are some issues that I've seen becoming important when scaling to a higher traffic with both MySQL and PostgreSQL (we're running both for different kinds of databases). Some of this is second-hand from my colleagues, so it might not be exact:

* Thread-per-connection (as opposed to process-per-connection with PG) means much lower memory overhead with many concurrent connections; with PG you might need to use something like pgbouncer, which doesn't come without its own issues.

* Logical replication; the MySQL format is compatible between minor release versions (e.g. between all 5.x releases), which enables upgrading individual replicas or master without complete shutdown. With PG this often a becomes way more complex.

* Better caching/buffer management. Essentially, InnoDB has its own implementation of LRU cache while PG relies on kernel page cache. This generally allows finer tuning on the database configuration level and you don't have dive into kernel page cache tuning (which will be always OS-specific).

EDIT: most of this stuff is probably even better described in the Uber article, linked in other comments here.

Is there a way to remove this library (like de-register its event handlers etc) once it has been activated somewhere on the page?

The reason I'm asking is that I've often ran into problems with similar no-dependency libraries in highly dynamic environment, that they often leave dangling event handlers on elements, that have been since removed from the page. That leads to various memory leaks and weird bugs.

Re:Modern software is at its worst on Tuesday November 29, 2016 @10:04AM (#13063414)
I think the page is just down at the moment. Even when using curl it doesn't return anything.
Re:Germany’s Chinese investment problem on Friday November 25, 2016 @11:19AM (#13037725)
On the other hand, I remember that there were lot of Czech companies that were privatized into Czech hands and most of them do not exist anymore, because they went bankrupt a long time ago.

At the time (during the 90s), most of those companies that had foreign investors/management grew and survived and those that didn't were often tunneled-out by a corrupt management and were closed down. There were definitely some pretty big cases in 90s. Also there was a big public discussion about this at the time, and many politicians were against the foreign investments in general.

So I simply don't think that it's so clear-cut issue and that it's not like most of Czech people are completely unaware of the problem.

Re:Heroku's SSL certificate has expired on Friday September 23, 2016 @08:55AM (#12564177)
So here's what's happening:

- you can't push to https://git.heroku.com/ (expired cert)

- you can push to ssh://[email protected]/; it seems to fail but the deployment actually goes through (I'd advise against trying that though).

- the status page is gone

Older »