Skip to main content

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - ersi

1
Browsers & Technology / Re: Minimal Apps
More markdown fun: mdp does slideshows based on text written in markdown.

Install mdp, download the sample.md file and run it in mdp. The file is a tutorial. Not as instructive as vimtutorial but almost. And great to look at, even though I would like it to inherit my .Xresources colours out of the box.

Update:
patat is a markdown slideshower with great promises, allegedly employing pandoc. The input format is even slightly simpler - instead of requiring explicit rulers to divide the slides as in mdp, every new header starts a new slide. However, other styling requires some haskell hacking with its ridiculously strict indentation demands, so that it is not plain and simple markup anymore.

Moreover, patat absolutely fails at the number one basic premise of presentation slides: fit to centre. There is a bug report about it but it has not been touched for years. It seems that there is total indecision about centering in pandoc markdown language, but this should not prevent the maker of a presentation slide programme to do what a presentation slide programme should do.

And I found a serious bug in mdp too. As its colours are hardcoded with lack of forethought, its invert mode mdp -i sample.md produces crap on a dark terminal emulator. Luckily this is circumvented by mdp -ti sample.md. Make it mdp -fti sample.md (-f to remove the transition effect) and it becomes a more usable markdown slideshower that patat will never catch despite its initial great promises.

Update 2: Oops, mdp doesn't do markdown tables. What now?? Well, that's why the keynote speakers in hacker conferences use Emacs Org or some contraption script of their own making instead of terminal slideshow apps. These apps are just not quite there. I guess I must do more Emacs too.
2
Browsers & Technology / Re: Minimal Apps
Well, a colour scheme is how the editor looks. Syntax highlight is how the opened text looks, i.e. the specific language in the file should be recognised and colorised. The two (colour scheme and syntax highlight) should not really be related, even though they may mess with each other. Colour schemes are not available in nano, except by giving the whole terminal emulator an overhaul.

By the way, I am already getting fed up with micro. I am so much more used to with the cursor movements in nano and also to the way selection and pasting works in pure terminal emulator. Nice little program, but vim is more rewarding and nano does all I need anyway.

Edit: And I did not give enough credit to mouse support in nano: Mouse was useful to set mark (i.e. start selection). Now nano has an updated man page and the mouse support has been extended even further. Anyway, I don't use it.

These days the man page starts as follows:
Quote from: man nano
Starting  with version 4.0, nano no longer hard-wraps an overlong line by default, and no longer automatically adds a newline at the end of the text if one is missing.  Furthermore, it uses smooth scrolling by default and makes use of the line below the title bar.
These are all big changes over the past few years.
3
Browsers & Technology / Re: Minimal Apps
For example right now, typing a bit longer lines, I see that micro does not autowrap lines and I have no idea how to make it do it. I did Ctrl+e help wrap and got "Sorry, no help for wrap"
Ha, found it. Out of the box it creates a config file at ~/.config/micro/settings.json and there's the line "softwrap": false,. So it does the config part conveniently too: Autocreate a human-readable config file at some sensible place and let people hack it.
4
Browsers & Technology / Re: Minimal Apps
Yes, text editors are interesting. I have configured micro to be the text editor in my terminal browsers and I am trying it out right now.

For me it was instantly reminiscent of nano but this is a false impression. For example right now, typing a bit longer lines, I see that micro does not autowrap lines and I have no idea how to make it do it. I did Ctrl+e help wrap and got "Sorry, no help for wrap"

It features prominently some superfluous niceties like colour schemes and astonishingly convenient mousing support on terminal, evidently achieved with xclip and xsel. It also autocompletes parentheses and brackets and provides syntax highlighting, but at the same time there appears to be no thought given to spellcheck.

Whereas nano misses colour schemes (which is a good thing, because you mostly want your terminal apps look all the same) but there is some rudimentary way to plug in some spellcheck. And its quirky keybinds are not too much of a problem, because out of the box you get the helpful line with some commands that can be used in the given context. Then again, nano's so-called mouse support simply disables pointer access to the terminal emulator and its only function is to scroll big files. I mostly keep the so-called mouse support off to be able to select the way the terminal emulator lets me.
5
Browsers & Technology / Re: Minimal Apps
The latest Manjaro iteration of bspwm promotes the 'micro' editor which basically works like 'nano' but with keybinds more inherited from MS Notepad https://micro-editor.github.io/

