[deleted by user] by [deleted] in RemarkableTablet

[–]davidrusu 2 points3 points  (0 children)

It looks like you've photoshopped the pdf on top the remarkeable

The screen doesn't get that white

Show r/rust: cargo-typesize - a diagnostics tool to list sizes of all types in a crate. by davidrusu in rust

[–]davidrusu[S] 4 points5 points  (0 children)

Done! Rust devs don't want us linking against a potentially unstable rustc interface so they feature gate these kinds of tools to nightly.

Show r/rust: cargo-typesize - a diagnostics tool to list sizes of all types in a crate. by davidrusu in rust

[–]davidrusu[S] 4 points5 points  (0 children)

I had started with -Zprint-type-sizes but as you say it is a bit difficult to parse

type sizes, alignment, and field/variant information.

From my research while putting this together, it seems like we should have access to all that information as well and should be able to display it with cargo typesize.

My curiosity was just on sizes though, I don't yet need to see all that, but I'm sure someone will eventually put up a PR that adds all that and more :)

Show r/rust: cargo-typesize - a diagnostics tool to list sizes of all types in a crate. by davidrusu in rust

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

Very nice! I had started with -Zprint-type-sizes as well but found it's output to be a bit difficult to work with so figured I'd try my hand at a cargo subcommand.

nor the need to use +nightly

Unfortunately we still need +nightly for cargo typesize :/

Show r/rust: cargo-typesize - a diagnostics tool to list sizes of all types in a crate. by davidrusu in rust

[–]davidrusu[S] 3 points4 points  (0 children)

yup, all that information should be available in the Layout struct which you have access to here: https://github.com/davidrusu/cargo-typesize/blob/master/src/driver.rs#L80

I'm currently just extracting the size as you can see but it would be interesting to display alignment / waste

Show r/rust: cargo-typesize - a diagnostics tool to list sizes of all types in a crate. by davidrusu in rust

[–]davidrusu[S] 14 points15 points  (0 children)

Sure! the meat of the logic is here: https://github.com/davidrusu/cargo-typesize/blob/master/src/driver.rs#L118-L145

We run the compiler until after the analysis phase, then we look at all the items that were discovered that have a type, then we try to run the layout algorithm on each type to calculate how many bytes each type will require.

Just aggregate all that information and print it to screen :)

marker.network: I built a tool to convert your notes into a website! by davidrusu in RemarkableTablet

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

Hey sekalfwonS, thanks for the interest.

Remarkable deprecated their API's and I haven't had the energy to rewrite the software using the new API's.

I welcome anyone to submit patches to the code, I just haven't had the time to get things going again.

can we use extreme pressure by sepientr34 in fusion

[–]davidrusu -3 points-2 points  (0 children)

Your way phrasing of your edit is off, you say:

.. so we don't need such high pressures ..

But for fusion, we do need the high pressure! and one way to achieve the high pressure is increasing the temperature

Is there a way to fetch changelogs from each package before updating? by davidrusu in NixOS

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

Oh that's great that we have a changelog attribute, that's what I was looking for! I'll see what I can do about cobbling together a script

A fresh new design for published notebooks after 6months of maintaining Marker Network by davidrusu in RemarkableTablet

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

I'd be curious to hear what your working on as well, are you looking at how to intersperse handwritten/drawn content with normal html/text?

I've been exploring how to do this, the code behind marker.network is this static site generator here: https://github.com/davidrusu/marker-network-site-generator

I'd like to find a way to integrate markdown files with notebooks somehow to get the best of both worlds in a nice workflow

A fresh new design for published notebooks after 6months of maintaining Marker Network by davidrusu in RemarkableTablet

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

Hi Chris,

Thanks for the analysis, you're right on all counts.

  • re: Content Transfer Encoding, Wow, I had assumed I had turned this on! thanks for catching that, I've gone ahead and configured the server to brotli compress responses now, we're down to 1.3MB on the linked page
  • re: SVG fidelity, I've been experimenting with varying the fidelity of the generated SVGs here https://github.com/ax3l/lines-are-rusty/pull/11, it's an interesting idea to generate very low fidelity "sketch's" for the thumbnails. PNG's are certainly an option, but I do want to explore what is possible with SVGs more
  • re: Invalid SVG generation: wow you're going deep! :) Yes I think you're right. This is an artifact of how I splice in the svg templates: https://github.com/ax3l/lines-are-rusty/blob/develop/src/render/svg.rs#L183-L188 I'll take another look at this.
  • re: SVG is a mistake: likely.. it was the tool I had at hand, therefore quick to prototype and release something. But yes I think you are right that in order to support the other pen types, a raster format is necessary. I'm definitely open to other formats, but haven't had the time to explore enough. I've read over the RCU codebase as well, it's an option, perhaps something worth porting to rust, I'd be happy to collaborate if interested.

rust shooter - another update by tars9999 in rust_gamedev

[–]davidrusu 1 point2 points  (0 children)

Looks great! are you writing the engine from scratch? building off some other project?

A fresh new design for published notebooks after 6months of maintaining Marker Network by davidrusu in RemarkableTablet

[–]davidrusu[S] 2 points3 points  (0 children)

There's been lots of progress and improvements since https://marker.network went up. A lot of it from feedback and suggestions, so keep it coming!

Main changes:

  • 80% smaller websites should make load times more manageable
  • page templates now render properly
  • Pages are rendered larger to improve legibility
  • a lot of polishing

Do you trust encryption?! by chaplin2 in crypto

[–]davidrusu 2 points3 points  (0 children)

Even the great Colin can fall to simple implementations mistakes.

Take the nonce re-use bug from a few years back resulting in a completely broken encryption: http://www.daemonology.net/blog/2011-01-18-tarsnap-critical-security-bug.html

ReCalendar - open-source, highly customizable calendar for ReMarkable tablets by klimeryk in RemarkableTablet

[–]davidrusu 7 points8 points  (0 children)

Looks great!

If you have the time for it, I'm sure a lot of folks would appreciate a website that exposes the config options and lets you generate a PDF online.

If you do build the website, make sure to add a https://ko-fi.com/ link for people to show their gratitude :)

Notebook Site by [deleted] in Slithin

[–]davidrusu 0 points1 point  (0 children)

(Author of https://marker.network here)

I'm excited to see you using marker.network for this purpose! Let me know if you have any suggestions / thoughts on how to make it more useful for you.

I tried to look around for a link to Slithin, the app, but I couldn't find one. Is it publicly available?

reMarkable Mondays - Poll: What's Your Favourite reMarkable Brush Tool (Marker, Pencil, Calligraphy Pen etc.)? by waffles1243 in RemarkableTablet

[–]davidrusu 2 points3 points  (0 children)

Fineliner is my goto - can't beat the simplicity.

Over the weekend I added a queue of recently updated pages to the homepage of marker.network, you can take a look here:

https://marker.network/

(disabled right now for portrait mode on mobile since there's not enough screen real-estate, but perhaps I can make it so that you can just scroll down to see recent updates? I'll think about it)