View on GitHub

Quorten Blog 1

First blog for all Quorten's blog-like writings

What’s the difference between smbfs and cifs when mounting Samba shares? They are not just different names for the same thing. smbfs supports Windows 98 shares, cifs only supports Windows NT and newer shares. That is the difference, and nowadays smbfs is deprecated, obsolete, and support was completely removed from Samba. So if you’re looking to access Windows 98 shares, you better run an older GNU/Linux in a virtual machine, a 2010 version should actually be old enough to be compatible.

20200101/DuckDuckGo cifs host is down windows 98 share
20200101/https://unix.stackexchange.com/questions/338563/mounting-old-windows-98-share

Finally, there is another caveat I discovered relating to software versions. gvfs-smb doesn’t support Windows 7 shares? Why not? Because it uses a special new feature only available on Windows 10 to avoid writing files to the host: hidden “junctures” are transparently placed in the file hierarchy when mounting. So they say… and they’re not making changes to be able to support Windows 7 shares. So that means you must use Windows 10 if you want the user-friendliness of GVFS mounting like you’d get from PCManFM and the like. Otherwise, if you really want to access Windows 7 shares, you can do so from the command… though one error will be printed, the mounting will still be successful regardless.

20200101/DuckDuckGo gvfs-mount windows 7 says password required but public
20200101/https://github.com/Microsoft/VFSForGit/issues/6

So, I’ve found the explanation to the Raspberry Pi 4 video tearing problem. The new VideoCore VI is fundamentally architecturally different than VideoCore IV, so the work on the old drivers cannot be brought forward to the new drivers and some things simply need to be redone. That being said, the VC6 drivers are still under development and incomplete in comparison, so we are going to have to suffer until this fix is pushed into a newer version of these drivers.

20200101/DuckDuckGo raspberry pi screen tearing
20200101/https://www.reddit.com/r/raspberry_pi/comments/e9k0u3/screen_tearing_solutions_for_the_4b/
20200101/https://www.raspberrypi.org/blog/vc4-and-v3d-opengl-drivers-for-raspberry-pi-an-update/

But, the good news, it looks like a fix is coming soon. Purportedly, the upstream Mesa driveof time until the fix makes its way into the official drivers in the Raspbian repository.

20200101/DuckDuckGo raspberry pi 4 tearing
20200101/https://www.raspberrypi.org/forums/viewtopic.php?p=1541490
20200101/https://www.reddit.com/r/RetroPie/comments/edi44v/raspberry_4_i_managed_to_remove_the_screen/

To try out the latest drivers yourself:

Read on →

Wow, this is finally a thing? Yes it is, in Android and iOS, you can read a Wi-Fi pasword via a QR code. This allows you to use much longer and randomly generaed Wi-Fi passwords with ease. Unfortunately, there’s still not a way to do this with laptops… but presumably it’s not as necessary there since you can plugin to the wired network easier, correct?

Here’s how to both generate the QR code and to read it.

20191231/https://feeding.cloud.geek.nz/posts/encoding-wifi-access-point-passwords-qr-code/

Suppose you create a graphics design on a Debian or Ubuntu based operating system and point the fonts used to generic names like sans-serif. How do you know which corresponding system font was used? Easy, run this command:

fc-match -s sans-serif

And pick the first “branded” font name from the list. It should match the metrics of the font you used in your graphic design. Better yet, prefer to point your graphics design sources only to branded fonts so that it is easier to reproduce the original from the sources in the future. And, of course, always use only libre fonts or fonts of your own design.

20191230/DuckDuckGo ubuntu find which font is used for sans-serif
20191230/https://askubuntu.com/questions/61112/whats-the-default-serif-font-in-firefox

This is a great article about the mistakes made, lessons learned, and the proper technique for removing surface-mount capacitors from vintage Macintosh logic boards. The old technique of using a soldering iron should not be used, as this tends to put stress on the pads and is in fact the worst technique. Rather, cold removal should be done, by pushing with downforce on the capacitor and gently twisting it left and right by not too much a distance, and the capacitor will break right out, leaving the leads still on the pads.

Note that clipping off the surface-mount capacitors is also risky and can also result in lifted pads.

