How can I find out what clients aredoing with my samba server
How can I monitor my Samba traffic?
I have backups up everything, but I'm still uneasy about the process and would like confirmation. I'd rather do this one time correctly. I want to shrink /dev/sda6/ by 200GB and reallocate it to /dev/sda2. I boot a LiveCD and turn off LinuxSwap (locked otherwise). I've been reading that it is very hard to move &quot;left&quot; when partitioning and other AskUbuntu threads are confusing me. Do I need to resize /dev/sda6 by 200GB &quot;preceding&quot; (rather than &quot;following&quot;), and then resize /dev/sda4 by 200GB? A little guidance would ease my nerves of messing everything up. Thank you ahead of time. When is using the past perfect tense not necessary? Squid IP Routing Issue I have a squid server installed with 30 additional proxy addresses. Whenever I try to use one of these proxy addresses with a browser, like chrome, my IP shows as the main server IP as opposed to the additional address. For example, say the home IP is 192.0.0.10 and the additional IP I'm trying to use is 192.0.0.13, when going to a &quot;what is my IP&quot; type of site, it shows 192.0.0.10 no matter what additional address I use. Any idea as to why this might happen? Thanks for any help. I am working to build a reinforcement agent with DQN. The agent would be able to place buy and sell orders for a day trading purpose. I am facing a little problem with that project. The question is "how to tell the agent to maximize the profit and avoid the transaction where the profit is less than 100$".  I want to maximize the profit inside a trading day and avoid to place the pair (limit buy order, limit sell order) if the profit on that transaction is less than 100$. The idea here is to avoid the little noisy movements. Instead, I prefer long beautiful profitable movements. Be aware that I thought using the "Profit &amp; Loss" as the reward.  "I want the minimal profit per transaction to be 100$" ==> It seems this is not something that is enforceable. I can train the agent to maximize profit per transaction, but how that profit is cannot be ensured.  At the beginning, I wanted to tell the agent, if the profit of a transaction is 50 dollars, I will remove 100 dollars, then It becomes a penalty of 50 dollars for the agent. I thought it was a great way to tell the agent to not place a limit buy order if you are not sure it will give us a minimal profit of 100$. It seems that all I would be doing there is simply shifting the value of the reward. The agent only cares about maximizing the sum of rewards and not taking care of individual transactions.   How to tell the agent to maximize the profit and avoid the transaction where the profit is less than 100$? With that strategy, what guarantee that the agent will never make a buy/sell decision that results in less than 100 dollars profit? Does the sum of reward - # transaction * 100 can be a solution? Is there a function $f\colon\mathbb{R}\to\mathbb{R}$ such that every non-empty open interval is mapped onto $\mathbb{R}$? I wonder  whether there is a function $f\colon\Bbb R\to\Bbb R$ with the folowing characteristic?   for every two real numbers $\alpha,\beta,\alpha\lt\beta$,  $$\{f(x):x\in(\alpha,\beta)\}=\Bbb R$$   I can't  say such a function does not exist, neither can I construct a example  Thanks a lot! When a Battle Master fighter gets a critical hit and uses a maneuver that adds a superiority die to the damage, is that damage die doubled? The Battle Master fighter has access to a number of maneuvers that add a superiority die to the damage roll. For instance, the Trip Attack maneuver says (PHB, p. 74):     When you hit a creature with a weapon attack, you can expend one   superiority die to attempt to knock the target down. You add the   superiority die to the attack’s damage roll, and if the target is   Large or smaller, it must make a Strength saving throw. On a failed   save, you knock the target prone.   The Critical Hits rule states (PHB, p. 196):     When you score a critical hit, you get to roll extra dice for the   attack’s damage against the target. Roll all of the attack’s damage   dice twice and add them together. Then add any relevant modifiers as   normal. [...] If the attack involves other damage dice, such as from   the rogue’s Sneak Attack feature, you roll those dice twice as well.   During our game, the fighter PC rolled a critical hit. He then wanted to use a superiority die to use the Trip Attack maneuver to trip the enemy. Based on the above rules, is the damage from the superiority die also doubled?  I'm assuming the answer is yes based on the last statement in the Critical Hits section, but I wanted to confirm. Do I need the original discs to install WoW on a new computer? My boyfriend bought the World of Warcraft Battle Chest, Wrath of the Lich King, &amp; Cataclysm. He downloaded them to our previous computer, but now we have a new one and when he took out the first disk from the battle chest he severely scratched it. Anyway, I tried putting in disk #2, and it said I couldn't do it without disk 1 (which is scratched!).  I've recently put in Wrath of the Lich King (it came with 2 CDs), and it said that I haven't downloaded the original and asked me if I wanted to downloaded. I clicked "yes" -- does that mean its downloading WoW &amp; The Burning Crusade? Or do we need to buy it all again?  We just bought the whole set on June of this year... I'm currently unable to access anything via the Stack Exchange app under iOS; is this a known issue? Iterated self-composition of arbitrary function Does there exist some notation that represents the iterative composition of a single-input, single-output function with itself? As in, say, $f_5(x)=f(f(f(f(f(x)))))$.  In other words, going by the above (incorrect, I'm pretty sure) notation:  $f(x)=x+1$, $f_n(m)=m+n$  I'm looking for the correct way to express the notion of "$f_n(x)$" for any $f$. With Unix script, I'd like to add values in column 1 if text in column 2 is the same and print the sum.  I have a file that is:    7 GeneA 2 GeneB 6 GeneC 2 GeneB 9 GeneA   I want the output to look like:   16 GeneA 4  GeneB 6  GeneC   Thanks Disable ssh password authentication by user Is it possible to enable ssh password authentication for one user on a system and disable it for an other.  If you add  ChallengeResponseAuthentication no PasswordAuthentication no UsePAM no   to /etc/ssh/sshd_config you disable it for all users  Adding it to ~/.ssh/config doesn't seem to work Maybe the concept, why it's used, and an example. "can't" versus "couldn't", what is the difference? That can't be Obama at the door, it's too early.  That couldn't be Obama at the door, it's too early.    What is the difference between them? Are they almost the same? how to *completely* turn off automatic updates in Windows 10 I have disabled the services &quot;Windows Update&quot; and &quot;Windows Update Medic Service&quot; in using services.mcs. Furthermore, I made changes to the registry, creating a key HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU with a DWORD (32-bit) Value &quot;AUOptions&quot; with value set to 2. I still see frequent queries to ctldl.windowsupdate.com sent to my DNS server. Which services need to be disables to completely shut this down? I want to determine whether a multi-line string ends with a line containing specified pattern.  These code failed, it doesn't match.  s=`echo hello &amp;&amp; echo world &amp;&amp; echo OK` [[ "$s" =~ 'OK$' ]] &amp;&amp; echo match What are the use cases for different scoping constructs? What does it mean to "program to an interface"? What does Morgoth look like? Is Morgoth, the original enemy in J. R. R. Tolkien's Middle-earth ever visually described? I envisage him as a bigger, meaner version of the physical Sauron, but I cannot find any reference in The Simarillion. Some icons are correct, and some are whack. Turns out it's not just the hot questions list, but the whole icon set. Consider the symmetric group $S_5$. I would like to find how many elements of $S_5$ are of order 5, and how many are of order 6. I would also like to determine what the maximum order of an element in this group would be.  Here is what I have so far: elements of order 5 are the 5-cycles. Elements of order 6 (since a 6-cycle is impossible for 5 elements) must have at least an even cycle and a cycle of length divisible by 3, and 2 + 3 = 5, so elements of order 5 are a combination of 2-cycles and 3-cycles.  How can I find the total count of such elements of order 5 and order 6, and the maximum order? I'm not entirely sure where to go from here.