Automatically update date and time column from other date and time column

I have a list of meetings where 2 of the columns are “Start” and “End” of type “Date and time”.

Now I am trying to automatically update the “End” column after I add the date and time of the Start, but I want to still be able to edit it and I want the update to be asynchrone so it would update before submitting the new element form.

Do you have any ideas ?

Thank you for your response.

Does USB read-rate from a camera device degrade when running inside of a docker container?

I have a general question regarding usb device performance inside of a docker container.

For context, I have setup a docker image (for deploying containers on an nvidia jetson agx xavier platform) to set up a camera publisher in ros to stream data from a realsense d435i camera plugged into the jetson via USB 3.2. I run this container with the --privileged option, as well as mounting the host volume /dev via -v /dev:/dev in the run command and I am able to bring up the node and run pretty reliably @15 fps at the camera’s lowest resolution. Additionally, I am able to view the camera stream on a separate host machine (connected over wlan) and the output looks pretty good.

I am trying to identify potential reasons why I cannot increase the frame-rate or the resolution without causing my ros node to crash. One of the issues, potentially, is the read-rate of my usb device when being read from within a running container. I am new to docker, and I would appreciate any general info and/or links about how running a docker container on a host machine can impact usb performance. Any relevant info would be of great use to me. Thanks!

Wireless connection from Ubuntu 19.04 to iPhone Xs

Rather long question, hope it is read anyway. The essence is: how to connect wirelessly to an iPhone Xs running iOS 12.3.1?

Because of my hearing aids and Bluetooth streaming of phone calls to them, I MUST use an iPhone (Android phones do not give a stable connection here). I run Linux on my computers and this is unfortunately not a good match for an iPhone. I insist on a wireless connection, and expect it to work as soon as I’m inside my home. But how?

When I’m outside I have my phone with me (as well as my hearing aids 😉 and a Bernafon SoundGate3 that streams sound from the phone to my ears, and all is well. Coming home, I often want to make a connection to my PC using my home WiFi, for example to transfer pictures from my phone. I use an app called AirDroid (made for Android phones, but an iPhone port exists that somehow works but has a few rough edges). On the PC I can access AirDroid via a browser, and transfer images from the phone.

For other uses (like reading SMS messages etc.) the Apple port of Airdroid lacks horribly. I guess iTunes might do this, but I’d rather not install iTunes (it would also require WINE, not a friend of mine).

The whole thing (except the phone calls!) worked so well for an Android phone, I just wonder if someone else have experienced this, and maybe have a solution?!

Installing Qemu from source causing error

I am trying to run Qemu-4.0 installed from source code.

When I run virt-manager to create a VM, I get the following error:

Unable to complete install: 'internal error: process exited while connecting to monitor: 2019-07-19T17:06:35.954242Z qemu-system-x86_64: -enable-kvm: unsupported machine type Use -machine help to list supported machines'  Traceback (most recent call last):   File "/usr/share/virt-manager/virtManager/asyncjob.py", line 89, in cb_wrapper     callback(asyncjob, *args, **kwargs)   File "/usr/share/virt-manager/virtManager/create.py", line 2553, in _do_async_install     guest.start_install(meter=meter)   File "/usr/share/virt-manager/virtinst/guest.py", line 498, in start_install     doboot, transient)   File "/usr/share/virt-manager/virtinst/guest.py", line 434, in _create_guest     domain = self.conn.createXML(install_xml or final_xml, 0)   File "/usr/lib/python2.7/dist-packages/libvirt.py", line 3603, in createXML     if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self) libvirtError: internal error: process exited while connecting to monitor: 2019-07-19T17:06:35.954242Z qemu-system-x86_64: -enable-kvm: unsupported machine type Use -machine help to list supported machines  

I configured the Qemu with following command:

