GET n decimal places without round in SQL Server
Truncate (not round) decimal places in SQL Server
Rotating an object continously with OnMouseDown I have a script that works but it does not do what I want it to do. My script makes an object rotate on when another is clicked. However, I want the object to continuously rotate until I click on the other object again. Right now when I click it rotates just a bit and stops.  Here is my script:   public class Rotate : MonoBehaviour {     public float speed =50f;     public GameObject target;      public void OnMouseDown(){        target.transform.Rotate (new Vector3(0, Time.deltaTime, 0) * speed);     }  }   How can I make the object rotate continuously until I click it again? The shortcode produced by this function - a list of all sites in a multisite - outputs above the content in the loop, no matter where it is placed in the editor.  I've looked at the other related questions and answers on WPSE and realize that it has to do with the function using echo instead of return, but it's not as easy as replacing the instances of echo with return in the function below. Or adding echo=0 with a WP function like wp_list_pages()  Any ideas? Where is the function that needs to be returned instead of echoed?  // Output a single menu item function projects_menu_entry($id, $title, $link_self) {     global $blog_id;     if ($link_self || $id != $blog_id) {         echo '&lt;li&gt;';         if ($id == $blog_id) {             echo '&lt;strong&gt;';         }         $url = get_home_url($id);         if (substr($url, -1) != '/') {             // Note: I added a "/" to the end of the URL because WordPress             // wasn't doing that automatically in v3.0.4             $url .= '/';         }         echo '&lt;a href="' . $url . '"&gt;' . $title . '&lt;/a&gt;';         if ($id == $blog_id) {             echo '&lt;/strong&gt;';         }         echo '&lt;/li&gt;';     } }  // Output the whole menu // If $link_self is false, skip the current site - used to display the menu on the homepage function projects_menu($link_self = true) {     global $wpdb;      echo '&lt;ul&gt;';      projects_menu_entry(1, 'Home', $link_self);      $blogs = $wpdb-&gt;get_results("         SELECT blog_id         FROM {$wpdb-&gt;blogs}         WHERE site_id = '{$wpdb-&gt;siteid}'         AND spam = '0'         AND deleted = '0'         AND archived = '0'         AND blog_id != 1     ");      $sites = array();     foreach ($blogs as $blog) {         $sites[$blog-&gt;blog_id] = get_blog_option($blog-&gt;blog_id, 'blogname');     }      natsort($sites);     foreach ($sites as $blog_id =&gt; $blog_title) {         projects_menu_entry($blog_id, $blog_title, $link_self);     }     echo '&lt;/ul&gt;'; }  // Adds a [bloglist] shortcode  function bloglist_shortcode($atts) {     projects_menu(false); }  add_shortcode('bloglist', 'bloglist_shortcode'); I have a simple skull model, to which I applied the subdivision modifier. For the most part everything works as expected, except I keep getting these weird sharp vertices and I can't seem to figure out how to flatten them.    I'm using Blender 2.8. Is this some kind of feature I can disable/enable for particular vertices? The distance between the sharp vertices and the gray outline differ.    Any suggestions please? Thank you!  EDIT: I also tried selecting as both - vertexes and edges and then applied Edge->Clear Sharp, but nothing changed. What does the '!!!' syntax mean in javascript? I found native people prefer to use passive voice in a sentence. For example:  Tonight's moon can be seen from anywhere worldwide. We have reason to believe that progress can be made.  Be honest, it's difficult for an English learner to understand. Why not phrase it this way:  We can see the moon from anywhere worldwide.  In which cases do people prefer to use passive voice rather than active voice? Let f be an r-cycle in $S_n$. Given any $h \in S_n$, show that $hfh^{-1} = (h(x_1), h(x_2), \dots, h(x_r))$ Alternating sum of binomial coefficients: given $n \in \mathbb N$, prove $\sum^n_{k=0}(-1)^k {n \choose k} = 0$ What happened to Saruman after he was knifed by Grima? I tried to install Tor on my new version of Ubuntu, but it seems that Tor is not available in the repositories.  How else can I install and use Tor? Will Ubuntu get patched against Meltdown and Spectre? The following is a canonical post that attempts to cover a broad number of Meltdown and Spectre questions.  It is being maintained by Thomas Ward who is in contact with the Security and Kernel teams on this matter for other reasons as well.   I recently read about the  vulnerabilities.  I was wondering, will Ubuntu be patching against the vulnerabilities?  And is there an ETA on a fix? Derivative of an even function is odd and vice versa Generating hatched filling using Region functionality Reputation displaying incorrectly on Careers (for some accounts) When I go to , go to the "Stack Exchange" section, and click on "edit" under "Accounts", I see the following at the bottom of the account list (partially truncated for reasons of space):    Now, as you can see from my reputation here on MSO, I should have the association bonus on all sites where I have an account. Yet, for some reason, my accounts on Android, Italian, Sound Design, and Windows Phone are listed as having just 1 reputation. However, if you look at my account on each of these sites (, , , and ), you will see that I do, indeed, have 101 reputation from the association bonus.   At first, I thought the commonality among those four sites was that I hadn't performed any actions on them (not even voting), but it turns out that I have actually cast a vote on Android, so I don't really know what's up.   Note also that all of these accounts are at least a few weeks old (and my association bonus is even older than that), so this doesn't seem like it would be a caching issue or anything. "I use to", or "I used to" Which is the correct sentence, if there is a correct one?     I use to be a hitman.        I used to be a hitman.   I've read the second sentence recently in a book, but I was sure it should be I use to be a hitman. Most efficient way to check for DBNull and then assign to a variable? What "exactly" happens when someone turns to the Dark Side? When I saw the original Star Wars saga as a kid, the concept of the Dark Side imprinted in me was quite simple. You did a bad thing, so you're a bad person so you go to the Dark Side and keep doing bad things.  Now, obviously this doesn't hold true in reality. In my mind it is perfectly reasonable for Luke to kill the Emperor and Vader and then just flee the Death Star and rejoin the Alliance. After all they are at war, those are enemy officers that have captured him and are taunting him by threatening with death of all loved ones and the whole operation was intended to kill the Emperor anyway.   The same would hold true for Anakin. He could have killed Mace Windu to save the Chancellor and Padme but that doesn't mean he's going to then go mad and kill all Jedis including children. It doesn't add up from a merely psychological point of view. He had a set of objectives and that made him want to keep the Chancellor alive (quite valid by the way, Mace Windu is quite clumsy on that) but just after killing him he goes into "Yes master I'll do whatever you say" which from a normal point of view will NEVER ever make sense.  In both cases it seems like the assumption is once you use the Dark Side you completely turn to the Dark Side and become a different person that you were before. That would be coherent with Anakin "dying" and Vader being born.  Is that the way the Dark Side works? Is there any canon information about what happens when someone turns to the Dark Side? Specifically to whether they become a different person or how he or she actually changes?  Note: Vader is angry after he finds out Padme is dead, even though he's already turned.  Example of what I mean. In Buffy they explain how people that turn into Vampires lose their soul and it's taken over by a demon, and thus they are, in all effects, a different person with their memories. Truncated alternating binomial sum MacBook Pro detects syncmaster (monitor) but doesn't display Finding first and last index of some value in a list in Python Several years ago I heard of something called dummy subjects in high school. It was then stated that, for example, it is a dummy subject when it starts many instances of sentences, e.g.        It is rainy today.   It is hard to imagine how hard is to live alone.   It is not my university degree that matters here.     My question is if we can use it with plural subjects? For example in       If some think that in Mahmoud Dowlatabadi’s works it is only social themes that matter and the writer is ignoring fictional arrays and artistic techniques, at least, endings of his stories show wrongness of this idea.     My question deals with the italicized part. If this usage is OK, can we also write they are social themes that matter? I mean can they also play the role of a dummy subject?