## Making Game: Internet (Wi-Fi) acting up on 2 Windows machines

I have a Lenovo machine running Windows 10 Home, and an HP machine running Windows 10 Pro, and I’m facing a weird issue on both the machines.

• Both machines are getting ~30Mbps, whereas my phone is getting ~120Mbps
• Whenever I am on a Google Meet or a Zoom call, I keep getting frozen

I’ve tried reinstalling Windows and the speeds were back up to 120Mbps for about a week or so, with the calls seeming to be working just fine, but then the speeds went down to 30Mbps and the calls started having issues once again. I also tried switching off Windows Defender Firewall, but it didn’t seem to help, and `ping` shows normal return rates.

Could any software be causing this issue? Software that is usually always open:

• Tableau 10.5
• SQL Workbench/J
• Jupyter Notebook
• PuTTY
Tagged : / /

## Code Bug Fix: Beautifying Pandas dataframe

I have a pandas dataframe. I am using Python IDLE 3.8.2

Is there a program, or method to make the dataframe more visually pleasing? Rather than just plain text.

Check out dtale.

D-Tale is the combination of a Flask back-end and a React front-end to
bring you an easy way to view & analyze Pandas data structures. It
integrates seamlessly with ipython notebooks & python/ipython
terminals. Currently this tool supports such Pandas objects as
DataFrame, Series, MultiIndex, DatetimeIndex & RangeIndex.

Tagged : / /

## Server Bug Fix: SCCM Windows Update do not apply outside of Maintenance windows after deadline is reached

I have a collection with Maintenance Window of 2 AM to 4 AM. I am pushing windows updated with deadline behavior “When the installation deadline is reached, allow the following activities to be performed outside the maintenance window.”

• Option “Software updates installation” is checked.
• and Option “System restart (if necessary)” unchecked.

What I was expecting to happen was to install windows updates after the deadline reaches, regardless of the maintenance windows but hold the reboots until maintenance windows.

What is happening right now is, my updates get stuck in progress mode with a message “Waiting for maintenance window before installing”

Is there a way to achieve this?

I had “All devices as part of the same group” option checked under Collection Properties > General tab. As soon as I unchecked it my software update started to flow. Now I am working maintenance window so my server only reboots during the maintenance window.

Tagged : / / / /

## Linux HowTo: Diagnosing Microsoft Edge Chromium memory usage

On my girlfriends laptop with 8 GB of memory the system seems to start to swap (use pagefile) when she has a handful of browser tabs open. I personally use Firefox on Linux and don’t seem to have these problems. Is there something that we can do to still have tons of open tabs but not use so much memory? I guess it would be fine if the content of tabs had to be reloaded upon activation.

Tagged : /

## Code Bug Fix: add class when scroll to specific id ReactJS

I am trying to add a class when the top of the window scrolls to a specific ID and removes class when scrolls back to the top. i am new to ReactJs and unsure how to accomplish this.

``````window.onscroll = function() {scrollFunction()};

scrollFunction() {
if (document.body.scrollTop > 50 || document.documentElement.scrollTop > 50) {
document.getElementById("myID").className = "test";
} else {
document.getElementById("myID").className = "";
}
}
``````

how can i use something like this in React? looking for a simple function that will handle this

You can use var getBoundingClientRect and calculate the viewable element!

I have created stackblitz link to the kind of fixing your problem! If you need further help comment

``````componentDidMount() {
const getViewable = document.getElementById("start-editing");
const that = this;
"scroll",
function(event) {
if (that.isInViewport(getViewable)) {
getViewable.classList.remove("gold");
} else {
getViewable.classList.remove("black");
}
},
false
);
}

isInViewport = elem => {
var bounding = elem.getBoundingClientRect();
return (
bounding.top >= 0 &&
bounding.left >= 0 &&
bounding.bottom <=
(window.innerHeight || document.documentElement.clientHeight) &&
bounding.right <=
(window.innerWidth || document.documentElement.clientWidth)
);
};
``````

Tagged : /

## Server Bug Fix: Historical origin of the empty set

The question is in the title:

Who first claimed the existence / necessity of the empty set ? When did this happen ?

Of course I know that the notation $$emptyset$$ goes back to André Weil, and that the first axiom of ZF is that there exists an empty set, but I ask whether this is an older concept.

“It can be justifiably argued that Boole had inventented the empty set” [in The Mathematical Analysis of Logic (1847)].