20191230/https://68kmla.org/forums/index.php?/topic/58570-macintosh-se30-restoration/

This is an interesting article on the history of graphics rendering algorithm development in the Wolfenstein 3D and Doom game engines.

20191230/https://twobithistory.org/2019/11/06/doom-bsp.html#fnref:2

It was later republished on Ars Technica. Please note, however, that the only addition they made was some screenshots from the games.

20191230/https://arstechnica.com/gaming/2019/12/how-much-of-a-genius-level-move-was-using-binary-space-partitioning-in-doom/


So, about the original blog. It’s great to see that the purpose of this blog article is to provide a computer history from a perspective more relevant to that of the tech industry workers.

20191230/https://twobithistory.org/about.html

I also found a few interesting articles here. The manpage article distinctively makes no mention of Texinfo, though it would have been a great illustrative example about why traditional Unix manpages are so hard to displace.

20191230/https://twobithistory.org/2017/09/28/the-lineage-of-man.html

Read on →

Whoo! Setting up a Raspberry Pi as a full replacement for a desktop PC is quite a challenge, even when you’re competing against a 10+ year old desktop PC. Let’s discuss one small but important subject in particular, the power button.

On all PCs manufactured since the year 2000, there is a dedicated microcontroller board that is pretty much responsible for all of the power management in a PC. When you push the power button, that is not merely an electrical switch, but it is a sensor input to that processing logic. In particular, the following functions are provided:

  • When the PC is powered off, pushing the power button switches the PC on.

  • On some boards, if the PC lost power from a power outage, the control board will automatically power on the PC when power is restored.

  • When you push the power button when the PC is powered on, an ACPI shutdown “push button” event will be sent to the operating system, which can then process it in software however it pleases.

  • When you push and hold down the power button for three seconds, then a “force shutdown” is performed instead: the microcontroller immediately cuts power to the PC without waiting for the operating system software to finish its processing.

Read on →

This is an articule about the unfortunate track record of lies about good progress in the wars in Afghanistan and Iraq that the U.S. has been involved in for 18 years. The truth has been that they were loosing the whole time, they made many mistakes, but they put in a tremendous effort to cover up the losses. Actually, this war has been the longest running war the U.S. has been involved in.

The primary purpose that the U.S. should have kept at focus was to end the violence and casualties in the region. The primary metric of success is the decrease, or elimination, of casualties among the Afghanistan people. But then the Pentagon got distracted with so many other ideas and missions, and pretty soon they were quite lost from a strategy standpoint.

20191227/https://www.washingtonpost.com/graphics/2019/investigations/afghanistan-papers/afghanistan-war-confidential-documents/

Interesting, the thing about parenting choices that make for better or worse? The specifics often times do not matter, it’s more the big picture environmental factors.

20191227/https://www.nytimes.com/2019/05/23/upshot/babies-evidence-parenting-myths.html

This is an interesting article about bringing in open source and computer programming closer to schools. It’s hope that things can get better in the future, but for the most part, we are stuck where we were in the old days.

20191227/https://www.linuxjournal.com/content/kids-take-over-0

BAD!!! DPMS is not properly implemented on Raspberry Pi! No worries, that is a quick fix, albeit a hacky one. At least it is possible.

20191227/DuckDuckGo raspberry pi display mode power save
20191227/https://unix.stackexchange.com/questions/52263/how-can-i-put-my-hdmi-display-into-and-out-of-power-save-mode
20191227/https://github.com/raspberrypi/linux/issues/487

As for the Raspberry Pi Foundation, well they are going to have to stop complaining about not having the software development resources to be able to implement DPMS proper, because they need to make way for the influx of full-time Raspberry Pi desktop computer users coming their way.

20191227/DuckDuckGo raspberry pi power off monitor after inactivity tvservice
20191227/https://www.screenly.io/blog/2017/07/02/how-to-automatically-turn-off-and-on-your-monitor-from-your-raspberry-pi/
20191227/DuckDuckGo xorg get activity counter
20191227/https://askubuntu.com/questions/202136/how-can-a-script-detect-a-users-idle-time

So, the solution! A partial solution for testing if vcgencmd display_power does what you want is this script. Note that vcgencmd display_power is similar to tvservice -o and tvservice -p, but better.

Read on →