./../configure --prefix=/usr --enable-spice --target-list=x86_64-softmmu --enable-kvm --enable-debug --enable-libssh2  Install prefix    /usr BIOS directory    /usr/share/qemu firmware path     /usr/share/qemu-firmware binary directory  /usr/bin library directory /usr/lib module directory  /usr/lib/qemu libexec directory /usr/libexec include directory /usr/include config directory  /usr/etc local state directory   /usr/var Manual directory  /usr/share/man ELF interp prefix /usr/gnemul/qemu-%M Source path       /home/probir/Downloads/qemu/qemu-4.0.0 GIT binary        git GIT submodules     C compiler        cc Host C compiler   cc C++ compiler      c++ Objective-C compiler cc ARFLAGS           rv CFLAGS            -g  QEMU_CFLAGS       -I/usr/include/pixman-1 -I$  (SRC_PATH)/dtc/libfdt -DHAS_LIBSSH2_SFTP_FSYNC  -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -fPIE -DPIE -m64 -mcx16 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wstrict-prototypes -Wredundant-decls -Wall -Wundef -Wwrite-strings -Wmissing-prototypes -fno-strict-aliasing -fno-common -fwrapv -std=gnu99  -Wexpansion-to-defined -Wendif-labels -Wno-shift-negative-value -Wno-missing-include-dirs -Wempty-body -Wnested-externs -Wformat-security -Wformat-y2k -Winit-self -Wignored-qualifiers -Wold-style-declaration -Wold-style-definition -Wtype-limits -fstack-protector-strong  -I/usr/include/p11-kit-1    -I/usr/include/libpng16 -I/usr/include/spice-server -I/usr/include/spice-1 -I$  (SRC_PATH)/capstone/include LDFLAGS           -Wl,--warn-common -Wl,-z,relro -Wl,-z,now -pie -m64 -g  QEMU_LDFLAGS      -L$  (BUILD_DIR)/dtc/libfdt  make              make install           install python            python -B (2.7.15+) slirp support     internal  smbd              /usr/sbin/smbd module support    no host CPU          x86_64 host big endian   no target list       x86_64-softmmu gprof enabled     no sparse enabled    no strip binaries    no profiler          no static build      no SDL support       no  SDL image support no GTK support       yes (3.22.30) GTK GL support    no VTE support       no  TLS priority      NORMAL GNUTLS support    yes libgcrypt         no nettle            yes (3.4) libtasn1          yes PAM               no iconv support     yes curses support    no virgl support     no  curl support      yes mingw32 support   no Audio drivers      oss Block whitelist (rw)  Block whitelist (ro)  VirtFS support    yes Multipath support no VNC support       yes VNC SASL support  yes VNC JPEG support  yes VNC PNG support   yes xen support       yes xen ctrl version  40900 brlapi support    yes bluez  support    yes Documentation     yes PIE               yes vde support       no netmap support    no Linux AIO support yes ATTR/XATTR support yes Install blobs     yes KVM support       yes HAX support       no HVF support       no WHPX support      no TCG support       yes TCG debug enabled yes TCG interpreter   no malloc trim support yes RDMA support      no PVRDMA support    no fdt support       git membarrier        no preadv support    yes fdatasync         yes madvise           yes posix_madvise     yes posix_memalign    yes libcap-ng support yes vhost-net support yes vhost-crypto support yes vhost-scsi support yes vhost-vsock support yes vhost-user support yes Trace backends    log spice support     yes (0.12.13/0.14.0) rbd support       yes xfsctl support    yes smartcard support no libusb            yes usb net redir     yes OpenGL support    no OpenGL dmabufs    no libiscsi support  yes libnfs support    no build guest agent yes QGA VSS support   no QGA w32 disk info no QGA MSI support   no seccomp support   yes coroutine backend ucontext coroutine pool    yes debug stack usage no mutex debugging   yes crypto afalg      no GlusterFS support no gcov              gcov gcov enabled      no TPM support       yes libssh2 support   yes TPM passthrough    TPM emulator       QOM debugging     yes Live block migration yes lzo support       yes snappy support    yes bzip2 support     yes lzfse support     no NUMA host support yes libxml2           yes tcmalloc support  no jemalloc support  no avx2 optimization yes replication support yes VxHS block device no bochs support     yes cloop support     yes dmg support       yes qcow v1 support   yes vdi support       yes vvfat support     yes qed support       yes parallels support yes sheepdog support  yes capstone          internal docker            no libpmem support   no libudev           no default devices   yes  NOTE: cross-compilers enabled:  'cc' 

Is it that I missed enabling any configuration while installing Qemu?

I upgraded from Ubuntu 12.02 to 14.04 but when I log in from my Oracle Virtual Machine it boots to the old version (12.02)

So my PC has 2 hard drives. One for Windows and one for Linux. By default it boots to Windows and if I want to run Linux I simply hold F2 upon start up to enter the Bios and boot into Linux from there. Originally I was using Ubuntu 12.02 but upgraded to 14.04. I was also using Oracle VM on my Windows OS to log into Ubuntu via virtual machine. Since I’ve upgraded my Ubuntu version to 14.04, when I attempt to log into Linux via virtual machine, it boots to the Ubuntu 12.02 version, so I cant access any of my files, programs, etc…that exist on my 14.04 version. I would like to be able to access Ubuntu 14.04 from my VM on Windows instead of booting Linux from the Bios every time, but it’s currently pointless as the VM boots to the older version of Ubuntu, which has nothing on it.

Can firbolgs use both spells from Firbolg Magic in the same day, or just one?

Firbolgs have the Firbolg Magic trait (VGtM, p. 107):

