Shading issue when adding Subdivision Modifier Firt things first, needless to say that I'm still a newbie haha.  I've been learning how to model with extruding vertex and faces, instead of starting from a cube.  Everything went pretty well until I decided to add a Subdivision Surface modifier to smooth everything and I found this(Also happens when I right click and check shade smooth):    Also I let you see the X-Ray version, which made worry:    So thanks in advance and any help would be appreciated :3
Why are some faces in my mesh darker? While rendering a mesh with smooth shading on, I get a dark region/shadow on certain faces. The effect is more evident when smooth shading is applied to a mesh containing ngons, with the ngons turning black when rendered.   The blackening effect is visible in the viewport too.  How can I solve this problem?
Resize image in Python without losing EXIF data I need to resize jpg images with Python without losing the original image's EXIF data (metadata about date taken, camera model etc.). All google searches about python and images point to the PIL library which I'm currently using, but doesn't seem to be able to retain the metadata. The code I have so far (using PIL) is this:  img = Image.open('foo.jpg') width,height = 800,600 if img.size[0] &lt; img.size[1]:     width,height = height,width  resized_img = img.resize((width, height), Image.ANTIALIAS) # best down-sizing filter resized_img.save('foo-resized.jpg')   Any ideas? Or other libraries that I could be using? My 2nd great-grandmother, Margaret Elizabeth Armegust or Arbingast, was born 22 Sept 1837 in Ohio and died 24 July 1929 at the Richmond State Hospital, Wayne, Indiana, United States.  She lived for a time in Sparta, Noble, Indiana and Stock, Harrison, Ohio. She was married to John B. Miller on 22 Oct 1859 in Noble and they had at least five children: James, Samuel, Elias, Julia, and John.  I am searching for records from the State Hospital to learn of her diagnosis and treatment. Is there a complete list of these? I've seen lots of Q&amp;A about "What does x icon mean" but it would be really useful if there were a complete list for reference! Vueling is currently experiencing , with many flights delayed by several hours. Assuming I'm at the airport and my flight is certainly delayed by more than 3 hours, can I simply book another flight and claim compensation later?  According to EU's :     In addition, if you are denied boarding, your flight is cancelled or arrives more than 3 hours late on arrival at the final destination stated on your ticket, you may be entitled to compensation of EUR 250 - 600, depending on the distance of the flight.   But it's not clear if I actually have to board the flight or if simply having a purchased ticket is sufficient. I presume it would be possible to negotiate with Vueling representatives at the airport, but I'd rather not wait in the inevitable 100-person line to their counter if I'm covered by EU law. In C#, what makes a field different from a property, and when should a field be used instead of a property? Is it possible to save `bc` command line history? bash has a handy file .bash_history in which it saves the history of commands and on the next execution of bash the history is populated with saved commands. Is it possible to save bc command history to a file in the same way and then load it on startup so that bc history is preserved? I tried reading  and it mentions readline and libedit. From ldd /usr/bin/bc I see mine uses readline and readline has  and read_history functions. Is this functionality implemented in bc or to do it I'll need to patch bc? Show that $n-m$ is a multiple of 9 when $n$ and $m$ have same digits I have just proved the divisibility rule for 3 and 9.  Let $n\in\mathbb{N}$. Let $m$ be a number that appears when you shuffle the digits in $n$. Show that $n-m$ is a multiple of 9.  Can anyone offer some help? Create instance of generic type in Java? Get value of R, G, B by color Is it possible to use the fact that $\sum_{n=1}^\infty \frac{1}{n^4} = \frac{\pi^4}{90}$ to compute $\sum_{n=1}^\infty \frac{(-1)^n}{n^4}$? I'm stuck with an uninstallable module. Drupal insists that there are Fields pending deletion and that the module can not be uninstalled. I've run cron zillion times already as advised for such situations but without success. Cron runs fine, but drupal insists that still, Fields pending deletion.  Visiting /admin/reports/fields gives no clues - the fields provided by that module are not listed. I even tried using drupal console to uninstall module with --force switch, but also without success.  I also tried drush field-info in hope to get some clues, but that's apparently not yet implemented as drush 8.1.2 gives fatal error:     Call to undefined function field_info_fields().   How do I make drupal delete those fields that pending deletion? Do I have to do this manually in database?  I've seen few tables like field_deleted_data_f5e7b87e32 or field_deleted_revision_be01eddd10 but they are all empty. Is that even relevant? I'm having trouble restarting a 2D game when the user presses the "New Game" button.  Structure of my game:  The game has several 'screens': Opening screen, instructions screen, main game screen, and a game-over screen.  Each screen is an instance of a class: OpeningScreen class, GameScreen class, etc.  There is a class named Main. This class has three roles.   It's the JFrame (the window) of the program. It has the main method - first class to run. It has a method that change's screens.   When the program starts, this class runs. When it first runs:   Creates a new instance of itself (it's a JFrame-type class). Creates an instance of every 'screen-class'. The constructor of each 'screen-class' takes the instance of Main as an argument: (aka: GameOverScreen gameOverScreen = new GameOver(this)). Creates a new JPanel named mainPanel, and adds it to the JFrame. Any screen to be displayed will be contained in this JPanel (The screens are also JPanel-type classes).   How the changeScreen() method works:  The signature of changeScreen() is this: changeScreen(JPanel from, JPanel to).  Whenever a screen needs to be changed, the current screen that is displayed calls this method, like so: main.changeScreen(this, main.InstructionsScreen). It removes the previous screen from mainPanel and adds the new screen to mainPanel. As said, these screens are created when the program launches.  This is the method that changes screens:   public void changeScreen(JPanel from, JPanel to){      mainPanel.remove(from);     mainPanel.add(to);      mainPanel.revalidate();     mainPanel.repaint();  }   My problem:  After a game is finished, the Game class calls the changeScreen method: main.changeScreen(this, main.GameOverScreen) .  This replaces the game screen with a game over screen. Pressing the "New Game" button in the game-over screen, calls main.changeScreen(this, main.GameScreen) .  The problem: Pressing the "New Game" button in the game-over screen, indeed displays once again the instance of the Game class. But this is the old instance, so the game is not restarted. It's already finished.  I tried to do the following changes in changeScreen():  public void changeScreen(JPanel from, JPanel to){      mainPanel.remove(from);      if(to.equals(gameScreen)){         gameScreen = null;         gameScreen = new GameScreen(this);     }     mainPanel.add(gameScreen);      mainPanel.revalidate();     mainPanel.repaint();  }   This should reset the gameScreen object. But this creates a delay of about 10 seconds when pressing the "New Game" button.  What would be a good way of restarting the game?  Thank you I am trying cmd --> MMC --> Server Manager and then connecting to my Server 2012 no GUI  but i keep getting the following error The WinRM client cannot process the request  I am unable to upload images right now  This is not related to other post "How to Remote Manage Windows Server 2012 in Server Manager?" because title and description of that post is quite different from what i am asking Finding a pair of functions with properties I need to find a pair of functions $f$, $g$ such that    $f$ is not differentiable at  $x = 0$ $g$ is not differentiable at $f(0)$ $g \circ f$ is differentiable at $x = 0$   I've tried a lot of functions but just can't seem to find ones that work. Any help would be appreciated, thank you. Last semester I picked up an algebra course at my university, which unfortunately was scheduled during my exams of my major (I'm a computer science major). So I had to self study the material, however, the self written syllabus was not self study friendly (good syllabus overall though).  The course was split up into 3 parts, group theory, ring theory and field theory. As a computer science major we only had to study the first 2.  Now that I passed the exam for this course I want to study the field theory part ( which covers Galois theory, etc).  So, now I want to ask whether any of you know any good books on abstract algebra, which lift off at basic ring theory and continue to more advanced ring theory and to finite fields, Galois theory, ...  Please keep in mind that I am not a math major, and that I would like books which are suited for self study (thus a lot of examples and intuition).  Thanks in advance! Difference between cp -r and cp -R (copy command) I keep getting the message MobileMe Service Stopped Working each time I open Outlook 2007. I have to click on the Close Program button in the error message twice each time it shows up while Outlook is trying to load up. Then I am able to use Outlook. I never use my iCloud account and would like to know how I can deactivate iCloud so I do not have issues with my Outlook. Switching a DIV background image with jQuery What is a simple example of a limit in the real world? This morning, I read Wikipedia's informal definition of a limit:     Informally, a function f assigns an output $f(x)$ to every input $x$. The   function has a limit $L$ at an input $p$ if $f(x)$ is "close" to $L$ whenever   $x$ is "close" to $p$. In other words, $f(x)$ becomes closer and closer to $L$   as $x$ moves closer and closer to $p$.   To me that sounds like something that might be better described as a 'target'.  If I take a simple function, say one that only multiplies the input by $2$; and if my limit is $10$ at an input $5$: then I've described something that seems to match the elements contained in Wikipedia's definition. I don't believe that that's right. To me it looks like an elementary-algebra problem ($2p = 10$). To make it more calculusy, I could graph the function's output when I use inputs other than $p$, but that really wouldn't give me anything but an illustration of the fact that one's answer moves farther from the right answer as it becomes more wrong (go figure).   So limits are important; what I've just described is trivial. I do not understand them. I know calculus is often used for solving real-world challenges, and that limits are an important element of calculus, so I assume there must be some simple real-world examples of what it is that limits describe.   What is a simple example of a limit in the real world?  Thank you  -Hal. Identify a book with a social engineering theme I originally read this book in the mid- to late '70s.   The premise was a bureaucracy whose job it was to manipulate events in human history by making the smallest possible change that would effect the desired outcome. Not time cops in the sense of going after law breakers.  The intent was to maintain a policy of non-interference as much as possible but when interference was warranted then to make the least possible change and to do so invisibly.  For example, they might take someone's keys off the dresser and put them just out of sight underneath the dresser where they plausibly might have fallen.  The subject would never know of the manipulation but would then be delayed getting out of the house and the ripples grew from there to avert a war or otherwise affect events on a large scale.  After reading that, whenever I would lose something - especially in an improbable way such as dropping a screw at my feet and then finding it on the other side of the room half an hour later - I would take some consolation in the thought that I had just averted some global catastrophe.  I was pretty scatterbrained as a kid (we call that ADHD nowadays) so I experienced this a lot.  Given that I've spent so much time pondering the ideas from the book, I'd love to re-read it.