HNHacker News
TopNewBestAskShowJobs

hexomancer

2,360 karma · joined July 25, 2016

a.hr.mostafavi@gmail.com
submissionscomments
hexomancer··on Ask HN: Is GitHub Down?
It was down for me but it is fixed now.
hexomancer··on A Chrome extension for bionic reading on any website
I forgot to mention that you need to also add this line to your `prefs_user.config`:

use_heuristic_if_text_summary_not_available 1

hexomancer··on A Chrome extension for bionic reading on any website
I am not very familiar with chrome's PDF API (or lack thereof) but I doubt that it is possible.
hexomancer··on A Chrome extension for bionic reading on any website
If you want to try it out on a PDF, I have implemented this in sioyek PDF reader:

https://github.com/ahrm/sioyek

You need to enable experimental features in `prefs_user.config` by adding `enable_experimental_features 1` and then enable this mode using `toggle_fastread` command within sioyek.

I also experimented with more sophisticated algorithms, you can read about the experiment here:

https://ahrm.github.io/jekyll/update/2022/04/14/using-langug...

hexomancer··on Bionic Reading – Convert Text into Better Way to Read Faster
If you want to try it out on a PDF, I have implemented this in sioyek PDF reader:

https://github.com/ahrm/sioyek

You need to enable experimental features in `prefs_user.config` by adding `enable_experimental_features 1` and then enable this mode using `toggle_fastread` command within sioyek.

I also experimented with more sophisticated algorithms, you can read about the experiment here:

https://ahrm.github.io/jekyll/update/2022/04/14/using-langug...

hexomancer··on Python 3.11 beta vs. 3.10 benchmark
I never said that python is a bad language. In fact it is my favorite language and I probably have written more python code than any other language.

That has nothing to do with it being slow though. And as I said, all those machine learning code rely on numpy (which relies on LAPACK which is not written in python) or highly optimized cuda kernels (which again is not written in python).

hexomancer··on Python 3.11 beta vs. 3.10 benchmark
Python is so slow that I ironically don't care about performance improvement that much, because if you are writing any performance-sensitive part of your software in python you are screwed anyway, 50% faster code isn't going to help that much.
hexomancer··on Sioyek 1.3 released – PDF viewer for research papers and textbooks
Video Demo: https://www.youtube.com/watch?v=yTmCI0Xp5vI

Features:

