Different colors for each curve in a Plot[Table[],{}]
Plot draws list of curves in same color when not using Evaluate
Radeon HD 2000, 3000, 4000 on Ubuntu 12.04.2 and higher: fglrx (legacy) unsupported, what to do? After upgrading to 12.10 quantal, the packaged version of fglrx no longer works. I discovered that this is because there is a separate 'legacy' fglrx driver for the HD 2k-4k series cards, but it is incompatible with the xorg server on 12.10.  This is the most current version of the driver for HD 2000 through HD 4000 series cards. You can't use the non-legacy fglrx driver, but you can use the open-source radeon driver if you prefer your WM compositing to be laggy and your YouTube videos to play like they would on a Pentium MMX series:    Usually this driver can be installed in the following way, necessary because apt-get install fglrx would pull in the non-legacy driver:  wget http://www2.ati.com/drivers/legacy/amd-driver-installer-12.6-legacy-x86.x86_64.zip unzip amd-driver-installer-* sudo sh ./amd-driver-installer-*.run --buildpkg Ubuntu/quantal sudo dpkg -i fglrx*.deb sudo aticonfig --initial -f   If you use a different version of fglrx (for example, a newer 12.9 that doesn't support those cards) then the final command will give you an error no supported hardware detected or something similar. However, everything works at this point and you will get a reasonable xorg.conf:  ... other stuff  Section "Device"         Identifier  "aticonfig-Device[0]-0"         Driver      "fglrx"         BusID       "PCI:1:5:0" EndSection  ... other stuff   At this point you're supposed to reboot and everything will be working with the fglrx driver. However, upon rebooting, you'll be treated to the following errors in Xorg.0.log when fglrx attempts to load:  (EE) Failed to load /usr/lib/xorg/modules/drivers/fglrx_drv.so: /usr/lib/xorg/modules/drivers/fglrx_drv.so: undefined symbol: noXFree86DRIExtension   Some searching around will show that this is a problem with the legacy ATI drivers not supporting xserver 1.13 or newer. () ATI has released a fixed driver for its most recent (HD 5000 series or later) cards, but not for the 'legacy' cards yet. The non-legacy ATI drivers can't be used with the old cards.  What should an Ubuntu user, using one of these HD 2000-4000 series cards, do?    Wait for an updated 'legacy' ATI driver that properly works with xserver 1.13?   Downgrade back to 12.04 Precise, which uses xserver 1.11? Try to downgrade xserver on 12.10 Quantal to 1.12, which could possibly break Unity and GNOME? Forced upgrade to HD 5000 series or later card? (Not possible with integrated graphics...) Some other 1337 action that fixes this problem painlessly? Maximal inequality for a sequence of partial sums of independent random variables Let $X_n$, $n=1,2,3,...$ be a sequence of independent (not necessarily identically distributed) random variables, let $S_n=\sum_{i=1}^nX_i$. Prove the following maximal inequality: For all $t&gt;0$,$$\mathbb{P}\left(\max_{1\leq i\leq n}|S_i|\geq t \right)\leq 3\max_{1\leq i\leq n}\mathbb{P}\left(|S_i|\geq\frac{t}{3} \right)$$ Give moderators the ability to mark reviews as "bad" From what I've seen, many SO moderators trawl completed reviews and watch out for robo reviewers; and manual banning them when they see enough (>= 3?) bad reviews. This is inefficient because:   It doesn't integrate into the audit system. There's no "memory" to it. If mod A finds that user X has made two (any number less than the threshhold) bad reviews, he may make a mental note but there probably won't be any permanent/shared memory of this. If moderator B finds this user at a later date, he will have to look through the entire history, including stuff that mod A has already checked.    What I propose is that moderators get the ability to mark individual reviews as "invalid" from the completed review page. This is only to be used for reviews where any reviewer who is paying attention (and knows the rules) would choose the opposite reason (spam and other low quality stuff).   These bad review flags are treated like audits for a user -- if the number of failed audits and bad reviews is enough, the user gets autobanned. The nice thing is that this system should (probably) easily be able to , fixing the "Why was I manual banned?" problem.  This could also be integrated well with . Does WaitForMultipleObjects() reset all auto-reset events? If I open up many tabs in Chrome, the Tabs start to shrink. This is usually a normal behavior if the tabs would use the whole availible space, BUT in my case the tabs shrink too much. They don't use up the whole availible space anymore, but only go until somwhere at three quarters of the window. The more tabs I open, the larger the availible space gets until it reaches a maximum. This strikes me as somewhat not so normal.  Another funny thing is, if I use a second Monitor to extend my Desktop, Tabs will be smaller on the second Desktop and will only fill half the availible space from the beginning. For example right now I have 6 tabs open, which fill out approximately half the availible space. If I open more tabs, only the tab size reduces. This has not been like that when I first installed the browser.  This is what it looks like:    Is there any solution for this?   I hereby explicitly mean NO extensions. I found enough extensions to handle tabs. I just want them to behave normally without any of those tab-extensions. Re-Installing Chrome does NOT work, I tried that. Repeated ANOVA unbalanced data I did experiment on one group of rats, the group was tested during 8 days, this is the first stage. The same group was also tested again but this time the test phase was 7 days. I tried to do my analysis using ANOVA repeated measures but I had a problem with the days.. I want to know the difference in the 2 tests but the days are not the same number. I don't know how to handle it. If there is any way to do the analysis using repeated measures ANOVA.   I tried to use repeated measure anova within subjects effect. My first factor will be test with 2 levels (test 1 &amp; 2),second factor is day with the level of ?? Here is the problem! if I write 8 there will be extra day in test 2 and the analysis cant carry!! Proving that $7^n(3n+1)-1$ is divisible by 9 I'm trying to prove the above result for all $n\geq1$ but after substituting in the inductive hypothesis, I end up with a result that is not quite obviously divisible by 9.   Usually with these divisibility induction problems, it falls apart nicely and we can easily factorise say a 9 if the question required us to prove that the expression is divisible by 9. However in this case, I do not end up with such a thing.  My work so far below:  Inductive Hypothesis: $7^k(3k+1)-1=9N$ where $N\in\mathbb{N}$  Inductive Step:  $7^{k+1}(3k+4)-1 \\ =7\times 7^k(3k+1+3)-1 \\ =7\times \left [ 7^k(3k+1)+3\times 7^k \right ] -1 \\ = 7 \times \left [ 9N+1 + 3 \times 7^k \right ] -1 \\ = 63N+21\times 7^k+6 \\ = 3 \left [ 21N+7^{k+1}+2 \right ]$   So now I need to somehow prove that $21N+7^{k+1}+2$ is divisible by 3, but I'm not quite sure how to proceed from here... How to download a file using Selenium's WebDriver? Basically I want to at least check that a download-able file exists / download link works and preferably get stuff like the file size too. Here's an example: link = self.browser.find_element_by_link_text('link text') href = link.get_attribute('href') download = self.browser.get(href) print download  That fourth line prints &quot;None&quot;, presumably because I haven't manually clicked the Save button, and even if I had, I doubt WebDriver would be able to &quot;see&quot; the file. Any ideas? I'm using Firefox as my browser-under-test, and I understand that the file handling for downloads is somewhat browser and/or OS-specific. I'm looking for a time and memory efficient solution to calculate a  in C. I need to avoid dividing because I'm on a PIC 16 which has no dedicated division unit.  At the moment, I just store all values in a  and simply store and update the sum each time a new value arrives. This is really efficient, but unfortunately uses most of my available memory... What's the difference between 'allow' and 'allow for'? In the 1997 film "", the antagonist is attempting to elude some assassins who are after him. When they are pursuing his van, he quickly      pulls the van into a parking garage and washes off the color-changing paint he had earlier painted the van with, thus changing the color of the van.    He then takes a small can and sprays it onto the door handle of the van before taking off. A few minutes later, the assassins      enter the parking garage and notice the dyed water running away from the van. When one of the men goes to open the van using the tainted door handle, he pulls his hand away like it hurt, then starts foaming at the mouth. He immediately has a seizure of some kind and falls down dead.   What was the substance sprayed on the handle, and how could it do this so quickly? 'Thank you for taking your time writing' or 'Thank you for taking your time to write' ? A person gave me an answer on English.SE and I commented:     Thank you for taking your time writing this wonderful answer!   Now, looking at the sentence in retrospect, even though I am not a native English speaker (duh, otherwise I wouldn't be asking a question on ELL.SE), I find the sentence a bit odd.  To get my point across, let me rephrase the sentence:     Thank you for taking your time to write this wonderful answer!   With my relatively little knowledge and understanding of English, I feel that using 'writing' (as I did in the original sentence) emphasizes the very process of writing the answer, whereas using 'to write' emphasizes the mere fact that an answer has been given, and a wonderful one at that.  This is exactly why I feel the original sentence is a little bit awkward and the second, revised one would have been more apt.  Am I correct or are the quoted sentences virtually synonymous? What are all the correct answers to the Squirrel's questions, and what is the reward when I get them all correct? I encountered The Squirrel at "A tree."              |   |                                                                         |   |                     "   Hello, I'm The                        |             |                        Squirrel. I can                        |             |                      provide you candies,                     |             |                      and lots of things.                                    |                      I know how much you                                    |        _.-'''-,      love candies. But I                                    |      .'        `\     feel alone in this                                    |     /           /          forest.       "                         |        |    /      .--^_^                                                   |        |    |     /  C ,,\                                                           |    |    |   \  _.)                           ___                            |     \   |   /  \                   ____.----'.-'                            |      '-, \./ \)\)               .-' --  __.-'                   |            \        `-/   );/           ___/  - _.-'                        |             \_________''--'-'________.-' --    /                            |              -   --        -  -     -     __.-'                                              -    --    -     --   --  /                                                 _________________________.-'                                 He asks you some questions. What are the correct answers, and what is the reward for getting them correct? How can I find the product key of Office 2011 after restoring from backup? I had to restore my iMac from a Time Machine backup.  Everything seemed fine until I tried to start Office 2011 and it is asking me to re-enter my product key. I am trying to locate my key (I believe I downloaded this version originally and it should be in my email but I can't find it)  I tried a program that is supposed to "find the keys for products installed on your computer" (Mac Product Key Finder) and it found my very old Office 2008 key, but not 2011.  I am surprised that if I had a totally working install before recovering from back-up that this wasn't restored as well - do I have any options to find it hiding somewhere on my drive?  Note: The recovery was after a hard drive was replaced by the Apple store - if that makes a difference, so this is a new internal drive. Are there any valid reasons to not rollover a former 401(k) when changing jobs?  I have several little ones that I never quite got around to rolling together - with an upcoming job change, should they all be combined into my new employer's retirement plan?  If not, what else might be considered? Maintaining Units of measure across type converstions I was rewatching the Breaking Bad episode S04E08 (Hermanos) and I didn't quite understand why exactly Don Eladio killed Gus's partner, but he let Gus live. He says:     The only reason you're alive and he's not, is because I know who you are.   But I still have yet to fully understand. Gnome terminal will not start I just tried to install python 3.6 on my Ubuntu 16.04 system, and now I can't run the terminal from the launcher or from Ctrl + Alt + T. I tried to run gnome-terminal from XTerm and got the following message:  Traceback (most recent call last):   File "/usr/bin/gnome-terminal", line 9, in &lt;module&gt;     from gi.repository import GLib, Gio   File "/usr/lib/python3/dist-packages/gi/__init__.py", line 42, in &lt;module&gt;     from . import _gi ImportError: cannot import name '_gi' Error in sys.excepthook: Traceback (most recent call last):   File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63, in apport_excepthook     from apport.fileutils import likely_packaged, get_recent_crashes   File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5, in &lt;module&gt;     from apport.report import Report   File "/usr/lib/python3/dist-packages/apport/report.py", line 30, in &lt;module&gt;     import apport.fileutils   File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23, in &lt;module&gt;     from apport.packaging_impl import impl as packaging   File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 23, in &lt;module&gt;     import apt   File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in &lt;module&gt;     import apt_pkg ModuleNotFoundError: No module named 'apt_pkg'  Original exception was: Traceback (most recent call last):   File "/usr/bin/gnome-terminal", line 9, in &lt;module&gt;     from gi.repository import GLib, Gio   File "/usr/lib/python3/dist-packages/gi/__init__.py", line 42, in &lt;module&gt;     from . import _gi ImportError: cannot import name '_gi'   How can I fix this error?  It should also be noted that:   My gnome-terminal file is now a python script. The gnome-terminal.real file will open the terminal as expected. python3.5 gnome-terminal will open the terminal as expected. event.returnValue is deprecated. Please use the standard event.preventDefault() instead When do I use active vs passive perception? So, I'm trying to figure out how to run the scene from the beginning of Lost Mine of Phandelver (5e starter set) where the party is ambushed by goblins and I'm really confused as to how Passive Wisdom (Perception) works.  The included rulebook mentions on page 6 :     When you hide, there’s a chance someone will notice you even if they aren’t searching. To determine whether such a creature notices you, the DM compares your Dexterity (Stealth) check with that creature’s passive Wisdom (Perception) score, which equals 10 + the creature’s Wisdom modifier, as well as any other bonuses or penalties. If the creature has advantage, add 5. For disadvantage, subtract 5. For example, if a 1st-level character (with a proficiency bonus of +2) has a Wisdom of 15 (a +2 modifier) and proficiency in Perception, he or she has a passive Wisdom (Perception) of 14.   So the party is being ambushed by goblins and at that point the DM guide mentions on page 7 :     Check to see who, if anyone, is surprised. [...] Make a Dexterity (Stealth) check for the goblins, rolling once for all of them. Roll a d20, add the goblins' Stealth skill modifier (+6) to the roll and compare the result to the characters' Passive Wisdom (Perception) scores.   So to me this reads like I should roll 1d20+6 for the goblins and compare that to the static Passive Wisdom (Perception) score on the character sheet of a PC. The PCs don't get to roll anything as they're not actively looking for enemies, even though they are investigating the dead horses.  I would also think that if the characters were supposed to roll, the DM guide would clearly instruct so, given that this is the starter set.  However, watching  at around 8:01 I notice that the DM is explicitly asking his party for a perception roll. And the same thing happens on a couple of other videos where people are running the Lost Mine adventure. The DM always requests a roll.  So what gives? Shall I take it that the DMs ask for the roll because they consider the party to be actively seeking for hidden foes? Or am I just misreading the rulebook and the DM guide?