I only know Java Programming Language and no other. Can I develop games for Android in Unity3D using Java?
I am fairly new to Unity3D experience , but I have a very good knowledge of Java and Android development. I am really confused that if Java is at all needed for developing android applications? I read somewhere in Unity documentation that adding behaviour to objects in Unity requires use of scripts, and that unity only supports C# , .Net , and Boo scripts. Is there no use of Java at all?
disable comments if array exists This is the code which is registering the function for rewrite_endpoints():   function wpa121567_rewrite_endpoints(){  add_rewrite_endpoint( 'comments', EP_PERMALINK );  add_rewrite_endpoint( 'stats', EP_PERMALINK );  }  add_action( 'init', 'wpa121567_rewrite_endpoints' );   NOTE  I don't know if this matters but I will write it.   I have single-CPT.php which is calling  /inc/post-format/single-CPT.php like this:      &lt;?php while ( have_posts() ) : the_post(); ?&gt;  &lt;?php   get_template_part( 'inc/post-format/single-debate');      ...   This is the code which is checking if array key exists, which is  inside my /inc/post-format/single-cpt.php:   ?php if( array_key_exists( 'comments', $wp_query-&gt;query_vars ) ){  the_field('comments_section');   } elseif( array_key_exists( 'stats', $wp_query-&gt;query_vars ) ) {   the_field('stats_section');   } else { // the request is for the main post  }   ?&gt;   This is my comments.php :       &lt;div id="comments" class="comments-area"&gt; &lt;?php // If CPT and not logged in, display a message: if ( 'debate' == get_post_type() &amp;&amp; ! is_user_logged_in() ) { echo '&lt;p class="must-log-in" style="padding-left:20px; font-size:20px;"&gt;You must be logged in to post a comment.' . '&lt;/p&gt;';  echo do_shortcode("[upme_login]");   } ?&gt;     &lt;?php if ( have_comments() ) : ?&gt;         &lt;h3 class="comments-title"&gt;              &lt;?php                 printf( _n('%d comment', '%d comments', get_comments_number(), 'outbox' ),                     number_format_i18n( get_comments_number() ) );             ?&gt;         &lt;/h3&gt;             &lt;ol class="commentlist"&gt;              &lt;?php                 wp_list_comments( array( 'callback' =&gt; 'outbox_comment' ) );             ?&gt;         &lt;/ol&gt;&lt;!-- .commentlist --&gt;          &lt;?php if ( get_comment_pages_count() &gt; 1 &amp;&amp; get_option( 'page_comments' ) ) : // are there comments to navigate through? If so, show navigation ?&gt;         &lt;nav role="navigation" id="comment-nav-below" class="site-navigation comment-navigation clearfix"&gt;             &lt;div class="nav-previous"&gt;&lt;i class="icon-left-open-1"&gt;&lt;/i&gt;&amp;nbsp;&lt;?php echo get_previous_comments_link( __( 'Older Comments', 'outbox' ) ); ?&gt;&lt;/div&gt;             &lt;div class="nav-next"&gt;&lt;?php echo get_next_comments_link( __( 'Newer Comments', 'outbox' ) ); ?&gt;&amp;nbsp;&lt;i class="icon-right-open-1"&gt;&lt;/i&gt;&lt;/div&gt;         &lt;/nav&gt;&lt;!-- #comment-nav-below .site-navigation .comment-navigation --&gt;         &lt;?php endif; ?&gt;      &lt;?php endif; // have_comments() ?&gt;      &lt;?php         // If comments are closed and there are comments, let's leave a little note, shall we?         if ( ! comments_open() &amp;&amp; '0' != get_comments_number() &amp;&amp; post_type_supports( get_post_type(), 'comments' ) ) :     ?&gt;         &lt;p class="nocomments"&gt;&lt;?php _e( 'Comments are closed.', 'outbox' ); ?&gt;&lt;/p&gt;     &lt;?php endif; ?&gt;     &lt;?php  // Don't output the comment form if CPT and user isn't logged in if ( 'debate' != get_post_type() || is_user_logged_in() ) {  comment_form(); }  ?&gt;  &lt;/div&gt;&lt;!-- #comments .comments-area --&gt; &lt;?php } ?&gt;    This is how the comments template is included  inside my single-CPT.php :  if ( comments_open()  )  comments_template( '', true );   I want to disable comments if if( array_key_exists( 'comments', $wp_query-&gt;query_vars ) ){  How can I do this? How can I make Devanagari fonts render properly in Ubuntu 16.04? Devanagari fonts appear broken like this:     It should appear this way    I have the same problem in browsers and office applications.  Is there any way to fix it? Drop Tables with Bigger size We have a mysql database with a size of 2 TB, in which we have for to five big tables ranging from 110GB to 350GB. When we try to drop these tables the mysql goes to the defunct mode and hangs in that state for a long time. Is there a solution to drop these tables without mysql hanging. We have a machine which has a memory of 122GB and swap of 60 GB. We use an InnoDB Engine Hope the information suffices kindly help us with this issue Proof of Russian Peasant Multiplication I'm studying a combinatorics text () in preparation for taking discrete math this upcoming semester. I've taken a fair amount of math in college, through Calculus II, but this is my first 500+ level math course.    In chapter 2 of the  book, the author introduces an algorithm for multiplication called Russian Peasant Multiplication. I want to prove that this algorithm will always result in the product of two numbers.  I've been chewing on the proof for a while now, and just can't seem to get any traction. Thanks in advance for any help.  Description of Algorithm  I'll try to explain the algorithm clearly. The goal of the algorithm is to find the product of two numbers $m$ and $n$. The below table is filled out for $m$ and $n$:  $$\begin{array}{c} m&amp;&amp;n&amp;\\ \hline \bigl\lfloor \frac{m}{2} \bigr\rfloor&amp;&amp; 2n \\ \bigl\lfloor \frac{m}{4} \bigr\rfloor&amp;&amp; 4n \\ \bigl\lfloor \frac{m}{8} \bigr\rfloor&amp;&amp; 8n \\ \bigl\lfloor \frac{m}{16} \bigr\rfloor&amp;&amp; 16n \\ \bigl\lfloor \frac{m}{32} \bigr\rfloor&amp;&amp; 32n \\ \end{array}$$  The sequence of numbers in both columns is the sequence $a_n = 2a_{n-1}\text{ where }a_1=2$. The columns are extended down until the value in the left column is equal to the number one. After filling out the table, the product is found by adding the values of the right column where the left column is an odd number.  For example, to multiply 18 and 37 with the algorithm:  $$\begin{array}{c} m&amp;&amp;n&amp;\\ \hline 18 &amp;&amp; 37 \\ 9 &amp;&amp; 74 \\ 4 &amp;&amp; 148 \\ 2 &amp;&amp; 296 \\ 1 &amp;&amp; 592 \\ \end{array}$$  To find the product, cross out values of the left column where the value of the right column is even:  $$\begin{array}{c} m&amp;&amp;n&amp;\\ \hline \require{enclose} \enclose{horizontalstrike}{18} &amp;&amp; \enclose{horizontalstrike}{37} \\ 9 &amp;&amp; 74 \\ \enclose{horizontalstrike}{4} &amp;&amp; \enclose{horizontalstrike}{148} \\ \enclose{horizontalstrike}{2} &amp;&amp; \enclose{horizontalstrike}{296} \\ 1 &amp;&amp; 592 \\ \end{array}$$  And add the remaining numbers in the right column to get the result: $18\times37=74+592=666$  Alternate Description of Algorithm  As an aside, here is a shorter way to describe the algorithm, repeat the below steps until the left column == 1:  • Halve the last number in the first column • Write the result below (discard the remainder) • Double the last number in the first column. • Write the result below.   Now, for every even number in the first column, delete the adjacent number in the second column. Add the remaining numbers in the second column.  What I've done so Far  I haven't been able to get much of anywhere on the proof. One thing I did was create a bit of a different way of arriving at the same outcome:  $$\begin{array}{c} m&amp;&amp;n&amp;&amp;\text{index}&amp;&amp;\text{remainder}&amp;&amp;\text{if remainder == 1, }n\times2^{Index}&amp;\\ \hline 18 &amp;&amp; 37 &amp;&amp; 0 &amp;&amp; 0 \\ 9 &amp;&amp; 74 &amp;&amp; 1 &amp;&amp; 1 &amp;&amp; 74\\ 4 &amp;&amp; 148 &amp;&amp; 2 &amp;&amp; 0 \\ 2 &amp;&amp; 296 &amp;&amp; 3 &amp;&amp; 0 \\ 1 &amp;&amp; 592 &amp;&amp; 4 &amp;&amp; 1 &amp;&amp; 592\\ \end{array}$$  Which brings to light the relationship between this algorithm and binary numbers (the fourth column in the above table is the product in binary, read bottom to top).   I also wrote some Python functions to help me explore the problem, Adding holes simultaneously within mesh Im trying to add multiple holes within my mesh, so I divided it up, and then used cylinders shapes to make the holes. On the top image I used the Boolean operation. And on the bottom image, I subdivided one of the rectangles and used the looptool method with the circle. Once I add a subdivision modifier I am getting weird result with the Boolean but the operation holes, but the bottom Hole looks more acceptable once cleaned up. Is one or the other method the correct way? Where is the New Oxford American Dictionary stored? Hi there! I'm looking for a help drawing this diagram. Any ideas? QGtkStyle was unable to detect the current GTK+ theme When I start any Qt app, I get this message in the terminal, and the Qt app doesn't use the same theme as my Gtk apps:  QGtkStyle was unable to detect the current GTK+ theme.   How do I make QGtkStyle detect my current GTK+ theme?  It seems that LXDE is using a settings daemon, and there is no gtkrc-2.0 file in my home folder. My passport is expiring; can I still travel? Can the real and imaginary parts of $\dfrac{\sin z}z$ be simplified? I have calculated the real and imaginary parts of $\dfrac{\sin z}z.$ I've obtained  $$\begin{eqnarray} \frac{\sin z}z&amp;=&amp;\frac{\sin(x+iy)}{(x+iy)}\\ &amp;=&amp; \frac{\sin(x)\cosh(y)+i\cos(x)\sinh(y)}{x+iy}\\ &amp;=&amp; \frac{x\sin(x)\cosh(y)+y\cos(x)\sinh(y)}{x^2+y^2}+i\frac{x\cos(x)\sinh(y)-y\sin(x)\cosh(y)}{x^2+y^2}. \end{eqnarray}$$  Before calculating it, I hoped I could use this in a solution to a certain problem, but I would need to differentiate the real and imaginary parts of $\dfrac{\sin z}z$ with regard to $x$ and $y$. But what I'm getting is very complicated. I understand that it could be that that's just the way it is. But maybe there are some simplifications to be done either in the functions or in their derivatives? I've never really used hyperbolic functions before so I'm not sure I'm not missing something.  Added. The problem I'm working on is the following.     Prove that the solutions of the equation $$\tan z=z$$ are all real.   I will sketch the solution I know here.  It can be calculated that  $$\tan(x+iy)=\frac{\sin(2x)}{\cos(2x)+\cosh(2y)}+i\frac{\sinh(2y)}{\cos(2x)+\cosh(2y)}.$$  Plugging this to the equation, we get  $$\begin{eqnarray} x&amp;=&amp;\frac{\sin(2x)}{\cos(2x)+\cosh(2y)}\\ y&amp;=&amp;\frac{\sinh(2y)}{\cos(2x)+\cosh(2y)}. \end{eqnarray}$$  From this we can get   $$\sin(2x)\cdot2y=\sinh(2y)\cdot2x.$$  By plotting the functions $\sin,$ $\mathrm{id}$ and $\sinh$ (and proving the right inequalities we can see from the plots), we can see that this is only possible when $xy=0$. But when we plug $x=0$ to the second equation, we can show that the only solution is $y=0$, which ends the proof.  What strikes me in this solution is the fact that $\dfrac{\sin z}z$ is used. (Not explicitly in my statement.) This function has another connection to the problem:     The non-zero solutions of the equation $\tan z=z$ are exactly the zeros of the derivative of $\dfrac{\sin z}z.$   This is easy to prove. I wondered if there shouldn't be a solution to the problem which uses this fact, given that $\dfrac{\sin z}z$ appears in the solution I know. Eigenvalues of a matrix whose square equals its transpose Let $A$ be a $n\times n$ matrix with $A^2=A^t$. Show that every real eigen value of $A$ is either $ 0$ or $1$ Short connection at IAD (Dulles international airport) I am flying from New Orleans to Dulles (IAD) on United Express, and from IAD to Frankfurt on United. I have a short connection (45 minutes) in IAD.   I'm trying to figure out how can I make it:  Will I need to go throughout security and border check since I'm leaving the US? How big is IAD airport? and are there different terminals for domestic and international flights? If so, how long would it take to walk between them? Who are the users that work for Stack Overflow? Edited photos have reverted to originals on iphone Adverb position in "Listen carefully to what I say" Call to a member function on a non-object So I'm refactoring my code to implement more OOP.  I set up a class to hold page attributes.  class PageAtrributes  {   private $db_connection;   private $page_title;      public function __construct($db_connection)      {         $this-&gt;db_connection = $db_connection;         $this-&gt;page_title = '';     }      public function get_page_title()     {         return $this-&gt;page_title;     }      public function set_page_title($page_title)     {         $this-&gt;page_title = $page_title;     } }   Later on I call the set_page_title() function like so  function page_properties($objPortal) {         $objPage-&gt;set_page_title($myrow['title']); }   When I do I receive the error message:     Call to a member function set_page_title() on a non-object   So what am I missing? I often see tutorials on the web or posts on this site which make heavy use of the following characters at the command line. Often it seems that they are used for pretty similar purposes. What are the differences between them when used on the command line or for shell programming? For what purpose do I use which of them?  " " double quotes  ' ' single quotes  ` ` backticks Notepad++ incrementally replace Does $x^2 - y^2 = 12345678$ (x,y are integers) have any solutions? How to prove that $\lim\limits_{x\to0}\frac{\sin x}x=1$? How can one prove the statement $$\lim_{x\to 0}\frac{\sin x}x=1$$ without using the Taylor series of $\sin$, $\cos$ and $\tan$? Best would be a geometrical solution.  This is homework. In my math class, we are about to prove that $\sin$ is continuous. We found out, that proving the above statement is enough for proving the continuity of $\sin$, but I can't find out how. Any help is appreciated.