Whenever I assign a material to the selected faces of a cube, it paints the entire cube. I've seen questions like this, and I've done everything they say to do in the comments, yet nothing seems to work.
How do you add more than one material to a mesh?   I have tried adding two materials to the object, and then assigning one of the materials to a vertex-group, but I could not find a place to assign it.  I am making a striped bouncy ball that I want to deform, so adding a different material by separating the mesh into different objects would not be ideal.
If directory is empty do this, If directory is not empty do that How to create a good glass reflection with Principled BSDF How do I make Chromium use Flash from Google Chrome? Now, that Adobe has stopped issuing new releases for Linux desktops, the only option for users is to use Google Chrome, for those who want to use the latest Flash updates. I use Chromium. Is there any way to get Chromium use the Flash from Google Chrome? The reason I as this question is that I have noticed both these browsers run in the background, so technically, the browsers' plugins are available to use. Determine if a sequence contains all elements of another sequence using Linq Format a number with optional decimal places in Excel I have numbers in cells in Excel. I want the numbers formatted so that if they have decimal places they show to a maximum of two, and if they have no decimal places it doesn't show any.  For example.    15 should be formatted as 15, NOT 15.00 14.3453453 should be formatted as 14.35 12.1 should be formatted as 12.1  0 should be formatted as 0   The closest custom format code I've come up with is 0.##. Unfortunately this formats 15.00 as 15. (note the extra decimal point).  To further complicate the issue, the spreadsheet is a result of an export from SQL Server Reporting Services. So no macros are possible. Oh well, it looks like 0.## is my best bet, and they can just live with the extra period. Create WiFi hotspot on ubuntu why is nautilus slow? I'm wondering why Nautilus is very slow when opening a directory containing lots of files. My /usr/lib dir for example has 1900 files and it takes approximately 5+ seconds to show everything. It has been like this since I installed Ubuntu few months ago and it's really quite annoying sometimes. I don't have powerful hardware but I know that Windows Explorer is so much faster than this.   Is there anything that can be done to speed it up?  Ubuntu 10.04 No grub menu after Ubuntu install, booting directly into Ubuntu Proving that a function has a removable singularity at infinity Add the ability to add "top questions" to Careers 2.0 Profile Allow me to add my own "top questions" too! I know, I know, the site should be more heavily weighted to answering, but sometimes, how and what people ask is important too! For example I recently asked  which I think is a fairly good question. Clearly I'm going to avoid questions where I've asked something very simple, but I know of a user or two who are implementing their own C standard libraries and the depth of those questions is important/ought to be on show.  Of course, the argument I can just look at their profile holds, but that awesome q/a might have been from a year or so ago in which case finding it is difficult. the problem of using "~\\" and blank line Recently,I found the code that cotains the"~\\" and blank line always shows the warning imformation "Underfull \hbox (badness 10000) in paragraph at lines"  \documentclass{ctexart} \usepackage{color} \usepackage{amsmath} \usepackage{amssymb} \usepackage{graphicx} \usepackage{epstopdf} \hfuzz=\maxdimen   $(A \pm  B)^{-1} \neq A^{-1} \pm B^{-1}$,$(A \pm  B)^* \neq A^* \pm B^*$~\\  $|(A^*)^*|=|A|^{n^2-2 n+1}$~\\  \end {document}   I add the code:  \tolerance=10000 \hbadness=10000 \begin{document}   However,fail to solve it! This is a Putnam Problem that I have been trying to solve (on and off) for two years, but I have failed. I am in Calculus BC. This problem comes from the book "Calculus Eighth Edition by Larson, Hostetler, and Edwards". This problem is at the end of the first section of the chapter 8 exercises. Here's the problem:  Evaluate $$\int_2^4 \frac{\sqrt{\ln(9-x)}\,dx}{\sqrt{\ln(9-x)} + \sqrt{\ln(x+3)}}.$$  Please. Any help is very much appreciated. So are solutions. Thank you!  Edit: I like the solution given, but I was interested to see if there is any other way of doing the problem? I'm excited to see the results. How did half of Darth Maul survive? Why does "Object reference not set to an instance of an object" not refer the variable name or column? Do you get Hex Warrior's Cha bonus with a two-handed Pact Weapon? Hex Warrior says:     you can touch one weapon with which you are proficient and that lacks the two-handed quality. When you attack with that weapon you can use your Charisma for attack and damage rolls.   later the ability says:     This benefit extends to every weapon conjured with the Pact of Blades feature, no matter the type.   (emphasis mine)  Does this allow me to use my charisma with 2 handed weapons(provided it is my Pact Weapon and my Hex Warrior Blade)?  This question is not the same as . That one is asking how many weapons, I'm asking if type means 2 handed or something else(Slashing or Ranged for examples). As I am seeing this,  the man and boat will have different displacement from ground frame,  so there should be a net work done by friction .  The books says,  total work done by friction is zero when friction is static and internal to system. Please explain.. After you get the Reindeer Stables, you can add decorations through a text form to increase production speed. I've added a few decorations myself, but I was wondering what all of them are. I know that some entries seem to be "synonyms". For example, if you enter "wreath" and then "garland", you'll only add the "a Christmas wreath" and trying to put up the garland will return "We already have a Christmas wreath".  These are the decorations I've already added along with discovered synonyms.   Nutcracker (Nutcracker) a Christmas tree (tree) baubles (bauble) glass ornaments (ornament) a star (star) Christmas lights (lights) a Christmas wreath (wreath, garland) mistletoe (mistletoe) a Christmas stocking (stocking) candy canes (candy cane) a chimney decoration (chimney, fireplace) a Santa decoration (santa) an elf decoration (elf) a reindeer decoration (reindeer) a nativity scene (stable) toys (toy) wrapping paper (wrap) candles (candles) tinsel (tinsel) a star (star) an angle (angle) holly (holly) paper chains (chains) Christmas crackers (cracker) Christmas cards (card) a figure of Mary (mary) a figure of Joseph (joseph) a figure of Jesus (jesus) wise men figures (wise men) a donkey decoration (donkey) a sleigh decoration (sleigh) a snowman (snowman) snow decoration (snow) Santa hats (hat) bells (bell) ribbons (ribbon) a turkey decoration (turkey) ? What is the function of "do" in this sentence? When should static_cast, dynamic_cast, const_cast and reinterpret_cast be used? Call to a member function on a non-object So I'm refactoring my code to implement more OOP.  I set up a class to hold page attributes.  class PageAtrributes  {   private $db_connection;   private $page_title;      public function __construct($db_connection)      {         $this-&gt;db_connection = $db_connection;         $this-&gt;page_title = '';     }      public function get_page_title()     {         return $this-&gt;page_title;     }      public function set_page_title($page_title)     {         $this-&gt;page_title = $page_title;     } }   Later on I call the set_page_title() function like so  function page_properties($objPortal) {         $objPage-&gt;set_page_title($myrow['title']); }   When I do I receive the error message:     Call to a member function set_page_title() on a non-object   So what am I missing?