Edit: On Manjaro the package is micro-manjaro and it comes with (gasp!) dependencies, i.e. it is not really minimal. The dependencies are st (the suckless terminal emulator) and xclip. /edit

There is also 'mg', a tiny version of emacs http://man.openbsd.org/OpenBSD-current/man1/mg.1
6
A nice article of general value on Vivaldi blog, about paywalled (and unpublished or incompetently published given the digital age) science
The biggest offender I've come across for failing to archive are conferences though. The ones I follow (typically Computer Science ones) make their PDFs available online, but there's no guarantee they'll stay there once next year's web site goes up.
Amazingly, this is so true. Conference organisers seem to be mostly party people, people celebrating the moment of gettogether, never minding about having concrete references back to the event, presentable to third persons.
7
Two Linux-related letdowns today.

First. There is a regression in systemd that prevents me from getting to the internet. I can connect to both wifi and LAN without error messages. I can ping to numeric addresses, but not to alphabetic addresses. And I cannot ping to the (numeric) DNS addresses in resolv.conf. The way systemd works, there is no way to manually do things with resolv.conf. According to the following thread, there ued to be things to be done, but this thread does not apply anymore, just one year later, thanks to systemd takeover of the dns resolve function https://forum.manjaro.org/t/setting-a-dns-or-nameserver/46186/9

