Actually, my Powershell can't resolve many commands while cmd/bash can: node, git, npm, etc... PS C:\Users\vssen&gt; notepad notepad : The term 'notepad' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + notepad + ~~~~~~~     + CategoryInfo          : ObjectNotFound: (notepad:String) [], CommandNotFoundException     + FullyQualifiedErrorId : CommandNotFoundException  But PowerShell MUST at least open notepad with &quot;notepad&quot; command! Note: it is opening notepad by &quot;notepad.exe&quot; command, but it must do it without &quot;.exe&quot;. I think this error also make issues to me while I am working with git and node too, and I see a lot of opened issues similar to that, and there is still no answer. Example error behavior with other commands: npm: open new console; npm.exe --version: no output; git: not found; node: not found; git.exe: open and close console; node.exe: open nodejs console window; THINGS I TRIED:  clear all user and system paths, adding only for nodejs for example, or only system32 DISM sfc /scannow Installation of separated PowerShell 7 (cross platform) - SAME ISSUE! Get-Command can't find path without &quot;.exe&quot;, can with &quot;.exe&quot;  PS C:\Users\vssen&gt; $PSVersionTable  Name                           Value ----                           ----- PSVersion                      5.1.19041.906 PSEdition                      Desktop PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...} BuildVersion                   10.0.19041.906 CLRVersion                     4.0.30319.42000 WSManStackVersion              3.0 PSRemotingProtocolVersion      2.3 SerializationVersion           1.1.0.1  env variables vssen: Path: C:\Program Files\nodejs;C:\Users\vssen\AppData\Local\Programs\Python\Python39\Scripts\;C:\Users\vssen\AppData\Local\Programs\Python\Python39\;C:\Users\vssen\AppData\Local\Microsoft\WindowsApps;C:\Users\vssen\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\vssen\AppData\Roaming\nvm;C:\Program Files\PostgreSQL\13\bin; system: Path: C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Program Files\Conan\conan;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%SYSTEMROOT%\System32\OpenSSH\;%NVM_HOME%;%NVM_SYMLINK%;C:\Program Files\PostgreSQL\13\bin;C:\Program Files\dotnet\;C:\MinGW\bin;C:\Program Files\CMake\bin;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\PowerShell\7\;C:\Program Files\Amazon\AWSCLIV2\ I've validated every path in env Path, all links are valid (and PowerShell &amp; cmd must work with invalid links as well!) C:\Users\vssen&gt;where where C:\Windows\System32\where.exe   C:\Users\vssen&gt;where notepad C:\Windows\System32\notepad.exe C:\Windows\notepad.exe  Maybe someone know Microsoft developers) Help is much appreciated! i don't want to reinstall Windows please... PS: all possible related and non-related things to mention  OS Build: 19043.985 Windows Feature Experience Pack 120.2212.2020.0 (don't know what is it) I have WSL use nodejs via nvm have bash (from git installer)
Using Windows 10, I can't run certain commands from PowerShell but they all work correctly using cmd. PowerShell: node --version: node : The term 'node' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + node --version + ~~~~     + CategoryInfo          : ObjectNotFound: (node:String) [], CommandNotFoundException     + FullyQualifiedErrorId : CommandNotFoundException  node.exe --version: no output. node.exe: opens a new black console (node.exe application itself). Get-Host | Select-Object Version: Version ------- 5.1.19041.906  Get-Command node: The term 'node' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + Get-Command node + ~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (node:String) [Get-Command], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException,Microsoft.PowerShell.Commands.GetCommandCommand Get-Command node.exe: CommandType Name Version Source ----------- ---- ------- ------ Application node.exe 14.16.1.0 C:\Program Files\nodejs\node.exe $env:Path output has nodejs &amp; git &amp; other paths. cmd: everything works fine with any command. I have git and nodejs in my PATH env variable. What's wrong with PowerShell, what a strange behavior is this and how to fix it?
How can I limit ssh *remote* port forwarding? I need to limit which ports can be remotely 'ssh -R' forwarded by an user.  I know about permitopen option on authorized_keys, but as it says on man page it only limits local 'ssh -L' port forwarding  As discussed  a user would get the same with netcat or similar, but in this case user has no shell access  I also found  that talks about using selinux or LD_PRELOAD, but I never configured selinux before and can't find info on how to do that with LD_PRELOAD.  maybe someone have made a patch for openssh to implement that?  EDIT: I've found  so I guess it's not yet implemented Why is wine made 'from' grapes, but tables are made 'of' wood? (1) Wine is an alcoholic beverage made from fermented grapes or other fruits. (Wikipedia) (2) Tables were made of marble or wood and metal (typically bronze or silver alloys), sometimes with richly ornate legs. (Wikipedia)  Why is 'from' used in (1), whereas 'of' is used  in (2)? Is it a stylistic choice whether to use 'of' or 'from'? Or, in case of chemical changing, differently from changing in shape only, 'from' is preferable? In Unity3D, how do I create an efficient scratch card effect? I want to create a scratch-card-like effect in new Unity UI's new Image tag.  I know it's possible with setPixels, but that's prohibitively expensive on mobile devices.  Something like this:    I'd like the user to be able to drag on any part of the image to "scratch off" the top layer and reveal the content underneath it.  How can I do this? Nth derivative of $x^x$ A few days ago, I was wondering about a series expansion for $$f(x) = \  x^x$$ so I tried taking a couple derivatives. From these I was able to guess at some formulas for the general coefficients of the first few terms of the nth derivative as well as the last term (where I put the terms of the derivative in the order  $$f^{(n)}(x) = c_1x^x + c_2x^{x-1} + c_3x^{x-2}\ + \ ... \ +\ c_nx^{x-(n-1)}$$  Please let me know if there is a general formula for the coefficients as a function of n. In my own fooling around, I found that $$\ln(x)+1$$ appears quite a bit, so I called this $a$ in my work. Since I would like to center my expansion at $1$, and this expression evaluated to $1$, at $x=0$, I was interested in writing my formulas as functions of $n$ and $a$. I found that you get something of the form (this could very well be completely incorrect):  $$f^{(n)}(x) = ax^x + a^{n-2}{\binom n2}x^{x-1} + a^{n-4}(3{\binom n4}-a{\binom n3})x^{x-2}\\ + a^{n-6}(15{\binom n6}-10{\binom n5}a+2{\binom n4}a^2)x^{x-3}\ + \ ... \ +\ (-1)^n(n-2)! \ x^{x-(n-1)}$$  An interesting property that seemed to recur for the various coefficients was  that once I found a recursion formula for the coefficient in question and plugged in my initial value, it always seemed to be the same as taking the integral of the previous coefficient with respect to $a$. That is to say, if I plugged in the nth coefficient (a polynomial of $a$) into my recursion formula for the $(n+1)$th coefficient, this gave me the same result as integrating. In general, as reflected by the few coefficient formulas above,  the formula for the coefficient of $$x^{x-c}$$ where c is an integer such that $$0\le c&lt;n$$ "Stabilized" to a polynomial of a with c terms after the first few applications of the recursion formula. This stabilization occurred when $$n=2c$$ Also, as a direct result of the tentative and incomplete formula I have written above, the first nonzero-value for the coefficient of $$x^{x-c}$$ is $$(-1)^{c+1}(c-1)!$$ and appears in $$f^{(c+1)}(x)$$ If these various properties are indeed true, can anyone explain why this would be the case? I am aware that this function can be expanded using the expansion for $$e^x$$ with $$x\ln(x)$$ in the exponent. This does not strike me as particularly enlightening (let me know if I'm missing something). I am most interested in the coefficients on the binomial coefficients, since these are the only things that stand between me and a general formula for the coefficients (since the form is quite standard). These are: $$1$$ then $$3,-1$$ then $$15, -10,2$$The sum of these coefficients should also give the nth derivative evaluated at zero since $$f(1) = 1$$ and $$a(1) = 1$$  Anyway, please let me know what you think! I am currently stuck due to an inability to brute force my way any further and a complete lack of cleverness. My knowledge of mathematics is quite elementary, so please explain any higher level concepts if they are necessary to explain this problem. Introductory Calculus textbook for physics? Javascript close alert box I want to be able to close an alert box automatically using Javascript after a certain amount of time or on a specific event (i.e. onkeypress).  From my research, it doesn't look like that's possible with the built-in alert() function.  Is there a way to override it and have control over the dialog box that it opens?  Also, I don't want an override that shows a hidden div as the alert.  I need an actual dialog box. Use counter before its value is set I'd like to use a counter in the text which however is only set at a later point. Like so:  \newcounter{howmany} There are \thehowmany items in this list: \begin{enumerate}   \item one   \item two   \item three \setcounter{howmany}{\theenumi} \end{enumerate}   And it should say "There are 3 items in this list". But that doesn't work. Well, sure. I need to use \refstepcounter to get that save-functionality. But \refstepcounter only increments it by one, and there doesn't seem to be a \refsetcounter ;) Any suggestions? A loop after the enumerate over \refstepcounters? Redefining \item to include \refstepcounter? There gotta be a simpler way, no?  Thanks! Can we add a section in our vf page and add components to it Can we add a section in our vf page and add components to it. I mean split my vf page into two parts and then add components to it. Background notebook template with spiral WiFi problems (Atheros driver) with FreeBSD 11 With FreeBSD 10.3 my Atheros card worked fine and showed up as /dev/ath0. Now with FreeBSD 11 this is no longer the case, though the module is loaded and it seems the system recognizes the card:  root@igloo:~ # sysctl net.wlan.devices net.wlan.devices: ath0   Still, ath0 cannot be used:  root@igloo:~ # ifconfig wlan0 create wlandevice ath0 ifconfig: must specify a parent device (wlandev) when creating   What must I do to use the card? How can I check dependency list for a deb package Equivalence between least squares and MLE in Gaussian model I am new to Machine Learning, and am trying to learn it on my own. Recently I was reading through  and had a basic question.   Slide 13 says that "Least Square Estimate is same as Maximum Likelihood Estimate under a Gaussian model". It seems like it is something simple, but I am unable to see this. Can someone please explain what is going on here? I am interested in seeing the Math.   I will later try to see the probabilistic viewpoint of Ridge and Lasso regression also, so if there are any suggestions that will help me, that will be much appreciated also. How many ways can $r$ nonconsecutive integers be chosen from the first $n$ integers? Remove windows XP after installing Ubuntu why __getitem__ cannot be classmethod? How to prove that a limit does not exist? Let $x \in \mathbb{R}$ and let $\lfloor y\rfloor$ be the largest integer less than or equal to $x$. $$ f(x) = \frac{1}{x} - \left\lfloor\frac{1}{x}\right\rfloor$$ How does one prove that the $ \lim_{x\to 0} f(x)$ does not exist by using a Epsilon Delta proof? There is a hint given that you can use a proof by contradiction. Why don't my female dwellers give birth to children? Do electrons have shape? According to :     The electron has no known substructure. Hence, it is defined or assumed to be a point particle with a point charge and no spatial extent.   Does point particle mean the particle should not have a shape, surface area or volume?  But when I searched Google for the "electron shape" I got many results (like  and ) that says electrons are round in shape. How would I implement a binary search using just an array? How can I efficiently generate a Set from a List structure? I have a bit of code where I've written a SOQL query that returns a list of SObject records, however I need a Set&lt;Id&gt; structure to pass to another method that I don't have control of (and thus can't change the method signature of).  How can I turn my returned List&lt;SObject&gt; into a Set&lt;Id&gt;? Is the best option just a for loop?