Categories
Ask Board Games Games

What two-vowel combinations are important to keep in Scrabble?

For example, there is a free "r" on the board. I have the letters "endueoe". I could do either the word "endure" or "enduro". The former would leave me with an ‘o’ and ‘e’. The latter would leave me with an ‘e’ and ‘e’. I wonder if an "oe" combination would be better or worse […]

Categories
Ask Board Games Games

“You may cast” and timing rules

Some effects that say “you may cast” let you ignore timing rules. For example, Descendants’ Path lets you cast creature spells during your upkeep. It doesn’t explicitly say that you can ignore timing rules or cast the spell as though it had flash, but it’s implicit (because otherwise the card wouldn’t work at all). On […]

Categories
Linux Mastering Development

Scrolling up terminal goes through command history instead of scrolling through terminal outputs

So I’m not sure what the terminology is for this behavior, so I have a hard time Googling it. This has happened enough (annoying) times that I really would like a solution. Essentially when I scroll up in my terminal, I occasionally run into a situation where the scrolling scrolls through the command history instead […]

Categories
Linux Mastering Development

Recover from wrong PID 1 process

I’ve just run into a curious situation. To set up a new server, I logged into the OS preinstalled by the hosting provider and performed a pivot_root to a tmpfs so I could unmount the drives and reconfigure RAID. Having done that, I did another pivot_root to the newly created FS and ran kill -TERM […]

Categories
Artificial Intelligence (AI) Mastering Development

Can neural networks handle redundant inputs?

I have a fully connected neural network with the following number of neurons in each layer [4, 20, 20, 20, …, 1]. I am using TensorFlow and the 4 real-valued inputs correspond to a particular point in space and time, i.e. (x, y, z, t), and the 1 real-valued output corresponds to the temperature at […]

Categories
Game Creation Mastering Development

Is it more performant to index in the vertex shader of fragment shader?

I have a shader that draws 2D quads from a texture atlas using instancing. I’d like to add a feature that allows me to map each of the RGBA channels in the texture using a 5×5 matrix. For example, the following would swap the red and green channels: 0 1 0 0 0 1 0 […]

Categories
Ask Mathematics

Smallest root of a given polynomial when the degree tends to infinity

Frequently, in Physics, we need to determine the smallest root of a polynomial when its degree tends to infinity. Namely, let’s suppose we have a polynomial of degree $d$, $\displaystyle P(x) = \sum_{i=0}^d c_i x^i$ where the coefficients $c_i$ are known. You can think of $P(x)$ as the Chebyshev polynomial, but in general, it can […]

Categories
Ask Mathematics

Sections of Cokernel sheaf

Consider a sheaves morphism $f\colon \mathcal{F}\to \mathcal{G}$, where $\mathcal{F}$ and $\mathcal{G}$ are sheaves on a topological space $X$. Now we have the cokernel presheaf and its sheafification $\textit{Coker}(f)$. How can we describe the sections of this sheaf? In Griffith-Harris, Principles of Algebraic Geometry, on page 37, is stated that a section of $\textit{Coker}(f)$ on an […]

Categories
Development

React, writing handleInputChange function more elegant

Happy new year guys and gals. Quick and simple question: I have this code that happens quite often in React (handling input from user). const handleEndDateChange = ( e ) => { if ( e.target.name === “month-selected” ) { setChosenEndDate( { …chosenEndDate, month: e.target.value } ); } if ( e.target.name === “year-selected” ) { setChosenEndDate( […]

Categories
Development

Xamarin Picker binding

Am I missing something or is there more to it that I am not getting. I’m working on a mobile app and have to use pickers for choices from a data table. To start, I have many such pickers that are key/value based. I have an internal ID and a corresponding Show value. The IDs […]