If I do the code:  echo "printf 'working'" | sh   the code prints out working  but when I want to change the current directory this way:  echo "cd ../" | sh   the current directory isn't changed.  Do you know the reason behind that behavior? do you know how to echo cd command to sh in a working way?
I'm trying to write a small script to change the current directory to my project directory:  #!/bin/bash cd /home/tree/projects/java   I saved this file as proj, added execute permission with chmod, and copied it to /usr/bin. When I call it by: proj, it does nothing. What am I doing wrong?
I'm very confused about tenses.  I have examples in two different situations here. Situation 1: I went to New York two months ago and was talking to someone about it.  A. This is the first time I've been to New York. B. That was the first time I'd been to New York.  Which is correct in a daily conversation?  Situation 2: I'm going to New York next month and talking to someone.  A. This will be the first time I've been to New York. B. This is the first time I've been to New York. C. This will be the first time I go to New York.  Which sentence is appropriate?  According to a grammar article I've read before, I think it says that I can use this sentence in both cases:  This is the first time I've been to New York.  But I'm not sure if this is really so. So I'd like to know which tense I should use in each case. Could you explain it? Maximum log level exceeded in Developer Console Recently I have regularly been getting the error message below when opening the Developer Console:     The Developer Console didn't set the DEVELOPER_LOG trace flag on your   user. Having an active trace flag triggers debug logging. You have 316   MB of the maximum 250 MB of debug logs. Before you can edit trace   flags, delete some debug logs.   It happens in sandbox and scratch orgs. Haven't tried in production.  This only started happening recently. It goes away after clearing the logs but comes back after a few test runs.  Also: the Debug->Clear->Log Panel action is not working for me -- the logs stay put. I can remove them using the Query Editor as described , but it's pretty tedious.  Two questions:   Does anyone know a way to prevent the logs from exceeding the max level? Perhaps by having old logs cleared out automatically? Is there a known issue with the Clear Log Panel action? I am using Chrome btw.   Thanks! How strong is Superman on Krypton? When Superman goes back to visit his home planet (using his ability to travel through time, I guess), is he:    an exceptionally strong and athletic Kryptonian? just an average Kryptonian male? a weakling on account of spending a lifetime in the comparative microgravity of Earth?   A possibly related question: why is Superman so muscular? What kind of weights does he lift to stay in shape?  The answers to  are all about Superman's superpowers on Earth compared with other visitors from Krypton; I'm asking about Kal El without his superpowers.  Clarification: I'm asking about the "classic"  Superman, say late Golden to early Silver Age, roughly 1945-1960. (Yes, I know the concept evolved during those years.) I'm not sure what that would be in terms of "numbered Earths", those came along after my time. I'm pretty sure the Kryptonians of that era had no superpowers in their native milieu, nor would Kal El if he were deported in space-time to his native world. How did Sauron remain in control of the Nazgûl? 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 If $\sin \theta+\cos\theta+\tan\theta+\cot\theta+\sec\theta+\csc\theta=7$, then $\sin 2\theta$ is a root of $x^2 -44x +36=0$ My own bonafide attempt. $$ 0&lt;\theta&lt;\pi/2$$   and $$\sin\theta+\cos\theta+\tan\theta+\cot\theta+\sec\theta+\csc\theta=7$$   then show that $\sin 2\theta$ is a root of the equation $$x^2 -44x +36=0$$   I tried to use the above given equation of all the trigonometric ratios, though I ended up with an expression of $\sin\theta\cos\theta$.   But this too is in the form of $\sin\theta$ and $\cos\theta$ which was $\sin\theta\cos\theta=\frac{1}{6-\sin\theta-\cos\theta}$.  When I put that in the quadratic equation, it would again transform into the form of $\sin\theta$ and $\cos\theta$, and hence at last I couldn't prove the thing.  Even hints would work, as I would like to solve the question myself. How does HOTP keep in sync? My understanding of  is that each password is unique and based on a counter.    $$PASSWORD = HOTP_1(K,C)$$  Where $C$ is an incremental counter.  What I wish to know, is how you keep the client and server in sync?  Looking at current systems (google authenticator), there appears to be no indication if the actual 'counter' number, but you can generate successive passwords at will.  What happens if, for example, the password you have generated uses $C = 5$, but the server is expecting $C = 3$?  Also, what is the 'integrity check' for?  Google cant seem to come up with a solution. Salesforce1 on focus scroll to the top Blender 2.8 - AWS EC2 command line EEVEE render I have been trying to get this to work for a couple days now. I have an EC2 P2 instance with NVIDIA CUDA configured by default, its a Deep learning Ubuntu AMI. This OS does not have a GUI so everything is via terminal.  I downloaded Blender's 2.8 TAR file for Linux and set it up on the EC2 instance. And ran the following command from the directory where the TAR file is extracted:   ./blender -b -noaudio /home/ubuntu/file.blend --render-output . --engine BLENDER_EEVEE --render-format PNG --verbose 4   All I see in the output is this:  Blender 2.80 (sub 75) (hash f6cb5f54494e built 2019-07-29 17:17:04) found bundled python: /mnt/blender/blender-2.80-linux-glibc217-  x86_64/2.80/python Read blend: /home/ubuntu/file.blend  Blender quit   Don't know why its quitting but I am unable to debug this any further. Any help would be appreciated.  UPDATE: As per @rjg's recommendation, ran the following command:  ./blender -b -noaudio /home/ubuntu/file.blend --render-output . --engine BLENDER_EEVEE --render-format PNG -f 1 --verbose 4   Got the following error:  Blender 2.80 (sub 75) (hash f6cb5f54494e built 2019-07-29 17:17:04) found bundled python: /home/ubuntu/blender/blender-2.80-linux-glibc217-  x86_64/2.80/python Read blend: /home/ubuntu/file.blend Unable to open a display Aborted (core dumped) Event handler not working on dynamic content Highest power of a prime $p$ dividing $N!$ How does one find the highest power of a prime $p$ that divides $N!$ and other related products?  Related question: How many zeros are there at the end of $N!$?    This is being done to reduce abstract duplicates. See   and  for more details. Page title with substitution on views page I have a view page that requires a dynamic page title. It is a simple substitution of the label field.  If I use {{ label }} it works fine for the title displayed on the page, but it doesn't substitute the label for the actual page title (in meta)  I was able to fix this by using hook_views_post_render using the following code  // Set the route title. $route = \Drupal::routeMatch()-&gt;getCurrentRouteMatch()-&gt;getRouteObject(); $route-&gt;setDefault('_title', $title);  $view-&gt;setTitle($title);   However, the title only works if the page is not cached. For the cached pages, the page title is missing. This feels like a bug in drupal, but I am hoping that there is a simple way to get this done. Plotting function defined with Lua doesn't do anything Why can't "fi" be separated when being copied from a compiled pdf? Why Was Peter Pettigrew Sorted To Gryffindor? It would be nice to  for .  As it is, SE kind of stands out (in a not cool way): in my earlier question you can find at:   i describe my error:     I'm using an Asus Zenbook UX562F with an integrated GTX 1050 Max-Q.   After the installation, I installed Nvidia-390 and updated the kernel   with ukuu to 4.20.17 to fix no sound issue.      After the reboot, everything went well and I did:      apt-get update apt-get upgrade + J      All was done well, so I restarted and on the next boot after selecting   Ubuntu in GRUB it gave me a long black screen (violet screen) where   nothing changes after so much time.      I tried to add nomodeset and noveau.modeset=0 single and together but   didn't help so I don't know what to do.   After investigating deeper by installing packages and try to boot i found out that the package which is causing the error is:  intel-microcode   when i purge and block this package with:  sudo apt-get purge intel-microcode sudo apt-mark hold intel-microcode   before upgrading wuth  sudo apt-get upgrade   my system is able to boot normal.  The problem i see is that as i understand it the package protects my intel cpu  Intel® Core™ i7 8565U 1.8 GHz   is vulnearable to meltdown attacks which get fixed by the package.  What can i do to fix the vulnearbility and also get my system to a bootable state?  Thanks for your help Vimu  Edit: I used the manual update technique mentioned at (in german):    and i used the files from the intel github repo:    with the following code mentioned in the tutorial to update the firmware microcode files  sudo cp intel-ucode/06-8e-09 /lib/firmware/intel-ucode/ echo 1 | sudo tee /sys/devices/system/cpu/microcode/reload   i overwrote the old microcode firmware with the newest available on the intel repo  it leada to a bootable system  will this be the best possible fix without upgrading the intel-microcode package provided by apt? Proof that disjoint cycles commute Prove that the average of iid Gaussian random variables is Gaussian Given $x_1, \ldots, x_N$, independent and all distributed as a   Gaussian with mean $\mu$ and variance $\sigma^2$. Then, the average   $$\bar{x} = \frac{1}{N}\sum_{i=1}^Nx_i$$ is distributed as a Gaussian   with mean $\mu$ and variance $\frac{\sigma^2}{N}.$   This is a very well-known result. Anyway, I'm looking around to find a proof for this and I'm not having luck. Where should the period be put when an entire sentence is quoted at the end of a sentence?