Recently I asked this question and got a very nice answer:    However, now I would like to use a different material for each face. Could anybody help me on how to do this? Written in python script would be best.  Thanks, Mojmir.
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.
I'm trying to  working on Linux. I have PAINSTAKINGLY installed NVidia drivers, Cuda 5.0 and incidentally I'm failing on the last step when I run make:  make  all-recursive make[1]: Entering directory `/var/progs/CudaMiner' Making all in compat make[2]: Entering directory `/var/progs/CudaMiner/compat' Making all in jansson make[3]: Entering directory `/var/progs/CudaMiner/compat/jansson' gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../..     -g -O2 -MT dump.o -MD -MP -MF .deps/dump.Tpo -c -o dump.o dump.c /bin/bash: gcc: command not found make[3]: *** [dump.o] Error 127 make[3]: Leaving directory `/var/progs/CudaMiner/compat/jansson' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/progs/CudaMiner/compat' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/progs/CudaMiner' make: *** [all] Error 2   I'm pretty sure I have gcc, in fact I have multiple versions of it. I installed version 4.6 (which is what cuda requires) but it doesn't seem to find it. I'm so close!  Thanks in advance. Before upgrading to 14.04 when I clicked on a file in the dash, it opened the file.   This still happens on my 12.04 machine.  In 14.04 when I click on a file in dash search results, it offers me 3 options: 'Email', 'Open' and 'Show in Folder'.  How can I get back the previous behaviour - i.e. to immediately open the files on the first click? I use the term "100% crop" to mean a portion of a picture that has been cropped but not resized, but I have also seen some confusion around that term.   Is there an accepted definition for "100% crop?" What is its opposite called?   Here's what I think it means:   If I'm right, what is the proper name for "something else?" If I'm wrong, please include illustrations.  Either way, what evidence supports the definitions? Alt attribute inserted as empty If object A is moving at velocity $v$ (normalized so that $c=1$) relative to a ground observer emits object B at velocity $w$ relative to A, the velocity of B relative to the ground observer is  $$ v \oplus w = \frac{v+w}{1+vw} $$  As expected, $v \oplus 1 = 1$,  as "nothing can go faster than light".  Similarly, $v \oplus -1 = -1$. (same thing in the other direction)  But what if object A is moving at the speed of light and emits object B at the speed of light in the exact opposite direction? In other words, what is the value of $$1 \oplus -1?$$ Putting the values in the formula yields the indeterminate form $\frac{0}{0}$. This invites making sense of things by taking a limit, but $$ \lim_{(v,w)\to (1,-1)} \frac{v+w}{1+vw}$$ is not well-defined, because the limit depends on the path taken.  So what would the ground observer see? Is this even a meaningful question?  Edit: I understand $1 \oplus -1$ doesn't make sense mathematically (thought I made it clear above!), I'm asking what would happen physically. I'm getting the sense that my fears were correct, it's physically a nonsensical situation. Is Pikachu's gender ever confirmed? I was recently having a discussion about Pokémon, and it came up that none of us were sure whether Ash's Pikachu in the series was male or female. Some (myself included) always thought it was male, whereas others could've sworn it was female.  Was there ever any canon evidence to point in one direction or another? Suppose that $V$ is a vector space, and $W$ is a subspace of $V$. If   $V$ is finite dimensional, then prove $W$ too must be finite dimensional.   It seems intuitively obvious that the dimension of $W$ must be less than or equal to that of $V$, but I am uncertain of how specifically to show this to be true analytically.  This question has been asked before (). However, there is not a great degree of explanation in the given answers. The answer which labels itself as a hint is most similar to my thoughts towards an approach to proving this particular theorem.  I was thinking that if $\exists n\in\mathbb{R}:n=\text{dim}(V) \implies \exists B = \{\vec{v}_1,...,\vec{v}_n\}$, a basis for $V$, with $n$ vectors $\vec{v}_1, ..., \vec{v}_1 \in V$. Since $W$ is a subspace of $V \implies \beta$, a basis for $W$, which has $m$ vectors in it can be constructed by removing $k\in\mathbb{R}$ vectors from $B$ such that $B\setminus\{\vec{v}_i,...,\vec{v}_j\}=\beta$ where $\vec{v}_i,...,\vec{v}_j$ are those $k$ vectors. This means a basis for $W$ has $m=n-k$ vectors in it, and by the definition of bases $\implies \text{dim}(W)=m$, and since $n-k \in \mathbb{R}$ and $n-k=m \implies m\in\mathbb{R}$. Thus $W$ is finite. $\square$  It seems like there may be some fault with this argument, though. I get this error in the deployment step of a share-point farm based project. Most of the suggested solutions on the net are a simple Visual Studio re-start, however, a simple VS restart won't fix this.   Any ideas on what might be causing this? How can I make a bootable, unattended USB restore disk? I have a load of 14.04 kiosk systems, halfway across the country. These are horrible little integrated devices. I need to upgrade them all to 16.04 to support a new software stack. do-release-upgrade works half the time. The other half it destroys the install. In addition, the CPUs are really slow and  network connections at some sites are also pretty shoddy. So even when it works, upgrading takes a long time.  So new plan. I can make a fully-installed system image for each kiosk in Virtualbox, or LXC, or whatever. I need a way to get these images unpacked onto the systems.  The main problem here is there are very few technical people available at the other end. And I don't want to fly 200 miles to do this myself. I need something that is almost completely automated and doesn't require a keyboard.  I'm imagining a scenario where:   I make a system image for each kiosk I make a bootable USB drive for each kiosk and copy on the kiosk image. I label each and post them. At the other end, a staff member with physical access to the USB ports just plugs in the right drive and reboots. The bootable element of this then writes and expands the disk image.   It's that "bootable element" that I'm looking for. I was expecting that something like this might already exist (for bulk reimaging installations) but it's possible I'm in new territory. Anything that gets my images installed without manual interference (past plugging it in) gets points.  As far as I know, options like Clonezilla require somebody with a keyboard to tell it what to do. I need something that doesn't require a keyboard, just gets on and does it. How can I fix/repair a corrupted PDF file? How can I create an association list from 2 lists? Does Reincarnation allows skills to be passed into other classes I'm mainly asking this for Disgaea: Afternoon of Darkness, given I have enough Mana to reincarnate a character into 4 different types of Mages (Green, Blue, Red, Star), a Cleric and then a Warrior, would the Warrior have all the spells learned from the previous classes? Boolean and Texts I have used Hexagon for years but find that it sometimes crashes when trying to do Boolean operations with texts.  I have been trying to make the two tables of the Ten Commandments and have been trying to use Blender.  I did it about two years ago in Blender and lost everything on my computer so I am trying again with the latest version of Blender and am having difficulty.  I start with a cube and then get it close to the dimensions I would think the Ten Commandments might look like. I then bevel the top using the bevel modifier. But in doing it this way I don't have any cross sub divisions on the face of the object. I have tried sub dividing first but then I find that I can't bevel the top arches as far as I would like. I still don't know how to add divisions after I bevel the top. Yes I am still a novice at this program.  In any case I did figure out how to make text and turn them into an object. When I make the texts I do all four of the commandments for one side and then the other six for the other side. So this makes allot of texts to cut out.  When doing the Boolean operation in Difference sometimes nothing happens. I am thinking I need to have some sub - divisions on the face of the sized cube after it is beveled but am not really sure if this is the problem.  This whole thing about normal's is still Greek to me. I have watched some videos on how to cut letters into a cube but for some reason it does not work this easy after I bevel the top of the cube. Or it could be that Blender does not like a bunch of texts all at once.  Could someone show me a video or give me some simple steps to make my project work? Test Class Apex Page Parameters How can I do traffic shaping in Linux by IP? We have a transparent proxy setup. I tried looking for traffic shaping in Linux, and all I could find online was to limit traffic by interface (eth0/eth1...).  I need to limit the bandwidth (never exceeding a specific limit) by IP address or IP ranges and I can't find a way to do that.  Is there any way to do that? extract the 4th column from a csv file using unix command I have a csv file formatted as below.  "col1","col2","col3","col4" "1","text1","&lt;p&gt;big       html      text&lt;/p&gt; ","4th column" "2","text2","&lt;p&gt;big2       html2      text2&lt;/p&gt; ","4th column2"   I want to extract the 4th column using.  I think that awk is the best tool for this ( let me know if I am wrong). I tried this   awk -F, '{print $4}' myFile.csv    but it fails.  I think because the 3rd column is multiline one.  How can I use awk or any other unix command to extract the 4th column.  I am looking for an efficient solution since my real file is big (> 2GB) How do you find out which program is using too much memory? Ubuntu has been crashing on me recently. I think its because it runs out of memory so I ran the free -m command and found that my memory usage was really high. So then, i ran top to find the culprit, but the displayed processes were using less than 1.5% of memory. How do I know which program is making ubuntu crash/run out of memory? Below is the output:  shafee@shafee-pc:~$ free -m              total       used       free     shared    buffers     cached Mem:          3824       3714        110          0        978       1954 -/+ buffers/cache:        780       3044 Swap:           99          0         99  shafee@shafee-pc:~$ top top - 02:12:14 up  1:24,  2 users,  load average: 0.16, 0.42, 1.49 Tasks: 182 total,   1 running, 181 sleeping,   0 stopped,   0 zombie Cpu(s):  2.9%us,  1.9%sy,  0.3%ni, 79.3%id, 15.5%wa,  0.0%hi,  0.2%si,  0.0%st Mem:   3916708k total,  3803848k used,   112860k free,  1002308k buffers Swap:   102396k total,        0k used,   102396k free,  2001852k cached    PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND              4200 root      20   0  289m  53m  38m S    2  1.4   1:06.45 Xorg                 5590 shafee    20   0 19348 1368  956 R    2  0.0   0:00.01 top                     1 root      20   0 24124 2136 1264 S    0  0.1   0:02.05 init                    2 root      20   0     0    0    0 S    0  0.0   0:00.00 kthreadd                3 root      20   0     0    0    0 S    0  0.0   0:24.23 ksoftirqd/0             6 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/0             7 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/1             9 root      20   0     0    0    0 S    0  0.0   0:00.11 ksoftirqd/1            11 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/2            13 root      20   0     0    0    0 S    0  0.0   0:03.89 ksoftirqd/2            14 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/3            16 root      20   0     0    0    0 S    0  0.0   0:00.16 ksoftirqd/3            17 root       0 -20     0    0    0 S    0  0.0   0:00.00 cpuset                 18 root       0 -20     0    0    0 S    0  0.0   0:00.00 khelper                19 root       0 -20     0    0    0 S    0  0.0   0:00.00 netns                  21 root      20   0     0    0    0 S    0  0.0   0:00.01 sync_supers         shafee@shafee-pc:~$   Or is it normal to have 110mb of free memory and is my issue related to something else? Remove "Category:", "Tag:", "Author:" from the_archive_title I have the following code in my theme's archive.php:  &lt;?php the_archive_title( '&lt;h1 class="page-title"&gt;', '&lt;/h1&gt;' ); ?&gt;   This gives me titles like "Category: Russia", "Tag: America", "Author: John".  I would like to remove the "Category:", "Tag:" and "Author:" part and just display the category, tag and author names.  Does anyone know how to accomplish this?  Thank you. Movie Identification - 1990s VHS Sci-Fi/Horror How to NOT show keyboard layout chooser popup when changing language in GNOME 3