I just released the first version of my new Markdown-to-PDF converter, pfft. It runs on Linux, at least as far back as Ubuntu 18.04.
Why yet another converter when pandoc and many others already do the job? Size. Pandoc uses TeX to generate PDFs. All the other converters I found use a Web browser in one way or another to make the PDF. Pandoc is 50 MB by itself, not counting TeX! In less than 1.2 MB (a 5.25″ floppy 😉 ) and a single file, pfft will do the job.
Of course, there is a catch: pfft uses Pango and Cairo to make the PDFs. Those have their own dependencies, but are installed on many Ubuntu systems by default! So pfft itself does not add to the dependency load those systems already carry.
(By the way, I use and appreciate both TeX and Pandoc. They are great tools! But, like all tools, there are some use cases they are not great at. I wanted a small converter, and now I have one! 🙂 )
Please give pfft a try and let me know how it works for you! And, if you’re planning to do Hacktoberfest this year, know that I am happy to receive pull requests — there’s lots of room for features and polish in pfft. Check out the issues list for some ideas, and feel free to add suggestions of your own. Happy hacking!
Just ran across this very enjoyable article about how GitHub sped up cloning by several orders of magnitude – https://github.blog/2015-09-22-counting-objects/.
If you haven’t seen it, check out the git commit graph. In the Linux kernel tree, the time for me to show the commit graph of the five most recent commits went from five seconds to 20ms! https://devblogs.microsoft.com/devops/supercharging-the-git-commit-graph/. Requires Git 2.18+, which you can install on Ubuntu LTS from a PPA per this. Short version:
git config --global core.commitGraph true
and then, in each repo:
git show-ref -s | git commit-graph write --stdin-commits
Edit I have decided to step back from Stack Exchange for a while — https://meta.stackoverflow.com/questions/390785/letting-go-of-so
The Stack Exchange network is currently embroiled in controversy regarding:
- relicensing existing questions and answers to CC-BY-SA 4.0, and
- upcoming (not yet public!) changes to the code of conduct apparently relating to trans inclusivity, together with removal of moderator status from an apparently well-respected moderator.
Links for both are below, in case you haven’t seen them yet. I find both situations concerning.
I am also worried by the apparent removal by Stack Exchange of pertinent information from the Internet Archive! See this comment and replies. If you do investigate these matters, please save copies of the pages you visit to your local machine. I have done so, and have some PDFs if you need copies.
If you are able, please encourage Stack Exchange to release documents related to both of these situations. Thank you!
It’s the reference implementation of the Raku programming language. https://rakudo.org/
The installer ran very quickly and the REPL worked out of the box. Nothing else to report yet, but I’m sure I’ll have more to say in the future.
Updated 1: Rakudo won’t build from source on Cygwin because libuv is still a bit dicey there. However, cascent/neovim-cygwin looks like a promising step forward.
In January 2017, Mozilla released its new logo:
One review of the logo opined that:
Unless a viewer has a complete lack of imagination or willingness to adapt, readability of the new logo is not an issue, “moz://a” reads just fine as “mozilla”.
Well, call me dull. Almost two years later, I just can’t stop my brain from tokenizing that as URL scheme “moz”, host “a”.
It’s not easy being a geek. 😀
The Mozilla logo is a trademark of the Mozilla Foundation in the U.S. and other countries.
Should I be worried? The three most-disliked programming languages in Stack Overflow’s latest blog post are Perl, Delphi, and VBA. And those three languages all have a special place in my heart. Oops…
Perl I have been enjoying recently and VBA is most of my day-to-day coding (since what they actually pay me for is driving MS Office). Delphi remains the only piece of software I have ever bought based on one marketing presentation. After QBASIC, I moved up to Turbo Pascal 6. When Delphi came out, I only had to see it on screen to be hooked.
Delphi is also what taught me that the magic in a toolchain is really the linker. As I was learning C, I was able to write Windows programs using my DOS version of Turbo C++, linked with the Delphi linker.
Excerpts from Stack Overflow’s analysis follow.
Edit: For the “welcome to Stack Overflow” bookmarklet, go to this jsFiddle, hit Run, and then drag the resulting link to your bookmarks bar.
A custom tea timer for https://smithtea.com/pages/know-your-tea#brewing-instructions:
A message I have found myself typing frequently on Stack Overflow: 🙂
As compressed by https://jscompress.com/; non-minified is:
var qsel = document.querySelector.bind(document);
var edit_link = qsel('.edit-post');
var add_comment = qsel('.js-add-link.comments-link');
var textbox = qsel('textarea[name="comment"]');
"Welcome to the site! Check out the [tour](https://stackoverflow.com/tour) "+
"and the [how-to-ask page](https://stackoverflow.com/help/how-to-ask) for "+
"more about asking questions that will attract quality answers. You can "+
"[edit your question](" + edit_link.href + ") to include more information."
textbox.scrollTop = textbox.scrollHeight;
These are the first two I have written. I hope they are useful to you, or serve as helpful examples if you are writing your own bookmarklets!
Technology makes our lives better to the extent we don’t have to think about it. Robert Pirsig makes this point in Zen and the Art of Motorcycle Maintenance, and it’s still true: technology that draws attention to itself has failed (except to a very hard-core audience of which I am probably part 😉 ).
For the last two years, I have been using Google Chrome to view PDFs at work. Dozens a day, usually with at least five open at a time. For the last two years, every time I have rotated the view clockwise or counterclockwise, my page has shifted off-screen and I have had to scroll to get back to it. Has that stopped me from doing my job? No. Has it drawn undue attention to the underlying technology? Yes. Very yes.
I cannot express my delight at finding, after a recent Chrome update, that I wasn’t the only one with this problem — and that it has been fixed! I rotated my PDF and reached for the scrollbar, but then I noticed the underlying technology in a good way: I was still looking at the same page I had been. Now each day is a bit smoother, and my job is a bit easier, because the fix has reduced, rather than increased, my mental workload.
My sincere thanks to everyone involved in pdfium bug 116297. Special thanks to thestig at chromium.org for making the fix! If you read this, thestig, please know you have succeeded.
Note to programmers: sometimes small fixes are big wins. It took thestig two lines of code to save me several minutes of wasted effort per work day, every work day, possibly for the rest of my career. Fix the small things — your users will thank you!
Celebrate with me — I just earned my first tag badge on Stack Overflow! It’s for the C language, so that means I’m some kind of C expert, right? … 😉
Edit: And WordPress tells me this is my 50th post on this blog, so it’s a good day for milestones!
Every piece of technology is built to work provided its assumptions hold. Every piece of electronics, for example, assumes it will have power. No power => no function (as famously noted by The IT Crowd). By breaking those assumptions, you can do some amazing things:
In this video (~36 min), scanlime finds exactly the right microsecond to drop the power supply — just enough! — to cause the processor built into a graphics tablet to dump its entire memory over a USB connection. This is not a function the tablet was supposed to provide!
By painstakingly, scientifically defeating the assumption of a stable power supply, the tablet’s firmware control program, intended to be kept within the tablet, becomes available to inspect. And, as scanlime points out at the end of the video, that control program may well open other doors. Analyzing the control program may reveal other assumptions the tablet makes — assumptions that can be broken to change the tablet’s function to what she wants it to be.
Every system is only functional, secure, reliable, or any good at all, as long as its assumptions hold. Whenever you think about the latest gizmo, don’t just ask what it will do for you. Ask what it won’t do for you when you least expect it — when the gizmo assumes wrong.