The Empty Set, the Singleton, and the Ordered Pair, Akihiro Kanamori (2003).

Tagged : / /

## Math Genius: Is there a synthetic definition of the \$0\$-Hecke monoid of \$S_n\$?

Background. Let \$n\$ be a nonnegative integer, and let \$S_n\$ denote the \$n\$-th symmetric group. The \$0\$-Hecke monoid \$H_0left(S_nright)\$ is defined to be the monoid given by generators \$t_1, t_2, ldots, t_{n-1}\$ and relations

• \$t_i^2 = t_i\$ for every \$i in left{1, 2, ldots, n-1right}\$;

• \$t_i t_{i+1} t_i = t_{i+1} t_i t_{i+1}\$ for every \$i in left{1, 2, ldots, n-2right}\$;

• \$t_i t_j = t_j t_i\$ for every \$i\$ and \$j\$ in \$left{1, 2, ldots, n-1right}\$ satisfying \$left|i-jright| > 1\$.

(This is a particular case of a more general construction — that of the \$0\$-Hecke monoid of a Coxeter group –; but I want to focus on the symmetric group.)

The monoid \$H_0left(S_nright)\$ has cardinality \$n!\$. More precisely, for every permutation \$w in S_n\$, we can define an element \$t_w\$ of \$H_0left(S_nright)\$ by setting

\$t_w = t_{i_1} t_{i_2} cdots t_{i_k}\$, where \$left(i_1, i_2, ldots, i_kright)\$ is a reduced word for \$w\$ in \$S_n\$.

This element \$t_w\$ does not depend on the choice of the reduced word. The family \$left(t_wright)_{w in S_n}\$ contains each element of \$H_0left(S_nright)\$ exactly once. Thus, we can define a monoid structure \$left(S_n, *right)\$ on the set \$S_n\$ as follows: For any \$a in S_n\$ and \$b in S_n\$, define \$a * b\$ to be the unique element of \$S_n\$ satisfying \$t_{a * b} = t_a t_b\$. Then, \$left(S_n, *right)\$ is an isomorphic copy of the \$0\$-Hecke monoid \$H_0left(S_nright)\$ whose elements are those of \$S_n\$. It has various interesting properties, which are spread across the literature (apparently very popular as exercises).

Question. Is there an equivalent definition of \$*\$ that is “synthetic”, i.e., does not use the decomposition of a permutation into adjacent transpositions? (My intuition for \$a * b\$ is something along the lines of “the join of \$a\$ and \$b\$ on the Bruhat order lattice, if one squints hard enough to forget that the Bruhat order is not a lattice and that \$*\$ is not commutative”.)

Motivation. For comparison, here is a similar object where the answer is “Yes”. We define a zeroed monoid to be a monoid \$M\$ with a specified element \$0\$ which satisfies \$0m = m0 = 0\$ for every \$m in M\$. We can define the nilCoxeter monoid \$C_0left(S_nright)\$ to be the monoid given by generators \$u_1, u_2, ldots, u_{n-1}, 0\$ and relations

• \$0 u_i = u_i 0 = 0\$ for every \$i in left{1, 2, ldots, n-1right}\$;

• \$u_i^2 = 0\$ for every \$i in left{1, 2, ldots, n-1right}\$;

• \$u_i u_{i+1} u_i = u_{i+1} u_i u_{i+1}\$ for every \$i in left{1, 2, ldots, n-2right}\$;

• \$u_i u_j = u_j u_i\$ for every \$i\$ and \$j\$ in \$left{1, 2, ldots, n-1right}\$ satisfying \$left|i-jright| > 1\$.

Similar results as for \$H_0left(S_nright)\$ hold; in particular, we can define a \$u_w in C_0left(S_nright)\$ for every \$w in S_n\$, and the family \$left(u_wright)_{w in S_n}\$ contains each element of \$C_0left(S_nright) setminus left{0right}\$ exactly once. We can again transfer this zeroed monoid structure onto the set \$S_n cup left{0right}\$; in other words, we can define a binary operation \$sharp\$ on \$S_n cup left{0right}\$ by \$u_{a sharp b} = u_a u_b\$ for all \$a, b in S_n cup left{0right}\$ (where I set \$u_0 = 0\$). But this multiplication \$sharp\$ can be described without using reduced words: Namely, for any \$a in S_n\$ and \$b in S_n\$, we have

\$a sharp b = begin{cases} ab, & text{ if } ellleft(abright) = ellleft(aright) + ellleft(bright); \ 0, & text{ otherwise} end{cases}\$,

