What I'm trying to accomplish is to be able to wrap a plane of objects onto a sphere. Think of it as a plane of varying heights. How should I approached this? I've tried using x and y wrap modifiers but it isn't looking correct.
How to make a grid-to-sphere animation like this?
Using TIPA with fontspec I have a hook_form_alter in a module, and it should be firing, but it appears it's not. I've cleared caches and rebuilt the registry. Is there someplace in the database or somewhere else where I can see if my hook is registed? FWIW here is my hook:  /**  * Implements hook_form_alter  */ function my_module_form_alter(&amp;$form, &amp;$form_state, $form_id) {   drupal_set_message($form_id); } unable to change php version on cli I want to set a from address in a salesforce SingleEmailMessage, but can't see a way to do this and there is no standard method described in the documentation.   I want the email to be sent from doNotReply@blahblah.com, however, the email address of the user editing the record (which triggers the email send) is used as from address.  I'm using the following code:  mail.setReplyTo(fromaddress); mail.setSenderDisplayName(fromaddress);   But my code only changes the display name, not the email address.  Full code:   public static void sendSingleMail(id objId, ID templateId, string fromaddress) {      Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();     mail.setReplyTo(fromaddress);     mail.setTemplateId(templateId);     mail.setTargetObjectId(objId);     mail.saveAsActivity = false;     mail.setReplyTo(fromaddress);     mail.setSenderDisplayName(fromaddress);      ErrLogger.logger('Email being sent to :');     ErrLogger.logger('objId found:  ' + objId);     ErrLogger.logger('templateId found:  ' + templateId);     ErrLogger.logger('fromaddress found:  ' + fromaddress);      Messaging.sendEmail(new Messaging.SingleEmailmessage[] {mail}); } Where's the Rainbow Jetpack gone in Jetpack Joyride? How to Backup and Restore Android OS without Rooting I want to find a way to restore my phone in case the process of rooting my phone or dual booting a custom rom breaks it. However, most of the ones I've looked at require the phone to be rooted before installing. I know I can create a nandroid backup through system settings, but I don't know how to recover that without rooting my device, or if there are better options. I'm not terribly concerned for any personal data on my phone (I can backup my pictures pretty easily), but I mostly just want to be able reinstall Android OS or reset to factory default in case my device breaks. Thanks! Edit: I am going to ask a new question (one different enough to justify not simply modifying this one) with the new info I learned from the possible duplicate. Why could the pictures and paintings in Hogwarts talk and the photos of Harry's parents couldn't? Is there any way to do n-level nested loops in Java? In other words, can I do something like  for() {     for {        for {        }     } }   Except N times? In other words, when the method creating the loops is called, it is given some parameter N, and the method would then create N of these loops nested one in another?  Of course, the idea is that there should be an "easy" or "the usual" way of doing it. I already have an idea for a very complicated one. Placeholder for body off in Android app The placeholder for the body field (the word "Body") is strangely placed in the Android app, seems a bit too high:    Could reproduce using:   Samsung Galaxy 4a.  Android version 4.4.2  App version 1.0.54 Moto X (2013), Android 4.4.4 App version 1.0.60 How to get access to USB-storage from an application installed as Snap? I have Ubuntu 18.04 LTS installed. I inserted USB-flash to my laptop. It was automounted to /media/username/DISKLABEL and opened in Nautilus. I can read and write objects to it. How can I access it from the application, which is installed as Snap? I tried snaps of the following applications such as gedit, arduino-mhall119, organize-my-files. All them show me errors if I navigate to /media folder:    Could not read the contents of Media Error opening the directory of '/media': permission denied  Output of active Snap  is below: $ snap interfaces  | grep -v &quot;.*-$&quot; Slot                             Plug :browser-support                 organize-my-files :core-support                    core:core-support-plug :cups-control                    gedit :desktop                         gedit,organize-my-files :desktop-legacy                  gedit,organize-my-files :gsettings                       gedit,organize-my-files :home                            arduino-mhall119,gedit,organize-my-files :network                         arduino-mhall119,gedit,organize-my-files,pulsemixer :opengl                          organize-my-files :pulseaudio                      organize-my-files,pulsemixer :unity7                          arduino-mhall119,gedit,organize-my-files :wayland                         gedit :x11                             arduino-mhall119,organize-my-files,pulsemixer gnome-3-26-1604:gnome-3-26-1604  gedit gtk-common-themes:gtk3-themes    gedit gtk-common-themes:icon-themes    gedit gtk-common-themes:sound-themes   gedit -                                arduino-mhall119:serial-port -                                gedit:avahi-observe -                                gedit:mount-observe  Updates:  connecting mount-observe to Gedit with snap connect gedit:mount-observe does not help. it seems that we need special Snap with support of  interface. Using trickle to limit the bandwidth of a VirtualBox VM I'm trying to limit the bandwidth of a virtual machine running via VirtualBox.   trickle -d 5 virtualbox doesn't work, I believe because of an issue with child processes (trickle -d 5 sudo apt-get upgrade doesn't work either)  How can I limit the download/upload bandwidth of VirtualBox's VMs? How do I change folder timestamps recursively to the newest file? How do I show that if $f : [0,1] \to [0,1]$ is continuous, then there is some $c$ such that $f(c) = c$? Theorem: Let $f:[0,1] \to [0,1]$. Assume $f$ is continuous. Then there exists   $c \in [0, 1]$ such that $f(c) = c$.         For any function $f$, let $g(x) = f(x) − x$. If the theorem is true, what does that say about $g(c)$?   Write a proof of the theorem. Do it by applying the Intermediate Value Theorem   in the appropriate way to the function $g(x) = f(x) − x$ with $a = 0$ and $b = 1$. Clearly state why the hypotheses of the IVT are satisfied here.        Well if the theorem is true, then there exists $c$ such that $f(c) = c$. Then $f(c) - c = 0$. Then $g(c) = 0$. Intermediate Value Theorem: Let $I$ be an interval and $f$ a function whose domain contains $I$. If $f$ is continuous, then for all $a, b \in I$ with $a &lt; b$ and all real numbers $k$, if $k$ is strictly between $f (a)$ and $f (b)$, then there exists $c$ such that $a &lt; c &lt; b$ and $f (c) = k$.   Proof Attempt: Take $a = 0$ and $b = 1$. Then $a,b \in[0,1]$ and $a &lt; b$. Since $f:[0,1] \to [0,1]$, it follows that for all real numbers $k$ such that $f(a) &lt; k &lt; f(b)$, then there exists $c$ such that $a &lt; c &lt; b$ so $0 &lt; c &lt; 1$ and $f(c) = k$. Then $f(c) - k = 0$. Thus, since $g(x)=f(x)-x$, it follows that $g(c) = 0$.   Looking to see if I did this correctly and/or if there is a more elegant way to prove problem 2. I am a little confused why the first theorem is true, but I went with it. How to blacklist kernel modules? How do I disable loading of unnecessary kernel modules. Kernel 3.2.4 How do you check if a JavaScript Object is a DOM Object? I'm trying to get:  document.createElement('div')  //=&gt; true {tagName: 'foobar something'}  //=&gt; false   In my own scripts, I used to just use this since I never needed tagName as a property:  if (!object.tagName) throw ...;   So for the second object, I came up with the following as a quick solution -- which mostly works. ;)  The problem is, it depends on browsers enforcing read-only properties, which not all do.  function isDOM(obj) {   var tag = obj.tagName;   try {     obj.tagName = '';  // Read-only for DOM, should throw exception     obj.tagName = tag; // Restore for normal objects     return false;   } catch (e) {     return true;   } }   Is there a good substitute? Are those stars moving past the window when the ship is at warp? When the enterprise (ENT) is moving at warp we see numerous stars flying past in the windows:    However, according to , at warp 5 (the maximum speed of the 1st enterprise) it would take 7.4 days to get from the Sun to Alpha Centari, our nearest star(s) approximately 4 light years away. So to have stars whizzing past every few seconds would imply that the stars are very close together.  Is this an inaccurate depiction of star movement at warp, or is there some explanation like the warp bubble creates a lensing effect?  Now I realise the classic answer is "suspend your disbelief, it's a tv show", but the animators have at least thought about the star movement as they have added in a bit of red shift and blue shift which you can see in the image. What are matter waves made of and what is their speed? How do you rotate a two dimensional array? Inspired by , say you have a 4x4 two dimensional array, write a function that rotates it 90 degrees. Raymond links to a solution in pseudo code, but I'd like to see some real world stuff.  [1][2][3][4] [5][6][7][8] [9][0][1][2] [3][4][5][6]   Becomes:  [3][9][5][1] [4][0][6][2] [5][1][7][3] [6][2][8][4]   Update: Nick's answer is the most straightforward, but is there a way to do it better than n^2? What if the matrix was 10000x10000? Can't change font size for GD imagestring() I'm looking for the antonym of -cide (as in suicide, pesticide, etc.). Essentially the ending to words that would mean "to create or embrace".