interaction design – What is the best strategy for playing a video embedded on a webpage to provide the optimal user experience?

Videos overcome everything else on a webpage. You can either read content, or watch a video at a time. Also, many times before I play a video, I grab my headphones and plug them in. So surely from a user’s perspective, videos shouldn’t auto-play. Background videos without sound seem to be okay, without considering how good or bad having them is.

Sydney Morning Herald does delayed auto-play. While the video is related to the content, its immensely distracting. I start to read an article, and then the sounds from the video (playing at the top of the page and not even in the viewport) always make me frantically find the stop button.

I find videos interesting when the write-up builds up the story and creates a reason for me to watch them.

modern experience – Modify Microsoft form embedded webpart format on SharePoint page

I have created a Microsoft form and embded the code in SharePoint page.

But I cannot modify the text on display of webpart.

As of now, the webpart on SharePoint page is as below

enter image description here

Now, how can I modify the the text like “Microsoft Form” to actual form name and change the background color?

And how to choose a format to

embedded systems – How to develop software drivers for the mcu peripherals in C++?

I have been developing a set of software drivers for the peripherals of a MCU. I need to implement those drivers in the C++ programming language. My idea was to model each driver by its own class.

Interface of a driver for the Peripheral01:

#include "HalCfg.h"

class Periph01 {
public:
    Periph01(HalCfg*);
    Periph01(const Periph01& orig);
    virtual ~Periph01();
    void init();
    int getCfg();
private:
    HalCfg *m_halCfg;
    int m_cfg;

};

Implementation of a driver for the Peripheral01:

#include "Periph01.h"

Periph01::Periph01(HalCfg *halCfg) {
    m_halCfg = halCfg;
}

Periph01::Periph01(const Periph01& orig) {
}

Periph01::~Periph01() {
}

void Periph01::init() {
    m_cfg = m_halCfg->periph01Cfg.cfg;
}

int Periph01::getCfg() {
    return m_cfg;
}

Each driver will have its configuration

struct Periph01Cfg
{
    int cfg;
};

Configuration of all the drivers will be aggregated at one place

#include "Periph01Cfg.h"

struct HalCfg
{
    Periph01Cfg periph01Cfg;
};

The usage will be following

int main(int argc, char** argv) {
    
    HalCfg halCfg;
    halCfg.periph01Cfg.cfg = 255;
    
    Periph01 periph01 = Periph01(&halCfg);
    periph01.init();
    
    cout << "Peripheral_01 configuration: " << periph01.getCfg() << endl;

    return 0;
}

The weakness of this solution is that I need to define a HalCfg type variable and then fill the configuration of all the peripherals at run time. From my point of view it would be better if I can fill the configuration of all the peripherals at compile time at one place in the software. Does anybody have any idea how to do that? Thanks in advance.

apache 2.4 – How to fix embedded videos slow buffering speed on CentOS 7 server?

The video bufferings when embedded on other websites are so low on speed. It waits a lot of time to buffer the video.

Tried installing mod streaming:

    $ wget http://h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz
$ tar -zxvf apache_mod_h264_streaming-2.2.7.tar.gz
$ cd mod_h264_streaming-2.2.7
$ ./configure
$ make
# make install

But it didn’t take any affect.
Also changed the embed options but it didnt take any effect.

How to fix? Or how to tweak this problem?

Server: CentOS 7 , Webmin Panel Dedicated Server
Videos encoded with: mp4
Apache version 2.4.6 CentOS Linux 7.9.2009

boot – Booting Windows Embedded Compact 7 in virtual machine fails – Stop error 7B

The user interface of some specialized industrial equipment is implemented as an app running on Windows Embedded Compact 7. The OS has been installed on an obsolete industrial touch panel PC (Aaeon GENE-9455 rev.a1.1 motherboard). Regrettably that motherboard is now deceased; power delivery for one of the chips doesn’t come up right and the boot sequence hangs.

The firm that designed it isn’t around anymore and I don’t have access to the source. As I see it, there are four potential ways to fix the machine – they are all painful and not guaranteed to succeed.

  1. Component-level board repair
  2. Sourcing a new old stock or refurbished board from some forgotten warehouse somewhere
  3. Porting the application to different hardware and software
  4. Running the entire OS on a virtual machine, which is then trivial to host on different hardware and software

I’m trying the virtualization route. I imaged the compact flash card, generated a virtual hard disk from it and threw it in VirtualBox 6.1.16. Trying to start the virtual machine however quickly ends in a BSoD of the guest system, with error code STOP: 0x0000007B (INACCESSIBLE_BOOT_DEVICE).

The same issue is apparently common when migrating more mainstream Microsoft OS’s such as Windows XP and 7 to virtual machines. While they may or may not be applicable to WEC7, I have tried the following suggested solutions. Nothing has changed.

  • Telling windows to load all possibly relevant drivers on boot by editing the registry manually. I loaded the SYSTEM hive of the guest system (WindowsSystem32configSYSTEM) as SYSTEM_guest in the registry editor of the host system, navigated to HKEY_LOCAL_MACHINESYSTEM_guestControlSet001services and changed the “start” value of each key to “0” (meaning: start driver during earliest boot phase) for the following keys: aliide, amdide, atapi, cmdide, intelide, msahci, pciide, viaide
  • Trying different virtual storage controller options such as IDE (PIIX3, PIIX4 and ICH6), SATA (AHCI), SCSI (LSI Logic and BusLogic)
  • Automatic startup repair with windows 7 32 bit install disc ISO.
  • Installing new drivers into the image using aforementioned windows install disc. More specifically, Intel ATAPI and AHCI for windows 7 32 bit.