where \$ellleft(wright)\$ means the Coxeter length of a permutation of \$w\$ (that is, the number of inversions of \$w\$). Of course, the Coxeter length of a permutation \$w\$ is the length of any reduced expression of \$w\$, but it can also be defined as the number of inversions of \$w\$, which does not rely on the representation of a permutation as composition of adjacent transpositions. I am looking for a similar description for the \$0\$-Hecke monoid.

(Note: None of the results above is mine, but it is hard to find proofs for them in the literature, so I don’t even know whom to cite.)

Comment converted to an answer on OP’s suggestion.

This mathoverflow question: Is the following construction of the 0-Hecke monoid (well) known? might be relevant to your question.

Let me also mention two possibly relevant references
On the representation theory of finite J-trivial monoids by
Tom Denton, Florent Hivert, Anne Schilling, Nicolas M. Thiéry

Monoid H_0(S_n) can be defined as a monoid of permutation matrices under a special kind of multiplication, or equivalently of special integer matrices (unit-Monge matrices) under standard tropical multiplication. See my paper for details: https://doi.org/10.1007/s00453-013-9830-z

I am curious about your remark that the monoid’s properties are popular as exercises: do you have any examples of those?

## Code Bug Fix: How to insert data into database, tables with foreign keys via php

I have 5 tables in database.

``````technologia:
- id_typ_technologie
- id_typ_energie
- nazov_technologie

typ_energie:
- id_typ_energie
- popis_energie

dodavatel
- id_dodavatel
- nazov
- email

obec:
- id_obec
- nazov_obec

- id_typ_energie(FK)
- id_technologie(FK)
- jednotka
- id_dodavatel(FK)
- id_obec(FK)
- geom
- rok_instalacie
- popis
``````

I want to insert data to table zariadenia but i don´t know. I do a dropdown option from db for foreign keys but I don´t know how i insert id from selected option. For example in table typ_energie are values: 1 slnecna 2 veterna 3 vodna if someone select veterna i want to insert only id this option.I do something but i am new in php. geom is the geographic for insert i use a sql insert -(‘SRID=4326;POINT(17.072834 48.149280)’) Can anyone help me with this insert via php ?

``````            \$con=pg_connect("host= localhost port=5432 dbname=cvicna user=postgres password=admin");
if (!\$con)

{

die('Could not connect: ' . pg_last_error()());

}
?>

<form action="dropdown.php" method="post">
<p>
<label for="nazov">nazov:</label>
<input type="text" name="nazov" id="nazov">
</p>
<p>
<label for="typenergie">typ energie:</label>
<select>
<?php

\$qry=pg_query("select * from typ_energie ");
while (\$row=pg_fetch_array(\$qry))
{
?>
<option><?php echo \$row["popis_energie"]; ?></option>
}
<?php
}
?>
</select>
</p>

<p>
<label for="technologia">technologia:</label>
<select>
<?php

\$qry=pg_query("select * from technologia ");
while (\$row=pg_fetch_array(\$qry))
{
?>
<option><?php echo \$row["nazov_technologie"]; ?></option>
}
<?php
}
?>
</select>
</p>
<p>
<label for="vykon">vykon:</label>
<input type="text" name="vykon" id="vykon">
</p>
<p>
<label for="jednotka">jednotka:</label>
<input type="text" name="jednotka" id="jednotka">
</p>
<p>
<label for="dodavatel">dodavatel:</label>
<select>
<?php

\$qry=pg_query("select * from dodavatel order by id_dodavatel ASC ");
while (\$row=pg_fetch_array(\$qry))
{
?>
<option><?php echo \$row["nazov"]; ?></option>
}
<?php
}
?>
</select>
</p>

<p>
<label for="obec">obec:</label>
<select>

<?php

\$qry=pg_query("select * from obec ");
while (\$row=pg_fetch_array(\$qry))
{
?>
<option><?php echo \$row["nazov_obec"]; ?></option>
}
<?php
}
?>

</select>
</p>

<p>

<label for="x">x:</label>
<input type="text" name="x" id="x">

</p>
<p>

<label for="y">y:</label>
<input type="text" name="y" id="y">

</p>

<p>
<label for="rok">rok instalacie:</label>
<input type="text" name="rok" id="rok">
</p>
<p>
<label for="popis">popis</label>
<input type="text" name="popis" id="popis">
</p>

