How to install Ubuntu alongside Windows 7/8
"Install alongside" option missing. How do I install Ubuntu beside Windows using "Something Else"?
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 I have been reading about depth-of-field and presume to have a sufficient understanding of what it means and how it is related to lens properties, lens aperture, focal length, sensor format size and probably even print dimensions in case the picture is being printed. I do have a question about how/if depth-of-field depends on the dimension of a pixel. Let me elaborate:  Given two sensors with differing pixel sizes: x and 4x, the latter sensor integrates more light per-pixel than the former, however, it might have a lower resolution if the sensor dimensions remain fixed. Theory suggests that the depth of field is determined by those circles-of-confusion which are very close to being an in-focus point, and this perhaps also means that these very small CoCs fall within the integration area of the same pixel. Now when a CoC becomes larger than a pixel (like also in the case of diffraction blur), there is some spreading of intensities among neighboring pixels and this would clearly lead to blur. However, if one was using the 4X sized pixel, even with a slightly larger CoC, the intensity would still integrate into the same pixel area, and would thus perhaps be in-focus? Is this the right assumption? And if so, is there any analysis of pixel-area dependence of depth-of-field? Moreover, depth-of-field is in some sense independent of the integration medium as it clearly occurs in analog film devices as well, so is there a trade-off or a difference in depth-of-field between film and digital cameras?  Please point me to the correct references for this question. Please correct me if there seems to be a fundamental issue with the assumptions made above. SQLite parameter substitution problem Using SQLite3 with Python 2.5, I'm trying to iterate through a list and pull the weight of an item from the database based on the item's name.  I tried using the "?" parameter substitution suggested to prevent SQL injections but it doesn't work. For example, when I use:  for item in self.inventory_names:     self.cursor.execute("SELECT weight FROM Equipment WHERE name = ?", item)     self.cursor.close()   I get the error:     sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 1, and there are 8 supplied.   I believe this is somehow caused by the initial creation of the database; the module I made that actually creates the DB does have 8 bindings.  cursor.execute("""CREATE TABLE Equipment      (id INTEGER PRIMARY KEY,      name TEXT,     price INTEGER,      weight REAL,      info TEXT,      ammo_cap INTEGER,      availability_west TEXT,     availability_east TEXT)""")   However, when I use the less-secure "%s" substitution for each item name, it works just fine. Like so:  for item in self.inventory_names:     self.cursor.execute("SELECT weight FROM Equipment WHERE name = '%s'" % item)     self.cursor.close()   I can't figure out why it thinks I have 8 bindins when I'm only calling one. How can I fix it? Given a message and DES encrypted form of said message, is it possible to efficiently compute the key used to encrypt the data? Convert UTC/GMT time to local time We are developing a C# application for a web-service client. This will run on Windows XP PC's.  One of the fields returned by the web service is a DateTime field. The server returns a field in GMT format i.e. with a "Z" at the end.  However, we found that .NET seems to do some kind of implicit conversion and the time was always 12 hours out.  The following code sample resolves this to some extent in that the 12 hour difference has gone but it makes no allowance for NZ daylight saving.  CultureInfo ci = new CultureInfo("en-NZ"); string date = "Web service date".ToString("R", ci); DateTime convertedDate = DateTime.Parse(date);               As per :     UTC/GMT Offset       Standard time zone: UTC/GMT +12 hours   Daylight saving time: +1 hour   Current time zone offset: UTC/GMT +13 hours     How do we adjust for the extra hour? Can this be done programmatically or is this some kind of setting on the PC's? My customers are eager to show news categorized in tabs.  I recently developed it for them.  In my experience in web designing, display:none is used widely in implementing tabs. I also know that it is not good for SEO.  Is there any way to have tabs but without hurting SEO factors? How to calculate $\lim_{x\to 1^+} \log (x)^{\log(x)}$? How to calculate $\lim_{x\to 1^+} \log (x)^{\log(x)}$ ? i know that its "1", but why? How can i calculate this?  Thank you very very much =) ArcPy importing error after setting path? This questions has been asked before too and I did go through most of the suggestions. Things I have tried so far: setting up correct  path variable environment, installing anaconda 32 bits, python 2.7, or even switching to python 2.7 in cmd while initially using Anaconda 3 , adding Desktop 10.4.pth file with  following path.  C:\Program Files (x86)\ArcGIS\Desktop10.4\bin C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcToolBox\Scripts   I also added those paths in environment variable   These suggestions help me to reduce the error. But Now I am getting a different error. Looks like python can find arcpy but missing another package.  Getting this error while trying to import arcpy in python 3.6.   File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\__init__.py", line 22, in &lt;module&gt;     from arcpy.geoprocessing import gp    File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\geoprocessing\__init__.py", line 14, in &lt;module&gt;     from _base import *  ModuleNotFoundError: No module named '_base'   Any suggestions? Show $\sum\limits_{n=0}^{\infty}{2n \choose n}x^n=(1-4x)^{-1/2}$ How do you prove that $\sum\limits_{n=0}^{\infty}{2n \choose n}x^n=(1-4x)^{-1/2}$? I tried to identify the sum as a binomial series, but the $4$ and the $-1/2$ puzzle me. (This series arises in studying the first passage time of a simple random walk.) Let $G$ be a group and $c$ be a fixed element of $G$. Define a new operation $*$ on G by:   $$x*y=xdy$$   for all $x$ and $y$ in $G$, where $d$ is the inverse of $c$. Prove that $G$ is a group under the operation $*$.    If you want to check, this problem is in the book “A Course In Group Theory”, by John F. Humphreys (problem $3$, page $28$)   I know what are the axioms that $(G,*)$ must obey in order to be a group and I did show that all the axioms where obeyed except the inverse axiom.  My problem is that, whenever I try to verify what would the inverse be for some element $x$, I get an equation where the $x$ is cancelled in both sides.  Can please someone guide me?  Thank you!  (P.S.: This is NOT a homework assignment, I’m studying Group Theory by this book and got problems solving this question) I would like to capture the contents of AJAX requests using Greasemonkey.  Does anybody know how to do this? Implement multiple inheritance in Javascript Content Assist for JSF2 + CDI (weld) beans + Eclipse Helios I am using the 2D Animation preset and so far every new scene I made had the same bright white background. Now my two latest scenes (created with 'copy settings') have a light grey background even though they are set to white. There's also no difference in surface, nodes or strength.  There are apparently exist different background shades with an off-white color but selecting the white one doesn't help either Setup Apache in Amazon AWS I tried to setup apache 2.2 in amazon aws using amazon ami. i did installed httpd and php and congirue http.conf to use /var/www/html.  Then put file index.html on that folder. But when i tried to use browser to browse my domain which is ec2-122-248-255-181.ap-southeast-1.compute.amazonaws.com, nothing was loaded.  I did start httpd by running apachectl start, and i can see it listening on port 80.  Does anybody know what is wrong? Virtual vs Real image How can I stop being prompted to unlock the 'default' keyring on boot? How can I propose a new site? Enable F1-F12 keys without Fn on Lenovo Ideapad S400u I am looking for an Ubuntu version that consumes less Memory and CPU. I have read both Lubuntu and Xubuntu (The homepages, wikipedia, phoronix and other sites comparing both). But from experience, which one uses less memory and is less CPU intensive. I need to install them in very old hardware and want to persuade the owner of the hardware of the benefits of Ubuntu.  in this case I want to install 11.10 or 12.04 when it comes out. How are each behaving in those versions?  The 2 PCs I will be installing either Xubuntu or Lubuntu are:  Granpa PC:  CPU - Pentium 2 450Mhz RAM - 64MB DIMM Video - 16MB Used for - Documents and Internet. No listening to music, no looking at videos. Just using it for document writing.  The other old meat:  CPU - Pentium 3 550Mhz RAM - 128MB DIMM Video - 16MB Used for - Documents and Internet also but they want.. or maybe they are wishing for it to use it to see movies and listen to music. This one has internet. The other one does not.  UPDATE  Wanted to update this question with the test results for over 8 months worth of using Lubuntu and Xubuntu. When it comes to very old hardware, am talking about 64 MB, 128 MB or even 256 MB of RAM computers, Lubuntu is better than Xubuntu when comparing Memory usage. When it comes to CPU usage, both are the same.  This will not improve I/O Disk performance which will be the bottleneck for old computers. Also the difference in performance between Xubuntu and Lubuntu is about 10% to 20% percent in memory usage. Again, CPU usage is the same.  Now, when it comes to how responsive the Desktop is, LXDE (Lubuntu) has a much better response time than XFCE (Xubuntu). I would say about 50% or just simply noticeable to the eye. Lubuntu is similar to how Windows XP looks while Xubuntu is more like how Gnome 2 looked.  The computers (The old ones mentioned here) and 2 more are still working in excellent conditions thanks to the Ubuntu family. I also want to add I am using 13.10 for both distros.