Edit: I got this issue resolved today. It turns out somehow my resolv.conf had turned immutable. I guess it happened half a year back (that's the date on the file when it was last touched) when I lifted the harddrive from one laptop to another and it Just Worked®
Still a systemd problem, I guess. It did something when I lifted the harddrive /edit

For a while I used openrc, when a dude at Manjaro forums promoted it and created easy packages for it. It's a nice understandable init system that did its work well. When it does its work and is understandable too, it provides a sense of security that if something goes wrong, it can be fixed. Not so with systemd. Unfortunately Manjaro decisively sided with systemd - as did Arch - and the openrc promoter withdrew to create his own distro, Artix.

Second. With great excitement I thought I'd familiarise myself with the self-documentation feature in Emacs. It turns out self-documentation does not mean auto-magically generating documentation as you go on coding features of a programme. It only means help pages for Emacs https://www.emacswiki.org/emacs/SelfDocumentation
8
The Lounge / Re: What Time Is It?
At best it means they will decide whether you can decide. You cannot decide unless they have decided. And after they've decided you'll see they actually decided for you and there's nothing more left to decide.

In case of Estonia, this power of decision in the matter of turning the clock was taken away long before we joined the EU. So we know very well how this works in the EU.
9
The Lounge / Re: What Time Is It?
The Dutch government said they'll decide about this DST business by 2021 at the earliest. :faint: The Benelux apparently said they all want to do the same thing, which'll probably mean "normal" time (i.e., "wintertime").
It's not up to your government. The EU will decide whether everybody must drop the compulsory clock-turning and make it voluntary - or they will not decide anything, in which case everybody must go on with it as decided earlier. In either case, our tiny little member state governments shall toe the line.
The European Parliament on Tuesday backed a proposal to stop the obligatory one-hour clock change between summer and winter time, leaving it up to member states to decide on their time zone and adjust their clocks for the last time in October 2021, 20 years after daylight-saving time was made compulsory in the EU. The text, approved by 410 against 192, needs final approval by EU ministers.
10
DnD Central / Yet another guy with a drone
A Russian dude made a decent docu-vlog about Japan https://www.youtube.com/watch?v=Gb0TQ7VeApY
Nice cinematography and mostly coherent commentary. A few places I did not know about.

The drone part begins at 27 minutes. Have I mentioned earlier that I hate cities? I particularly hate dense cities.
11
DnD Central / Re: Today's Bad News
Notre-Dame de Paris may be tons more valuable in many ways, but for me it was hard to appreciate as a tourist, because other tourists were in the way. Too many people in too small space. Whereas St-Eustache was basically empty while also being much bigger and taller, so I could take my time to appreciate every corner. And there are lots of corners to appreciate. It is of somewhat irregular plan, different parts from different ages.

Similarly from a tourist's convenience point of view, Eiffel tower is not worth it. Too overcrowded and you do not get very high. Take Tour Montparnasse instead:
- you'll get higher
- faster
- cheaper
- bonus: excellent photographic/selfie-worthy view towards the Eiffel tower.
12
DnD Central / Re: Today's Bad News
In New York, which I visited before Paris, I saw churches that I suspected were small copies of Paris' Notre-Dame. Then in Paris I was surprised to see how tiny Notre-Dame is. St-Eustache is far more impressive in my opinion. But of course I don't want any of them to burn.
13
:q and :wq are the most important I'd say
The annoying thing is that :q simply throws up an error if you have (unintentionally) edited something but not saved it. Therefore :q! is more important.

I also have it difficult to remember the different modes. When the syntax highlighting is the same in different modes, it gets impossible to be aware of the modes. This is why I actually use vim just as a fun practice, not as a tool for serious writing and editing.

The purpose of the fun practice is to learn less better. That's the tool for viewing text files, searching in them, opening and navigating multiple buffers. I do not have syntax highlighting in less so I distinctly remember that I am in less, just viewing. But when I enter edit mode (by pressing v in less, which takes me to nano - must set the editor environment variable for this, otherwise it takes you to vi), the syntax highlighting turns on in nano and I can clearly see that now I am editing.

Not sure if there can be any educational purpose to Emacs. Well, browsing the web with it will be fun for a while.
14
Somehow I managed to upgrade my text editor usage somewhat so that I can now do stuff in vim almost as well as in nano.[1] The best tutorial is vimtutor.

Next I am ready to try Emacs evil mode (i.e. vim keybindset in Emacs). Wait, Emacs can browse the web? And by such an obvious keybind as 'Alt+x eww'? This find is long overdue! Yet another webbrowser to play with...
Still writing this in nano though.
15
DnD Central / Re: Today's Bad News
Notre-Dame de Paris on fire :(

16
The UK is scheduled to leave the EU at 11pm local time on March 29 2019.
Oh no, this is not going according to schedule :(
17
DnD Central / Re: "Scientists Say" blather
Scientists say this is a photo of a black hole.



The image reveals the black hole at the centre of Messier 87 [1], a massive galaxy in the nearby Virgo galaxy cluster. This black hole resides 55 million light-years from Earth and has a mass 6.5 billion times that of the Sun [2].
18
Now you can set the tabs-selection view in Samsung browser to list mode. Like this.


In comparison, MS Edge on Android uses the tiles view, reminiscent of Win 8, which is a bit comfier actually on touchscreen.


Everywhere else, Android uses (and Android apps use) the coverflow style to flip tabs or open apps or such. I am not too strongly against it, but it would be great to be able to configure it away to list or tiles.
19
This is my bedside setup now. It's been like this for a few years, but earlier with the Scroll Ring Trackball. For me it is very important to have the trackball somewhere on the same general line with the keyboard, in front of it or above it or below it, instead of to the left or right from it. Your Rotation Angle tip made it work well. Thanks!
20
Is there a way to have a drop window without a video already playing?
April the first, I guess.

(Surely you know that you can drop the url's/filenames into a file and then point mpv to the file.)
21
And of course I need to make it left-handed too in that case.

Ha, so it is possible to use it the other way around. The Expert Mouse just became twice better! (Twice better than earlier, still not as good as the Trackball with Scroll Ring.)
22
Is this Elecom Huge? https://www.youtube.com/watch?v=EeoEphQah_w For me, one of the main points of getting a trackball was to find something ambidextrous, or for both hands simultaneously.

Trackball Scroll Ring's scroll ring is near-free, pretty smooth, a definite winner compared to the Expert Mouse's scroll ring. I find my hand position on the Expert Mouse much more comfortable when the device is the other way around, the high end towards me, but unfortunately it cannot be used this way. That's another missed opportunity in this device.

And yes, I agree that the DPI should be configurable. The DPI of common mouses usually is, so there is no reason why trackballs should be locked. Edit: the DPI should be configurable in addition to the trackball orientation. The trackball orientation should be configurable so that the user could place the device to any angle and still have the trackball gestures be harmonised with the screen.
23
I have been steadily amazed by mpv (+ youtube-dl) ever since I discovered it. This weekend I found that when you drag a youtube link and Shift-drop it to the mpv window, it enqueues instead of starting to play instantly. So by Shift-drop you can create a youtube playlist in mpv. Now I am completely won over (well, I have been won over for a while already).
24
The Lounge / Re: What Time Is It?
It was another terrible clock-turning weekend. I thought of changing the tires of my bicycle today, to put on the summer tires, but it began snowing again, so I'd better keep the studded tires another week.
25
Today I managed to update the snapshot.