<input type="submit" value="Submit">
</form>```

``````

My friends, please keep the value \$1, \$2, \$3, \$4, \$5, \$6, \$7, \$8, \$9 inside of the \$insert_prepare variable. It needs to be those arguments.

Full fix of your solution below:

``````if(\$con) {
?>

<form action="dropdown.php" method="post">
<p>
</p>

<p>
<label for="typ_energie">typ energie:</label>
<select name="typenergie">
<?php

\$qry = pg_query( "select * from typ_energie " );
while (\$row = pg_fetch_array( \$qry )) {
?>
<option value="<?php \$row['id_typ_energie']; ?>"> <?php echo \$row["popis_energie"]; ?></option>
}
<?php
}
?>
</select>
</p>

<p>
<label for="technologia">technologia:</label>
<select name="id_technologie">
<?php

\$qry = pg_query( "select * from technologia " );
while (\$row = pg_fetch_array( \$qry )) {
?>
<option value="<?php \$row['id_technologie']; ?>"><?php echo \$row["nazov_technologie"]; ?></option>
}
<?php
}
?>
</select>
</p>
<p>
<label for="vykon">vykon:</label>
<input type="text" name="vykon" id="vykon">
</p>

<p>
<label for="jednotka">jednotka:</label>
<input type="text" name="jednotka" id="jednotka">
</p>

<p>
<label for="dodavatel">dodavatel:</label>
<select name="id_dodavatel">
<?php
\$qry = pg_query( "select * from dodavatel " );
while (\$row = pg_fetch_array( \$qry )) {
?>
<option value="<?php \$row['id_dodavatel']; ?>"><?php echo \$row["nazov"]; ?></option>
}

<?php
}
?>
</select>
</p>

<p>
<label for="obec">obec:</label>
<select name="id_obec">
<?php

\$qry = pg_query( "select * from obec " );
while (\$row = pg_fetch_array( \$qry )) {
?>
<option value="<?php \$row['id_obec']; ?>"><?php echo \$row["nazov_obec"]; ?></option>
}
<?php
}
?>
</select>
</p>

<p>
<label for="rok">rok instalacie:</label>
<input type="text" name="rok" id="rok">
</p>

<p>
<label for="popis">popis</label>
<input type="text" name="popis" id="popis">
</p>

<input type="submit" value="Submit">
</form>

<?php

if ( ! empty( \$_POST )) {

\$id_typ_energie   = \$_POST['typenergie'];
\$id_technologie   = \$_POST['id_technologie'];
\$jednotka         = \$_POST['jednotka'];
\$id_dodavatel     = \$_POST['id_dodavatel'];
\$id_obec          = \$_POST['id_obec'];
\$rok_instalacie   = \$_POST['rok'];
\$popis            = \$_POST['popis'];

\$form_array = [
\$id_typ_energie,
\$id_technologie,
\$jednotka,
\$id_dodavatel,
\$id_obec,
\$rok_instalacie,
\$popis
];

\$insert_prepare = 'INSERT INTO zariadenie(nazov_zariadenia,id_typ_energie,id_technologie,vykon_zariadenia,jednotka,id_dodavatel,id_obec,rok_instalacie, popis ) VALUES (\$1, \$2, \$3, \$4, \$5, \$6, \$7, \$8, \$9)';

pg_prepare( \$con, 'loopStmt', \$insert_prepare);

}
}
?>
``````

I try to delete geom from table and I need insert others values from table zariadenie but I am retarded and I dont know write the correct code. Could you please correct my code so that the insertion works based on the selection from the given options?

``````            \$con=pg_connect("host= localhost port=5432 dbname=cvicna user=postgres password=admin");
if (!\$con)

{

die('Could not connect: ' . pg_last_error()());

}
?>

<form action="dropdown.php" method="post">
<p>
</p>
<p>
<label for="typ_energie">typ energie:</label>
<select name="typ_energie">
<?php

\$qry=pg_query("select * from typ_energie ");
while (\$row=pg_fetch_array(\$qry))
{
?>
<option value="<?php \$row['id_typ_energie'];?>"> <?php echo \$row["popis_energie"]; ?></option>
}
<?php
}
?>
</select>

</p>

<p>
<label for="technologia">technologia:</label>
<select name="technologia">
<?php

\$qry=pg_query("select * from technologia ");
while (\$row=pg_fetch_array(\$qry))
{
?>
<option value="<?php \$row['id_technologie'];?>"><?php echo \$row["nazov_technologie"]; ?></option>
}
<?php
}
?>
</select>
</p>
<p>
<label for="vykon">vykon:</label>
<input type="text" name="vykon" id="vykon">
</p>
<p>
<label for="jednotka">jednotka:</label>
<input type="text" name="jednotka" id="jednotka">
</p>
<p>
<label for="dodavatel">dodavatel:</label>
<select name="dodavatel">
<?php
\$qry=pg_query("select * from dodavatel ");
while (\$row=pg_fetch_array(\$qry))
{
?>
<option value="<?php \$row['id_dodavatel'];?>"><?php echo \$row["nazov"]; ?></option>
}

<?php
}
?>
</select>
</p>

<p>
<label for="obec">obec:</label>
<select name="obec">

<?php

\$qry=pg_query("select * from obec ");
while (\$row=pg_fetch_array(\$qry))
{
?>
<option value="<?php \$row['id_obec'];?>"<?php echo \$row["nazov_obec"]; ?></option>
}
<?php
}
?>

</select>
</p>

<p>
<label for="rok">rok instalacie:</label>
<input type="text" name="rok" id="rok">
</p>
<p>
<label for="popis">popis</label>
<input type="text" name="popis" id="popis">
</p>

<input type="submit" value="Submit">
</form>
<?php

\$id_typ_energie = \$_POST['typenergie'];
\$id_technologie = \$_POST['id_technologie'];
\$jednotka   = \$_POST['jednotka'];
\$id_dodavatel   = \$_POST['id_dodavatel'];
\$id_obec    = \$_POST['id_obec'];
\$rok_instalacie = \$_POST['rok_instalacie'];
\$popis     = \$_POST['popis'];

\$form_array = [ \$nazov_zariadenia , \$id_typ_energie , \$id_technologie, \$vykon_zariadenia, \$jednotka, \$id_dodavatel, \$id_obec,  \$rok_instalacie, \$popis ];

if( pg_execute(\$con, 'loopStmt', \$form_array  )) {
echo "Executed successfully";

}
?>
``````

Tagged : / /

## Server Bug Fix: When are Ability Scores (not modifiers) used in D&D 5e?

In D&D, the main ability is a score from 1-30, while the modifiers range from -5 to +10 (score -10/2 round down)

In the Player’s Handbook, it states:

Because ability modifiers affect almost every Attack roll, ability check, and saving throw, ability modifiers come up in play more often than their associated scores.

So when do the scores come up?

## Strength

• Carrying capacity – The score, not the modifier is used to determine how much a character can carry without becoming encumbered.
• Armor proficiency – The score, not the modifier is used to determine if a character can properly wear heavy armors without taking penalties to speed.
• Jumping distance – The modifier controls the height of a vertical jump, but the score controls the length of a long jump.
• Used for determining whether a character can multiclass.
• Strength 13 is a pre-req for the Grappler feat.

## Dexterity

• Used for determining whether a character can multiclass.
• I couldn’t identify any other RAW examples, but I have played at a lot of tables which will use the characters Dex score to break ties on initiative.
• Dex 13 is a pre-req for the Defensive Duelist and Skulker feats.

## Constitution

• After some digging, I found that the Gas Spore’s death attack causes death based on the target’s Constitution score.
• The number of minutes you can be in frigid water is tied to your Constitution score.

## Wisdom

• Used for determining whether a character can multiclass.
• Wisdom 13 is an alternative pre-req for the Ritual Caster feat.
• Controls specific elements of the Knowledge Cleric‘s Visions of the Past feature.

## Charisma

• Used for determining whether a character can multiclass.
• Cha 13 is a pre-req for the Inspiring Leader feat.

# Modifications work on scores rather than modifiers.

When character gains an ability score improvement, usually at levels 4, 8, 12, 16, and 19 (though the fighter and rogue get more) the characters’ ability scores are increased, rather than their modifiers.

The same goes for magic items that increase or modify ability scores, such as the tome of understanding (and other tomes), the manual of bodily health and the star card from the deck of many things, as well as items like gauntlets of ogre power increase scores instead of modifiers.

Reductions in abilities also works on scores: see strength drain of the shadow and devour intellect of the intellect devourer.

In the same way, scores are determined at character generation, rather than modifiers.

The strength score is additionally used for the calculation of carrying capacity and as prerequisite for some armor types.

Of course the scores will determine the modifiers as well. But modifiers are not changed directly.

Tagged : /