You can cast detect magic and disguise self with this trait, using Wisdom as your spell casting ability for them. Once you cast either spell, you can’t cast it again with this trait until you finish a short or long rest.

Does Firbolg Magic have one use that’s expended when either spell is cast? Or does it have two uses, where each spell can be cast once?

Copying list item between sites with REST/JSON HTTP Call from Workflow: Why wont these columns copy?

This is a re-post with more information hoping for a better response.

I have 2 lists in a SharePoint site with the following columns:

List 1

  • project ID = Single line of text
  • event type = Choice
  • event desc = Single line of text
  • owning dept = Choice
  • external = Multiple lines of text
  • internal = People and Groups
  • minutes = Multiple lines of text
  • outcome = Multiple lines of text

List 2

  • project status = Choice
  • phase = Choice
  • owner = People and Groups
  • date modified = DateModified

on item creation I want a SharePoint 2013 Workflow to copy the content of these columns to an identical list another site. I have successfully built the HTTP call and the workflow currently creates a new item in the target list with the following columns copied correctly:

  • project ID
  • event desc
  • minutes
  • outcome
  • phase

The other seven columns all return BadRequest when I attempt to add them to the parameters variable. here are some screenshots of my current configuration. enter image description here

enter image description here

enter image description here

enter image description here

Based on this setup, can anyone tell or point me to a resource on how the remaining seven fields should e configured?

If insertion/deletion from a binary tree is efficient, while maintaining ability to get item by index

I can’t quite figure this out. Say you have a binary tree where the left or right nodes correspond to 0 or 1 and a group of levels form a chain which is the index of the node. So you have 10010 which is 18 in decimal, so index 18 (say we count from 1 instead of 0).

      1     0   1    0 1 0 1         0 1         ... 

We build up some binary tree/trie. I’m trying to figure out if you can delete and add nodes to the trie without having to rewrite the whole subbranch to the right of where you insert or delete, or if there is a simple few-step operation to somehow sort of rotate the tree branch on insert/delete such that you don’t have to rewrite a big chunk of the tree. The reason is, you want to maintain the position of the nodes, so if you have nodes at position 6, 7, and 8, if you remove node 4, then they become positions 5, 6, 7. Do you get this for free somehow, or do you have to rewrite all of there positions in the tree? I can’t quite see how it would look, wondering if one could explain how it would work.

How to avoid circular dependency from abstracting navigation in desktop application?

I am trying to abstract some functionality from my desktop application (JavaFX) for changing views.

So, what I am thinking is:

Navigator interface with methods like goToAccountsOverview(), goToAccountDetails(Account account) etc. The implementation will depend on a ViewFactory to create the Views and a DisplayingViewChanger to change the view that is being displayed.

There will be multiple navigator interfaces depending on the state of the application, starting with:

  • NotConnectedStateNavigator (goToConnectToDatabase(), goToCreateDatabase() etc)

  • ConnectedStateNavigator (goToAccountsOverview(), goToAccountDetails(Account account) etc)

So each state will have its own navigator and view factory and a common view changer. The view factories and navigators will not share a common interface (createView(ViewEnum v) and goToView(View view) respectively).

While implementing this I run into a problem. An example of the problem is this:

In the AccountsOverviewView there is a table with all the accounts. Each account has a button to view the details. Pressing that button should navigate to the AccountDetailsView with the ViewModel of the account (I am using some sort of MVVM).

To do that it would call connectedStateNavigator.goToAccountDetails(accountVM) which would call viewChanger.changeView(connectedStateViewFactory.createAccountDetailsView(accountVM)).

So the AccountsOverviewView needs the ConnectedStateNavigator, which needs the ConnectedStateViewFactory, which needs to be able to construct the original AccountsOverviewView, which needs the ConnectedStateNavigator etc.

Some code to explain it better:

public class AccountsOverviewView {     public AccountsOverviewView(ConnectedStateNavigator navigator, ...) {         (...)         accountDetailsButton.onClick(e -> navigator.goToAccountDetails(account));         (...)     } }  public class ConnectedStateNavigator {     public ConnectedStateNavigator(ConnectedStateViewFactory viewFactory, ...) { ... }        public void goToAccountDetails(Account account) {         viewChanger.changeView(viewFactory.createAccountDetailsView(account));     } }  public class ConnectedStateViewFactory {     public ConnectedStateViewFactory(ConnectedStateNavigator navigator, ...) { ... }      public View createAccountsOverviewView() {         return new AccountsOverviewView(new AccountsOverviewViewModel(navigator, ...));     }      public View createAccountDetailsView(Account account) { ... } } 

How could I design this better to avoid this cyclic reference? Is using a setter or an asynchronous event system the only solution?