I have a Ubuntu Server VPS and I want to use /bin/bash/ as my shell. How can I change my shell? I have root access but I don't work as root. So dash is my default shell now.  I have read  and chsh seams to be the preferred way to go. But when I type chsh /bin/bash I get this message: chsh: unknown user /bin/bash  And if I just type /bin/bash the Bash shell seams to work fine. How to change it?
I have a .bash_profile in my home directory, but it isn't getting run on login. If I do the following, then things seem to be as I expect:  ssh myhost bash source ~/.bash_profile   But normally that all happens on login. Thoughts?
Java synchronized static methods: lock on object or class The Java documentation says:      It is not possible for two invocations of synchronized methods on the   same object to interleave.   What does this mean for a static method?  Since a static method has no associated object, will the synchronized keyword lock on the class, instead of the object? Differentiability implies continuity - A question about the proof I have a question, to aid my understanding, about the proof that differentiability implies continutity.$\mathstrut$    Differentiability Definition  When we say a function is differentiable at $x_0$, we mean that the limit:  $$‎f^{\prime} ‎(x) = \lim_{x\to x_0} \frac{f(x) - f(x_0)}{x-x_0}$$ exists.  Continuity Definition  When we say a function is continuous at $x_0$, we mean that: $$\lim_{x\to x_0} f(x) - f(x_0) = 0$$  Theorem: Differentiability implies Continuity: If $f$ is a differentiable function at $x_0$, then it is continuous at $x_0$.  Proof:  Let us suppose that $f$ is differentiable at $x_0$. Then $$ \lim_{x\to x_0} \frac{f(x) - f(x_0)}{x-x_0} =  ‎f^{\prime} ‎(x) $$  and hence  $$ \lim_{x\to x_0} f(x) - f(x_0) = \lim_{x\to x_0} \left[ \frac{f(x) - f(x_0)}{x-x_0} \right] \cdot \lim_{x\to x_0} (x-x_0) = 0$$  We have therefore shown that, using the definition of continuous, if the function is differentiable at $x_0$, it must also be continuous.  My Question  The proof seems to execute the following steps:   Assume the function is continuous at $x_0$ Show that, with little algebra, we can change this into an equivalent question about differentiability at $x_0$. With this little bit of algebra, we can show that if a function is differentiable at $x_0$ it is also continuous.   What I am slightly unsure about is the apparent circularity. In my mind it seems to say, if a function is continuous, we can show that if it is also differentiable, then it is continuous. Rather than what I was expecting, namely, if a function is differentiable, we can show it must be continuous.  Hopefully my confusion is clear. Any help will be greatly appreciated. Where in the DNS process are NS records used? I register a new domain, mynewdomain.com, at a hosting company.   In the advanced DNS settings there is an A record which maps mynewdomain.com to a ip address.  In my webhost control panel, it shows me the nameservers for the domain: ns1.mywebhost.net &amp; ns2.mywebhost.net  When I type in mynewdomain.com into a browser and hit enter I believe the following happens.   ISP resolver searches "." nameserver ISP resolver then told to search ".com" nameserver instead. ISP resolver finds mynewdomain.com, and searches the zone file to get the A record.     So my question is, where does my webhost's nameservers come into play? I believe the flaw in my logic comes from the fact that my zone file (in which the A record is kept) is stored on ns1.mywebhost.net). But if that is the case, how does my ISP resolver know to look here? (because I didn't type this into my address bar) How to write an RSS feed with Java? I'm using Java, and need to generate a simple, standards-compliant RSS feed. How can I go about this? Calculate sum of squares of first $n$ odd numbers Is there an analytical expression for the summation $$1^2+3^2+5^2+\cdots+(2n-1)^2,$$ and how do you derive it? I would like the user to have full rights on this folder (as well as all sub-directories and files in it):  ~/.blabla   currently owned by root.  I have found numerous posts (in this forum and elsewhere) on how to do this for files but I can't find a way to do it for whole folders. What's the difference between lists and tuples? What's the difference?  What are the advantages / disadvantages of tuples / lists? .NET - What's the best way to implement a "catch all exceptions handler" I'm wondering what the best way is to have a "if all else fails catch it".  I mean, you're handling as much exceptions as possible in your application, but still there are bound to be bugs, so I need to have something that catches all unhandled exceptions so I can collect information and store them in a database or submit them to a web service.  Does the AppDomain.CurrentDomain.UnhandledException event capture everything? Even if the application is multithreaded?  Side note: Windows Vista exposes native API functions that allow any application to recover itself after a crash... can't think of the name now... but I'd rather not use it, as many of our users are still using Windows XP. 'pagesize' attribute ignored in hot network list Steps to reproduce:   Open  in Guest/Incognito mode or with cookies disabled. This will have 30 questions per page by default. Click the  link and as expected, you'll see questions 1-50 with page size of 50. Go the the  and see the bug: you're in the second page of 30 items per page, i.e. you'll see questions 31-60 instead 51-100 as expected.     It is very annoying. Please fix it.  My user-agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:70.0) Gecko/20100101 Firefox/70.0  There are no plugins installed affecting the site. It happens both when logged in or not.  The mechanism used to work before, but some weeks/months ago it stopped, enough to bother me to post here :)  Here are all modified "privacy" settings from about:support page:  privacy.clearOnShutdown.offlineApps true privacy.clearOnShutdown.openWindows true privacy.clearOnShutdown.siteSettings    true privacy.cpd.offlineApps true privacy.cpd.openWindows true privacy.cpd.passwords   true privacy.cpd.siteSettings    true privacy.donottrackheader.enabled    true privacy.history.custom  true privacy.item.cookies    true privacy.sanitize.migrateClearSavedPwdsOnExit    true privacy.sanitize.migrateFx3Prefs    true privacy.sanitize.pending    [{"id":"shutdown","itemsToClear":["cache","cookies","offlineApps","history","formdata","downloads","sessions","siteSetti privacy.sanitize.sanitizeInProgress ["cache","cookies","offlineApps","history","formdata","downloads","sessions","siteSettings","openWindows"] privacy.sanitize.sanitizeOnShutdown true privacy.sanitize.timeSpan   0 privacy.trackingprotection.enabled  true privacy.trackingprotection.introCount   20 I had the Facebook and Instagram apps installed on my iPhone (latest iOS). I deleted both apps and checked that there was no data from either app stored on iCloud (I went to Settings - iCloud - Manage storage and there was no mention of them storing anything on iCloud). Then I reinstalled Instagram, opened it, clicked on Login and the page still showed “Login as MYFACEBOOKNAME”.   How is this possible? How can I delete my FB login info once and for all on my iPhone? Communities list is counting my reputation wrong on some sites I have 101 rep on  and am not suspended there. But the site switcher thinks I only have 1 rep there:     I noticed this after I .   To test this, I just added Expats and Reverse Engineering to my site switcher list. On both of those sites I have 101 rep and am not suspended. Results:    Huh? Make "compact view" as a default directory view instead of "icon view" How can I make "compact view" the default for all directory views in File Manager, instead of "icon view" ? Prove: $|a\sin x+b \cos x|\leq \sqrt{a^2+b^2}$ $$|a\sin x+b \cos x|\leq \sqrt{a^2+b^2}$$   I have tried: $$|a\sin x+b \cos x|\leq |a+b|\leq \sqrt{a^2+b^2}$$  enough to prove: $$|a+b|\leq \sqrt{a^2+b^2}$$  But I can find how to continue from here The + vowel letter I've been told that when "the" is proceeded by a vowel sound, like "apple" or "hour", it's pronounced as "thee" and not as "thu".  But after listening to a couple of songs, I noticed that sometimes this "rule" is not followed. Take for example the two Katy Perry's songs, "Roar" and "The one that got away". In the first she sings "I got thee eye of thu tiger", but in the second she sings "Thu one that got away".  I don't know if it was sang this way to better suit the song melody (I understand nothing about those techniques), but I got confused. What's the correct pronunciation?  Thanks in advance. How to convert a currency string to a double with jQuery or Javascript? Why do you need 2 resistors when hooking up a transistor as a switch What is the point of R2 in the following diagram:   I get that R1 controls the current to the Base, but what does R2 do? How do you make the shapefile a Read-only so the client can not make any edits using 10.2.2 ArcGIS.  It is not within a geodatabase, just a stand alone shapefile.  I am using Windows 8 Installing Cygwin packages from the command-line I was practicing with modeling a leaf using a image reference. Everything went fine and I finished modeling my leaf, but I wanted to make it more realistic (I'll add textures later), I saw lots of people using the Subdivision Surface modifier but it doesn't work for me.  My model:   My model when I add the Subdivision Surface modifier As the title of the Question states, I want to know what are the tools available for Ubuntu which would allow me to take screenshots of "Scrolling Windows" ie; tall webpages, tall nautilus window which contains lots of files and folders etc. as a single image file.  For the sake of clarity, I have already seen . However, I am specifically looking for tools to capture Scrolling Windows.  As an example, my personal favorite for Microsoft Windows is . It's light on resources and helps me take beautiful screenshots. Is there anything close to it available for Ubuntu?