Three years ago I worked for some period with Ubuntu 14.04.   I am familiar with the command line. My question are the following:   1) How can I use the command line to get a .txt version of a list containing all the installed programs and applications?  2) After installing, with a bootable USB, the version 16.04 (I have already created the USB and use to install this version to another computer so I am already familiar with the relevant procedure), how can I use the aforementioned list in order to install the programs and applications installed initially (i.e., before the upgrading)?  Thank you in advance for your feedback.
I'd like to output a list of all installed packages into a text file so that I can review it and bulk-install on another system.  How would I do this?
I'd like to run a .sh file using bash on logout and shutdown of Ubuntu. I have searched up and down the web and have found only fixes for KDE and GNOME. The script is simple, I just need to know if I can add the line of code to the "logoff/shutdown" file or if I need to reference it in another script. Why does Jack let Walt go? In Breaking Bad S5 E14, Jack not only lets Walt go, but also leaves a barrel of money to him after killing Hank. I don't understand why he would do this. Jack says that, with 7 barrels of money, he doesn't need to cook meth any more, so there is no reason to keep Walt (the witness of the killing) alive, let alone to give him so much money. What's the rationale behind this? Or it's just mercy or respect? When is it useful to include the code in a thesis? I am writing my master of science thesis and I am not sure whether I should add some of the code I have written: they are not proper programs, but more like input files to be fed to a commercial program (Nastran) very popular in my field.  My concerns are related to the fact that I am not making any discovery, just applying the things I have learned reading the manual. Still, I feel the code will make the effort I put into the thesis to also learn this language clearer. I am looking for an easy way to create in Illustrator vintage style corners like on the picture provided.  I have some technical ideas, but they are time consuming, there should be an easier way I believe. "I didn't realize it was him." I have a simple 2-column layout with a footer that clears both the right and left div in my markup.  My problem is that I can't get the footer to stay at the bottom of the page in all browsers.  It works if the content pushes the footer down, but that's not always the case. Show that an algebraically closed field must be infinite.    Answer  If F is a finite field with elements $a_1, ... , a_n$ the polynomial $f(X)=1 + \prod_{i=1}^n (X - a_i)$ has no root in F, so F cannot be algebraically closed.  My Question  Could we not use the same argument if F was countably infinite? Couldn't we say that if F was a field with elements $a_1, a_2, ... $ then the polynomial $f(X) = 1 + \prod_{i=1}^{\infty} (X - a_i)$ does not split over F?  Thank you in advance How to compute the size of the allocated memory for a general type Antonym of "deepen" Since there is no word "shallowen", is there a good antonym of "deepen"? The meaning of "deepen" that I am referring to here is "to cause to become deeper." It doesn't necessarily refer to digging a hole. For example, a temporary deformation in a soft surface:     Putting the anvil on the mattress deepens the depression in it, but removing the anvil ______ it.   I would also be happy with an antonym of the intransitive version "to become deeper." In Clash of Clans there was an update on 9/16 adding a Tie-breaker into the wars, can anybody explain in detail how this mechanism works? Port forwarding with UFW I realize UFW is mainly just for enabling/disabling access on particular ports, but I'm trying to forward one port to another. I want any connection to port 1724 to be forwarded to 1723.   The file /etc/default/ufw already has DEFAULT_FORWARD_POLICY="ACCEPT". And I believe I need to uncomment net/ipv4/ip_forward=1 in /etc/ufw/sysctl.conf. Finally I need to edit /etc/ufw/before.rules to add an iptables rule.   And here is where I get lost because I can't find any documentation for this file. Where do I add the rule? And how exactly?  In particular:   On exactly which line do I add the rule? Do I put anything before or after it? .NET obfuscation tools/strategy Find the product $\prod_{n=1}^{\infty} (1+x^{2n-1}) $ Improving "demonstrate a minimal understanding" close reason Note: the eventual outcome of this discussion involved dropping this particular off-topic reason, along with other changes. See:  &nbsp; &mdash;Shog     I was using the reason "demonstrate a minimal understanding" myself quite frequently, but the more I review, the more I have doubts about it and I think this reason can either be dropped entirely or at least rephrased, so I started to use "problems with code you've written must describe the specific problem" instead:     Questions asking for code must demonstrate a minimal understanding of the problem being solved.   So the poster has posted some description, maybe even a snippet of code and in his mind that already proves that he has that minimal understanding required. After all he described the problem and what he tried to solve. So telling him that he lacks that understanding is rather rude, and from the posters point of view doesn't even apply. What both version of the reason not emphasize is that a description of a problem is not various versions of     it doesn't work   but that we rather mean really specific details (see below). I can often see in the reopen review queue that the "improved" version just includes a more verbatim description, while what usually would be expected is some specific error message, a trace or a log, or whatever applies.  Then it continues with:     Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist   comparing it to:     problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.   Which says essentially the same, only in more detail.   So the "minimum understanding" reason is IMO a more rude version of the reason telling the user that an SSCCE is missing.  The intent of giving this reason is to tell the user that he needs to give exact details to be able to help him, so IMO a checklist would be much better. Something like:     Your question was closed because it may not provide enough details. Things you can do to improve your question to get an answer include:         Format the code in a way that makes it readable and easily understandable.   Provide the smallest working sample of code demonstrating the problem (link to SSCCE)   Include your input and output.   If applicable provide logs (i.e. Android debugging log, stack trace, etc.).   If applicable provide the exact error messages (compiler, etc.).      And something like this should be best included already in the banner that appears when a question is closed instead of being hidden in some pages you often enough have to actively looking for.  It might be helpful to adjust this, based on the tags or close reason, as I realize that I'm more focused on the programming area, and the above list may not apply to other areas of SO.  Update  Another thing I forgot to mention (but wanted to) is this:     Questions asking for code   Is IMO essentially an invitation of the type of questions     I have a problem, can you provide the solution? (with an optional please)   while     Questions concerning problems with code you've written   puts at least some emphasis on the fact that the poster has to put some effort himself in trying to solve the problem by providing the code which he used to attempt the solution. Proving that $n$-cycle has order $n$ So I've been trying to create a mathematical model for an electric motorcycle and began to wonder about the maximum possible torque that could be supplied to the rear driven wheel without having the bike begin to lift up on one wheel.  I found ways to calculate this value online; however, the basic concept as to how the bike actually lifts escapes me.    My problem started when I began to think about what axis the bike will rotate about when it is doing the wheelie.  My first intuition was that the frame and front wheel, together, rotate about the rear axle.  But when I drew a free body diagram of the frame/front wheel system just at liftoff (see below) I made note that the only forces acting about the rear axle, point O, is the force of weight.  This means that an increase in applied torque and subsequently, the applied force Fa, should not effect the rotation about the rear axle.  I know that the applied force on the back wheel is indeed correlated with the propensity for a bike to wheelie, so I considered that the axis of rotation I was choosing was wrong.  If we take the free body diagram above and sum the moments about the center of mass, we would find that an increased applied force would in fact cause the solid body to rotate.  The problem with this understanding is that during rotation, the center of mass of the drawn system should actually rises relative to the surface the bike is moving across.  If the bike were to be truly rotating about its center of mass, then the back wheel would begin to dip below the surface of the road like you might see in a glitchy video game.    So I suspect that the bike is in fact rotating about the back axle, but I don't understand why, please help!  edit: I added the external torque from the back wheel to the frame, which would allow the bike to rotate about the back axle  edit 2:  I suppose that the torque acting on the frame via the engine should not effect the rotation as the movement of a motorcycle can be perfectly replicated by applying a force at the back axle.  A third possible axis of rotation might be the lowest point of the back wheel. Passing Javascript variable to Get full name twice in Bibliography I use biblatex with style=authoryear and when there are two references of the same author in the bibliography there is just a dash. How can I get the full name in the second entry too? In the discussion from a question I asked several days ago (), someone suggested that I use general.runalg() instead of processing.runalg() for running QGIS algorithms.    I've now used both, and haven't noticed a difference in either performance or syntax between them.  I'm just wondering what sort of differences there are between these two methods, and which one I should be using. The limit of $((1+x)^{1/x} - e+ ex/2)/x^2$ as $x\to 0$