Aligning objects in Illustrator does not produce expected result
Adobe Illustrator: strange behavior while aligning objects
Is it possible to use Matcap materials as an actual material for a model so that I can render with it? There are certain parts that I want to apply specific Matcaps textures to but I want to actually use them to render and not just for sculpting purposes.  Is this at all do-able? I have the age-old problem of a div wrapping a two-column layout. My sidebar is floated, so my container div fails to wrap the content and sidebar.  &lt;div id="container"&gt;   &lt;div id="content"&gt;&lt;/div&gt;   &lt;div id="sidebar"&gt;&lt;/div&gt; &lt;/div&gt;   There seem to be numerous methods of fixing the clear bug in Firefox:   &lt;br clear="all"/&gt; overflow:auto overflow:hidden   In my situation, the only one that seems to work correctly is the &lt;br clear="all"/&gt; solution, which is a little bit scruffy. overflow:auto gives me nasty scrollbars, and overflow:hidden must surely have side effects. Also, IE7 apparently shouldn't suffer from this problem due to its incorrect behaviour, but in my situation it's suffering the same as Firefox.  Which method currently available to us is the most robust? How to prevent iTerm2 from creating overlaps and broken lines after pasting multiline chunks of text? If I paste multiline chunks of text into iTerm2, I always a get mess of output. It seems limited to only some programs running interactively (such as Bash, IRB - Python / VIM work flawlessly). Using Apple's native Terminal, I can paste whatever I want wherever I want - it works. For example, this sample text ():  echo Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. echo Sed sit amet ipsum mauris. Maecenas congue ligula ac quam viverra nec consectetur ante hendrerit. echo Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. echo Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. echo Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ut gravida lorem. Ut turpis felis, pulvinar a semper sed, adipiscing id dolor. echo Pellentesque auctor nisi id magna consequat sagittis. Curabitur dapibus enim sit amet elit pharetra tincidunt feugiat nisl imperdiet. echo Ut convallis libero in urna ultrices accumsan. Donec sed odio eros. Donec viverra mi quis quam pulvinar at malesuada arcu rhoncus. [snip]   pasted into IRB produces this in iTerm2:    while it produces this in native Terminal:    I am running the latest versions of OSX and iTerm2. What's going wrong here? Could the universe's antimatter be hiding in black holes? As far as we know almost all the mass in the universe is matter, not antimatter. There are three scenarios:   The universe started off with more matter than antimatter and the small amount of antimatter has mostly been converted to energy via collisions with matter The universe started off with equal amounts of matter and antimatter and some unknown process caused the situation we see today The universe started off with less matter than antimatter and somehow the ratio reversed (I've never heard this discussed as it seems so unlikely)   We reason that mass is matter because if there were large amounts of antimatter they should produce antimatter galaxies, which would give off huge amounts of energy when they interact with matter galaxies. This has never been observed so we conclude that all galaxies, therefore all mass in the universe is matter.  As I understand it there are two main types of black holes, stellar remnants (the collapsed remnants of dead stars with more than two solar masses) and super-massive black holes at the centre of many galaxies, including one thought to be at the centre of our own galaxy.  Stellar black holes are obviously originally composed of matter, for the same reason that all galaxies are composed of matter.  We don't know how super-massive black holes formed. Is there enough mass in them to contain all the antimatter in the universe if matter and antimatter were originally created in equal quantities? I realise this shifts the unknown mechanism from "why was more matter created than antimatter" to "why is antimatter more likely to form super-massive black holes" but is this hypothetical scenario possible? Is $\lim\limits_{n\rightarrow\infty} n$ comparable to $\aleph_0$? For example, can we say: $\infty=\lim\limits_{n\rightarrow\infty} n &lt; \aleph_0$?  These are two different types of structures. The limit being like the length, extension, or just generic magnitude and the other being cardinality of a set. Can we compare magnitude to cardinality?  Intuitively, we can reach $\aleph_0$ by counting the natural numbers on the number line and in the process will be approaching $\infty$. Which leads me to believe $\infty\leq\aleph_0$. But I can't see why it should be a strict inequality. I feel like they should be of equal magnitude.  I saw on a recent comment that $2^\infty=\infty$, but are those infinities really the same? It seems not to me. Of course we (usually) have that  $2^{\aleph_0}=\aleph_1$ where ${\aleph_0}$ and $\aleph_1$ are clearly two very distinct infinities, countable vs uncountable at least. Maybe one might argue that as far as the concept of magnitude is concerned, all infinities are "equal". Show that function $f$ has a continuous extension to $[a,b]$ iff $f$ is uniformly continuous on $(a,b)$ Let $E \subset F \subset X$ and $f:E\rightarrow Y$. We say that the function $g:F\rightarrow Y$ is an extension of $f$ if $g(x) = f(x)$ for all $x \in E$.   Let $f: (a, b) \rightarrow \mathbb{R}$. Show that $f$ has a continuous extension to $[a, b]$ if and only if $f$ is uniformly continuous on $(a, b)$.   $(X,d)$ is a metric space.  Hint: To prove $\Leftarrow$ start by showing that $f$ maps Cauchy sequences to Cauchy sequences. Then how should you define $g(a)$ and $g(b)$?  The $\Rightarrow$ part of the proof was quite simple, but even with the hint, the other way seems a bit difficult. Doesn't the first part of the "hint" follow from the way we defined $f$? If so, how do I prove this? Help/Hints appreciated! Error 1962: no operating system found after installing 12.04 (Lenovo ThinkCentre) I just installed a fresh copy of 12.04 on a new Lenovo ThinkCentere from a USB drive, and when I restarted after installation, the boot sequence didn't find the OS. Instead I got the 'no operating system found' error. When I started Ubuntu from the USB, I could see the HDD and that it had all the installed files. I just couldn't boot into it. It appeared that GRUB was not at the right place... or that there was something funky with the MBR. What is the simplest way to fix these sorts of errors?  Thank you,  EDIT: It appears the problem might have to do with UEFI and GRUB... novel with psi slavery Why can't Chromium suddenly access any partition except for /home? I was wondering if $\mathbf{A}\times\mathbf{C}=\mathbf{B}$ and $\mathbf{A}\cdot{\mathbf{C}}= p$, is it possible to express C in terms of A, B, and p?  Note: A, B, C are vectors and p is a scalar.  Sorry if this question has been asked before. If so, can anyone give me a link to it? Linux: coloring bash prompt will break carriage return When I try to colorize the bash prompt like this:  export PS1="\e[0;31m[\u@\h \W]\$ \e[m "   it breaks the carriage return (instead of going to a new line when line is full, it starts in the same line and erases the input text).  If I remove the color sequence it works fine. I use Ubuntu 11.10 and terminal (guake has the same bug too). Array versus List: When to use which? Unable to use built in events (Event Reference) Salesforce has functions that do a lot of basic web app functionality for you, called Event Reference. They can be found here   On the editRecord Event Reference, found here   essentaily, I create a   &lt;ui:button label="Edit" press="{!c.editRecord}"/&gt;   on my component, reference the attribute on the page and add the function from the docs in the controller  editRecord : function(component, event, helper) {     var editRecordEvent = $A.get("e.force:editRecord");      console.log("record id is: " + component.get("v.item.Id"));     console.log("editRecordEvent value is: " + editRecordEvent);      editRecordEvent.setParams({         "recordId": component.get("v.item.Id")     });      editRecordEvent.fire(); }   correct?  Here is the odd thing. From the console.logs, I get the record id, but the editRecordEvent returns undefined. What is going on? Is there something I need to reference in my component to use Event Reference? How to make terminal transparent while still having its own background image? Is there a way to give terminal specific background image and make it 50% transparent at the same time? What's a concise way to check that environment variables are set in a Unix shell script? I've got a few Unix shell scripts where I need to check that certain environment variables are set before I start doing stuff, so I do this sort of thing:  if [ -z "$STATE" ]; then     echo "Need to set STATE"     exit 1 fi    if [ -z "$DEST" ]; then     echo "Need to set DEST"     exit 1 fi   which is a lot of typing. Is there a more elegant idiom for checking that a set of environment variables is set?  EDIT: I should mention that these variables have no meaningful default value - the script should error out if any are unset. How can I get list of symbols, abbreviations, abstract, acknowledgements into Table of Contents before Introduction, and under roman numerals? "is" operator behaves unexpectedly with integers Why does the following behave unexpectedly in Python?  &gt;&gt;&gt; a = 256 &gt;&gt;&gt; b = 256 &gt;&gt;&gt; a is b True           # This is an expected result &gt;&gt;&gt; a = 257 &gt;&gt;&gt; b = 257 &gt;&gt;&gt; a is b False          # What happened here? Why is this False? &gt;&gt;&gt; 257 is 257 True           # Yet the literal numbers compare properly   I am using Python 2.5.2. Trying some different versions of Python, it appears that Python 2.3.3 shows the above behaviour between 99 and 100.  Based on the above, I can hypothesize that Python is internally implemented such that "small" integers are stored in a different way than larger integers and the is operator can tell the difference. Why the leaky abstraction? What is a better way of comparing two arbitrary objects to see whether they are the same when I don't know in advance whether they are numbers or not? Solve a system of equations with Euclid's Algorithm How to display javascript console on Chrome (or a different browser)? I want to quickly try some Javascript code on Android phone.   I cannot find how to open console or something similar on either Chrome or default browser. about:debug doesn't do anything, and I don't want "remote debugging".   I can download another app if necessary (but I don't want to root my device). Percentage of overlapping regions of two normal distributions I was wondering, given two normal distributions with $\sigma_1,\ \mu_1$ and $\sigma_2, \ \mu_2$   how can I calculate the percentage of overlapping regions of two distributions? I suppose this problem has a specific name, are you aware of any particular name describing this problem?  Are you aware of any implementation of this (e.g., Java code)?