So I'm trying to make an icon with a long shadow, I used Illustrators blend tool to make the shadow in between my two pigs like so.   What I would like to do now is create a clipping mask for the long shadow to keep it inside the light blue box that the pig is inside of. I've tried multiple ways to get the clipping mask made, but the truth is, I'm a newbie with Illustrator. Could someone help me out?
Im new to Illustrator and have found the clipping mask is not so easy compared to Phtoshop. Could any one tell me how i can make this line texture a clipping mask over the circle?
java.net.SocketException: Connection reset I am getting the following error trying to read from a socket. I'm doing a readInt() on that InputStream, and I am getting this error. Perusing the documentation this suggests that the client part of the connection closed the connection. In this scenario, I am the server.  I have access to the client log files and it is not closing the connection, and in fact its log files suggest I am closing the connection. So does anybody have an idea why this is happening? What else to check for? Does this arise when there are local resources that are perhaps reaching thresholds?    I do note that I have the following line:  socket.setSoTimeout(10000);   just prior to the readInt(). There is a reason for this (long story), but just curious, are there circumstances under which this might lead to the indicated error? I have the server running in my IDE, and I happened to leave my IDE stuck on a breakpoint, and I then noticed the exact same errors begin appearing in my own logs in my IDE.  Anyway, just mentioning it, hopefully not a red herring. :-( Why exactly does diffraction occur? Why do waves that were traveling in a straight direction change direction when passing through an opening?  I thought that the waves (red arrow) when colliding with the wall bounce in the opposite direction (green arrow).  And the waves that pass through the aperture follow its path normally as shown in the image on the right.   The waves that go in a straight direction should follow traveling straight line like a car that goes under a bridge the car is straight on the road. But this is not so.  Why does the direction of the waves change?  How is the direction of the waves calculated? Is this WUBI? What is "Installation size" setting for? I'm new to Ubuntu... I went to the downloads page and downloaded the Windows Installer as I am hoping initially to have a dual boot on my currently Win 7 PC (I would consider preserving my Win7 install as a VM under Ubuntu instead - advice?)  It's asking me to choose an "Installation size" but there's no explanation as to what the significance of this is. Is this a disc partition?  Can I increase it easily later if it's too small?  I came here to ask these questions and now I see a bunch of threads about 'WUBI' and possible downsides of installing Ubuntu this way. Is the Windows Installer I just downloaded going to give me WUBI? How to perform a logistic regression for more than 2 response classes in R I want to predict the impact of oil price over a Colombian oil company's stock price. I plan to use a logistic regression for this with a categorical variable (Up or Down given the direction of the stock price). Here is part of my dataset:  Minute  ecopet  profit  sum_profit   direccion  cl1_chg   sum_cl1    direccion_cl1 571     2160     0       10           Up         -0.03     0.00      Down 572     2160     0        0           Neutral     0.07    -0.03      Down 573     2160     0       -5           Down       -0.08     0.04      Up 574     2160     0       -5           Down       -0.07    -0.04      Down 575     2160     5       -5           Down       -0.08    -0.11      Down 576     2165     0       -25          Down        0.00    -0.19      Down 577     2165     0       -25          Down       -0.05    -0.19      Down 578     2165     0       -15          Down       -0.17    -0.24      Down 579     2165     5       -15          Down       -0.06    -0.41      Down 580     2170     0       -20          Down        0.03    -0.47      Down 581     2170    -10       0           Neutral     0.04    -0.44      Down   My dependent variable is 'direccion'. But as you can see it has 3 response classes. I know that to implement a binary logistic regression in R the code is:  glm.fit=glm(direccion~direccion_cl1, data=datos, family=binomial)   I am working with intraday information and plan to predict what happens when the oil moves up/ down (in the previous 10 minutes) and how it impacts the stock price in the next 10 minutes.  Could anyone tell me how could I perform this? I don't really know how to perform the logistic regression with 3 response classes. Thanks! Is there a word for colloquial forms of address? Why is $SO(3)\times SO(3)$ isomorphic to $SO(4)$? Would anyone can help me how to show that a finitely generated projective module over a local ring and PID are free?    What I know about a finitely generated projective module $M$ over a PID $R$ is isomorphic to $R^k\oplus R/(a_1)\oplus\dots\oplus R/(a_n)$, and for the local ring case I don't know how to start. What exactly is a bad backlink that is Disavow worthy? I have been reading Webmasters SE and many other blogs on this topic but I could not understand how do we truly evaluate a bad link that we must disavow in GWT. Everybody seem to have a different opinion on this.  A little background  I am a WordPress developer and 3 years ago I gave away a WordPress theme to my blog visitors which has a dofollow link back to my business website. Like this.  WordPress theme designed by &lt;a href="http://domain.com"&gt;MyBusinessName&lt;/a&gt;   From last 2 years I was not paying any attention on organic traffic to my business website because of other projects.  That free WordPress theme helped us getting ~10K backlinks from variety of domains and websites. All most 99% backlinks are from non-related websites and in many different languages.  Now  Last week it came to my attention that in October 2013, organic traffic from Google started decreasing and in just 2 months it became as low as 25% of October. Before October it was gradually increasing ~5-10% per month.  So I researched and draw to the conclusion that it could be because of Penguin Update. Since  was introduced at the same time.  Now I need information on what a bad/toxic link is.  I was about to disavow almost all links but after reading many topics on Webmasters SE I think I need more information on how to identify a bad link.   Does credit link in footer consider as spam because it build thousands of backlinks? Do foreign language website backlinks consider as spam? Should I remove all backlinks from theme users because almost all are from non-related content domains? Although some links from non-related content domains have nice DA/PA. Should I remove those too? I understand foreign language anchor text backlink could be a spam but what if it is from related foreign language content.   The question is how exactly one can find a link that is bad and must be removed. "register" keyword in C? What does the register keyword do in C language?  I have read that it is used for optimizing but is not clearly defined in any standard.  Is it still relevant and if so, when would you use it? Are there tips and tricks to overcome a fear of flying? Are there tips and tricks for people with fear of flying that can makes them have a more pleasant experience when flying? I know drugs can do magic, and . I'm ideally after official advice and recommendations, but other tips and tricks would be nice as well. Tips to extend battery life for laptops and notebooks This question is present as a matter of historical interest.  While you are encouraged to help maintain its answers, please understand that "big list" questions are not generally allowed on Ask Ubuntu and will be closed per the .   It is possible to greatly extend the usage time of a laptop or netbook running on battery by disabling various services and installing various packages.   What tricks or tips do people have for getting an extra hour or two out of their batteries? How to colorize an image as in the example? Autorun.inf in Windows 8/8.1 for USB Drives I have created a file named autorun.inf to make one of my software setup run when the usb is plugged into Windows 8/8.1 OS .  This is my autorun.inf code:   [AutoRun] shellexecute="Mem.exe //It would be nice if i could add path to this like my Doc//mem.exe UseAutoPlay=1   Is there any software that let's us to create auto-run files for USB Sticks?  Is there any way to add new options in right click menu only on my USB window? I think the title says it all. Let's say you're mastering a game without the benefit of miniatures, maps, or any kind of physical representation of the environment. How would you keep track of details like line-of-sight, ranged attack viability, and all the other small nuances which go with creating a "believable-enough" environment in which your PCs live and thrive?  (I admit that @LoganMacRae, who is my own DM, is an inspiration for this question. He does this with panache, and in my one-off, I feel like I have some mighty big shoes to fill!) A weighted version of random.choice Am wondering if somewhere there is a list of industry "minimums" for browser support. My company release two "portals" over the past 6 months and did very little to support IE8 users, who at this time, according to my G Analytics makes up about 14% of all IE visitors. Amazingly enough IE7 is 25%...  Figured support for IE7 was out the window already, but figured 14% was significant enough to warrant some support.  Any arguments to support my side of wanting to support IE8?  Any arguments to NOT support IE8? Smallest dense subset of $\mathbb{R}$ I am not sure if what I am looking for even makes sense (or) exists. Anyway I would be happy if someone can clear my confusion.  The set of real numbers $\mathbb{R}$ is obtained as completion of $\mathbb{Q}$. However, $\mathbb{Q}$ is not the only set which is dense in $\mathbb{R}$. $\mathbb{Q} \backslash \mathbb{Z}$ is also a dense subset of $\mathbb{R}$. I am wondering if it makes sense to talk of the "smallest" dense subset of $\mathbb{R}$. To phrase what I am looking for precisely and what I mean by smallest, I am looking for a dense set $A$ of $\mathbb{R}$ such that if $B$ is a proper subset of $A$ then $B$ is not dense in $\mathbb{R}$. I am able to "see" that the set $A$, I am looking for doesn't exist since any open interval consists of infinite rationals. But I am unable to precisely argue out to myself and convince why $A$ doesn't exist. Could some one throw more light on this? Is there a (basic) way to understand why a limit cannot be brought inside of a sum, in certain situations? I have seen that the method of "dominated convergence" implies that sometimes a limit cannot be brought inside of a sum, but is there a more basic way to understand this, preferably without using integrals?   A conceptual or simple answer would be helpful. Thank you! Say I have a cologne bottle of 100 ml that I want to carry in my hand luggage on a plane trip.  100 ml is the limit so it should be fine for the transport regulations (if not, please let me know!).  The problem I always encounter is regarding the storage of the bottle: how to prevent it from leaking?  What I normally do is to put it in a plastic bag, so that the possible loss remains there. It is fine, only that the bottle ends up quite wet.  What would be a better approach? Arduino Negative Voltage Reading with Positive Ground I am trying to measure voltage &amp; current off a solar charge controller from panel, battery &amp; load simultaneously with my arduino. I have managed to achieve this by tying all the negatives together and using it as GND, however, when I do that the charge controller doesn't function properly and when I switch to off-mode the loads still run. After checking the instruction manual further, I found out that the positives are shared common between Pan, Bat, Load. This was confirmed with a multimeter.   So now what I am thinking of doing is using the positive from the battery as the GND reference and then measuring all other voltages (through voltage dividers with respect to the GND). The voltages should then range between -17V to 0V.   However, I have read that the analog input pins are not able to read negative voltages, and with respect to the positive GND, the Analog inputs will all be negative.   EDIT: I was thinking of using an amplifier to invert positive ground to a negative ground, meaning I could measure all the positive sides of the voltages. But after getting answers from you guys it seems I may not have to use an amplifier and a voltage divider may suffice. I have currently included a 2 resistor voltage divider between each analog input, +5V source, Vmeasure which you can see in the diagram below.  According to my calculations, if this works, @-17V I should see 0.6V @ analog input. @0V I should see 4V at analog input.   I'd appreciate feedback on this circuit, and below in the second image I've also included a piece of another method suggested by @jonk (thanks), and would be interested in knowing what the benefits are of method B) over method A)  Thanks!  Ps. the ameters are there in place of ACS712 current sensors which also go into analog input pins.   Method A)        &ndash; Schematic created using   Method B (EDIT: This method has worked, I am still yet to test method A) thanks @Jonk))