What is a good algorithm for generating a linear regression of positions in 3D space? (for getting the direction of a thrown object in VR)

I’m trying to get throwing to feel right in my VR game. I don’t plan on actually using physics to do this; my idea is to accurately determine the lateral direction of the throw, then move the object in the intended direction (with a doctored Y value) at a speed dependent on other factors.

The language of the code doesn’t matter too much, but I’m using Godot, so something that wouldn’t require me to import a bunch of different math libraries (by converting them to Godot’s Python-style GDScript) would be ideal. It doesn’t need to be robust.

To give you an idea of what I was thinking, my original plan was to save the position of the grabbing controller every frame while an object is being held, removing old positions if the controller is moving backwards, then averaging out the movement deltas over the last 10 or 15 frames or so before letting go (it should be consistent since Godot has a fixed-timestep “update” function available) and normalizing the vector to get the direction the object should travel in.

However, this blog post got me thinking that spending the time learning how to do the linear regression in a more robust way, then applying that to 3D/VR, might be worthwhile. I just wonder if, since I don’t need the actual linear or angular velocity, it might be overkill in terms of time spent on the feature.

Dealing with too much white space

I am working on some wireframes for an app. The app has a lot of short flows that usually require filling two inputs fields or have a small FAQ as seen in the examples below. I tried looking the internet for some suggestion but nothing helps.

I`m looking for some standards or best practices.

I tried a few variations but all seem off in my opinion.

1. Aligned left small container.

2. Full width container and content

3. Full width container with center content

4. Center content

Space efficient representation of Regular graphs

Let $$G$$ be a $$k$$-regular graph (each vertex have a degreee $$k$$). It is trivial to store the graph in $$O(\log n)$$ space or words such that $$j$$th neighbour of any vertex can be found in $$O(\log n)$$ time. Assume that neighbours of each vertex are ordered.

Note that $$k=O(\log n)$$

Is there an representation of graph $$G$$ that takes $$o(nk)$$ space in words such that query can be solved in $$O(1)$$

How to move Search log files from C: Drive to E: to free space in C: Drive

SharePoint Server C: Drive Space is full because if Search logs. I want to move the search log files from C: Drive to E: Drive.

How can I move these logs without affecting the SharePoint system?

There is not enough space on http://myCompany.com

I am using SP 2010 and try to copy a lot of files to a document library by the file explorer. I got this error:

There is not enough space on `http://myCompany.co`m. You need an additional 13,4 GB to copy these files

I try to upload only small parts and only the first 3 parts worked. The fourth part give me again the same error but with another gb value:

There is not enough space on http://myCompany.com. You need an additional 2,4 GB to copy these files

What is going wrong? I do not have a site collection quota!

Here is a print screen of the site collection quota. There is no limit.

Objects in 3D space: color contrast against background

Is there a tool to help me pick proper colors for:

1. Objects
2. Background

in 3D space. Colors should have proper contrast.

UPDATE

A sample of my options for background color is:

Background color: `#c8c8c8c` , object color: `#576675`

Background color: `#888888` , object color: `#576675`

Background color: `#444444` , object color `#576675`

Dualbooting Ubuntu, just installed and disk space is already full

Full disclosure, I don’t really know what I’m doing here, I just really hate Windows 10 and am trying to use Ubuntu instead. If this question has been already asked I apologize, I’ve been reading many other questions and either couldn’t understand them or couldn’t even tell if our problems were the same.

I just got a brand new Dell laptop with Windows 10 as the default operating system. I bought a SanDisk 64 GB USB drive and followed the HowToGeek instructions for setting up the partition and booting directly from the USB drive. I thought I was successful since my computer now automatically boots from the USB and runs Ubuntu. However, after running Ubuntu and trying to install additional programs, I checked the disk space and it only lists me as having 4.1 GB of space, with only 136 MB of space available. Since even the USB has 64 GB of space, this seems very wrong, and I thought that the whole point of partitioning the hard drive was to provide storage anyway. What is going on here, and how do I fix this?

Moving through the space of an invisible enemy creature in combat

In my last session the party was fighting some Wyverns. When one got near the sorcerer, he became invisible and moved out of its reach, but stayed between the Wyvern and the warlock. On its next turn, the Wyvern moved to attack the warlock, but to do so, it would have to move through the sorcerer’s space.

On page 191 of the Player’s Handbook, it states under “Moving Around Other Creatures”:

[…] you can move through an hostile creature’s space only if the creature is at least two sizes larger or smaller than you. Remember that another creature’s space is difficult terrain for you.

The Wyvern is a Large creature, so it can’t move through the space occupied by the sorcerer, but it would definitely try to do so to attack the nearest enemy.

What should be the proper resolution of this event according to the rules?

I made my call by letting the Wyvern, a Large creature, pass through the space and gave the sorcerer a choice to make a Dexterity saving throw to avoid being trampled, or a Strength saving throw to stop the creature’s movement. The PC chose Dexterity and failed, so he got trampled. I considered the space difficult terrain for the Wyvern, used 2d6+4 as trample damage (same as for its Bite attack), concluded the movement out of the square occupied by the PC, left him prone, and made only the Stinger attack to maintain the average damage output.

I let my group know that it was my call to avoid stopping combat and searching for rules, and that in the future, the same situation may be managed differently according to official rules, but what are those rules?

Why does 18.04 LVM default to 4GB despite more space available?

I’ve just noticed that a default install of Ubuntu 18.04 with LVM results in only 4GB of space allocated for the root partition, and the rest of the 500GB drive is left un-used. I find this goes against the principle of least surprise, I expected ubuntu to use the whole drive or to ask how much to use like 16.04 did.

Why wasn’t it provisioned with more space? Is this a bug? I’ve googled but couldn’t find anything other than this: Ubuntu Server 18.04 LVM out of space with improper default partitioning

It talks about how to fix it – and I have fixed it – but I don’t understand why 18.04 defaults to such a small root partition with LVM?