Bash export in a script; To next script?
Can a shell script set environment variables of the calling shell?
How can I install Celestia on Ubuntu 18.04.1? Recover data from SD card I have a 2&nbsp;GB Kingston  card which is about three years old. I put it in a reader today in my Windows Vista computer, wrote a 32&nbsp;MB file onto it, safely removed it, and then tried to read it elsewhere. Nothing. Putting it back in the Windows Vista computer it now says:     You need to format the disk in drive F: before you can use it.   What should I do? I have access to many computers and OSes if your recommendations need that. I would be very sad if I lost all the contents of the card. Most of the data is backed up, but there are a few things that aren't. :(  Doing a   # dd if=/dev/sdg of=~/tmp/sd.bin   gives me a 2&nbsp;GB file, and  the file it seems like lots of my data is still there. How can I put it back together? Resistor in series needed with LED string? Expected value as a function of quantiles? I was wondering where there is a general formula to relate the expected value of a continuous random variable as a function of the quantiles of the same r.v. The expected value of r.v. $X$ is defined as: $E(X) = \int x dF_X(x) $ and quantiles are defined as :  $Q^p_X = \{x : F_X(x) = p \} =F_X^{-1}(p) $ for $p\in(0,1)$.  Is there for instance a function function $G$ such that:  $E(X) = \int_{p\in(0,1)} G(Q^p_X) dp $ Suppose that $y_1(x)$ and $y_2(x)$ are solutions of the differential equation $y''+py'+qy=0$ on $I$. How can I show that if $y_1$ and $y_2$ vanish at the same point then they are not linearly independent?   Here is my attempt to prove the problem. Since $y_1(x)$ and $y_2(x)$ are solutions of the differential equation $y''+py'+qy=0$ on $I$, it is enough for me to show that the Wronskian of $y_1$ and $y_2$ denoted by $W(y_1,y_2)$ is zero. Now since $y_1$ and $y_2$ vanish at the same point say $p$ we have $y_1(p)=0$ and also $y_2(p)=0$.   Solving for $W(y_1,y_2)(p)$ we have: $y_1(p)y_2'(p)-y_2(p)y_1'(p)=0$ since $y_1(p)=0$ and also $y_2(p)=0$.   Am I correct? Thanks When an option expires does that constitute a buy or sell A similar question recently asked about stock sales and option buys triggering wash sale rules.  If an option expires, is that considered a buy/sale ?  What I mean is: let's assume I have a call option with a target date of August 16. Now I sell the underlying stock somewhere before that (after July 16th). Does that trigger wash sale rules (if the option expires in the money, exercised by default) ?  Is an option expiring out of the money considered a sale ? Where should shell tools be installed? Are there Apple guidelines for where user shell tools in Mountain Lion should be installed? Some (e.g. TeX, or Apple's Git) end up in /usr, and others (e.g. X11) seem to end up in /opt (sometimes with a symlink from /usr), while others (e.g., Git) end up in /user/local, and I wonder what the difference is, and whether one is preferred over the other. How to print only defined variables (shell and/or environment variables) in bash The bash builtin command set, if invoked without arguments, will print all shell and environment variables, but also all defined functions. This makes the output unusable for humans and difficult to grep.  How can I make the bash builtin command set print only the variables and not the functions?  Are there other commands which prints only the shell variables, without the functions?  Note: bash differentiates between shell variables and environment variables. see here Spoilers from the Season 7 finale of Game of Thrones, "The Dragon and the Wolf".  In one of the final scenes, Jaime and Cersei are discussing Jaime's future with them, at which point       Cersei nods her head, signaling the kill order for 'The Mountain', yet 'The Mountain' pulled out his sword but why didn't he kill Jaime? How to solve: -bash: : cannot execute binary file I have a file named b1 that contains assembly language. I am trying to execute the file on OSX using   $ ./b1   I get the following error:   -bash: ./b1: cannot execute binary file   I've looked at other similar questions, but to no avail. I'm definitely using a 64 bit architecture.   Here are output of relevant info:  $ file b1 b1: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped $ uname -a Darwin Anthonys-MacBook-Pro.local 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64   Edit:   Ran as b1 which ended up terminating with:  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as: fatal error in /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/x86_64/as What is the name of this Ubuntu program? A couple month ago I installed a bunch of clipboard manager programs in Ubuntu, tried them out and then removed them. I must have missed one of these and now it keeps bug me in my daily usage. I need some help to identify the name of this program because the program itself provides very limited information.  This clipboard program has below characteristics: 1. It occupies hotkey Ctrl+;. When I press this hotkey, the clipboard history will pop out. It happens in bash, Chrome, Eclipse IDE, and etc, wherever it is text inputable. This is kind of annoying because it overrides my other hotkeys inside these applications. 2. Very laconic UI. Like below picture, with only a line "Select to paste", then listing out the clipboard history. There is no program information whatsoever. Right clicking on it and no menu are shown at all.      So far I have tried below ways to identify this program: 1. Browse system monitor for processes with names that could be correlated. 2. Browse through my installation log (dpkg.log) to find my installation history. Without luck, the log is lost. But I was not successful. Automorphism group of direct product of groups I was working on a problem in group theory, which asks about the automorphism group of a direct product of groups.  Okay, so I know that if $G,H$ are two groups whose orders are relatively prime, then $\operatorname{Aut}(G\times H)\cong\operatorname{Aut}(G)\times \operatorname{Aut}(H)$.  I also know that if $G,H$ are abelian and simple and isomorphic, then $\operatorname{Aut}(G\times H)\cong \operatorname{GL}_2(\mathbf{Z}_p)$ where $p$ is the order of $G$.  What I don't know is the following: what if $G,H$ are simple, yet not abelian? Let us for now focus on a more restricted case where $G\cong H$, in particular, $G=H$. What can we say about the group $\operatorname{Aut}(G\times H)$? (I heard something about this group being related to what is called "wreath product", which I do not know...)  Thanks bunch in advance! Is it safe to eat potatoes that have sprouted? I'm talking about potatoes that have gone somewhat soft and put out shoots about 10cm long.   Other online discussions suggest it's reasonably safe and the majority of us have been peeling and eating soft sprouty spuds for years. Is this correct? Word for "blissfully oblivious"? 'had better not entangle' v 'had better not to entangle' Can I write this sentence:     He said Carter had better not entangle the US in problems like those   in Afghanistan, Somalia and Iraq.   Like this:     He said Carter had better to not entangle the US in problems like those   in Afghanistan, Somalia and Iraq.   ?  If so, what's the difference between the meaning of both sentence? Possible Duplicate:           What book would you recommend for an undergraduate wanting to learn the basics of topology? I've come across several books that claim to give an introduction to the subject, but I wasn't sure which one(s) to pick.  Here are some of the books I came across:   Introduction to Topology - Bert Mendelson Basic Topology - M.A. Armstrong First Concepts of Topology - William G. Chinn Topology Without Tears - Sidney A. Morris Topology - James Munkres   They don't go over the exact same topics, some are more in-depth than others, some seem to target slightly different audiences etc. What would be right for me (not necessarily from that list)? To give some more background, I want to learn topology because I feel it will be somewhat helpful in the field of Computer Vision. How to insert an image that also acts as a link Skype doesn't work in Ubuntu 14.04 Add a transparent image on top of a material Is there a way to condition output on a given date? I'd like to be able to print text that varies depending on whether the date matches a given date string  For example  suppose there was a command   \iftoday#1#2#3   which printed #2 if \today matched the string in #1 and #3 otherwise.  So a sample of my proposed usage would be:     \iftoday{February 3, 2016}{There's no garbage today}{Please put out the garbage}    I've tried various commands like pdftexcmd's strcmp, to no avail.    I suspect the problem may have to do with matching the string generated by \today.    While on screen it appears that \today returns February 3, 2016. I can't get it to match February 3, 2016 when I compare strings.  Obviously, I'd be perfectly happy if I could get this to work by represent today's date in any of the standard date formats.  Thanks very much in advance for any suggestions.