So I have these two wheels parented to the leg of a robot. I wanna make them spin a few times but they're spinning around the wrong axis. With other objects I could just press R, Y, Y to make them spin right when they're already at an angle, but for some reason it doesn't work with these. Would be amazing if someone helped me fixing this!
I'm trying to rotate the blades of a windmill for an animation but the windmill is already at an angle. When I keyframe it on it's own axis (after pressing control + alt + space) and rotate it the blades spin inwards during the animation before coming back at the end. I've tried locking the other axis but that keeps the blades from rotating back to the right orientation. Also, whenever I rotate the object 360 degrees it turns the 360 into a really small number (0.0001) so it plays forward hallway then backwards (with a 180 degree keyframe halfway). Any help would be appreciated!.
Equidistant points across Bezier curves Is there a way to "hide" a normal windowed application in Windows?  I'm looking for something that removes it from the taskbar and possibly puts an icon in the system tray instead. Is there a destructor for Java? Is there a destructor for Java? I don't seem to be able to find any documentation on this. If there isn't, how can I achieve the same effect?  To make my question more specific, I am writing an application that deals with data and the specification say that there should be a 'reset' button that brings the application back to its original just launched state. However, all data have to be 'live' unless the application is closed or reset button is pressed.  Being usually a C/C++ programmer, I thought this would be trivial to implement. (And hence I planned to implement it last.) I structured my program such that all the 'reset-able' objects would be in the same class so that I can just destroy all 'live' objects when a reset button is pressed.  I was thinking if all I did was just to dereference the data and wait for the garbage collector to collect them, wouldn't there be a memory leak if my user repeatedly entered data and pressed the reset button? I was also thinking since Java is quite mature as a language, there should be a way to prevent this from happening or gracefully tackle this. I have a really simple Java class that effectively decorates a Map with input validation, with the obvious void set() and String get() methods.  I'd like to be able to effectively call those methods and handle return values and exceptions from outside the JVM, but still on the same machine Update: the caller I have in mind is not another JVM; thanks @Dave Ray  My implementation considerations are typical    performance ease of implementation and maintenance (simplicity?) reliability flexibility (i.e. can I call from a remote machine, etc.)   Is there a 'right way?' If not, what are my options, and what are the pro/cons for each?  (Stuff people have actually done and can provide real-life feedback on would be great!) Ward model implementation: specular component too weak I'm trying to implement the Ward shading model, the anisotropic, computationally efficient version:       This is how I made it:    float alphaX=0.5, alphaY=0.5; // asinotropic roughness float minFloat= 1.e-6;   vec4 Ward(vec3 L, vec3 N, vec3 V) {     vec3 H= normalize(L+V);     float NdotL= max(dot(N,L),0.0);     float NdotV= max(dot(N,V),0.0);      vec3 e= vec3(1.0,0.0,0.0);     vec3 T= normalize(cross(N,e));     vec3 B= normalize(cross(N,T));     float HdotT= max(dot(H,T),0.0);     float HdotB= max(dot(H,B),0.0);     float HdotN= max(dot(H,N),0.0);      float beta= -2.0 * ( pow(HdotN/alphaX, 2.0) + pow(HdotB/alphaY,2.0) ) / (1.0 + HdotN);     float den= max(minFloat, 4.0 * pi * alphaX * alphaY * sqrt(NdotL * NdotV) );     vec4 specular= Ps * 1.0/den * exp(beta);     return (Pd + specular) * NdotL; }   But I get a result similar to a lambertian surface or Oren-Nayar model, where the specular component is absent: Microbot Alpha says "All of your minions are considered Microbots."  Does this mean while this card is in play, every single minion in play and in discard and in my hand are considered Microbots?   For every Microbot Fixer in play, does every single minion I have in play now get +1 because they are all microbots? If Microbot Archive is in play, does every single minion I have now cause me to draw a card when destroyed? If I play Microbot Reclaimer, can I shuffle any minions from my discard pile into my deck (by considering them all microbots)?   It looks like this link addresses the first item above:   And it looks like this link addresses the 3rd item, implying that minions in the discard are not minions because they are out of play: In the following figure prove that: $AK||BC$ In arbitrary triangle $ABC$, let $G$ be centroid and $AH$ be a height.We extend $HG$ beyond $G$ to intersect circumcircle at $K$.Prove that $AK||BC$       I connected midpoint of $BC$ to $K$ and $A$ to show $MA=MK$ but failed... Handling multiple regex matches in Ampscript Given this string:  SET @text = "&lt;a href=""https://salesforce.stackexchange.com""target=""_blank""&gt;Salesforce&lt;/a&gt; &lt;a href=""https://stackoverflow.com"" target=""_blank""&gt;Everything else&lt;/a&gt;"   And this function:  SET @matching = '\s+(?:[^&gt;]*?\s+)?href="([^"]*)"' SET @output = RegExMatch(@text, @matching, 1)   How can I manage to find and print an arbitrary number of matches in my string? E.g. in above example, I would like to present e.g. a rowset with each URL in each row. Will I be able to get an interface that is like Gnome Classic in Ubuntu 14.04? For a while I departed from Ubuntu to use Linux Mint because I really don't like Unity, or Gnome 3's most recent interface.  I was fine with what was called "Gnome Classic", but I feared it was being neglected because there were some significant bugs that lingered without improvement for a while.  Unfortunately, while I like the MATE interface in Linux Mint, Mint itself lacks the level of community support that Ubuntu has. Mint has development and support issues. Not to disparage their efforts, I think they've done great work, but it's tough making a UI, and unfortunately it's just not working for me.  I'm thinking of returning to Ubuntu with the 14.04 release, but not if it means using Unity. I have looked into the current situation, and I'm a little confused about the terms being thrown around. I have seen referens to "fallback", "flashback", and "classic", without any clear idea of which is available and what they offer.  Is there still an option to get an interface that resembles the way Gnome used to look?  Can I get an interface that looks like what I have with Mint, but with the support and features of Ubuntu? Can I get something close to that? Installing Numpy on 64bit Windows 7 with Python 2.7.3 Does anyone know if there is an API to get the current monitor state (on or off) in Windows (XP/Vista/2000/2003)?  All of my searches seem to indicate there is no real way of doing this.    tries to use  which according to Microsoft's docs does not work for display devices.   In Vista I can listen to  but I do not seem to get events when the monitor is turned off manually.   In XP I can hook into WM_SYSCOMMAND SC_MONITORPOWER, looking for status 2. This only works for situations where the system triggers the power off.   The WMI Win32_DesktopMonitor class does not seem to help out as well.   Edit: Here is  on comp.os.ms-windows.programmer.win32 indicating there is no reliable way of doing this.   Anyone else have any other ideas? Is it possible to mount on a PC an SD card that has been encrypted by an Android Marshmallow device? I have a Samsung Galaxy S5 duos with stock Android Marshmallow, and I'm considering encrypting my SD card to prevent access to its contents in case I lose my phone. The main reason of not doing this is that I'm not sure if there's a way to mount an encrypted SD card on Windows (or other desktop OS's)   When I encrypt the SD card on my Samsung Galaxy S5, is it using a known implementation of encryption, or is it something that only works on Android (or perhaps Samsung) phones?   I do not want to use USB connection to my phone to access my SD card, it's terrible. Mounting the SD card is much easier and faster and less annoying.   EDIT: just to clarify, I am NOT talking about adoptable storage. I want a portable encrypted SD card that can both be read on PCs and Android phones (i.e. I want to be able to remove the SD card from my phone, plug it into my PC, provide a password to decrypt and read/write it like any other SD card) I am getting FATAL_ERROR|System.QueryException: List has no rows for assignment to SObject. I know that it is because it is not returning any rows in the SOQL query but what I want is that if it returns any row, it should update ALO field on contact object, if it is null then ALO field should be set to null.  Here is my code:  ziptoLOD = [SELECT Id, Name, LOD__c             FROM Zip_3_to_LOD__c             WHERE Name =: contact.Extract_Zipcode__c ];  Zip_3_to_LOD__c ziptoLOD2 = (ziptoLOD != null) ? ziptoLOD : null;  if (ziptoLOD2 == null) {     contact.ALO__c = ' ';    } else {     System.debug(System.LoggingLevel.ERROR, 'Zip to LOD' + ziptoLOD2);     contact.ALO__c = ziptoLOD2.LOD__c; }   My code gets stuck at the SOQL query and gives me the list has no rows error. Evaluate $\lim_{x \to 0} (x\lfloor\frac{1}{x}\rfloor)$  I'm trying to solve it by using the squeeze theorem but I'm stuck.  I'm looking for a function $g(x)$ such that $g(x) \leq x\lfloor\frac{1}{x}\rfloor \leq x(\frac{1}{x}) = 1$  Can anybody give me a hint? Android WebView for Facebook Like Button How to unzip a zip file from the Terminal? How can I sort arrays and data in PHP? Do companies have IT "spyware" on corporate iPhones? I'm a software developer and as such I build and run programs hundreds of times per day. I've noticed that since I started using Catalina, after compiling and linking there is a delay (which can be seconds) when the internet is slow or having problems (I have bad internet often). If I disable wifi and rebuild, the delay goes away. How can I disable this so my builds run faster? Increasing real valued function whose image set is connected Let $S = [0,1) \cup [2,3]$ and $f\colon S \rightarrow \mathbb R$ be such that $f(S)$ is connected . Which of the following are true:  a) $f$ is discontinuous exactly at one point.  b) $f$ is discontinuous exactly at two points.  c) $f$ is discontinuous at infinite many points.  d) $f$ is continous.  I think $f$ is continuous . We need to show that $\lim_{x \to a^+}f(x) = f(a)$ for any $a \in S$. Since $f(x)$ is increasing, $\lim_{x \to a^+}f(x) \leq f(a)$. Suppose $\lim_{x \to a^+}f(x) &lt; f(a)$. Then there is $l$ such that $\lim_{x \to a^+}f(x) &lt; l &lt;f(a)$, which contradicts connectedness of $f(S)$. Similarly we can show that $\lim_{x \to a^-}f(x) = f(a)$.  I would be thankful if anyone would check my solution and correct me if there are any errors.