I know this sounds stupid, but I installed Ubuntu on my laptop alongside Windows 10. Everything worked fine until I tried to login using the password I had provided.   It does not let me in. At first, I though that I had the wrong password. But then I tried changing my password using Ubuntu recovery in the boot menu. To be sure I didn't type the wrong password, I use 123456789 from my numeric pad. Because I was also afraid this could be a keyboard region issue. I still can't login with those simple numbers.   What could be the problem?  UPDATE: I tried solutions proposed in another post on login loop. Doing ls -lA did not work for me. However, in /var/log, I found Couldn't open module nvidia" and "Failed to load module "fbdev" (already loaded, 0).   Is this the answer? And what is the solution. dpkg-reconfigure... command from other post did not work.
My Ubuntu is stuck in a login loop when trying to enter my desktop. When I login, the screen gets black and soon after that the login screen comes back.   I've read that the problem might be caused by an error depending on the graphics, here's my graphics card: ATI Radeon 7670M
Some issues with timezones in PHP have been in the back of my mind for a while now, and I was wondering if there are better ways to handle it than what I'm currently doing.  All of the issues revolve around reformating database stored dates:  When dealing with a site that has to support multiple timezones (for users), to normalize the timezone offest of stored timestamps I always store it with the server timezone using the CURRENT_TIMESTAMP attribute or the NOW() function.   This way I don't have to consider what timezone was set for PHP when the timestamp was entered (since PHP time functions are timezone aware). For each user, according to his preference I set the timezone somewhere in my bootstrap file using:  date_default_timezone_set($timezone);   When I'm looking to format dates with the php date() function, some form of conversion has to take place since MySQL currently stores timestamp in the format Y-m-d H:i:s. With no regard to timezone, you could simply run:  $date = date($format,strtotime($dbTimestamp));   The problem with this is that date() and strtotime() are both timezone aware functions, meaning that if the PHP timezone is set differently from the server timezone, the timezone offset will apply twice (instead of once as we would like).  To deal with this, I usually retrieve MySQL timestamps using the UNIX_TIMESTAMP() function which is not timezone aware, allowing my to apply date() directly on it - thereby applying the timezone offset only once.  I don't really like this 'hack' as I can no longer retrieve those columns as I normally would, or use * to fetch all columns (sometimes it simplifies queries greatly). Also, sometimes it's simply not an option to use UNIX_TIMESTAMP() (especially when using with open-source packages without much abstraction for query composition).  Another issue is when storing the timestamp, when usage of CURRENT_TIMESTAMP or NOW() is not an option - storing a PHP generated timestamp will store it with the timezone offset which I would like to avoid.  I'm probably missing something really basic here, but so far I haven't been able to come up with a generic solution to handle those issues so I'm forced to treat them case-by-case. Your thoughts are very welcome Finding Command-Line Arguments of Programs I know that unix has man pages, but is there a place I can look to discover command-line arguments of programs? Going to command prompt and typing notepad /? doesn't give anything. CSS to make HTML page footer stay at bottom of the page with a minimum height, but not overlap the page I have the following page (deadlink: http://www.workingstorage.com/Sample.htm ) that has a footer which I can't make sit at the bottom of the page. I want the footer to  stick to the window bottom when the page is short and the screen is not filled, and stay at the document end and move down as normal when there is more than a screenful of content (instead of overlapping the content).  The CSS is inherited and befuddles me. I can't seem to change it properly to put a minimum height on the content or make the footer go to the bottom. Making a string out of a string and an integer in Python How can I initialize normal array member variable in initializer list? Lesser-known integration tricks I am currently studying for the GRE math subject test, which heavily tests calculus. I've reviewed most of the basic calculus techniques (integration by parts, trig substitutions, etc.) I am now looking for a list or reference for some lesser-known tricks or clever substitutions that are useful in integration. For example, I learned of this trick   $$\int_a^b f(x) \, dx = \int_a^b f(a + b -x) \, dx$$  in the question    I am especially interested in tricks that can be used without an excessive amount of computation, as I believe (or hope?) that these will be what  is useful for the GRE. Why do Windows 10 foreground apps mysteriously launch as background processes? When I install Selenium I get the following error:  Shubham@Shubham-To-be-filled-by-O-E-M:~$ sudo apt-get update     Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [107 kB]     Hit:2 https://repo.skype.com/deb stable InRelease                            Hit:3 http://in.archive.ubuntu.com/ubuntu xenial InRelease                          Get:4 http://in.archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]     Get:5 http://in.archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]       Fetched 323 kB in 8s (38.6 kB/s)                                                    Reading package lists... Done     Shubham@Shubham-To-be-filled-by-O-E-M:~$ sudo pip install selenium     Traceback (most recent call last):       File "/usr/bin/pip", line 9, in &lt;module&gt;         from pip import main     ImportError: cannot import name main   How should I proceed? If someone could help me with the proposed change of variables, it would be greatly appreciated. Consider Euler's equation:  $$z^2w'' + \alpha zw' + \beta w = 0$$  where $w$ is a function of $z$ and $\alpha, \beta$ are constants. How would the change of variables $t =\ln(z)$ transform this equation? Windows 7 Automatic Log-on with a Default User Account? I have two User Accounts for my Windows 7 with no password requirement. I frequently use one of those accounts; so I would like Windows to log-on automatically with that account without the need for user input.  P.S. I don't prefer installing/using a third-party software for that purpose; especially those that place at low levels before Windows log-on. How do I fix "Error C1033: cannot open program database"? Can I clear an area of my prison for everyone BUT max security prisoners? Are there any rules related to the creation of a ?   I am aware of the creation method for the amulet. But I'm asking about creating the actual construct. Javascript remoting: to invokeAction or not to invokeAction Digging in deeper to Javascript Remoting and I'm a bit confused.  The  starts off by showing how to set up everything and uses code like the following:  function getRemoteAccount() {     var accountName = document.getElementById('acctSearch').value;      // This remoting call will use the page's timeout value     Visualforce.remoting.Manager.invokeAction(         '{!$RemoteAction.AccountRemoter.getAccount}',         accountName,          handleResult     ); }   However, I've also seen examples where Visualforce.remoting.Manager.invokeAction is never called.  They end up looking something like the following:  function getText() {   var text = "";   JSRemotingBasicsController.doGetText(     function(result, event) {       // do something here     }   ); }   I'm wondering what is the point to using Visualforce.remoting.Manager.invokeAction when you can just reference the RemoteAction directly like the second example?  Is there something I'm missing?  Is there a time where the second example doesn't work? I had to immediate shut down, and I lost about 20 unsaved tabs, is there any way to recover these? How to get the Infobox data from Wikipedia? Are all eigenvectors, of any matrix, always orthogonal? Possible Duplicate:          We have some "theme colors" that are reused in our CSS sheet.  Is there a way to set a variable and then reuse it?  E.g.  .css OurColor: Blue  H1 {   color:OurColor; } In the chapter on Spellcasting, there is a section called . However, despite the seeming generality of the title, the text of this section only talks about magical effects from spells:     The effects of different spells add together while the durations of those spells overlap. The effects of the same spell cast multiple times don't combine, however. Instead, the most potent effect--such as the highest bonus--from those castings applies while their durations overlap, or the most recent effect applies if the castings are equally potent and their durations overlap.   It makes sense that this section would only talk about spells, since it is in the chapter about spellcasting. However, this seems to leave ambiguous the question of how magical effects from sources other than spells combine. Such an issue could arise, for example, if two different items (or two of the same item) grant a bonus to attack rolls, or a bonus to the same saving throw.  Is there a published rule or official ruling that governs how non-spell magical effects combine?  (This question was inspired by  about the interaction between +X magical ammunition and Oil of Sharpness, and could be considered a generalization of that question.) If the earth would stop spinning, what would happen?