HNHacker News
TopNewBestAskShowJobs

zulko

265 karma · joined January 25, 2014

submissionscomments
zulko··on Show HN: ReLaXed – High-quality PDFs using web technologies
Inline markdown and external markdown files are both supported. Have a look at the "Book" example. Every chapter is in its own Markdown file. Most of the other examples have parts where I simply switch to markdown.

I am also a big markdown user and I have found that for writing reports all day long markdown clearly wins over Pug, in particular with tools like

https://atom.io/packages/markdown-preview-enhanced

But the day where you need to produce a super-nice report with a bit of custom layout, Pug/SCSS is awesome.

zulko··on Show HN: ReLaXed – High-quality PDFs using web technologies
ReLaXed really focuses on PDFs right now (to keep the initial focus small) but it produces an HTML file as a byproduct. From what I understand there is not far from an HTML file to an Epub.

This being said, the primary goal of this library is to enable to make documents with complex or fancy layouts. Epubs generally have a simple structure (chapter/section/paragraph) and can be written using for instance Markdown:

https://pandoc.org/epub.html

zulko··on Show HN: ReLaXed – High-quality PDFs using web technologies
I am thinking about it and there may be a way to do it using Pug mixins (like LaTeX macros).

Also, ReLaXed supports Markdown-it, which in turn has plug-ins for footnotes and citations, for instance. Not sure what you mean by auto-reference, but that should be possible, like in any other HTML page, wouldn't it ?

zulko··on Show HN: ReLaXed – High-quality PDFs using web technologies
Prince is a 3800$ software. Prince seems to encourage XML/HTML/CSS for writing documents, and I didn't like this. With ReLaXed I am trying to show that Pug/SCSS makes document writing much more natural.

Where Prince wins is in its support for CSS @page extensions (having pages with different margins etc.), it looks much more adapted to professional publishing. There are certainly many more advantages related to typography but I don't know them.

Link to Prince:

https://www.princexml.com

zulko··on Show HN: ReLaXed – High-quality PDFs using web technologies
Mathjax notation is supported:

https://www.mathjax.org/

See some basic use in ReLaXed in the "paper" or "slideshow" examples, or here for a basic documentation:

https://github.com/RelaxedJS/ReLaXed/wiki/Features#equations

zulko··on Show HN: ReLaXed – High-quality PDFs using web technologies
I have gathered some comparisons in this wiki page:

https://github.com/RelaxedJS/ReLaXed/wiki/ReLaXed-vs-other-s...

It is open to contributions, so any thoughts welcome. In a nutshell, all your points are valid. Chrome is one of the best browsers, but still behind LaTeX in some aspects. But which will evolve faster in the future ?

zulko··on Army open-sources cyber defense code in new GitHub project
For a given repo Github gives you the daily number of visits and unique visitors, as well as the number of times the repo was cloned (they don't give you the number of downloads of the zipped sources).
zulko··on Things You Can Do with Python and POV-Ray
I just tested it on Ubuntu, it worked.

My point in the post was more that the embedded Python in Blender isn't really a "binding", it forces you to use Blender's 'internal' Python installation, so you must reinstall all the packages that you need specifically for Blender's Python (I don't know how, but I think there is a way). Also, this makes it impossible to use virtualenv, I guess (not sure).

In short, it would be cool if it just "worked from Python".

zulko··on Python, Pitch Shifting, and the Pianoputer
Strange. Even with headphones ?
zulko··on Viennese Mazes: What They Are, and How to Make One
It doesn't say that, it says "twice in a row". This means you cannot half-turn and just go back the street you came from.
zulko··on Viennese Mazes: What They Are, and How to Make One
You are reading it backwards, you must start in (a).
zulko··on Transcribing Piano Rolls, the Pythonic Way
Yeah, sure.
zulko··on Transcribing Piano Rolls, the Pythonic Way
Thanks, I learned something. I will try it and amend the blog when I have time.
zulko··on Transcribing Piano Rolls, the Pythonic Way
I knew I was going to have this remark :) Now correct me if I am wrong, but I think the FFT (which computes the discrete Fourier transform) cannot replace the continous fourier transform in my case, because the optimal periods I find are non-integer values. In the first case, the holes are separated by 7.5 pixels. The FFT could only have told me that they are separated by 7 or 8 pixels, which is not precise enough. Same thing for the tempo, a beat corresponds to 7.1 frames of the video, and a FFT would have told me 7.

If someone knows a way to use the FFT to get non-integer periods (apart from oversampling the signal) I'll gladly change the code.

zulko··on Making GIFs From Video Files With Python
You can do that with ffmpeg or ImageMagick. Something like

    ffmpeg -i *.png output.gif
You have options like delay, loop, etc.
zulko··on Making GIFs From Video Files With Python
The same scripts will output videos for HTML5 if you replace the `to_gif` method by `to_videofile`:

    clip.to_videofile('animation.mp4')
    clip.to_videofile('animation.webm', codec='libvpx')
    clip.to_videofile('animation.ogv',codec='libtheora')
← PreviousPage 2 of 2