Skip to content. | Skip to navigation

Personal tools
Log in
Sections
You are here: Home

jorgenmodin.net - Blog

On the French yellow vest movement & similar movements

Posted by admin |

This interesting article goes into some causes, but admits to not understand the movement.

https://www.the-american-interest.com/2019/01/21/the-problem-with-no-name/

I think there's a reason for yellow vests & such: Disorientation. Unclear road ahead, imaginations run on fumes. Society hasn't integrated the power of the Internet; it helped wipe out the old French parties. Monetary policy adds to our present confusion. Old extreme left/right baggage floats up.

The road ahead must bring clarity to a computerized & networked world. Now its effect is centrifugal & ppl trip on fear or hubris. I hope blockchains can help, bring clarity to what money is, & coordinate people to act politically. For the latter digital identities is important.

Jan 22, 2019 11:55

Link to comparison of lots of programming fonts — and my two favorites

Posted by admin |

http://app.programmingfonts.org

 

My two favorites:

Bitstream Vera Sans Mono and Hack.

Jan 22, 2019 12:55

Getting OpenVPN to work when ipv6 support is missing

Posted by admin |

You may get error messages such as:

"GDG6: NLMSG_ERROR: error Operation not supported"

"GDG6: remote_host_ipv6=n/a"

 

If it cannot get ipv6 connection, add these to your config file:

 

pull-filter ignore "route-ipv6"
pull-filter ignore "ifconfig-ipv6"
Jan 07, 2019 02:39

Hints to software to build your own Google Home

Posted by admin |

Some guys are trying, however they are held back by production and fitting problems of PCB and LCD. Would've been easier if they had just used standard hardware I guess. But it's harder to charge for that.

https://www.kickstarter.com/projects/aiforeveryone/mycroft-mark-ii-the-open-voice-assistant

They do on the page mention a number of text to speech and command softwares, those could be worth to take a look at.

 

  • Pocket-sphinx
  • precise
  • Mozilla DeepSpeech
  • Adapt
  • Padatious
  • Mimic
  • CMU flite

 

So there's probably where you hould start looking!

 

Dec 17, 2018 03:05

If you lose all sound cards on Ubuntu, OSS configs may be the problem

Posted by admin |
sudo apt remove --purge oss4-base

…may get your sound cards back on Ubuntu 18.04 and 18.10, if you've been dabbling with OSS.

So I tried to get my laptop's microphone to work, which seems to be a problem that needs to be fixed upstream, but I decided to give it a go. As part of this I installed some OSS modules and an interface to pulseaudio. Somehow "oss4" was involved. Anyway that did not work. I uninstalled it, and I tried a lot of other things to get my sound input to work.

And I had no soundcards anymore. The hardware was there but no kernel modules loaded. I spent hours on this until I found in the Debian wiki that old OSS drivers or configs may be lying around and preventing things to load. And looking into /etc/modprobe.d there were a number conf files for OSS, that OSS had left there after having been uninstalled. They still took dibs on hardware, which means it's not really just a config file; it's code interpreted by another sub system.

sudo apt remove --purge oss4-base

…took care of that. I did not find that in any Ubuntu documentation.

If you don't unload all OSS modules then ALSA modules will not be able to initialise (or work properly) because the OSS driver will be futzing with the sound hardware that the ALSA driver needs to control. If you see a message about "sound card not detected" and you are sure you have the right ALSA driver, the presence of an OSS module could be the reason.

ALSA - Debian Wiki

Dec 07, 2018 01:20

In the browser, stopPropagation() and stopImmediatePropagation() are not the same

Posted by admin |

In fact stopImmediatePropagation stops more stuff, also any event handlers on the element you're calling it for, not just parent elements.

In the MDN documentation for preventDefault(), you can read this:

The event continues to propagate as usual, unless one of its event listeners calls stopPropagation() or stopImmediatePropagation(), either of which terminates propagation at once.

This can give you the impression that they are equal, which they are not. I just got out of a sticky bind by using stopImmediatePropagation() instead of stopPropagation(). Still  not sure as to why, but suspect it may have to do with promise chains, that were called on the line after the preventDefault() handler.

Dec 06, 2018 12:45

How to export a PDF or Google slide presentation to one image per slide

Posted by admin |

I tried this and it worked (Linux).

Make sure gs (ghostscript) is installed, export from Google slides to PDF, and then do:

gs -sDEVICE=pngalpha -r1200 -o file-%03d.png in.pdf

Source: png - How to download Google Slides as images? - Stack Overflow

This is tested and verified by me. "-r1200" will force super high resolution, you can try without it for 100x or so faster rendering.

There also seems to be a way to script image export directly from inside Google Slides, se discussion at the above link.

 

Nov 13, 2018 06:10

Getting ntpd to work on a toy OpenBSD 6.3

Posted by admin |

You need to set an interface for it to listen in /etc/ntpd.conf and you need to comment out the constraint on Google, because afaict OpenBSD does not trust one of the certs there. For more serious use you should tackle the root cause of the cert problem instead of course.

openbsd dev - bugs - ntpd with default config broken in -current

subject:"ntpd with default config broken in \-current"

Oct 10, 2018 01:10

Distribution independent application deployment systems for Linux

Posted by admin |

There is:

  • AppImage,
  • Snap and
  • Flatpak.

AppImage seems to be a bit on the wane but seems to have a nice one-file put-anywhere file format. It can also run without any special components on the system. Snap is Ubuntu dominated and has sandboxing features built in. Flatpak (RedHat et al) also has sandboxing features, which features are also available separately as BubbleWrap.

Here some thoughts: Official Firefox is available in Snap from Snap's main repository. For flatpak there is a third party source, however a very reputable one. I like Snap's solution of having an official repo in between the developers and the machine, so that hopefully the application gets one more code review. Plus it's an official Firefox build in this case too.

Firefox is now available as a Snap package - OMG! Ubuntu!

Unofficial Firefox flatpak repository

An interesting thing is if AppImage could work on OpenBSD but no one seems to have tested it, or maybe it simply does not work AppImage for BSD · Issue #98 · AppImage/AppImageKit

I actually tried it now on OpenBSD with the appimage standard subsurface example app for Linux, and you get "Exec format error" with both the 32 and 64 bit version. You need to install bash to get that far and I also installed fuse but I think it croaked before that.

Ah: OpenBSD 6.0 tightens security by losing Linux compatibility | InfoWorld

Apparently there are big differences between OpenBSD and Linux:

  • Operating system syscall numbers
  • Method for calling syscalls.
  • OpenBSD passes all parameters on the stack while Linux does not

Linux chroot under OpenBSD /bin/bash: Exec format error
 

 

 

 

 

Oct 09, 2018 10:25