* Quickly preview or jump to figures/references/equations/etc. (even if the PDF doesn't have links)

* Search paper names in google scholar by middle clicking on their name (you can configure other search engines as well)

* Ruler mode for easier reading and less eye strain (for a demo of this feature, see https://user-images.githubusercontent.com/6392321/168427739-...)

* Searchable table of contents, automatically generate table of contents if not available

* Searchable highlights/bookmarks

* Browser-like history navigation

* Mark locations for quick navigation (Vim style)

* Synctex support

New in 1.3:

* Vastly improved ruler mode with support for multicolumn documents and ability to automatically goto/portal to/overview the definition in highlighted line.

* Automatic table of contents generation for documents that don't have table of contents

* Automatically mark the location of last search with symbol '/' and location of last visual mark with symbol '`'

* Better handling of visual ruler in presentation mode

* Add ability to automatically use downloaded files as portal destinations (see https://sioyek-documentation.readthedocs.io/en/latest/config...)

* Add ability to select text using keyboard (see https://github.com/ahrm/sioyek/issues/147#issuecomment-10890...)

* Add ability to open files using drag and drop

* Save and restore window and overview positions

* Add ability to execute shell commands on selected text in PDF file (for example can be used to make a translator)

* Add ability to bind multiple commands to the same key binding (all are executed in order when key is pressed)

* Improved smart jump to support more document formats

* Handle `xclip` text selection

* Add ability to rotate pages

* Numerous bug-fixes and quality of life improvements

hexomancer··on Okular – Universal document viewer
You are right. These issues have beenn fixed in recent commits but the release builds are from an older commit.
hexomancer··on Okular – Universal document viewer
Shameless plug: If you use okular to tead research paper and textbooks you may be interested in sioyek which is an open source PDF viewer specifically designed for that.

https://github.com/ahrm/sioyek

hexomancer··on Append Reddit – Chrome extension that redoes searches with Reddit appended
Or you could just add this to your chrome search engines and set the shortcut to r. Now you don't even have to press control.

https://www.google.com/search?q=site%3Areddit.com+%s

hexomancer··on Should I Use a Carousel?
The only thing more annoying than carousels are websites that hijack mouse wheel to do their own (always) poorly implemented scrolling.
hexomancer··on My Mathematics PhD research workflow: LaTeX notes and instant pdf referencing
You may also want to check out sioyek which is an open source PDF viewer specifically designed for reading research papers and textbooks.

https://github.com/ahrm/sioyek

Disclaimer: I am the developer of sioyek

hexomancer··on Ask HN: Who wants to collaborate? (April 2022)
Sorry I have no idea about that. But a quick and dirty fix for your problem could be to split your pdf file into multiple files each with less than 200 pages.
hexomancer··on Ask HN: Who wants to collaborate? (April 2022)
I'm working on sioyek, an open source PDF viewer desgined for reading research papers and textbooks. Any contribution is welcome, but I'm mainly looking for maintainers for linux packages.

https://github.com/ahrm/sioyek

hexomancer··on Dual 75“ 4K TV Floor Computing
Check out dwm. It has a different concept from workspaces called 'tags' which is close to what you are describing.
hexomancer··on Raygui – A simple and easy-to-use immediate-mode GUI library
All these pixels have to be pushed every frame even with classic GUI. The only difference is that it is usually done by the operating system.
hexomancer··on Raygui – A simple and easy-to-use immediate-mode GUI library
Does it support RTL languages?

My main problem with DearImgui is lack of RTL language support. I think one of the biggest factors which deter people from using immediate mode GUI is lack of support for many languages.

hexomancer··on Show HN: Bionic Reading – Formats text to make it faster to read
I have made a chrome extension that does that: https://github.com/ahrm/chrome-fastread

You can customize the css attributes of highlighted text and rest of the word using the two input texts.

hexomancer··on Show HN: Bionic Reading – Formats text to make it faster to read
you need to manually run bionifyPage() after executing the script.
hexomancer··on Show HN: Bionic Reading – Formats text to make it faster to read
Alright, I modified it to be like the original comment.
hexomancer··on Show HN: Bionic Reading – Formats text to make it faster to read
I made a version which works in all web pages, it is still very hacky though:

    function bionifyPage(){
        function bionifyWord(word) {
            if (word.length == 1) {
                return word;
            }
            var numBold = Math.ceil(word.length * 0.3);

            // return "<div class=\"bionic-highlight\">" + word.slice(0, numBold) + "</div>" +  + "<div class=\"bionic-rest\">" + word.slice(numBold) + "</div>";
            return "<b>" + word.slice(0, numBold) + "</b>" + "<span>" + word.slice(numBold) + "</span>";
        }

        function bionifyText(text) {
            var res = "";
            if (text.length < 10) {
                return text;
            }
            for (var word of text.split(" ")) {
                res += bionifyWord(word) + " ";
            }
            return res;
        }

        function bionifyNode(node) {
            if (node.tagName == 'SCRIPT') return;
            if ((node.childNodes == undefined) || (node.childNodes.length == 0)) {
                if ((node.textContent != undefined) && (node.tagName == undefined)) {
                    var newNode = document.createElement('span');
                    var bionifiedText = bionifyText(node.textContent)
                    newNode.innerHTML = bionifiedText;
                    if (node.textContent.length > 20){
                        node.replaceWith(newNode);
                    }
                }
            }
            else {
                for (var child of node.childNodes) {
                    bionifyNode(child);
                }
            }
        }
        bionifyNode(document.body);
    }
hexomancer··on Cool-retro-term: A terminal emulator which mimics the old cathode display
Totally worth the headache. Is it possible to use this with guake?
hexomancer··on Show HN: Sioyek – PDF viewer for reading research papers and textbooks
You may need to install q3d-dev and qtdeclarative5 (the exact package names might be different for your distribution). Also see this: https://github.com/ahrm/sioyek/issues/97#issuecomment-962556...
hexomancer··on Show HN: Sioyek – PDF viewer for reading research papers and textbooks
No, however, we have a command which exports a version of PDF file with embedded notes and highlights.
hexomancer··on Show HN: Sioyek – PDF viewer for reading research papers and textbooks
It depends on your laptop. For my laptop it's both buttons at the same time.
hexomancer··on Show HN: Sioyek – PDF viewer for reading research papers and textbooks
We added slide-show mode a while back: https://github.com/ahrm/sioyek/issues/52
hexomancer··on Show HN: Sioyek – PDF viewer for reading research papers and textbooks
Yes, there is a "smart fit page" shortcut which automatically fits to screen width as you scroll.
hexomancer··on Show HN: Sioyek – PDF viewer for reading research papers and textbooks
I used to use sumatra myself, in fact before I started developing sioyek, I tried to add some of the features to sumatra here: https://github.com/sumatrapdfreader/sumatrapdf/pull/869 .

Anyway, I don't think sumatra has these features:

* Marks

* Preview links

* Jump to figures if the PDF doesn't have links

* Portals

* Searchable highlights

And some other features which are shown in the video and github page. Also sioyek is available on linux and macos.

hexomancer··on Show HN: Sioyek – PDF viewer for reading research papers and textbooks
Thanks for your feedback.

1. I meant mouse middle click, I think this is pretty standard terminology.

3. You are right, the video could be a lot better. You are not really supposed to read the texts though, the main purpose is to showcase the features.

← PreviousPage 6 of 8Next →