Live data from Hacker News

Monodraw

monodraw.helftone.com

171–180 of 218 posts

Re: Monodraw

#171
Can somebody help me? I've tried Monodraw a few times, but whenever I attempt to use the ASCII on a website (Wordpress, if that's important) the artwork never appears with the correct spacing. The tabs don't show up, or the alignment is off.

So I end up having to create a GIF, which defeats the purpose.

Any ideas?

Re: Monodraw

#172
post #19

I love this tool! I've used it to do diagrams for Mapless: https://sebastianconcept.github.io/Mapless/guides/2024/01/28... And to document this Pharo VM Plugin builder setup: https://github.com/sebastianconcept/PharoPluginBuilder

So you used an ASCII drawing tool to draw these diagrams in text then took a screenshot of them and uploaded to your website? That seems like such a convoluted way to draw a few rectangles. Isn't there an easier way?

In the second link, about the Smalltalk VM plugin, you can see is pre-formatted text in markdown.

In the Mapless guide, when I've kept it as text (as the first preferred way to have it done) it became challenging to make it work for all screen sizes and an image was the "good enough" approach for the case.

Re: Monodraw

#173
post #171

Can somebody help me? I've tried Monodraw a few times, but whenever I attempt to use the ASCII on a website (Wordpress, if that's important) the artwork never appears with the correct spacing. The tabs don't show up, or the alignment is off. So I end up having to create a GIF, which defeats the purpose. Any ideas?

Are you putting the monodraw text output into a code block or using a monospaced font?

Re: Monodraw

#174
post #171

Can somebody help me? I've tried Monodraw a few times, but whenever I attempt to use the ASCII on a website (Wordpress, if that's important) the artwork never appears with the correct spacing. The tabs don't show up, or the alignment is off. So I end up having to create a GIF, which defeats the purpose. Any ideas?

Are you putting the monodraw text output into a code block or using a monospaced font?

Which one is the dumb one? Because that's probably the one I'm doing.

Re: Monodraw

#175
post #174

Earlier quoted context omitted.

Are you putting the monodraw text output into a code block or using a monospaced font?

Which one is the dumb one? Because that's probably the one I'm doing.

Either of those options should work for you. Code blocks are almost always rendered with monospace fonts and manually setting a normal block of text to a monospaced font will do what you want as well.

The only other issue I can see is if your diagram is too large it might start wrapping which will break the “image” you are going for.

EDIT: See my sibling comment for examples of how to do this.

Re: Monodraw

#176
post #174

Earlier quoted context omitted.

Are you putting the monodraw text output into a code block or using a monospaced font?

Which one is the dumb one? Because that's probably the one I'm doing.

Here is an example of me using a code block in Wordpress but setting the max width:

https://cs.joshstrange.com/r3pM1Vzs

Here is how it looks rendered on desktop:

https://cs.joshstrange.com/dvX5qKvf

Here is how it looks on mobile (broken):

https://cs.joshstrange.com/pHNdKLxH

It will work if I set a `style="width: 1200px;"` on the `

` tag (edit as html):

https://cs.joshstrange.com/1zTrXZGM

But then Wordpress is going to complain:

https://cs.joshstrange.com/ctGRh46j

You can always convert the block to HTML so it stop bugging you which will look gross in your editors but work when displayed:

https://cs.joshstrange.com/8FPgPBXp

I hope this helps!

Re: Monodraw

#177
post #74
post #29

Earlier quoted context omitted.

I’ve toyed with the idea of open sourcing the product. I reached the conclusion that it’s not the approach for two main reasons: - I believe in a strong, centralised product vision and execution - The code will be packaged up and sold by unscrupulous people who will not contribute back I’m a strong advocate of interoperability and open data formats. The Monodraw data format is not proprietary and I do have plans for…

I understand your concerns about open-sourcing the codebase and won’t try to convince you otherwise. It’s your code. That said, I would like to share my perspective on the subject, having given some thought to if/how I should open source my code. I don’t feel that I have any ground to stand on if I were to choose not to open source my code. That same code would be uploaded to the internet using a web browser or other…

Aye, but you're commenting on a Mac program, which is necessarily developed on a closed, anti-competitive system (and in the context of that ecosystem, accepting it as normal). GP lives in a much darker world than you.

Re: Monodraw

#178

Really wish this was cross platform. Would love to use this in Linux. I appreciate the effort that it takes to deliver a polished application. I just wish more tooling did better to target Linux, Windows and Mac for desktop apps. Probably a larger driver behind web based apps.

I'm kind of surprised that for desktop applications more people don't use Qt. It's so good for these kinds of applications!
Post reply on HN